@moda/om 17.6.0 → 17.7.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/CHANGELOG.md +8 -0
- package/dist/index.cjs.js +123 -84
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +123 -85
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/SlidingPane/SlidingPane.d.ts +9 -0
- package/dist/src/components/SlidingPane/SlidingPane.stories.d.ts +15 -0
- package/dist/src/components/SlidingPane/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/RadioButton/RadioButton.tsx +1 -1
- package/src/components/SlidingPane/SlidingPane.scss +49 -0
- package/src/components/SlidingPane/SlidingPane.stories.tsx +36 -0
- package/src/components/SlidingPane/SlidingPane.tsx +57 -0
- package/src/components/SlidingPane/index.ts +1 -0
- package/src/components/index.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1170,6 +1170,10 @@ function _extends$1() {
|
|
|
1170
1170
|
return _extends$1.apply(this, arguments);
|
|
1171
1171
|
}
|
|
1172
1172
|
|
|
1173
|
+
function _objectDestructuringEmpty(obj) {
|
|
1174
|
+
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1173
1177
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1174
1178
|
if (source == null) return {};
|
|
1175
1179
|
var target = {};
|
|
@@ -1340,7 +1344,7 @@ var classnames = {exports: {}};
|
|
|
1340
1344
|
|
|
1341
1345
|
var classNames = classnames.exports;
|
|
1342
1346
|
|
|
1343
|
-
var _excluded$
|
|
1347
|
+
var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
|
|
1344
1348
|
var Stack = function Stack(_ref) {
|
|
1345
1349
|
var className = _ref.className,
|
|
1346
1350
|
children = _ref.children,
|
|
@@ -1350,7 +1354,7 @@ var Stack = function Stack(_ref) {
|
|
|
1350
1354
|
alignItems = _ref.alignItems,
|
|
1351
1355
|
justifyContent = _ref.justifyContent,
|
|
1352
1356
|
style = _ref.style,
|
|
1353
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1357
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
1354
1358
|
|
|
1355
1359
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
1356
1360
|
className: classNames("Stack Stack--".concat(direction, "-").concat(space), className),
|
|
@@ -1424,11 +1428,11 @@ var StatesProps = function StatesProps(_ref) {
|
|
|
1424
1428
|
}, /*#__PURE__*/React__default["default"].createElement("span", null, children.type.displayName || children.type.name), !isEmpty(props) && /*#__PURE__*/React__default["default"].createElement("strong", null, stringifyProps(props)), !isRenderProps(children) && !isEmpty(childrenProps) && /*#__PURE__*/React__default["default"].createElement("span", null, stringifyProps(childrenProps)), /*#__PURE__*/React__default["default"].createElement("span", null, " "));
|
|
1425
1429
|
};
|
|
1426
1430
|
|
|
1427
|
-
var _excluded$
|
|
1431
|
+
var _excluded$E = ["props", "children"];
|
|
1428
1432
|
var State = function State(_ref) {
|
|
1429
1433
|
var props = _ref.props,
|
|
1430
1434
|
children = _ref.children,
|
|
1431
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1435
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
1432
1436
|
|
|
1433
1437
|
var Specimen = isRenderProps(children) ? children(props) : /*#__PURE__*/React__default["default"].cloneElement(children, props);
|
|
1434
1438
|
var innerChildren = isRenderProps(children) ? children(props) : children;
|
|
@@ -1441,12 +1445,12 @@ var State = function State(_ref) {
|
|
|
1441
1445
|
}, innerChildren)));
|
|
1442
1446
|
};
|
|
1443
1447
|
|
|
1444
|
-
var _excluded$
|
|
1448
|
+
var _excluded$D = ["states", "children"];
|
|
1445
1449
|
var States = function States(_ref) {
|
|
1446
1450
|
var _ref$states = _ref.states,
|
|
1447
1451
|
states = _ref$states === void 0 ? [{}] : _ref$states,
|
|
1448
1452
|
children = _ref.children,
|
|
1449
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1453
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
1450
1454
|
|
|
1451
1455
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1452
1456
|
className: "States"
|
|
@@ -5410,7 +5414,7 @@ var scale = {};
|
|
|
5410
5414
|
__exportStar(scale, exports);
|
|
5411
5415
|
})(dist$3);
|
|
5412
5416
|
|
|
5413
|
-
var _excluded$
|
|
5417
|
+
var _excluded$C = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outlined", "children", "className"];
|
|
5414
5418
|
var DEFAULT_PRODUCT_ASPECT_WIDTH = 128;
|
|
5415
5419
|
var DEFAULT_PRODUCT_ASPECT_HEIGHT = 205;
|
|
5416
5420
|
var DEFAULT_PRODUCT_ASPECT_RATIO = DEFAULT_PRODUCT_ASPECT_HEIGHT / DEFAULT_PRODUCT_ASPECT_WIDTH;
|
|
@@ -5425,7 +5429,7 @@ var AspectRatioBox = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
5425
5429
|
outlined = _ref$outlined === void 0 ? false : _ref$outlined,
|
|
5426
5430
|
children = _ref.children,
|
|
5427
5431
|
className = _ref.className,
|
|
5428
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5432
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5429
5433
|
|
|
5430
5434
|
var _scale = dist$3.scale({
|
|
5431
5435
|
width: aspectWidth,
|
|
@@ -5455,23 +5459,23 @@ var AspectRatioBox = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
5455
5459
|
});
|
|
5456
5460
|
AspectRatioBox.displayName = 'AspectRatioBox';
|
|
5457
5461
|
|
|
5458
|
-
var _excluded$
|
|
5462
|
+
var _excluded$B = ["className", "theme", "children"];
|
|
5459
5463
|
var Badge = function Badge(_ref) {
|
|
5460
5464
|
var className = _ref.className,
|
|
5461
5465
|
theme = _ref.theme,
|
|
5462
5466
|
children = _ref.children,
|
|
5463
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5467
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
5464
5468
|
|
|
5465
5469
|
return /*#__PURE__*/React__default["default"].createElement("span", _extends$1({
|
|
5466
5470
|
className: classNames('Badge', theme && "Badge--".concat(theme), className)
|
|
5467
5471
|
}, rest), children);
|
|
5468
5472
|
};
|
|
5469
5473
|
|
|
5470
|
-
var _excluded$
|
|
5474
|
+
var _excluded$A = ["children", "className"];
|
|
5471
5475
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
5472
5476
|
var children = _ref.children,
|
|
5473
5477
|
className = _ref.className,
|
|
5474
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5478
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
5475
5479
|
|
|
5476
5480
|
var position = 0;
|
|
5477
5481
|
return /*#__PURE__*/React__default["default"].createElement("ol", _extends$1({
|
|
@@ -5491,7 +5495,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
5491
5495
|
}));
|
|
5492
5496
|
};
|
|
5493
5497
|
|
|
5494
|
-
var _excluded$
|
|
5498
|
+
var _excluded$z = ["className", "styleless", "disabled"];
|
|
5495
5499
|
|
|
5496
5500
|
var isLink = function isLink(props) {
|
|
5497
5501
|
return 'to' in props;
|
|
@@ -5510,7 +5514,7 @@ var Clickable = /*#__PURE__*/React__default["default"].forwardRef(function (_ref
|
|
|
5510
5514
|
_ref$styleless = _ref.styleless,
|
|
5511
5515
|
styleless = _ref$styleless === void 0 ? false : _ref$styleless,
|
|
5512
5516
|
disabled = _ref.disabled,
|
|
5513
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5517
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
5514
5518
|
|
|
5515
5519
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
5516
5520
|
className: classNames({
|
|
@@ -5533,14 +5537,14 @@ var Clickable = /*#__PURE__*/React__default["default"].forwardRef(function (_ref
|
|
|
5533
5537
|
});
|
|
5534
5538
|
Clickable.displayName = 'Clickable';
|
|
5535
5539
|
|
|
5536
|
-
var _excluded$
|
|
5540
|
+
var _excluded$y = ["className", "disabled", "children", "underlined"];
|
|
5537
5541
|
var ControlLink = function ControlLink(_ref) {
|
|
5538
5542
|
var className = _ref.className,
|
|
5539
5543
|
disabled = _ref.disabled,
|
|
5540
5544
|
children = _ref.children,
|
|
5541
5545
|
_ref$underlined = _ref.underlined,
|
|
5542
5546
|
underlined = _ref$underlined === void 0 ? true : _ref$underlined,
|
|
5543
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5547
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
5544
5548
|
|
|
5545
5549
|
return /*#__PURE__*/React__default["default"].createElement(Clickable, _extends$1({}, rest, {
|
|
5546
5550
|
className: classNames('ControlLink', {
|
|
@@ -5552,12 +5556,12 @@ var ControlLink = function ControlLink(_ref) {
|
|
|
5552
5556
|
}), children);
|
|
5553
5557
|
};
|
|
5554
5558
|
|
|
5555
|
-
var _excluded$
|
|
5559
|
+
var _excluded$x = ["children", "position", "className"];
|
|
5556
5560
|
var Breadcrumb = function Breadcrumb(_ref) {
|
|
5557
5561
|
var children = _ref.children,
|
|
5558
5562
|
position = _ref.position,
|
|
5559
5563
|
className = _ref.className,
|
|
5560
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5564
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
5561
5565
|
|
|
5562
5566
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
5563
5567
|
className: classNames('Breadcrumb', className),
|
|
@@ -5691,10 +5695,10 @@ var useBreakpoint = function useBreakpoint(props) {
|
|
|
5691
5695
|
};
|
|
5692
5696
|
};
|
|
5693
5697
|
|
|
5694
|
-
var _excluded$
|
|
5698
|
+
var _excluded$w = ["children"];
|
|
5695
5699
|
var Breakpoint = function Breakpoint(_ref) {
|
|
5696
5700
|
var children = _ref.children,
|
|
5697
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5701
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
5698
5702
|
|
|
5699
5703
|
var _discriminate = discriminate(rest),
|
|
5700
5704
|
mode = _discriminate.mode,
|
|
@@ -5708,7 +5712,7 @@ var Breakpoint = function Breakpoint(_ref) {
|
|
|
5708
5712
|
}, children) : null;
|
|
5709
5713
|
};
|
|
5710
5714
|
|
|
5711
|
-
var _excluded$
|
|
5715
|
+
var _excluded$v = ["secondary", "chip", "hover", "focus", "disabled", "className"];
|
|
5712
5716
|
var Button = function Button(_ref) {
|
|
5713
5717
|
var secondary = _ref.secondary,
|
|
5714
5718
|
chip = _ref.chip,
|
|
@@ -5716,7 +5720,7 @@ var Button = function Button(_ref) {
|
|
|
5716
5720
|
focus = _ref.focus,
|
|
5717
5721
|
disabled = _ref.disabled,
|
|
5718
5722
|
className = _ref.className,
|
|
5719
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5723
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
5720
5724
|
|
|
5721
5725
|
return /*#__PURE__*/React__default["default"].createElement(Clickable, _extends$1({
|
|
5722
5726
|
className: classNames('Button', {
|
|
@@ -5867,7 +5871,7 @@ var Circle12 = function Circle12(_a) {
|
|
|
5867
5871
|
|
|
5868
5872
|
Circle12.displayName = 'Circle12';
|
|
5869
5873
|
|
|
5870
|
-
var _excluded$
|
|
5874
|
+
var _excluded$u = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId"];
|
|
5871
5875
|
var CHECKED_ITEM_PROPS = {
|
|
5872
5876
|
className: 'Checkbox__check-mark',
|
|
5873
5877
|
height: '85%',
|
|
@@ -5886,7 +5890,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
5886
5890
|
_ref$checkIcon = _ref.checkIcon,
|
|
5887
5891
|
checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
|
|
5888
5892
|
dataTestId = _ref.dataTestId,
|
|
5889
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5893
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
5890
5894
|
|
|
5891
5895
|
var _useState = React.useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
|
|
5892
5896
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5979,7 +5983,7 @@ var SKU_COLORS = {
|
|
|
5979
5983
|
yellow: '#ffca44'
|
|
5980
5984
|
};
|
|
5981
5985
|
|
|
5982
|
-
var _excluded$
|
|
5986
|
+
var _excluded$t = ["className", "size", "color", "backgroundUrl", "focus", "hover", "selected", "soldOut", "onSale", "onClick", "onMouseEnter", "disabled", "title"];
|
|
5983
5987
|
var ColorSwatch = function ColorSwatch(_ref) {
|
|
5984
5988
|
var _SKU_COLORS;
|
|
5985
5989
|
|
|
@@ -5996,7 +6000,7 @@ var ColorSwatch = function ColorSwatch(_ref) {
|
|
|
5996
6000
|
onMouseEnter = _ref.onMouseEnter,
|
|
5997
6001
|
disabled = _ref.disabled,
|
|
5998
6002
|
title = _ref.title,
|
|
5999
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6003
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
6000
6004
|
|
|
6001
6005
|
var handleClick = React.useCallback(function (_event) {
|
|
6002
6006
|
onClick && onClick(color, title);
|
|
@@ -6034,22 +6038,22 @@ var ColorSwatch = function ColorSwatch(_ref) {
|
|
|
6034
6038
|
}));
|
|
6035
6039
|
};
|
|
6036
6040
|
|
|
6037
|
-
var _excluded$
|
|
6041
|
+
var _excluded$s = ["className", "children"];
|
|
6038
6042
|
var Constrain = function Constrain(_ref) {
|
|
6039
6043
|
var className = _ref.className,
|
|
6040
6044
|
children = _ref.children,
|
|
6041
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6045
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
6042
6046
|
|
|
6043
6047
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
6044
6048
|
className: classNames('Constrain', className)
|
|
6045
6049
|
}, rest), children);
|
|
6046
6050
|
};
|
|
6047
6051
|
|
|
6048
|
-
var _excluded$
|
|
6052
|
+
var _excluded$r = ["className", "children"];
|
|
6049
6053
|
var ExceedConstrain = function ExceedConstrain(_ref) {
|
|
6050
6054
|
var className = _ref.className,
|
|
6051
6055
|
children = _ref.children,
|
|
6052
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6056
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6053
6057
|
|
|
6054
6058
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
6055
6059
|
className: classNames('ExceedConstrain', className)
|
|
@@ -8461,7 +8465,7 @@ var Warning16 = function Warning16(_a) {
|
|
|
8461
8465
|
|
|
8462
8466
|
Warning16.displayName = 'Warning16';
|
|
8463
8467
|
|
|
8464
|
-
var _excluded$
|
|
8468
|
+
var _excluded$q = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange", "onChangeEvent"];
|
|
8465
8469
|
var TextInput = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
8466
8470
|
var className = _ref.className,
|
|
8467
8471
|
disabled = _ref.disabled,
|
|
@@ -8471,7 +8475,7 @@ var TextInput = /*#__PURE__*/React__default["default"].forwardRef(function (_ref
|
|
|
8471
8475
|
label = _ref.label,
|
|
8472
8476
|
_onChange = _ref.onChange,
|
|
8473
8477
|
onChangeEvent = _ref.onChangeEvent,
|
|
8474
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8478
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
8475
8479
|
|
|
8476
8480
|
return /*#__PURE__*/React__default["default"].createElement("input", _extends$1({
|
|
8477
8481
|
className: classNames('TextInput', className, {
|
|
@@ -8839,7 +8843,7 @@ var useUpdateEffect = function useUpdateEffect(effect, deps) {
|
|
|
8839
8843
|
}, deps);
|
|
8840
8844
|
};
|
|
8841
8845
|
|
|
8842
|
-
var _excluded$
|
|
8846
|
+
var _excluded$p = ["className", "treatment", "color", "family", "children", "style"];
|
|
8843
8847
|
var Text = function Text(_ref) {
|
|
8844
8848
|
var className = _ref.className,
|
|
8845
8849
|
_ref$treatment = _ref.treatment,
|
|
@@ -8849,7 +8853,7 @@ var Text = function Text(_ref) {
|
|
|
8849
8853
|
family = _ref.family,
|
|
8850
8854
|
children = _ref.children,
|
|
8851
8855
|
style = _ref.style,
|
|
8852
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8856
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
8853
8857
|
|
|
8854
8858
|
return /*#__PURE__*/React__default["default"].createElement("span", _extends$1({
|
|
8855
8859
|
className: classNames("Text Text--".concat(treatment, " ").concat(family ? "Text--".concat(family) : ''), className),
|
|
@@ -9006,7 +9010,7 @@ var Search20 = function Search20(_a) {
|
|
|
9006
9010
|
|
|
9007
9011
|
Search20.displayName = 'Search20';
|
|
9008
9012
|
|
|
9009
|
-
var _excluded$
|
|
9013
|
+
var _excluded$o = ["className", "onChange", "onChangeValue", "onClear", "value"];
|
|
9010
9014
|
var DEFAULT_INPUT_VALUE = '';
|
|
9011
9015
|
var SearchInput = function SearchInput(_ref) {
|
|
9012
9016
|
var className = _ref.className,
|
|
@@ -9015,7 +9019,7 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
9015
9019
|
onClear = _ref.onClear,
|
|
9016
9020
|
_ref$value = _ref.value,
|
|
9017
9021
|
value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
|
|
9018
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9022
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
9019
9023
|
|
|
9020
9024
|
var ref = React.useRef(null);
|
|
9021
9025
|
|
|
@@ -9243,7 +9247,7 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
9243
9247
|
}, option.label);
|
|
9244
9248
|
};
|
|
9245
9249
|
|
|
9246
|
-
var _excluded$
|
|
9250
|
+
var _excluded$n = ["idRef", "searchable", "autoFocus", "options", "selectedOption", "onSelect", "onFocus", "className", "dataTestId"];
|
|
9247
9251
|
var SelectOptions = function SelectOptions(_ref) {
|
|
9248
9252
|
var idRef = _ref.idRef,
|
|
9249
9253
|
searchable = _ref.searchable,
|
|
@@ -9255,7 +9259,7 @@ var SelectOptions = function SelectOptions(_ref) {
|
|
|
9255
9259
|
onFocus = _ref.onFocus,
|
|
9256
9260
|
className = _ref.className,
|
|
9257
9261
|
dataTestId = _ref.dataTestId,
|
|
9258
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9262
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
9259
9263
|
|
|
9260
9264
|
var _useState = React.useState(''),
|
|
9261
9265
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -9434,7 +9438,7 @@ var useSelect = function useSelect(_ref) {
|
|
|
9434
9438
|
};
|
|
9435
9439
|
};
|
|
9436
9440
|
|
|
9437
|
-
var _excluded$
|
|
9441
|
+
var _excluded$m = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId"];
|
|
9438
9442
|
var Select = function Select(_ref) {
|
|
9439
9443
|
var _ref2;
|
|
9440
9444
|
|
|
@@ -9461,7 +9465,7 @@ var Select = function Select(_ref) {
|
|
|
9461
9465
|
shiftIconLeftwards = _ref$shiftIconLeftwar === void 0 ? false : _ref$shiftIconLeftwar,
|
|
9462
9466
|
value = _ref.value,
|
|
9463
9467
|
dataTestId = _ref.dataTestId,
|
|
9464
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9468
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
9465
9469
|
|
|
9466
9470
|
var _useSelect = useSelect({
|
|
9467
9471
|
value: value,
|
|
@@ -11136,7 +11140,7 @@ var Exit16 = function Exit16(_a) {
|
|
|
11136
11140
|
|
|
11137
11141
|
Exit16.displayName = 'Exit16';
|
|
11138
11142
|
|
|
11139
|
-
var _excluded$
|
|
11143
|
+
var _excluded$l = ["className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "onChange", "options", "searchable", "shiftIconLeftwards", "value"];
|
|
11140
11144
|
var MultiSelect = function MultiSelect(_ref) {
|
|
11141
11145
|
var className = _ref.className,
|
|
11142
11146
|
defaultValue = _ref.defaultValue,
|
|
@@ -11151,7 +11155,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11151
11155
|
searchable = _ref.searchable,
|
|
11152
11156
|
shiftIconLeftwards = _ref.shiftIconLeftwards,
|
|
11153
11157
|
value = _ref.value,
|
|
11154
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11158
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
11155
11159
|
|
|
11156
11160
|
var _useSelect = useSelect({
|
|
11157
11161
|
value: value,
|
|
@@ -11251,14 +11255,14 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11251
11255
|
}));
|
|
11252
11256
|
};
|
|
11253
11257
|
|
|
11254
|
-
var _excluded$
|
|
11258
|
+
var _excluded$k = ["className", "children", "error", "label", "placeholder"];
|
|
11255
11259
|
var Field = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11256
11260
|
var className = _ref.className,
|
|
11257
11261
|
children = _ref.children,
|
|
11258
11262
|
error = _ref.error,
|
|
11259
11263
|
label = _ref.label,
|
|
11260
11264
|
placeholder = _ref.placeholder,
|
|
11261
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11265
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
11262
11266
|
|
|
11263
11267
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
11264
11268
|
className: classNames('Field', className)
|
|
@@ -11287,17 +11291,17 @@ var Field = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, re
|
|
|
11287
11291
|
});
|
|
11288
11292
|
Field.displayName = 'Field';
|
|
11289
11293
|
|
|
11290
|
-
var _excluded$
|
|
11294
|
+
var _excluded$j = ["onChange"];
|
|
11291
11295
|
var CreditCardNumberInputField = function CreditCardNumberInputField(_ref) {
|
|
11292
11296
|
var onChange = _ref.onChange,
|
|
11293
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11297
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
11294
11298
|
|
|
11295
11299
|
return /*#__PURE__*/React__default["default"].createElement(Field, _extends$1({}, rest, {
|
|
11296
11300
|
onChangeEvent: onChange
|
|
11297
11301
|
}));
|
|
11298
11302
|
};
|
|
11299
11303
|
|
|
11300
|
-
var _excluded$
|
|
11304
|
+
var _excluded$i = ["value", "disabled", "readOnly", "defaultValue", "maskChar", "alwaysShowMask", "onMouseDown", "onFocus", "onBlur", "onChange"];
|
|
11301
11305
|
var DEFAULT_MASK = '9999 9999 9999 9999';
|
|
11302
11306
|
var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
11303
11307
|
var _ref2;
|
|
@@ -11312,7 +11316,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
11312
11316
|
onFocus = _ref.onFocus,
|
|
11313
11317
|
onBlur = _ref.onBlur,
|
|
11314
11318
|
onChange = _ref.onChange,
|
|
11315
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11319
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
11316
11320
|
|
|
11317
11321
|
var _useState = React.useState((_ref2 = propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : ''),
|
|
11318
11322
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11358,19 +11362,19 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
11358
11362
|
}, renderInputField);
|
|
11359
11363
|
};
|
|
11360
11364
|
|
|
11361
|
-
var _excluded$
|
|
11365
|
+
var _excluded$h = ["term", "children", "className"];
|
|
11362
11366
|
var DefinitionList = function DefinitionList(_ref) {
|
|
11363
11367
|
var term = _ref.term,
|
|
11364
11368
|
children = _ref.children,
|
|
11365
11369
|
className = _ref.className,
|
|
11366
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11370
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
11367
11371
|
|
|
11368
11372
|
return /*#__PURE__*/React__default["default"].createElement("dl", _extends$1({
|
|
11369
11373
|
className: classNames('DefinitionList', className)
|
|
11370
11374
|
}, rest), /*#__PURE__*/React__default["default"].createElement("dt", null, term), /*#__PURE__*/React__default["default"].createElement("dd", null, children));
|
|
11371
11375
|
};
|
|
11372
11376
|
|
|
11373
|
-
var _excluded$
|
|
11377
|
+
var _excluded$g = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
|
|
11374
11378
|
var Expandable = function Expandable(_ref) {
|
|
11375
11379
|
var name = _ref.name,
|
|
11376
11380
|
children = _ref.children,
|
|
@@ -11388,7 +11392,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
11388
11392
|
background = _ref$background === void 0 ? 'light' : _ref$background,
|
|
11389
11393
|
_ref$border = _ref.border,
|
|
11390
11394
|
border = _ref$border === void 0 ? true : _ref$border,
|
|
11391
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11395
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
11392
11396
|
|
|
11393
11397
|
var _useState = React.useState(defaultExpanded),
|
|
11394
11398
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11421,7 +11425,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
11421
11425
|
}, expanded || !virtual ? children : null));
|
|
11422
11426
|
};
|
|
11423
11427
|
|
|
11424
|
-
var _excluded$
|
|
11428
|
+
var _excluded$f = ["text", "treatment", "color", "family", "type", "className"];
|
|
11425
11429
|
var Divider = function Divider(_ref) {
|
|
11426
11430
|
var text = _ref.text,
|
|
11427
11431
|
treatment = _ref.treatment,
|
|
@@ -11429,7 +11433,7 @@ var Divider = function Divider(_ref) {
|
|
|
11429
11433
|
family = _ref.family,
|
|
11430
11434
|
type = _ref.type,
|
|
11431
11435
|
className = _ref.className,
|
|
11432
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11436
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
11433
11437
|
|
|
11434
11438
|
var defaultTreatment = type === 'two-line' ? 'eyebrow' : 'h5';
|
|
11435
11439
|
var defaultFamily = type === 'two-line' ? undefined : 'serif';
|
|
@@ -11455,11 +11459,11 @@ var NoLineDivider = function NoLineDivider(props) {
|
|
|
11455
11459
|
}));
|
|
11456
11460
|
};
|
|
11457
11461
|
|
|
11458
|
-
var _excluded$
|
|
11462
|
+
var _excluded$e = ["className", "hidden"];
|
|
11459
11463
|
var Label = function Label(_ref) {
|
|
11460
11464
|
var className = _ref.className,
|
|
11461
11465
|
hidden = _ref.hidden,
|
|
11462
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11466
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
11463
11467
|
|
|
11464
11468
|
return /*#__PURE__*/React__default["default"].createElement("label", _extends$1({
|
|
11465
11469
|
className: classNames('Label', className, {
|
|
@@ -11591,11 +11595,11 @@ var ArcWindow = function ArcWindow() {
|
|
|
11591
11595
|
}));
|
|
11592
11596
|
};
|
|
11593
11597
|
|
|
11594
|
-
var _excluded$
|
|
11598
|
+
var _excluded$d = ["className"];
|
|
11595
11599
|
var FRAMES = [Triangle, Diamond, ArcWindow, Circle];
|
|
11596
11600
|
var Loading = function Loading(_ref) {
|
|
11597
11601
|
var className = _ref.className,
|
|
11598
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11602
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
11599
11603
|
|
|
11600
11604
|
var _useCursor = dist.useCursor({
|
|
11601
11605
|
max: FRAMES.length
|
|
@@ -11671,13 +11675,13 @@ var LoadingBalls = function LoadingBalls(_ref) {
|
|
|
11671
11675
|
})));
|
|
11672
11676
|
};
|
|
11673
11677
|
|
|
11674
|
-
var _excluded$
|
|
11678
|
+
var _excluded$c = ["className", "children", "onClose", "shards"];
|
|
11675
11679
|
var Modal = function Modal(_ref) {
|
|
11676
11680
|
var className = _ref.className,
|
|
11677
11681
|
children = _ref.children,
|
|
11678
11682
|
onClose = _ref.onClose,
|
|
11679
11683
|
shards = _ref.shards,
|
|
11680
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11684
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
11681
11685
|
|
|
11682
11686
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
11683
11687
|
className: classNames('Modal', className)
|
|
@@ -11688,14 +11692,14 @@ var Modal = function Modal(_ref) {
|
|
|
11688
11692
|
}, children));
|
|
11689
11693
|
};
|
|
11690
11694
|
|
|
11691
|
-
var _excluded$
|
|
11695
|
+
var _excluded$b = ["className", "children", "show"];
|
|
11692
11696
|
var UNMOUNT_DELAY_MS = 500;
|
|
11693
11697
|
var Overlay = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
11694
11698
|
var className = _ref.className,
|
|
11695
11699
|
children = _ref.children,
|
|
11696
11700
|
_ref$show = _ref.show,
|
|
11697
11701
|
show = _ref$show === void 0 ? true : _ref$show,
|
|
11698
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11702
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
11699
11703
|
|
|
11700
11704
|
var _useState = React.useState(show),
|
|
11701
11705
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11725,7 +11729,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
|
11725
11729
|
});
|
|
11726
11730
|
Overlay.displayName = 'Overlay';
|
|
11727
11731
|
|
|
11728
|
-
var _excluded$
|
|
11732
|
+
var _excluded$a = ["children", "className", "contentClassName", "onClose", "overlayClassName", "show", "shards"];
|
|
11729
11733
|
var ModalOverlay = function ModalOverlay(_ref) {
|
|
11730
11734
|
var children = _ref.children,
|
|
11731
11735
|
className = _ref.className,
|
|
@@ -11735,7 +11739,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
11735
11739
|
_ref$show = _ref.show,
|
|
11736
11740
|
show = _ref$show === void 0 ? true : _ref$show,
|
|
11737
11741
|
shards = _ref.shards,
|
|
11738
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11742
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
11739
11743
|
|
|
11740
11744
|
var element = React.useMemo(function () {
|
|
11741
11745
|
return typeof document !== 'undefined' ? document.createElement('div') : null;
|
|
@@ -12006,7 +12010,7 @@ var Paginator = function Paginator(_ref) {
|
|
|
12006
12010
|
})));
|
|
12007
12011
|
};
|
|
12008
12012
|
|
|
12009
|
-
var _excluded$
|
|
12013
|
+
var _excluded$9 = ["className", "children", "content", "open", "anchor", "zIndex", "autoPreview", "smoothTransitioning"];
|
|
12010
12014
|
var POPOVER_MOUSEOUT_DELAY_MS = 200;
|
|
12011
12015
|
var THREE_QUARTER_SECOND_DELAY = 750;
|
|
12012
12016
|
var ONE_SECOND_DELAY = 1000;
|
|
@@ -12034,7 +12038,7 @@ var Popover = function Popover(_ref) {
|
|
|
12034
12038
|
autoPreview = _ref$autoPreview === void 0 ? false : _ref$autoPreview,
|
|
12035
12039
|
_ref$smoothTransition = _ref.smoothTransitioning,
|
|
12036
12040
|
smoothTransitioning = _ref$smoothTransition === void 0 ? false : _ref$smoothTransition,
|
|
12037
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12041
|
+
rest = _objectWithoutProperties(_ref, _excluded$9);
|
|
12038
12042
|
|
|
12039
12043
|
var _useState = React.useState(function () {
|
|
12040
12044
|
if (open && smoothTransitioning) {
|
|
@@ -12137,11 +12141,11 @@ var Popover = function Popover(_ref) {
|
|
|
12137
12141
|
}, content)), children));
|
|
12138
12142
|
};
|
|
12139
12143
|
|
|
12140
|
-
var _excluded$
|
|
12144
|
+
var _excluded$8 = ["className", "children"];
|
|
12141
12145
|
var PromoBanner = function PromoBanner(_ref) {
|
|
12142
12146
|
var className = _ref.className,
|
|
12143
12147
|
children = _ref.children,
|
|
12144
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12148
|
+
rest = _objectWithoutProperties(_ref, _excluded$8);
|
|
12145
12149
|
|
|
12146
12150
|
var length = React.Children.count(children);
|
|
12147
12151
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
@@ -12160,7 +12164,7 @@ var PromoBanner = function PromoBanner(_ref) {
|
|
|
12160
12164
|
})));
|
|
12161
12165
|
};
|
|
12162
12166
|
|
|
12163
|
-
var _excluded$
|
|
12167
|
+
var _excluded$7 = ["className", "checked", "children", "value", "tabIndex", "disabled"];
|
|
12164
12168
|
var RadioButton = function RadioButton(_ref) {
|
|
12165
12169
|
var className = _ref.className,
|
|
12166
12170
|
checked = _ref.checked,
|
|
@@ -12168,12 +12172,12 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
12168
12172
|
value = _ref.value,
|
|
12169
12173
|
tabIndex = _ref.tabIndex,
|
|
12170
12174
|
disabled = _ref.disabled,
|
|
12171
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12175
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
12172
12176
|
|
|
12173
12177
|
var inputRef = React.useRef(null);
|
|
12174
12178
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
12175
12179
|
tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : 0,
|
|
12176
|
-
|
|
12180
|
+
onKeyDown: function onKeyDown(_ref2) {
|
|
12177
12181
|
var _inputRef$current;
|
|
12178
12182
|
|
|
12179
12183
|
var key = _ref2.key;
|
|
@@ -12205,14 +12209,14 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
12205
12209
|
}, children));
|
|
12206
12210
|
};
|
|
12207
12211
|
|
|
12208
|
-
var _excluded$
|
|
12212
|
+
var _excluded$6 = ["className", "hover", "selected", "unavailable", "children"];
|
|
12209
12213
|
var SelectableButton = function SelectableButton(_ref) {
|
|
12210
12214
|
var className = _ref.className,
|
|
12211
12215
|
hover = _ref.hover,
|
|
12212
12216
|
selected = _ref.selected,
|
|
12213
12217
|
unavailable = _ref.unavailable,
|
|
12214
12218
|
children = _ref.children,
|
|
12215
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12219
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
12216
12220
|
|
|
12217
12221
|
return /*#__PURE__*/React__default["default"].createElement(Clickable, _extends$1({
|
|
12218
12222
|
className: classNames('SelectableButton', {
|
|
@@ -12223,13 +12227,13 @@ var SelectableButton = function SelectableButton(_ref) {
|
|
|
12223
12227
|
}, rest), /*#__PURE__*/React__default["default"].createElement("span", null, children));
|
|
12224
12228
|
};
|
|
12225
12229
|
|
|
12226
|
-
var _excluded$
|
|
12230
|
+
var _excluded$5 = ["className", "disabled", "onRemove", "children"];
|
|
12227
12231
|
var Tag = function Tag(_ref) {
|
|
12228
12232
|
var className = _ref.className,
|
|
12229
12233
|
disabled = _ref.disabled,
|
|
12230
12234
|
onRemove = _ref.onRemove,
|
|
12231
12235
|
children = _ref.children,
|
|
12232
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12236
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
12233
12237
|
|
|
12234
12238
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
12235
12239
|
className: classNames('Tag', className, {
|
|
@@ -12242,13 +12246,13 @@ var Tag = function Tag(_ref) {
|
|
|
12242
12246
|
}, /*#__PURE__*/React__default["default"].createElement(Exit16, null)));
|
|
12243
12247
|
};
|
|
12244
12248
|
|
|
12245
|
-
var _excluded$
|
|
12249
|
+
var _excluded$4 = ["tabs", "onTabClicked", "activeTab", "className"];
|
|
12246
12250
|
var Tabs = function Tabs(_ref) {
|
|
12247
12251
|
var tabs = _ref.tabs,
|
|
12248
12252
|
onTabClicked = _ref.onTabClicked,
|
|
12249
12253
|
activeTab = _ref.activeTab,
|
|
12250
12254
|
className = _ref.className,
|
|
12251
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12255
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
12252
12256
|
|
|
12253
12257
|
var _useState = React.useState(activeTab || tabs[0].name),
|
|
12254
12258
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12328,7 +12332,7 @@ var TabPanel = function TabPanel(_ref) {
|
|
|
12328
12332
|
}, children);
|
|
12329
12333
|
};
|
|
12330
12334
|
|
|
12331
|
-
var _excluded$
|
|
12335
|
+
var _excluded$3 = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange"];
|
|
12332
12336
|
var Textarea = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
12333
12337
|
var className = _ref.className,
|
|
12334
12338
|
disabled = _ref.disabled,
|
|
@@ -12337,7 +12341,7 @@ var Textarea = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
|
|
|
12337
12341
|
placeholder = _ref.placeholder,
|
|
12338
12342
|
label = _ref.label,
|
|
12339
12343
|
_onChange = _ref.onChange,
|
|
12340
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12344
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
12341
12345
|
|
|
12342
12346
|
return /*#__PURE__*/React__default["default"].createElement("textarea", _extends$1({
|
|
12343
12347
|
className: classNames('Textarea', className, {
|
|
@@ -12356,13 +12360,13 @@ var Textarea = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
|
|
|
12356
12360
|
});
|
|
12357
12361
|
Textarea.displayName = 'Textarea';
|
|
12358
12362
|
|
|
12359
|
-
var _excluded$
|
|
12363
|
+
var _excluded$2 = ["theme", "className", "onRemove", "children"];
|
|
12360
12364
|
var Toast = function Toast(_ref) {
|
|
12361
12365
|
var theme = _ref.theme,
|
|
12362
12366
|
className = _ref.className,
|
|
12363
12367
|
onRemove = _ref.onRemove,
|
|
12364
12368
|
children = _ref.children,
|
|
12365
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12369
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
12366
12370
|
|
|
12367
12371
|
return /*#__PURE__*/React__default["default"].createElement(Stack, _extends$1({
|
|
12368
12372
|
className: classNames('Toast', "Toast--".concat(theme), className),
|
|
@@ -12379,11 +12383,11 @@ var Toast = function Toast(_ref) {
|
|
|
12379
12383
|
}, /*#__PURE__*/React__default["default"].createElement(Exit16, null)));
|
|
12380
12384
|
};
|
|
12381
12385
|
|
|
12382
|
-
var _excluded = ["className", "double"];
|
|
12386
|
+
var _excluded$1 = ["className", "double"];
|
|
12383
12387
|
var VerticalDivider = function VerticalDivider(_ref) {
|
|
12384
12388
|
var className = _ref.className,
|
|
12385
12389
|
_double = _ref["double"],
|
|
12386
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12390
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
12387
12391
|
|
|
12388
12392
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
12389
12393
|
className: classNames('VerticalDivider', {
|
|
@@ -12393,7 +12397,7 @@ var VerticalDivider = function VerticalDivider(_ref) {
|
|
|
12393
12397
|
};
|
|
12394
12398
|
|
|
12395
12399
|
var PasswordInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12396
|
-
var rest = _extends$1({}, _ref);
|
|
12400
|
+
var rest = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
12397
12401
|
|
|
12398
12402
|
var _useState = React.useState(false),
|
|
12399
12403
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12422,6 +12426,40 @@ var PasswordInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12422
12426
|
});
|
|
12423
12427
|
PasswordInput.displayName = 'PasswordInput';
|
|
12424
12428
|
|
|
12429
|
+
var _excluded = ["className", "title", "visible", "children", "onClose"];
|
|
12430
|
+
var SlidingPane = function SlidingPane(_ref) {
|
|
12431
|
+
var className = _ref.className,
|
|
12432
|
+
title = _ref.title,
|
|
12433
|
+
visible = _ref.visible,
|
|
12434
|
+
children = _ref.children,
|
|
12435
|
+
onClose = _ref.onClose,
|
|
12436
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12437
|
+
|
|
12438
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
12439
|
+
className: classNames('SlidingPane', className, {
|
|
12440
|
+
'SlidingPane--active': visible
|
|
12441
|
+
})
|
|
12442
|
+
}, rest), /*#__PURE__*/React__default["default"].createElement(Stack, {
|
|
12443
|
+
space: 0,
|
|
12444
|
+
justifyContent: "center",
|
|
12445
|
+
direction: "horizontal",
|
|
12446
|
+
className: "SlidingPane__top"
|
|
12447
|
+
}, /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
12448
|
+
treatment: "h5",
|
|
12449
|
+
family: "serif"
|
|
12450
|
+
}, title), /*#__PURE__*/React__default["default"].createElement(Clickable, {
|
|
12451
|
+
className: "SlidingPane__close",
|
|
12452
|
+
onClick: onClose
|
|
12453
|
+
}, /*#__PURE__*/React__default["default"].createElement(Exit16, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12454
|
+
className: "SlidingPane__content"
|
|
12455
|
+
}, children)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12456
|
+
className: classNames('SlidingPane__overlay', {
|
|
12457
|
+
'SlidingPane__overlay--active': visible
|
|
12458
|
+
}),
|
|
12459
|
+
onClick: onClose
|
|
12460
|
+
}));
|
|
12461
|
+
};
|
|
12462
|
+
|
|
12425
12463
|
var tokens = {
|
|
12426
12464
|
colors: dist$4.colors,
|
|
12427
12465
|
typography: dist$4.typography,
|
|
@@ -12474,6 +12512,7 @@ exports.SKU_COLORS = SKU_COLORS;
|
|
|
12474
12512
|
exports.SearchInput = SearchInput;
|
|
12475
12513
|
exports.Select = Select;
|
|
12476
12514
|
exports.SelectableButton = SelectableButton;
|
|
12515
|
+
exports.SlidingPane = SlidingPane;
|
|
12477
12516
|
exports.Stack = Stack;
|
|
12478
12517
|
exports.Tab = Tab;
|
|
12479
12518
|
exports.TabList = TabList;
|