diff --git a/src/Avatar/Avatar.stories.tsx b/src/Avatar/Avatar.stories.tsx index 826cae3f..57c93a62 100644 --- a/src/Avatar/Avatar.stories.tsx +++ b/src/Avatar/Avatar.stories.tsx @@ -16,7 +16,7 @@ export default { }, args: { innerClassName: 'rounded', - src: 'https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp', }, } as Meta diff --git a/src/Button/Button.stories.tsx b/src/Button/Button.stories.tsx index 7e194818..5e93919c 100644 --- a/src/Button/Button.stories.tsx +++ b/src/Button/Button.stories.tsx @@ -170,7 +170,7 @@ export const Glass: Story = (args) => { className="w-full flex justify-center py-8 rounded-md" style={{ backgroundImage: - 'url(https://daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.jpg)', + 'url(https://img.daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.webp)', }} > diff --git a/src/Card/Card.stories.tsx b/src/Card/Card.stories.tsx index 2ddf7ebf..3e069aa6 100644 --- a/src/Card/Card.stories.tsx +++ b/src/Card/Card.stories.tsx @@ -13,7 +13,7 @@ export const Default: Story = (args) => { return ( @@ -35,7 +35,7 @@ export const Responsive: Story = (args) => { @@ -54,7 +54,7 @@ export const Centered: Story = (args) => { return ( @@ -72,7 +72,7 @@ export const ImageOverlay: Story = (args) => { return ( diff --git a/src/Card/Card.test.tsx b/src/Card/Card.test.tsx index 84bc65bd..604f5774 100644 --- a/src/Card/Card.test.tsx +++ b/src/Card/Card.test.tsx @@ -74,12 +74,12 @@ describe('Card', () => { }) it('Should render CardImage component', () => { - render() + render() const figureElement = screen.getByRole('figure') expect(figureElement).toBeInTheDocument() const imgElement = screen.getByRole('img') as HTMLImageElement expect(imgElement).toBeInTheDocument() - expect(imgElement.src).toBe('http://xyz/images/pic-1.jpg') + expect(imgElement.src).toBe('http://xyz/images/pic-1.webp') expect(imgElement.alt).toBe('test image') }) }) diff --git a/src/Carousel/Carousel.stories.tsx b/src/Carousel/Carousel.stories.tsx index 1a34f989..b5a92281 100644 --- a/src/Carousel/Carousel.stories.tsx +++ b/src/Carousel/Carousel.stories.tsx @@ -13,31 +13,31 @@ export const Default: Story = (args) => { return ( @@ -49,31 +49,31 @@ export const Snap: Story = (args) => { return ( @@ -87,31 +87,31 @@ export const FullWidth: Story = (args) => { return ( @@ -125,31 +125,31 @@ export const HalfWidth: Story = (args) => { return ( @@ -163,31 +163,31 @@ export const Vertical: Story = (args) => { return ( @@ -202,19 +202,19 @@ export const Numbered: Story = (args) => { return ( @@ -228,19 +228,19 @@ export const Sequential: Story = (args) => { return ( @@ -260,19 +260,19 @@ export const CustomButton: Story = (args) => { return ( diff --git a/src/Carousel/Carousel.test.tsx b/src/Carousel/Carousel.test.tsx index 326f430b..511c9f89 100644 --- a/src/Carousel/Carousel.test.tsx +++ b/src/Carousel/Carousel.test.tsx @@ -5,19 +5,19 @@ const children = [ , , , ] diff --git a/src/ChatBubble/ChatBubble.stories.tsx b/src/ChatBubble/ChatBubble.stories.tsx index 0d74fe56..f201e3e5 100644 --- a/src/ChatBubble/ChatBubble.stories.tsx +++ b/src/ChatBubble/ChatBubble.stories.tsx @@ -40,7 +40,7 @@ export const Default: Story = ({ )} {avatar && ( - + )} You were my brother, Anakin. {footer && Seen} @@ -79,21 +79,21 @@ export const Side: Story = (args) => ( export const WithImage: Story = (args) => ( <> - + It was said that you would, destroy the Sith, not join them. - + It was you who would bring balance to the Force - + Not leave it in Darkness @@ -105,7 +105,7 @@ export const WithHeader: Story = (args) => ( Obi-Wan Kenobi 12:45 - + You were the Chosen One! @@ -113,7 +113,7 @@ export const WithHeader: Story = (args) => ( Anakin 12:46 - + I hate you! @@ -122,13 +122,13 @@ export const WithHeader: Story = (args) => ( export const WithFooter: Story = (args) => ( <> - + You were the Chosen One! Delivered - + I hate you! Seen at 12:46 diff --git a/src/ChatBubble/ChatBubble.test.tsx b/src/ChatBubble/ChatBubble.test.tsx index f6847025..af31f10c 100644 --- a/src/ChatBubble/ChatBubble.test.tsx +++ b/src/ChatBubble/ChatBubble.test.tsx @@ -51,7 +51,7 @@ describe('ChatBubble', () => { test('Should render ChatBubbleAvatar subcomponent', () => { const { getByAltText } = render( - Avatar + Avatar ) expect(getByAltText('Avatar')).toBeInTheDocument() diff --git a/src/Diff/Diff.stories.tsx b/src/Diff/Diff.stories.tsx index 9326fcae..6db2e741 100644 --- a/src/Diff/Diff.stories.tsx +++ b/src/Diff/Diff.stories.tsx @@ -19,13 +19,13 @@ export const Default: Story = ({ secondItem, ...args }) => ( secondItem={ daisy } > daisy ) diff --git a/src/Hero/Hero.stories.tsx b/src/Hero/Hero.stories.tsx index 1c51098f..ccf3d9a5 100644 --- a/src/Hero/Hero.stories.tsx +++ b/src/Hero/Hero.stories.tsx @@ -40,7 +40,7 @@ export const HeroWithFigure: Story = (args) => {
@@ -107,7 +107,7 @@ export const HeroWithOverlayImage: Story = (args) => { diff --git a/src/Indicator/Indicator.stories.tsx b/src/Indicator/Indicator.stories.tsx index fc6a5b1d..0c399a96 100644 --- a/src/Indicator/Indicator.stories.tsx +++ b/src/Indicator/Indicator.stories.tsx @@ -76,7 +76,7 @@ export const ForAvatar: Story = (args) => { ) @@ -119,7 +119,7 @@ export const InCenterOfImage: Story = (args) => { Uploading Image... - + ) } diff --git a/src/Mask/Mask.stories.tsx b/src/Mask/Mask.stories.tsx index 9bdb0f94..7edd2bc7 100644 --- a/src/Mask/Mask.stories.tsx +++ b/src/Mask/Mask.stories.tsx @@ -13,7 +13,7 @@ export const Default: Story = (args) => { } Default.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'squircle', } @@ -21,7 +21,7 @@ export const MaskHeart: Story = (args) => { return } MaskHeart.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'heart', } @@ -29,7 +29,7 @@ export const Hexagon: Story = (args) => { return } Hexagon.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'hexagon', } @@ -37,7 +37,7 @@ export const HexagonTwo: Story = (args) => { return } HexagonTwo.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'hexagon-2', } @@ -45,7 +45,7 @@ export const Decagon: Story = (args) => { return } Decagon.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'decagon', } @@ -53,14 +53,14 @@ export const Pentagon: Story = (args) => { return } Pentagon.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'pentagon', } export const Diamond: Story = (args) => { return } Diamond.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'diamond', } @@ -68,77 +68,77 @@ export const Square: Story = (args) => { return } Square.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'square', } export const Circle: Story = (args) => { return } Circle.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'circle', } export const Parallelogram: Story = (args) => { return } Parallelogram.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'parallelogram', } export const ParallelogramTwo: Story = (args) => { return } ParallelogramTwo.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'parallelogram-2', } export const ParallelogramThree: Story = (args) => { return } ParallelogramThree.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'parallelogram-3', } export const ParallelogramFour: Story = (args) => { return } ParallelogramFour.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'parallelogram-4', } export const Star: Story = (args) => { return } Star.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'star', } export const StarTwo: Story = (args) => { return } StarTwo.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'star-2', } export const Triangle: Story = (args) => { return } Triangle.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'triangle', } export const TriangleTwo: Story = (args) => { return } TriangleTwo.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'triangle-2', } export const TriangleThree: Story = (args) => { return } TriangleThree.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'triangle-3', } @@ -146,6 +146,6 @@ export const TriangleFour: Story = (args) => { return } TriangleFour.args = { - src: 'https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg', + src: 'https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp', variant: 'triangle-4', } diff --git a/src/Navbar/Navbar.stories.tsx b/src/Navbar/Navbar.stories.tsx index b5e9b9d1..199b1fcf 100644 --- a/src/Navbar/Navbar.stories.tsx +++ b/src/Navbar/Navbar.stories.tsx @@ -166,7 +166,7 @@ export const SearchInputAndDropdown: Story = (args) => { shape="circle" >
- +
@@ -240,7 +240,7 @@ export const IconIndicatorAndDropdown: Story = (args) => { shape="circle" >
- +
diff --git a/src/Stack/Stack.stories.tsx b/src/Stack/Stack.stories.tsx index 1e464f62..6138e818 100644 --- a/src/Stack/Stack.stories.tsx +++ b/src/Stack/Stack.stories.tsx @@ -29,17 +29,17 @@ export const StackedImages: Story = (args) => { return ( Image 1 Image 2 Image 3 diff --git a/src/Stats/Stats.stories.tsx b/src/Stats/Stats.stories.tsx index 6aee59ff..93e741e4 100644 --- a/src/Stats/Stats.stories.tsx +++ b/src/Stats/Stats.stories.tsx @@ -87,7 +87,7 @@ export const IconsOrImage: Story = (args) => { diff --git a/src/Table/Table.stories.tsx b/src/Table/Table.stories.tsx index 7ccb9f86..2847fdee 100644 --- a/src/Table/Table.stories.tsx +++ b/src/Table/Table.stories.tsx @@ -151,7 +151,7 @@ export const WithVisualElements: Story = (args) => {
Hart Hagerty
@@ -176,7 +176,7 @@ export const WithVisualElements: Story = (args) => {
Brice Swyre
@@ -201,7 +201,7 @@ export const WithVisualElements: Story = (args) => {
Marjy Ferencz
@@ -226,7 +226,7 @@ export const WithVisualElements: Story = (args) => {
Yancy Tear