@razorpay/blade 11.11.1 → 11.12.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 (96) hide show
  1. package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js +1 -1
  2. package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  3. package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  4. package/build/lib/native/components/Button/BaseButton/StyledBaseButton.native.js.map +1 -1
  5. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js +1 -1
  6. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js.map +1 -1
  7. package/build/lib/native/components/Input/BaseInput/BaseInput.js +2 -1
  8. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  9. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js +1 -1
  10. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js.map +1 -1
  11. package/build/lib/native/components/Input/BaseInput/BaseInputWrapper.js +1 -1
  12. package/build/lib/native/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  13. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js +1 -1
  14. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js.map +1 -1
  15. package/build/lib/native/components/Input/BaseInput/baseInputStyles.js +1 -1
  16. package/build/lib/native/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  17. package/build/lib/native/components/Input/BaseInput/useTaggedInput.js +13 -0
  18. package/build/lib/native/components/Input/BaseInput/useTaggedInput.js.map +1 -0
  19. package/build/lib/native/components/Input/TextArea/TextArea.js +2 -1
  20. package/build/lib/native/components/Input/TextArea/TextArea.js.map +1 -1
  21. package/build/lib/native/components/Input/TextInput/TextInput.js +2 -1
  22. package/build/lib/native/components/Input/TextInput/TextInput.js.map +1 -1
  23. package/build/lib/native/components/Tag/AnimatedTag.native.js.map +1 -1
  24. package/build/lib/native/components/Tag/Tag.js +1 -1
  25. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  26. package/build/lib/native/components/Tag/getTagsGroup.js +1 -1
  27. package/build/lib/native/components/Tag/getTagsGroup.js.map +1 -1
  28. package/build/lib/native/components/Tag/tagAnimationConfig.js +1 -2
  29. package/build/lib/native/components/Tag/tagAnimationConfig.js.map +1 -1
  30. package/build/lib/native/components/Typography/BaseText/getBaseTextStyles.js +1 -1
  31. package/build/lib/native/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  32. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js +2 -1
  33. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  34. package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  35. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +8 -2
  36. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  37. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +13 -1
  38. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  39. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js +14 -1
  40. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  41. package/build/lib/web/development/components/Input/BaseInput/BaseInputWrapper.js +4 -2
  42. package/build/lib/web/development/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  43. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js +5 -2
  44. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  45. package/build/lib/web/development/components/Input/BaseInput/baseInputStyles.js +2 -2
  46. package/build/lib/web/development/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  47. package/build/lib/web/development/components/Input/BaseInput/useTaggedInput.js +172 -0
  48. package/build/lib/web/development/components/Input/BaseInput/useTaggedInput.js.map +1 -0
  49. package/build/lib/web/development/components/Input/TextArea/TextArea.js +54 -8
  50. package/build/lib/web/development/components/Input/TextArea/TextArea.js.map +1 -1
  51. package/build/lib/web/development/components/Input/TextInput/TextInput.js +51 -5
  52. package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
  53. package/build/lib/web/development/components/Tag/AnimatedTag.web.js +2 -3
  54. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  55. package/build/lib/web/development/components/Tag/Tag.js +5 -6
  56. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  57. package/build/lib/web/development/components/Tag/getTagsGroup.js +1 -1
  58. package/build/lib/web/development/components/Tag/getTagsGroup.js.map +1 -1
  59. package/build/lib/web/development/components/Tag/tagAnimationConfig.js +4 -2
  60. package/build/lib/web/development/components/Tag/tagAnimationConfig.js.map +1 -1
  61. package/build/lib/web/development/components/Typography/BaseText/getBaseTextStyles.js +2 -1
  62. package/build/lib/web/development/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  63. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +2 -1
  64. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  65. package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  66. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +8 -2
  67. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  68. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +13 -1
  69. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  70. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js +14 -1
  71. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  72. package/build/lib/web/production/components/Input/BaseInput/BaseInputWrapper.js +4 -2
  73. package/build/lib/web/production/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  74. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js +5 -2
  75. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  76. package/build/lib/web/production/components/Input/BaseInput/baseInputStyles.js +2 -2
  77. package/build/lib/web/production/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  78. package/build/lib/web/production/components/Input/BaseInput/useTaggedInput.js +172 -0
  79. package/build/lib/web/production/components/Input/BaseInput/useTaggedInput.js.map +1 -0
  80. package/build/lib/web/production/components/Input/TextArea/TextArea.js +54 -8
  81. package/build/lib/web/production/components/Input/TextArea/TextArea.js.map +1 -1
  82. package/build/lib/web/production/components/Input/TextInput/TextInput.js +51 -5
  83. package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
  84. package/build/lib/web/production/components/Tag/AnimatedTag.web.js +2 -3
  85. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  86. package/build/lib/web/production/components/Tag/Tag.js +5 -6
  87. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  88. package/build/lib/web/production/components/Tag/getTagsGroup.js +1 -1
  89. package/build/lib/web/production/components/Tag/getTagsGroup.js.map +1 -1
  90. package/build/lib/web/production/components/Tag/tagAnimationConfig.js +4 -2
  91. package/build/lib/web/production/components/Tag/tagAnimationConfig.js.map +1 -1
  92. package/build/lib/web/production/components/Typography/BaseText/getBaseTextStyles.js +2 -1
  93. package/build/lib/web/production/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  94. package/build/types/components/index.d.ts +19 -3
  95. package/build/types/components/index.native.d.ts +11 -3
  96. package/package.json +1 -1
@@ -1283,7 +1283,7 @@ type BaseBoxVisualProps = MakeObjectResponsive<{
1283
1283
  lineHeight: SpacingValueType;
1284
1284
  touchAction: CSSObject['touchAction'];
1285
1285
  userSelect: CSSObject['userSelect'];
1286
- } & PickCSSByPlatform<'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'opacity' | 'pointerEvents'>>;
1286
+ } & PickCSSByPlatform<'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'opacity' | 'pointerEvents' | 'cursor'>>;
1287
1287
  type BoxVisualProps = MakeObjectResponsive<{
1288
1288
  backgroundColor: BackgroundColorString<'surface'> | 'transparent';
1289
1289
  }> & {
@@ -6292,6 +6292,14 @@ type PasswordInputPropsWithLabel = {
6292
6292
  type PasswordInputProps = (PasswordInputPropsWithA11yLabel | PasswordInputPropsWithLabel) & PasswordInputCommonProps;
6293
6293
  declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<BladeElementRef>>;
6294
6294
 
6295
+ type TaggedInputProps = {
6296
+ isTaggedInput?: boolean;
6297
+ tags?: string[];
6298
+ onTagChange?: ({ tags }: {
6299
+ tags: string[];
6300
+ }) => void;
6301
+ };
6302
+
6295
6303
  type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size'> & {
6296
6304
  /**
6297
6305
  * Decides whether to render a clear icon button
@@ -6301,7 +6309,7 @@ type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' |
6301
6309
  * Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
6302
6310
  */
6303
6311
  onClearButtonClick?: () => void;
6304
- } & StyledPropsBlade;
6312
+ } & TaggedInputProps & StyledPropsBlade;
6305
6313
  type TextAreaPropsWithA11yLabel = {
6306
6314
  /**
6307
6315
  * Label to be shown for the input field
@@ -6358,7 +6366,7 @@ type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel'
6358
6366
  * @default text
6359
6367
  */
6360
6368
  type?: Type;
6361
- } & StyledPropsBlade;
6369
+ } & TaggedInputProps & StyledPropsBlade;
6362
6370
  type TextInputPropsWithA11yLabel = {
6363
6371
  /**
6364
6372
  * Label to be shown for the input field
@@ -9520,6 +9528,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
9520
9528
  readonly l?: "transparent" | "feedback.background.neutral.subtle" | "feedback.background.neutral.intense" | "feedback.background.information.subtle" | "feedback.background.information.intense" | "feedback.background.negative.subtle" | "feedback.background.negative.intense" | "feedback.background.notice.subtle" | "feedback.background.notice.intense" | "feedback.background.positive.subtle" | "feedback.background.positive.intense" | "surface.background.gray.subtle" | "surface.background.gray.moderate" | "surface.background.gray.intense" | "surface.background.primary.subtle" | "surface.background.primary.intense" | "surface.background.sea.subtle" | "surface.background.sea.intense" | "surface.background.cloud.subtle" | "surface.background.cloud.intense" | "interactive.background.neutral.fadedHighlighted" | "interactive.background.neutral.disabled" | "interactive.background.neutral.default" | "interactive.background.neutral.highlighted" | "interactive.background.neutral.faded" | "interactive.background.information.fadedHighlighted" | "interactive.background.information.disabled" | "interactive.background.information.default" | "interactive.background.information.highlighted" | "interactive.background.information.faded" | "interactive.background.negative.fadedHighlighted" | "interactive.background.negative.disabled" | "interactive.background.negative.default" | "interactive.background.negative.highlighted" | "interactive.background.negative.faded" | "interactive.background.notice.fadedHighlighted" | "interactive.background.notice.disabled" | "interactive.background.notice.default" | "interactive.background.notice.highlighted" | "interactive.background.notice.faded" | "interactive.background.positive.fadedHighlighted" | "interactive.background.positive.disabled" | "interactive.background.positive.default" | "interactive.background.positive.highlighted" | "interactive.background.positive.faded" | "interactive.background.staticBlack.fadedHighlighted" | "interactive.background.staticBlack.disabled" | "interactive.background.staticBlack.default" | "interactive.background.staticBlack.highlighted" | "interactive.background.staticBlack.faded" | "interactive.background.staticWhite.fadedHighlighted" | "interactive.background.staticWhite.disabled" | "interactive.background.staticWhite.default" | "interactive.background.staticWhite.highlighted" | "interactive.background.staticWhite.faded" | "interactive.background.gray.fadedHighlighted" | "interactive.background.gray.disabled" | "interactive.background.gray.default" | "interactive.background.gray.highlighted" | "interactive.background.gray.faded" | "interactive.background.primary.fadedHighlighted" | "interactive.background.primary.disabled" | "interactive.background.primary.default" | "interactive.background.primary.highlighted" | "interactive.background.primary.faded" | "overlay.background.subtle" | "overlay.background.moderate" | "popup.background.subtle" | "popup.background.intense" | (string & Record<never, never>) | undefined;
9521
9529
  readonly xl?: "transparent" | "feedback.background.neutral.subtle" | "feedback.background.neutral.intense" | "feedback.background.information.subtle" | "feedback.background.information.intense" | "feedback.background.negative.subtle" | "feedback.background.negative.intense" | "feedback.background.notice.subtle" | "feedback.background.notice.intense" | "feedback.background.positive.subtle" | "feedback.background.positive.intense" | "surface.background.gray.subtle" | "surface.background.gray.moderate" | "surface.background.gray.intense" | "surface.background.primary.subtle" | "surface.background.primary.intense" | "surface.background.sea.subtle" | "surface.background.sea.intense" | "surface.background.cloud.subtle" | "surface.background.cloud.intense" | "interactive.background.neutral.fadedHighlighted" | "interactive.background.neutral.disabled" | "interactive.background.neutral.default" | "interactive.background.neutral.highlighted" | "interactive.background.neutral.faded" | "interactive.background.information.fadedHighlighted" | "interactive.background.information.disabled" | "interactive.background.information.default" | "interactive.background.information.highlighted" | "interactive.background.information.faded" | "interactive.background.negative.fadedHighlighted" | "interactive.background.negative.disabled" | "interactive.background.negative.default" | "interactive.background.negative.highlighted" | "interactive.background.negative.faded" | "interactive.background.notice.fadedHighlighted" | "interactive.background.notice.disabled" | "interactive.background.notice.default" | "interactive.background.notice.highlighted" | "interactive.background.notice.faded" | "interactive.background.positive.fadedHighlighted" | "interactive.background.positive.disabled" | "interactive.background.positive.default" | "interactive.background.positive.highlighted" | "interactive.background.positive.faded" | "interactive.background.staticBlack.fadedHighlighted" | "interactive.background.staticBlack.disabled" | "interactive.background.staticBlack.default" | "interactive.background.staticBlack.highlighted" | "interactive.background.staticBlack.faded" | "interactive.background.staticWhite.fadedHighlighted" | "interactive.background.staticWhite.disabled" | "interactive.background.staticWhite.default" | "interactive.background.staticWhite.highlighted" | "interactive.background.staticWhite.faded" | "interactive.background.gray.fadedHighlighted" | "interactive.background.gray.disabled" | "interactive.background.gray.default" | "interactive.background.gray.highlighted" | "interactive.background.gray.faded" | "interactive.background.primary.fadedHighlighted" | "interactive.background.primary.disabled" | "interactive.background.primary.default" | "interactive.background.primary.highlighted" | "interactive.background.primary.faded" | "overlay.background.subtle" | "overlay.background.moderate" | "popup.background.subtle" | "popup.background.intense" | (string & Record<never, never>) | undefined;
9522
9530
  };
9531
+ cursor?: csstype.Property.Cursor | {
9532
+ readonly base?: csstype.Property.Cursor | undefined;
9533
+ readonly xs?: csstype.Property.Cursor | undefined;
9534
+ readonly s?: csstype.Property.Cursor | undefined;
9535
+ readonly m?: csstype.Property.Cursor | undefined;
9536
+ readonly l?: csstype.Property.Cursor | undefined;
9537
+ readonly xl?: csstype.Property.Cursor | undefined;
9538
+ } | undefined;
9523
9539
  lineHeight: SpacingValueType | {
9524
9540
  readonly base?: SpacingValueType | undefined;
9525
9541
  readonly xs?: SpacingValueType | undefined;
@@ -1282,7 +1282,7 @@ type BaseBoxVisualProps = MakeObjectResponsive<{
1282
1282
  lineHeight: SpacingValueType;
1283
1283
  touchAction: CSSObject['touchAction'];
1284
1284
  userSelect: CSSObject['userSelect'];
1285
- } & PickCSSByPlatform<'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'opacity' | 'pointerEvents'>>;
1285
+ } & PickCSSByPlatform<'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'opacity' | 'pointerEvents' | 'cursor'>>;
1286
1286
  type BoxVisualProps = MakeObjectResponsive<{
1287
1287
  backgroundColor: BackgroundColorString<'surface'> | 'transparent';
1288
1288
  }> & {
@@ -5707,6 +5707,14 @@ type PasswordInputPropsWithLabel = {
5707
5707
  type PasswordInputProps = (PasswordInputPropsWithA11yLabel | PasswordInputPropsWithLabel) & PasswordInputCommonProps;
5708
5708
  declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<BladeElementRef>>;
5709
5709
 
5710
+ type TaggedInputProps = {
5711
+ isTaggedInput?: boolean;
5712
+ tags?: string[];
5713
+ onTagChange?: ({ tags }: {
5714
+ tags: string[];
5715
+ }) => void;
5716
+ };
5717
+
5710
5718
  type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size'> & {
5711
5719
  /**
5712
5720
  * Decides whether to render a clear icon button
@@ -5716,7 +5724,7 @@ type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' |
5716
5724
  * Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
5717
5725
  */
5718
5726
  onClearButtonClick?: () => void;
5719
- } & StyledPropsBlade;
5727
+ } & TaggedInputProps & StyledPropsBlade;
5720
5728
  type TextAreaPropsWithA11yLabel = {
5721
5729
  /**
5722
5730
  * Label to be shown for the input field
@@ -5773,7 +5781,7 @@ type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel'
5773
5781
  * @default text
5774
5782
  */
5775
5783
  type?: Type;
5776
- } & StyledPropsBlade;
5784
+ } & TaggedInputProps & StyledPropsBlade;
5777
5785
  type TextInputPropsWithA11yLabel = {
5778
5786
  /**
5779
5787
  * Label to be shown for the input field
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.11.1",
4
+ "version": "11.12.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"