@razorpay/blade 12.1.0 → 12.2.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.
Files changed (77) hide show
  1. package/build/lib/native/components/ActionList/ActionList.js +1 -1
  2. package/build/lib/native/components/ActionList/ActionList.js.map +1 -1
  3. package/build/lib/native/components/ActionList/ActionListBox.native.js +1 -1
  4. package/build/lib/native/components/ActionList/ActionListBox.native.js.map +1 -1
  5. package/build/lib/native/components/ActionList/ActionListItem.js +1 -1
  6. package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
  7. package/build/lib/native/components/ActionList/styles/getBaseListBoxWrapperStyles.js +2 -2
  8. package/build/lib/native/components/ActionList/styles/getBaseListBoxWrapperStyles.js.map +1 -1
  9. package/build/lib/native/components/BaseMenu/BaseMenuItem/BaseMenuItem.js +5 -7
  10. package/build/lib/native/components/BaseMenu/BaseMenuItem/BaseMenuItem.js.map +1 -1
  11. package/build/lib/native/components/BaseMenu/BaseMenuItem/getBaseMenuItemStyles.js +2 -1
  12. package/build/lib/native/components/BaseMenu/BaseMenuItem/getBaseMenuItemStyles.js.map +1 -1
  13. package/build/lib/native/components/BaseMenu/BaseMenuItem/tokens.js +8 -0
  14. package/build/lib/native/components/BaseMenu/BaseMenuItem/tokens.js.map +1 -0
  15. package/build/lib/web/development/components/ActionList/ActionList.js +6 -7
  16. package/build/lib/web/development/components/ActionList/ActionList.js.map +1 -1
  17. package/build/lib/web/development/components/ActionList/ActionListBox.web.js +114 -3
  18. package/build/lib/web/development/components/ActionList/ActionListBox.web.js.map +1 -1
  19. package/build/lib/web/development/components/ActionList/ActionListItem.js +57 -60
  20. package/build/lib/web/development/components/ActionList/ActionListItem.js.map +1 -1
  21. package/build/lib/web/development/components/ActionList/styles/getBaseListBoxWrapperStyles.js +8 -4
  22. package/build/lib/web/development/components/ActionList/styles/getBaseListBoxWrapperStyles.js.map +1 -1
  23. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/BaseMenuItem.js +6 -7
  24. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/BaseMenuItem.js.map +1 -1
  25. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/StyledMenuItemContainer.web.js +3 -2
  26. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/StyledMenuItemContainer.web.js.map +1 -1
  27. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/getBaseMenuItemStyles.js +3 -2
  28. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/getBaseMenuItemStyles.js.map +1 -1
  29. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/tokens.js +26 -0
  30. package/build/lib/web/development/components/BaseMenu/BaseMenuItem/tokens.js.map +1 -0
  31. package/build/lib/web/development/components/DatePicker/Calendar.web.js +4 -2
  32. package/build/lib/web/development/components/DatePicker/Calendar.web.js.map +1 -1
  33. package/build/lib/web/development/components/DatePicker/CalendarHeader.web.js +45 -31
  34. package/build/lib/web/development/components/DatePicker/CalendarHeader.web.js.map +1 -1
  35. package/build/lib/web/development/components/DatePicker/DateInput.web.js +6 -5
  36. package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -1
  37. package/build/lib/web/development/components/DatePicker/DatePicker.web.js +32 -2
  38. package/build/lib/web/development/components/DatePicker/DatePicker.web.js.map +1 -1
  39. package/build/lib/web/development/components/SideNav/SideNav.web.js +22 -8
  40. package/build/lib/web/development/components/SideNav/SideNav.web.js.map +1 -1
  41. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js +1 -1
  42. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  43. package/build/lib/web/development/components/TopNav/TopNav.web.js +1 -1
  44. package/build/lib/web/development/components/TopNav/TopNav.web.js.map +1 -1
  45. package/build/lib/web/production/components/ActionList/ActionList.js +6 -7
  46. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  47. package/build/lib/web/production/components/ActionList/ActionListBox.web.js +114 -3
  48. package/build/lib/web/production/components/ActionList/ActionListBox.web.js.map +1 -1
  49. package/build/lib/web/production/components/ActionList/ActionListItem.js +57 -60
  50. package/build/lib/web/production/components/ActionList/ActionListItem.js.map +1 -1
  51. package/build/lib/web/production/components/ActionList/styles/getBaseListBoxWrapperStyles.js +8 -4
  52. package/build/lib/web/production/components/ActionList/styles/getBaseListBoxWrapperStyles.js.map +1 -1
  53. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/BaseMenuItem.js +6 -7
  54. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/BaseMenuItem.js.map +1 -1
  55. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/StyledMenuItemContainer.web.js +3 -2
  56. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/StyledMenuItemContainer.web.js.map +1 -1
  57. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/getBaseMenuItemStyles.js +3 -2
  58. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/getBaseMenuItemStyles.js.map +1 -1
  59. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/tokens.js +26 -0
  60. package/build/lib/web/production/components/BaseMenu/BaseMenuItem/tokens.js.map +1 -0
  61. package/build/lib/web/production/components/DatePicker/Calendar.web.js +4 -2
  62. package/build/lib/web/production/components/DatePicker/Calendar.web.js.map +1 -1
  63. package/build/lib/web/production/components/DatePicker/CalendarHeader.web.js +45 -31
  64. package/build/lib/web/production/components/DatePicker/CalendarHeader.web.js.map +1 -1
  65. package/build/lib/web/production/components/DatePicker/DateInput.web.js +6 -5
  66. package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -1
  67. package/build/lib/web/production/components/DatePicker/DatePicker.web.js +32 -2
  68. package/build/lib/web/production/components/DatePicker/DatePicker.web.js.map +1 -1
  69. package/build/lib/web/production/components/SideNav/SideNav.web.js +22 -8
  70. package/build/lib/web/production/components/SideNav/SideNav.web.js.map +1 -1
  71. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js +1 -1
  72. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  73. package/build/lib/web/production/components/TopNav/TopNav.web.js +1 -1
  74. package/build/lib/web/production/components/TopNav/TopNav.web.js.map +1 -1
  75. package/build/types/components/index.d.ts +15 -2
  76. package/build/types/components/index.native.d.ts +12 -1
  77. package/package.json +4 -2
@@ -3437,6 +3437,7 @@ declare const AccordionItem: ({ title, description, icon, children, isDisabled,
3437
3437
 
3438
3438
  type ActionListProps = {
3439
3439
  children: React__default.ReactNode[];
3440
+ isVirtualized?: boolean;
3440
3441
  } & TestID & DataAnalyticsAttribute;
3441
3442
  /**
3442
3443
  * ### ActionList
@@ -3469,7 +3470,7 @@ type ActionListProps = {
3469
3470
  * ```
3470
3471
  *
3471
3472
  */
3472
- declare const ActionList: React__default.MemoExoticComponent<({ children, testID, ...rest }: ActionListProps) => React__default.ReactElement>;
3473
+ declare const ActionList: React__default.MemoExoticComponent<({ children, testID, isVirtualized, ...rest }: ActionListProps) => React__default.ReactElement>;
3473
3474
 
3474
3475
  type BadgeProps = {
3475
3476
  /**
@@ -16018,6 +16019,16 @@ type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>,
16018
16019
  */
16019
16020
  onApply?: Type extends 'single' ? (value: DateValue) => void : (value: DatesRangeValue) => void;
16020
16021
  labelPosition?: BaseInputProps['labelPosition'];
16022
+ /**
16023
+ * Sets the date format to be displayed in the input field.
16024
+ * @default 'DD/MM/YYYY' if pickerType is 'month' then 'MMMM', 'YYYY' if pickerType is 'year'
16025
+ */
16026
+ format?: 'DD/MM/YYYY' | 'MMM' | 'MMMM' | 'YYYY';
16027
+ /**
16028
+ * Placeholder text for the datepicker input , when no date is selected.
16029
+ * @default 'DD/MM/YYYY' if pickerType is 'month' then 'MMMM', 'YYYY' if pickerType is 'year'
16030
+ */
16031
+ inputPlaceHolder?: string;
16021
16032
  };
16022
16033
  type DatePickerCommonInputProps = {
16023
16034
  labelPosition?: BaseInputProps['labelPosition'];
@@ -16025,7 +16036,7 @@ type DatePickerCommonInputProps = {
16025
16036
  referenceProps: any;
16026
16037
  } & Pick<TextInputProps, 'size' | 'isRequired' | 'necessityIndicator' | 'autoFocus' | 'isDisabled' | 'accessibilityLabel'> & FormInputValidationProps;
16027
16038
 
16028
- declare const DatePicker: <Type extends DateSelectionType = "single">({ selectionType, allowSingleDateInRange, value, defaultValue, onChange, onApply, presets, isOpen, defaultIsOpen, onOpenChange, label, labelPosition, accessibilityLabel, errorText, helpText, isDisabled, isRequired, successText, validationState, size, autoFocus, necessityIndicator, name, defaultPicker, picker, onPickerChange, zIndex, ...props }: Omit<CalendarProps<Type>, "onMouseLeave" | "__onDayMouseEnter" | "__onDayClick" | "getDayProps" | "getYearControlProps" | "getMonthControlProps"> & Omit<{
16039
+ declare const DatePicker: <Type extends DateSelectionType = "single">({ selectionType, allowSingleDateInRange, value, defaultValue, onChange, onApply, presets, isOpen, defaultIsOpen, onOpenChange, label, labelPosition, accessibilityLabel, errorText, helpText, isDisabled, isRequired, successText, validationState, size, autoFocus, necessityIndicator, name, defaultPicker, picker, onPickerChange, zIndex, format, inputPlaceHolder, ...props }: Omit<CalendarProps<Type>, "onMouseLeave" | "__onDayMouseEnter" | "__onDayClick" | "getDayProps" | "getYearControlProps" | "getMonthControlProps"> & Omit<{
16029
16040
  labelPosition?: "left" | "top" | undefined;
16030
16041
  inputRef: React__default.Ref<any>;
16031
16042
  referenceProps: any;
@@ -16052,6 +16063,8 @@ declare const DatePicker: <Type extends DateSelectionType = "single">({ selectio
16052
16063
  }) | undefined;
16053
16064
  onApply?: (Type extends "single" ? (value: _mantine_dates.DateValue) => void : (value: DatesRangeValue) => void) | undefined;
16054
16065
  labelPosition?: "left" | "top" | undefined;
16066
+ format?: "DD/MM/YYYY" | "MMM" | "MMMM" | "YYYY" | undefined;
16067
+ inputPlaceHolder?: string | undefined;
16055
16068
  } & Partial<Omit<MarginProps & Pick<FlexboxProps, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & {
16056
16069
  bottom: SpacingValueType | {
16057
16070
  readonly base?: SpacingValueType | undefined;
@@ -3003,6 +3003,7 @@ declare const AccordionItem: ({ title, description, icon, children, isDisabled,
3003
3003
 
3004
3004
  type ActionListProps = {
3005
3005
  children: React__default.ReactNode[];
3006
+ isVirtualized?: boolean;
3006
3007
  } & TestID & DataAnalyticsAttribute;
3007
3008
  /**
3008
3009
  * ### ActionList
@@ -3035,7 +3036,7 @@ type ActionListProps = {
3035
3036
  * ```
3036
3037
  *
3037
3038
  */
3038
- declare const ActionList: React__default.MemoExoticComponent<({ children, testID, ...rest }: ActionListProps) => React__default.ReactElement>;
3039
+ declare const ActionList: React__default.MemoExoticComponent<({ children, testID, isVirtualized, ...rest }: ActionListProps) => React__default.ReactElement>;
3039
3040
 
3040
3041
  type BadgeProps = {
3041
3042
  /**
@@ -10555,6 +10556,16 @@ type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>,
10555
10556
  */
10556
10557
  onApply?: Type extends 'single' ? (value: DateValue) => void : (value: DatesRangeValue) => void;
10557
10558
  labelPosition?: BaseInputProps['labelPosition'];
10559
+ /**
10560
+ * Sets the date format to be displayed in the input field.
10561
+ * @default 'DD/MM/YYYY' if pickerType is 'month' then 'MMMM', 'YYYY' if pickerType is 'year'
10562
+ */
10563
+ format?: 'DD/MM/YYYY' | 'MMM' | 'MMMM' | 'YYYY';
10564
+ /**
10565
+ * Placeholder text for the datepicker input , when no date is selected.
10566
+ * @default 'DD/MM/YYYY' if pickerType is 'month' then 'MMMM', 'YYYY' if pickerType is 'year'
10567
+ */
10568
+ inputPlaceHolder?: string;
10558
10569
  };
10559
10570
  type DatePickerCommonInputProps = {
10560
10571
  labelPosition?: BaseInputProps['labelPosition'];
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.1.0",
4
+ "version": "12.2.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"
@@ -148,7 +148,8 @@
148
148
  "@mantine/core": "6.0.21",
149
149
  "@mantine/dates": "6.0.21",
150
150
  "@mantine/hooks": "6.0.21",
151
- "dayjs": "1.11.10"
151
+ "dayjs": "1.11.10",
152
+ "react-window": "1.8.11"
152
153
  },
153
154
  "devDependencies": {
154
155
  "http-server": "14.1.1",
@@ -222,6 +223,7 @@
222
223
  "@types/styled-components-react-native": "5.1.3",
223
224
  "@types/tinycolor2": "1.4.3",
224
225
  "@types/react-router-dom": "5.3.3",
226
+ "@types/react-window": "1.8.8",
225
227
  "@types/storybook-react-router": "1.0.5",
226
228
  "any-leaf": "1.2.2",
227
229
  "args-parser": "1.3.0",