@luminati-io/uikit 6.3.16 → 6.3.18-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36910,24 +36910,24 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
36910
36910
 
36911
36911
 
36912
36912
 
36913
- var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
36914
- var className = _ref.className,
36915
- _ref$classNamePrefix = _ref.classNamePrefix,
36916
- classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_button' : _ref$classNamePrefix,
36917
- _ref$variant = _ref.variant,
36918
- variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
36919
- _ref$size = _ref.size,
36920
- size = _ref$size === void 0 ? 'md' : _ref$size,
36921
- disabled = _ref.disabled,
36922
- loading = _ref.loading,
36923
- _ref$loadingText = _ref.loadingText,
36924
- loadingText = _ref$loadingText === void 0 ? 'Loading...' : _ref$loadingText,
36925
- icon = _ref.icon,
36926
- _ref$iconPlacement = _ref.iconPlacement,
36927
- iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
36928
- text = _ref.text,
36929
- children = _ref.children,
36930
- rest = _objectWithoutProperties(_ref, _excluded);
36913
+ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
36914
+ var className = props.className,
36915
+ _props$classNamePrefi = props.classNamePrefix,
36916
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_button' : _props$classNamePrefi,
36917
+ _props$variant = props.variant,
36918
+ variant = _props$variant === void 0 ? 'primary' : _props$variant,
36919
+ _props$size = props.size,
36920
+ size = _props$size === void 0 ? 'md' : _props$size,
36921
+ disabled = props.disabled,
36922
+ loading = props.loading,
36923
+ _props$loadingText = props.loadingText,
36924
+ loadingText = _props$loadingText === void 0 ? 'Loading...' : _props$loadingText,
36925
+ icon = props.icon,
36926
+ _props$iconPlacement = props.iconPlacement,
36927
+ iconPlacement = _props$iconPlacement === void 0 ? 'left' : _props$iconPlacement,
36928
+ text = props.text,
36929
+ children = props.children,
36930
+ rest = _objectWithoutProperties(props, _excluded);
36931
36931
  var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Button', {
36932
36932
  size: size,
36933
36933
  icon: icon,
@@ -39190,10 +39190,9 @@ __webpack_require__.r(__webpack_exports__);
39190
39190
  /* harmony import */ var prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_17__);
39191
39191
  /* harmony import */ var prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prismjs/plugins/line-numbers/prism-line-numbers */ "./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js");
39192
39192
  /* harmony import */ var prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_18__);
39193
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
39194
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_19__);
39195
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! styled-components */ "styled-components");
39196
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_20__);
39193
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! styled-components */ "styled-components");
39194
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_19__);
39195
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
39197
39196
  // LICENSE_CODE ZON
39198
39197
 
39199
39198
 
@@ -39223,55 +39222,60 @@ __webpack_require__.r(__webpack_exports__);
39223
39222
 
39224
39223
  // import 'prismjs/plugins/line-numbers/prism-line-numbers';
39225
39224
 
39226
- var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
39227
- var className = _ref.className,
39228
- code = _ref.code,
39229
- lang = _ref.lang,
39230
- lineNumbers = _ref.lineNumbers,
39231
- _ref$variant = _ref.variant,
39232
- variant = _ref$variant === void 0 ? 'white' : _ref$variant,
39233
- wrap = _ref.wrap;
39225
+ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
39226
+ var className = props.className,
39227
+ _props$classNamePrefi = props.classNamePrefix,
39228
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_code' : _props$classNamePrefi,
39229
+ code = props.code,
39230
+ lang = props.lang,
39231
+ lineNumbers = props.lineNumbers,
39232
+ _props$variant = props.variant,
39233
+ variant = _props$variant === void 0 ? 'white' : _props$variant,
39234
+ wrap = props.wrap;
39234
39235
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
39235
39236
  prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_2___default().highlightAll();
39236
39237
  }, [code, lang, lineNumbers]);
39237
39238
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeWrapper, {
39238
39239
  ref: ref,
39239
- className: classnames__WEBPACK_IMPORTED_MODULE_19___default()(className, variant, {
39240
- wrap: wrap,
39241
- 'line-numbers': lineNumbers
39242
- })
39240
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_20__.classNames)(null, null, className, classNamePrefix, "".concat(classNamePrefix, "-").concat(variant), wrap && "".concat(classNamePrefix, "-wrap"), lineNumbers && 'line-numbers'),
39241
+ $prefixCls: classNamePrefix
39243
39242
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("code", {
39244
39243
  className: "language-".concat(lang, " content")
39245
39244
  }, code));
39246
39245
  });
39247
39246
  Code.displayName = 'Code';
39248
39247
  Code.propTypes = {
39248
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39249
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39249
39250
  code: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39250
39251
  lang: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['js', 'javascript', 'css', 'markup', 'shell', 'java', 'csharp', 'vbnet', 'php', 'ruby', 'perl', 'python', 'json']),
39251
39252
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
39252
39253
  lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39253
39254
  wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39254
39255
  };
39255
- var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_20___default().pre.withConfig({
39256
+ var prefixCls = function prefixCls(p) {
39257
+ return p.$prefixCls;
39258
+ };
39259
+ var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_19___default().pre.withConfig({
39256
39260
  displayName: "CodeWrapper",
39257
39261
  componentId: "sc-1kleg7y-0"
39258
- })(["&&&{margin:0;border:none;background-color:transparent;width:100%;white-space:pre;tab-size:4;text-align:left;word-spacing:normal;word-break:break-word;word-wrap:normal;hyphens:none;max-height:none !important;&.wrap{white-space:pre-wrap !important;}code.content{all:inherit;margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}&.line-numbers{position:relative;padding-left:3.8rem;counter-reset:linenumber;& > code{position:relative;white-space:inherit;}.line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8rem;width:3rem;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;& > span{display:block;counter-increment:linenumber;&:before{content:counter(linenumber);display:block;padding-right:0.8rem;text-align:right;}}}}&.black .line-numbers{color:", ";}&.white .line-numbers{color:", ";}&.black{code[class*=\"language-\"],pre[class*=\"language-\"]{color:", ";background:none;text-shadow:0 1px ", ";font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;}pre[class*=\"language-\"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em;}:not(pre) > code[class*=\"language-\"],pre[class*=\"language-\"]{background:#272822;}:not(pre) > code[class*=\"language-\"]{padding:.1em;border-radius:.3em;white-space:normal;}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8292a2;}.token.punctuation{color:#f8f8f2;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672;}.token.boolean,.token.number{color:#ae81ff;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2;}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:#e6db74;}.token.keyword{color:#66d9ef;}.token.regex,.token.important{color:#fd971f;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}&.white{code[class*=\"language-\"],pre[class*=\"language-\"]{color:", ";background:none;text-shadow:0 1px ", ";font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;}pre[class*=\"language-\"]::-moz-selection,pre[class*=\"language-\"] ::-moz-selection,code[class*=\"language-\"]::-moz-selection,code[class*=\"language-\"] ::-moz-selection{text-shadow:none;background:#b3d4fc;}pre[class*=\"language-\"]::selection,pre[class*=\"language-\"] ::selection,code[class*=\"language-\"]::selection,code[class*=\"language-\"] ::selection{text-shadow:none;background:#b3d4fc;}@media print{code[class*=\"language-\"],pre[class*=\"language-\"]{text-shadow:none;}}pre[class*=\"language-\"]{padding:1em;margin:.5em 0;overflow:auto;}:not(pre) > code[class*=\"language-\"],pre[class*=\"language-\"]{background:#f5f2f0;}:not(pre) > code[class*=\"language-\"]{padding:.1em;border-radius:.3em;white-space:normal;}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}.token.punctuation{color:#999;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5);}.token.atrule,.token.attr-value,.token.keyword{color:#07a;}.token.function,.token.class-name{color:#DD4A68;}.token.regex,.token.important,.token.variable{color:#e90;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}}"], function (_ref2) {
39259
- var color = _ref2.theme.color;
39262
+ })(["&&&{margin:0;border:none;background-color:transparent;width:100%;white-space:pre;tab-size:4;text-align:left;word-spacing:normal;word-break:break-word;word-wrap:normal;hyphens:none;max-height:none !important;&.", "-wrap{white-space:pre-wrap !important;}code.content{all:inherit;margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}&.line-numbers{position:relative;padding-left:3.8rem;counter-reset:linenumber;& > code{position:relative;white-space:inherit;}.line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8rem;width:3rem;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;& > span{display:block;counter-increment:linenumber;&:before{content:counter(linenumber);display:block;padding-right:0.8rem;text-align:right;}}}}&.", "-black .line-numbers{color:", ";}&.", "-white .line-numbers{color:", ";}&.", "-black{code[class*='language-'],pre[class*='language-']{color:", ";background:none;text-shadow:0 1px ", ";font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;}pre[class*='language-']{padding:1em;margin:0.5em 0;overflow:auto;border-radius:0.3em;}:not(pre) > code[class*='language-'],pre[class*='language-']{background:#272822;}:not(pre) > code[class*='language-']{padding:0.1em;border-radius:0.3em;white-space:normal;}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8292a2;}.token.punctuation{color:#f8f8f2;}.token.namespace{opacity:0.7;}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672;}.token.boolean,.token.number{color:#ae81ff;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2;}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:#e6db74;}.token.keyword{color:#66d9ef;}.token.regex,.token.important{color:#fd971f;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}&.", "-white{code[class*='language-'],pre[class*='language-']{color:", ";background:none;text-shadow:0 1px ", ";font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;}pre[class*='language-']::-moz-selection,pre[class*='language-'] ::-moz-selection,code[class*='language-']::-moz-selection,code[class*='language-'] ::-moz-selection{text-shadow:none;background:#b3d4fc;}pre[class*='language-']::selection,pre[class*='language-'] ::selection,code[class*='language-']::selection,code[class*='language-'] ::selection{text-shadow:none;background:#b3d4fc;}@media print{code[class*='language-'],pre[class*='language-']{text-shadow:none;}}pre[class*='language-']{padding:1em;margin:0.5em 0;overflow:auto;}:not(pre) > code[class*='language-'],pre[class*='language-']{background:#f5f2f0;}:not(pre) > code[class*='language-']{padding:0.1em;border-radius:0.3em;white-space:normal;}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}.token.punctuation{color:#999;}.token.namespace{opacity:0.7;}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,0.5);}.token.atrule,.token.attr-value,.token.keyword{color:#07a;}.token.function,.token.class-name{color:#dd4a68;}.token.regex,.token.important,.token.variable{color:#e90;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}}"], prefixCls, prefixCls, function (_ref) {
39263
+ var color = _ref.theme.color;
39260
39264
  return color.text_white;
39261
- }, function (_ref3) {
39262
- var color = _ref3.theme.color;
39265
+ }, prefixCls, function (_ref2) {
39266
+ var color = _ref2.theme.color;
39263
39267
  return color.text_disabled;
39268
+ }, prefixCls, function (_ref3) {
39269
+ var color = _ref3.theme.color;
39270
+ return color.code_text_black;
39264
39271
  }, function (_ref4) {
39265
39272
  var color = _ref4.theme.color;
39266
- return color.code_text_black;
39267
- }, function (_ref5) {
39268
- var color = _ref5.theme.color;
39269
39273
  return color.code_text_shadow_black;
39274
+ }, prefixCls, function (_ref5) {
39275
+ var color = _ref5.theme.color;
39276
+ return color.code_text_white;
39270
39277
  }, function (_ref6) {
39271
39278
  var color = _ref6.theme.color;
39272
- return color.code_text_white;
39273
- }, function (_ref7) {
39274
- var color = _ref7.theme.color;
39275
39279
  return color.code_text_shadow_white;
39276
39280
  });
39277
39281
 
@@ -39776,7 +39780,7 @@ __webpack_require__.r(__webpack_exports__);
39776
39780
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
39777
39781
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
39778
39782
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
39779
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
39783
+ /* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../popover */ "./src/popover/index.js");
39780
39784
  /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
39781
39785
  /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
39782
39786
  /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
@@ -39786,8 +39790,14 @@ __webpack_require__.r(__webpack_exports__);
39786
39790
 
39787
39791
 
39788
39792
  /*jslint react:true*/
39789
- var _excluded = ["text", "variant", "size", "items", "disabled", "onClick", "icon", "iconPlacement"],
39793
+ var _excluded = ["className", "classNamePrefix", "variant", "size", "items", "disabled", "onClick", "icon", "iconPlacement", "text", "children"],
39790
39794
  _excluded2 = ["isLeft"];
39795
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
39796
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39797
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
39798
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39799
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
39800
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
39791
39801
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
39792
39802
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
39793
39803
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
@@ -39801,18 +39811,22 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
39801
39811
 
39802
39812
 
39803
39813
 
39804
- var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
39805
- var text = _ref.text,
39806
- _ref$variant = _ref.variant,
39807
- variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
39808
- _ref$size = _ref.size,
39809
- size = _ref$size === void 0 ? 'sm' : _ref$size,
39810
- items = _ref.items,
39811
- disabled = _ref.disabled,
39812
- onClick = _ref.onClick,
39813
- icon = _ref.icon,
39814
- iconPlacement = _ref.iconPlacement,
39815
- rest = _objectWithoutProperties(_ref, _excluded);
39814
+ var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
39815
+ var className = props.className,
39816
+ _props$classNamePrefi = props.classNamePrefix,
39817
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_combo_button' : _props$classNamePrefi,
39818
+ _props$variant = props.variant,
39819
+ variant = _props$variant === void 0 ? 'primary' : _props$variant,
39820
+ _props$size = props.size,
39821
+ size = _props$size === void 0 ? 'sm' : _props$size,
39822
+ items = props.items,
39823
+ disabled = props.disabled,
39824
+ onClick = props.onClick,
39825
+ icon = props.icon,
39826
+ iconPlacement = props.iconPlacement,
39827
+ text = props.text,
39828
+ children = props.children,
39829
+ rest = _objectWithoutProperties(props, _excluded);
39816
39830
  var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('Button', {
39817
39831
  size: size,
39818
39832
  icon: icon,
@@ -39820,67 +39834,90 @@ var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
39820
39834
  }),
39821
39835
  isLeft = _getIconProps.isLeft,
39822
39836
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
39823
- var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
39824
- return {
39825
- size: size == 'xs' ? 'sm' : 'md',
39826
- items: items
39827
- };
39828
- }, [size, items]);
39837
+ var buttonText = text || children;
39829
39838
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButtonWrapper, _extends({
39830
39839
  ref: ref
39831
39840
  }, rest, {
39841
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(null, null, className, classNamePrefix),
39832
39842
  disabled: disabled,
39833
39843
  $variant: variant,
39834
39844
  $size: size,
39835
39845
  $iconPlacement: isLeft ? 'left' : ''
39836
39846
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, {
39847
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
39848
+ '-primary_button': true,
39849
+ '-primary_button-disabled': disabled
39850
+ }),
39837
39851
  disabled: disabled,
39838
39852
  onClick: onClick,
39839
39853
  "data-testid": "combo_button_main"
39840
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
39854
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, _extends({
39855
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
39856
+ '-icon': true,
39857
+ '-icon-left': isLeft
39858
+ })
39859
+ }, iconProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
39841
39860
  variant: size == 'xs' ? 'sm' : 'lg',
39861
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
39862
+ '-text': true
39863
+ }),
39842
39864
  no_wrap: true,
39843
39865
  "data-label": true
39844
- }, text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonMenuTrigger, {
39866
+ }, buttonText))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonMenu, {
39867
+ classNamePrefix: classNamePrefix,
39845
39868
  disabled: disabled,
39846
- popoverProps: menuProps
39869
+ size: size == 'xs' ? 'sm' : 'md',
39870
+ items: items
39847
39871
  }));
39848
39872
  });
39849
39873
  ComboButton.displayName = 'ComboButton';
39850
39874
  ComboButton.propTypes = {
39851
- text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
39875
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39876
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39852
39877
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
39853
39878
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
39854
39879
  icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_9__.iconNames),
39855
39880
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
39856
39881
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39857
39882
  };
39858
- var ComboButtonMenu = function ComboButtonMenu(_ref2) {
39859
- var size = _ref2.size,
39860
- items = _ref2.items,
39861
- popover = _ref2.popover;
39862
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.Menu, {
39863
- size: size,
39864
- items: items,
39865
- onClick: popover.hide
39866
- });
39867
- };
39868
- var ArrowIcon = function ArrowIcon(_ref3) {
39869
- var popover = _ref3.popover,
39870
- disabled = _ref3.disabled;
39871
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow, {
39872
- onClick: popover.toggle,
39883
+ var ComboButtonMenu = function ComboButtonMenu(_ref) {
39884
+ var classNamePrefix = _ref.classNamePrefix,
39885
+ disabled = _ref.disabled,
39886
+ size = _ref.size,
39887
+ items = _ref.items;
39888
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
39889
+ _useState2 = _slicedToArray(_useState, 2),
39890
+ visible = _useState2[0],
39891
+ setVisible = _useState2[1];
39892
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_popover__WEBPACK_IMPORTED_MODULE_4__.Popover, {
39893
+ trigger: "click",
39894
+ placement: "bottomRight",
39895
+ visible: visible,
39896
+ onVisibleChange: setVisible,
39897
+ zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.combobutton,
39898
+ popover: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.Menu, {
39899
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
39900
+ '-menu': true
39901
+ }),
39902
+ size: size,
39903
+ items: items,
39904
+ onClick: function onClick() {
39905
+ return setVisible(false);
39906
+ },
39907
+ unstyled: true
39908
+ })
39909
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow, {
39910
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
39911
+ '-menu_button': true,
39912
+ '-menu_button-disabled': disabled
39913
+ }),
39873
39914
  disabled: disabled,
39874
39915
  "data-testid": "combo_button_menu_button"
39875
39916
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
39876
39917
  name: "ChevronDown",
39877
39918
  size: "xs"
39878
- }));
39919
+ })));
39879
39920
  };
39880
- var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(ArrowIcon, ComboButtonMenu, {
39881
- placement: 'bottom-end',
39882
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.combobutton
39883
- });
39884
39921
  var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
39885
39922
  displayName: "StyledButtonWrapper",
39886
39923
  componentId: "sc-s9elw5-0"
@@ -49000,7 +49037,6 @@ var Modal2 = function Modal2(_ref) {
49000
49037
  prefixCls: classNamePrefix,
49001
49038
  closable: closable,
49002
49039
  closeIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CloseIcon, null),
49003
- size: size,
49004
49040
  maskClosable: closeOnOutsideClick && onClose,
49005
49041
  title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogHeader, {
49006
49042
  icon: icon,
@@ -52160,7 +52196,7 @@ __webpack_require__.r(__webpack_exports__);
52160
52196
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
52161
52197
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
52162
52198
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
52163
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
52199
+ /* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../popover */ "./src/popover/index.js");
52164
52200
  /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
52165
52201
  /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
52166
52202
  /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
@@ -52171,6 +52207,12 @@ __webpack_require__.r(__webpack_exports__);
52171
52207
 
52172
52208
 
52173
52209
  /*jslint react:true*/
52210
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
52211
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
52212
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
52213
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
52214
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
52215
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
52174
52216
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
52175
52217
 
52176
52218
 
@@ -52181,13 +52223,13 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
52181
52223
 
52182
52224
 
52183
52225
 
52184
- var HeaderFunctions = function HeaderFunctions(props) {
52185
- var header = props.header,
52186
- visible = props.visible,
52187
- onItemClick = props.onItemClick,
52188
- orderLogic = props.orderLogic,
52189
- canSort = props.canSort,
52190
- onSortChanged = props.onSortChanged;
52226
+ var HeaderFunctions = function HeaderFunctions(_ref) {
52227
+ var header = _ref.header,
52228
+ visible = _ref.visible,
52229
+ onItemClick = _ref.onItemClick,
52230
+ orderLogic = _ref.orderLogic,
52231
+ canSort = _ref.canSort,
52232
+ onSortChanged = _ref.onSortChanged;
52191
52233
  if ((0,_sys_columns__WEBPACK_IMPORTED_MODULE_8__.isSysColumn)(header)) return null;
52192
52234
  var id = header.id,
52193
52235
  canHide = header.canHide,
@@ -52262,60 +52304,56 @@ var HeaderFunctions = function HeaderFunctions(props) {
52262
52304
  });
52263
52305
  }
52264
52306
  if (!items.length) return null;
52265
- var menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Menu, null, items.map(function (item) {
52266
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuItem, _extends({
52267
- key: item.id
52268
- }, item));
52269
- }));
52270
52307
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuPopover, {
52271
52308
  visible: visible,
52272
- popoverProps: {
52273
- menu: menu
52274
- }
52309
+ items: items
52275
52310
  });
52276
52311
  };
52277
- var MenuButton = function MenuButton(props) {
52278
- var popover = props.popover,
52279
- visible = props.visible;
52280
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
52312
+ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton).withConfig({
52313
+ displayName: "StyledButton",
52314
+ componentId: "sc-1oo76mu-0"
52315
+ })(["cursor:pointer;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%);z-index:", ";width:16px;height:16px;border-radius:4px;width:16px;height:16px;"], _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.headerButton);
52316
+ var MenuPopover = function MenuPopover(_ref2) {
52317
+ var visible = _ref2.visible,
52318
+ items = _ref2.items;
52319
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
52320
+ _useState2 = _slicedToArray(_useState, 2),
52321
+ popoverVisible = _useState2[0],
52322
+ setPopoverVisible = _useState2[1];
52323
+ var onVisibleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {
52324
+ setPopoverVisible(!visible ? false : value);
52325
+ }, [visible]);
52326
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_popover__WEBPACK_IMPORTED_MODULE_2__.Popover, {
52327
+ trigger: "click",
52328
+ placement: "bottom",
52329
+ visible: popoverVisible,
52330
+ onVisibleChange: onVisibleChange,
52331
+ popover: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Menu, {
52332
+ onClick: function onClick() {
52333
+ return setPopoverVisible(false);
52334
+ }
52335
+ }, items.map(function (item) {
52336
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuItem, _extends({
52337
+ key: item.id
52338
+ }, item));
52339
+ }))
52340
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
52281
52341
  size: "xs",
52282
52342
  icon: "DotsHorizontal",
52283
52343
  tooltip: "Functions",
52284
52344
  tooltipPlacement: "top",
52285
- onClick: popover.toggle,
52286
52345
  style: {
52287
52346
  visibility: visible ? 'visible' : 'hidden'
52288
52347
  }
52289
- });
52348
+ }));
52290
52349
  };
52291
- var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton).withConfig({
52292
- displayName: "StyledButton",
52293
- componentId: "sc-1oo76mu-0"
52294
- })(["cursor:pointer;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%);z-index:", ";width:16px;height:16px;border-radius:4px;width:16px;height:16px;"], _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.headerButton);
52295
- var MenuWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
52296
- displayName: "MenuWrapper",
52297
- componentId: "sc-1oo76mu-1"
52298
- })(["border-radius:4px;box-shadow:", ";background:", ";"], function (_ref) {
52299
- var shadow = _ref.theme.shadow;
52300
- return shadow.medium;
52301
- }, function (_ref2) {
52302
- var color = _ref2.theme.color;
52303
- return color.bg_elevated;
52304
- });
52305
- var MenuPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_2__.withPopover)(MenuButton, function (p) {
52306
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuWrapper, {
52307
- onClick: p.popover.hide
52308
- }, p.menu);
52309
- }, {
52310
- placement: 'bottom'
52311
- });
52312
52350
  var Menu = styled_components__WEBPACK_IMPORTED_MODULE_1___default().ul.withConfig({
52313
52351
  displayName: "Menu",
52314
- componentId: "sc-1oo76mu-2"
52352
+ componentId: "sc-1oo76mu-1"
52315
52353
  })(["margin:0;padding:4px 0;"]);
52316
52354
  var MenuItem = styled_components__WEBPACK_IMPORTED_MODULE_1___default().li.withConfig({
52317
52355
  displayName: "MenuItem",
52318
- componentId: "sc-1oo76mu-3"
52356
+ componentId: "sc-1oo76mu-2"
52319
52357
  })(["list-style:none;&:hover{background-color:", ";}", ""], function (_ref3) {
52320
52358
  var color = _ref3.theme.color;
52321
52359
  return color.bg_fill_secondary;
@@ -52404,8 +52442,8 @@ var HideColumn = function HideColumn(props) {
52404
52442
  };
52405
52443
  var FunctionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
52406
52444
  displayName: "FunctionWrapper",
52407
- componentId: "sc-1oo76mu-4"
52408
- })(["cursor:pointer;margin:0;padding:7px 12px;display:flex;align-items:center;gap:10px;min-width:180px;input[type=\"checkbox\"]{display:none;}"]);
52445
+ componentId: "sc-1oo76mu-3"
52446
+ })(["cursor:pointer;margin:0;padding:7px 12px;display:flex;align-items:center;gap:10px;min-width:180px;input[type='checkbox']{display:none;}"]);
52409
52447
 
52410
52448
  /***/ }),
52411
52449
 
@@ -53414,19 +53452,17 @@ __webpack_require__.r(__webpack_exports__);
53414
53452
  /* harmony export */ });
53415
53453
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
53416
53454
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
53417
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
53418
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
53419
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
53420
- /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
53421
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
53422
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
53423
- /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
53455
+ /* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../popover */ "./src/popover/index.js");
53456
+ /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
53457
+ /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
53458
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
53459
+ /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
53424
53460
  // LICENSE_CODE ZON
53425
53461
 
53426
53462
 
53427
53463
  /*jslint react:true*/
53428
53464
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
53429
- var _excluded = ["onClick", "keepPopover"];
53465
+ var _excluded = ["onClick"];
53430
53466
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
53431
53467
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
53432
53468
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -53434,6 +53470,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
53434
53470
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
53435
53471
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
53436
53472
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
53473
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
53474
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
53475
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
53476
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
53437
53477
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
53438
53478
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
53439
53479
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -53446,82 +53486,78 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
53446
53486
 
53447
53487
 
53448
53488
 
53449
-
53450
53489
  var RowMenuCell = function RowMenuCell(_ref) {
53451
53490
  var row = _ref.row,
53452
53491
  column = _ref.column;
53453
- var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
53492
+ var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
53454
53493
  rowActions = _useTableContext.rowActions;
53455
53494
  var allActions = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
53456
53495
  return [].concat(_toConsumableArray(rowActions || []), _toConsumableArray(Object.values(column.internalActions))).map(function (item) {
53457
53496
  return typeof item == 'function' ? item(row) : item;
53458
53497
  }).filter(function (item) {
53459
- return item && !item.hidden && item.key;
53498
+ return item && item.key;
53460
53499
  });
53461
53500
  }, [rowActions, column, row]);
53462
- var popoverProps = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
53463
- return {
53464
- allActions: allActions,
53465
- row: row,
53466
- portalTarget: document.body
53467
- };
53468
- }, [allActions, row]);
53469
53501
  if (!allActions.length) return null;
53470
53502
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowMenuCellPopover, {
53471
- popoverProps: popoverProps
53503
+ row: row,
53504
+ allActions: allActions
53472
53505
  });
53473
53506
  };
53474
- RowMenuCell.displayName = 'RowMenuCell';
53475
- var RowMenuCellPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_2__.withPopover)(function (p) {
53476
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__.IconButton, {
53507
+ var RowMenuCellPopover = function RowMenuCellPopover(_ref2) {
53508
+ var row = _ref2.row,
53509
+ allActions = _ref2.allActions;
53510
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
53511
+ _useState2 = _slicedToArray(_useState, 2),
53512
+ visible = _useState2[0],
53513
+ setVisible = _useState2[1];
53514
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_popover__WEBPACK_IMPORTED_MODULE_1__.Popover, {
53515
+ placement: "left",
53516
+ visible: visible,
53517
+ onVisibleChange: setVisible,
53518
+ trigger: ['click', 'contextMenu'],
53519
+ popover: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopoverMenu, {
53520
+ allActions: allActions,
53521
+ row: row,
53522
+ hidePopover: function hidePopover() {
53523
+ return setVisible(false);
53524
+ }
53525
+ })
53526
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_2__.IconButton, {
53477
53527
  "data-testid": "row-actions-toggle",
53478
- onClick: p.popover.toggle,
53479
53528
  icon: "DotsHorizontal",
53480
53529
  size: "xs",
53481
- className: _render_row__WEBPACK_IMPORTED_MODULE_6__.preventOnClickClass
53482
- });
53483
- }, function (p) {
53484
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopoverMenu, {
53485
- allActions: p.allActions,
53486
- row: p.row,
53487
- togglePopover: p.popover.toggle
53488
- });
53489
- }, {
53490
- placement: 'left'
53491
- });
53492
- var PopoverMenu = function PopoverMenu(props) {
53493
- var allActions = props.allActions,
53494
- row = props.row,
53495
- togglePopover = props.togglePopover;
53530
+ className: _render_row__WEBPACK_IMPORTED_MODULE_5__.preventOnClickClass
53531
+ }));
53532
+ };
53533
+ var PopoverMenu = function PopoverMenu(_ref3) {
53534
+ var allActions = _ref3.allActions,
53535
+ row = _ref3.row,
53536
+ hidePopover = _ref3.hidePopover;
53496
53537
  var items = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
53497
- return allActions.map(function (_ref2) {
53498
- var onClick = _ref2.onClick,
53499
- keepPopover = _ref2.keepPopover,
53500
- item = _objectWithoutProperties(_ref2, _excluded);
53538
+ return allActions.map(function (_ref4) {
53539
+ var onClick = _ref4.onClick,
53540
+ item = _objectWithoutProperties(_ref4, _excluded);
53501
53541
  var onItemClick = function onItemClick(evt) {
53502
53542
  if (item.disabled) return;
53503
- if (!keepPopover) togglePopover();
53504
53543
  onClick === null || onClick === void 0 || onClick(row, evt);
53544
+ if (!evt.defaultPrevented) hidePopover();
53505
53545
  };
53506
53546
  return _objectSpread(_objectSpread({}, item), {}, {
53507
53547
  onClick: onItemClick
53508
53548
  });
53509
53549
  });
53510
53550
  }, [allActions]);
53511
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_4__.Menu, {
53512
- className: _render_row__WEBPACK_IMPORTED_MODULE_6__.preventOnClickClass,
53551
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_3__.Menu, {
53552
+ className: _render_row__WEBPACK_IMPORTED_MODULE_5__.preventOnClickClass,
53513
53553
  items: items,
53514
- size: "sm"
53554
+ size: "sm",
53555
+ unstyled: true
53515
53556
  });
53516
53557
  };
53517
- var RowMenuButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
53518
- displayName: "RowMenuButton",
53519
- componentId: "sc-q7kjip-0"
53520
- })(["box-sizing:border-box;min-width:180px;display:flex;align-items:center;padding:7px 12px;gap:10px;border:0 none;background-color:unset;white-space:nowrap;"]);
53521
- RowMenuButton.displayName = 'RowMenuButton';
53522
- var getRowMenuCellProps = function getRowMenuCellProps(props, _ref3) {
53523
- var cell = _ref3.cell,
53524
- instance = _ref3.instance;
53558
+ var getRowMenuCellProps = function getRowMenuCellProps(props, _ref5) {
53559
+ var cell = _ref5.cell,
53560
+ instance = _ref5.instance;
53525
53561
  if (cell.column.id == 'row_menu') {
53526
53562
  var _instance$theme;
53527
53563
  return [props, {