@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.
- package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js +1 -1
- package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
- package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
- package/build/lib/native/components/Box/Box.js +1 -1
- package/build/lib/native/components/Box/Box.js.map +1 -1
- package/build/lib/native/components/Charts/CommonChartComponents/CommonChartComponents.native.js +12 -0
- package/build/lib/native/components/Charts/CommonChartComponents/CommonChartComponents.native.js.map +1 -0
- package/build/lib/native/components/Charts/LineChart/LineChart.native.js +12 -0
- package/build/lib/native/components/Charts/LineChart/LineChart.native.js.map +1 -0
- package/build/lib/native/components/index.js +2 -0
- package/build/lib/native/components/index.js.map +1 -1
- package/build/lib/native/tokens/theme/bladeTheme.js +1 -1
- package/build/lib/native/tokens/theme/bladeTheme.js.map +1 -1
- package/build/lib/native/tokens/theme/theme.js.map +1 -1
- package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js +5 -1
- package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
- package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
- package/build/lib/web/development/components/Box/Box.js +3 -0
- package/build/lib/web/development/components/Box/Box.js.map +1 -1
- package/build/lib/web/development/components/Charts/CommonChartComponents/CommonChartComponents.web.js +285 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/CommonChartComponents.web.js.map +1 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/index.js +2 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/index.js.map +1 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/tokens.js +15 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/tokens.js.map +1 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/utils.js +60 -0
- package/build/lib/web/development/components/Charts/CommonChartComponents/utils.js.map +1 -0
- package/build/lib/web/development/components/Charts/LineChart/LineChart.web.js +107 -0
- package/build/lib/web/development/components/Charts/LineChart/LineChart.web.js.map +1 -0
- package/build/lib/web/development/components/Charts/LineChart/componentIds.js +6 -0
- package/build/lib/web/development/components/Charts/LineChart/componentIds.js.map +1 -0
- package/build/lib/web/development/components/Charts/LineChart/index.js +2 -0
- package/build/lib/web/development/components/Charts/LineChart/index.js.map +1 -0
- package/build/lib/web/development/components/Charts/index.js +5 -0
- package/build/lib/web/development/components/Charts/index.js.map +1 -0
- package/build/lib/web/development/components/Charts/utils/index.js +2 -0
- package/build/lib/web/development/components/Charts/utils/index.js.map +1 -0
- package/build/lib/web/development/components/Charts/utils/useColorTheme.js +19 -0
- package/build/lib/web/development/components/Charts/utils/useColorTheme.js.map +1 -0
- package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +5 -5
- package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
- package/build/lib/web/development/components/Tag/AnimatedTag.web.js +4 -4
- package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
- package/build/lib/web/development/components/index.js +3 -0
- package/build/lib/web/development/components/index.js.map +1 -1
- package/build/lib/web/development/tokens/theme/bladeTheme.js +350 -0
- package/build/lib/web/development/tokens/theme/bladeTheme.js.map +1 -1
- package/build/lib/web/development/tokens/theme/theme.js.map +1 -1
- package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +5 -1
- package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
- package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
- package/build/lib/web/production/components/Box/Box.js +3 -0
- package/build/lib/web/production/components/Box/Box.js.map +1 -1
- package/build/lib/web/production/components/Charts/CommonChartComponents/CommonChartComponents.web.js +285 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/CommonChartComponents.web.js.map +1 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/index.js +2 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/index.js.map +1 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/tokens.js +15 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/tokens.js.map +1 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/utils.js +60 -0
- package/build/lib/web/production/components/Charts/CommonChartComponents/utils.js.map +1 -0
- package/build/lib/web/production/components/Charts/LineChart/LineChart.web.js +107 -0
- package/build/lib/web/production/components/Charts/LineChart/LineChart.web.js.map +1 -0
- package/build/lib/web/production/components/Charts/LineChart/componentIds.js +6 -0
- package/build/lib/web/production/components/Charts/LineChart/componentIds.js.map +1 -0
- package/build/lib/web/production/components/Charts/LineChart/index.js +2 -0
- package/build/lib/web/production/components/Charts/LineChart/index.js.map +1 -0
- package/build/lib/web/production/components/Charts/index.js +5 -0
- package/build/lib/web/production/components/Charts/index.js.map +1 -0
- package/build/lib/web/production/components/Charts/utils/index.js +2 -0
- package/build/lib/web/production/components/Charts/utils/index.js.map +1 -0
- package/build/lib/web/production/components/Charts/utils/useColorTheme.js +19 -0
- package/build/lib/web/production/components/Charts/utils/useColorTheme.js.map +1 -0
- package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +5 -5
- package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
- package/build/lib/web/production/components/Tag/AnimatedTag.web.js +4 -4
- package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
- package/build/lib/web/production/components/index.js +3 -0
- package/build/lib/web/production/components/index.js.map +1 -1
- package/build/lib/web/production/tokens/theme/bladeTheme.js +350 -0
- package/build/lib/web/production/tokens/theme/bladeTheme.js.map +1 -1
- package/build/lib/web/production/tokens/theme/theme.js.map +1 -1
- package/build/types/components/index.d.ts +730 -4423
- package/build/types/components/index.native.d.ts +212 -503
- package/build/types/tokens/index.d.ts +12 -0
- package/build/types/tokens/index.native.d.ts +12 -0
- package/build/types/utils/index.d.ts +31 -0
- package/build/types/utils/index.native.d.ts +31 -0
- 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.
|
|
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",
|