@luminati-io/uikit 3.2.7 → 3.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -36976,7 +36976,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
36976
36976
  }, [isOptionDisabled]);
36977
36977
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex, _extends({
36978
36978
  ref: forwardRef,
36979
- "data-testid": "dropdown",
36979
+ "data-testid": "checkbox-list",
36980
36980
  className: className
36981
36981
  }, (0,_utils__WEBPACK_IMPORTED_MODULE_8__.getCommonProps)(rest), {
36982
36982
  flex_direction: "column",
@@ -38262,6 +38262,7 @@ var Option = function Option(props) {
38262
38262
  innerProps = props.innerProps;
38263
38263
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledItem, _extends({
38264
38264
  ref: innerRef,
38265
+ testId: data.testId,
38265
38266
  type: "item",
38266
38267
  className: cx({
38267
38268
  option: true,
@@ -40015,7 +40016,7 @@ __webpack_require__.r(__webpack_exports__);
40015
40016
 
40016
40017
  /*jslint react:true*/
40017
40018
 
40018
- var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"],
40019
+ var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem", "testId"],
40019
40020
  _excluded2 = ["isLeft"],
40020
40021
  _excluded3 = ["subItems", "children"],
40021
40022
  _excluded4 = ["popover"];
@@ -40050,6 +40051,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40050
40051
  subMenu = props.subMenu,
40051
40052
  tooltip = props.tooltip,
40052
40053
  isFirstItem = props.isFirstItem,
40054
+ testId = props.testId,
40053
40055
  rest = _objectWithoutProperties(props, _excluded);
40054
40056
  if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
40055
40057
  ref: ref
@@ -40062,7 +40064,8 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40062
40064
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_12__.MenuItemGroup, _extends({
40063
40065
  ref: ref,
40064
40066
  text: text,
40065
- isFirstItem: isFirstItem
40067
+ isFirstItem: isFirstItem,
40068
+ testId: testId
40066
40069
  }, rest), subItems);
40067
40070
  }
40068
40071
  var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
@@ -40070,6 +40073,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40070
40073
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
40071
40074
  var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
40072
40075
  var labelColor = disabled ? 'gray_9' : variant == 'negative' ? 'red_11' : 'gray_11_50';
40076
+ console.log(rest);
40073
40077
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_13__.MenuItemContainer, {
40074
40078
  ref: ref,
40075
40079
  as: tag,
@@ -40078,6 +40082,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40078
40082
  tooltip: tooltip,
40079
40083
  noWrap: true
40080
40084
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
40085
+ "data-testid": testId,
40081
40086
  "aria-disabled": disabled ? '' : undefined,
40082
40087
  size: size,
40083
40088
  role: "button",
@@ -40292,7 +40297,7 @@ __webpack_require__.r(__webpack_exports__);
40292
40297
 
40293
40298
 
40294
40299
  /*jslint react:true*/
40295
- var _excluded = ["text", "children", "isFirstItem"];
40300
+ var _excluded = ["text", "children", "isFirstItem", "testId"];
40296
40301
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
40297
40302
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40298
40303
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -40305,9 +40310,11 @@ var MenuItemGroup = function MenuItemGroup(props) {
40305
40310
  var text = props.text,
40306
40311
  children = props.children,
40307
40312
  isFirstItem = props.isFirstItem,
40313
+ testId = props.testId,
40308
40314
  rest = _objectWithoutProperties(props, _excluded);
40309
40315
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !isFirstItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_3__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuItemContainer, _extends({
40310
- role: "presentation"
40316
+ role: "presentation",
40317
+ "data-testid": testId
40311
40318
  }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
40312
40319
  variant: "base",
40313
40320
  no_wrap: true,