@moda/om 17.5.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 +15 -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/Badge/Badge.d.ts +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/Badge/Badge.scss +10 -0
- package/src/components/Badge/Badge.stories.tsx +4 -0
- package/src/components/Badge/Badge.tsx +1 -1
- 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.esm.js
CHANGED
|
@@ -1143,6 +1143,10 @@ function _extends$1() {
|
|
|
1143
1143
|
return _extends$1.apply(this, arguments);
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
|
+
function _objectDestructuringEmpty(obj) {
|
|
1147
|
+
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1146
1150
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1147
1151
|
if (source == null) return {};
|
|
1148
1152
|
var target = {};
|
|
@@ -1313,7 +1317,7 @@ var classnames = {exports: {}};
|
|
|
1313
1317
|
|
|
1314
1318
|
var classNames = classnames.exports;
|
|
1315
1319
|
|
|
1316
|
-
var _excluded$
|
|
1320
|
+
var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
|
|
1317
1321
|
var Stack = function Stack(_ref) {
|
|
1318
1322
|
var className = _ref.className,
|
|
1319
1323
|
children = _ref.children,
|
|
@@ -1323,7 +1327,7 @@ var Stack = function Stack(_ref) {
|
|
|
1323
1327
|
alignItems = _ref.alignItems,
|
|
1324
1328
|
justifyContent = _ref.justifyContent,
|
|
1325
1329
|
style = _ref.style,
|
|
1326
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1330
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
1327
1331
|
|
|
1328
1332
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1329
1333
|
className: classNames("Stack Stack--".concat(direction, "-").concat(space), className),
|
|
@@ -1397,11 +1401,11 @@ var StatesProps = function StatesProps(_ref) {
|
|
|
1397
1401
|
}, /*#__PURE__*/React__default.createElement("span", null, children.type.displayName || children.type.name), !isEmpty(props) && /*#__PURE__*/React__default.createElement("strong", null, stringifyProps(props)), !isRenderProps(children) && !isEmpty(childrenProps) && /*#__PURE__*/React__default.createElement("span", null, stringifyProps(childrenProps)), /*#__PURE__*/React__default.createElement("span", null, " "));
|
|
1398
1402
|
};
|
|
1399
1403
|
|
|
1400
|
-
var _excluded$
|
|
1404
|
+
var _excluded$E = ["props", "children"];
|
|
1401
1405
|
var State = function State(_ref) {
|
|
1402
1406
|
var props = _ref.props,
|
|
1403
1407
|
children = _ref.children,
|
|
1404
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1408
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
1405
1409
|
|
|
1406
1410
|
var Specimen = isRenderProps(children) ? children(props) : /*#__PURE__*/React__default.cloneElement(children, props);
|
|
1407
1411
|
var innerChildren = isRenderProps(children) ? children(props) : children;
|
|
@@ -1414,12 +1418,12 @@ var State = function State(_ref) {
|
|
|
1414
1418
|
}, innerChildren)));
|
|
1415
1419
|
};
|
|
1416
1420
|
|
|
1417
|
-
var _excluded$
|
|
1421
|
+
var _excluded$D = ["states", "children"];
|
|
1418
1422
|
var States = function States(_ref) {
|
|
1419
1423
|
var _ref$states = _ref.states,
|
|
1420
1424
|
states = _ref$states === void 0 ? [{}] : _ref$states,
|
|
1421
1425
|
children = _ref.children,
|
|
1422
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1426
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
1423
1427
|
|
|
1424
1428
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1425
1429
|
className: "States"
|
|
@@ -5383,7 +5387,7 @@ var scale = {};
|
|
|
5383
5387
|
__exportStar(scale, exports);
|
|
5384
5388
|
})(dist$3);
|
|
5385
5389
|
|
|
5386
|
-
var _excluded$
|
|
5390
|
+
var _excluded$C = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outlined", "children", "className"];
|
|
5387
5391
|
var DEFAULT_PRODUCT_ASPECT_WIDTH = 128;
|
|
5388
5392
|
var DEFAULT_PRODUCT_ASPECT_HEIGHT = 205;
|
|
5389
5393
|
var DEFAULT_PRODUCT_ASPECT_RATIO = DEFAULT_PRODUCT_ASPECT_HEIGHT / DEFAULT_PRODUCT_ASPECT_WIDTH;
|
|
@@ -5398,7 +5402,7 @@ var AspectRatioBox = /*#__PURE__*/React__default.forwardRef(function (_ref, forw
|
|
|
5398
5402
|
outlined = _ref$outlined === void 0 ? false : _ref$outlined,
|
|
5399
5403
|
children = _ref.children,
|
|
5400
5404
|
className = _ref.className,
|
|
5401
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5405
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5402
5406
|
|
|
5403
5407
|
var _scale = dist$3.scale({
|
|
5404
5408
|
width: aspectWidth,
|
|
@@ -5428,23 +5432,23 @@ var AspectRatioBox = /*#__PURE__*/React__default.forwardRef(function (_ref, forw
|
|
|
5428
5432
|
});
|
|
5429
5433
|
AspectRatioBox.displayName = 'AspectRatioBox';
|
|
5430
5434
|
|
|
5431
|
-
var _excluded$
|
|
5435
|
+
var _excluded$B = ["className", "theme", "children"];
|
|
5432
5436
|
var Badge = function Badge(_ref) {
|
|
5433
5437
|
var className = _ref.className,
|
|
5434
5438
|
theme = _ref.theme,
|
|
5435
5439
|
children = _ref.children,
|
|
5436
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5440
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
5437
5441
|
|
|
5438
5442
|
return /*#__PURE__*/React__default.createElement("span", _extends$1({
|
|
5439
5443
|
className: classNames('Badge', theme && "Badge--".concat(theme), className)
|
|
5440
5444
|
}, rest), children);
|
|
5441
5445
|
};
|
|
5442
5446
|
|
|
5443
|
-
var _excluded$
|
|
5447
|
+
var _excluded$A = ["children", "className"];
|
|
5444
5448
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
5445
5449
|
var children = _ref.children,
|
|
5446
5450
|
className = _ref.className,
|
|
5447
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5451
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
5448
5452
|
|
|
5449
5453
|
var position = 0;
|
|
5450
5454
|
return /*#__PURE__*/React__default.createElement("ol", _extends$1({
|
|
@@ -5464,7 +5468,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
5464
5468
|
}));
|
|
5465
5469
|
};
|
|
5466
5470
|
|
|
5467
|
-
var _excluded$
|
|
5471
|
+
var _excluded$z = ["className", "styleless", "disabled"];
|
|
5468
5472
|
|
|
5469
5473
|
var isLink = function isLink(props) {
|
|
5470
5474
|
return 'to' in props;
|
|
@@ -5483,7 +5487,7 @@ var Clickable = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
5483
5487
|
_ref$styleless = _ref.styleless,
|
|
5484
5488
|
styleless = _ref$styleless === void 0 ? false : _ref$styleless,
|
|
5485
5489
|
disabled = _ref.disabled,
|
|
5486
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5490
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
5487
5491
|
|
|
5488
5492
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
5489
5493
|
className: classNames({
|
|
@@ -5506,14 +5510,14 @@ var Clickable = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
5506
5510
|
});
|
|
5507
5511
|
Clickable.displayName = 'Clickable';
|
|
5508
5512
|
|
|
5509
|
-
var _excluded$
|
|
5513
|
+
var _excluded$y = ["className", "disabled", "children", "underlined"];
|
|
5510
5514
|
var ControlLink = function ControlLink(_ref) {
|
|
5511
5515
|
var className = _ref.className,
|
|
5512
5516
|
disabled = _ref.disabled,
|
|
5513
5517
|
children = _ref.children,
|
|
5514
5518
|
_ref$underlined = _ref.underlined,
|
|
5515
5519
|
underlined = _ref$underlined === void 0 ? true : _ref$underlined,
|
|
5516
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5520
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
5517
5521
|
|
|
5518
5522
|
return /*#__PURE__*/React__default.createElement(Clickable, _extends$1({}, rest, {
|
|
5519
5523
|
className: classNames('ControlLink', {
|
|
@@ -5525,12 +5529,12 @@ var ControlLink = function ControlLink(_ref) {
|
|
|
5525
5529
|
}), children);
|
|
5526
5530
|
};
|
|
5527
5531
|
|
|
5528
|
-
var _excluded$
|
|
5532
|
+
var _excluded$x = ["children", "position", "className"];
|
|
5529
5533
|
var Breadcrumb = function Breadcrumb(_ref) {
|
|
5530
5534
|
var children = _ref.children,
|
|
5531
5535
|
position = _ref.position,
|
|
5532
5536
|
className = _ref.className,
|
|
5533
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5537
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
5534
5538
|
|
|
5535
5539
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
5536
5540
|
className: classNames('Breadcrumb', className),
|
|
@@ -5664,10 +5668,10 @@ var useBreakpoint = function useBreakpoint(props) {
|
|
|
5664
5668
|
};
|
|
5665
5669
|
};
|
|
5666
5670
|
|
|
5667
|
-
var _excluded$
|
|
5671
|
+
var _excluded$w = ["children"];
|
|
5668
5672
|
var Breakpoint = function Breakpoint(_ref) {
|
|
5669
5673
|
var children = _ref.children,
|
|
5670
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5674
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
5671
5675
|
|
|
5672
5676
|
var _discriminate = discriminate(rest),
|
|
5673
5677
|
mode = _discriminate.mode,
|
|
@@ -5681,7 +5685,7 @@ var Breakpoint = function Breakpoint(_ref) {
|
|
|
5681
5685
|
}, children) : null;
|
|
5682
5686
|
};
|
|
5683
5687
|
|
|
5684
|
-
var _excluded$
|
|
5688
|
+
var _excluded$v = ["secondary", "chip", "hover", "focus", "disabled", "className"];
|
|
5685
5689
|
var Button = function Button(_ref) {
|
|
5686
5690
|
var secondary = _ref.secondary,
|
|
5687
5691
|
chip = _ref.chip,
|
|
@@ -5689,7 +5693,7 @@ var Button = function Button(_ref) {
|
|
|
5689
5693
|
focus = _ref.focus,
|
|
5690
5694
|
disabled = _ref.disabled,
|
|
5691
5695
|
className = _ref.className,
|
|
5692
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5696
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
5693
5697
|
|
|
5694
5698
|
return /*#__PURE__*/React__default.createElement(Clickable, _extends$1({
|
|
5695
5699
|
className: classNames('Button', {
|
|
@@ -5840,7 +5844,7 @@ var Circle12 = function Circle12(_a) {
|
|
|
5840
5844
|
|
|
5841
5845
|
Circle12.displayName = 'Circle12';
|
|
5842
5846
|
|
|
5843
|
-
var _excluded$
|
|
5847
|
+
var _excluded$u = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId"];
|
|
5844
5848
|
var CHECKED_ITEM_PROPS = {
|
|
5845
5849
|
className: 'Checkbox__check-mark',
|
|
5846
5850
|
height: '85%',
|
|
@@ -5859,7 +5863,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
5859
5863
|
_ref$checkIcon = _ref.checkIcon,
|
|
5860
5864
|
checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
|
|
5861
5865
|
dataTestId = _ref.dataTestId,
|
|
5862
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5866
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
5863
5867
|
|
|
5864
5868
|
var _useState = useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
|
|
5865
5869
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5952,7 +5956,7 @@ var SKU_COLORS = {
|
|
|
5952
5956
|
yellow: '#ffca44'
|
|
5953
5957
|
};
|
|
5954
5958
|
|
|
5955
|
-
var _excluded$
|
|
5959
|
+
var _excluded$t = ["className", "size", "color", "backgroundUrl", "focus", "hover", "selected", "soldOut", "onSale", "onClick", "onMouseEnter", "disabled", "title"];
|
|
5956
5960
|
var ColorSwatch = function ColorSwatch(_ref) {
|
|
5957
5961
|
var _SKU_COLORS;
|
|
5958
5962
|
|
|
@@ -5969,7 +5973,7 @@ var ColorSwatch = function ColorSwatch(_ref) {
|
|
|
5969
5973
|
onMouseEnter = _ref.onMouseEnter,
|
|
5970
5974
|
disabled = _ref.disabled,
|
|
5971
5975
|
title = _ref.title,
|
|
5972
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5976
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
5973
5977
|
|
|
5974
5978
|
var handleClick = useCallback(function (_event) {
|
|
5975
5979
|
onClick && onClick(color, title);
|
|
@@ -6007,22 +6011,22 @@ var ColorSwatch = function ColorSwatch(_ref) {
|
|
|
6007
6011
|
}));
|
|
6008
6012
|
};
|
|
6009
6013
|
|
|
6010
|
-
var _excluded$
|
|
6014
|
+
var _excluded$s = ["className", "children"];
|
|
6011
6015
|
var Constrain = function Constrain(_ref) {
|
|
6012
6016
|
var className = _ref.className,
|
|
6013
6017
|
children = _ref.children,
|
|
6014
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6018
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
6015
6019
|
|
|
6016
6020
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
6017
6021
|
className: classNames('Constrain', className)
|
|
6018
6022
|
}, rest), children);
|
|
6019
6023
|
};
|
|
6020
6024
|
|
|
6021
|
-
var _excluded$
|
|
6025
|
+
var _excluded$r = ["className", "children"];
|
|
6022
6026
|
var ExceedConstrain = function ExceedConstrain(_ref) {
|
|
6023
6027
|
var className = _ref.className,
|
|
6024
6028
|
children = _ref.children,
|
|
6025
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6029
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6026
6030
|
|
|
6027
6031
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
6028
6032
|
className: classNames('ExceedConstrain', className)
|
|
@@ -8434,7 +8438,7 @@ var Warning16 = function Warning16(_a) {
|
|
|
8434
8438
|
|
|
8435
8439
|
Warning16.displayName = 'Warning16';
|
|
8436
8440
|
|
|
8437
|
-
var _excluded$
|
|
8441
|
+
var _excluded$q = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange", "onChangeEvent"];
|
|
8438
8442
|
var TextInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
8439
8443
|
var className = _ref.className,
|
|
8440
8444
|
disabled = _ref.disabled,
|
|
@@ -8444,7 +8448,7 @@ var TextInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
8444
8448
|
label = _ref.label,
|
|
8445
8449
|
_onChange = _ref.onChange,
|
|
8446
8450
|
onChangeEvent = _ref.onChangeEvent,
|
|
8447
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8451
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
8448
8452
|
|
|
8449
8453
|
return /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
8450
8454
|
className: classNames('TextInput', className, {
|
|
@@ -8812,7 +8816,7 @@ var useUpdateEffect = function useUpdateEffect(effect, deps) {
|
|
|
8812
8816
|
}, deps);
|
|
8813
8817
|
};
|
|
8814
8818
|
|
|
8815
|
-
var _excluded$
|
|
8819
|
+
var _excluded$p = ["className", "treatment", "color", "family", "children", "style"];
|
|
8816
8820
|
var Text = function Text(_ref) {
|
|
8817
8821
|
var className = _ref.className,
|
|
8818
8822
|
_ref$treatment = _ref.treatment,
|
|
@@ -8822,7 +8826,7 @@ var Text = function Text(_ref) {
|
|
|
8822
8826
|
family = _ref.family,
|
|
8823
8827
|
children = _ref.children,
|
|
8824
8828
|
style = _ref.style,
|
|
8825
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8829
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
8826
8830
|
|
|
8827
8831
|
return /*#__PURE__*/React__default.createElement("span", _extends$1({
|
|
8828
8832
|
className: classNames("Text Text--".concat(treatment, " ").concat(family ? "Text--".concat(family) : ''), className),
|
|
@@ -8979,7 +8983,7 @@ var Search20 = function Search20(_a) {
|
|
|
8979
8983
|
|
|
8980
8984
|
Search20.displayName = 'Search20';
|
|
8981
8985
|
|
|
8982
|
-
var _excluded$
|
|
8986
|
+
var _excluded$o = ["className", "onChange", "onChangeValue", "onClear", "value"];
|
|
8983
8987
|
var DEFAULT_INPUT_VALUE = '';
|
|
8984
8988
|
var SearchInput = function SearchInput(_ref) {
|
|
8985
8989
|
var className = _ref.className,
|
|
@@ -8988,7 +8992,7 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
8988
8992
|
onClear = _ref.onClear,
|
|
8989
8993
|
_ref$value = _ref.value,
|
|
8990
8994
|
value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
|
|
8991
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8995
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
8992
8996
|
|
|
8993
8997
|
var ref = useRef(null);
|
|
8994
8998
|
|
|
@@ -9216,7 +9220,7 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
9216
9220
|
}, option.label);
|
|
9217
9221
|
};
|
|
9218
9222
|
|
|
9219
|
-
var _excluded$
|
|
9223
|
+
var _excluded$n = ["idRef", "searchable", "autoFocus", "options", "selectedOption", "onSelect", "onFocus", "className", "dataTestId"];
|
|
9220
9224
|
var SelectOptions = function SelectOptions(_ref) {
|
|
9221
9225
|
var idRef = _ref.idRef,
|
|
9222
9226
|
searchable = _ref.searchable,
|
|
@@ -9228,7 +9232,7 @@ var SelectOptions = function SelectOptions(_ref) {
|
|
|
9228
9232
|
onFocus = _ref.onFocus,
|
|
9229
9233
|
className = _ref.className,
|
|
9230
9234
|
dataTestId = _ref.dataTestId,
|
|
9231
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9235
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
9232
9236
|
|
|
9233
9237
|
var _useState = useState(''),
|
|
9234
9238
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -9407,7 +9411,7 @@ var useSelect = function useSelect(_ref) {
|
|
|
9407
9411
|
};
|
|
9408
9412
|
};
|
|
9409
9413
|
|
|
9410
|
-
var _excluded$
|
|
9414
|
+
var _excluded$m = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId"];
|
|
9411
9415
|
var Select = function Select(_ref) {
|
|
9412
9416
|
var _ref2;
|
|
9413
9417
|
|
|
@@ -9434,7 +9438,7 @@ var Select = function Select(_ref) {
|
|
|
9434
9438
|
shiftIconLeftwards = _ref$shiftIconLeftwar === void 0 ? false : _ref$shiftIconLeftwar,
|
|
9435
9439
|
value = _ref.value,
|
|
9436
9440
|
dataTestId = _ref.dataTestId,
|
|
9437
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9441
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
9438
9442
|
|
|
9439
9443
|
var _useSelect = useSelect({
|
|
9440
9444
|
value: value,
|
|
@@ -11109,7 +11113,7 @@ var Exit16 = function Exit16(_a) {
|
|
|
11109
11113
|
|
|
11110
11114
|
Exit16.displayName = 'Exit16';
|
|
11111
11115
|
|
|
11112
|
-
var _excluded$
|
|
11116
|
+
var _excluded$l = ["className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "onChange", "options", "searchable", "shiftIconLeftwards", "value"];
|
|
11113
11117
|
var MultiSelect = function MultiSelect(_ref) {
|
|
11114
11118
|
var className = _ref.className,
|
|
11115
11119
|
defaultValue = _ref.defaultValue,
|
|
@@ -11124,7 +11128,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11124
11128
|
searchable = _ref.searchable,
|
|
11125
11129
|
shiftIconLeftwards = _ref.shiftIconLeftwards,
|
|
11126
11130
|
value = _ref.value,
|
|
11127
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11131
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
11128
11132
|
|
|
11129
11133
|
var _useSelect = useSelect({
|
|
11130
11134
|
value: value,
|
|
@@ -11224,14 +11228,14 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11224
11228
|
}));
|
|
11225
11229
|
};
|
|
11226
11230
|
|
|
11227
|
-
var _excluded$
|
|
11231
|
+
var _excluded$k = ["className", "children", "error", "label", "placeholder"];
|
|
11228
11232
|
var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
11229
11233
|
var className = _ref.className,
|
|
11230
11234
|
children = _ref.children,
|
|
11231
11235
|
error = _ref.error,
|
|
11232
11236
|
label = _ref.label,
|
|
11233
11237
|
placeholder = _ref.placeholder,
|
|
11234
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11238
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
11235
11239
|
|
|
11236
11240
|
return /*#__PURE__*/React__default.createElement("label", {
|
|
11237
11241
|
className: classNames('Field', className)
|
|
@@ -11260,17 +11264,17 @@ var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
11260
11264
|
});
|
|
11261
11265
|
Field.displayName = 'Field';
|
|
11262
11266
|
|
|
11263
|
-
var _excluded$
|
|
11267
|
+
var _excluded$j = ["onChange"];
|
|
11264
11268
|
var CreditCardNumberInputField = function CreditCardNumberInputField(_ref) {
|
|
11265
11269
|
var onChange = _ref.onChange,
|
|
11266
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11270
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
11267
11271
|
|
|
11268
11272
|
return /*#__PURE__*/React__default.createElement(Field, _extends$1({}, rest, {
|
|
11269
11273
|
onChangeEvent: onChange
|
|
11270
11274
|
}));
|
|
11271
11275
|
};
|
|
11272
11276
|
|
|
11273
|
-
var _excluded$
|
|
11277
|
+
var _excluded$i = ["value", "disabled", "readOnly", "defaultValue", "maskChar", "alwaysShowMask", "onMouseDown", "onFocus", "onBlur", "onChange"];
|
|
11274
11278
|
var DEFAULT_MASK = '9999 9999 9999 9999';
|
|
11275
11279
|
var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
11276
11280
|
var _ref2;
|
|
@@ -11285,7 +11289,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
11285
11289
|
onFocus = _ref.onFocus,
|
|
11286
11290
|
onBlur = _ref.onBlur,
|
|
11287
11291
|
onChange = _ref.onChange,
|
|
11288
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11292
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
11289
11293
|
|
|
11290
11294
|
var _useState = useState((_ref2 = propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : ''),
|
|
11291
11295
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11331,19 +11335,19 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
11331
11335
|
}, renderInputField);
|
|
11332
11336
|
};
|
|
11333
11337
|
|
|
11334
|
-
var _excluded$
|
|
11338
|
+
var _excluded$h = ["term", "children", "className"];
|
|
11335
11339
|
var DefinitionList = function DefinitionList(_ref) {
|
|
11336
11340
|
var term = _ref.term,
|
|
11337
11341
|
children = _ref.children,
|
|
11338
11342
|
className = _ref.className,
|
|
11339
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11343
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
11340
11344
|
|
|
11341
11345
|
return /*#__PURE__*/React__default.createElement("dl", _extends$1({
|
|
11342
11346
|
className: classNames('DefinitionList', className)
|
|
11343
11347
|
}, rest), /*#__PURE__*/React__default.createElement("dt", null, term), /*#__PURE__*/React__default.createElement("dd", null, children));
|
|
11344
11348
|
};
|
|
11345
11349
|
|
|
11346
|
-
var _excluded$
|
|
11350
|
+
var _excluded$g = ["name", "children", "className", "virtual", "icon", "data-testid", "defaultExpanded", "expanded", "onToggle", "background", "border"];
|
|
11347
11351
|
var Expandable = function Expandable(_ref) {
|
|
11348
11352
|
var name = _ref.name,
|
|
11349
11353
|
children = _ref.children,
|
|
@@ -11361,7 +11365,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
11361
11365
|
background = _ref$background === void 0 ? 'light' : _ref$background,
|
|
11362
11366
|
_ref$border = _ref.border,
|
|
11363
11367
|
border = _ref$border === void 0 ? true : _ref$border,
|
|
11364
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11368
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
11365
11369
|
|
|
11366
11370
|
var _useState = useState(defaultExpanded),
|
|
11367
11371
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11394,7 +11398,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
11394
11398
|
}, expanded || !virtual ? children : null));
|
|
11395
11399
|
};
|
|
11396
11400
|
|
|
11397
|
-
var _excluded$
|
|
11401
|
+
var _excluded$f = ["text", "treatment", "color", "family", "type", "className"];
|
|
11398
11402
|
var Divider = function Divider(_ref) {
|
|
11399
11403
|
var text = _ref.text,
|
|
11400
11404
|
treatment = _ref.treatment,
|
|
@@ -11402,7 +11406,7 @@ var Divider = function Divider(_ref) {
|
|
|
11402
11406
|
family = _ref.family,
|
|
11403
11407
|
type = _ref.type,
|
|
11404
11408
|
className = _ref.className,
|
|
11405
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11409
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
11406
11410
|
|
|
11407
11411
|
var defaultTreatment = type === 'two-line' ? 'eyebrow' : 'h5';
|
|
11408
11412
|
var defaultFamily = type === 'two-line' ? undefined : 'serif';
|
|
@@ -11428,11 +11432,11 @@ var NoLineDivider = function NoLineDivider(props) {
|
|
|
11428
11432
|
}));
|
|
11429
11433
|
};
|
|
11430
11434
|
|
|
11431
|
-
var _excluded$
|
|
11435
|
+
var _excluded$e = ["className", "hidden"];
|
|
11432
11436
|
var Label = function Label(_ref) {
|
|
11433
11437
|
var className = _ref.className,
|
|
11434
11438
|
hidden = _ref.hidden,
|
|
11435
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11439
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
11436
11440
|
|
|
11437
11441
|
return /*#__PURE__*/React__default.createElement("label", _extends$1({
|
|
11438
11442
|
className: classNames('Label', className, {
|
|
@@ -11564,11 +11568,11 @@ var ArcWindow = function ArcWindow() {
|
|
|
11564
11568
|
}));
|
|
11565
11569
|
};
|
|
11566
11570
|
|
|
11567
|
-
var _excluded$
|
|
11571
|
+
var _excluded$d = ["className"];
|
|
11568
11572
|
var FRAMES = [Triangle, Diamond, ArcWindow, Circle];
|
|
11569
11573
|
var Loading = function Loading(_ref) {
|
|
11570
11574
|
var className = _ref.className,
|
|
11571
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11575
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
11572
11576
|
|
|
11573
11577
|
var _useCursor = dist.useCursor({
|
|
11574
11578
|
max: FRAMES.length
|
|
@@ -11644,13 +11648,13 @@ var LoadingBalls = function LoadingBalls(_ref) {
|
|
|
11644
11648
|
})));
|
|
11645
11649
|
};
|
|
11646
11650
|
|
|
11647
|
-
var _excluded$
|
|
11651
|
+
var _excluded$c = ["className", "children", "onClose", "shards"];
|
|
11648
11652
|
var Modal = function Modal(_ref) {
|
|
11649
11653
|
var className = _ref.className,
|
|
11650
11654
|
children = _ref.children,
|
|
11651
11655
|
onClose = _ref.onClose,
|
|
11652
11656
|
shards = _ref.shards,
|
|
11653
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11657
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
11654
11658
|
|
|
11655
11659
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
11656
11660
|
className: classNames('Modal', className)
|
|
@@ -11661,14 +11665,14 @@ var Modal = function Modal(_ref) {
|
|
|
11661
11665
|
}, children));
|
|
11662
11666
|
};
|
|
11663
11667
|
|
|
11664
|
-
var _excluded$
|
|
11668
|
+
var _excluded$b = ["className", "children", "show"];
|
|
11665
11669
|
var UNMOUNT_DELAY_MS = 500;
|
|
11666
11670
|
var Overlay = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
11667
11671
|
var className = _ref.className,
|
|
11668
11672
|
children = _ref.children,
|
|
11669
11673
|
_ref$show = _ref.show,
|
|
11670
11674
|
show = _ref$show === void 0 ? true : _ref$show,
|
|
11671
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11675
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
11672
11676
|
|
|
11673
11677
|
var _useState = useState(show),
|
|
11674
11678
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11698,7 +11702,7 @@ var Overlay = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
|
11698
11702
|
});
|
|
11699
11703
|
Overlay.displayName = 'Overlay';
|
|
11700
11704
|
|
|
11701
|
-
var _excluded$
|
|
11705
|
+
var _excluded$a = ["children", "className", "contentClassName", "onClose", "overlayClassName", "show", "shards"];
|
|
11702
11706
|
var ModalOverlay = function ModalOverlay(_ref) {
|
|
11703
11707
|
var children = _ref.children,
|
|
11704
11708
|
className = _ref.className,
|
|
@@ -11708,7 +11712,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
11708
11712
|
_ref$show = _ref.show,
|
|
11709
11713
|
show = _ref$show === void 0 ? true : _ref$show,
|
|
11710
11714
|
shards = _ref.shards,
|
|
11711
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11715
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
11712
11716
|
|
|
11713
11717
|
var element = useMemo(function () {
|
|
11714
11718
|
return typeof document !== 'undefined' ? document.createElement('div') : null;
|
|
@@ -11979,7 +11983,7 @@ var Paginator = function Paginator(_ref) {
|
|
|
11979
11983
|
})));
|
|
11980
11984
|
};
|
|
11981
11985
|
|
|
11982
|
-
var _excluded$
|
|
11986
|
+
var _excluded$9 = ["className", "children", "content", "open", "anchor", "zIndex", "autoPreview", "smoothTransitioning"];
|
|
11983
11987
|
var POPOVER_MOUSEOUT_DELAY_MS = 200;
|
|
11984
11988
|
var THREE_QUARTER_SECOND_DELAY = 750;
|
|
11985
11989
|
var ONE_SECOND_DELAY = 1000;
|
|
@@ -12007,7 +12011,7 @@ var Popover = function Popover(_ref) {
|
|
|
12007
12011
|
autoPreview = _ref$autoPreview === void 0 ? false : _ref$autoPreview,
|
|
12008
12012
|
_ref$smoothTransition = _ref.smoothTransitioning,
|
|
12009
12013
|
smoothTransitioning = _ref$smoothTransition === void 0 ? false : _ref$smoothTransition,
|
|
12010
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12014
|
+
rest = _objectWithoutProperties(_ref, _excluded$9);
|
|
12011
12015
|
|
|
12012
12016
|
var _useState = useState(function () {
|
|
12013
12017
|
if (open && smoothTransitioning) {
|
|
@@ -12110,11 +12114,11 @@ var Popover = function Popover(_ref) {
|
|
|
12110
12114
|
}, content)), children));
|
|
12111
12115
|
};
|
|
12112
12116
|
|
|
12113
|
-
var _excluded$
|
|
12117
|
+
var _excluded$8 = ["className", "children"];
|
|
12114
12118
|
var PromoBanner = function PromoBanner(_ref) {
|
|
12115
12119
|
var className = _ref.className,
|
|
12116
12120
|
children = _ref.children,
|
|
12117
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12121
|
+
rest = _objectWithoutProperties(_ref, _excluded$8);
|
|
12118
12122
|
|
|
12119
12123
|
var length = Children.count(children);
|
|
12120
12124
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
@@ -12133,7 +12137,7 @@ var PromoBanner = function PromoBanner(_ref) {
|
|
|
12133
12137
|
})));
|
|
12134
12138
|
};
|
|
12135
12139
|
|
|
12136
|
-
var _excluded$
|
|
12140
|
+
var _excluded$7 = ["className", "checked", "children", "value", "tabIndex", "disabled"];
|
|
12137
12141
|
var RadioButton = function RadioButton(_ref) {
|
|
12138
12142
|
var className = _ref.className,
|
|
12139
12143
|
checked = _ref.checked,
|
|
@@ -12141,12 +12145,12 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
12141
12145
|
value = _ref.value,
|
|
12142
12146
|
tabIndex = _ref.tabIndex,
|
|
12143
12147
|
disabled = _ref.disabled,
|
|
12144
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12148
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
12145
12149
|
|
|
12146
12150
|
var inputRef = useRef(null);
|
|
12147
12151
|
return /*#__PURE__*/React__default.createElement("label", {
|
|
12148
12152
|
tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : 0,
|
|
12149
|
-
|
|
12153
|
+
onKeyDown: function onKeyDown(_ref2) {
|
|
12150
12154
|
var _inputRef$current;
|
|
12151
12155
|
|
|
12152
12156
|
var key = _ref2.key;
|
|
@@ -12178,14 +12182,14 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
12178
12182
|
}, children));
|
|
12179
12183
|
};
|
|
12180
12184
|
|
|
12181
|
-
var _excluded$
|
|
12185
|
+
var _excluded$6 = ["className", "hover", "selected", "unavailable", "children"];
|
|
12182
12186
|
var SelectableButton = function SelectableButton(_ref) {
|
|
12183
12187
|
var className = _ref.className,
|
|
12184
12188
|
hover = _ref.hover,
|
|
12185
12189
|
selected = _ref.selected,
|
|
12186
12190
|
unavailable = _ref.unavailable,
|
|
12187
12191
|
children = _ref.children,
|
|
12188
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12192
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
12189
12193
|
|
|
12190
12194
|
return /*#__PURE__*/React__default.createElement(Clickable, _extends$1({
|
|
12191
12195
|
className: classNames('SelectableButton', {
|
|
@@ -12196,13 +12200,13 @@ var SelectableButton = function SelectableButton(_ref) {
|
|
|
12196
12200
|
}, rest), /*#__PURE__*/React__default.createElement("span", null, children));
|
|
12197
12201
|
};
|
|
12198
12202
|
|
|
12199
|
-
var _excluded$
|
|
12203
|
+
var _excluded$5 = ["className", "disabled", "onRemove", "children"];
|
|
12200
12204
|
var Tag = function Tag(_ref) {
|
|
12201
12205
|
var className = _ref.className,
|
|
12202
12206
|
disabled = _ref.disabled,
|
|
12203
12207
|
onRemove = _ref.onRemove,
|
|
12204
12208
|
children = _ref.children,
|
|
12205
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12209
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
12206
12210
|
|
|
12207
12211
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
12208
12212
|
className: classNames('Tag', className, {
|
|
@@ -12215,13 +12219,13 @@ var Tag = function Tag(_ref) {
|
|
|
12215
12219
|
}, /*#__PURE__*/React__default.createElement(Exit16, null)));
|
|
12216
12220
|
};
|
|
12217
12221
|
|
|
12218
|
-
var _excluded$
|
|
12222
|
+
var _excluded$4 = ["tabs", "onTabClicked", "activeTab", "className"];
|
|
12219
12223
|
var Tabs = function Tabs(_ref) {
|
|
12220
12224
|
var tabs = _ref.tabs,
|
|
12221
12225
|
onTabClicked = _ref.onTabClicked,
|
|
12222
12226
|
activeTab = _ref.activeTab,
|
|
12223
12227
|
className = _ref.className,
|
|
12224
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12228
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
12225
12229
|
|
|
12226
12230
|
var _useState = useState(activeTab || tabs[0].name),
|
|
12227
12231
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12301,7 +12305,7 @@ var TabPanel = function TabPanel(_ref) {
|
|
|
12301
12305
|
}, children);
|
|
12302
12306
|
};
|
|
12303
12307
|
|
|
12304
|
-
var _excluded$
|
|
12308
|
+
var _excluded$3 = ["className", "disabled", "error", "focus", "placeholder", "label", "onChange"];
|
|
12305
12309
|
var Textarea = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
12306
12310
|
var className = _ref.className,
|
|
12307
12311
|
disabled = _ref.disabled,
|
|
@@ -12310,7 +12314,7 @@ var Textarea = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
12310
12314
|
placeholder = _ref.placeholder,
|
|
12311
12315
|
label = _ref.label,
|
|
12312
12316
|
_onChange = _ref.onChange,
|
|
12313
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12317
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
12314
12318
|
|
|
12315
12319
|
return /*#__PURE__*/React__default.createElement("textarea", _extends$1({
|
|
12316
12320
|
className: classNames('Textarea', className, {
|
|
@@ -12329,13 +12333,13 @@ var Textarea = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
12329
12333
|
});
|
|
12330
12334
|
Textarea.displayName = 'Textarea';
|
|
12331
12335
|
|
|
12332
|
-
var _excluded$
|
|
12336
|
+
var _excluded$2 = ["theme", "className", "onRemove", "children"];
|
|
12333
12337
|
var Toast = function Toast(_ref) {
|
|
12334
12338
|
var theme = _ref.theme,
|
|
12335
12339
|
className = _ref.className,
|
|
12336
12340
|
onRemove = _ref.onRemove,
|
|
12337
12341
|
children = _ref.children,
|
|
12338
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12342
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
12339
12343
|
|
|
12340
12344
|
return /*#__PURE__*/React__default.createElement(Stack, _extends$1({
|
|
12341
12345
|
className: classNames('Toast', "Toast--".concat(theme), className),
|
|
@@ -12352,11 +12356,11 @@ var Toast = function Toast(_ref) {
|
|
|
12352
12356
|
}, /*#__PURE__*/React__default.createElement(Exit16, null)));
|
|
12353
12357
|
};
|
|
12354
12358
|
|
|
12355
|
-
var _excluded = ["className", "double"];
|
|
12359
|
+
var _excluded$1 = ["className", "double"];
|
|
12356
12360
|
var VerticalDivider = function VerticalDivider(_ref) {
|
|
12357
12361
|
var className = _ref.className,
|
|
12358
12362
|
_double = _ref["double"],
|
|
12359
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12363
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
12360
12364
|
|
|
12361
12365
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
12362
12366
|
className: classNames('VerticalDivider', {
|
|
@@ -12366,7 +12370,7 @@ var VerticalDivider = function VerticalDivider(_ref) {
|
|
|
12366
12370
|
};
|
|
12367
12371
|
|
|
12368
12372
|
var PasswordInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12369
|
-
var rest = _extends$1({}, _ref);
|
|
12373
|
+
var rest = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
12370
12374
|
|
|
12371
12375
|
var _useState = useState(false),
|
|
12372
12376
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12395,6 +12399,40 @@ var PasswordInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12395
12399
|
});
|
|
12396
12400
|
PasswordInput.displayName = 'PasswordInput';
|
|
12397
12401
|
|
|
12402
|
+
var _excluded = ["className", "title", "visible", "children", "onClose"];
|
|
12403
|
+
var SlidingPane = function SlidingPane(_ref) {
|
|
12404
|
+
var className = _ref.className,
|
|
12405
|
+
title = _ref.title,
|
|
12406
|
+
visible = _ref.visible,
|
|
12407
|
+
children = _ref.children,
|
|
12408
|
+
onClose = _ref.onClose,
|
|
12409
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12410
|
+
|
|
12411
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
12412
|
+
className: classNames('SlidingPane', className, {
|
|
12413
|
+
'SlidingPane--active': visible
|
|
12414
|
+
})
|
|
12415
|
+
}, rest), /*#__PURE__*/React__default.createElement(Stack, {
|
|
12416
|
+
space: 0,
|
|
12417
|
+
justifyContent: "center",
|
|
12418
|
+
direction: "horizontal",
|
|
12419
|
+
className: "SlidingPane__top"
|
|
12420
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12421
|
+
treatment: "h5",
|
|
12422
|
+
family: "serif"
|
|
12423
|
+
}, title), /*#__PURE__*/React__default.createElement(Clickable, {
|
|
12424
|
+
className: "SlidingPane__close",
|
|
12425
|
+
onClick: onClose
|
|
12426
|
+
}, /*#__PURE__*/React__default.createElement(Exit16, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
12427
|
+
className: "SlidingPane__content"
|
|
12428
|
+
}, children)), /*#__PURE__*/React__default.createElement("div", {
|
|
12429
|
+
className: classNames('SlidingPane__overlay', {
|
|
12430
|
+
'SlidingPane__overlay--active': visible
|
|
12431
|
+
}),
|
|
12432
|
+
onClick: onClose
|
|
12433
|
+
}));
|
|
12434
|
+
};
|
|
12435
|
+
|
|
12398
12436
|
var tokens = {
|
|
12399
12437
|
colors: dist$4.colors,
|
|
12400
12438
|
typography: dist$4.typography,
|
|
@@ -12405,4 +12443,4 @@ var Utilities = {
|
|
|
12405
12443
|
States: States
|
|
12406
12444
|
};
|
|
12407
12445
|
|
|
12408
|
-
export { AspectRatioBox, Badge, Breadcrumb, Breadcrumbs, Breakpoint, BreakpointContext, BreakpointProvider, Button, Checkbox, Clickable, ColorSwatch, Constrain, ControlLink, CreditCardNumberInput, DEFAULT_PRODUCT_ASPECT_HEIGHT, DEFAULT_PRODUCT_ASPECT_RATIO, DEFAULT_PRODUCT_ASPECT_WIDTH, DefinitionList, Divider, ExceedConstrain, Expandable, Field, FocusOn, Field as Input, Label, Loading, LoadingBalls, Modal, ModalOverlay, MultiSelect, NoLineDivider, Overlay, POPOVER_MOUSEOUT_DELAY_MS, Paginator, PasswordInput, Popover, PromoBanner, RadioButton, SKU_COLORS, SearchInput, Select, SelectableButton, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, Text, TextInput, Textarea, Toast, TwoLineDivider, UNMOUNT_DELAY_MS, Utilities, VerticalDivider, discriminate, tokens, useBreakpoint, useClickOutside, useKeyboardListNavigation, useUpdateEffect };
|
|
12446
|
+
export { AspectRatioBox, Badge, Breadcrumb, Breadcrumbs, Breakpoint, BreakpointContext, BreakpointProvider, Button, Checkbox, Clickable, ColorSwatch, Constrain, ControlLink, CreditCardNumberInput, DEFAULT_PRODUCT_ASPECT_HEIGHT, DEFAULT_PRODUCT_ASPECT_RATIO, DEFAULT_PRODUCT_ASPECT_WIDTH, DefinitionList, Divider, ExceedConstrain, Expandable, Field, FocusOn, Field as Input, Label, Loading, LoadingBalls, Modal, ModalOverlay, MultiSelect, NoLineDivider, 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, TwoLineDivider, UNMOUNT_DELAY_MS, Utilities, VerticalDivider, discriminate, tokens, useBreakpoint, useClickOutside, useKeyboardListNavigation, useUpdateEffect };
|