@commercetools-uikit/calendar-utils 15.5.1 → 15.6.0

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.
@@ -193,7 +193,7 @@ var getExampleDateStrings = function getExampleDateStrings() {
193
193
  // * a readonly-field cannot be changed, but it might be relevant for validation, so error and warning are checked first
194
194
  // how you can interact with the field is controlled separately by the props, this only influences visuals
195
195
  var getClearSectionStyles = function getClearSectionStyles() {
196
- return /*#__PURE__*/react.css("align-items:center;box-sizing:border-box;display:flex;margin-right:", designSystem.designTokens.spacingXs, ";cursor:pointer;transition:color ", designSystem.designTokens.transitionStandard, ",border-color ", designSystem.designTokens.transitionStandard, ";&:hover svg *{fill:", designSystem.designTokens.colorWarning, ";}" + ("" ), "" );
196
+ return /*#__PURE__*/react.css("align-items:center;box-sizing:border-box;display:flex;margin-right:", designSystem.designTokens.spacing10, ";cursor:pointer;transition:color ", designSystem.designTokens.transitionStandard, ",border-color ", designSystem.designTokens.transitionStandard, ";&:hover svg *{fill:", designSystem.designTokens.colorWarning, ";}" + ("" ), "" );
197
197
  };
198
198
 
199
199
  var getIconBorderColor = function getIconBorderColor(props, state) {
@@ -241,7 +241,7 @@ var getIconFontColor = function getIconFontColor(props) {
241
241
  };
242
242
 
243
243
  var getCalendarIconContainerStyles = function getCalendarIconContainerStyles(props, state) {
244
- return /*#__PURE__*/react.css("align-items:center;box-sizing:border-box;background:none;border:0;border-left:1px solid ", designSystem.designTokens.borderColorForInput, ";border-top-right-radius:", designSystem.designTokens.borderRadiusForInput, ";border-bottom-right-radius:", designSystem.designTokens.borderRadiusForInput, ";border-color:", getIconBorderColor(props, state), ";color:", getIconFontColor(props), ";cursor:", props.isDisabled ? 'not-allowed' : 'default', ";height:100%;display:flex;padding:", designSystem.designTokens.spacingXs, ";outline:0;transition:color ", designSystem.designTokens.transitionStandard, ",border-color ", designSystem.designTokens.transitionStandard, ";&:active,&:hover:not(:disabled)&:not(:read-only),&:focus{border-color:", designSystem.designTokens.borderColorForInputWhenFocused, ";}" + ("" ), "" );
244
+ return /*#__PURE__*/react.css("align-items:center;box-sizing:border-box;background:none;border:0;border-left:1px solid ", designSystem.designTokens.borderColorForInput, ";border-top-right-radius:", designSystem.designTokens.borderRadiusForInput, ";border-bottom-right-radius:", designSystem.designTokens.borderRadiusForInput, ";border-color:", getIconBorderColor(props, state), ";color:", getIconFontColor(props), ";cursor:", props.isDisabled ? 'not-allowed' : 'default', ";height:100%;display:flex;padding:", designSystem.designTokens.spacing10, ";outline:0;transition:color ", designSystem.designTokens.transitionStandard, ",border-color ", designSystem.designTokens.transitionStandard, ";&:active,&:hover:not(:disabled)&:not(:read-only),&:focus{border-color:", designSystem.designTokens.borderColorForInputWhenFocused, ";}" + ("" ), "" );
245
245
  };
246
246
 
247
247
  var getInputBorderColor = function getInputBorderColor(props, state) {
@@ -420,11 +420,11 @@ var getStyles = function getStyles(props) {
420
420
  var styles = [];
421
421
 
422
422
  if (!_includesInstanceProperty__default["default"](_context = ['heading', 'spacing']).call(_context, props.type || '')) {
423
- styles.push( /*#__PURE__*/react.css("text-align:center;padding:", designSystem.designTokens.spacingS, " 0;cursor:default;border-radius:", designSystem.designTokens.borderRadius4, ";" + ("" ), "" ));
423
+ styles.push( /*#__PURE__*/react.css("text-align:center;padding:", designSystem.designTokens.spacing20, " 0;cursor:default;border-radius:", designSystem.designTokens.borderRadius4, ";" + ("" ), "" ));
424
424
  }
425
425
 
426
426
  if (_includesInstanceProperty__default["default"](_context2 = ['heading', 'spacing']).call(_context2, props.type || '')) {
427
- styles.push( /*#__PURE__*/react.css("text-align:center;padding:", designSystem.designTokens.spacingS, " 0;cursor:default;color:", designSystem.designTokens.colorNeutral60, ";" + ("" ), "" ));
427
+ styles.push( /*#__PURE__*/react.css("text-align:center;padding:", designSystem.designTokens.spacing20, " 0;cursor:default;color:", designSystem.designTokens.colorNeutral60, ";" + ("" ), "" ));
428
428
  }
429
429
 
430
430
  if (props.isHighlighted) {
@@ -525,7 +525,7 @@ var CalendarHeader = function CalendarHeader(props) {
525
525
  }, []);
526
526
  return jsxRuntime.jsxs("div", {
527
527
  onMouseDown: onMouseDown,
528
- css: /*#__PURE__*/react.css("display:flex;padding:10px 2% 6px;margin-bottom:", designSystem.designTokens.spacingXs, ";justify-content:space-between;border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";" + ("" ), "" ),
528
+ css: /*#__PURE__*/react.css("display:flex;padding:10px 2% 6px;margin-bottom:", designSystem.designTokens.spacing10, ";justify-content:space-between;border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";" + ("" ), "" ),
529
529
  children: [jsxRuntime.jsxs(Inline__default["default"], {
530
530
  scale: "xs",
531
531
  alignItems: "center",
@@ -645,7 +645,7 @@ var CalendarMenu = /*#__PURE__*/function (_Component) {
645
645
  rest = _objectWithoutProperties(_this$props, _excluded);
646
646
 
647
647
  return jsxRuntime.jsxs("div", _objectSpread(_objectSpread({}, rest), {}, {
648
- css: [/*#__PURE__*/react.css("overflow-y:scroll;color:", designSystem.designTokens.colorSolid, ";font-family:inherit;border:1px solid ", designSystem.designTokens.borderColorForInputWhenFocused, ";border-radius:", designSystem.designTokens.borderRadiusForInput, ";margin-top:", designSystem.designTokens.spacingXs, ";font-size:", designSystem.designTokens.fontSizeDefault, ";position:absolute;box-sizing:border-box;width:100%;background-color:", designSystem.designTokens.colorSurface, ";min-width:", designSystem.designTokens.constraint5, ";z-index:99999;" + ("" ), "" ), !hasFooter && _ref, hasError && /*#__PURE__*/react.css("border-color:", designSystem.designTokens.borderColorForInputWhenError, ";" + ("" ), "" ), hasWarning && /*#__PURE__*/react.css("border-color:", designSystem.designTokens.borderColorForInputWhenWarning, ";" + ("" ), "" ), "" , "" ],
648
+ css: [/*#__PURE__*/react.css("overflow-y:scroll;color:", designSystem.designTokens.colorSolid, ";font-family:inherit;border:1px solid ", designSystem.designTokens.borderColorForInputWhenFocused, ";border-radius:", designSystem.designTokens.borderRadiusForInput, ";margin-top:", designSystem.designTokens.spacing10, ";font-size:", designSystem.designTokens.fontSizeDefault, ";position:absolute;box-sizing:border-box;width:100%;background-color:", designSystem.designTokens.colorSurface, ";min-width:", designSystem.designTokens.constraint5, ";z-index:99999;" + ("" ), "" ), !hasFooter && _ref, hasError && /*#__PURE__*/react.css("border-color:", designSystem.designTokens.borderColorForInputWhenError, ";" + ("" ), "" ), hasWarning && /*#__PURE__*/react.css("border-color:", designSystem.designTokens.borderColorForInputWhenWarning, ";" + ("" ), "" ), "" , "" ],
649
649
  children: [this.props.children, this.props.footer]
650
650
  }));
651
651
  }
@@ -658,7 +658,7 @@ CalendarMenu.displayName = 'CalendarMenu';
658
658
  CalendarMenu.propTypes = {};
659
659
 
660
660
  // NOTE: This string will be replaced on build time with the package version.
661
- var version = "15.5.1";
661
+ var version = "15.6.0";
662
662
 
663
663
  exports.CalendarBody = CalendarBody$1;
664
664
  exports.CalendarContent = CalendarContent$1;