@commercetools-uikit/money-input 19.0.0 → 19.2.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.
@@ -739,7 +739,7 @@ const getLanguageLabelBackgroundColor = props => {
739
739
  }
740
740
  return designSystem.designTokens.backgroundColorForLocalizedInputLabel;
741
741
  };
742
- const getCurrencyLabelStyles = props => /*#__PURE__*/react.css("display:flex;color:", designSystem.designTokens.fontColorForInputWhenDisabled, ";cursor:", props.isDisabled ? 'not-allowed' : 'default', ";background-color:", getLanguageLabelBackgroundColor(props), ";border-top-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border-bottom-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border:1px solid ", props.isReadOnly ? designSystem.designTokens.borderColorForInputWhenReadonly : designSystem.designTokens.borderColorForInputWhenDisabled, ";border-right:0;padding:0 ", designSystem.designTokens.spacing25, ";align-items:center;font-size:", designSystem.designTokens.fontSize30, ";box-sizing:border-box;&:focus-within:{border-width:1px;}" + ("" ), "" );
742
+ const getCurrencyLabelStyles = props => /*#__PURE__*/react.css("display:flex;color:", designSystem.designTokens.fontColorForInputWhenDisabled, ";cursor:", props.isDisabled ? 'not-allowed' : 'default', ";background-color:", getLanguageLabelBackgroundColor(props), ";border-top-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border-bottom-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border:1px solid ", props.isReadOnly ? designSystem.designTokens.borderColorForInputWhenReadonly : designSystem.designTokens.borderColorForInputWhenDisabled, ";border-right:0;padding:0 ", designSystem.designTokens.spacing25, ";align-items:center;font-size:", props.isCondensed ? designSystem.designTokens.fontSize20 : designSystem.designTokens.fontSize30, ";box-sizing:border-box;&:focus-within:{border-width:1px;}" + ("" ), "" );
743
743
  const getAmountInputStyles = props => [inputUtils.getInputStyles(props), /*#__PURE__*/react.css("border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0;&::placeholder{color:", designSystem.designTokens.colorNeutral60, ";}" + ("" ), "" )];
744
744
  const getHighPrecisionWrapperStyles = _ref => {
745
745
  let isDisabled = _ref.isDisabled;
@@ -776,6 +776,7 @@ const Portal = props => {
776
776
  Portal.propTypes = {
777
777
  id: _pt__default["default"].string.isRequired,
778
778
  children: _pt__default["default"].node,
779
+ isCondensed: _pt__default["default"].bool,
779
780
  isDisabled: _pt__default["default"].bool,
780
781
  isReadOnly: _pt__default["default"].bool
781
782
  };
@@ -802,6 +803,7 @@ SingleValue.displayName = 'SingleValue';
802
803
  const createCurrencySelectStyles = _ref4 => {
803
804
  let hasWarning = _ref4.hasWarning,
804
805
  hasError = _ref4.hasError,
806
+ isCondensed = _ref4.isCondensed,
805
807
  isDisabled = _ref4.isDisabled,
806
808
  isReadOnly = _ref4.isReadOnly,
807
809
  menuPortalZIndex = _ref4.menuPortalZIndex,
@@ -810,6 +812,7 @@ const createCurrencySelectStyles = _ref4 => {
810
812
  hasWarning,
811
813
  hasError,
812
814
  menuPortalZIndex,
815
+ isCondensed,
813
816
  isReadOnly,
814
817
  isDisabled
815
818
  });
@@ -1177,6 +1180,7 @@ const MoneyInput = props => {
1177
1180
  const currencySelectStyles = createCurrencySelectStyles({
1178
1181
  hasWarning: props.hasWarning,
1179
1182
  hasError: props.hasError,
1183
+ isCondensed: props.isCondensed,
1180
1184
  isDisabled: props.isDisabled,
1181
1185
  isReadOnly: props.isReadOnly,
1182
1186
  menuPortalZIndex: props.menuPortalZIndex,
@@ -1230,6 +1234,7 @@ const MoneyInput = props => {
1230
1234
  onBlur: handleContainerBlur,
1231
1235
  children: [hasNoCurrencies ? jsxRuntime.jsx(CurrencyLabel, {
1232
1236
  id: MoneyInput.getAmountInputId(moneyInputId),
1237
+ isCondensed: props.isCondensed,
1233
1238
  isDisabled: props.isDisabled,
1234
1239
  isReadOnly: props.isReadOnly,
1235
1240
  children: option && option.label
@@ -1350,7 +1355,7 @@ MoneyInput.defaultProps = defaultProps;
1350
1355
  var MoneyInput$1 = MoneyInput;
1351
1356
 
1352
1357
  // NOTE: This string will be replaced on build time with the package version.
1353
- var version = "19.0.0";
1358
+ var version = "19.2.0";
1354
1359
 
1355
1360
  exports["default"] = MoneyInput$1;
1356
1361
  exports.version = version;