@luminati-io/uikit 3.0.4 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -23205,7 +23205,7 @@ var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
23205
23205
  displayName: "StyledIconButton",
23206
23206
  componentId: "sc-114c1w5-0"
23207
23207
  })(["display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0;box-sizing:border-box;", " cursor:pointer;", ""], function (props) {
23208
- return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toSize)(props.variant == 'icon-button' ? 36 : 24);
23208
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toSize)(props.$variant == 'icon-button' ? 36 : 24);
23209
23209
  }, function (props) {
23210
23210
  var backColor = 'transparent';
23211
23211
  var border = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_6);
@@ -26174,7 +26174,7 @@ Menu.defaultProps = {
26174
26174
  size: 'md'
26175
26175
  };
26176
26176
  Menu.propTypes = {
26177
- size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md']),
26177
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
26178
26178
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired
26179
26179
  };
26180
26180
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Menu);
@@ -26285,11 +26285,11 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
26285
26285
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, iconProps, {
26286
26286
  color: iconColor
26287
26287
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemRight, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(PrimaryText, {
26288
- no_wrap: true,
26288
+ $size: size,
26289
26289
  color: labelColor
26290
26290
  }, text), !isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !!tertiaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
26291
26291
  variant: "sm",
26292
- no_wrap: true,
26292
+ whiteSpace: "nowrap",
26293
26293
  color: "gray_9"
26294
26294
  }, tertiaryText), !!secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryText, null, secondaryText))), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Description, null, description))), isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryIcon, {
26295
26295
  subMenu: true
@@ -26309,7 +26309,7 @@ MenuItem.propTypes = {
26309
26309
  tertiaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
26310
26310
  description: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
26311
26311
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['item', 'divider', 'group']),
26312
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md']),
26312
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
26313
26313
  icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_9__.iconNames),
26314
26314
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape(MenuItem.propTypes)),
26315
26315
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['default', 'negative']),
@@ -26333,11 +26333,16 @@ var MenuItemComp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
26333
26333
  }, rest), children);
26334
26334
  });
26335
26335
  MenuItemComp.displayName = 'MenuItemComp';
26336
+ var sizes = {
26337
+ sm: 32,
26338
+ md: 40,
26339
+ lg: 56
26340
+ };
26336
26341
  var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
26337
26342
  displayName: "MenuItemButton",
26338
26343
  componentId: "sc-vtiffr-0"
26339
26344
  })(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-decoration:none;background:0 none;border:0 none;padding:0 12px;box-sizing:border-box;width:100%;min-width:168px;max-width:540px;height:", ";gap:4px;cursor:", ";&:hover{background-color:", ";}&:hover,:visited,:focus{text-decoration:none;}&:active{background-color:", ";}"], function (props) {
26340
- return (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(props.size == 'sm' ? 32 : 40);
26345
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(sizes[props.size] || sizes.md);
26341
26346
  }, function (props) {
26342
26347
  return props['aria-disabled'] ? 'not-allowed' : 'pointer';
26343
26348
  }, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_4);
@@ -26388,9 +26393,11 @@ var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_icon__
26388
26393
  displayName: "RightIcon",
26389
26394
  componentId: "sc-vtiffr-4"
26390
26395
  })(["margin-left:auto;"]);
26391
- var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
26392
- variant: 'sm',
26393
- no_wrap: true
26396
+ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs(function (props) {
26397
+ return {
26398
+ variant: props.$size == 'lg' ? 'lg' : 'sm',
26399
+ whiteSpace: 'nowrap'
26400
+ };
26394
26401
  }).withConfig({
26395
26402
  displayName: "PrimaryText",
26396
26403
  componentId: "sc-vtiffr-5"
@@ -26398,7 +26405,7 @@ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typo
26398
26405
  var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
26399
26406
  variant: 'sm',
26400
26407
  color: 'gray_9',
26401
- no_wrap: true
26408
+ whiteSpace: 'nowrap'
26402
26409
  }).withConfig({
26403
26410
  displayName: "SecondaryText",
26404
26411
  componentId: "sc-vtiffr-6"
@@ -26406,7 +26413,7 @@ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_ty
26406
26413
  var Description = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
26407
26414
  variant: 'xs',
26408
26415
  color: 'gray_9',
26409
- no_wrap: true
26416
+ whiteSpace: 'nowrap'
26410
26417
  }).withConfig({
26411
26418
  displayName: "Description",
26412
26419
  componentId: "sc-vtiffr-7"
@@ -30546,8 +30553,8 @@ __webpack_require__.r(__webpack_exports__);
30546
30553
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
30547
30554
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
30548
30555
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
30549
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
30550
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
30556
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
30557
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
30551
30558
  // LICENSE_CODE ZON
30552
30559
 
30553
30560
 
@@ -30565,7 +30572,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
30565
30572
 
30566
30573
  var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
30567
30574
  var children = props.children;
30568
- var typographyProps = _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(props)), {}, {
30575
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getTypographyProps)(props)), {}, {
30569
30576
  font_size: {
30570
30577
  italic_sm: 'sm',
30571
30578
  code: 'sm',
@@ -30582,7 +30589,7 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
30582
30589
  italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(props.variant),
30583
30590
  uppercase: props.variant == 'capitals'
30584
30591
  });
30585
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
30592
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
30586
30593
  ref: ref
30587
30594
  }, typographyProps), children);
30588
30595
  });
@@ -30592,7 +30599,7 @@ Style.defaultProps = {
30592
30599
  };
30593
30600
  Style.propTypes = {
30594
30601
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'capitals']),
30595
- whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
30602
+ whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_2__.whiteSpaces)
30596
30603
  };
30597
30604
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);
30598
30605