@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.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/Select/Select.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/Select/Select.scss +6 -0
- package/src/components/Select/Select.tsx +4 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10782,7 +10782,7 @@ var useSelect = function useSelect(_ref) {
|
|
|
10782
10782
|
};
|
|
10783
10783
|
};
|
|
10784
10784
|
|
|
10785
|
-
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"];
|
|
10786
10786
|
var Select = function Select(_ref) {
|
|
10787
10787
|
var _ref2;
|
|
10788
10788
|
var _ref$allowAutoFill = _ref.allowAutoFill,
|
|
@@ -10810,6 +10810,8 @@ var Select = function Select(_ref) {
|
|
|
10810
10810
|
colorSwatch = _ref.colorSwatch,
|
|
10811
10811
|
extraOption = _ref.extraOption,
|
|
10812
10812
|
paddingRight = _ref.paddingRight,
|
|
10813
|
+
_ref$smallMobileText = _ref.smallMobileText,
|
|
10814
|
+
smallMobileText = _ref$smallMobileText === void 0 ? false : _ref$smallMobileText,
|
|
10813
10815
|
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
10814
10816
|
var _useSelect = useSelect({
|
|
10815
10817
|
value: value,
|
|
@@ -10873,7 +10875,7 @@ var Select = function Select(_ref) {
|
|
|
10873
10875
|
value: state.value
|
|
10874
10876
|
}), /*#__PURE__*/React.createElement(Clickable, {
|
|
10875
10877
|
id: idRef && "Select__value--".concat(idRef),
|
|
10876
|
-
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)),
|
|
10877
10879
|
disabled: disabled,
|
|
10878
10880
|
onClick: handleToggle,
|
|
10879
10881
|
"data-test-id": dataTestId,
|