@moda/om 21.3.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.cjs.js CHANGED
@@ -376,6 +376,7 @@ function requireColors() {
376
376
  "elephant": "rgb(202, 203, 204)",
377
377
  "noise": "rgb(242, 243, 245)",
378
378
  "snow": "rgb(255, 255, 255)",
379
+ "silver": "rgb(217, 217, 217)",
379
380
  "strawberry": "rgb(250, 222, 221)",
380
381
  "code-red": "rgb(238, 7, 0)",
381
382
  "mint": "rgb(227, 251, 226)",
@@ -447,7 +448,8 @@ function requireColors() {
447
448
  "fog": "rgb(151, 152, 153)",
448
449
  "elephant": "rgb(202, 203, 204)",
449
450
  "noise": "rgb(242, 243, 245)",
450
- "snow": "rgb(255, 255, 255)"
451
+ "snow": "rgb(255, 255, 255)",
452
+ "silver": "rgb(217, 217, 217)"
451
453
  }
452
454
  };
453
455
  return colors;
@@ -10780,7 +10782,7 @@ var useSelect = function useSelect(_ref) {
10780
10782
  };
10781
10783
  };
10782
10784
 
10783
- var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight"];
10785
+ var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight", "smallMobileText"];
10784
10786
  var Select = function Select(_ref) {
10785
10787
  var _ref2;
10786
10788
  var _ref$allowAutoFill = _ref.allowAutoFill,
@@ -10808,6 +10810,8 @@ var Select = function Select(_ref) {
10808
10810
  colorSwatch = _ref.colorSwatch,
10809
10811
  extraOption = _ref.extraOption,
10810
10812
  paddingRight = _ref.paddingRight,
10813
+ _ref$smallMobileText = _ref.smallMobileText,
10814
+ smallMobileText = _ref$smallMobileText === void 0 ? false : _ref$smallMobileText,
10811
10815
  rest = _objectWithoutProperties(_ref, _excluded$j);
10812
10816
  var _useSelect = useSelect({
10813
10817
  value: value,
@@ -10871,7 +10875,7 @@ var Select = function Select(_ref) {
10871
10875
  value: state.value
10872
10876
  }), /*#__PURE__*/React.createElement(Clickable, {
10873
10877
  id: idRef && "Select__value--".concat(idRef),
10874
- className: classNames('Select__value', _defineProperty$1({}, "Select__value--padding-".concat(paddingRight), paddingRight != null)),
10878
+ className: classNames('Select__value', _defineProperty$1(_defineProperty$1({}, "Select__value--padding-".concat(paddingRight), paddingRight != null), 'Select__value--small', smallMobileText)),
10875
10879
  disabled: disabled,
10876
10880
  onClick: handleToggle,
10877
10881
  "data-test-id": dataTestId,
@@ -11224,6 +11228,12 @@ var NoLineDivider = function NoLineDivider(props) {
11224
11228
  }));
11225
11229
  };
11226
11230
 
11231
+ var LineAboveDivider = function LineAboveDivider(props) {
11232
+ return /*#__PURE__*/React.createElement(Divider, _extends$1({}, props, {
11233
+ type: "line-above"
11234
+ }));
11235
+ };
11236
+
11227
11237
  var _excluded$c = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
11228
11238
  var Expandable = function Expandable(_ref) {
11229
11239
  var name = _ref.name,
@@ -12730,6 +12740,7 @@ exports.FocusOn = FocusOn;
12730
12740
  exports.Input = Field;
12731
12741
  exports.Keyhole = Keyhole;
12732
12742
  exports.Label = Label;
12743
+ exports.LineAboveDivider = LineAboveDivider;
12733
12744
  exports.Loading = Loading;
12734
12745
  exports.LoadingBalls = LoadingBalls;
12735
12746
  exports.LoadingItems1 = LoadingItems1;