File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ components/Popover/popover.tsx
5050components /ProfileCard /ProfileCard.tsx
5151components /Progress /progress.tsx
5252components /Select /select.tsx
53- components /Skeleton /Skeleton.tsx
5453components /SnowOverlayToggle /SnowOverlayToggle.tsx
5554components /SnowOverlayWrapper /react-snow-overlay.d.ts
5655lib /drawGiftExchange.ts
Original file line number Diff line number Diff line change 1- import type { Preview } from '@storybook/react'
1+ import type { Preview } from '@storybook/react' ;
2+ import '../app/globals.css' ;
23
34const preview : Preview = {
45 parameters : {
6+ layout : 'centered' ,
7+ backgrounds : {
8+ default : 'light' ,
9+ values : [
10+ { name : 'light' , value : '#ffffff' } ,
11+ { name : 'dark' , value : '#1a1a1a' } ,
12+ { name : 'dark green' , value : '#244b40' } ,
13+ { name : 'green' , value : '#395a50' } ,
14+ { name : 'gray' , value : '#f0f0f0' } ,
15+ { name : 'blue' , value : '#dbeafe' } ,
16+ ] ,
17+ } ,
518 controls : {
619 matchers : {
7- color : / ( b a c k g r o u n d | c o l o r ) $ / i,
8- date : / D a t e $ / i,
20+ color : / ( b a c k g r o u n d | c o l o r ) $ / i,
21+ date : / D a t e $ / i,
922 } ,
1023 } ,
1124 } ,
1225} ;
1326
14- export default preview ;
27+ export default preview ;
Original file line number Diff line number Diff line change 1- interface SkeletonProps {
1+ // Copyright (c) Gridiron Survivor.
2+ // Licensed under the MIT License.
3+
4+ import { JSX } from "react" ;
5+
6+ interface ISkeletonProps {
27 className ?: string ;
38}
49
5- export function Skeleton ( { className } : SkeletonProps ) {
10+ /**
11+ * Skeleton component - animated placeholder for loading states.
12+ * @param {ISkeletonProps } props - The component props.
13+ * @param {string } [props.className] - Additional classNames for styling.
14+ * @returns {JSX.Element } Styled div serving as a loading placeholder.
15+ */
16+ export const Skeleton = ( { className } : ISkeletonProps ) : JSX . Element => {
617 return (
718 < div className = { `animate-pulse bg-gray-200 rounded-md ${ className } ` } data-testid = "skeleton" />
819 ) ;
9- }
20+ } ;
You can’t perform that action at this time.
0 commit comments