@luminati-io/uikit 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30313,7 +30313,8 @@ Header.defaultProps = {
30313
30313
  variant: 'xl'
30314
30314
  };
30315
30315
  Header.propTypes = {
30316
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl'])
30316
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
30317
+ whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
30317
30318
  };
30318
30319
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header);
30319
30320
 
@@ -30369,7 +30370,8 @@ Hyperlink.defaultProps = {
30369
30370
  variant: 'lg'
30370
30371
  };
30371
30372
  Hyperlink.propTypes = {
30372
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg'])
30373
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
30374
+ whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
30373
30375
  };
30374
30376
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Hyperlink);
30375
30377
 
@@ -30522,7 +30524,8 @@ Paragraph.defaultProps = {
30522
30524
  variant: 'lg_snug'
30523
30525
  };
30524
30526
  Paragraph.propTypes = {
30525
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose'])
30527
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
30528
+ whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
30526
30529
  };
30527
30530
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Paragraph);
30528
30531
 
@@ -30588,7 +30591,8 @@ Style.defaultProps = {
30588
30591
  variant: 'italic_lg'
30589
30592
  };
30590
30593
  Style.propTypes = {
30591
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'capitals'])
30594
+ 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)
30592
30596
  };
30593
30597
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);
30594
30598
 
@@ -30614,7 +30618,7 @@ __webpack_require__.r(__webpack_exports__);
30614
30618
 
30615
30619
 
30616
30620
  /*jslint react:true*/
30617
- var _excluded = ["children", "font_family", "font_weight", "font_size", "line_height", "letter_spacing", "color", "italic", "uppercase", "no_wrap", "underline"];
30621
+ var _excluded = ["children", "font_family", "font_weight", "font_size", "line_height", "letter_spacing", "color", "italic", "uppercase", "no_wrap", "underline", "whiteSpace"];
30618
30622
  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); }
30619
30623
  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; }
30620
30624
  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; }
@@ -30633,6 +30637,7 @@ var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
30633
30637
  uppercase = props.uppercase,
30634
30638
  no_wrap = props.no_wrap,
30635
30639
  underline = props.underline,
30640
+ whiteSpace = props.whiteSpace,
30636
30641
  rest = _objectWithoutProperties(props, _excluded);
30637
30642
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledTypography, _extends({
30638
30643
  ref: ref,
@@ -30645,7 +30650,8 @@ var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
30645
30650
  $italic: italic,
30646
30651
  $uppercase: uppercase,
30647
30652
  $noWrap: no_wrap,
30648
- $underline: underline
30653
+ $underline: underline,
30654
+ $whiteSpace: whiteSpace
30649
30655
  }, rest), children);
30650
30656
  });
30651
30657
  Typography.displayName = 'Typography';
@@ -30661,6 +30667,7 @@ var StyledTypography = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
30661
30667
  }, function (props) {
30662
30668
  return props.$uppercase ? 'letter-spacing: 0.02em;' : null;
30663
30669
  }, function (props) {
30670
+ if (props.$whiteSpace && _utils__WEBPACK_IMPORTED_MODULE_2__.whiteSpaces.includes(props.$whiteSpace)) return "white-space: ".concat(props.$whiteSpace);
30664
30671
  return props.$noWrap ? 'white-space: nowrap;' : null;
30665
30672
  }, function (props) {
30666
30673
  return props.underline ? 'text-decoration: underline;' : null;
@@ -30691,7 +30698,8 @@ __webpack_require__.r(__webpack_exports__);
30691
30698
  /* harmony export */ toIconSize: () => (/* binding */ toIconSize),
30692
30699
  /* harmony export */ toPixel: () => (/* binding */ toPixel),
30693
30700
  /* harmony export */ toSize: () => (/* binding */ toSize),
30694
- /* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
30701
+ /* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements),
30702
+ /* harmony export */ whiteSpaces: () => (/* binding */ whiteSpaces)
30695
30703
  /* harmony export */ });
30696
30704
  /* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
30697
30705
  /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pickBy */ "./node_modules/lodash/pickBy.js");
@@ -30715,6 +30723,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
30715
30723
 
30716
30724
  var colorNames = Object.keys(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color);
30717
30725
  var iconNames = Object.keys(_icons__WEBPACK_IMPORTED_MODULE_0__["default"]);
30726
+ var whiteSpaces = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
30718
30727
  var toPixel = function toPixel(value) {
30719
30728
  return "".concat(value, "px");
30720
30729
  };
@@ -30744,7 +30753,8 @@ var getTypographyProps = function getTypographyProps(props) {
30744
30753
  italic = props.italic,
30745
30754
  color = props.color,
30746
30755
  no_wrap = props.no_wrap,
30747
- underline = props.underline;
30756
+ underline = props.underline,
30757
+ whiteSpace = props.whiteSpace;
30748
30758
  return _objectSpread({
30749
30759
  as: as,
30750
30760
  font_family: font_family,
@@ -30755,7 +30765,8 @@ var getTypographyProps = function getTypographyProps(props) {
30755
30765
  italic: italic,
30756
30766
  color: color,
30757
30767
  no_wrap: no_wrap,
30758
- underline: underline
30768
+ underline: underline,
30769
+ whiteSpace: whiteSpace
30759
30770
  }, getCommonProps(props));
30760
30771
  };
30761
30772
  function fromTheme(propName, defaultValue) {