@razorpay/blade 11.21.0 → 11.21.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.
@@ -6798,7 +6798,7 @@ type CalendarProps<SelectionType extends DateSelectionType> = Pick<DatePickerPro
6798
6798
  type: Level;
6799
6799
  }) => void;
6800
6800
  };
6801
- type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>, MantineInternalProps> & Omit<DatePickerCommonInputProps, 'inputRef' | 'referenceProps' | 'labelPosition' | 'name'> & {
6801
+ type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>, MantineInternalProps> & Omit<DatePickerCommonInputProps, 'inputRef' | 'referenceProps' | 'labelPosition' | 'name' | 'successText' | 'errorText' | 'helpText'> & {
6802
6802
  /**
6803
6803
  * Sets the label for the input element.
6804
6804
  */
@@ -6816,6 +6816,18 @@ type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>,
6816
6816
  start: string;
6817
6817
  end?: string;
6818
6818
  };
6819
+ helpText?: Type extends 'single' ? string : {
6820
+ start: string;
6821
+ end?: string;
6822
+ };
6823
+ errorText?: Type extends 'single' ? string : {
6824
+ start: string;
6825
+ end?: string;
6826
+ };
6827
+ successText?: Type extends 'single' ? string : {
6828
+ start: string;
6829
+ end?: string;
6830
+ };
6819
6831
  labelPosition?: BaseInputProps['labelPosition'];
6820
6832
  };
6821
6833
  type DatePickerCommonInputProps = {
@@ -6828,7 +6840,7 @@ declare const DatePicker: <Type extends DateSelectionType = "single">({ selectio
6828
6840
  labelPosition?: "left" | "top" | undefined;
6829
6841
  inputRef: React__default.Ref<any>;
6830
6842
  referenceProps: any;
6831
- } & Pick<TextInputProps, "size" | "autoFocus" | "isDisabled" | "accessibilityLabel" | "isRequired" | "necessityIndicator"> & FormInputValidationProps, "name" | "labelPosition" | "inputRef" | "referenceProps"> & {
6843
+ } & Pick<TextInputProps, "size" | "autoFocus" | "isDisabled" | "accessibilityLabel" | "isRequired" | "necessityIndicator"> & FormInputValidationProps, "name" | "labelPosition" | "helpText" | "errorText" | "successText" | "inputRef" | "referenceProps"> & {
6832
6844
  label?: (Type extends "single" ? string : {
6833
6845
  start: string;
6834
6846
  end?: string | undefined;
@@ -6837,6 +6849,18 @@ declare const DatePicker: <Type extends DateSelectionType = "single">({ selectio
6837
6849
  start: string;
6838
6850
  end?: string | undefined;
6839
6851
  }) | undefined;
6852
+ helpText?: (Type extends "single" ? string : {
6853
+ start: string;
6854
+ end?: string | undefined;
6855
+ }) | undefined;
6856
+ errorText?: (Type extends "single" ? string : {
6857
+ start: string;
6858
+ end?: string | undefined;
6859
+ }) | undefined;
6860
+ successText?: (Type extends "single" ? string : {
6861
+ start: string;
6862
+ end?: string | undefined;
6863
+ }) | undefined;
6840
6864
  labelPosition?: "left" | "top" | undefined;
6841
6865
  } & Partial<Omit<MarginProps & Pick<FlexboxProps, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & {
6842
6866
  bottom: SpacingValueType | {
@@ -6022,7 +6022,7 @@ type CalendarProps<SelectionType extends DateSelectionType> = Pick<DatePickerPro
6022
6022
  type: Level;
6023
6023
  }) => void;
6024
6024
  };
6025
- type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>, MantineInternalProps> & Omit<DatePickerCommonInputProps, 'inputRef' | 'referenceProps' | 'labelPosition' | 'name'> & {
6025
+ type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>, MantineInternalProps> & Omit<DatePickerCommonInputProps, 'inputRef' | 'referenceProps' | 'labelPosition' | 'name' | 'successText' | 'errorText' | 'helpText'> & {
6026
6026
  /**
6027
6027
  * Sets the label for the input element.
6028
6028
  */
@@ -6040,6 +6040,18 @@ type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>,
6040
6040
  start: string;
6041
6041
  end?: string;
6042
6042
  };
6043
+ helpText?: Type extends 'single' ? string : {
6044
+ start: string;
6045
+ end?: string;
6046
+ };
6047
+ errorText?: Type extends 'single' ? string : {
6048
+ start: string;
6049
+ end?: string;
6050
+ };
6051
+ successText?: Type extends 'single' ? string : {
6052
+ start: string;
6053
+ end?: string;
6054
+ };
6043
6055
  labelPosition?: BaseInputProps['labelPosition'];
6044
6056
  };
6045
6057
  type DatePickerCommonInputProps = {
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": "11.21.0",
4
+ "version": "11.21.1",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"
@@ -300,7 +300,8 @@
300
300
  "react-hot-toast": "2.4.1",
301
301
  "@gorhom/bottom-sheet": "^4.4.6",
302
302
  "@gorhom/portal": "^1.0.14",
303
- "@razorpay/i18nify-js": "^1.9.3"
303
+ "@razorpay/i18nify-js": "^1.9.3",
304
+ "@razorpay/i18nify-react": "^4.0.8"
304
305
  },
305
306
  "peerDependenciesMeta": {
306
307
  "react-native": {