diff --git a/packages/ui/build/storybook/__snapshots__/storyshots.test.js.snap b/packages/ui/build/storybook/__snapshots__/storyshots.test.js.snap index 498e1f3a88..0cf7bdc83f 100644 --- a/packages/ui/build/storybook/__snapshots__/storyshots.test.js.snap +++ b/packages/ui/build/storybook/__snapshots__/storyshots.test.js.snap @@ -8984,11 +8984,11 @@ exports[`Storyshots Components/BundleAssetsTotalsChartBars component 1`] = `
-

Total size by type -

+
@@ -9004,108 +9004,532 @@ exports[`Storyshots Components/BundleAssetsTotalsChartBars component 1`] = ` className="root itemChart" > - CSS + + JS + +
+
+

+ JS +

+
+ +
+ + 578.07 + + + KB + +
+ +
+ + + +80B (+0.01%) + + +
+ +
+ + 577.99KB + +
+ +
+
+
- JS + + CSS + +
+
+

+ CSS +

+
+ +
+ + 21.19 + + + KB + +
+ +
+ + + -3.14KB (-12.91%) + + +
+ +
+ + 24.33KB + +
+ +
+
+
- IMG + + IMG + +
+
+

+ IMG +

+
+ +
+ + 194.57 + + + KB + +
+ +
+
+ +
+ + 194.57KB + +
+ +
+
+
- Media + + Media + +
+
+

+ Media +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- Fonts + + Fonts + +
+
+

+ Fonts +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- HTML + + HTML + +
+
+

+ HTML +

+
+ +
+ + 1.93 + + + KB + +
+ +
+
+ +
+ + 1.93KB + +
+ +
+
+
- Other + + Other + +
+
+

+ Other +

+
+ +
+ + 627 + + + B + +
+ +
+
+ +
+ + 627B + +
+ +
+
+
@@ -9122,108 +9546,559 @@ exports[`Storyshots Components/BundleAssetsTotalsChartBars component 1`] = ` className="root itemChart" > - CSS + + JS + +
+
+

+ JS +

+
+ +
+ + 577.99 + + + KB + +
+ +
+ + + +577.99KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- JS + + CSS + +
+
+

+ CSS +

+
+ +
+ + 24.33 + + + KB + +
+ +
+ + + +24.33KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- IMG + + IMG + +
+
+

+ IMG +

+
+ +
+ + 194.57 + + + KB + +
+ +
+ + + +194.57KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- Media + + Media + +
+
+

+ Media +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- Fonts + + Fonts + +
+
+

+ Fonts +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- HTML + + HTML + +
+
+

+ HTML +

+
+ +
+ + 1.93 + + + KB + +
+ +
+ + + +1.93KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- Other + + Other + +
+
+

+ Other +

+
+ +
+ + 627 + + + B + +
+ +
+ + + +627B (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
@@ -330938,11 +331813,11 @@ exports[`Storyshots Prototypes/BundlePage totals 1`] = `
-

Total size by type -

+
@@ -330958,108 +331833,532 @@ exports[`Storyshots Prototypes/BundlePage totals 1`] = ` className="root itemChart" > - CSS + + JS + +
+
+

+ JS +

+
+ +
+ + 578.07 + + + KB + +
+ +
+ + + +80B (+0.01%) + + +
+ +
+ + 577.99KB + +
+ +
+
+
- JS + + CSS + +
+
+

+ CSS +

+
+ +
+ + 21.19 + + + KB + +
+ +
+ + + -3.14KB (-12.91%) + + +
+ +
+ + 24.33KB + +
+ +
+
+
- IMG + + IMG + +
+
+

+ IMG +

+
+ +
+ + 194.57 + + + KB + +
+ +
+
+ +
+ + 194.57KB + +
+ +
+
+
- Media + + Media + +
+
+

+ Media +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- Fonts + + Fonts + +
+
+

+ Fonts +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- HTML + + HTML + +
+
+

+ HTML +

+
+ +
+ + 1.93 + + + KB + +
+ +
+
+ +
+ + 1.93KB + +
+ +
+
+
- Other + + Other + +
+
+

+ Other +

+
+ +
+ + 627 + + + B + +
+ +
+
+ +
+ + 627B + +
+ +
+
+
@@ -331076,108 +332375,559 @@ exports[`Storyshots Prototypes/BundlePage totals 1`] = ` className="root itemChart" > - CSS + + JS + +
+
+

+ JS +

+
+ +
+ + 577.99 + + + KB + +
+ +
+ + + +577.99KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- JS + + CSS + +
+
+

+ CSS +

+
+ +
+ + 24.33 + + + KB + +
+ +
+ + + +24.33KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- IMG + + IMG + +
+
+

+ IMG +

+
+ +
+ + 194.57 + + + KB + +
+ +
+ + + +194.57KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- Media + + Media + +
+
+

+ Media +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- Fonts + + Fonts + +
+
+

+ Fonts +

+
+ +
+ + 0 + + + B + +
+ +
+
+ +
+ + 0B + +
+ +
+
+
- HTML + + HTML + +
+
+

+ HTML +

+
+ +
+ + 1.93 + + + KB + +
+ +
+ + + +1.93KB (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
- Other + + Other + +
+
+

+ Other +

+
+ +
+ + 627 + + + B + +
+ +
+ + + +627B (+100%) + + +
+ +
+ + 0B + +
+ +
+
+
@@ -332447,98 +334197,6 @@ exports[`Storyshots UI/Alert with kind warning 1`] = ` `; -exports[`Storyshots UI/BarChart default 1`] = ` -
-
- - - JS - - - - - CSS - - - - - IMG - - - - - Others - - - - - HTML - - -
-
-`; - exports[`Storyshots UI/Box default 1`] = `
`; +exports[`Storyshots UI/HorizontalBarChart default 1`] = ` +
+
+ + + + JS + +
+ + + + + + CSS + +
+ + + + + + IMG + +
+ + + + + + Others + +
+ + + + + + HTML + +
+ + +
+
+`; + +exports[`Storyshots UI/HorizontalBarChart with custom colors 1`] = ` +
+
+ + + + JS + +
+ + + + + + CSS + +
+ + + + + + IMG + +
+ + + + + + Others + +
+ + + + + + HTML + +
+ + +
+
+`; + +exports[`Storyshots UI/HorizontalBarChart with custom label 1`] = ` +
+
+ + + +

+ JS +

+
+
+ + + + + +

+ JS +

+
+
+ + + + + +

+ JS +

+
+
+ + + + + +

+ JS +

+
+
+ + + + + +

+ JS +

+
+
+ + +
+
+`; + +exports[`Storyshots UI/HorizontalBarChart with maxValue 1`] = ` +
+
+ + + + JS + +
+ + + + + + CSS + +
+ + + + + + IMG + +
+ + + + + + Others + +
+ + + + + + HTML + +
+ + +
+
+`; + exports[`Storyshots UI/Icon all 1`] = `
{ diff --git a/packages/ui/src/components/chart/chart.colors.json b/packages/ui/src/components/chart/chart.colors.json index 148bfb4cbc..e21edffe39 100644 --- a/packages/ui/src/components/chart/chart.colors.json +++ b/packages/ui/src/components/chart/chart.colors.json @@ -1,45 +1,45 @@ [ - "rgba(136,132,216,0.8)", - "rgba(135,137,219,0.8000000000000002)", - "rgba(135,142,222,0.8)", - "rgba(134,147,225,0.8)", - "rgba(133,151,228,0.8)", - "rgba(132,156,231,0.8)", - "rgba(132,161,234,0.8)", - "rgba(131,166,237,0.8)", - "rgba(132,172,235,0.8000000000000002)", - "rgba(134,178,234,0.8)", - "rgba(135,184,232,0.8)", - "rgba(137,191,230,0.8)", - "rgba(138,197,228,0.8)", - "rgba(140,203,227,0.8)", - "rgba(141,209,225,0.8)", - "rgba(139,208,215,0.8000000000000002)", - "rgba(138,207,206,0.8)", - "rgba(136,206,196,0.8)", - "rgba(135,205,186,0.8)", - "rgba(133,204,176,0.8)", - "rgba(132,203,167,0.8)", - "rgba(130,202,157,0.8)", - "rgba(135,205,150,0.8000000000000002)", - "rgba(140,208,143,0.8)", - "rgba(145,211,136,0.8)", - "rgba(149,213,129,0.8)", - "rgba(154,216,122,0.8)", - "rgba(159,219,115,0.8)", - "rgba(164,222,108,0.8)", - "rgba(170,224,105,0.8000000000000002)", - "rgba(177,226,102,0.8)", - "rgba(183,228,99,0.8)", - "rgba(189,231,96,0.8)", - "rgba(195,233,93,0.8)", - "rgba(202,235,90,0.8)", - "rgba(208,237,87,0.8)", - "rgba(215,231,87,0.8000000000000002)", - "rgba(221,226,87,0.8)", - "rgba(228,220,87,0.8)", - "rgba(235,215,88,0.8)", - "rgba(242,209,88,0.8)", - "rgba(248,204,88,0.8)", - "rgba(255,198,88,0.8)" + "rgba(136,132,216,0.9)", + "rgba(135,137,219,0.9)", + "rgba(135,142,222,0.9)", + "rgba(134,147,225,0.8999999999999999)", + "rgba(133,151,228,0.8999999999999999)", + "rgba(132,156,231,0.9)", + "rgba(132,161,234,0.8999999999999999)", + "rgba(131,166,237,0.9)", + "rgba(132,172,235,0.9)", + "rgba(134,178,234,0.9)", + "rgba(135,184,232,0.8999999999999999)", + "rgba(137,191,230,0.8999999999999999)", + "rgba(138,197,228,0.9)", + "rgba(140,203,227,0.8999999999999999)", + "rgba(141,209,225,0.9)", + "rgba(139,208,215,0.9)", + "rgba(138,207,206,0.9)", + "rgba(136,206,196,0.8999999999999999)", + "rgba(135,205,186,0.8999999999999999)", + "rgba(133,204,176,0.9)", + "rgba(132,203,167,0.8999999999999999)", + "rgba(130,202,157,0.9)", + "rgba(135,205,150,0.9)", + "rgba(140,208,143,0.9)", + "rgba(145,211,136,0.8999999999999999)", + "rgba(149,213,129,0.8999999999999999)", + "rgba(154,216,122,0.9)", + "rgba(159,219,115,0.8999999999999999)", + "rgba(164,222,108,0.9)", + "rgba(170,224,105,0.9)", + "rgba(177,226,102,0.9)", + "rgba(183,228,99,0.8999999999999999)", + "rgba(189,231,96,0.8999999999999999)", + "rgba(195,233,93,0.9)", + "rgba(202,235,90,0.8999999999999999)", + "rgba(208,237,87,0.9)", + "rgba(215,231,87,0.9)", + "rgba(221,226,87,0.9)", + "rgba(228,220,87,0.8999999999999999)", + "rgba(235,215,88,0.8999999999999999)", + "rgba(242,209,88,0.9)", + "rgba(248,204,88,0.8999999999999999)", + "rgba(255,198,88,0.9)" ] \ No newline at end of file