fulldev-ui 0.9.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +100 -16
- package/package.json +3 -2
- package/public/r/accordion.json +3 -5
- package/public/r/alert-dialog.json +1 -1
- package/public/r/alert.json +0 -5
- package/public/r/article-1.json +1 -1
- package/public/r/article-2.json +1 -1
- package/public/r/articles-1.json +1 -1
- package/public/r/articles-2.json +1 -1
- package/public/r/articles-3.json +1 -1
- package/public/r/avatar.json +1 -16
- package/public/r/badge.json +1 -1
- package/public/r/banner-1.json +5 -3
- package/public/r/banner-2.json +1 -1
- package/public/r/banner.json +5 -3
- package/public/r/blocks-1.json +6 -3
- package/public/r/breadcrumb.json +4 -4
- package/public/r/button.json +1 -1
- package/public/r/card.json +4 -4
- package/public/r/carousel.json +5 -5
- package/public/r/checkbox.json +1 -1
- package/public/r/combobox.json +8 -8
- package/public/r/command.json +6 -6
- package/public/r/components.json +1 -7
- package/public/r/contact-1.json +4 -2
- package/public/r/contact-2.json +4 -2
- package/public/r/contact-3.json +11 -3
- package/public/r/content-1.json +11 -3
- package/public/r/content-2.json +11 -3
- package/public/r/content-3.json +7 -1
- package/public/r/content-4.json +11 -3
- package/public/r/cta-2.json +7 -1
- package/public/r/cta-4.json +7 -1
- package/public/r/cta-5.json +11 -3
- package/public/r/cta-6.json +7 -1
- package/public/r/dialog.json +6 -6
- package/public/r/doc-1.json +6 -3
- package/public/r/dropdown-menu.json +9 -11
- package/public/r/features-1.json +5 -3
- package/public/r/features-2.json +5 -3
- package/public/r/features-4.json +5 -3
- package/public/r/features-5.json +4 -2
- package/public/r/field.json +2 -7
- package/public/r/footer-1.json +5 -3
- package/public/r/footer-2.json +5 -3
- package/public/r/footer-3.json +5 -3
- package/public/r/header-1.json +1 -1
- package/public/r/header.json +3 -0
- package/public/r/hero-13.json +1 -1
- package/public/r/hero-4.json +5 -3
- package/public/r/hero-5.json +5 -3
- package/public/r/hero-6.json +5 -3
- package/public/r/hero-7.json +5 -3
- package/public/r/hero-8.json +1 -1
- package/public/r/hero-9.json +5 -3
- package/public/r/hover-card.json +2 -2
- package/public/r/icon.json +1 -1
- package/public/r/input-group.json +1 -1
- package/public/r/item.json +2 -20
- package/public/r/kbd.json +2 -2
- package/public/r/layout.json +4 -7
- package/public/r/links-2.json +5 -3
- package/public/r/marquee.json +1 -1
- package/public/r/native-select.json +3 -3
- package/public/r/navigation-menu.json +6 -8
- package/public/r/page.json +17 -0
- package/public/r/popover.json +1 -1
- package/public/r/pricing-1.json +5 -3
- package/public/r/pricing-2.json +5 -3
- package/public/r/pricing-3.json +5 -3
- package/public/r/products-1.json +1 -1
- package/public/r/products-4.json +1 -1
- package/public/r/products-5.json +1 -1
- package/public/r/radio-group.json +1 -1
- package/public/r/rating.json +3 -3
- package/public/r/registry.json +186 -450
- package/public/r/reviews-1.json +5 -3
- package/public/r/reviews-2.json +5 -3
- package/public/r/reviews-3.json +5 -3
- package/public/r/reviews-4.json +1 -1
- package/public/r/reviews-5.json +5 -3
- package/public/r/select.json +6 -8
- package/public/r/services-1.json +11 -3
- package/public/r/services-2.json +7 -1
- package/public/r/services-3.json +7 -1
- package/public/r/services-4.json +11 -3
- package/public/r/services-5.json +5 -3
- package/public/r/services-6.json +11 -3
- package/public/r/services-7.json +11 -3
- package/public/r/sheet.json +6 -3
- package/public/r/sidebar-1.json +4 -2
- package/public/r/sidebar.json +10 -7
- package/public/r/slider.json +1 -1
- package/public/r/spinner.json +3 -3
- package/public/r/switch.json +1 -1
- package/public/r/theme-toggle.json +5 -3
- package/public/r/tooltip.json +1 -1
- package/public/r/typography.json +16 -16
- package/public/r/video.json +1 -1
- package/registry.json +186 -450
- package/src/components/blocks/article-1.astro +1 -1
- package/src/components/blocks/article-2.astro +1 -1
- package/src/components/blocks/articles-1.astro +1 -1
- package/src/components/blocks/articles-2.astro +2 -2
- package/src/components/blocks/articles-3.astro +1 -1
- package/src/components/blocks/banner-1.astro +3 -5
- package/src/components/blocks/banner-2.astro +1 -1
- package/src/components/blocks/blocks-1.astro +25 -37
- package/src/components/blocks/contact-3.astro +4 -3
- package/src/components/blocks/content-1.astro +5 -4
- package/src/components/blocks/content-2.astro +6 -5
- package/src/components/blocks/content-3.astro +9 -2
- package/src/components/blocks/content-4.astro +6 -5
- package/src/components/blocks/cta-2.astro +4 -3
- package/src/components/blocks/cta-4.astro +3 -2
- package/src/components/blocks/cta-5.astro +6 -5
- package/src/components/blocks/cta-6.astro +4 -3
- package/src/components/blocks/doc-1.astro +28 -56
- package/src/components/blocks/features-1.astro +3 -1
- package/src/components/blocks/features-2.astro +4 -2
- package/src/components/blocks/features-4.astro +3 -1
- package/src/components/blocks/footer-1.astro +26 -12
- package/src/components/blocks/footer-2.astro +24 -12
- package/src/components/blocks/footer-3.astro +26 -12
- package/src/components/blocks/header-1.astro +2 -3
- package/src/components/blocks/hero-13.astro +1 -1
- package/src/components/blocks/hero-4.astro +2 -2
- package/src/components/blocks/hero-5.astro +3 -3
- package/src/components/blocks/hero-6.astro +3 -3
- package/src/components/blocks/hero-7.astro +3 -3
- package/src/components/blocks/hero-8.astro +1 -1
- package/src/components/blocks/hero-9.astro +2 -2
- package/src/components/blocks/links-2.astro +3 -5
- package/src/components/blocks/pricing-1.astro +3 -2
- package/src/components/blocks/pricing-2.astro +3 -2
- package/src/components/blocks/pricing-3.astro +3 -2
- package/src/components/blocks/products-1.astro +1 -1
- package/src/components/blocks/products-4.astro +2 -2
- package/src/components/blocks/products-5.astro +4 -4
- package/src/components/blocks/reviews-1.astro +2 -2
- package/src/components/blocks/reviews-2.astro +2 -2
- package/src/components/blocks/reviews-3.astro +2 -2
- package/src/components/blocks/reviews-4.astro +4 -4
- package/src/components/blocks/reviews-5.astro +16 -25
- package/src/components/blocks/services-1.astro +7 -9
- package/src/components/blocks/services-2.astro +5 -4
- package/src/components/blocks/services-3.astro +6 -5
- package/src/components/blocks/services-4.astro +7 -9
- package/src/components/blocks/services-5.astro +3 -4
- package/src/components/blocks/services-6.astro +7 -6
- package/src/components/blocks/services-7.astro +7 -9
- package/src/components/blocks/sidebar-1.astro +42 -97
- package/src/components/ui/accordion/accordion-trigger.astro +7 -8
- package/src/components/ui/alert-dialog/alert-dialog.astro +23 -3
- package/src/components/ui/avatar/avatar.astro +1 -1
- package/src/components/ui/badge/badge.astro +1 -0
- package/src/components/ui/banner/banner-container.astro +3 -3
- package/src/components/ui/breadcrumb/breadcrumb-ellipsis.astro +2 -2
- package/src/components/ui/breadcrumb/breadcrumb-separator.astro +2 -2
- package/src/components/ui/button/button-variants.ts +8 -7
- package/src/components/ui/card/card-content.astro +1 -1
- package/src/components/ui/card/card-footer.astro +1 -1
- package/src/components/ui/card/card-header.astro +1 -1
- package/src/components/ui/card/card.astro +1 -1
- package/src/components/ui/carousel/carousel-next.astro +3 -3
- package/src/components/ui/carousel/carousel-previous.astro +3 -3
- package/src/components/ui/checkbox/checkbox.astro +1 -1
- package/src/components/ui/combobox/combobox-input.astro +2 -2
- package/src/components/ui/combobox/combobox-item.astro +4 -4
- package/src/components/ui/combobox/combobox-list.astro +1 -1
- package/src/components/ui/combobox/combobox-trigger.astro +2 -5
- package/src/components/ui/combobox/combobox.astro +3 -0
- package/src/components/ui/command/command-dialog.astro +10 -10
- package/src/components/ui/command/command-input.astro +2 -2
- package/src/components/ui/command/command-item.astro +4 -5
- package/src/components/ui/dialog/dialog-close.astro +2 -2
- package/src/components/ui/dialog/dialog-content.astro +2 -2
- package/src/components/ui/dialog/dialog.astro +26 -3
- package/src/components/ui/dropdown-menu/dropdown-menu-checkbox-item.astro +4 -5
- package/src/components/ui/dropdown-menu/dropdown-menu-content.astro +4 -4
- package/src/components/ui/dropdown-menu/dropdown-menu-item.astro +1 -1
- package/src/components/ui/dropdown-menu/dropdown-menu-label.astro +1 -1
- package/src/components/ui/dropdown-menu/dropdown-menu-radio-item.astro +4 -5
- package/src/components/ui/dropdown-menu/dropdown-menu-shortcut.astro +1 -1
- package/src/components/ui/dropdown-menu/dropdown-menu.astro +3 -0
- package/src/components/ui/field/field-label.astro +1 -1
- package/src/components/ui/field/field-title.astro +1 -1
- package/src/components/ui/hover-card/hover-card-content.astro +4 -4
- package/src/components/ui/hover-card/hover-card.astro +2 -2
- package/src/components/ui/icon/icon.astro +8 -17
- package/src/components/ui/input-group/input-group-button.astro +0 -1
- package/src/components/ui/item/item-media.astro +1 -1
- package/src/components/ui/item/item.astro +0 -18
- package/src/components/ui/kbd/kbd-group.astro +1 -1
- package/src/components/ui/kbd/kbd.astro +1 -1
- package/src/components/ui/layout/layout-body.astro +1 -1
- package/src/components/ui/layout/layout-head.astro +3 -2
- package/src/components/ui/layout/layout-main.astro +1 -1
- package/src/components/ui/layout/layout.astro +4 -0
- package/src/components/ui/marquee/marquee.astro +50 -69
- package/src/components/ui/native-select/native-select.astro +2 -3
- package/src/components/ui/navigation-menu/navigation-menu-content.astro +1 -1
- package/src/components/ui/navigation-menu/navigation-menu-list.astro +1 -1
- package/src/components/ui/navigation-menu/navigation-menu-trigger.astro +2 -3
- package/src/components/ui/navigation-menu/navigation-menu.astro +1 -1
- package/src/components/ui/popover/popover-content.astro +1 -1
- package/src/components/ui/radio-group/radio-group-item.astro +3 -3
- package/src/components/ui/rating/rating.astro +3 -3
- package/src/components/ui/select/select-content.astro +1 -1
- package/src/components/ui/select/select-item.astro +4 -4
- package/src/components/ui/select/select-trigger.astro +3 -6
- package/src/components/ui/select/select.astro +6 -0
- package/src/components/ui/sheet/sheet-content.astro +4 -5
- package/src/components/ui/sidebar/sidebar-menu-button.astro +13 -10
- package/src/components/ui/sidebar/sidebar-menu-sub-button.astro +10 -8
- package/src/components/ui/sidebar/sidebar-provider.astro +1 -13
- package/src/components/ui/sidebar/sidebar-rail.astro +1 -1
- package/src/components/ui/sidebar/sidebar-trigger.astro +3 -3
- package/src/components/ui/sidebar/sidebar.astro +1 -1
- package/src/components/ui/slider/slider.astro +6 -4
- package/src/components/ui/spinner/spinner.astro +4 -4
- package/src/components/ui/switch/switch.astro +1 -1
- package/src/components/ui/theme-toggle/theme-toggle.astro +4 -3
- package/src/components/ui/tooltip/tooltip-content.astro +1 -1
- package/src/components/ui/typography/typography-a.astro +19 -4
- package/src/components/ui/typography/typography-blockquote.astro +26 -6
- package/src/components/ui/typography/typography-h1.astro +7 -9
- package/src/components/ui/typography/typography-h2.astro +12 -9
- package/src/components/ui/typography/typography-h3.astro +7 -9
- package/src/components/ui/typography/typography-h4.astro +7 -9
- package/src/components/ui/typography/typography-inline-code.astro +28 -12
- package/src/components/ui/typography/typography-lead.astro +29 -4
- package/src/components/ui/typography/typography-list-item.astro +25 -9
- package/src/components/ui/typography/typography-list.astro +29 -11
- package/src/components/ui/typography/typography-p.astro +26 -6
- package/src/components/ui/typography/typography-table-cell.astro +32 -13
- package/src/components/ui/typography/typography-table-head.astro +27 -13
- package/src/components/ui/typography/typography-table-row.astro +23 -13
- package/src/components/ui/typography/typography-table.astro +29 -20
- package/src/components/ui/typography/typography.astro +172 -46
- package/src/components/ui/video/video.astro +11 -27
- package/src/styles/global.css +2 -15
- package/public/r/beta-repo-setup.json +0 -125
- package/public/r/blocks.json +0 -91
- package/public/r/content-5.json +0 -17
- package/public/r/content-6.json +0 -17
- package/public/r/gradient.json +0 -17
- package/public/r/init.json +0 -23
- package/public/r/tile.json +0 -27
- package/src/components/blocks/content-5.astro +0 -115
- package/src/components/blocks/content-6.astro +0 -91
- package/src/components/ui/gradient/gradient.astro +0 -45
- package/src/components/ui/gradient/index.ts +0 -1
- package/src/components/ui/tile/index.ts +0 -3
- package/src/components/ui/tile/tile-content.astro +0 -17
- package/src/components/ui/tile/tile-group.astro +0 -76
- package/src/components/ui/tile/tile.astro +0 -46
package/public/r/typography.json
CHANGED
|
@@ -4,82 +4,82 @@
|
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
6
|
"path": "src/components/ui/typography/typography.astro",
|
|
7
|
-
"content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype
|
|
7
|
+
"content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag; size?: Size }>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"typography\"\n data-size={size}\n class={cn(\"text-foreground text-base\", className)}\n {...props}\n>\n <slot />\n</Tag>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography\"]\n > :is(\n [data-slot=\"typography-lead\"],\n [data-slot=\"typography-table-container\"],\n div,\n section,\n article,\n aside,\n nav,\n figure,\n details,\n pre,\n small,\n dl,\n img,\n picture,\n video,\n iframe\n ):not(:first-child) {\n @apply mt-6;\n }\n\n [data-slot=\"typography\"] > h1 {\n @apply scroll-m-20 text-4xl font-semibold tracking-tight text-balance;\n }\n\n [data-slot=\"typography\"] > h2 {\n @apply scroll-m-20 text-3xl font-semibold tracking-tight;\n }\n\n [data-slot=\"typography\"] > h2:first-child {\n @apply mt-0;\n }\n\n [data-slot=\"typography\"] > h2:not(:first-child) {\n @apply mt-10;\n }\n\n [data-slot=\"typography\"] > h3 {\n @apply scroll-m-20 text-2xl font-semibold tracking-tight;\n }\n\n [data-slot=\"typography\"] > h3:not(:first-child) {\n @apply mt-8;\n }\n\n [data-slot=\"typography\"] > h4 {\n @apply scroll-m-20 text-xl font-semibold tracking-tight;\n }\n\n [data-slot=\"typography\"] > h4:not(:first-child) {\n @apply mt-8;\n }\n\n [data-slot=\"typography\"]\n > :is(h1, h2, h3, h4)\n + :is(\n [data-slot=\"typography-lead\"],\n [data-slot=\"typography-table-container\"],\n div,\n section,\n article,\n aside,\n nav,\n figure,\n details,\n p,\n blockquote,\n pre,\n ul,\n ol,\n table,\n small,\n dl,\n img,\n picture,\n video,\n iframe\n ) {\n @apply mt-4;\n }\n\n [data-slot=\"typography\"] > p {\n @apply text-base leading-7;\n }\n\n [data-slot=\"typography\"] > p:not(:first-child) {\n @apply mt-6;\n }\n\n [data-slot=\"typography\"]\n > :is(h1, h2, h3, h4)\n + :is(p, [data-slot=\"typography-lead\"]):not(:first-child) {\n @apply mt-4;\n }\n\n [data-slot=\"typography\"] > a:not([data-slot]),\n [data-slot=\"typography\"]\n > :is(p, blockquote, ul, ol, dl, table)\n a:not([data-slot]) {\n @apply text-primary font-medium underline underline-offset-4;\n }\n\n [data-slot=\"typography\"] > blockquote {\n @apply mt-6 border-l-2 pl-6 text-base italic;\n }\n\n [data-slot=\"typography\"] > hr {\n @apply border-border my-8;\n }\n\n [data-slot=\"typography\"] > pre {\n @apply border-border bg-muted/60 overflow-x-auto rounded-xl border p-4 text-sm;\n }\n\n [data-slot=\"typography\"] > .docs-code-block {\n @apply border-border bg-muted/60 relative overflow-hidden rounded-xl border;\n }\n\n [data-slot=\"typography\"] > .docs-code-block > pre,\n [data-slot=\"typography\"] > .docs-code-block > pre.astro-code {\n @apply m-0 rounded-none border-0 !bg-transparent p-4 pr-14 text-sm leading-[var(--text-sm--line-height)];\n font-family: var(--font-mono);\n }\n\n [data-slot=\"typography\"] > .docs-code-block > pre.astro-code code {\n @apply text-sm leading-[var(--text-sm--line-height)] !text-[var(--shiki-light,var(--foreground))];\n }\n\n .dark [data-slot=\"typography\"] > .docs-code-block > pre.astro-code code {\n @apply !text-[var(--shiki-dark,var(--foreground))];\n }\n\n .dark\n [data-slot=\"typography\"]\n > .docs-code-block\n > pre.astro-code\n span[style*=\"--shiki-dark\"] {\n @apply ![font-weight:var(--shiki-dark-font-weight,inherit)] !text-[var(--shiki-dark)] ![font-style:var(--shiki-dark-font-style,inherit)] ![text-decoration:var(--shiki-dark-text-decoration,inherit)];\n }\n\n [data-slot=\"typography\"] > .docs-code-block > .docs-code-copy {\n @apply border-border bg-background text-muted-foreground hover:bg-accent hover:text-accent-foreground absolute top-3 right-3 z-10 inline-flex size-8 items-center justify-center rounded-md border shadow-sm transition-colors;\n }\n\n [data-slot=\"typography\"] > .docs-code-block svg {\n @apply size-4;\n }\n\n [data-slot=\"typography\"] > ul,\n [data-slot=\"typography\"] > ol {\n @apply my-6 ml-6 text-base;\n }\n\n [data-slot=\"typography\"] > ul {\n @apply list-disc;\n }\n\n [data-slot=\"typography\"] > ol {\n @apply list-decimal;\n }\n\n [data-slot=\"typography\"] > ul > li,\n [data-slot=\"typography\"] > ol > li {\n @apply mt-2;\n }\n\n [data-slot=\"typography\"] > [data-slot=\"typography-lead\"] {\n @apply text-muted-foreground;\n }\n\n [data-slot=\"typography\"][data-size=\"sm\"] > [data-slot=\"typography-lead\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography\"] > [data-slot=\"typography-lead\"],\n [data-slot=\"typography\"][data-size=\"default\"]\n > [data-slot=\"typography-lead\"] {\n @apply text-lg;\n }\n\n [data-slot=\"typography\"][data-size=\"lg\"] > [data-slot=\"typography-lead\"] {\n @apply text-xl;\n }\n\n [data-slot=\"typography\"] > small {\n @apply block leading-none font-medium;\n }\n\n [data-slot=\"typography\"] > small {\n @apply text-sm;\n }\n\n [data-slot=\"typography\"] > table {\n @apply border-border my-6 block w-full overflow-x-auto rounded-lg border;\n border-collapse: separate;\n border-spacing: 0;\n }\n\n [data-slot=\"typography\"] > table th,\n [data-slot=\"typography\"] > table td {\n @apply border-border border-b px-4 py-2 text-left align-top whitespace-nowrap;\n }\n\n [data-slot=\"typography\"] > table th {\n @apply text-foreground bg-muted/40 font-medium;\n }\n\n [data-slot=\"typography\"] > table tr:last-child td {\n @apply border-b-0;\n }\n\n [data-slot=\"typography\"] > table thead,\n [data-slot=\"typography\"] > table tbody,\n [data-slot=\"typography\"] > table tr {\n @apply w-full;\n }\n\n [data-slot=\"typography\"] > table tr {\n @apply grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_minmax(0,1fr)];\n }\n\n [data-slot=\"typography\"] > table tr {\n @apply even:bg-muted/40 m-0 border-t p-0 first:border-t-0;\n }\n\n [data-slot=\"typography\"] > table th {\n @apply border-r px-4 py-2 text-left font-bold last:border-r-0;\n }\n\n [data-slot=\"typography\"] > table th[align=\"center\"] {\n @apply text-center;\n }\n\n [data-slot=\"typography\"] > table th[align=\"right\"] {\n @apply text-right;\n }\n\n [data-slot=\"typography\"] > table td {\n @apply border-r px-4 py-2 text-left last:border-r-0;\n }\n\n [data-slot=\"typography\"] > table td[align=\"center\"] {\n @apply text-center;\n }\n\n [data-slot=\"typography\"] > table td[align=\"right\"] {\n @apply text-right;\n }\n\n [data-slot=\"typography\"] > table tbody tr:last-child td {\n @apply border-b-0;\n }\n\n [data-slot=\"typography\"] :not(pre) > code {\n @apply bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold;\n }\n\n [data-slot=\"typography\"] > table :not(pre) > code {\n @apply rounded-md text-sm leading-5 font-normal;\n }\n\n [data-slot=\"typography\"] > pre.astro-code {\n @apply border-border !bg-muted/60 rounded-xl border p-4 text-sm leading-[var(--text-sm--line-height)];\n }\n\n [data-slot=\"typography\"] > pre.astro-code code {\n @apply !text-inherit;\n }\n\n .dark [data-slot=\"typography\"] > pre.astro-code {\n @apply !text-[var(--shiki-dark,var(--foreground))];\n }\n\n .dark [data-slot=\"typography\"] > pre.astro-code span[style*=\"--shiki-dark\"] {\n @apply ![font-weight:var(--shiki-dark-font-weight,inherit)] !text-[var(--shiki-dark)] ![font-style:var(--shiki-dark-font-style,inherit)] ![text-decoration:var(--shiki-dark-text-decoration,inherit)];\n }\n</style>\n",
|
|
8
8
|
"type": "registry:ui"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"path": "src/components/ui/typography/typography-a.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"a\"
|
|
12
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"a\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<a data-slot=\"typography-a\" data-size={size} class={cn(className)} {...props}>\n <slot />\n</a>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-a\"],\n [data-slot=\"typography\"] > a:not([data-slot]) {\n @apply text-primary font-medium underline underline-offset-4;\n }\n\n [data-slot=\"typography-a\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-a\"][data-size=\"default\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography-a\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n</style>\n",
|
|
13
13
|
"type": "registry:ui"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"path": "src/components/ui/typography/typography-blockquote.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"blockquote\"
|
|
17
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"blockquote\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<blockquote\n data-slot=\"typography-blockquote\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</blockquote>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-blockquote\"],\n [data-slot=\"typography\"] > blockquote {\n @apply mt-6 border-l-2 pl-6 italic;\n }\n\n [data-slot=\"typography-blockquote\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-blockquote\"][data-size=\"default\"],\n [data-slot=\"typography\"] > blockquote {\n @apply text-base;\n }\n\n [data-slot=\"typography-blockquote\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n</style>\n",
|
|
18
18
|
"type": "registry:ui"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"path": "src/components/ui/typography/typography-h1.astro",
|
|
22
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype
|
|
22
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h1\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<h1 data-slot=\"typography-h1\" data-size={size} class={cn(className)} {...props}>\n <slot />\n</h1>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-h1\"],\n [data-slot=\"typography\"] > h1 {\n @apply scroll-m-20 font-semibold tracking-tight text-balance;\n }\n\n [data-slot=\"typography-h1\"][data-size=\"sm\"],\n [data-slot=\"typography\"][data-size=\"sm\"] > h1 {\n @apply text-3xl;\n }\n\n [data-slot=\"typography-h1\"][data-size=\"default\"],\n [data-slot=\"typography\"] > h1,\n [data-slot=\"typography\"][data-size=\"default\"] > h1 {\n @apply text-4xl;\n }\n\n [data-slot=\"typography-h1\"][data-size=\"lg\"],\n [data-slot=\"typography\"][data-size=\"lg\"] > h1 {\n @apply text-5xl;\n }\n</style>\n",
|
|
23
23
|
"type": "registry:ui"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"path": "src/components/ui/typography/typography-h2.astro",
|
|
27
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype
|
|
27
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h2\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<h2 data-slot=\"typography-h2\" data-size={size} class={cn(className)} {...props}>\n <slot />\n</h2>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-h2\"],\n [data-slot=\"typography\"] > h2 {\n @apply scroll-m-20 font-semibold tracking-tight;\n }\n\n [data-slot=\"typography-h2\"][data-size=\"sm\"],\n [data-slot=\"typography\"][data-size=\"sm\"] > h2 {\n @apply text-2xl;\n }\n\n [data-slot=\"typography-h2\"][data-size=\"default\"],\n [data-slot=\"typography\"] > h2,\n [data-slot=\"typography\"][data-size=\"default\"] > h2 {\n @apply text-3xl;\n }\n\n [data-slot=\"typography-h2\"][data-size=\"lg\"],\n [data-slot=\"typography\"][data-size=\"lg\"] > h2 {\n @apply text-4xl;\n }\n\n [data-slot=\"typography-h2\"]:first-child,\n [data-slot=\"typography\"] > h2:first-child {\n @apply mt-0;\n }\n</style>\n",
|
|
28
28
|
"type": "registry:ui"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"path": "src/components/ui/typography/typography-h3.astro",
|
|
32
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype
|
|
32
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h3\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<h3 data-slot=\"typography-h3\" data-size={size} class={cn(className)} {...props}>\n <slot />\n</h3>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-h3\"],\n [data-slot=\"typography\"] > h3 {\n @apply scroll-m-20 font-semibold tracking-tight;\n }\n\n [data-slot=\"typography-h3\"][data-size=\"sm\"],\n [data-slot=\"typography\"][data-size=\"sm\"] > h3 {\n @apply text-xl;\n }\n\n [data-slot=\"typography-h3\"][data-size=\"default\"],\n [data-slot=\"typography\"] > h3,\n [data-slot=\"typography\"][data-size=\"default\"] > h3 {\n @apply text-2xl;\n }\n\n [data-slot=\"typography-h3\"][data-size=\"lg\"],\n [data-slot=\"typography\"][data-size=\"lg\"] > h3 {\n @apply text-3xl;\n }\n</style>\n",
|
|
33
33
|
"type": "registry:ui"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"path": "src/components/ui/typography/typography-h4.astro",
|
|
37
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype
|
|
37
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h4\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<h4 data-slot=\"typography-h4\" data-size={size} class={cn(className)} {...props}>\n <slot />\n</h4>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-h4\"],\n [data-slot=\"typography\"] > h4 {\n @apply scroll-m-20 font-semibold tracking-tight;\n }\n\n [data-slot=\"typography-h4\"][data-size=\"sm\"],\n [data-slot=\"typography\"][data-size=\"sm\"] > h4 {\n @apply text-lg;\n }\n\n [data-slot=\"typography-h4\"][data-size=\"default\"],\n [data-slot=\"typography\"] > h4,\n [data-slot=\"typography\"][data-size=\"default\"] > h4 {\n @apply text-xl;\n }\n\n [data-slot=\"typography-h4\"][data-size=\"lg\"],\n [data-slot=\"typography\"][data-size=\"lg\"] > h4 {\n @apply text-2xl;\n }\n</style>\n",
|
|
38
38
|
"type": "registry:ui"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"path": "src/components/ui/typography/typography-inline-code.astro",
|
|
42
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"code\"
|
|
42
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"code\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<code\n data-slot=\"typography-inline-code\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</code>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-inline-code\"],\n [data-slot=\"typography\"] :not(pre) > code {\n @apply bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono font-semibold;\n }\n\n [data-slot=\"typography-inline-code\"][data-size=\"sm\"] {\n @apply text-xs;\n }\n\n [data-slot=\"typography-inline-code\"][data-size=\"default\"],\n [data-slot=\"typography\"] :not(pre) > code {\n @apply text-sm;\n }\n\n [data-slot=\"typography-inline-code\"][data-size=\"lg\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography\"] > table :not(pre) > code {\n @apply rounded-md text-sm leading-5 font-normal;\n }\n</style>\n",
|
|
43
43
|
"type": "registry:ui"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"path": "src/components/ui/typography/typography-lead.astro",
|
|
47
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\"
|
|
47
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"p\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<p\n data-slot=\"typography-lead\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</p>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-lead\"] {\n @apply text-muted-foreground;\n }\n\n [data-slot=\"typography-lead\"][data-size=\"sm\"],\n [data-slot=\"typography\"][data-size=\"sm\"] > [data-slot=\"typography-lead\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography-lead\"][data-size=\"default\"],\n [data-slot=\"typography\"] > [data-slot=\"typography-lead\"],\n [data-slot=\"typography\"][data-size=\"default\"]\n > [data-slot=\"typography-lead\"] {\n @apply text-lg;\n }\n\n [data-slot=\"typography-lead\"][data-size=\"lg\"],\n [data-slot=\"typography\"][data-size=\"lg\"] > [data-slot=\"typography-lead\"] {\n @apply text-xl;\n }\n</style>\n",
|
|
48
48
|
"type": "registry:ui"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "src/components/ui/typography/typography-list.astro",
|
|
52
|
-
"content": "---\nimport type {
|
|
52
|
+
"content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props<Tag extends \"ul\" | \"ol\"> = Polymorphic<{ as: Tag; size?: Size }>\n\nconst {\n as: Tag = \"ul\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"typography-list\"\n data-size={size}\n data-ordered={Tag === \"ol\" ? \"\" : undefined}\n class={cn(className)}\n {...props}\n>\n <slot />\n</Tag>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-list\"],\n [data-slot=\"typography\"] > ul,\n [data-slot=\"typography\"] > ol {\n @apply my-6 ml-6;\n }\n\n [data-slot=\"typography-list\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-list\"][data-size=\"default\"],\n [data-slot=\"typography\"] > ul,\n [data-slot=\"typography\"] > ol {\n @apply text-base;\n }\n\n [data-slot=\"typography-list\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n\n [data-slot=\"typography-list\"]:not([data-ordered]),\n [data-slot=\"typography\"] > ul {\n @apply list-disc;\n }\n\n [data-slot=\"typography-list\"][data-ordered],\n [data-slot=\"typography\"] > ol {\n @apply list-decimal;\n }\n\n [data-slot=\"typography-list\"] > li {\n @apply mt-2;\n }\n</style>\n",
|
|
53
53
|
"type": "registry:ui"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"path": "src/components/ui/typography/typography-list-item.astro",
|
|
57
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"li\"
|
|
57
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"li\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<li\n data-slot=\"typography-list-item\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</li>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-list-item\"],\n [data-slot=\"typography-list\"] > li,\n [data-slot=\"typography\"] > ul > li,\n [data-slot=\"typography\"] > ol > li {\n @apply mt-2;\n }\n\n [data-slot=\"typography-list-item\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-list-item\"][data-size=\"default\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography-list-item\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n</style>\n",
|
|
58
58
|
"type": "registry:ui"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"path": "src/components/ui/typography/typography-p.astro",
|
|
62
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\"
|
|
62
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"p\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<p data-slot=\"typography-p\" data-size={size} class={cn(className)} {...props}>\n <slot />\n</p>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-p\"],\n [data-slot=\"typography\"] > p {\n @apply leading-7;\n }\n\n [data-slot=\"typography-p\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-p\"][data-size=\"default\"],\n [data-slot=\"typography\"] > p {\n @apply text-base;\n }\n\n [data-slot=\"typography-p\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n\n [data-slot=\"typography-p\"]:not(:first-child),\n [data-slot=\"typography\"] > p:not(:first-child) {\n @apply mt-6;\n }\n</style>\n",
|
|
63
63
|
"type": "registry:ui"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"path": "src/components/ui/typography/typography-table.astro",
|
|
67
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"table\"> & {\n containerClass?: string\n}\n\nconst {
|
|
67
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"table\"> & {\n containerClass?: string\n size?: Size\n}\n\nconst {\n class: className,\n containerClass,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"typography-table-container\"\n data-size={size}\n class={cn(containerClass)}\n>\n <table\n data-slot=\"typography-table\"\n data-size={size}\n class={cn(className)}\n {...props}\n >\n <slot />\n </table>\n</div>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-table-container\"] {\n @apply border-border my-6 w-full overflow-y-auto rounded-xl border;\n }\n\n [data-slot=\"typography-table\"],\n [data-slot=\"typography\"] > table {\n @apply w-full border-collapse;\n }\n\n [data-slot=\"typography-table\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-table\"][data-size=\"default\"],\n [data-slot=\"typography\"] > table {\n @apply text-base;\n }\n\n [data-slot=\"typography-table\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n</style>\n",
|
|
68
68
|
"type": "registry:ui"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"path": "src/components/ui/typography/typography-table-row.astro",
|
|
72
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"tr\"
|
|
72
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"tr\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<tr\n data-slot=\"typography-table-row\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</tr>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-table-row\"],\n [data-slot=\"typography-table\"] tr,\n [data-slot=\"typography\"] > table tr {\n @apply even:bg-muted m-0 border-t p-0;\n }\n\n [data-slot=\"typography-table-row\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-table-row\"][data-size=\"default\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography-table-row\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n</style>\n",
|
|
73
73
|
"type": "registry:ui"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"path": "src/components/ui/typography/typography-table-head.astro",
|
|
77
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"th\"
|
|
77
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"th\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<th\n data-slot=\"typography-table-head\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</th>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-table-head\"],\n [data-slot=\"typography-table\"] th,\n [data-slot=\"typography\"] > table th {\n @apply border-border border-b px-4 py-3 text-left font-semibold;\n }\n\n [data-slot=\"typography-table-head\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-table-head\"][data-size=\"default\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography-table-head\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n\n [data-slot=\"typography-table-head\"][align=\"center\"],\n [data-slot=\"typography-table\"] th[align=\"center\"],\n [data-slot=\"typography\"] > table th[align=\"center\"] {\n @apply text-center;\n }\n\n [data-slot=\"typography-table-head\"][align=\"right\"],\n [data-slot=\"typography-table\"] th[align=\"right\"],\n [data-slot=\"typography\"] > table th[align=\"right\"] {\n @apply text-right;\n }\n</style>\n",
|
|
78
78
|
"type": "registry:ui"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"path": "src/components/ui/typography/typography-table-cell.astro",
|
|
82
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"td\"
|
|
82
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"td\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<td\n data-slot=\"typography-table-cell\"\n data-size={size}\n class={cn(className)}\n {...props}\n>\n <slot />\n</td>\n\n<style is:global>\n @reference \"@/styles/global.css\";\n\n [data-slot=\"typography-table-cell\"],\n [data-slot=\"typography-table\"] td,\n [data-slot=\"typography\"] > table td {\n @apply border-border border-t px-4 py-3 text-left align-middle;\n }\n\n [data-slot=\"typography-table-cell\"][data-size=\"sm\"] {\n @apply text-sm;\n }\n\n [data-slot=\"typography-table-cell\"][data-size=\"default\"] {\n @apply text-base;\n }\n\n [data-slot=\"typography-table-cell\"][data-size=\"lg\"] {\n @apply text-lg;\n }\n\n [data-slot=\"typography-table\"] tbody tr:last-child td,\n [data-slot=\"typography\"] > table tbody tr:last-child td {\n @apply border-b-0;\n }\n\n [data-slot=\"typography-table-cell\"][align=\"center\"],\n [data-slot=\"typography-table\"] td[align=\"center\"],\n [data-slot=\"typography\"] > table td[align=\"center\"] {\n @apply text-center;\n }\n\n [data-slot=\"typography-table-cell\"][align=\"right\"],\n [data-slot=\"typography-table\"] td[align=\"right\"],\n [data-slot=\"typography\"] > table td[align=\"right\"] {\n @apply text-right;\n }\n</style>\n",
|
|
83
83
|
"type": "registry:ui"
|
|
84
84
|
},
|
|
85
85
|
{
|
package/public/r/video.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
6
|
"path": "src/components/ui/video/video.astro",
|
|
7
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"
|
|
7
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted w-full rounded-lg border\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
|
|
8
8
|
"type": "registry:ui"
|
|
9
9
|
},
|
|
10
10
|
{
|