@transferwise/components 0.0.0-experimental-68c810c → 0.0.0-experimental-ff22dc3
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/build/index.esm.js +75 -68
- package/build/index.esm.js.map +1 -1
- package/build/index.js +75 -68
- package/build/index.js.map +1 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/inputs/_BottomSheet.tsx +47 -37
- package/src/inputs/_Popover.tsx +30 -27
package/build/index.esm.js
CHANGED
|
@@ -1506,7 +1506,6 @@ const FocusBoundary = ({
|
|
|
1506
1506
|
})
|
|
1507
1507
|
});
|
|
1508
1508
|
};
|
|
1509
|
-
var FocusBoundary$1 = FocusBoundary;
|
|
1510
1509
|
|
|
1511
1510
|
function withNextPortalWrapper(Component) {
|
|
1512
1511
|
return function (props) {
|
|
@@ -1648,7 +1647,7 @@ const Dimmer = ({
|
|
|
1648
1647
|
onExited: onExited,
|
|
1649
1648
|
children: /*#__PURE__*/jsx(DimmerContentWrapper, {
|
|
1650
1649
|
scrollBody: !transparent,
|
|
1651
|
-
children: /*#__PURE__*/jsx(FocusBoundary
|
|
1650
|
+
children: /*#__PURE__*/jsx(FocusBoundary, {
|
|
1652
1651
|
children: /*#__PURE__*/jsx("div", {
|
|
1653
1652
|
ref: dimmerReference,
|
|
1654
1653
|
className: classNames('dimmer', {
|
|
@@ -6411,43 +6410,47 @@ function BottomSheet({
|
|
|
6411
6410
|
children: /*#__PURE__*/jsx("div", {
|
|
6412
6411
|
className: "np-bottom-sheet-v2-backdrop"
|
|
6413
6412
|
})
|
|
6414
|
-
}), /*#__PURE__*/jsx(
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
className: "np-bottom-sheet-v2-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
}),
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6413
|
+
}), /*#__PURE__*/jsx(FocusBoundary, {
|
|
6414
|
+
children: /*#__PURE__*/jsx(FloatingFocusManager, {
|
|
6415
|
+
context: context,
|
|
6416
|
+
initialFocus: initialFocusRef,
|
|
6417
|
+
guards: false,
|
|
6418
|
+
modal: false,
|
|
6419
|
+
children: /*#__PURE__*/jsx("div", {
|
|
6420
|
+
className: "np-bottom-sheet-v2",
|
|
6421
|
+
children: /*#__PURE__*/jsx(Transition.Child, {
|
|
6422
|
+
className: "np-bottom-sheet-v2-content",
|
|
6423
|
+
enter: "np-bottom-sheet-v2-content--enter",
|
|
6424
|
+
enterFrom: "np-bottom-sheet-v2-content--enter-from",
|
|
6425
|
+
leave: "np-bottom-sheet-v2-content--leave",
|
|
6426
|
+
leaveTo: "np-bottom-sheet-v2-content--leave-to",
|
|
6427
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
6428
|
+
// Force inner state invalidation on open
|
|
6429
|
+
ref: refs.setFloating,
|
|
6430
|
+
className: "np-bottom-sheet-v2-content-inner-container",
|
|
6431
|
+
...getFloatingProps(),
|
|
6432
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
6433
|
+
className: "np-bottom-sheet-v2-header",
|
|
6434
|
+
children: /*#__PURE__*/jsx(CloseButton, {
|
|
6435
|
+
size: Size.SMALL,
|
|
6436
|
+
onClick: () => {
|
|
6437
|
+
onClose?.();
|
|
6438
|
+
}
|
|
6439
|
+
})
|
|
6440
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
6441
|
+
className: classNames('np-bottom-sheet-v2-content-inner', title && 'np-bottom-sheet-v2-content-inner--has-title', {
|
|
6442
|
+
'np-bottom-sheet-v2-content-inner--padding-md': padding === 'md'
|
|
6443
|
+
}),
|
|
6444
|
+
children: [title ? /*#__PURE__*/jsx("h2", {
|
|
6445
|
+
className: "np-bottom-sheet-v2-title np-text-title-body",
|
|
6446
|
+
children: title
|
|
6447
|
+
}) : null, /*#__PURE__*/jsx("div", {
|
|
6448
|
+
className: "np-bottom-sheet-v2-body np-text-body-default",
|
|
6449
|
+
children: children
|
|
6450
|
+
})]
|
|
6448
6451
|
})]
|
|
6449
|
-
})
|
|
6450
|
-
}
|
|
6452
|
+
}, floatingKey)
|
|
6453
|
+
})
|
|
6451
6454
|
})
|
|
6452
6455
|
})
|
|
6453
6456
|
})]
|
|
@@ -6540,36 +6543,40 @@ function Popover({
|
|
|
6540
6543
|
theme: theme,
|
|
6541
6544
|
screenMode: screenMode,
|
|
6542
6545
|
isNotRootProvider: true,
|
|
6543
|
-
children: /*#__PURE__*/jsx(
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6546
|
+
children: /*#__PURE__*/jsx(Transition, {
|
|
6547
|
+
show: open,
|
|
6548
|
+
leave: "transition-opacity",
|
|
6549
|
+
leaveTo: "opacity-0",
|
|
6550
|
+
beforeEnter: () => {
|
|
6551
|
+
setFloatingKey(prev => prev + 1);
|
|
6552
|
+
},
|
|
6553
|
+
children: /*#__PURE__*/jsx(FocusBoundary, {
|
|
6554
|
+
children: /*#__PURE__*/jsx(FloatingFocusManager, {
|
|
6555
|
+
context: context,
|
|
6556
|
+
guards: false,
|
|
6557
|
+
modal: false,
|
|
6558
|
+
children: /*#__PURE__*/jsx("div", {
|
|
6559
|
+
// Force inner state invalidation on open
|
|
6560
|
+
ref: refs.setFloating,
|
|
6561
|
+
className: "np-popover-v2-container"
|
|
6562
|
+
// eslint-disable-next-line react/forbid-dom-props
|
|
6563
|
+
,
|
|
6564
|
+
style: floatingStyles,
|
|
6565
|
+
...getFloatingProps(),
|
|
6566
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
6567
|
+
className: classNames('np-popover-v2', title && 'np-popover-v2--has-title', {
|
|
6568
|
+
'np-popover-v2--padding-md': padding === 'md'
|
|
6569
|
+
}),
|
|
6570
|
+
children: [title ? /*#__PURE__*/jsx("h2", {
|
|
6571
|
+
className: "np-popover-v2-title np-text-title-body",
|
|
6572
|
+
children: title
|
|
6573
|
+
}) : null, /*#__PURE__*/jsx("div", {
|
|
6574
|
+
className: "np-popover-v2-content np-text-body-default",
|
|
6575
|
+
children: children
|
|
6576
|
+
})]
|
|
6577
|
+
})
|
|
6578
|
+
}, floatingKey)
|
|
6579
|
+
})
|
|
6573
6580
|
})
|
|
6574
6581
|
})
|
|
6575
6582
|
})
|