@razorpay/blade 12.54.0 → 12.55.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.
Files changed (57) hide show
  1. package/build/lib/native/components/BottomSheet/BottomSheet.native.js +1 -1
  2. package/build/lib/native/components/BottomSheet/BottomSheet.native.js.map +1 -1
  3. package/build/lib/native/components/BottomSheet/BottomSheetBackdrop.native.js +1 -1
  4. package/build/lib/native/components/BottomSheet/BottomSheetBackdrop.native.js.map +1 -1
  5. package/build/lib/native/components/BottomSheet/BottomSheetCommon.js +1 -1
  6. package/build/lib/native/components/BottomSheet/BottomSheetCommon.js.map +1 -1
  7. package/build/lib/native/components/BottomSheet/BottomSheetContext.js +1 -1
  8. package/build/lib/native/components/BottomSheet/BottomSheetContext.js.map +1 -1
  9. package/build/lib/native/components/BottomSheet/BottomSheetHeader.native.js +1 -1
  10. package/build/lib/native/components/BottomSheet/BottomSheetHeader.native.js.map +1 -1
  11. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +26 -10
  12. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  13. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js +5 -2
  14. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  15. package/build/lib/web/development/components/BottomSheet/BottomSheetCommon.js +5 -2
  16. package/build/lib/web/development/components/BottomSheet/BottomSheetCommon.js.map +1 -1
  17. package/build/lib/web/development/components/BottomSheet/BottomSheetContext.js +1 -0
  18. package/build/lib/web/development/components/BottomSheet/BottomSheetContext.js.map +1 -1
  19. package/build/lib/web/development/components/BottomSheet/BottomSheetHeader.web.js +4 -3
  20. package/build/lib/web/development/components/BottomSheet/BottomSheetHeader.web.js.map +1 -1
  21. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js +1 -0
  22. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  23. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js +8 -3
  24. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  25. package/build/lib/web/development/components/Modal/Modal.web.js +8 -5
  26. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  27. package/build/lib/web/development/components/Modal/ModalBackdrop.js +5 -2
  28. package/build/lib/web/development/components/Modal/ModalBackdrop.js.map +1 -1
  29. package/build/lib/web/development/components/Modal/ModalContext.js +1 -0
  30. package/build/lib/web/development/components/Modal/ModalContext.js.map +1 -1
  31. package/build/lib/web/development/components/Modal/ModalHeader.web.js +7 -4
  32. package/build/lib/web/development/components/Modal/ModalHeader.web.js.map +1 -1
  33. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +26 -10
  34. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  35. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js +5 -2
  36. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  37. package/build/lib/web/production/components/BottomSheet/BottomSheetCommon.js +5 -2
  38. package/build/lib/web/production/components/BottomSheet/BottomSheetCommon.js.map +1 -1
  39. package/build/lib/web/production/components/BottomSheet/BottomSheetContext.js +1 -0
  40. package/build/lib/web/production/components/BottomSheet/BottomSheetContext.js.map +1 -1
  41. package/build/lib/web/production/components/BottomSheet/BottomSheetHeader.web.js +4 -3
  42. package/build/lib/web/production/components/BottomSheet/BottomSheetHeader.web.js.map +1 -1
  43. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +1 -0
  44. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  45. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js +8 -3
  46. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  47. package/build/lib/web/production/components/Modal/Modal.web.js +8 -5
  48. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  49. package/build/lib/web/production/components/Modal/ModalBackdrop.js +5 -2
  50. package/build/lib/web/production/components/Modal/ModalBackdrop.js.map +1 -1
  51. package/build/lib/web/production/components/Modal/ModalContext.js +1 -0
  52. package/build/lib/web/production/components/Modal/ModalContext.js.map +1 -1
  53. package/build/lib/web/production/components/Modal/ModalHeader.web.js +7 -4
  54. package/build/lib/web/production/components/Modal/ModalHeader.web.js.map +1 -1
  55. package/build/types/components/index.d.ts +15 -5
  56. package/build/types/components/index.native.d.ts +12 -2
  57. package/package.json +1 -1
@@ -6505,6 +6505,11 @@ type BottomSheetProps = {
6505
6505
  * Called when the bottom sheet is closed, either by user state, hitting `esc` or tapping backdrop
6506
6506
  */
6507
6507
  onDismiss?: () => void;
6508
+ /**
6509
+ * Whether the bottom sheet can be dismissed by tapping backdrop, swiping down.
6510
+ * @default true
6511
+ */
6512
+ isDismissible?: boolean;
6508
6513
  /**
6509
6514
  * Toggles bottom sheet state
6510
6515
  *
@@ -6551,13 +6556,13 @@ type BottomSheetBodyProps = {
6551
6556
  overflow?: BaseBoxProps['overflow'];
6552
6557
  } & DataAnalyticsAttribute;
6553
6558
 
6554
- declare const BottomSheetHeader: ({ title, subtitle, leading, titleSuffix, trailing, showBackButton, onBackButtonClick, children, ...dataAnalyticsProps }: BottomSheetHeaderProps) => React__default.ReactElement;
6559
+ declare const BottomSheetHeader: ({ title, subtitle, leading, trailing, titleSuffix, showBackButton, onBackButtonClick, children, ...dataAnalyticsProps }: BottomSheetHeaderProps) => React__default.ReactElement;
6555
6560
 
6556
6561
  declare const BottomSheetFooter: ({ children, ...dataAnalyticsProps }: BaseFooterProps) => React__default.ReactElement;
6557
6562
 
6558
6563
  declare const BottomSheetBody: ({ children, padding, overflow, ...dataAnalyticsProps }: BottomSheetBodyProps) => React__default.ReactElement;
6559
6564
 
6560
- declare const BottomSheet: ({ isOpen, onDismiss, children, initialFocusRef, snapPoints, zIndex, ...dataAnalyticsProps }: BottomSheetProps) => React__default.ReactElement;
6565
+ declare const BottomSheet: ({ isOpen, onDismiss, children, initialFocusRef, snapPoints, isDismissible, zIndex, ...dataAnalyticsProps }: BottomSheetProps) => React__default.ReactElement;
6561
6566
 
6562
6567
  type LinkCommonProps = {
6563
6568
  variant?: 'anchor' | 'button';
@@ -14798,7 +14803,7 @@ type FilterChipGroupContextType = {
14798
14803
  setClearFilterCallbackTriggerer: React__default.Dispatch<React__default.SetStateAction<number>>;
14799
14804
  };
14800
14805
 
14801
- declare const DropdownOverlay: ({ children, testID, zIndex, width, minWidth, maxWidth, referenceRef, defaultPlacement, _isNestedDropdown, }: DropdownOverlayProps) => React__default.ReactElement | null;
14806
+ declare const DropdownOverlay: ({ children, testID, zIndex, width, minWidth, maxWidth, referenceRef, defaultPlacement, _isNestedDropdown, ...dataAnalyticsProps }: DropdownOverlayProps) => React__default.ReactElement | null;
14802
14807
 
14803
14808
  type DropdownButtonProps = ButtonProps & {
14804
14809
  onBlur?: BaseButtonProps['onBlur'];
@@ -18933,7 +18938,12 @@ type ModalProps = {
18933
18938
  /**
18934
18939
  * Callback function when user clicks on close button or outside the modal or on pressing escape key.
18935
18940
  */
18936
- onDismiss: () => void;
18941
+ onDismiss?: () => void;
18942
+ /**
18943
+ * Whether the modal can be dismissed by clicking outside or pressing escape key
18944
+ * @default true
18945
+ */
18946
+ isDismissible?: boolean;
18937
18947
  /**
18938
18948
  * Ref to the element to be focused on opening the modal.
18939
18949
  */
@@ -18954,7 +18964,7 @@ type ModalProps = {
18954
18964
  zIndex?: number;
18955
18965
  } & DataAnalyticsAttribute;
18956
18966
 
18957
- declare const Modal: ({ isOpen, children, onDismiss, initialFocusRef, size, accessibilityLabel, zIndex, ...rest }: ModalProps) => React__default.ReactElement;
18967
+ declare const Modal: ({ isOpen, children, onDismiss, isDismissible, initialFocusRef, size, accessibilityLabel, zIndex, ...rest }: ModalProps) => React__default.ReactElement;
18958
18968
 
18959
18969
  type MoveProps = Pick<BaseMotionEntryExitProps, 'children' | 'isVisible' | 'motionTriggers' | 'shouldUnmountWhenHidden' | 'type' | 'delay'>;
18960
18970
 
@@ -5342,6 +5342,11 @@ type BottomSheetProps = {
5342
5342
  * Called when the bottom sheet is closed, either by user state, hitting `esc` or tapping backdrop
5343
5343
  */
5344
5344
  onDismiss?: () => void;
5345
+ /**
5346
+ * Whether the bottom sheet can be dismissed by tapping backdrop, swiping down.
5347
+ * @default true
5348
+ */
5349
+ isDismissible?: boolean;
5345
5350
  /**
5346
5351
  * Toggles bottom sheet state
5347
5352
  *
@@ -5394,7 +5399,7 @@ declare const BottomSheetBody: ({ children, padding, }: BottomSheetBodyProps) =>
5394
5399
 
5395
5400
  declare const BottomSheetFooter: ({ children }: BottomSheetFooterProps) => react__default.ReactElement;
5396
5401
 
5397
- declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, initialFocusRef, zIndex, }: BottomSheetProps) => react__default.ReactElement;
5402
+ declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, isDismissible, initialFocusRef, zIndex, }: BottomSheetProps) => react__default.ReactElement;
5398
5403
 
5399
5404
  type LinkCommonProps = {
5400
5405
  variant?: 'anchor' | 'button';
@@ -12410,7 +12415,12 @@ type ModalProps = {
12410
12415
  /**
12411
12416
  * Callback function when user clicks on close button or outside the modal or on pressing escape key.
12412
12417
  */
12413
- onDismiss: () => void;
12418
+ onDismiss?: () => void;
12419
+ /**
12420
+ * Whether the modal can be dismissed by clicking outside or pressing escape key
12421
+ * @default true
12422
+ */
12423
+ isDismissible?: boolean;
12414
12424
  /**
12415
12425
  * Ref to the element to be focused on opening the modal.
12416
12426
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@razorpay/blade",
3
3
  "description": "The Design System that powers Razorpay",
4
- "version": "12.54.0",
4
+ "version": "12.55.1",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"