From 20b532bb6e9df1478d916926c0d34c2008061955 Mon Sep 17 00:00:00 2001 From: Vlad Moroz Date: Tue, 4 Jun 2024 18:20:04 +0200 Subject: [PATCH] Test commit for Chromatic/Storybook --- packages/react/select/src/Select.stories.tsx | 860 +++++++++---------- 1 file changed, 427 insertions(+), 433 deletions(-) diff --git a/packages/react/select/src/Select.stories.tsx b/packages/react/select/src/Select.stories.tsx index a80aeeac0..bacf39dbc 100644 --- a/packages/react/select/src/Select.stories.tsx +++ b/packages/react/select/src/Select.stories.tsx @@ -19,37 +19,37 @@ export const Styled = () => ( - - - - - - One 👍 - - - - - - - - Two 👌 - - - - - - - - Three 🤘 - - - - - - - - - + {/* */} + + + + + One 👍 + + + + + + + + Two 👌 + + + + + + + + Three 🤘 + + + + + + + + + {/* */} ))} @@ -80,37 +80,37 @@ export const Controlled = () => { - - - - - - France 🇫🇷 - - - - - - - - United Kingdom 🇬🇧 - - - - - - - - Spain 🇪🇸 - - - - - - - - - + {/* */} + + + + + France 🇫🇷 + + + + + + + + United Kingdom 🇬🇧 + + + + + + + + Spain 🇪🇸 + + + + + + + + + {/* */} ))} @@ -137,33 +137,31 @@ export const Position = () => ( - - - - - {Array.from({ length: 50 }, (_, i) => { - const value = `item-${i + 1}`; - return ( - 5 && i < 9} - > - item {i + 1} - - - - - ); - })} - - - ▼ - - - - + {/* */} + + + + {Array.from({ length: 50 }, (_, i) => { + const value = `item-${i + 1}`; + return ( + 5 && i < 9} + > + item {i + 1} + + + + + ); + })} + + + + + {/* */} ))} @@ -188,31 +186,31 @@ export const NoDefaultValue = () => ( - - - - - One - - - - - - Two - - - - - - Three - - - - - - - - + {/* */} + + + + One + + + + + + Two + + + + + + Three + + + + + + + + {/* */} ))} @@ -237,27 +235,25 @@ export const Typeahead = () => ( - - - - - {foodGroups.map((foodGroup) => - foodGroup.foods.map((food) => ( - - {food.label} - - - - - )) - )} - - - ▼ - - - - + {/* */} + + + + {foodGroups.map((foodGroup) => + foodGroup.foods.map((food) => ( + + {food.label} + + + + + )) + )} + + + + + {/* */} ))} @@ -282,46 +278,44 @@ export const WithGroups = () => ( - - - - - {foodGroups.map((foodGroup, index) => { - const hasLabel = foodGroup.label !== undefined; - return ( - - - {hasLabel && ( - - {foodGroup.label} - - )} - {foodGroup.foods.map((food) => ( - - {food.label} - - - - - ))} - - {index < foodGroups.length - 1 && ( - + {/* */} + + + + {foodGroups.map((foodGroup, index) => { + const hasLabel = foodGroup.label !== undefined; + return ( + + + {hasLabel && ( + + {foodGroup.label} + )} - - ); - })} - - - ▼ - - - - + {foodGroup.foods.map((food) => ( + + {food.label} + + + + + ))} + + {index < foodGroups.length - 1 && ( + + )} + + ); + })} + + + + + {/* */} ))} @@ -330,30 +324,30 @@ export const WithGroups = () => ( export const Labelling = () => { const content = ( - - - - - 0 to 18 - - - - - - 18 to 40 - - - - - - Over 40 - - - - - - - + // + + + + 0 to 18 + + + + + + 18 to 40 + + + + + + Over 40 + + + + + + + // {/* */} ); return (
@@ -411,37 +405,37 @@ export const RightToLeft = () => ( - - - - - - تفاح 🍎 - - - - - - - - حفنة من الموز 🍌 - - - - - - - - الفراولة 🍓 - - - - - - - - - + {/* */} + + + + + تفاح 🍎 + + + + + + + + حفنة من الموز 🍌 + + + + + + + + الفراولة 🍓 + + + + + + + + + {/* */} ))} @@ -477,30 +471,30 @@ export const WithinForm = () => { - - - - - France - - - - - - United Kingdom - - - - - - Spain - - - - - - - + {/* */} + + + + France + + + + + + United Kingdom + + + + + + Spain + + + + + + + {/* */}
@@ -540,30 +534,30 @@ export const DisabledWithinForm = () => { - - - - - France - - - - - - United Kingdom - - - - - - Spain - - - - - - - + {/* */} + + + + France + + + + + + United Kingdom + + + + + + Spain + + + + + + + {/* */}
@@ -603,30 +597,30 @@ export const RequiredWithinForm = () => { - - - - - France - - - - - - United Kingdom - - - - - - Spain - - - - - - - + {/* */} + + + + France + + + + + + United Kingdom + + + + + + Spain + + + + + + + {/* */}
@@ -652,24 +646,24 @@ export const WithinDialog = () => ( - - - - - {Array.from({ length: 30 }, (_, i) => ( - - Item {i} - - - - - ))} - - - ▼ - - - + {/* */} + + + + {Array.from({ length: 30 }, (_, i) => ( + + Item {i} + + + + + ))} + + + ▼ + + + {/* */} Close Dialog @@ -733,22 +727,22 @@ export const ChromaticNoDefaultValue = () => ( - - - - - {Array.from({ length: 10 }, (_, i) => ( - - {String(i)} - - - - - ))} - - - - + {/* */} + + + + {Array.from({ length: 10 }, (_, i) => ( + + {String(i)} + + + + + ))} + + + + {/* */} @@ -756,22 +750,22 @@ export const ChromaticNoDefaultValue = () => ( - - - - - {Array.from({ length: 10 }, (_, i) => ( - - {String(i)} - - - - - ))} - - - - + {/* */} + + + + {Array.from({ length: 10 }, (_, i) => ( + + {String(i)} + + + + + ))} + + + + {/* */}
); @@ -803,30 +797,30 @@ export const Cypress = () => { - - - - - Small - - - - - - Medium - - - - - - Large - - - - - - - + {/* */} + + + + Small + + + + + + Medium + + + + + + Large + + + + + + + {/* */} @@ -843,36 +837,36 @@ export const Cypress = () => { - - - - - Model S - - - - - - Modal 3 - - - - - - Model X - - - - - - Model Y - - - - - - - + {/* */} + + + + Model S + + + + + + Modal 3 + + + + + + Model X + + + + + + Model Y + + + + + + + {/* */} @@ -901,35 +895,35 @@ const ChromaticSelect = React.forwardRef< - - */} + + - - ▲ - - - {Array.from({ length: count }, (_, i) => ( - - {String(i)} - - - - - ))} - - - ▼ - - - + ▲ + + + {Array.from({ length: count }, (_, i) => ( + + {String(i)} + + + + + ))} + + + ▼ + + + {/* */} ));