diff --git a/docs/components/Demo/DemoBlock.astro b/docs/components/Demo/DemoBlock.astro index 2b62f3c0f..b3392a3f9 100644 --- a/docs/components/Demo/DemoBlock.astro +++ b/docs/components/Demo/DemoBlock.astro @@ -1,143 +1,148 @@ --- +import { dedent } from 'ts-dedent' + import CodeExample from '../CodeExample.svelte' import Typography from '../Typography.astro' import Container from '../Container.astro' import Title from '../Title.astro' -let initial = `import Button from '~/components/Button' -import type { FC } from 'react' - -import { - useId, - useCallback, - useState, - useEffect, -} from 'react' - -import Form from '~/component/Form' - -import './style.css' -import Input from '~/components/Input' -import { FormValues } from '~/stores/auth' - -interface Props { - className?: string - onSubmit: (values: FormValues) => void - id: string - resetFormValues: () => void - title: string -} - -const Auth: FC => (props) => ( -
- - -
-)` - -let alphabetical = `import type { FC } from 'react' - -import { - useCallback, - useEffect, - useId, - useState, -} from 'react' - -import Button from '~/components/Button' -import Form from '~/component/Form' -import Input from '~/components/Input' -import { FormValues } from '~/stores/auth' - -import './style.css' - -interface Props { - className?: string - id: string - onSubmit: (values: FormValues) => void - resetFormValues: () => void - title: string -} - -const Auth: FC => (props) => ( -
- - -
-)` - -let lineLength = `import type { FC } from 'react' - -import { - useCallback, - useEffect, - useState, - useId, -} from 'react' - -import { FormValues } from '~/stores/auth' -import Button from '~/components/Button' -import Input from '~/components/Input' -import Form from '~/component/Form' - -import './style.css' - -interface Props { - onSubmit: (values: FormValues) => void - resetFormValues: () => void - className?: string - title: string - id: string -} - -const Auth: FC => (props) => ( -
- - -
-)` +let initial = dedent` + import Button from '~/components/Button' + import type { FC } from 'react' + + import { + useId, + useCallback, + useState, + useEffect, + } from 'react' + + import Form from '~/component/Form' + + import './style.css' + import Input from '~/components/Input' + import { FormValues } from '~/stores/auth' + + interface Props { + className?: string + onSubmit: (values: FormValues) => void + id: string + resetFormValues: () => void + title: string + } + + const Auth: FC = (props) => ( +
+ + +
+ )` + +let alphabetical = dedent` + import type { FC } from 'react' + + import { + useCallback, + useEffect, + useId, + useState, + } from 'react' + + import Button from '~/components/Button' + import Form from '~/component/Form' + import Input from '~/components/Input' + import { FormValues } from '~/stores/auth' + + import './style.css' + + interface Props { + className?: string + id: string + onSubmit: (values: FormValues) => void + resetFormValues: () => void + title: string + } + + const Auth: FC = (props) => ( +
+ + +
+ )` + +let lineLength = dedent` + import type { FC } from 'react' + + import { + useCallback, + useEffect, + useState, + useId, + } from 'react' + + import { FormValues } from '~/stores/auth' + import Button from '~/components/Button' + import Input from '~/components/Input' + import Form from '~/component/Form' + + import './style.css' + + interface Props { + onSubmit: (values: FormValues) => void + resetFormValues: () => void + className?: string + title: string + id: string + } + + const Auth: FC = (props) => ( +
+ + +
+ )` ---
diff --git a/docs/public/examples/example-alphabetical-dark.webp b/docs/public/examples/example-alphabetical-dark.webp index 8b54340dd..281276a59 100644 Binary files a/docs/public/examples/example-alphabetical-dark.webp and b/docs/public/examples/example-alphabetical-dark.webp differ diff --git a/docs/public/examples/example-alphabetical-light.webp b/docs/public/examples/example-alphabetical-light.webp index e0e8ff599..c5f4b1f49 100644 Binary files a/docs/public/examples/example-alphabetical-light.webp and b/docs/public/examples/example-alphabetical-light.webp differ diff --git a/docs/public/examples/example-line-length-dark.webp b/docs/public/examples/example-line-length-dark.webp index 1e8c2835d..aff8df2e2 100644 Binary files a/docs/public/examples/example-line-length-dark.webp and b/docs/public/examples/example-line-length-dark.webp differ diff --git a/docs/public/examples/example-line-length-light.webp b/docs/public/examples/example-line-length-light.webp index 4e94ab4e9..d4ae51045 100644 Binary files a/docs/public/examples/example-line-length-light.webp and b/docs/public/examples/example-line-length-light.webp differ