@moda/om 21.13.0 → 21.14.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 +81 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +81 -62
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/Constrain/Constrain.d.ts +4 -1
- package/dist/src/components/Drawer/Drawer.d.ts +6 -0
- package/dist/src/components/Drawer/Drawer.stories.d.ts +6 -0
- package/dist/src/components/Drawer/Drawer.test.d.ts +1 -0
- package/dist/src/components/Drawer/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -2
- package/src/components/Constrain/Constrain.scss +4 -0
- package/src/components/Constrain/Constrain.tsx +13 -3
- package/src/components/Drawer/Drawer.scss +22 -0
- package/src/components/Drawer/Drawer.stories.tsx +26 -0
- package/src/components/Drawer/Drawer.test.tsx +27 -0
- package/src/components/Drawer/Drawer.tsx +13 -0
- package/src/components/Drawer/index.ts +1 -0
- package/src/components/index.ts +1 -0
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$
|
|
1338
|
+
var _excluded$I = ["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$
|
|
1342
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
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$
|
|
1353
|
+
var _excluded$H = ["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$
|
|
1358
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
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$
|
|
5414
|
+
var _excluded$G = ["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$
|
|
5460
|
+
rest = _objectWithoutProperties(_ref2, _excluded$G);
|
|
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$
|
|
5488
|
+
var _excluded$F = ["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$
|
|
5493
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
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$
|
|
5499
|
+
var _excluded$E = ["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$
|
|
5503
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
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$
|
|
5521
|
+
var _excluded$D = ["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$
|
|
5540
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
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$
|
|
5568
|
+
var _excluded$C = ["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$
|
|
5575
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
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$
|
|
5586
|
+
var _excluded$B = ["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$
|
|
5591
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
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$
|
|
7335
|
+
var _excluded$A = ["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$
|
|
7339
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
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$
|
|
7350
|
+
var _excluded$z = ["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$
|
|
7360
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
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$
|
|
7484
|
+
var _excluded$y = ["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$
|
|
7503
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
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$
|
|
7593
|
+
var _excluded$x = ["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$
|
|
7609
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
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$
|
|
7644
|
+
var _excluded$w = ["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$
|
|
7652
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
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$
|
|
7665
|
+
var _excluded$v = ["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$
|
|
7672
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
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$
|
|
7699
|
+
var _excluded$u = ["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$
|
|
7710
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
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$
|
|
7736
|
+
var _excluded$t = ["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$
|
|
7746
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
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$
|
|
7756
|
+
var _excluded$s = ["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$
|
|
7768
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
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$
|
|
7777
|
+
var _excluded$r = ["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$
|
|
7783
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
7784
7784
|
var titleId = useId();
|
|
7785
7785
|
return /*#__PURE__*/React__default.createElement(ModalOverlay, _extends$1({
|
|
7786
7786
|
contentClassName: classNames('Dialog', contentClassName),
|
|
@@ -7882,21 +7882,25 @@ var useConfirm = function useConfirm() {
|
|
|
7882
7882
|
return useContext(ConfirmContext);
|
|
7883
7883
|
};
|
|
7884
7884
|
|
|
7885
|
-
var _excluded$
|
|
7885
|
+
var _excluded$q = ["className", "children", "size"];
|
|
7886
7886
|
var Constrain = function Constrain(_ref) {
|
|
7887
7887
|
var className = _ref.className,
|
|
7888
7888
|
children = _ref.children,
|
|
7889
|
-
|
|
7889
|
+
_ref$size = _ref.size,
|
|
7890
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
7891
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
7890
7892
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7891
|
-
className: classNames('Constrain',
|
|
7893
|
+
className: classNames('Constrain', {
|
|
7894
|
+
'Constrain--wide': size === 'wide'
|
|
7895
|
+
}, className)
|
|
7892
7896
|
}, rest), children);
|
|
7893
7897
|
};
|
|
7894
7898
|
|
|
7895
|
-
var _excluded$
|
|
7899
|
+
var _excluded$p = ["className", "children"];
|
|
7896
7900
|
var ExceedConstrain = function ExceedConstrain(_ref) {
|
|
7897
7901
|
var className = _ref.className,
|
|
7898
7902
|
children = _ref.children,
|
|
7899
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7903
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
7900
7904
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7901
7905
|
className: classNames('ExceedConstrain', className)
|
|
7902
7906
|
}, rest), children);
|
|
@@ -9860,7 +9864,7 @@ var Warning16 = function Warning16(_a) {
|
|
|
9860
9864
|
};
|
|
9861
9865
|
Warning16.displayName = 'Warning16';
|
|
9862
9866
|
|
|
9863
|
-
var _excluded$
|
|
9867
|
+
var _excluded$o = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange", "onChangeEvent"];
|
|
9864
9868
|
var TextInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
9865
9869
|
var className = _ref.className,
|
|
9866
9870
|
disabled = _ref.disabled,
|
|
@@ -9870,7 +9874,7 @@ var TextInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
9870
9874
|
label = _ref.label,
|
|
9871
9875
|
_onChange = _ref.onChange,
|
|
9872
9876
|
onChangeEvent = _ref.onChangeEvent,
|
|
9873
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9877
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
9874
9878
|
return /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
9875
9879
|
className: classNames('TextInput', className, {
|
|
9876
9880
|
'TextInput--focus': focus,
|
|
@@ -10326,7 +10330,7 @@ var Search20 = function Search20(_a) {
|
|
|
10326
10330
|
};
|
|
10327
10331
|
Search20.displayName = 'Search20';
|
|
10328
10332
|
|
|
10329
|
-
var _excluded$
|
|
10333
|
+
var _excluded$n = ["className", "onChange", "onClear", "roundBorders", "noBorders", "value", "searchIconSize"];
|
|
10330
10334
|
var SEARCH_ICON_DEFAULT_SIZE = 20;
|
|
10331
10335
|
var DEFAULT_INPUT_VALUE = '';
|
|
10332
10336
|
var SearchInput = function SearchInput(_ref) {
|
|
@@ -10341,7 +10345,7 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
10341
10345
|
value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
|
|
10342
10346
|
_ref$searchIconSize = _ref.searchIconSize,
|
|
10343
10347
|
searchIconSize = _ref$searchIconSize === void 0 ? SEARCH_ICON_DEFAULT_SIZE : _ref$searchIconSize,
|
|
10344
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10348
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
10345
10349
|
var ref = useRef(null);
|
|
10346
10350
|
var _useState = useState(value),
|
|
10347
10351
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10606,7 +10610,7 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
10606
10610
|
}), label);
|
|
10607
10611
|
};
|
|
10608
10612
|
|
|
10609
|
-
var _excluded$
|
|
10613
|
+
var _excluded$m = ["idRef", "searchable", "autoFocus", "options", "selectedOption", "onSelect", "onFocus", "className", "dataTestId", "extraOption", "onCloseDropdown"];
|
|
10610
10614
|
var SelectOptions = function SelectOptions(_ref) {
|
|
10611
10615
|
var idRef = _ref.idRef,
|
|
10612
10616
|
searchable = _ref.searchable,
|
|
@@ -10620,7 +10624,7 @@ var SelectOptions = function SelectOptions(_ref) {
|
|
|
10620
10624
|
dataTestId = _ref.dataTestId,
|
|
10621
10625
|
extraOption = _ref.extraOption,
|
|
10622
10626
|
onCloseDropdown = _ref.onCloseDropdown,
|
|
10623
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10627
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
10624
10628
|
var _useState = useState(''),
|
|
10625
10629
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10626
10630
|
searchPhrase = _useState2[0],
|
|
@@ -10805,7 +10809,7 @@ var useSelect = function useSelect(_ref) {
|
|
|
10805
10809
|
};
|
|
10806
10810
|
};
|
|
10807
10811
|
|
|
10808
|
-
var _excluded$
|
|
10812
|
+
var _excluded$l = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight", "smallMobileText"];
|
|
10809
10813
|
var Select = function Select(_ref) {
|
|
10810
10814
|
var _ref2, _ref3;
|
|
10811
10815
|
var _ref$allowAutoFill = _ref.allowAutoFill,
|
|
@@ -10835,7 +10839,7 @@ var Select = function Select(_ref) {
|
|
|
10835
10839
|
paddingRight = _ref.paddingRight,
|
|
10836
10840
|
_ref$smallMobileText = _ref.smallMobileText,
|
|
10837
10841
|
smallMobileText = _ref$smallMobileText === void 0 ? false : _ref$smallMobileText,
|
|
10838
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10842
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
10839
10843
|
var _useFormControlContex = useFormControlContext(),
|
|
10840
10844
|
errorDisplayedByParent = _useFormControlContex.displaysError;
|
|
10841
10845
|
var _useSelect = useSelect({
|
|
@@ -11028,7 +11032,7 @@ var Exit16 = function Exit16(_a) {
|
|
|
11028
11032
|
};
|
|
11029
11033
|
Exit16.displayName = 'Exit16';
|
|
11030
11034
|
|
|
11031
|
-
var _excluded$
|
|
11035
|
+
var _excluded$k = ["className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "onChange", "options", "searchable", "shiftIconLeftwards", "value"];
|
|
11032
11036
|
var MultiSelect = function MultiSelect(_ref) {
|
|
11033
11037
|
var className = _ref.className,
|
|
11034
11038
|
defaultValue = _ref.defaultValue,
|
|
@@ -11043,7 +11047,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11043
11047
|
searchable = _ref.searchable,
|
|
11044
11048
|
shiftIconLeftwards = _ref.shiftIconLeftwards,
|
|
11045
11049
|
value = _ref.value,
|
|
11046
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11050
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
11047
11051
|
var _useSelect = useSelect({
|
|
11048
11052
|
value: value,
|
|
11049
11053
|
defaultValue: defaultValue
|
|
@@ -11156,7 +11160,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11156
11160
|
}));
|
|
11157
11161
|
};
|
|
11158
11162
|
|
|
11159
|
-
var _excluded$
|
|
11163
|
+
var _excluded$j = ["className", "children", "error", "label", "placeholder", "showErrorIcon"];
|
|
11160
11164
|
var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
11161
11165
|
var className = _ref.className,
|
|
11162
11166
|
children = _ref.children,
|
|
@@ -11165,7 +11169,7 @@ var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
11165
11169
|
placeholder = _ref.placeholder,
|
|
11166
11170
|
_ref$showErrorIcon = _ref.showErrorIcon,
|
|
11167
11171
|
showErrorIcon = _ref$showErrorIcon === void 0 ? true : _ref$showErrorIcon,
|
|
11168
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11172
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
11169
11173
|
var id = useId();
|
|
11170
11174
|
var errorId = "".concat(id, "-error");
|
|
11171
11175
|
var fieldContextValue = useMemo(function () {
|
|
@@ -11209,16 +11213,16 @@ var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
11209
11213
|
});
|
|
11210
11214
|
Field.displayName = 'Field';
|
|
11211
11215
|
|
|
11212
|
-
var _excluded$
|
|
11216
|
+
var _excluded$i = ["onChange"];
|
|
11213
11217
|
var CreditCardNumberInputField = function CreditCardNumberInputField(_ref) {
|
|
11214
11218
|
var onChange = _ref.onChange,
|
|
11215
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11219
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
11216
11220
|
return /*#__PURE__*/React__default.createElement(Field, _extends$1({}, rest, {
|
|
11217
11221
|
onChangeEvent: onChange
|
|
11218
11222
|
}));
|
|
11219
11223
|
};
|
|
11220
11224
|
|
|
11221
|
-
var _excluded$
|
|
11225
|
+
var _excluded$h = ["value", "disabled", "readOnly", "defaultValue", "maskChar", "alwaysShowMask", "onMouseDown", "onFocus", "onBlur", "onChange"];
|
|
11222
11226
|
var DEFAULT_MASK = '9999 9999 9999 9999';
|
|
11223
11227
|
var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
11224
11228
|
var _ref2;
|
|
@@ -11232,7 +11236,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
11232
11236
|
onFocus = _ref.onFocus,
|
|
11233
11237
|
onBlur = _ref.onBlur,
|
|
11234
11238
|
onChange = _ref.onChange,
|
|
11235
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11239
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
11236
11240
|
var _useState = useState((_ref2 = propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : ''),
|
|
11237
11241
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11238
11242
|
value = _useState2[0],
|
|
@@ -11270,18 +11274,18 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
11270
11274
|
}, /*#__PURE__*/React__default.createElement(CreditCardNumberInputField, rest));
|
|
11271
11275
|
};
|
|
11272
11276
|
|
|
11273
|
-
var _excluded$
|
|
11277
|
+
var _excluded$g = ["term", "children", "className"];
|
|
11274
11278
|
var DefinitionList = function DefinitionList(_ref) {
|
|
11275
11279
|
var term = _ref.term,
|
|
11276
11280
|
children = _ref.children,
|
|
11277
11281
|
className = _ref.className,
|
|
11278
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11282
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
11279
11283
|
return /*#__PURE__*/React__default.createElement("dl", _extends$1({
|
|
11280
11284
|
className: classNames('DefinitionList', className)
|
|
11281
11285
|
}, rest), /*#__PURE__*/React__default.createElement("dt", null, term), /*#__PURE__*/React__default.createElement("dd", null, children));
|
|
11282
11286
|
};
|
|
11283
11287
|
|
|
11284
|
-
var _excluded$
|
|
11288
|
+
var _excluded$f = ["text", "treatment", "color", "family", "type", "className"];
|
|
11285
11289
|
var Divider = function Divider(_ref) {
|
|
11286
11290
|
var text = _ref.text,
|
|
11287
11291
|
treatment = _ref.treatment,
|
|
@@ -11289,7 +11293,7 @@ var Divider = function Divider(_ref) {
|
|
|
11289
11293
|
family = _ref.family,
|
|
11290
11294
|
type = _ref.type,
|
|
11291
11295
|
className = _ref.className,
|
|
11292
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11296
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
11293
11297
|
var defaultTreatment = type === 'two-line' ? 'eyebrow' : 'h5';
|
|
11294
11298
|
var defaultFamily = type === 'two-line' ? undefined : 'serif';
|
|
11295
11299
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
@@ -11322,6 +11326,21 @@ var LineAboveDivider = function LineAboveDivider(props) {
|
|
|
11322
11326
|
}));
|
|
11323
11327
|
};
|
|
11324
11328
|
|
|
11329
|
+
var _excluded$e = ["className", "open", "children"];
|
|
11330
|
+
var Drawer = function Drawer(_ref) {
|
|
11331
|
+
var className = _ref.className,
|
|
11332
|
+
open = _ref.open,
|
|
11333
|
+
children = _ref.children,
|
|
11334
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
11335
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
11336
|
+
className: classNames('Drawer', {
|
|
11337
|
+
'Drawer--open': open
|
|
11338
|
+
}, className)
|
|
11339
|
+
}, rest), /*#__PURE__*/React__default.createElement("div", {
|
|
11340
|
+
className: "Drawer__content"
|
|
11341
|
+
}, children));
|
|
11342
|
+
};
|
|
11343
|
+
|
|
11325
11344
|
var _excluded$d = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
|
|
11326
11345
|
var Expandable = function Expandable(_ref) {
|
|
11327
11346
|
var name = _ref.name,
|
|
@@ -13092,4 +13111,4 @@ var Utilities = {
|
|
|
13092
13111
|
States: States
|
|
13093
13112
|
};
|
|
13094
13113
|
|
|
13095
|
-
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, FormControlContext, 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, NoLineDivider, OtpInput, 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, useFormControlContext, useKeyboardListNavigation, useUpdateEffect };
|
|
13114
|
+
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, Drawer, ExceedConstrain, Expandable, Field, FocusOn, FormControlContext, 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, NoLineDivider, OtpInput, 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, useFormControlContext, useKeyboardListNavigation, useUpdateEffect };
|