@moda/om 21.9.0 → 21.10.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
@@ -1335,11 +1335,11 @@ var StateProps = function StateProps(_ref) {
1335
1335
  }, stringifyProps(props)), ' ', !isRenderProps(children) && !isEmpty(childrenProps) && /*#__PURE__*/React__default.createElement("span", null, stringifyProps(childrenProps)), /*#__PURE__*/React__default.createElement("span", null, ' />'));
1336
1336
  };
1337
1337
 
1338
- var _excluded$G = ["props", "children"];
1338
+ var _excluded$H = ["props", "children"];
1339
1339
  var State = function State(_ref) {
1340
1340
  var props = _ref.props,
1341
1341
  children = _ref.children,
1342
- rest = _objectWithoutProperties(_ref, _excluded$G);
1342
+ rest = _objectWithoutProperties(_ref, _excluded$H);
1343
1343
  var styles = useStyles();
1344
1344
  var Specimen = isRenderProps(children) ? children(props) : /*#__PURE__*/React__default.cloneElement(children, props);
1345
1345
  var innerChildren = isRenderProps(children) ? children(props) : children;
@@ -1350,12 +1350,12 @@ var State = function State(_ref) {
1350
1350
  }, innerChildren));
1351
1351
  };
1352
1352
 
1353
- var _excluded$F = ["states", "children"];
1353
+ var _excluded$G = ["states", "children"];
1354
1354
  var States = function States(_ref) {
1355
1355
  var _ref$states = _ref.states,
1356
1356
  states = _ref$states === void 0 ? [{}] : _ref$states,
1357
1357
  children = _ref.children,
1358
- rest = _objectWithoutProperties(_ref, _excluded$F);
1358
+ rest = _objectWithoutProperties(_ref, _excluded$G);
1359
1359
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, states.map(function (props, index) {
1360
1360
  return /*#__PURE__*/React__default.createElement(State, _extends$1({
1361
1361
  key: index,
@@ -5411,7 +5411,7 @@ function requireDist$3() {
5411
5411
 
5412
5412
  var distExports$3 = requireDist$3();
5413
5413
 
5414
- var _excluded$E = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outlined", "children", "className"];
5414
+ var _excluded$F = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outlined", "children", "className"];
5415
5415
  var DEFAULT_PRODUCT_ASPECT_WIDTH = 128;
5416
5416
  var DEFAULT_PRODUCT_ASPECT_HEIGHT = 205;
5417
5417
  var DEFAULT_PRODUCT_ASPECT_RATIO = DEFAULT_PRODUCT_ASPECT_HEIGHT / DEFAULT_PRODUCT_ASPECT_WIDTH;
@@ -5457,7 +5457,7 @@ var AspectRatioBox = /*#__PURE__*/React__default.forwardRef(function (_ref2, for
5457
5457
  outlined = _ref2$outlined === void 0 ? false : _ref2$outlined,
5458
5458
  children = _ref2.children,
5459
5459
  className = _ref2.className,
5460
- rest = _objectWithoutProperties(_ref2, _excluded$E);
5460
+ rest = _objectWithoutProperties(_ref2, _excluded$F);
5461
5461
  var _scaleDimensions = scaleDimensions({
5462
5462
  width: aspectWidth,
5463
5463
  height: aspectHeight,
@@ -5485,22 +5485,22 @@ var AspectRatioBox = /*#__PURE__*/React__default.forwardRef(function (_ref2, for
5485
5485
  });
5486
5486
  AspectRatioBox.displayName = 'AspectRatioBox';
5487
5487
 
5488
- var _excluded$D = ["className", "theme", "children"];
5488
+ var _excluded$E = ["className", "theme", "children"];
5489
5489
  var Badge = function Badge(_ref) {
5490
5490
  var className = _ref.className,
5491
5491
  theme = _ref.theme,
5492
5492
  children = _ref.children,
5493
- rest = _objectWithoutProperties(_ref, _excluded$D);
5493
+ rest = _objectWithoutProperties(_ref, _excluded$E);
5494
5494
  return /*#__PURE__*/React__default.createElement("span", _extends$1({
5495
5495
  className: classNames('Badge', theme && "Badge--".concat(theme), className)
5496
5496
  }, rest), children);
5497
5497
  };
5498
5498
 
5499
- var _excluded$C = ["children", "className"];
5499
+ var _excluded$D = ["children", "className"];
5500
5500
  var Breadcrumbs = function Breadcrumbs(_ref) {
5501
5501
  var children = _ref.children,
5502
5502
  className = _ref.className,
5503
- rest = _objectWithoutProperties(_ref, _excluded$C);
5503
+ rest = _objectWithoutProperties(_ref, _excluded$D);
5504
5504
  var position = 0;
5505
5505
  return /*#__PURE__*/React__default.createElement("ol", _extends$1({
5506
5506
  itemScope: true,
@@ -5518,7 +5518,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
5518
5518
  }));
5519
5519
  };
5520
5520
 
5521
- var _excluded$B = ["className", "styleless", "disabled"];
5521
+ var _excluded$C = ["className", "styleless", "disabled"];
5522
5522
 
5523
5523
  // Define minimal LinkProps that work with both v5 and v7
5524
5524
  // Using Omit to remove conflicting HTML attributes, then add router-specific props
@@ -5537,7 +5537,7 @@ var Clickable = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
5537
5537
  _ref$styleless = _ref.styleless,
5538
5538
  styleless = _ref$styleless === void 0 ? false : _ref$styleless,
5539
5539
  disabled = _ref.disabled,
5540
- rest = _objectWithoutProperties(_ref, _excluded$B);
5540
+ rest = _objectWithoutProperties(_ref, _excluded$C);
5541
5541
  var baseClassName = classNames({
5542
5542
  Clickable: !styleless,
5543
5543
  'Clickable--disabled': disabled
@@ -5565,14 +5565,14 @@ var Clickable = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
5565
5565
  });
5566
5566
  Clickable.displayName = 'Clickable';
5567
5567
 
5568
- var _excluded$A = ["className", "disabled", "children", "underlined"];
5568
+ var _excluded$B = ["className", "disabled", "children", "underlined"];
5569
5569
  var ControlLink = function ControlLink(_ref) {
5570
5570
  var className = _ref.className,
5571
5571
  disabled = _ref.disabled,
5572
5572
  children = _ref.children,
5573
5573
  _ref$underlined = _ref.underlined,
5574
5574
  underlined = _ref$underlined === void 0 ? true : _ref$underlined,
5575
- rest = _objectWithoutProperties(_ref, _excluded$A);
5575
+ rest = _objectWithoutProperties(_ref, _excluded$B);
5576
5576
  return /*#__PURE__*/React__default.createElement(Clickable, _extends$1({}, rest, {
5577
5577
  className: classNames('ControlLink', {
5578
5578
  'ControlLink--underlined': underlined
@@ -5583,12 +5583,12 @@ var ControlLink = function ControlLink(_ref) {
5583
5583
  }), children);
5584
5584
  };
5585
5585
 
5586
- var _excluded$z = ["children", "position", "className"];
5586
+ var _excluded$A = ["children", "position", "className"];
5587
5587
  var Breadcrumb = function Breadcrumb(_ref) {
5588
5588
  var children = _ref.children,
5589
5589
  position = _ref.position,
5590
5590
  className = _ref.className,
5591
- rest = _objectWithoutProperties(_ref, _excluded$z);
5591
+ rest = _objectWithoutProperties(_ref, _excluded$A);
5592
5592
  return /*#__PURE__*/React__default.createElement("li", {
5593
5593
  className: classNames('Breadcrumb', className),
5594
5594
  itemProp: "itemListElement",
@@ -7332,11 +7332,11 @@ var useBreakpoint = function useBreakpoint(props) {
7332
7332
  };
7333
7333
  };
7334
7334
 
7335
- var _excluded$y = ["children", "className"];
7335
+ var _excluded$z = ["children", "className"];
7336
7336
  var Breakpoint = function Breakpoint(_ref) {
7337
7337
  var children = _ref.children,
7338
7338
  className = _ref.className,
7339
- rest = _objectWithoutProperties(_ref, _excluded$y);
7339
+ rest = _objectWithoutProperties(_ref, _excluded$z);
7340
7340
  var _discriminate = discriminate(rest),
7341
7341
  mode = _discriminate.mode,
7342
7342
  breakpoint = _discriminate.breakpoint;
@@ -7347,7 +7347,7 @@ var Breakpoint = function Breakpoint(_ref) {
7347
7347
  }, omit(['at', 'gt', 'lt'], rest)), children) : null;
7348
7348
  };
7349
7349
 
7350
- var _excluded$x = ["secondary", "tertiary", "elevated", "chip", "hover", "focus", "disabled", "className"];
7350
+ var _excluded$y = ["secondary", "tertiary", "elevated", "chip", "hover", "focus", "disabled", "className"];
7351
7351
  var Button = function Button(_ref) {
7352
7352
  var secondary = _ref.secondary,
7353
7353
  tertiary = _ref.tertiary,
@@ -7357,7 +7357,7 @@ var Button = function Button(_ref) {
7357
7357
  focus = _ref.focus,
7358
7358
  disabled = _ref.disabled,
7359
7359
  className = _ref.className,
7360
- rest = _objectWithoutProperties(_ref, _excluded$x);
7360
+ rest = _objectWithoutProperties(_ref, _excluded$y);
7361
7361
  return /*#__PURE__*/React__default.createElement(Clickable, _extends$1({
7362
7362
  className: classNames('Button', {
7363
7363
  'Button--chip': chip,
@@ -7481,7 +7481,7 @@ var Circle12 = function Circle12(_a) {
7481
7481
  };
7482
7482
  Circle12.displayName = 'Circle12';
7483
7483
 
7484
- var _excluded$w = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId", "id"];
7484
+ var _excluded$x = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId", "id"];
7485
7485
  var CHECKED_ITEM_PROPS = {
7486
7486
  className: 'Checkbox__check-mark',
7487
7487
  height: '85%',
@@ -7500,7 +7500,7 @@ var Checkbox = function Checkbox(_ref) {
7500
7500
  checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
7501
7501
  dataTestId = _ref.dataTestId,
7502
7502
  id = _ref.id,
7503
- rest = _objectWithoutProperties(_ref, _excluded$w);
7503
+ rest = _objectWithoutProperties(_ref, _excluded$x);
7504
7504
  var _useState = useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
7505
7505
  _useState2 = _slicedToArray(_useState, 2),
7506
7506
  isChecked = _useState2[0],
@@ -7590,7 +7590,7 @@ var SKU_COLORS = {
7590
7590
  yellow: '#ffca44'
7591
7591
  };
7592
7592
 
7593
- var _excluded$v = ["className", "size", "color", "backgroundUrl", "focus", "hover", "selected", "soldOut", "onSale", "onClick", "onMouseEnter", "disabled", "title"];
7593
+ var _excluded$w = ["className", "size", "color", "backgroundUrl", "focus", "hover", "selected", "soldOut", "onSale", "onClick", "onMouseEnter", "disabled", "title"];
7594
7594
  var ColorSwatch = function ColorSwatch(_ref) {
7595
7595
  var _SKU_COLORS;
7596
7596
  var className = _ref.className,
@@ -7606,7 +7606,7 @@ var ColorSwatch = function ColorSwatch(_ref) {
7606
7606
  onMouseEnter = _ref.onMouseEnter,
7607
7607
  disabled = _ref.disabled,
7608
7608
  title = _ref.title,
7609
- rest = _objectWithoutProperties(_ref, _excluded$v);
7609
+ rest = _objectWithoutProperties(_ref, _excluded$w);
7610
7610
  var handleClick = useCallback(function (_event) {
7611
7611
  onClick === null || onClick === void 0 || onClick(color, title);
7612
7612
  }, [color, title, onClick]);
@@ -7641,7 +7641,7 @@ var ColorSwatch = function ColorSwatch(_ref) {
7641
7641
  }));
7642
7642
  };
7643
7643
 
7644
- var _excluded$u = ["className", "children", "onClose", "shards", "autoFocus"];
7644
+ var _excluded$v = ["className", "children", "onClose", "shards", "autoFocus"];
7645
7645
  var Modal = function Modal(_ref) {
7646
7646
  var className = _ref.className,
7647
7647
  children = _ref.children,
@@ -7649,7 +7649,7 @@ var Modal = function Modal(_ref) {
7649
7649
  shards = _ref.shards,
7650
7650
  _ref$autoFocus = _ref.autoFocus,
7651
7651
  autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
7652
- rest = _objectWithoutProperties(_ref, _excluded$u);
7652
+ rest = _objectWithoutProperties(_ref, _excluded$v);
7653
7653
  return /*#__PURE__*/React__default.createElement("div", _extends$1({
7654
7654
  className: classNames('Modal', className),
7655
7655
  role: "dialog",
@@ -7662,14 +7662,14 @@ var Modal = function Modal(_ref) {
7662
7662
  }, children));
7663
7663
  };
7664
7664
 
7665
- var _excluded$t = ["className", "children", "show"];
7665
+ var _excluded$u = ["className", "children", "show"];
7666
7666
  var UNMOUNT_DELAY_MS = 500;
7667
7667
  var Overlay = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
7668
7668
  var className = _ref.className,
7669
7669
  children = _ref.children,
7670
7670
  _ref$show = _ref.show,
7671
7671
  show = _ref$show === void 0 ? true : _ref$show,
7672
- rest = _objectWithoutProperties(_ref, _excluded$t);
7672
+ rest = _objectWithoutProperties(_ref, _excluded$u);
7673
7673
  var _useState = useState(show),
7674
7674
  _useState2 = _slicedToArray(_useState, 2),
7675
7675
  open = _useState2[0],
@@ -7696,7 +7696,7 @@ var Overlay = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
7696
7696
  });
7697
7697
  Overlay.displayName = 'Overlay';
7698
7698
 
7699
- var _excluded$s = ["children", "className", "contentClassName", "onClose", "overlayClassName", "show", "shards", "autoFocus"];
7699
+ var _excluded$t = ["children", "className", "contentClassName", "onClose", "overlayClassName", "show", "shards", "autoFocus"];
7700
7700
  var ModalOverlay = function ModalOverlay(_ref) {
7701
7701
  var children = _ref.children,
7702
7702
  className = _ref.className,
@@ -7707,7 +7707,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
7707
7707
  show = _ref$show === void 0 ? true : _ref$show,
7708
7708
  shards = _ref.shards,
7709
7709
  autoFocus = _ref.autoFocus,
7710
- rest = _objectWithoutProperties(_ref, _excluded$s);
7710
+ rest = _objectWithoutProperties(_ref, _excluded$t);
7711
7711
  var element = useMemo(function () {
7712
7712
  return typeof document !== 'undefined' ? document.createElement('div') : null;
7713
7713
  }, []);
@@ -7733,7 +7733,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
7733
7733
  }, children))), element);
7734
7734
  };
7735
7735
 
7736
- var _excluded$r = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
7736
+ var _excluded$s = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
7737
7737
  var Stack = function Stack(_ref) {
7738
7738
  var className = _ref.className,
7739
7739
  children = _ref.children,
@@ -7743,7 +7743,7 @@ var Stack = function Stack(_ref) {
7743
7743
  alignItems = _ref.alignItems,
7744
7744
  justifyContent = _ref.justifyContent,
7745
7745
  style = _ref.style,
7746
- rest = _objectWithoutProperties(_ref, _excluded$r);
7746
+ rest = _objectWithoutProperties(_ref, _excluded$s);
7747
7747
  return /*#__PURE__*/React__default.createElement("div", _extends$1({
7748
7748
  className: classNames("Stack Stack--".concat(direction, "-").concat(space), className),
7749
7749
  style: _objectSpread2(_objectSpread2({}, style), {}, {
@@ -7753,7 +7753,7 @@ var Stack = function Stack(_ref) {
7753
7753
  }, rest), children);
7754
7754
  };
7755
7755
 
7756
- var _excluded$q = ["as", "className", "treatment", "color", "family", "children", "style"];
7756
+ var _excluded$r = ["as", "className", "treatment", "color", "family", "children", "style"];
7757
7757
  var Text = function Text(_ref) {
7758
7758
  var _ref$as = _ref.as,
7759
7759
  Component = _ref$as === void 0 ? 'span' : _ref$as,
@@ -7765,7 +7765,7 @@ var Text = function Text(_ref) {
7765
7765
  family = _ref.family,
7766
7766
  children = _ref.children,
7767
7767
  style = _ref.style,
7768
- rest = _objectWithoutProperties(_ref, _excluded$q);
7768
+ rest = _objectWithoutProperties(_ref, _excluded$r);
7769
7769
  return /*#__PURE__*/React__default.createElement(Component, _extends$1({
7770
7770
  className: classNames("Text Text--".concat(treatment, " ").concat(family ? "Text--".concat(family) : ''), className),
7771
7771
  style: _objectSpread2({
@@ -7774,13 +7774,13 @@ var Text = function Text(_ref) {
7774
7774
  }, rest), children);
7775
7775
  };
7776
7776
 
7777
- var _excluded$p = ["title", "message", "actions", "contentClassName"];
7777
+ var _excluded$q = ["title", "message", "actions", "contentClassName"];
7778
7778
  var Dialog = function Dialog(_ref) {
7779
7779
  var title = _ref.title,
7780
7780
  message = _ref.message,
7781
7781
  actions = _ref.actions,
7782
7782
  contentClassName = _ref.contentClassName,
7783
- rest = _objectWithoutProperties(_ref, _excluded$p);
7783
+ rest = _objectWithoutProperties(_ref, _excluded$q);
7784
7784
  var titleId = useId();
7785
7785
  return /*#__PURE__*/React__default.createElement(ModalOverlay, _extends$1({
7786
7786
  contentClassName: classNames('Dialog', contentClassName),
@@ -7882,21 +7882,21 @@ var useConfirm = function useConfirm() {
7882
7882
  return useContext(ConfirmContext);
7883
7883
  };
7884
7884
 
7885
- var _excluded$o = ["className", "children"];
7885
+ var _excluded$p = ["className", "children"];
7886
7886
  var Constrain = function Constrain(_ref) {
7887
7887
  var className = _ref.className,
7888
7888
  children = _ref.children,
7889
- rest = _objectWithoutProperties(_ref, _excluded$o);
7889
+ rest = _objectWithoutProperties(_ref, _excluded$p);
7890
7890
  return /*#__PURE__*/React__default.createElement("div", _extends$1({
7891
7891
  className: classNames('Constrain', className)
7892
7892
  }, rest), children);
7893
7893
  };
7894
7894
 
7895
- var _excluded$n = ["className", "children"];
7895
+ var _excluded$o = ["className", "children"];
7896
7896
  var ExceedConstrain = function ExceedConstrain(_ref) {
7897
7897
  var className = _ref.className,
7898
7898
  children = _ref.children,
7899
- rest = _objectWithoutProperties(_ref, _excluded$n);
7899
+ rest = _objectWithoutProperties(_ref, _excluded$o);
7900
7900
  return /*#__PURE__*/React__default.createElement("div", _extends$1({
7901
7901
  className: classNames('ExceedConstrain', className)
7902
7902
  }, rest), children);
@@ -9860,7 +9860,7 @@ var Warning16 = function Warning16(_a) {
9860
9860
  };
9861
9861
  Warning16.displayName = 'Warning16';
9862
9862
 
9863
- var _excluded$m = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange", "onChangeEvent"];
9863
+ var _excluded$n = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange", "onChangeEvent"];
9864
9864
  var TextInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
9865
9865
  var className = _ref.className,
9866
9866
  disabled = _ref.disabled,
@@ -9870,7 +9870,7 @@ var TextInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
9870
9870
  label = _ref.label,
9871
9871
  _onChange = _ref.onChange,
9872
9872
  onChangeEvent = _ref.onChangeEvent,
9873
- rest = _objectWithoutProperties(_ref, _excluded$m);
9873
+ rest = _objectWithoutProperties(_ref, _excluded$n);
9874
9874
  return /*#__PURE__*/React__default.createElement("input", _extends$1({
9875
9875
  className: classNames('TextInput', className, {
9876
9876
  'TextInput--focus': focus,
@@ -10326,7 +10326,7 @@ var Search20 = function Search20(_a) {
10326
10326
  };
10327
10327
  Search20.displayName = 'Search20';
10328
10328
 
10329
- var _excluded$l = ["className", "onChange", "onClear", "roundBorders", "noBorders", "value", "searchIconSize"];
10329
+ var _excluded$m = ["className", "onChange", "onClear", "roundBorders", "noBorders", "value", "searchIconSize"];
10330
10330
  var SEARCH_ICON_DEFAULT_SIZE = 20;
10331
10331
  var DEFAULT_INPUT_VALUE = '';
10332
10332
  var SearchInput = function SearchInput(_ref) {
@@ -10341,7 +10341,7 @@ var SearchInput = function SearchInput(_ref) {
10341
10341
  value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
10342
10342
  _ref$searchIconSize = _ref.searchIconSize,
10343
10343
  searchIconSize = _ref$searchIconSize === void 0 ? SEARCH_ICON_DEFAULT_SIZE : _ref$searchIconSize,
10344
- rest = _objectWithoutProperties(_ref, _excluded$l);
10344
+ rest = _objectWithoutProperties(_ref, _excluded$m);
10345
10345
  var ref = useRef(null);
10346
10346
  var _useState = useState(value),
10347
10347
  _useState2 = _slicedToArray(_useState, 2),
@@ -10606,7 +10606,7 @@ var SelectOption = function SelectOption(_ref) {
10606
10606
  }), label);
10607
10607
  };
10608
10608
 
10609
- var _excluded$k = ["idRef", "searchable", "autoFocus", "options", "selectedOption", "onSelect", "onFocus", "className", "dataTestId", "extraOption", "onCloseDropdown"];
10609
+ var _excluded$l = ["idRef", "searchable", "autoFocus", "options", "selectedOption", "onSelect", "onFocus", "className", "dataTestId", "extraOption", "onCloseDropdown"];
10610
10610
  var SelectOptions = function SelectOptions(_ref) {
10611
10611
  var idRef = _ref.idRef,
10612
10612
  searchable = _ref.searchable,
@@ -10620,7 +10620,7 @@ var SelectOptions = function SelectOptions(_ref) {
10620
10620
  dataTestId = _ref.dataTestId,
10621
10621
  extraOption = _ref.extraOption,
10622
10622
  onCloseDropdown = _ref.onCloseDropdown,
10623
- rest = _objectWithoutProperties(_ref, _excluded$k);
10623
+ rest = _objectWithoutProperties(_ref, _excluded$l);
10624
10624
  var _useState = useState(''),
10625
10625
  _useState2 = _slicedToArray(_useState, 2),
10626
10626
  searchPhrase = _useState2[0],
@@ -10805,7 +10805,7 @@ var useSelect = function useSelect(_ref) {
10805
10805
  };
10806
10806
  };
10807
10807
 
10808
- var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight", "smallMobileText"];
10808
+ var _excluded$k = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight", "smallMobileText"];
10809
10809
  var Select = function Select(_ref) {
10810
10810
  var _ref2, _ref3;
10811
10811
  var _ref$allowAutoFill = _ref.allowAutoFill,
@@ -10835,7 +10835,7 @@ var Select = function Select(_ref) {
10835
10835
  paddingRight = _ref.paddingRight,
10836
10836
  _ref$smallMobileText = _ref.smallMobileText,
10837
10837
  smallMobileText = _ref$smallMobileText === void 0 ? false : _ref$smallMobileText,
10838
- rest = _objectWithoutProperties(_ref, _excluded$j);
10838
+ rest = _objectWithoutProperties(_ref, _excluded$k);
10839
10839
  var _useFormControlContex = useFormControlContext(),
10840
10840
  errorDisplayedByParent = _useFormControlContex.displaysError;
10841
10841
  var _useSelect = useSelect({
@@ -11028,7 +11028,7 @@ var Exit16 = function Exit16(_a) {
11028
11028
  };
11029
11029
  Exit16.displayName = 'Exit16';
11030
11030
 
11031
- var _excluded$i = ["className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "onChange", "options", "searchable", "shiftIconLeftwards", "value"];
11031
+ var _excluded$j = ["className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "onChange", "options", "searchable", "shiftIconLeftwards", "value"];
11032
11032
  var MultiSelect = function MultiSelect(_ref) {
11033
11033
  var className = _ref.className,
11034
11034
  defaultValue = _ref.defaultValue,
@@ -11043,7 +11043,7 @@ var MultiSelect = function MultiSelect(_ref) {
11043
11043
  searchable = _ref.searchable,
11044
11044
  shiftIconLeftwards = _ref.shiftIconLeftwards,
11045
11045
  value = _ref.value,
11046
- rest = _objectWithoutProperties(_ref, _excluded$i);
11046
+ rest = _objectWithoutProperties(_ref, _excluded$j);
11047
11047
  var _useSelect = useSelect({
11048
11048
  value: value,
11049
11049
  defaultValue: defaultValue
@@ -11156,14 +11156,14 @@ var MultiSelect = function MultiSelect(_ref) {
11156
11156
  }));
11157
11157
  };
11158
11158
 
11159
- var _excluded$h = ["className", "children", "error", "label", "placeholder"];
11159
+ var _excluded$i = ["className", "children", "error", "label", "placeholder"];
11160
11160
  var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
11161
11161
  var className = _ref.className,
11162
11162
  children = _ref.children,
11163
11163
  error = _ref.error,
11164
11164
  label = _ref.label,
11165
11165
  placeholder = _ref.placeholder,
11166
- rest = _objectWithoutProperties(_ref, _excluded$h);
11166
+ rest = _objectWithoutProperties(_ref, _excluded$i);
11167
11167
  var id = useId();
11168
11168
  var errorId = "".concat(id, "-error");
11169
11169
  var fieldContextValue = useMemo(function () {
@@ -11207,16 +11207,16 @@ var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
11207
11207
  });
11208
11208
  Field.displayName = 'Field';
11209
11209
 
11210
- var _excluded$g = ["onChange"];
11210
+ var _excluded$h = ["onChange"];
11211
11211
  var CreditCardNumberInputField = function CreditCardNumberInputField(_ref) {
11212
11212
  var onChange = _ref.onChange,
11213
- rest = _objectWithoutProperties(_ref, _excluded$g);
11213
+ rest = _objectWithoutProperties(_ref, _excluded$h);
11214
11214
  return /*#__PURE__*/React__default.createElement(Field, _extends$1({}, rest, {
11215
11215
  onChangeEvent: onChange
11216
11216
  }));
11217
11217
  };
11218
11218
 
11219
- var _excluded$f = ["value", "disabled", "readOnly", "defaultValue", "maskChar", "alwaysShowMask", "onMouseDown", "onFocus", "onBlur", "onChange"];
11219
+ var _excluded$g = ["value", "disabled", "readOnly", "defaultValue", "maskChar", "alwaysShowMask", "onMouseDown", "onFocus", "onBlur", "onChange"];
11220
11220
  var DEFAULT_MASK = '9999 9999 9999 9999';
11221
11221
  var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
11222
11222
  var _ref2;
@@ -11230,7 +11230,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
11230
11230
  onFocus = _ref.onFocus,
11231
11231
  onBlur = _ref.onBlur,
11232
11232
  onChange = _ref.onChange,
11233
- rest = _objectWithoutProperties(_ref, _excluded$f);
11233
+ rest = _objectWithoutProperties(_ref, _excluded$g);
11234
11234
  var _useState = useState((_ref2 = propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : ''),
11235
11235
  _useState2 = _slicedToArray(_useState, 2),
11236
11236
  value = _useState2[0],
@@ -11268,18 +11268,18 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
11268
11268
  }, /*#__PURE__*/React__default.createElement(CreditCardNumberInputField, rest));
11269
11269
  };
11270
11270
 
11271
- var _excluded$e = ["term", "children", "className"];
11271
+ var _excluded$f = ["term", "children", "className"];
11272
11272
  var DefinitionList = function DefinitionList(_ref) {
11273
11273
  var term = _ref.term,
11274
11274
  children = _ref.children,
11275
11275
  className = _ref.className,
11276
- rest = _objectWithoutProperties(_ref, _excluded$e);
11276
+ rest = _objectWithoutProperties(_ref, _excluded$f);
11277
11277
  return /*#__PURE__*/React__default.createElement("dl", _extends$1({
11278
11278
  className: classNames('DefinitionList', className)
11279
11279
  }, rest), /*#__PURE__*/React__default.createElement("dt", null, term), /*#__PURE__*/React__default.createElement("dd", null, children));
11280
11280
  };
11281
11281
 
11282
- var _excluded$d = ["text", "treatment", "color", "family", "type", "className"];
11282
+ var _excluded$e = ["text", "treatment", "color", "family", "type", "className"];
11283
11283
  var Divider = function Divider(_ref) {
11284
11284
  var text = _ref.text,
11285
11285
  treatment = _ref.treatment,
@@ -11287,7 +11287,7 @@ var Divider = function Divider(_ref) {
11287
11287
  family = _ref.family,
11288
11288
  type = _ref.type,
11289
11289
  className = _ref.className,
11290
- rest = _objectWithoutProperties(_ref, _excluded$d);
11290
+ rest = _objectWithoutProperties(_ref, _excluded$e);
11291
11291
  var defaultTreatment = type === 'two-line' ? 'eyebrow' : 'h5';
11292
11292
  var defaultFamily = type === 'two-line' ? undefined : 'serif';
11293
11293
  return /*#__PURE__*/React__default.createElement("div", _extends$1({
@@ -11320,7 +11320,7 @@ var LineAboveDivider = function LineAboveDivider(props) {
11320
11320
  }));
11321
11321
  };
11322
11322
 
11323
- var _excluded$c = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
11323
+ var _excluded$d = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
11324
11324
  var Expandable = function Expandable(_ref) {
11325
11325
  var name = _ref.name,
11326
11326
  children = _ref.children,
@@ -11338,7 +11338,7 @@ var Expandable = function Expandable(_ref) {
11338
11338
  background = _ref$background === void 0 ? 'light' : _ref$background,
11339
11339
  _ref$border = _ref.border,
11340
11340
  border = _ref$border === void 0 ? true : _ref$border,
11341
- rest = _objectWithoutProperties(_ref, _excluded$c);
11341
+ rest = _objectWithoutProperties(_ref, _excluded$d);
11342
11342
  var _useState = useState(defaultExpanded),
11343
11343
  _useState2 = _slicedToArray(_useState, 2),
11344
11344
  expanded = _useState2[0],
@@ -11369,11 +11369,11 @@ var Expandable = function Expandable(_ref) {
11369
11369
  }, expanded || !virtual ? children : null));
11370
11370
  };
11371
11371
 
11372
- var _excluded$b = ["className", "hidden"];
11372
+ var _excluded$c = ["className", "hidden"];
11373
11373
  var Label = function Label(_ref) {
11374
11374
  var className = _ref.className,
11375
11375
  hidden = _ref.hidden,
11376
- rest = _objectWithoutProperties(_ref, _excluded$b);
11376
+ rest = _objectWithoutProperties(_ref, _excluded$c);
11377
11377
  return /*#__PURE__*/React__default.createElement("label", _extends$1({
11378
11378
  className: classNames('Label', className, {
11379
11379
  'Label--hidden': hidden
@@ -11583,11 +11583,11 @@ var ArcWindow = function ArcWindow() {
11583
11583
  }));
11584
11584
  };
11585
11585
 
11586
- var _excluded$a = ["className"];
11586
+ var _excluded$b = ["className"];
11587
11587
  var FRAMES = [Triangle, Diamond, ArcWindow, Circle];
11588
11588
  var Loading = function Loading(_ref) {
11589
11589
  var className = _ref.className,
11590
- rest = _objectWithoutProperties(_ref, _excluded$a);
11590
+ rest = _objectWithoutProperties(_ref, _excluded$b);
11591
11591
  var _useCursor = distExports.useCursor({
11592
11592
  max: FRAMES.length
11593
11593
  }),
@@ -12524,6 +12524,7 @@ var OTPInput = function OTPInput(_a) {
12524
12524
  }));
12525
12525
  };
12526
12526
 
12527
+ var _excluded$a = ["aria-describedby", "aria-label", "autoComplete", "className", "disabled", "error", "focus", "id", "inputClassName", "inputType", "label", "name", "numInputs", "onChange", "onPaste", "placeholder", "renderSeparator", "required", "shouldAutoFocus", "value"];
12527
12528
  var getInputAriaLabel = function getInputAriaLabel(index, inputCount, ariaLabel, label) {
12528
12529
  var baseLabel = ariaLabel || label || 'One-time password digit';
12529
12530
  return "".concat(baseLabel, " ").concat(index + 1, " of ").concat(inputCount);
@@ -12552,8 +12553,13 @@ var OtpInput = function OtpInput(_ref) {
12552
12553
  required = _ref.required,
12553
12554
  shouldAutoFocus = _ref.shouldAutoFocus,
12554
12555
  _ref$value = _ref.value,
12555
- value = _ref$value === void 0 ? '' : _ref$value;
12556
- return /*#__PURE__*/React__default.createElement(OTPInput, {
12556
+ value = _ref$value === void 0 ? '' : _ref$value,
12557
+ rest = _objectWithoutProperties(_ref, _excluded$a);
12558
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("input", {
12559
+ type: "hidden",
12560
+ name: name,
12561
+ value: value
12562
+ }), /*#__PURE__*/React__default.createElement(OTPInput, _extends$1({}, rest, {
12557
12563
  containerStyle: classNames('OtpInput', className),
12558
12564
  inputType: inputType,
12559
12565
  numInputs: numInputs,
@@ -12577,11 +12583,10 @@ var OtpInput = function OtpInput(_ref) {
12577
12583
  'OtpInput__input--focus': focus
12578
12584
  }),
12579
12585
  disabled: disabled,
12580
- name: name,
12581
12586
  required: required
12582
12587
  }));
12583
12588
  }
12584
- });
12589
+ })));
12585
12590
  };
12586
12591
  OtpInput.displayName = 'OtpInput';
12587
12592