@luminati-io/uikit 3.2.8 → 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,7 +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
- "data-option": true,
38265
+ testId: data.testId,
38266
38266
  type: "item",
38267
38267
  className: cx({
38268
38268
  option: true,
@@ -40016,7 +40016,7 @@ __webpack_require__.r(__webpack_exports__);
40016
40016
 
40017
40017
  /*jslint react:true*/
40018
40018
 
40019
- 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"],
40020
40020
  _excluded2 = ["isLeft"],
40021
40021
  _excluded3 = ["subItems", "children"],
40022
40022
  _excluded4 = ["popover"];
@@ -40051,6 +40051,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40051
40051
  subMenu = props.subMenu,
40052
40052
  tooltip = props.tooltip,
40053
40053
  isFirstItem = props.isFirstItem,
40054
+ testId = props.testId,
40054
40055
  rest = _objectWithoutProperties(props, _excluded);
40055
40056
  if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
40056
40057
  ref: ref
@@ -40063,7 +40064,8 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40063
40064
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_12__.MenuItemGroup, _extends({
40064
40065
  ref: ref,
40065
40066
  text: text,
40066
- isFirstItem: isFirstItem
40067
+ isFirstItem: isFirstItem,
40068
+ testId: testId
40067
40069
  }, rest), subItems);
40068
40070
  }
40069
40071
  var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
@@ -40071,6 +40073,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40071
40073
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
40072
40074
  var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
40073
40075
  var labelColor = disabled ? 'gray_9' : variant == 'negative' ? 'red_11' : 'gray_11_50';
40076
+ console.log(rest);
40074
40077
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_13__.MenuItemContainer, {
40075
40078
  ref: ref,
40076
40079
  as: tag,
@@ -40079,6 +40082,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40079
40082
  tooltip: tooltip,
40080
40083
  noWrap: true
40081
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,
40082
40086
  "aria-disabled": disabled ? '' : undefined,
40083
40087
  size: size,
40084
40088
  role: "button",
@@ -40293,7 +40297,7 @@ __webpack_require__.r(__webpack_exports__);
40293
40297
 
40294
40298
 
40295
40299
  /*jslint react:true*/
40296
- var _excluded = ["text", "children", "isFirstItem"];
40300
+ var _excluded = ["text", "children", "isFirstItem", "testId"];
40297
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); }
40298
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; }
40299
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; }
@@ -40306,9 +40310,11 @@ var MenuItemGroup = function MenuItemGroup(props) {
40306
40310
  var text = props.text,
40307
40311
  children = props.children,
40308
40312
  isFirstItem = props.isFirstItem,
40313
+ testId = props.testId,
40309
40314
  rest = _objectWithoutProperties(props, _excluded);
40310
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({
40311
- role: "presentation"
40316
+ role: "presentation",
40317
+ "data-testid": testId
40312
40318
  }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
40313
40319
  variant: "base",
40314
40320
  no_wrap: true,