@razorpay/blade 9.0.0 → 9.0.2

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.
@@ -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 @typescript-eslint/no-explicit-any */
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;
1404
1409
 
1405
- if (! /*#__PURE__*/React__default.isValidElement(component)) return null; // eslint-disable-next-line no-restricted-properties
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
1411
+
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
  };
@@ -28848,25 +28857,10 @@ var getTransitionEasing = function getTransitionEasing(theme) {
28848
28857
  return theme.motion.easing.standard.effective;
28849
28858
  };
28850
28859
 
28851
- /**
28852
- * The orientation of chevron icon inverts based on the direction collapsible expands in.
28853
- * `transformExpanded` and `transformCollapsed` therefore need to swap their corresponding expanded and collapsed values.
28854
- */
28855
- var getCollapsibleChevronIconTransforms = function getCollapsibleChevronIconTransforms(_ref3) {
28856
- var direction = _ref3.direction;
28857
- var transformExpanded, transformCollapsed;
28858
-
28859
- if (direction === 'bottom') {
28860
- transformExpanded = -180;
28861
- transformCollapsed = 0;
28862
- } else {
28863
- transformExpanded = 0;
28864
- transformCollapsed = -180;
28865
- }
28866
-
28860
+ var getCollapsibleChevronIconTransforms = function getCollapsibleChevronIconTransforms() {
28867
28861
  return {
28868
- transformExpanded: transformExpanded,
28869
- transformCollapsed: transformCollapsed
28862
+ transformExpanded: -180,
28863
+ transformCollapsed: 0
28870
28864
  };
28871
28865
  };
28872
28866
 
@@ -28878,12 +28872,9 @@ var StyledCollapsibleChevronIcon = /*#__PURE__*/styled(BaseBox).withConfig({
28878
28872
  componentId: "sc-1kwlg5h-0"
28879
28873
  })(function (props) {
28880
28874
  var isExpanded = props.isExpanded,
28881
- direction = props.direction,
28882
28875
  theme = props.theme;
28883
28876
 
28884
- var _getCollapsibleChevro = getCollapsibleChevronIconTransforms({
28885
- direction: direction
28886
- }),
28877
+ var _getCollapsibleChevro = getCollapsibleChevronIconTransforms(),
28887
28878
  transformExpanded = _getCollapsibleChevro.transformExpanded,
28888
28879
  transformCollapsed = _getCollapsibleChevro.transformCollapsed;
28889
28880