@luminati-io/uikit 3.4.9 → 3.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -30447,11 +30447,14 @@ __webpack_require__.r(__webpack_exports__);
30447
30447
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
30448
30448
  /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
30449
30449
  /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
30450
- /* harmony import */ var _code_snippet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./code_snippet */ "./src/code/code_snippet.js");
30450
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
30451
+ /* harmony import */ var _code_snippet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./code_snippet */ "./src/code/code_snippet.js");
30451
30452
  // LICENSE_CODE ZON
30452
30453
 
30453
30454
 
30454
30455
  /*jslint react:true*/
30456
+ 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); }
30457
+
30455
30458
 
30456
30459
 
30457
30460
 
@@ -30467,15 +30470,18 @@ var CodeBlock = function CodeBlock(props) {
30467
30470
  themeProp = props.theme,
30468
30471
  lineNumbers = props.lineNumbers,
30469
30472
  copyButton = props.copyButton,
30470
- onCopy = props.onCopy,
30471
- with_dropdown = props.with_dropdown;
30472
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockWrapper, {
30473
- className: className,
30473
+ onCopy = props.onCopy;
30474
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockWrapper, _extends({
30474
30475
  "data-testid": "code_block"
30475
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockHeader, {
30476
- $with_dropdown: with_dropdown,
30476
+ }, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockHeader, {
30477
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
30478
+ header: true
30479
+ }),
30477
30480
  $theme: themeProp
30478
- }, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code_snippet__WEBPACK_IMPORTED_MODULE_5__.CodeSnippet, {
30481
+ }, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code_snippet__WEBPACK_IMPORTED_MODULE_6__.CodeSnippet, {
30482
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
30483
+ snippet: true
30484
+ }),
30479
30485
  max_height: max_height,
30480
30486
  lang: lang,
30481
30487
  code: code,
@@ -30509,12 +30515,11 @@ var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_
30509
30515
  }).withConfig({
30510
30516
  displayName: "CodeBlockHeader",
30511
30517
  componentId: "sc-dgi5hi-1"
30512
- })(["", ""], function (props) {
30513
- var padding = props.$with_dropdown ? '0.5em 0.8em' : '0.9em 1em';
30518
+ })(["padding:0.9em 1em;", ""], function (props) {
30514
30519
  if (props.$theme == 'white') {
30515
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding:", ";background-color:", ";color:", ";border-bottom:1px solid ", ";"], padding, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_5);
30520
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";color:", ";border-bottom:1px solid ", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_5);
30516
30521
  }
30517
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding:", ";background-color:", ";color:", ";"], padding, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9);
30522
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";color:", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9);
30518
30523
  });
30519
30524
 
30520
30525
  /***/ }),