@razorpay/blade 9.0.0 → 9.0.1
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/components/index.native.js +1 -1
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +12 -3
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/package.json +1 -1
|
@@ -553,6 +553,11 @@ var getDropdownOverlayPosition = function getDropdownOverlayPosition(_ref) {
|
|
|
553
553
|
var HEIGHT_THRESHOLD = (Number(actionListItemEl === null || actionListItemEl === void 0 ? void 0 : actionListItemEl.clientHeight) + Number(size[16])) * -1;
|
|
554
554
|
|
|
555
555
|
if (!isMenu) {
|
|
556
|
+
// In SelectInput, we set position wrt to right so that leftLabel position can be accomodated
|
|
557
|
+
// without additional offset calculation from left
|
|
558
|
+
newPosition.left = undefined;
|
|
559
|
+
newPosition.right = zeroSpacing;
|
|
560
|
+
|
|
556
561
|
if (bottom > HEIGHT_THRESHOLD) {
|
|
557
562
|
newPosition.bottom = "".concat(Number(triggererEl === null || triggererEl === void 0 ? void 0 : triggererEl.clientHeight) + Number(size[32]), "px");
|
|
558
563
|
newPosition.top = undefined;
|
|
@@ -1394,15 +1399,19 @@ var componentIds = {
|
|
|
1394
1399
|
ActionListSection: 'ActionListSection'
|
|
1395
1400
|
};
|
|
1396
1401
|
|
|
1397
|
-
/* eslint-disable
|
|
1402
|
+
/* eslint-disable no-restricted-properties */
|
|
1398
1403
|
/**
|
|
1399
1404
|
* Gets the `componentId` prop of React component if it exists.
|
|
1400
1405
|
*/
|
|
1401
1406
|
|
|
1402
1407
|
var getComponentId = function getComponentId(component) {
|
|
1403
|
-
var _component$type;
|
|
1408
|
+
var _component$props, _component$props2, _component$props2$ori, _component$type;
|
|
1409
|
+
|
|
1410
|
+
if (! /*#__PURE__*/React__default.isValidElement(component)) return null; // Storybook wraps MDX components in a wrapper component, so we need to get componentId from originalType
|
|
1404
1411
|
|
|
1405
|
-
if (
|
|
1412
|
+
if (component !== null && component !== void 0 && (_component$props = component.props) !== null && _component$props !== void 0 && _component$props.mdxType && component !== null && component !== void 0 && (_component$props2 = component.props) !== null && _component$props2 !== void 0 && (_component$props2$ori = _component$props2.originalType) !== null && _component$props2$ori !== void 0 && _component$props2$ori.componentId) {
|
|
1413
|
+
return component.props.originalType.componentId;
|
|
1414
|
+
}
|
|
1406
1415
|
|
|
1407
1416
|
return (_component$type = component.type) === null || _component$type === void 0 ? void 0 : _component$type.componentId;
|
|
1408
1417
|
};
|