diff --git a/__mocks__/@tippyjs/react.tsx b/__mocks__/@tippyjs/react.tsx index 63aa0f392..9fc713d82 100644 --- a/__mocks__/@tippyjs/react.tsx +++ b/__mocks__/@tippyjs/react.tsx @@ -1,6 +1,6 @@ -import React from 'react'; +import React, { PropsWithChildren } from 'react'; -const Tippy: React.FC<{ content: string }> = props => { +const Tippy = (props: PropsWithChildren<{ content: string }>) => { const { children, content, ...rest } = props; return ( diff --git a/src/components/Avatar/__snapshots__/Avatar.stories.storyshot b/src/components/Avatar/__snapshots__/Avatar.stories.storyshot index 197668ed6..9e59b23b1 100644 --- a/src/components/Avatar/__snapshots__/Avatar.stories.storyshot +++ b/src/components/Avatar/__snapshots__/Avatar.stories.storyshot @@ -622,7 +622,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
- JN
@@ -643,7 +642,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
- + 2
@@ -678,7 +676,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
- - + 3
@@ -774,7 +770,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
- + 2
@@ -820,7 +815,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
- JN
@@ -841,7 +835,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
- + 2
@@ -1153,7 +1146,6 @@ exports[`Storyshots Design System/Avatar Avatar with icon 1`] = `
- - - - - JN
@@ -1490,7 +1478,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
- JN
@@ -1504,7 +1491,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
- JN
@@ -1518,7 +1504,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
- JN
diff --git a/src/components/Button/__snapshots__/Button.stories.storyshot b/src/components/Button/__snapshots__/Button.stories.storyshot index 767cb47b4..009af8cef 100644 --- a/src/components/Button/__snapshots__/Button.stories.storyshot +++ b/src/components/Button/__snapshots__/Button.stories.storyshot @@ -254,11 +254,9 @@ exports[`Storyshots Design System/Button Async Button 1`] = ` >
Button inner text from event: -
Fake response: -
@@ -291,11 +289,9 @@ exports[`Storyshots Design System/Button Async Button 1`] = ` >
Button inner text from event: -
Fake response: -
@@ -328,11 +324,9 @@ exports[`Storyshots Design System/Button Async Button 1`] = ` >
Button inner text from event: -
Fake response: -
diff --git a/src/components/Chart/BarChart/BarChart.tsx b/src/components/Chart/BarChart/BarChart.tsx index 5e0751e32..9cc7970cb 100644 --- a/src/components/Chart/BarChart/BarChart.tsx +++ b/src/components/Chart/BarChart/BarChart.tsx @@ -107,8 +107,6 @@ const BarChart: React.FC = ({ data }) => { const tickColoringOptions = setColoringOptions((obj: Data) => obj.name); - console.log({ labelColoringOptions, tickColoringOptions }); - return ( - diff --git a/src/components/Chip/__snapshots__/Chip.stories.storyshot b/src/components/Chip/__snapshots__/Chip.stories.storyshot index 5038bb7b4..e4e4a4d86 100644 --- a/src/components/Chip/__snapshots__/Chip.stories.storyshot +++ b/src/components/Chip/__snapshots__/Chip.stories.storyshot @@ -492,7 +492,6 @@ exports[`Storyshots Design System/Chip Read-Only Chips 1`] = `
- KN
diff --git a/src/components/DatePicker/__snapshots__/DatePicker.stories.storyshot b/src/components/DatePicker/__snapshots__/DatePicker.stories.storyshot index 35f3f47f3..b55d66473 100644 --- a/src/components/DatePicker/__snapshots__/DatePicker.stories.storyshot +++ b/src/components/DatePicker/__snapshots__/DatePicker.stories.storyshot @@ -4984,7 +4984,6 @@ exports[`Storyshots Design System/DatePicker DatePicker with Filter 1`] = ` > Select Dates - @@ -5042,7 +5041,6 @@ exports[`Storyshots Design System/DatePicker DatePicker with Filter 1`] = ` - - TC @@ -588,7 +587,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
- TC
@@ -703,7 +701,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
- -
- - - - - - - - - -

+ /> diff --git a/src/components/storyUtils/PaletteShowcase/__snapshots__/PaletteShowcase.test.tsx.snap b/src/components/storyUtils/PaletteShowcase/__snapshots__/PaletteShowcase.test.tsx.snap index fb6d9fc58..670cb93c3 100644 --- a/src/components/storyUtils/PaletteShowcase/__snapshots__/PaletteShowcase.test.tsx.snap +++ b/src/components/storyUtils/PaletteShowcase/__snapshots__/PaletteShowcase.test.tsx.snap @@ -12795,22 +12795,6 @@ exports[`PaletteShowcase should render correctly 1`] = ` text-transform: uppercase; } -.emotion-693 { - width: calc(100% - 20px); - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - margin: 10px; -} - .emotion-694 { height: 100px; background: white; @@ -12836,21 +12820,6 @@ exports[`PaletteShowcase should render correctly 1`] = ` font-size: 14px; } -.emotion-697 { - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - width: 100%; -} - .emotion-698 { height: 50px; width: calc(100% - 20px); @@ -13613,6 +13582,10 @@ exports[`PaletteShowcase should render correctly 1`] = ` text-transform: uppercase; } +.emotion-740 { + text-transform: capitalize; +} + .emotion-757 { height: 50px; width: calc(100% - 20px); @@ -26757,22 +26730,6 @@ exports[`PaletteShowcase should render correctly 1`] = ` text-transform: uppercase; } -.emotion-693 { - width: calc(100% - 20px); - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - margin: 10px; -} - .emotion-694 { height: 100px; background: white; @@ -26798,21 +26755,6 @@ exports[`PaletteShowcase should render correctly 1`] = ` font-size: 14px; } -.emotion-697 { - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - width: 100%; -} - .emotion-698 { height: 50px; width: calc(100% - 20px); @@ -27575,6 +27517,10 @@ exports[`PaletteShowcase should render correctly 1`] = ` text-transform: uppercase; } +.emotion-740 { + text-transform: capitalize; +} + .emotion-757 { height: 50px; width: calc(100% - 20px); @@ -32009,7 +31955,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` Another palette is the pale where is not having shades.

#fff
@@ -32297,7 +32243,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 100
#fff
@@ -32309,7 +32255,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 150
#fff
@@ -32321,7 +32267,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 200
#fff
@@ -32333,7 +32279,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 250
#fff
@@ -32345,7 +32291,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 300
#fff
@@ -32357,7 +32303,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 350
#fff
@@ -32369,7 +32315,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 400
#fff
@@ -32381,7 +32327,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 450
#fff
@@ -32393,7 +32339,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 500
white
@@ -32405,7 +32351,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 550
#e5e5e5
@@ -32417,7 +32363,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 600
#ccc
@@ -32429,7 +32375,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 650
#b2b2b2
@@ -32441,7 +32387,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 700
#999
@@ -32453,7 +32399,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 750
#7f7f7f
@@ -32465,7 +32411,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 800
#666
@@ -32477,7 +32423,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 850
#4c4c4c
@@ -32489,7 +32435,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 900
#323232
@@ -32501,7 +32447,7 @@ exports[`PaletteShowcase should render correctly 1`] = ` 950
#191919
diff --git a/src/components/storyUtils/PresentComponent/PresentComponent.tsx b/src/components/storyUtils/PresentComponent/PresentComponent.tsx index f3efde7b0..e7bfb79dc 100644 --- a/src/components/storyUtils/PresentComponent/PresentComponent.tsx +++ b/src/components/storyUtils/PresentComponent/PresentComponent.tsx @@ -1,11 +1,13 @@ import * as React from 'react'; +import { ReactFCC } from '../../../utils/types'; + type Props = { name: string; width?: string; }; -const PresentComponent: React.FC = ({ name, width = 'auto', children }) => { +const PresentComponent: ReactFCC = ({ name, width = 'auto', children }) => { return (