@moda/om 21.12.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 +125 -103
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +125 -104
- 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/Paginator/Paginator.d.ts +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +5 -6
- 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/Paginator/Paginator.tsx +5 -3
- package/src/components/index.ts +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -43,7 +43,7 @@ var hasRequiredFocusVisible;
|
|
|
43
43
|
function requireFocusVisible() {
|
|
44
44
|
if (hasRequiredFocusVisible) return focusVisible$1.exports;
|
|
45
45
|
hasRequiredFocusVisible = 1;
|
|
46
|
-
(function (module, exports
|
|
46
|
+
(function (module, exports) {
|
|
47
47
|
(function (global, factory) {
|
|
48
48
|
factory() ;
|
|
49
49
|
})(focusVisible, function () {
|
|
@@ -923,7 +923,7 @@ var hasRequiredHelpers;
|
|
|
923
923
|
function requireHelpers() {
|
|
924
924
|
if (hasRequiredHelpers) return helpers;
|
|
925
925
|
hasRequiredHelpers = 1;
|
|
926
|
-
(function (exports
|
|
926
|
+
(function (exports) {
|
|
927
927
|
|
|
928
928
|
var __assign = helpers && helpers.__assign || function () {
|
|
929
929
|
__assign = Object.assign || function (t) {
|
|
@@ -940,10 +940,10 @@ function requireHelpers() {
|
|
|
940
940
|
"default": mod
|
|
941
941
|
};
|
|
942
942
|
};
|
|
943
|
-
Object.defineProperty(exports
|
|
943
|
+
Object.defineProperty(exports, "__esModule", {
|
|
944
944
|
value: true
|
|
945
945
|
});
|
|
946
|
-
exports
|
|
946
|
+
exports.spacing = exports.colorInHex = exports.color = exports.remToUnitlessPx = exports.text = void 0;
|
|
947
947
|
var color_string_1 = __importDefault(require$$0);
|
|
948
948
|
var colors_1 = requireColors();
|
|
949
949
|
var space_1 = requireSpace();
|
|
@@ -958,11 +958,11 @@ function requireHelpers() {
|
|
|
958
958
|
'line-height': "".concat(treatment['line-height'])
|
|
959
959
|
});
|
|
960
960
|
};
|
|
961
|
-
exports
|
|
961
|
+
exports.text = text;
|
|
962
962
|
var remToUnitlessPx = function remToUnitlessPx(value) {
|
|
963
963
|
return parseFloat(value) * parseInt(typography_1.typography['root-font-size'], 10);
|
|
964
964
|
};
|
|
965
|
-
exports
|
|
965
|
+
exports.remToUnitlessPx = remToUnitlessPx;
|
|
966
966
|
var color = function color(name, alpha) {
|
|
967
967
|
var _a;
|
|
968
968
|
var color = colors_1.colors.all[name];
|
|
@@ -972,16 +972,16 @@ function requireHelpers() {
|
|
|
972
972
|
blue = _b[2];
|
|
973
973
|
return alpha != null ? color_string_1["default"].to.rgb(red, green, blue, alpha) : color;
|
|
974
974
|
};
|
|
975
|
-
exports
|
|
975
|
+
exports.color = color;
|
|
976
976
|
var colorInHex = function colorInHex(name, alpha) {
|
|
977
977
|
var _a, _b, _c;
|
|
978
|
-
var _d = (_b = color_string_1["default"].get.rgb((_a = (0, exports
|
|
978
|
+
var _d = (_b = color_string_1["default"].get.rgb((_a = (0, exports.color)(name, alpha)) !== null && _a !== void 0 ? _a : '')) !== null && _b !== void 0 ? _b : [],
|
|
979
979
|
red = _d[0],
|
|
980
980
|
green = _d[1],
|
|
981
981
|
blue = _d[2];
|
|
982
982
|
return (_c = color_string_1["default"].to.hex(red, green, blue, alpha)) !== null && _c !== void 0 ? _c : '';
|
|
983
983
|
};
|
|
984
|
-
exports
|
|
984
|
+
exports.colorInHex = colorInHex;
|
|
985
985
|
var spacing = function spacing(topY, rightX, bottom, left) {
|
|
986
986
|
return [topY, rightX, bottom, left].reduce(function (acc, value) {
|
|
987
987
|
var _a;
|
|
@@ -989,7 +989,7 @@ function requireHelpers() {
|
|
|
989
989
|
return [acc, (_a = space_1.space.scale[Number(value)]) !== null && _a !== void 0 ? _a : value].join(' ');
|
|
990
990
|
}, '');
|
|
991
991
|
};
|
|
992
|
-
exports
|
|
992
|
+
exports.spacing = spacing;
|
|
993
993
|
})(helpers);
|
|
994
994
|
return helpers;
|
|
995
995
|
}
|
|
@@ -998,7 +998,7 @@ var hasRequiredDist$4;
|
|
|
998
998
|
function requireDist$4() {
|
|
999
999
|
if (hasRequiredDist$4) return dist$4;
|
|
1000
1000
|
hasRequiredDist$4 = 1;
|
|
1001
|
-
(function (exports
|
|
1001
|
+
(function (exports) {
|
|
1002
1002
|
|
|
1003
1003
|
var __createBinding = dist$4 && dist$4.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1004
1004
|
if (k2 === undefined) k2 = k;
|
|
@@ -1016,42 +1016,42 @@ function requireDist$4() {
|
|
|
1016
1016
|
if (k2 === undefined) k2 = k;
|
|
1017
1017
|
o[k2] = m[k];
|
|
1018
1018
|
});
|
|
1019
|
-
var __exportStar = dist$4 && dist$4.__exportStar || function (m, exports
|
|
1020
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
1019
|
+
var __exportStar = dist$4 && dist$4.__exportStar || function (m, exports) {
|
|
1020
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1021
1021
|
};
|
|
1022
|
-
Object.defineProperty(exports
|
|
1022
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1023
1023
|
value: true
|
|
1024
1024
|
});
|
|
1025
|
-
exports
|
|
1025
|
+
exports.breakpoints = exports.space = exports.typography = exports.colors = void 0;
|
|
1026
1026
|
var colors_1 = requireColors();
|
|
1027
|
-
Object.defineProperty(exports
|
|
1027
|
+
Object.defineProperty(exports, "colors", {
|
|
1028
1028
|
enumerable: true,
|
|
1029
1029
|
get: function get() {
|
|
1030
1030
|
return colors_1.colors;
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
var typography_1 = requireTypography();
|
|
1034
|
-
Object.defineProperty(exports
|
|
1034
|
+
Object.defineProperty(exports, "typography", {
|
|
1035
1035
|
enumerable: true,
|
|
1036
1036
|
get: function get() {
|
|
1037
1037
|
return typography_1.typography;
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
var space_1 = requireSpace();
|
|
1041
|
-
Object.defineProperty(exports
|
|
1041
|
+
Object.defineProperty(exports, "space", {
|
|
1042
1042
|
enumerable: true,
|
|
1043
1043
|
get: function get() {
|
|
1044
1044
|
return space_1.space;
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
var breakpoints_1 = requireBreakpoints();
|
|
1048
|
-
Object.defineProperty(exports
|
|
1048
|
+
Object.defineProperty(exports, "breakpoints", {
|
|
1049
1049
|
enumerable: true,
|
|
1050
1050
|
get: function get() {
|
|
1051
1051
|
return breakpoints_1.breakpoints;
|
|
1052
1052
|
}
|
|
1053
1053
|
});
|
|
1054
|
-
__exportStar(requireHelpers(), exports
|
|
1054
|
+
__exportStar(requireHelpers(), exports);
|
|
1055
1055
|
})(dist$4);
|
|
1056
1056
|
return dist$4;
|
|
1057
1057
|
}
|
|
@@ -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,
|
|
@@ -5319,7 +5319,7 @@ var hasRequiredScale;
|
|
|
5319
5319
|
function requireScale() {
|
|
5320
5320
|
if (hasRequiredScale) return scale;
|
|
5321
5321
|
hasRequiredScale = 1;
|
|
5322
|
-
(function (exports
|
|
5322
|
+
(function (exports) {
|
|
5323
5323
|
|
|
5324
5324
|
var __assign = scale && scale.__assign || function () {
|
|
5325
5325
|
__assign = Object.assign || function (t) {
|
|
@@ -5339,11 +5339,11 @@ function requireScale() {
|
|
|
5339
5339
|
}
|
|
5340
5340
|
return t;
|
|
5341
5341
|
};
|
|
5342
|
-
Object.defineProperty(exports
|
|
5342
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5343
5343
|
value: true
|
|
5344
5344
|
});
|
|
5345
|
-
exports
|
|
5346
|
-
exports
|
|
5345
|
+
exports.scale = exports.paddingBottom = exports.factor = void 0;
|
|
5346
|
+
exports.factor = function (_a) {
|
|
5347
5347
|
var width = _a.width,
|
|
5348
5348
|
height = _a.height,
|
|
5349
5349
|
dimensions = __rest(_a, ["width", "height"]);
|
|
@@ -5351,16 +5351,16 @@ function requireScale() {
|
|
|
5351
5351
|
if ("maxWidth" in dimensions && !("maxHeight" in dimensions)) return dimensions.maxWidth / width;
|
|
5352
5352
|
return Math.min(dimensions.maxWidth / width, dimensions.maxHeight / height);
|
|
5353
5353
|
};
|
|
5354
|
-
exports
|
|
5354
|
+
exports.paddingBottom = function (_a) {
|
|
5355
5355
|
var width = _a.width,
|
|
5356
5356
|
height = _a.height;
|
|
5357
5357
|
return height / width * 100.0 + "%";
|
|
5358
5358
|
};
|
|
5359
|
-
exports
|
|
5359
|
+
exports.scale = function (_a) {
|
|
5360
5360
|
var width = _a.width,
|
|
5361
5361
|
height = _a.height,
|
|
5362
5362
|
dimensions = __rest(_a, ["width", "height"]);
|
|
5363
|
-
var scale = exports
|
|
5363
|
+
var scale = exports.factor(__assign({
|
|
5364
5364
|
width: width,
|
|
5365
5365
|
height: height
|
|
5366
5366
|
}, dimensions));
|
|
@@ -5369,7 +5369,7 @@ function requireScale() {
|
|
|
5369
5369
|
return {
|
|
5370
5370
|
width: scaledWidth,
|
|
5371
5371
|
height: scaledHeight,
|
|
5372
|
-
paddingBottom: exports
|
|
5372
|
+
paddingBottom: exports.paddingBottom({
|
|
5373
5373
|
width: width,
|
|
5374
5374
|
height: height
|
|
5375
5375
|
}),
|
|
@@ -5384,7 +5384,7 @@ var hasRequiredDist$3;
|
|
|
5384
5384
|
function requireDist$3() {
|
|
5385
5385
|
if (hasRequiredDist$3) return dist$3;
|
|
5386
5386
|
hasRequiredDist$3 = 1;
|
|
5387
|
-
(function (exports
|
|
5387
|
+
(function (exports) {
|
|
5388
5388
|
|
|
5389
5389
|
var __createBinding = dist$3 && dist$3.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
5390
5390
|
if (k2 === undefined) k2 = k;
|
|
@@ -5398,20 +5398,20 @@ function requireDist$3() {
|
|
|
5398
5398
|
if (k2 === undefined) k2 = k;
|
|
5399
5399
|
o[k2] = m[k];
|
|
5400
5400
|
});
|
|
5401
|
-
var __exportStar = dist$3 && dist$3.__exportStar || function (m, exports
|
|
5402
|
-
for (var p in m) if (p !== "default" && !exports
|
|
5401
|
+
var __exportStar = dist$3 && dist$3.__exportStar || function (m, exports) {
|
|
5402
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
5403
5403
|
};
|
|
5404
|
-
Object.defineProperty(exports
|
|
5404
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5405
5405
|
value: true
|
|
5406
5406
|
});
|
|
5407
|
-
__exportStar(requireScale(), exports
|
|
5407
|
+
__exportStar(requireScale(), exports);
|
|
5408
5408
|
})(dist$3);
|
|
5409
5409
|
return dist$3;
|
|
5410
5410
|
}
|
|
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,
|
|
@@ -10028,12 +10032,12 @@ var hasRequiredDist$1;
|
|
|
10028
10032
|
function requireDist$1() {
|
|
10029
10033
|
if (hasRequiredDist$1) return dist$1;
|
|
10030
10034
|
hasRequiredDist$1 = 1;
|
|
10031
|
-
(function (exports
|
|
10035
|
+
(function (exports) {
|
|
10032
10036
|
|
|
10033
10037
|
function __export(m) {
|
|
10034
|
-
for (var p in m) if (!exports
|
|
10038
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
10035
10039
|
}
|
|
10036
|
-
Object.defineProperty(exports
|
|
10040
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10037
10041
|
value: true
|
|
10038
10042
|
});
|
|
10039
10043
|
__export(requireMapCursorToMax());
|
|
@@ -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,
|
|
@@ -11434,12 +11453,12 @@ var hasRequiredDist;
|
|
|
11434
11453
|
function requireDist() {
|
|
11435
11454
|
if (hasRequiredDist) return dist;
|
|
11436
11455
|
hasRequiredDist = 1;
|
|
11437
|
-
(function (exports
|
|
11456
|
+
(function (exports) {
|
|
11438
11457
|
|
|
11439
11458
|
function __export(m) {
|
|
11440
|
-
for (var p in m) if (!exports
|
|
11459
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
11441
11460
|
}
|
|
11442
|
-
Object.defineProperty(exports
|
|
11461
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11443
11462
|
value: true
|
|
11444
11463
|
});
|
|
11445
11464
|
__export(requireUseCursor());
|
|
@@ -12273,6 +12292,8 @@ var Paginator = function Paginator(_ref) {
|
|
|
12273
12292
|
totalPages = _ref.totalPages,
|
|
12274
12293
|
_ref$maximumPagesToSh = _ref.maximumPagesToShow,
|
|
12275
12294
|
maximumPagesToShow = _ref$maximumPagesToSh === void 0 ? defaultMaximumNumberOfPagesToShow : _ref$maximumPagesToSh,
|
|
12295
|
+
_ref$scrollToTopOnPag = _ref.scrollToTopOnPageChange,
|
|
12296
|
+
scrollToTopOnPageChange = _ref$scrollToTopOnPag === void 0 ? true : _ref$scrollToTopOnPag,
|
|
12276
12297
|
onGoToPage = _ref.onGoToPage,
|
|
12277
12298
|
className = _ref.className;
|
|
12278
12299
|
var pages = determinePagesToShow(selectedPage, totalPages, maximumPagesToShow);
|
|
@@ -12289,7 +12310,7 @@ var Paginator = function Paginator(_ref) {
|
|
|
12289
12310
|
disabled: !canDoPrev(selectedPage),
|
|
12290
12311
|
onClick: function onClick() {
|
|
12291
12312
|
prevPage(selectedPage);
|
|
12292
|
-
window.scrollTo(0, 0);
|
|
12313
|
+
if (scrollToTopOnPageChange) window.scrollTo(0, 0);
|
|
12293
12314
|
},
|
|
12294
12315
|
className: classNames('Paginator__button', 'Paginator__button--previous')
|
|
12295
12316
|
}, /*#__PURE__*/React__default.createElement(ChevronLeft16, {
|
|
@@ -12300,7 +12321,7 @@ var Paginator = function Paginator(_ref) {
|
|
|
12300
12321
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
12301
12322
|
onClick: function onClick() {
|
|
12302
12323
|
onGoToPage(page);
|
|
12303
|
-
window.scrollTo(0, 0);
|
|
12324
|
+
if (scrollToTopOnPageChange) window.scrollTo(0, 0);
|
|
12304
12325
|
},
|
|
12305
12326
|
className: classNames('Paginator__button', {
|
|
12306
12327
|
'Paginator__button--currentPage': page === selectedPage
|
|
@@ -12312,7 +12333,7 @@ var Paginator = function Paginator(_ref) {
|
|
|
12312
12333
|
disabled: !canDoNext(selectedPage, totalPages),
|
|
12313
12334
|
onClick: function onClick() {
|
|
12314
12335
|
nextPage(selectedPage);
|
|
12315
|
-
window.scrollTo(0, 0);
|
|
12336
|
+
if (scrollToTopOnPageChange) window.scrollTo(0, 0);
|
|
12316
12337
|
},
|
|
12317
12338
|
className: classNames('Paginator__button', 'Paginator__button--next')
|
|
12318
12339
|
}, "Next ", /*#__PURE__*/React__default.createElement(ChevronRight16, {
|
|
@@ -13090,4 +13111,4 @@ var Utilities = {
|
|
|
13090
13111
|
States: States
|
|
13091
13112
|
};
|
|
13092
13113
|
|
|
13093
|
-
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 };
|