@razorpay/blade 12.49.7 → 12.51.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 (89) 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/Box/Box.js +1 -1
  5. package/build/lib/native/components/Box/Box.js.map +1 -1
  6. package/build/lib/native/components/Charts/CommonChartComponents/CommonChartComponents.native.js +12 -0
  7. package/build/lib/native/components/Charts/CommonChartComponents/CommonChartComponents.native.js.map +1 -0
  8. package/build/lib/native/components/Charts/LineChart/LineChart.native.js +12 -0
  9. package/build/lib/native/components/Charts/LineChart/LineChart.native.js.map +1 -0
  10. package/build/lib/native/components/index.js +2 -0
  11. package/build/lib/native/components/index.js.map +1 -1
  12. package/build/lib/native/tokens/theme/bladeTheme.js +1 -1
  13. package/build/lib/native/tokens/theme/bladeTheme.js.map +1 -1
  14. package/build/lib/native/tokens/theme/theme.js.map +1 -1
  15. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js +5 -1
  16. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  17. package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  18. package/build/lib/web/development/components/Box/Box.js +3 -0
  19. package/build/lib/web/development/components/Box/Box.js.map +1 -1
  20. package/build/lib/web/development/components/Charts/CommonChartComponents/CommonChartComponents.web.js +285 -0
  21. package/build/lib/web/development/components/Charts/CommonChartComponents/CommonChartComponents.web.js.map +1 -0
  22. package/build/lib/web/development/components/Charts/CommonChartComponents/index.js +2 -0
  23. package/build/lib/web/development/components/Charts/CommonChartComponents/index.js.map +1 -0
  24. package/build/lib/web/development/components/Charts/CommonChartComponents/tokens.js +15 -0
  25. package/build/lib/web/development/components/Charts/CommonChartComponents/tokens.js.map +1 -0
  26. package/build/lib/web/development/components/Charts/CommonChartComponents/utils.js +60 -0
  27. package/build/lib/web/development/components/Charts/CommonChartComponents/utils.js.map +1 -0
  28. package/build/lib/web/development/components/Charts/LineChart/LineChart.web.js +107 -0
  29. package/build/lib/web/development/components/Charts/LineChart/LineChart.web.js.map +1 -0
  30. package/build/lib/web/development/components/Charts/LineChart/componentIds.js +6 -0
  31. package/build/lib/web/development/components/Charts/LineChart/componentIds.js.map +1 -0
  32. package/build/lib/web/development/components/Charts/LineChart/index.js +2 -0
  33. package/build/lib/web/development/components/Charts/LineChart/index.js.map +1 -0
  34. package/build/lib/web/development/components/Charts/index.js +5 -0
  35. package/build/lib/web/development/components/Charts/index.js.map +1 -0
  36. package/build/lib/web/development/components/Charts/utils/index.js +2 -0
  37. package/build/lib/web/development/components/Charts/utils/index.js.map +1 -0
  38. package/build/lib/web/development/components/Charts/utils/useColorTheme.js +19 -0
  39. package/build/lib/web/development/components/Charts/utils/useColorTheme.js.map +1 -0
  40. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +5 -5
  41. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  42. package/build/lib/web/development/components/Tag/AnimatedTag.web.js +4 -4
  43. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  44. package/build/lib/web/development/components/index.js +3 -0
  45. package/build/lib/web/development/components/index.js.map +1 -1
  46. package/build/lib/web/development/tokens/theme/bladeTheme.js +350 -0
  47. package/build/lib/web/development/tokens/theme/bladeTheme.js.map +1 -1
  48. package/build/lib/web/development/tokens/theme/theme.js.map +1 -1
  49. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +5 -1
  50. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  51. package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  52. package/build/lib/web/production/components/Box/Box.js +3 -0
  53. package/build/lib/web/production/components/Box/Box.js.map +1 -1
  54. package/build/lib/web/production/components/Charts/CommonChartComponents/CommonChartComponents.web.js +285 -0
  55. package/build/lib/web/production/components/Charts/CommonChartComponents/CommonChartComponents.web.js.map +1 -0
  56. package/build/lib/web/production/components/Charts/CommonChartComponents/index.js +2 -0
  57. package/build/lib/web/production/components/Charts/CommonChartComponents/index.js.map +1 -0
  58. package/build/lib/web/production/components/Charts/CommonChartComponents/tokens.js +15 -0
  59. package/build/lib/web/production/components/Charts/CommonChartComponents/tokens.js.map +1 -0
  60. package/build/lib/web/production/components/Charts/CommonChartComponents/utils.js +60 -0
  61. package/build/lib/web/production/components/Charts/CommonChartComponents/utils.js.map +1 -0
  62. package/build/lib/web/production/components/Charts/LineChart/LineChart.web.js +107 -0
  63. package/build/lib/web/production/components/Charts/LineChart/LineChart.web.js.map +1 -0
  64. package/build/lib/web/production/components/Charts/LineChart/componentIds.js +6 -0
  65. package/build/lib/web/production/components/Charts/LineChart/componentIds.js.map +1 -0
  66. package/build/lib/web/production/components/Charts/LineChart/index.js +2 -0
  67. package/build/lib/web/production/components/Charts/LineChart/index.js.map +1 -0
  68. package/build/lib/web/production/components/Charts/index.js +5 -0
  69. package/build/lib/web/production/components/Charts/index.js.map +1 -0
  70. package/build/lib/web/production/components/Charts/utils/index.js +2 -0
  71. package/build/lib/web/production/components/Charts/utils/index.js.map +1 -0
  72. package/build/lib/web/production/components/Charts/utils/useColorTheme.js +19 -0
  73. package/build/lib/web/production/components/Charts/utils/useColorTheme.js.map +1 -0
  74. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +5 -5
  75. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  76. package/build/lib/web/production/components/Tag/AnimatedTag.web.js +4 -4
  77. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  78. package/build/lib/web/production/components/index.js +3 -0
  79. package/build/lib/web/production/components/index.js.map +1 -1
  80. package/build/lib/web/production/tokens/theme/bladeTheme.js +350 -0
  81. package/build/lib/web/production/tokens/theme/bladeTheme.js.map +1 -1
  82. package/build/lib/web/production/tokens/theme/theme.js.map +1 -1
  83. package/build/types/components/index.d.ts +730 -4423
  84. package/build/types/components/index.native.d.ts +212 -503
  85. package/build/types/tokens/index.d.ts +12 -0
  86. package/build/types/tokens/index.native.d.ts +12 -0
  87. package/build/types/utils/index.d.ts +31 -0
  88. package/build/types/utils/index.native.d.ts +31 -0
  89. package/package.json +3 -2
@@ -468,6 +468,12 @@ type Emphasis = {
468
468
  muted: string;
469
469
  disabled: string;
470
470
  };
471
+ type ChartCategoricalEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {
472
+ faint: string;
473
+ strong: string;
474
+ };
475
+ type ChartSequentialEmphasis = Omit<ColorChromaticScale, 'a50' | 'a150' | 'a100' | 'a200' | 'a400'>;
476
+ type ChartColorCategories = 'azure' | 'emerald' | 'crimson' | 'cider' | 'sapphire' | 'orchid' | 'magenta' | 'topaz' | 'gray';
471
477
  type SubtleOrIntenseEmphasis = Pick<Emphasis, 'subtle' | 'intense'>;
472
478
  type InteractiveStates = {
473
479
  default: string;
@@ -525,6 +531,12 @@ type Colors = {
525
531
  border: SubtleOrIntenseEmphasis;
526
532
  };
527
533
  transparent: string;
534
+ chart: {
535
+ background: {
536
+ categorical: Record<ChartColorCategories, ChartCategoricalEmphasis>;
537
+ sequential: Record<Exclude<ChartColorCategories, 'gray'>, ChartSequentialEmphasis>;
538
+ };
539
+ };
528
540
  };
529
541
  type ColorsWithModes = Record<ColorSchemeModes, Colors>;
530
542
  type ThemeTokens = {
@@ -468,6 +468,12 @@ type Emphasis = {
468
468
  muted: string;
469
469
  disabled: string;
470
470
  };
471
+ type ChartCategoricalEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {
472
+ faint: string;
473
+ strong: string;
474
+ };
475
+ type ChartSequentialEmphasis = Omit<ColorChromaticScale, 'a50' | 'a150' | 'a100' | 'a200' | 'a400'>;
476
+ type ChartColorCategories = 'azure' | 'emerald' | 'crimson' | 'cider' | 'sapphire' | 'orchid' | 'magenta' | 'topaz' | 'gray';
471
477
  type SubtleOrIntenseEmphasis = Pick<Emphasis, 'subtle' | 'intense'>;
472
478
  type InteractiveStates = {
473
479
  default: string;
@@ -525,6 +531,12 @@ type Colors = {
525
531
  border: SubtleOrIntenseEmphasis;
526
532
  };
527
533
  transparent: string;
534
+ chart: {
535
+ background: {
536
+ categorical: Record<ChartColorCategories, ChartCategoricalEmphasis>;
537
+ sequential: Record<Exclude<ChartColorCategories, 'gray'>, ChartSequentialEmphasis>;
538
+ };
539
+ };
528
540
  };
529
541
  type ColorsWithModes = Record<ColorSchemeModes, Colors>;
530
542
  type ThemeTokens = {
@@ -110,6 +110,25 @@ type Breakpoints = Readonly<{
110
110
  xl: number;
111
111
  }>;
112
112
 
113
+ type ColorChromaticScale = Readonly<{
114
+ 50: string;
115
+ 100: string;
116
+ 200: string;
117
+ 300: string;
118
+ 400: string;
119
+ 500: string;
120
+ 600: string;
121
+ 700: string;
122
+ 800: string;
123
+ 900: string;
124
+ 1000: string;
125
+ a50: string;
126
+ a100: string;
127
+ a150: string;
128
+ a200: string;
129
+ a400: string;
130
+ }>;
131
+
113
132
  type FontFamily = {
114
133
  /** Used for all type of textual content except code snippets, and headings */
115
134
  text: string;
@@ -488,6 +507,12 @@ type Emphasis = {
488
507
  muted: string;
489
508
  disabled: string;
490
509
  };
510
+ type ChartCategoricalEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {
511
+ faint: string;
512
+ strong: string;
513
+ };
514
+ type ChartSequentialEmphasis = Omit<ColorChromaticScale, 'a50' | 'a150' | 'a100' | 'a200' | 'a400'>;
515
+ type ChartColorCategories = 'azure' | 'emerald' | 'crimson' | 'cider' | 'sapphire' | 'orchid' | 'magenta' | 'topaz' | 'gray';
491
516
  type SubtleOrIntenseEmphasis = Pick<Emphasis, 'subtle' | 'intense'>;
492
517
  type InteractiveStates = {
493
518
  default: string;
@@ -545,6 +570,12 @@ type Colors = {
545
570
  border: SubtleOrIntenseEmphasis;
546
571
  };
547
572
  transparent: string;
573
+ chart: {
574
+ background: {
575
+ categorical: Record<ChartColorCategories, ChartCategoricalEmphasis>;
576
+ sequential: Record<Exclude<ChartColorCategories, 'gray'>, ChartSequentialEmphasis>;
577
+ };
578
+ };
548
579
  };
549
580
  type ColorsWithModes = Record<ColorSchemeModes, Colors>;
550
581
  type ThemeTokens = {
@@ -110,6 +110,25 @@ type Breakpoints = Readonly<{
110
110
  xl: number;
111
111
  }>;
112
112
 
113
+ type ColorChromaticScale = Readonly<{
114
+ 50: string;
115
+ 100: string;
116
+ 200: string;
117
+ 300: string;
118
+ 400: string;
119
+ 500: string;
120
+ 600: string;
121
+ 700: string;
122
+ 800: string;
123
+ 900: string;
124
+ 1000: string;
125
+ a50: string;
126
+ a100: string;
127
+ a150: string;
128
+ a200: string;
129
+ a400: string;
130
+ }>;
131
+
113
132
  type FontFamily = {
114
133
  /** Used for all type of textual content except code snippets, and headings */
115
134
  text: string;
@@ -488,6 +507,12 @@ type Emphasis = {
488
507
  muted: string;
489
508
  disabled: string;
490
509
  };
510
+ type ChartCategoricalEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {
511
+ faint: string;
512
+ strong: string;
513
+ };
514
+ type ChartSequentialEmphasis = Omit<ColorChromaticScale, 'a50' | 'a150' | 'a100' | 'a200' | 'a400'>;
515
+ type ChartColorCategories = 'azure' | 'emerald' | 'crimson' | 'cider' | 'sapphire' | 'orchid' | 'magenta' | 'topaz' | 'gray';
491
516
  type SubtleOrIntenseEmphasis = Pick<Emphasis, 'subtle' | 'intense'>;
492
517
  type InteractiveStates = {
493
518
  default: string;
@@ -545,6 +570,12 @@ type Colors = {
545
570
  border: SubtleOrIntenseEmphasis;
546
571
  };
547
572
  transparent: string;
573
+ chart: {
574
+ background: {
575
+ categorical: Record<ChartColorCategories, ChartCategoricalEmphasis>;
576
+ sequential: Record<Exclude<ChartColorCategories, 'gray'>, ChartSequentialEmphasis>;
577
+ };
578
+ };
548
579
  };
549
580
  type ColorsWithModes = Record<ColorSchemeModes, Colors>;
550
581
  type ThemeTokens = {
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.49.7",
4
+ "version": "12.51.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"
@@ -149,7 +149,8 @@
149
149
  "@mantine/hooks": "6.0.21",
150
150
  "dayjs": "1.11.10",
151
151
  "react-window": "1.8.11",
152
- "react-zoom-pan-pinch": "3.7.0"
152
+ "react-zoom-pan-pinch": "3.7.0",
153
+ "recharts": "3.1.2"
153
154
  },
154
155
  "devDependencies": {
155
156
  "http-server": "14.1.1",