@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.esm.js CHANGED
@@ -356,6 +356,7 @@ function requireColors() {
356
356
  "elephant": "rgb(202, 203, 204)",
357
357
  "noise": "rgb(242, 243, 245)",
358
358
  "snow": "rgb(255, 255, 255)",
359
+ "silver": "rgb(217, 217, 217)",
359
360
  "strawberry": "rgb(250, 222, 221)",
360
361
  "code-red": "rgb(238, 7, 0)",
361
362
  "mint": "rgb(227, 251, 226)",
@@ -427,7 +428,8 @@ function requireColors() {
427
428
  "fog": "rgb(151, 152, 153)",
428
429
  "elephant": "rgb(202, 203, 204)",
429
430
  "noise": "rgb(242, 243, 245)",
430
- "snow": "rgb(255, 255, 255)"
431
+ "snow": "rgb(255, 255, 255)",
432
+ "silver": "rgb(217, 217, 217)"
431
433
  }
432
434
  };
433
435
  return colors;
@@ -10760,7 +10762,7 @@ var useSelect = function useSelect(_ref) {
10760
10762
  };
10761
10763
  };
10762
10764
 
10763
- 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"];
10764
10766
  var Select = function Select(_ref) {
10765
10767
  var _ref2;
10766
10768
  var _ref$allowAutoFill = _ref.allowAutoFill,
@@ -10788,6 +10790,8 @@ var Select = function Select(_ref) {
10788
10790
  colorSwatch = _ref.colorSwatch,
10789
10791
  extraOption = _ref.extraOption,
10790
10792
  paddingRight = _ref.paddingRight,
10793
+ _ref$smallMobileText = _ref.smallMobileText,
10794
+ smallMobileText = _ref$smallMobileText === void 0 ? false : _ref$smallMobileText,
10791
10795
  rest = _objectWithoutProperties(_ref, _excluded$j);
10792
10796
  var _useSelect = useSelect({
10793
10797
  value: value,
@@ -10851,7 +10855,7 @@ var Select = function Select(_ref) {
10851
10855
  value: state.value
10852
10856
  }), /*#__PURE__*/React__default.createElement(Clickable, {
10853
10857
  id: idRef && "Select__value--".concat(idRef),
10854
- 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)),
10855
10859
  disabled: disabled,
10856
10860
  onClick: handleToggle,
10857
10861
  "data-test-id": dataTestId,
@@ -11204,6 +11208,12 @@ var NoLineDivider = function NoLineDivider(props) {
11204
11208
  }));
11205
11209
  };
11206
11210
 
11211
+ var LineAboveDivider = function LineAboveDivider(props) {
11212
+ return /*#__PURE__*/React__default.createElement(Divider, _extends$1({}, props, {
11213
+ type: "line-above"
11214
+ }));
11215
+ };
11216
+
11207
11217
  var _excluded$c = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
11208
11218
  var Expandable = function Expandable(_ref) {
11209
11219
  var name = _ref.name,
@@ -12677,4 +12687,4 @@ var Utilities = {
12677
12687
  States: States
12678
12688
  };
12679
12689
 
12680
- export { ArcWindow, AspectRatioBox, Badge, Bradley, Brancusi, Breadcrumb, Breadcrumbs, Breakpoint, BreakpointContext, BreakpointProvider, Button, Checkbox, Circle, Clickable, ColorSwatch, ConfirmProvider, Constrain, ControlLink, CreditCardNumberInput, DEFAULT_PRODUCT_ASPECT_HEIGHT, DEFAULT_PRODUCT_ASPECT_RATIO, DEFAULT_PRODUCT_ASPECT_WIDTH, DefinitionList, Dialog, Diamond, Divider, ExceedConstrain, Expandable, Field, FocusOn, Field as Input, Keyhole, Label, Loading, LoadingBalls, LoadingItems1, LoadingItems2, LoadingItems3, LoadingItems4, LoadingItems5, LoadingItemsLavenderBlue1, LoadingItemsLavenderBlue2, LoadingItemsLavenderBlue3, LoadingItemsLavenderBlue4, LoadingItemsLavenderBlue5, LoadingShapes, LoadingShapesLavenderBlue, LoadingShapesPinkGreen, Mirror, Modal, ModalOverlay, MultiSelect, NavigationPreventer, NoLineDivider, Oval, Overlay, POPOVER_MOUSEOUT_DELAY_MS, Paginator, PasswordInput, Popover, PromoBanner, RadioButton, SKU_COLORS, SearchInput, Select, SelectableButton, SlidingPane, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, Text, TextInput, Textarea, Toast, Triangle, TwoLineDivider, UNMOUNT_DELAY_MS, Utilities, VerticalDivider, Window, discriminate, tokens, useBreakpoint, useClickOutside, useConfirm, useKeyboardListNavigation, usePreventNavigation, useUpdateEffect };
12690
+ export { ArcWindow, AspectRatioBox, Badge, Bradley, Brancusi, Breadcrumb, Breadcrumbs, Breakpoint, BreakpointContext, BreakpointProvider, Button, Checkbox, Circle, Clickable, ColorSwatch, ConfirmProvider, Constrain, ControlLink, CreditCardNumberInput, DEFAULT_PRODUCT_ASPECT_HEIGHT, DEFAULT_PRODUCT_ASPECT_RATIO, DEFAULT_PRODUCT_ASPECT_WIDTH, DefinitionList, Dialog, Diamond, Divider, ExceedConstrain, Expandable, Field, FocusOn, Field as Input, Keyhole, Label, LineAboveDivider, Loading, LoadingBalls, LoadingItems1, LoadingItems2, LoadingItems3, LoadingItems4, LoadingItems5, LoadingItemsLavenderBlue1, LoadingItemsLavenderBlue2, LoadingItemsLavenderBlue3, LoadingItemsLavenderBlue4, LoadingItemsLavenderBlue5, LoadingShapes, LoadingShapesLavenderBlue, LoadingShapesPinkGreen, Mirror, Modal, ModalOverlay, MultiSelect, NavigationPreventer, NoLineDivider, Oval, Overlay, POPOVER_MOUSEOUT_DELAY_MS, Paginator, PasswordInput, Popover, PromoBanner, RadioButton, SKU_COLORS, SearchInput, Select, SelectableButton, SlidingPane, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, Text, TextInput, Textarea, Toast, Triangle, TwoLineDivider, UNMOUNT_DELAY_MS, Utilities, VerticalDivider, Window, discriminate, tokens, useBreakpoint, useClickOutside, useConfirm, useKeyboardListNavigation, usePreventNavigation, useUpdateEffect };