diff --git a/.gitignore b/.gitignore index 95f9ee9..6474480 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ lib-cov logs node_modules temp +.astro diff --git a/docs/src/components/Footer.astro b/docs/src/components/Footer.astro index 619a7c0..cb00f36 100644 --- a/docs/src/components/Footer.astro +++ b/docs/src/components/Footer.astro @@ -3,14 +3,35 @@ import { siteConfig } from '@/config/site' --- diff --git a/docs/src/components/Header.astro b/docs/src/components/Header.astro index cac0a3f..03ff085 100644 --- a/docs/src/components/Header.astro +++ b/docs/src/components/Header.astro @@ -7,50 +7,58 @@ import Navbar from './Navbar.astro' const { pathname } = Astro.url --- -
-
- - - - +
+
diff --git a/docs/src/components/Logo.astro b/docs/src/components/Logo.astro index 891e19d..f37fbd7 100644 --- a/docs/src/components/Logo.astro +++ b/docs/src/components/Logo.astro @@ -1,61 +1,58 @@ - - - - + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/docs/src/components/Navbar.astro b/docs/src/components/Navbar.astro index dd624fc..9a80ab9 100644 --- a/docs/src/components/Navbar.astro +++ b/docs/src/components/Navbar.astro @@ -5,34 +5,34 @@ import { cn } from '@/lib/utils' import Logo from './Logo.astro' export type Props = { - pathname: string + pathname: string } const { pathname } = Astro.props --- diff --git a/docs/src/components/PageNavigation.astro b/docs/src/components/PageNavigation.astro index 1114d74..606ce9a 100644 --- a/docs/src/components/PageNavigation.astro +++ b/docs/src/components/PageNavigation.astro @@ -6,59 +6,68 @@ import { buttonVariants } from '@/registry/new-york/ui/button' const { pathname } = Astro.url function flatten(links: TNavItemWithChildren[]): TNavItem[] { - return links - .reduce((flat, link) => { - return flat.concat(link.items?.length ? flatten(link.items) : link) - }, []) - .filter(link => !link?.disabled) + return links + .reduce((flat, link) => { + return flat.concat(link.items?.length ? flatten(link.items) : link) + }, []) + .filter((link) => !link?.disabled) } function getPagerForDoc(slug: string) { - const flattenedLinks = [null, ...flatten(docsConfig.sidebarNav), null] - let activeIndex: number - if (!slug) { - activeIndex = 1 - } - else { - activeIndex = flattenedLinks.findIndex(link => `${slug}` === link?.href) - } + const flattenedLinks = [null, ...flatten(docsConfig.sidebarNav), null] + let activeIndex: number + if (!slug) { + activeIndex = 1 + } else { + activeIndex = flattenedLinks.findIndex((link) => `${slug}` === link?.href) + } - const prev = activeIndex !== 0 ? flattenedLinks[activeIndex - 1] : null - const next = activeIndex !== flattenedLinks.length - 1 ? flattenedLinks[activeIndex + 1] : null - return { - prev, - next, - } + const prev = activeIndex !== 0 ? flattenedLinks[activeIndex - 1] : null + const next = activeIndex !== flattenedLinks.length - 1 ? flattenedLinks[activeIndex + 1] : null + return { + prev, + next, + } } const pager = getPagerForDoc(pathname) ---
- { - pager.prev?.href -? ( - - - - Previous page - - {pager.prev.title} - - ) -: null - } - { - pager.next?.href -? ( - - {pager.next.title} - - - Next page - - - ) -: null - } + { + pager.prev?.href ? ( + + + + Previous page + + {pager.prev.title} + + ) : null + } + { + pager.next?.href ? ( + + {pager.next.title} + + + Next page + + + ) : null + }
diff --git a/docs/src/components/Sidebar.astro b/docs/src/components/Sidebar.astro index 4cc1a80..1c65361 100644 --- a/docs/src/components/Sidebar.astro +++ b/docs/src/components/Sidebar.astro @@ -2,66 +2,64 @@ import { docsConfig } from '@/config/docs' import { cn } from '@/lib/utils' -const { pathname } = Astro.props; +const { pathname } = Astro.props ---
- { - docsConfig.sidebarNav.map(item => ( -
-

{item.title}

-
- {item.items.map(subItem => - subItem.disabled -? ( - - {subItem.title} - {subItem.label && ( - - {subItem.label} - - )} - - ) -: ( - - {subItem.title} - {subItem.label && ( - - {subItem.label} - - )} - - ), + { + docsConfig.sidebarNav.map((item) => ( +
+

{item.title}

+
+ {item.items.map((subItem) => + subItem.disabled ? ( + + {subItem.title} + {subItem.label && ( + -
- )) - } + > + {subItem.label} + + )} + + ) : ( + + {subItem.title} + {subItem.label && ( + + {subItem.label} + + )} + + ), + )} +
+
+ )) + }
diff --git a/docs/src/components/Toc.astro b/docs/src/components/Toc.astro index d5fed5e..c9bb934 100644 --- a/docs/src/components/Toc.astro +++ b/docs/src/components/Toc.astro @@ -3,7 +3,7 @@ import { cn } from '@/lib/utils' import type { MarkdownHeading } from 'astro' type Props = { - data: MarkdownHeading[] + data: MarkdownHeading[] } const { data } = Astro.props @@ -11,56 +11,59 @@ const { pathname } = Astro.url --- diff --git a/docs/src/components/component-preview/ComponentPreview.astro b/docs/src/components/component-preview/ComponentPreview.astro index d834849..42e6c64 100644 --- a/docs/src/components/component-preview/ComponentPreview.astro +++ b/docs/src/components/component-preview/ComponentPreview.astro @@ -14,77 +14,74 @@ import RawCode from './RawCode.astro' import { Select, SelectContent, syncKey } from './select' export interface Props { - name: string - class?: string + name: string + class?: string } const { name } = Astro.props const sortedStyleByNewYork = styles.toSorted((a, b) => (a.name === 'new-york' ? -1 : b.name === 'new-york' ? 1 : 0)) const components = await Promise.all( - [...sortedStyleByNewYork].map(async (style) => { - const filename = path.join(process.cwd(), 'src', 'registry', style.name, 'example', `${name}.ts`) - let pathCode: string - let code: string | null + [...sortedStyleByNewYork].map(async (style) => { + const filename = path.join(process.cwd(), 'src', 'registry', style.name, 'example', `${name}.ts`) + let pathCode: string + let code: string | null - if (existsSync(filename)) { - pathCode = `../registry/${style.name}/example/${name}.ts` - code = readFileSync(`${filename}`) - .toString() - .replace(/@\/registry\/.*\/ui/g, '@/components/ui') - .replace(/export\s+default\s+(?:\S.*)?\s*/, '') - } - else { - pathCode = '' - code = null - } + if (existsSync(filename)) { + pathCode = `../registry/${style.name}/example/${name}.ts` + code = readFileSync(`${filename}`) + .toString() + .replace(/@\/registry\/.*\/ui/g, '@/components/ui') + .replace(/export\s+default\s+(?:\S.*)?\s*/, '') + } else { + pathCode = '' + code = null + } - return { - style, - code, - pathCode, - } - }), + return { + style, + code, + pathCode, + } + }), ) ---
- - - Preview - Code - + + + Preview + Code + - - - - - - - + + + + + + +
diff --git a/docs/src/components/component-preview/ComponentSource.astro b/docs/src/components/component-preview/ComponentSource.astro index 535aeb6..5b24cee 100644 --- a/docs/src/components/component-preview/ComponentSource.astro +++ b/docs/src/components/component-preview/ComponentSource.astro @@ -10,52 +10,60 @@ import { CopyButton } from '../copy-button' import { Select, SelectContent, syncKey } from './select' export interface Props { - name: string + name: string } const { name } = Astro.props -const componentUi = ui.find(value => value.name === name) +const componentUi = ui.find((value) => value.name === name) const allComponents = componentUi?.files?.flatMap((file) => { - return styles.map((style) => { - const filename = path.join(process.cwd(), 'src', 'registry', style.name, typeof file === 'string' ? file : file.path) - - let code: string | null - - try { - code = readFileSync(`${filename}`) - .toString() - .replace(/export\s+default\s+(?:\S.*)?;\s*/, '') - .replace(/@\/registry\/.*\/ui/g, '@/components/ui') - } - catch { - code = null - } - - return { - style, - code, - } - }) + return styles.map((style) => { + const filename = path.join( + process.cwd(), + 'src', + 'registry', + style.name, + typeof file === 'string' ? file : file.path, + ) + + let code: string | null + + try { + code = readFileSync(`${filename}`) + .toString() + .replace(/export\s+default\s+(?:\S.*)?;\s*/, '') + .replace(/@\/registry\/.*\/ui/g, '@/components/ui') + } catch { + code = null + } + + return { + style, + code, + } + }) }) --- diff --git a/docs/src/components/component-preview/RawCode.astro b/docs/src/components/component-preview/RawCode.astro index 58e8896..69237ce 100644 --- a/docs/src/components/component-preview/RawCode.astro +++ b/docs/src/components/component-preview/RawCode.astro @@ -4,13 +4,18 @@ import { Code as CodeAstro } from 'astro/components' import { CopyButton } from '../copy-button' export interface Props { - code: string + code: string } const { code } = Astro.props ---
- - + +
diff --git a/docs/src/components/component-preview/select/Select.astro b/docs/src/components/component-preview/select/Select.astro index 78d3825..fa49a04 100644 --- a/docs/src/components/component-preview/select/Select.astro +++ b/docs/src/components/component-preview/select/Select.astro @@ -1,148 +1,153 @@ --- export interface Props { - defaultValue?: string - syncKey?: string - hideSelect?: boolean + defaultValue?: string + syncKey?: string + hideSelect?: boolean } const { hideSelect } = Astro.props --- - - { - !hideSelect && ( -
-
- -
-
-
- -
-
-
- ) - } + + { + !hideSelect && ( +
+
+ +
+
+
+ +
+
+
+ ) + } - {hideSelect && } + {hideSelect && }
diff --git a/docs/src/components/component-preview/select/SelectContent.astro b/docs/src/components/component-preview/select/SelectContent.astro index 17366af..757a890 100644 --- a/docs/src/components/component-preview/select/SelectContent.astro +++ b/docs/src/components/component-preview/select/SelectContent.astro @@ -1,10 +1,10 @@ --- export interface Props { - value: string - label: string + value: string + label: string } --- - + diff --git a/docs/src/components/mdx/Callout.astro b/docs/src/components/mdx/Callout.astro index ae8bab8..a14fac7 100644 --- a/docs/src/components/mdx/Callout.astro +++ b/docs/src/components/mdx/Callout.astro @@ -4,10 +4,11 @@ import { cn } from '@/lib/utils' diff --git a/docs/src/components/mdx/Step.astro b/docs/src/components/mdx/Step.astro index 8ea37b8..78635a1 100644 --- a/docs/src/components/mdx/Step.astro +++ b/docs/src/components/mdx/Step.astro @@ -1,10 +1,7 @@ --- -const props = Astro.props; +const props = Astro.props --- -

- +

+

diff --git a/docs/src/components/mdx/Steps.astro b/docs/src/components/mdx/Steps.astro index db395e3..7c2e1ec 100644 --- a/docs/src/components/mdx/Steps.astro +++ b/docs/src/components/mdx/Steps.astro @@ -1,10 +1,7 @@ --- -const props = Astro.props; +const props = Astro.props --- -
- +
+
diff --git a/docs/src/components/mdx/blockquote.astro b/docs/src/components/mdx/blockquote.astro index 7866552..7f04e39 100644 --- a/docs/src/components/mdx/blockquote.astro +++ b/docs/src/components/mdx/blockquote.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---
- +
diff --git a/docs/src/components/mdx/h1.astro b/docs/src/components/mdx/h1.astro index 9c6cec5..315bb3f 100644 --- a/docs/src/components/mdx/h1.astro +++ b/docs/src/components/mdx/h1.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---

- +

diff --git a/docs/src/components/mdx/h2.astro b/docs/src/components/mdx/h2.astro index 7bcd8b6..b1fba07 100644 --- a/docs/src/components/mdx/h2.astro +++ b/docs/src/components/mdx/h2.astro @@ -4,6 +4,9 @@ import { cn } from '@/lib/utils' const { class: className, ...props } = Astro.props --- -

- +

+

diff --git a/docs/src/components/mdx/h3.astro b/docs/src/components/mdx/h3.astro index 5da2a94..7ff0e7e 100644 --- a/docs/src/components/mdx/h3.astro +++ b/docs/src/components/mdx/h3.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---

- +

diff --git a/docs/src/components/mdx/h4.astro b/docs/src/components/mdx/h4.astro index df3aa6d..8d67ce1 100644 --- a/docs/src/components/mdx/h4.astro +++ b/docs/src/components/mdx/h4.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---

- +

diff --git a/docs/src/components/mdx/h5.astro b/docs/src/components/mdx/h5.astro index bd308cc..7346cb1 100644 --- a/docs/src/components/mdx/h5.astro +++ b/docs/src/components/mdx/h5.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---
- +
diff --git a/docs/src/components/mdx/h6.astro b/docs/src/components/mdx/h6.astro index 01e2011..bc52d09 100644 --- a/docs/src/components/mdx/h6.astro +++ b/docs/src/components/mdx/h6.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---
- +
diff --git a/docs/src/components/mdx/li.astro b/docs/src/components/mdx/li.astro index f8a0b25..aee1ece 100644 --- a/docs/src/components/mdx/li.astro +++ b/docs/src/components/mdx/li.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---
  • - +
  • diff --git a/docs/src/components/mdx/linked-card.astro b/docs/src/components/mdx/linked-card.astro index 960cdcc..74840c6 100644 --- a/docs/src/components/mdx/linked-card.astro +++ b/docs/src/components/mdx/linked-card.astro @@ -4,6 +4,12 @@ import { cn } from '@/lib/utils' const { class: className, ...props } = Astro.props --- - - + + diff --git a/docs/src/components/mdx/ol.astro b/docs/src/components/mdx/ol.astro index 806d3bf..3b483f1 100644 --- a/docs/src/components/mdx/ol.astro +++ b/docs/src/components/mdx/ol.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---
      - +
    diff --git a/docs/src/components/mdx/p.astro b/docs/src/components/mdx/p.astro index 950863f..d83d903 100644 --- a/docs/src/components/mdx/p.astro +++ b/docs/src/components/mdx/p.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---

    - +

    diff --git a/docs/src/components/mdx/pre.astro b/docs/src/components/mdx/pre.astro index d2318cb..422e4c0 100644 --- a/docs/src/components/mdx/pre.astro +++ b/docs/src/components/mdx/pre.astro @@ -4,21 +4,39 @@ import { CopyButton } from '../copy-button' // import PackageManagerCopyButton from "../package-manager-copy-button"; type Props = { - rawString: string - npmCommand: string - yarnCommand: string - pnpmCommand: string - withMeta: boolean - class?: string + rawString: string + npmCommand: string + yarnCommand: string + pnpmCommand: string + withMeta: boolean + class?: string } const { rawString, npmCommand, pnpmCommand, yarnCommand, withMeta, class: className, ...rest } = Astro.props ---
    -
    +
    - {rawString && !npmCommand ? : null} + { + rawString && !npmCommand ? ( + + ) : null + } - {npmCommand && yarnCommand && pnpmCommand ? (
    {/* */}
    ) : null} + { + npmCommand && yarnCommand && pnpmCommand ? ( +
    + {/* */} +
    + ) : null + }
    diff --git a/docs/src/components/mdx/ul.astro b/docs/src/components/mdx/ul.astro index 49c4237..1b1d350 100644 --- a/docs/src/components/mdx/ul.astro +++ b/docs/src/components/mdx/ul.astro @@ -5,5 +5,5 @@ const { class: className, ...props } = Astro.props ---
      - +
    diff --git a/docs/src/components/page-header/PageActions.astro b/docs/src/components/page-header/PageActions.astro index d5c2258..72e9932 100644 --- a/docs/src/components/page-header/PageActions.astro +++ b/docs/src/components/page-header/PageActions.astro @@ -1,8 +1,7 @@ --- -import { cn } from '@/lib/utils'; - +import { cn } from '@/lib/utils' ---
    - +
    diff --git a/docs/src/components/page-header/PageHeader.astro b/docs/src/components/page-header/PageHeader.astro index 6ff0f33..6082ed1 100644 --- a/docs/src/components/page-header/PageHeader.astro +++ b/docs/src/components/page-header/PageHeader.astro @@ -2,6 +2,8 @@ import { cn } from '@/lib/utils' --- -
    - +
    +
    diff --git a/docs/src/components/page-header/PageHeaderDescription.astro b/docs/src/components/page-header/PageHeaderDescription.astro index 1d9e1e2..79c1123 100644 --- a/docs/src/components/page-header/PageHeaderDescription.astro +++ b/docs/src/components/page-header/PageHeaderDescription.astro @@ -1,8 +1,7 @@ --- -import { cn } from '@/lib/utils'; - +import { cn } from '@/lib/utils' ---

    - +

    diff --git a/docs/src/components/page-header/PageHeaderHeading.astro b/docs/src/components/page-header/PageHeaderHeading.astro index 3e82ae3..5580c2b 100644 --- a/docs/src/components/page-header/PageHeaderHeading.astro +++ b/docs/src/components/page-header/PageHeaderHeading.astro @@ -3,5 +3,5 @@ import { cn } from '@/lib/utils' ---

    - +

    diff --git a/docs/src/components/tabs/Tabs.astro b/docs/src/components/tabs/Tabs.astro index a5aefbc..6f4c73a 100644 --- a/docs/src/components/tabs/Tabs.astro +++ b/docs/src/components/tabs/Tabs.astro @@ -2,93 +2,91 @@ import { cn } from '@/lib/utils' export interface Props { - defaultValue?: string - class?: string + defaultValue?: string + class?: string } const { defaultValue } = Astro.props --- -
    - -
    +
    + +
    diff --git a/docs/src/components/tabs/TabsContent.astro b/docs/src/components/tabs/TabsContent.astro index a933010..24905dc 100644 --- a/docs/src/components/tabs/TabsContent.astro +++ b/docs/src/components/tabs/TabsContent.astro @@ -2,8 +2,8 @@ import { cn } from '@/lib/utils' export interface Props { - value: string - class?: string + value: string + class?: string } const { value } = Astro.props @@ -12,10 +12,10 @@ const { value } = Astro.props - + diff --git a/docs/src/components/tabs/TabsList.astro b/docs/src/components/tabs/TabsList.astro index 0aa3a7e..2274ef0 100644 --- a/docs/src/components/tabs/TabsList.astro +++ b/docs/src/components/tabs/TabsList.astro @@ -2,6 +2,12 @@ import { cn } from '@/lib/utils' --- -
    - +
    +
    diff --git a/docs/src/components/tabs/TabsTrigger.astro b/docs/src/components/tabs/TabsTrigger.astro index 0b0a10c..0a0ba27 100644 --- a/docs/src/components/tabs/TabsTrigger.astro +++ b/docs/src/components/tabs/TabsTrigger.astro @@ -2,8 +2,8 @@ import { cn } from '@/lib/utils' export interface Props { - value: string - class?: string + value: string + class?: string } const { value } = Astro.props --- @@ -11,10 +11,10 @@ const { value } = Astro.props - + diff --git a/docs/src/layouts/DocsLayout.astro b/docs/src/layouts/DocsLayout.astro index 3b67602..6987634 100644 --- a/docs/src/layouts/DocsLayout.astro +++ b/docs/src/layouts/DocsLayout.astro @@ -11,7 +11,7 @@ import type { CollectionEntry } from 'astro:content' import RootLayout from './RootLayout.astro' export type Props = { - entry: CollectionEntry<'docs'> + entry: CollectionEntry<'docs'> } const { entry } = Astro.props @@ -20,111 +20,111 @@ const { pathname } = Astro.url --- -
    -
    - -
    -
    -
    -
    Docs
    - - - -
    {entry.data.title}
    -
    -
    -

    - {entry.data.title} -

    - { - entry.data.description -? ( -

    - {entry.data.description} -

    - ) -: null - } -
    - { - entry.data.links -? ( -
    - {entry.data.links.doc -? ( - - Docs - - - - - ) -: null} - {entry.data.links.api -? ( - - API Reference{' '} - - - - - ) -: null} -
    - ) -: null - } -
    - -
    - -
    +
    +
    + +
    +
    +
    +
    Docs
    + + + +
    {entry.data.title}
    +
    +
    +

    + {entry.data.title} +

    + { + entry.data.description ? ( +

    + {entry.data.description} +

    + ) : null + } +
    + { + entry.data.links ? ( +
    + {entry.data.links.doc ? ( + + Docs + + + + + ) : null} + {entry.data.links.api ? ( + + API Reference{' '} + + + + + ) : null} +
    + ) : null + } +
    + +
    + +
    - -
    + +
    +
    diff --git a/docs/src/layouts/RootLayout.astro b/docs/src/layouts/RootLayout.astro index 7dea045..fa98611 100644 --- a/docs/src/layouts/RootLayout.astro +++ b/docs/src/layouts/RootLayout.astro @@ -7,95 +7,94 @@ import { siteConfig } from '@/config/site' import './main.css' type Props = { - title?: string - description?: string - url?: string + title?: string + description?: string + url?: string } const { title, description, url } = Astro.props --- - - - - - {title ?? siteConfig.title} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - -
    -
    -
    - + + + + + {title ?? siteConfig.title} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +
    +
    + diff --git a/docs/src/layouts/main.css b/docs/src/layouts/main.css index 0a33a04..cbfaec4 100644 --- a/docs/src/layouts/main.css +++ b/docs/src/layouts/main.css @@ -3,132 +3,134 @@ @tailwind utilities; @layer base { - :root { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - --primary: 240 5.9% 10%; - --primary-foreground: 0 0% 98%; - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 0 0% 98%; - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - --ring: 240 5% 64.9%; - --radius: 0.5rem; - } + :root { + --background: 0 0% 100%; + --foreground: 240 10% 3.9%; + --card: 0 0% 100%; + --card-foreground: 240 10% 3.9%; + --popover: 0 0% 100%; + --popover-foreground: 240 10% 3.9%; + --primary: 240 5.9% 10%; + --primary-foreground: 0 0% 98%; + --secondary: 240 4.8% 95.9%; + --secondary-foreground: 240 5.9% 10%; + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; + --accent: 240 4.8% 95.9%; + --accent-foreground: 240 5.9% 10%; + --destructive: 0 72.22% 50.59%; + --destructive-foreground: 0 0% 98%; + --border: 240 5.9% 90%; + --input: 240 5.9% 90%; + --ring: 240 5% 64.9%; + --radius: 0.5rem; + } - .dark { - --background: 240 10% 3.9%; - --foreground: 0 0% 98%; - --card: 240 10% 3.9%; - --card-foreground: 0 0% 98%; - --popover: 240 10% 3.9%; - --popover-foreground: 0 0% 98%; - --primary: 0 0% 98%; - --primary-foreground: 240 5.9% 10%; - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - --muted: 240 3.7% 15.9%; - --muted-foreground: 240 5% 64.9%; - --accent: 240 3.7% 15.9%; - --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 85.7% 97.3%; - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - --ring: 240 4.9% 83.9%; - } + .dark { + --background: 240 10% 3.9%; + --foreground: 0 0% 98%; + --card: 240 10% 3.9%; + --card-foreground: 0 0% 98%; + --popover: 240 10% 3.9%; + --popover-foreground: 0 0% 98%; + --primary: 0 0% 98%; + --primary-foreground: 240 5.9% 10%; + --secondary: 240 3.7% 15.9%; + --secondary-foreground: 0 0% 98%; + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; + --accent: 240 3.7% 15.9%; + --accent-foreground: 0 0% 98%; + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 0 85.7% 97.3%; + --border: 240 3.7% 15.9%; + --input: 240 3.7% 15.9%; + --ring: 240 4.9% 83.9%; + } } @layer base { - * { - @apply border-border; - } + * { + @apply border-border; + } - body { - @apply bg-background font-sans text-foreground antialiased; - } + body { + @apply bg-background font-sans text-foreground antialiased; + } } @layer utilities { - .step { - counter-increment: step; - } + .step { + counter-increment: step; + } - .step:before { - @apply absolute inline-flex h-9 w-9 items-center justify-center rounded-full border-4 border-background bg-muted text-center -indent-px font-mono text-base font-medium ml-[-50px] mt-[-4px]; - content: counter(step); - } + .step:before { + @apply absolute inline-flex h-9 w-9 items-center justify-center rounded-full border-4 border-background bg-muted text-center -indent-px font-mono text-base font-medium ml-[-50px] mt-[-4px]; + content: counter(step); + } } ::-webkit-scrollbar { - width: 15px; + width: 15px; } ::-webkit-scrollbar:horizontal { - height: 15px; + height: 15px; } ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:horizontal { - border-radius: 9999px; - border: 4px solid transparent; - background-clip: content-box; - @apply bg-accent + border-radius: 9999px; + border: 4px solid transparent; + background-clip: content-box; + @apply bg-accent; } ::-webkit-scrollbar-corner, ::-webkit-scrollbar-corner:horizontal { - @apply bg-transparent + @apply bg-transparent; } .astro-code[data-language] code .highlighted { - background-color: rgba(101, 117, 133, .16); - transition: background-color 0.5s; - margin: 0 -24px; - padding: 0 24px; - width: calc(100% + 48px); - display: inline-block; + background-color: rgba(101, 117, 133, 0.16); + transition: background-color 0.5s; + margin: 0 -24px; + padding: 0 24px; + width: calc(100% + 48px); + display: inline-block; } .astro-code[data-language] pre { - position: relative; - z-index: 1; - margin: 0; - padding: 20px 0; - background: transparent; - overflow-x: auto; + position: relative; + z-index: 1; + margin: 0; + padding: 20px 0; + background: transparent; + overflow-x: auto; } .astro-code[data-language] pre, .astro-code[data-language] code { - direction: ltr; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; + direction: ltr; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; } -:not(pre)>code { - border-radius: 4px; - padding: 3px 6px; - background-color: rgba(101, 117, 133, .16); - transition: color .25s, background-color .5s; +:not(pre) > code { + border-radius: 4px; + padding: 3px 6px; + background-color: rgba(101, 117, 133, 0.16); + transition: + color 0.25s, + background-color 0.5s; } diff --git a/docs/src/pages/docs/[...slug].astro b/docs/src/pages/docs/[...slug].astro index f6d1a95..3f2cb86 100644 --- a/docs/src/pages/docs/[...slug].astro +++ b/docs/src/pages/docs/[...slug].astro @@ -5,11 +5,11 @@ import { getCollection } from 'astro:content' import type { InferGetStaticPropsType } from 'astro' export async function getStaticPaths() { - const docsEntries = await getCollection('docs') - return docsEntries.map(entry => ({ - params: { slug: entry.slug === 'index' ? '/' : entry.slug }, - props: { entry }, - })) + const docsEntries = await getCollection('docs') + return docsEntries.map((entry) => ({ + params: { slug: entry.slug === 'index' ? '/' : entry.slug }, + props: { entry }, + })) } export type Props = InferGetStaticPropsType @@ -19,5 +19,5 @@ const { Content } = await entry.render() --- - + diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro index df1e5b3..772e7f6 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -9,32 +9,34 @@ import { buttonVariants } from '@/registry/new-york/ui/button' --- -
    - - Build your component library - Beautifully designed components that you can copy and paste into your apps. +
    + + Build your component library + + Beautifully designed components that you can copy and paste into your apps. + - - - Get Started - - - GitHub - - - -
    + + + Get Started + + + GitHub + + +
    +
    diff --git a/eslint.config.js b/eslint.config.js index 9573151..26a78ce 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,5 +5,13 @@ export default antfu( { type: 'lib', astro: true, + markdown: true, + formatters: { + astro: true, + css: true, + html: true, + markdown: true, + svg: true, + }, }, ) diff --git a/package.json b/package.json index 97a3d01..a608938 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "devDependencies": { "@antfu/eslint-config": "^3.3.2", "@antfu/utils": "^0.7.10", + "@prettier/plugin-xml": "^3.4.1", "@types/debug": "^4.1.12", "@types/diff": "^5.0.3", "@types/fs-extra": "^11.0.1", @@ -85,10 +86,12 @@ "cross-env": "^7.0.3", "debug": "^4.3.7", "eslint": "^9.9.1", + "eslint-plugin-format": "^0.1.2", "esno": "^4.7.0", "lint-staged": "^15.2.10", "pnpm": "^9.9.0", "postcss": "^8.4.47", + "prettier-plugin-astro": "^0.14.1", "simple-git-hooks": "^2.11.1", "tailwindcss": "^3.4.13", "typescript": "^5.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 96e5426..800a30b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,10 +80,13 @@ importers: devDependencies: '@antfu/eslint-config': specifier: ^3.3.2 - version: 3.3.2(@typescript-eslint/utils@8.4.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(@vue/compiler-sfc@3.3.10)(astro-eslint-parser@1.0.3(typescript@5.5.4))(eslint-plugin-astro@1.2.4(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4)(vitest@2.0.5(@types/node@22.6.1)(less@4.2.0)(sass@1.77.6)(terser@5.31.6)) + version: 3.3.2(@prettier/plugin-xml@3.4.1(prettier@3.3.3))(@typescript-eslint/utils@8.4.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(@vue/compiler-sfc@3.3.10)(astro-eslint-parser@1.0.3(typescript@5.5.4))(eslint-plugin-astro@1.2.4(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(eslint-plugin-format@0.1.2(eslint@9.9.1(jiti@2.3.3)))(eslint@9.9.1(jiti@2.3.3))(prettier-plugin-astro@0.14.1)(typescript@5.5.4)(vitest@2.0.5(@types/node@22.6.1)(less@4.2.0)(sass@1.77.6)(terser@5.31.6)) '@antfu/utils': specifier: ^0.7.10 version: 0.7.10 + '@prettier/plugin-xml': + specifier: ^3.4.1 + version: 3.4.1(prettier@3.3.3) '@types/debug': specifier: ^4.1.12 version: 4.1.12 @@ -114,6 +117,9 @@ importers: eslint: specifier: ^9.9.1 version: 9.9.1(jiti@2.3.3) + eslint-plugin-format: + specifier: ^0.1.2 + version: 0.1.2(eslint@9.9.1(jiti@2.3.3)) esno: specifier: ^4.7.0 version: 4.7.0 @@ -126,6 +132,9 @@ importers: postcss: specifier: ^8.4.47 version: 8.4.47 + prettier-plugin-astro: + specifier: ^0.14.1 + version: 0.14.1 simple-git-hooks: specifier: ^2.11.1 version: 2.11.1 @@ -167,7 +176,7 @@ importers: version: 18.2.8(@angular/common@18.2.8(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(@angular/platform-browser@18.2.8(@angular/animations@18.2.8(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10)))(@angular/common@18.2.8(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10)))(rxjs@7.8.1) '@astrojs/check': specifier: ^0.9.3 - version: 0.9.3(prettier@3.3.3)(typescript@5.5.4) + version: 0.9.3(prettier-plugin-astro@0.14.1)(prettier@3.3.3)(typescript@5.5.4) '@astrojs/mdx': specifier: ^3.1.7 version: 3.1.7(astro@4.15.9(@types/node@22.6.1)(less@4.2.0)(rollup@4.22.4)(sass@1.77.6)(terser@5.31.6)(typescript@5.5.4)) @@ -1211,6 +1220,15 @@ packages: resolution: {integrity: sha512-boghen8F0Q8D+0/Q1/1r6DUEieUJ8w2a1gIknExMSHBsJFOr2+0KUfHiVYBvucPwl3+RU5PFBK833FjFCh3BhA==} engines: {node: '>=14.17.0'} + '@dprint/formatter@0.3.0': + resolution: {integrity: sha512-N9fxCxbaBOrDkteSOzaCqwWjso5iAe+WJPsHC021JfHNj2ThInPNEF13ORDKta3llq5D1TlclODCvOvipH7bWQ==} + + '@dprint/markdown@0.17.8': + resolution: {integrity: sha512-ukHFOg+RpG284aPdIg7iPrCYmMs3Dqy43S1ejybnwlJoFiW02b+6Bbr5cfZKFRYNP3dKGM86BqHEnMzBOyLvvA==} + + '@dprint/toml@0.6.3': + resolution: {integrity: sha512-zQ42I53sb4WVHA+5yoY1t59Zk++Ot02AvUgtNKLzTT8mPyVqVChFcePa3on/xIoKEgH+RoepgPHzqfk9837YFw==} + '@emmetio/abbreviation@2.3.3': resolution: {integrity: sha512-mgv58UrU3rh4YgbE/TzgLQwJ3pFsHHhCLqY20aJq+9comytTXUDNGG/SMtSeMJdkpxgXSXunBGLD8Boka3JyVA==} @@ -2214,6 +2232,11 @@ packages: resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@prettier/plugin-xml@3.4.1': + resolution: {integrity: sha512-Uf/6/+9ez6z/IvZErgobZ2G9n1ybxF5BhCd7eMcKqfoWuOzzNUxBipNo3QAP8kRC1VD18TIo84no7LhqtyDcTg==} + peerDependencies: + prettier: ^3.0.0 + '@radix-ng/primitives@0.13.0': resolution: {integrity: sha512-SSfzRqVRxLLCSpygn6romWndMFZCmzISVOnVl4Hk7HQA4uh/aFT1F85OZwW5Wc+l3x4ydKkpJ9dmN9UXmubYOQ==} peerDependencies: @@ -2782,6 +2805,9 @@ packages: '@webassemblyjs/wast-printer@1.12.1': resolution: {integrity: sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==} + '@xml-tools/parser@1.0.11': + resolution: {integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==} + '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -3173,6 +3199,9 @@ packages: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} + chevrotain@7.1.1: + resolution: {integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==} + chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -3785,6 +3814,11 @@ packages: eslint-flat-config-utils@0.3.1: resolution: {integrity: sha512-eFT3EaoJN1hlN97xw4FIEX//h0TiFUobgl2l5uLkIwhVN9ahGq95Pbs+i1/B5UACA78LO3rco3JzuvxLdTUOPA==} + eslint-formatting-reporter@0.0.0: + resolution: {integrity: sha512-k9RdyTqxqN/wNYVaTk/ds5B5rA8lgoAmvceYN7bcZMBwU7TuXx5ntewJv81eF3pIL/CiJE+pJZm36llG8yhyyw==} + peerDependencies: + eslint: '>=8.40.0' + eslint-import-resolver-node@0.3.9: resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} @@ -3793,6 +3827,9 @@ packages: peerDependencies: eslint: '*' + eslint-parser-plain@0.1.0: + resolution: {integrity: sha512-oOeA6FWU0UJT/Rxc3XF5Cq0nbIZbylm7j8+plqq0CZoE6m4u32OXJrR+9iy4srGMmF6v6pmgvP1zPxSRIGh3sg==} + eslint-plugin-antfu@2.5.0: resolution: {integrity: sha512-YLIWE22/ERe6Jpqt6bJdvALw8SWvf4x2DQjvVpRvAv8LrdHbwWckkoueAf8oQFgSOLsL1R/axa+exjpubPp0fw==} peerDependencies: @@ -3815,6 +3852,11 @@ packages: peerDependencies: eslint: '>=8' + eslint-plugin-format@0.1.2: + resolution: {integrity: sha512-ZrcO3aiumgJ6ENAv65IWkPjtW77ML/5mp0YrRK0jdvvaZJb+4kKWbaQTMr/XbJo6CtELRmCApAziEKh7L2NbdQ==} + peerDependencies: + eslint: ^8.40.0 || ^9.0.0 + eslint-plugin-import-x@4.2.1: resolution: {integrity: sha512-WWi2GedccIJa0zXxx3WDnTgouGQTtdYK1nhXMwywbqqAgB0Ov+p1pYBsWh3VaB0bvBOwLse6OfVII7jZD9xo5Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -4048,6 +4090,9 @@ packages: fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} @@ -6028,6 +6073,14 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + + prettier-plugin-astro@0.14.1: + resolution: {integrity: sha512-RiBETaaP9veVstE4vUwSIcdATj6dKmXljouXc/DDNwBSPTp8FRkLGDSGFClKsAFeeg+13SB0Z1JZvbD76bigJw==} + engines: {node: ^14.15.0 || >=16.0.0} + prettier@2.8.7: resolution: {integrity: sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==} engines: {node: '>=10.13.0'} @@ -6167,6 +6220,9 @@ packages: resolution: {integrity: sha512-sZuz1dYW/ZsfG17WSAG7eS85r5a0dDsvg+7BiiYR5o6lKCAtUrEwdmRmaGF6rwVj3LcmAeYkOWKEPlbPzN3Y3A==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + regexp-to-ast@0.5.0: + resolution: {integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==} + regexp-tree@0.1.27: resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==} hasBin: true @@ -6321,6 +6377,9 @@ packages: rxjs@7.8.1: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} + s.color@0.0.15: + resolution: {integrity: sha512-AUNrbEUHeKY8XsYr/DYpl+qk5+aM+DChopnWOPEzn8YKzOhv4l2zH6LzZms3tOZP3wwdOyc0RmTciyi46HLIuA==} + safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} @@ -6330,6 +6389,9 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + sass-formatter@0.7.9: + resolution: {integrity: sha512-CWZ8XiSim+fJVG0cFLStwDvft1VI7uvXdCNJYXhDvowiv+DsbD1nXLiQ4zrE5UBvj5DWZJ93cwN0NX5PMsr1Pw==} + sass-loader@16.0.0: resolution: {integrity: sha512-n13Z+3rU9A177dk4888czcVFiC8CL9dii4qpXWUg3YIIgZEvi9TCFKjOQcbK0kJM7DJu9VucrZFddvNfYCPwtw==} engines: {node: '>= 18.12.0'} @@ -6693,6 +6755,9 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true + suf-log@2.5.3: + resolution: {integrity: sha512-KvC8OPjzdNOe+xQ4XWJV2whQA0aM1kGVczMQ8+dStAO6KfEB140JEVQ9dE76ONZ0/Ylf67ni4tILPJB41U0eow==} + supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -7864,7 +7929,7 @@ snapshots: tslib: 2.8.0 xhr2: 0.2.1 - '@antfu/eslint-config@3.3.2(@typescript-eslint/utils@8.4.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(@vue/compiler-sfc@3.3.10)(astro-eslint-parser@1.0.3(typescript@5.5.4))(eslint-plugin-astro@1.2.4(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4)(vitest@2.0.5(@types/node@22.6.1)(less@4.2.0)(sass@1.77.6)(terser@5.31.6))': + '@antfu/eslint-config@3.3.2(@prettier/plugin-xml@3.4.1(prettier@3.3.3))(@typescript-eslint/utils@8.4.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(@vue/compiler-sfc@3.3.10)(astro-eslint-parser@1.0.3(typescript@5.5.4))(eslint-plugin-astro@1.2.4(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4))(eslint-plugin-format@0.1.2(eslint@9.9.1(jiti@2.3.3)))(eslint@9.9.1(jiti@2.3.3))(prettier-plugin-astro@0.14.1)(typescript@5.5.4)(vitest@2.0.5(@types/node@22.6.1)(less@4.2.0)(sass@1.77.6)(terser@5.31.6))': dependencies: '@antfu/install-pkg': 0.4.1 '@clack/prompts': 0.7.0 @@ -7903,8 +7968,11 @@ snapshots: yaml-eslint-parser: 1.2.3 yargs: 17.7.2 optionalDependencies: + '@prettier/plugin-xml': 3.4.1(prettier@3.3.3) astro-eslint-parser: 1.0.3(typescript@5.5.4) eslint-plugin-astro: 1.2.4(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4) + eslint-plugin-format: 0.1.2(eslint@9.9.1(jiti@2.3.3)) + prettier-plugin-astro: 0.14.1 transitivePeerDependencies: - '@typescript-eslint/utils' - '@vue/compiler-sfc' @@ -7922,9 +7990,9 @@ snapshots: '@antfu/utils@0.7.10': {} - '@astrojs/check@0.9.3(prettier@3.3.3)(typescript@5.5.4)': + '@astrojs/check@0.9.3(prettier-plugin-astro@0.14.1)(prettier@3.3.3)(typescript@5.5.4)': dependencies: - '@astrojs/language-server': 2.14.2(prettier@3.3.3)(typescript@5.5.4) + '@astrojs/language-server': 2.14.2(prettier-plugin-astro@0.14.1)(prettier@3.3.3)(typescript@5.5.4) chokidar: 3.6.0 fast-glob: 3.3.2 kleur: 4.1.5 @@ -7938,7 +8006,7 @@ snapshots: '@astrojs/internal-helpers@0.4.1': {} - '@astrojs/language-server@2.14.2(prettier@3.3.3)(typescript@5.5.4)': + '@astrojs/language-server@2.14.2(prettier-plugin-astro@0.14.1)(prettier@3.3.3)(typescript@5.5.4)': dependencies: '@astrojs/compiler': 2.10.3 '@astrojs/yaml2ts': 0.2.1 @@ -7961,6 +8029,7 @@ snapshots: vscode-uri: 3.0.8 optionalDependencies: prettier: 3.3.3 + prettier-plugin-astro: 0.14.1 transitivePeerDependencies: - typescript @@ -8876,6 +8945,12 @@ snapshots: '@discoveryjs/json-ext@0.6.1': {} + '@dprint/formatter@0.3.0': {} + + '@dprint/markdown@0.17.8': {} + + '@dprint/toml@0.6.3': {} + '@emmetio/abbreviation@2.3.3': dependencies: '@emmetio/scanner': 1.0.4 @@ -9650,6 +9725,11 @@ snapshots: '@pkgr/core@0.1.1': {} + '@prettier/plugin-xml@3.4.1(prettier@3.3.3)': + dependencies: + '@xml-tools/parser': 1.0.11 + prettier: 3.3.3 + '@radix-ng/primitives@0.13.0(@angular/cdk@18.2.9(@angular/common@18.2.8(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))': dependencies: '@angular/cdk': 18.2.9(@angular/common@18.2.8(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/core@18.2.8(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1) @@ -10362,6 +10442,10 @@ snapshots: '@webassemblyjs/ast': 1.12.1 '@xtuc/long': 4.2.2 + '@xml-tools/parser@1.0.11': + dependencies: + chevrotain: 7.1.1 + '@xtuc/ieee754@1.2.0': {} '@xtuc/long@4.2.2': {} @@ -10875,6 +10959,10 @@ snapshots: check-error@2.1.1: {} + chevrotain@7.1.1: + dependencies: + regexp-to-ast: 0.5.0 + chokidar@3.6.0: dependencies: anymatch: 3.1.3 @@ -11558,6 +11646,11 @@ snapshots: '@types/eslint': 9.6.1 pathe: 1.1.2 + eslint-formatting-reporter@0.0.0(eslint@9.9.1(jiti@2.3.3)): + dependencies: + eslint: 9.9.1(jiti@2.3.3) + prettier-linter-helpers: 1.0.0 + eslint-import-resolver-node@0.3.9: dependencies: debug: 3.2.7 @@ -11570,6 +11663,8 @@ snapshots: dependencies: eslint: 9.9.1(jiti@2.3.3) + eslint-parser-plain@0.1.0: {} + eslint-plugin-antfu@2.5.0(eslint@9.9.1(jiti@2.3.3)): dependencies: '@antfu/utils': 0.7.10 @@ -11602,6 +11697,17 @@ snapshots: eslint: 9.9.1(jiti@2.3.3) eslint-compat-utils: 0.5.0(eslint@9.9.1(jiti@2.3.3)) + eslint-plugin-format@0.1.2(eslint@9.9.1(jiti@2.3.3)): + dependencies: + '@dprint/formatter': 0.3.0 + '@dprint/markdown': 0.17.8 + '@dprint/toml': 0.6.3 + eslint: 9.9.1(jiti@2.3.3) + eslint-formatting-reporter: 0.0.0(eslint@9.9.1(jiti@2.3.3)) + eslint-parser-plain: 0.1.0 + prettier: 3.3.3 + synckit: 0.9.1 + eslint-plugin-import-x@4.2.1(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4): dependencies: '@typescript-eslint/utils': 8.4.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.5.4) @@ -11977,6 +12083,8 @@ snapshots: fast-deep-equal@3.1.3: {} + fast-diff@1.3.0: {} + fast-glob@3.3.2: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -14388,11 +14496,20 @@ snapshots: prelude-ls@1.2.1: {} + prettier-linter-helpers@1.0.0: + dependencies: + fast-diff: 1.3.0 + + prettier-plugin-astro@0.14.1: + dependencies: + '@astrojs/compiler': 2.10.3 + prettier: 3.3.3 + sass-formatter: 0.7.9 + prettier@2.8.7: optional: true - prettier@3.3.3: - optional: true + prettier@3.3.3: {} pretty-bytes@6.1.1: {} @@ -14522,6 +14639,8 @@ snapshots: '@eslint-community/regexpp': 4.11.0 refa: 0.12.1 + regexp-to-ast@0.5.0: {} + regexp-tree@0.1.27: {} regexpu-core@5.3.2: @@ -14743,12 +14862,18 @@ snapshots: dependencies: tslib: 2.8.0 + s.color@0.0.15: {} + safe-buffer@5.1.2: {} safe-buffer@5.2.1: {} safer-buffer@2.1.2: {} + sass-formatter@0.7.9: + dependencies: + suf-log: 2.5.3 + sass-loader@16.0.0(sass@1.77.6)(webpack@5.94.0(esbuild@0.23.0)): dependencies: neo-async: 2.6.2 @@ -15198,6 +15323,10 @@ snapshots: pirates: 4.0.6 ts-interface-checker: 0.1.13 + suf-log@2.5.3: + dependencies: + s.color: 0.0.15 + supports-color@5.5.0: dependencies: has-flag: 3.0.0