@moda/om 21.4.0 → 21.5.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.
package/dist/index.esm.js CHANGED
@@ -10762,7 +10762,7 @@ var useSelect = function useSelect(_ref) {
10762
10762
  };
10763
10763
  };
10764
10764
 
10765
- var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight"];
10765
+ var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight", "smallMobileText"];
10766
10766
  var Select = function Select(_ref) {
10767
10767
  var _ref2;
10768
10768
  var _ref$allowAutoFill = _ref.allowAutoFill,
@@ -10790,6 +10790,8 @@ var Select = function Select(_ref) {
10790
10790
  colorSwatch = _ref.colorSwatch,
10791
10791
  extraOption = _ref.extraOption,
10792
10792
  paddingRight = _ref.paddingRight,
10793
+ _ref$smallMobileText = _ref.smallMobileText,
10794
+ smallMobileText = _ref$smallMobileText === void 0 ? false : _ref$smallMobileText,
10793
10795
  rest = _objectWithoutProperties(_ref, _excluded$j);
10794
10796
  var _useSelect = useSelect({
10795
10797
  value: value,
@@ -10853,7 +10855,7 @@ var Select = function Select(_ref) {
10853
10855
  value: state.value
10854
10856
  }), /*#__PURE__*/React__default.createElement(Clickable, {
10855
10857
  id: idRef && "Select__value--".concat(idRef),
10856
- className: classNames('Select__value', _defineProperty$1({}, "Select__value--padding-".concat(paddingRight), paddingRight != null)),
10858
+ className: classNames('Select__value', _defineProperty$1(_defineProperty$1({}, "Select__value--padding-".concat(paddingRight), paddingRight != null), 'Select__value--small', smallMobileText)),
10857
10859
  disabled: disabled,
10858
10860
  onClick: handleToggle,
10859
10861
  "data-test-id": dataTestId,