fulldev-ui 0.25.0 → 0.25.2
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 +16 -0
- package/liquid/README.md +1 -1
- package/liquid/assets/ui-licenses.json +1 -1
- package/liquid/assets/ui-manifest.json +1 -1
- package/package.json +4 -2
- package/public/r/liquid/components.json +1 -1
- package/public/r/liquid/init.json +1 -1
- package/public/r/styles/base-luma/button-examples.json +2 -2
- package/public/r/styles/base-luma/collapsible-examples.json +1 -1
- package/public/r/styles/base-luma/combobox-examples.json +1 -1
- package/public/r/styles/base-luma/combobox.json +1 -1
- package/public/r/styles/base-luma/input-group-examples.json +2 -2
- package/public/r/styles/base-luma/item-examples.json +1 -1
- package/public/r/styles/base-luma/select.json +1 -1
- package/public/r/styles/base-luma/tabs.json +1 -1
- package/public/r/styles/base-luma/tooltip-examples.json +1 -1
- package/public/r/styles/base-lyra/button-examples.json +2 -2
- package/public/r/styles/base-lyra/collapsible-examples.json +1 -1
- package/public/r/styles/base-lyra/combobox-examples.json +1 -1
- package/public/r/styles/base-lyra/combobox.json +1 -1
- package/public/r/styles/base-lyra/input-group-examples.json +2 -2
- package/public/r/styles/base-lyra/item-examples.json +1 -1
- package/public/r/styles/base-lyra/select.json +1 -1
- package/public/r/styles/base-lyra/tabs.json +1 -1
- package/public/r/styles/base-lyra/tooltip-examples.json +1 -1
- package/public/r/styles/base-maia/button-examples.json +2 -2
- package/public/r/styles/base-maia/collapsible-examples.json +1 -1
- package/public/r/styles/base-maia/combobox-examples.json +1 -1
- package/public/r/styles/base-maia/combobox.json +1 -1
- package/public/r/styles/base-maia/input-group-examples.json +2 -2
- package/public/r/styles/base-maia/item-examples.json +1 -1
- package/public/r/styles/base-maia/select.json +1 -1
- package/public/r/styles/base-maia/tabs.json +1 -1
- package/public/r/styles/base-maia/tooltip-examples.json +1 -1
- package/public/r/styles/base-mira/button-examples.json +2 -2
- package/public/r/styles/base-mira/collapsible-examples.json +1 -1
- package/public/r/styles/base-mira/combobox-examples.json +1 -1
- package/public/r/styles/base-mira/combobox.json +1 -1
- package/public/r/styles/base-mira/input-group-examples.json +2 -2
- package/public/r/styles/base-mira/item-examples.json +1 -1
- package/public/r/styles/base-mira/select.json +1 -1
- package/public/r/styles/base-mira/tabs.json +1 -1
- package/public/r/styles/base-mira/tooltip-examples.json +1 -1
- package/public/r/styles/base-nova/button-examples.json +2 -2
- package/public/r/styles/base-nova/collapsible-examples.json +1 -1
- package/public/r/styles/base-nova/combobox-examples.json +1 -1
- package/public/r/styles/base-nova/combobox.json +1 -1
- package/public/r/styles/base-nova/input-group-examples.json +2 -2
- package/public/r/styles/base-nova/item-examples.json +1 -1
- package/public/r/styles/base-nova/select.json +1 -1
- package/public/r/styles/base-nova/tabs.json +1 -1
- package/public/r/styles/base-nova/tooltip-examples.json +1 -1
- package/public/r/styles/base-rhea/button-examples.json +2 -2
- package/public/r/styles/base-rhea/collapsible-examples.json +1 -1
- package/public/r/styles/base-rhea/combobox-examples.json +1 -1
- package/public/r/styles/base-rhea/combobox.json +1 -1
- package/public/r/styles/base-rhea/input-group-examples.json +2 -2
- package/public/r/styles/base-rhea/item-examples.json +1 -1
- package/public/r/styles/base-rhea/select.json +1 -1
- package/public/r/styles/base-rhea/tabs.json +1 -1
- package/public/r/styles/base-rhea/tooltip-examples.json +1 -1
- package/public/r/styles/base-sera/button-examples.json +2 -2
- package/public/r/styles/base-sera/collapsible-examples.json +1 -1
- package/public/r/styles/base-sera/combobox-examples.json +1 -1
- package/public/r/styles/base-sera/combobox.json +1 -1
- package/public/r/styles/base-sera/input-group-examples.json +2 -2
- package/public/r/styles/base-sera/item-examples.json +1 -1
- package/public/r/styles/base-sera/select.json +1 -1
- package/public/r/styles/base-sera/tabs.json +1 -1
- package/public/r/styles/base-sera/tooltip-examples.json +1 -1
- package/public/r/styles/base-vega/button-examples.json +2 -2
- package/public/r/styles/base-vega/collapsible-examples.json +1 -1
- package/public/r/styles/base-vega/combobox-examples.json +1 -1
- package/public/r/styles/base-vega/combobox.json +1 -1
- package/public/r/styles/base-vega/input-group-examples.json +2 -2
- package/public/r/styles/base-vega/item-examples.json +1 -1
- package/public/r/styles/base-vega/select.json +1 -1
- package/public/r/styles/base-vega/tabs.json +1 -1
- package/public/r/styles/base-vega/tooltip-examples.json +1 -1
- package/liquid/vendor.json +0 -180
- package/public/r/accordion-examples.json +0 -49
- package/public/r/accordion.json +0 -42
- package/public/r/alert-dialog-examples.json +0 -51
- package/public/r/alert-dialog.json +0 -84
- package/public/r/alert-examples.json +0 -47
- package/public/r/alert.json +0 -38
- package/public/r/article-1.json +0 -22
- package/public/r/article-2.json +0 -22
- package/public/r/articles-1.json +0 -22
- package/public/r/articles-2.json +0 -23
- package/public/r/articles-3.json +0 -22
- package/public/r/articles-4.json +0 -22
- package/public/r/aspect-ratio-examples.json +0 -33
- package/public/r/aspect-ratio.json +0 -23
- package/public/r/attachment-examples.json +0 -48
- package/public/r/attachment.json +0 -66
- package/public/r/avatar-examples.json +0 -68
- package/public/r/avatar.json +0 -48
- package/public/r/badge-examples.json +0 -52
- package/public/r/badge.json +0 -28
- package/public/r/banner-1.json +0 -24
- package/public/r/banner-2.json +0 -22
- package/public/r/banner.json +0 -31
- package/public/r/base.json +0 -143
- package/public/r/blocks-1.json +0 -27
- package/public/r/blocks.json +0 -92
- package/public/r/breadcrumb-examples.json +0 -53
- package/public/r/breadcrumb.json +0 -56
- package/public/r/button-examples.json +0 -87
- package/public/r/button-group-examples.json +0 -75
- package/public/r/button-group.json +0 -41
- package/public/r/button.json +0 -28
- package/public/r/card-examples.json +0 -51
- package/public/r/card.json +0 -53
- package/public/r/carousel-examples.json +0 -49
- package/public/r/carousel.json +0 -50
- package/public/r/checkbox-examples.json +0 -56
- package/public/r/checkbox.json +0 -23
- package/public/r/code-block-examples.json +0 -33
- package/public/r/code-block.json +0 -65
- package/public/r/collapsible-examples.json +0 -51
- package/public/r/collapsible.json +0 -36
- package/public/r/combobox-examples.json +0 -69
- package/public/r/combobox.json +0 -81
- package/public/r/command-examples.json +0 -47
- package/public/r/command.json +0 -71
- package/public/r/components.json +0 -74
- package/public/r/contact-1.json +0 -23
- package/public/r/contact-2.json +0 -23
- package/public/r/contact-3.json +0 -29
- package/public/r/content-1.json +0 -31
- package/public/r/content-2.json +0 -31
- package/public/r/content-3.json +0 -28
- package/public/r/content-4.json +0 -31
- package/public/r/cta-1.json +0 -24
- package/public/r/cta-2.json +0 -30
- package/public/r/cta-3.json +0 -24
- package/public/r/cta-4.json +0 -30
- package/public/r/cta-5.json +0 -31
- package/public/r/cta-6.json +0 -30
- package/public/r/cta-7.json +0 -23
- package/public/r/cta-8.json +0 -22
- package/public/r/dialog-examples.json +0 -47
- package/public/r/dialog.json +0 -75
- package/public/r/doc-1.json +0 -30
- package/public/r/drawer-examples.json +0 -54
- package/public/r/drawer.json +0 -109
- package/public/r/dropdown-menu-examples.json +0 -63
- package/public/r/dropdown-menu.json +0 -77
- package/public/r/empty-examples.json +0 -55
- package/public/r/empty.json +0 -48
- package/public/r/faqs-1.json +0 -23
- package/public/r/faqs-2.json +0 -23
- package/public/r/faqs-3.json +0 -23
- package/public/r/faqs-4.json +0 -22
- package/public/r/features-1.json +0 -26
- package/public/r/features-2.json +0 -22
- package/public/r/features-3.json +0 -21
- package/public/r/features-4.json +0 -26
- package/public/r/features-5.json +0 -22
- package/public/r/features-6.json +0 -23
- package/public/r/field-examples.json +0 -86
- package/public/r/field.json +0 -72
- package/public/r/footer-1.json +0 -24
- package/public/r/footer-2.json +0 -24
- package/public/r/footer-3.json +0 -24
- package/public/r/form.json +0 -23
- package/public/r/header-1.json +0 -29
- package/public/r/header-2.json +0 -29
- package/public/r/header-3.json +0 -30
- package/public/r/header-4.json +0 -29
- package/public/r/header-5.json +0 -30
- package/public/r/header.json +0 -40
- package/public/r/hero-1.json +0 -23
- package/public/r/hero-10.json +0 -24
- package/public/r/hero-11.json +0 -24
- package/public/r/hero-12.json +0 -22
- package/public/r/hero-13.json +0 -22
- package/public/r/hero-2.json +0 -24
- package/public/r/hero-3.json +0 -22
- package/public/r/hero-4.json +0 -25
- package/public/r/hero-5.json +0 -27
- package/public/r/hero-6.json +0 -27
- package/public/r/hero-7.json +0 -27
- package/public/r/hero-8.json +0 -22
- package/public/r/hero-9.json +0 -27
- package/public/r/hover-card-examples.json +0 -29
- package/public/r/hover-card.json +0 -37
- package/public/r/icon.json +0 -27
- package/public/r/init.json +0 -44
- package/public/r/input-examples.json +0 -97
- package/public/r/input-group-examples.json +0 -91
- package/public/r/input-group.json +0 -53
- package/public/r/input.json +0 -23
- package/public/r/item-examples.json +0 -74
- package/public/r/item.json +0 -71
- package/public/r/kbd-examples.json +0 -50
- package/public/r/kbd.json +0 -28
- package/public/r/label-examples.json +0 -24
- package/public/r/label.json +0 -23
- package/public/r/layout.json +0 -41
- package/public/r/links-2.json +0 -24
- package/public/r/logo.json +0 -33
- package/public/r/logos-1.json +0 -22
- package/public/r/logos-2.json +0 -23
- package/public/r/logos-3.json +0 -22
- package/public/r/marquee.json +0 -46
- package/public/r/native-select-examples.json +0 -38
- package/public/r/native-select.json +0 -36
- package/public/r/navigation-menu-examples.json +0 -26
- package/public/r/navigation-menu.json +0 -67
- package/public/r/pagination-examples.json +0 -35
- package/public/r/pagination.json +0 -59
- package/public/r/popover-examples.json +0 -42
- package/public/r/popover.json +0 -51
- package/public/r/price.json +0 -38
- package/public/r/pricing-1.json +0 -29
- package/public/r/pricing-2.json +0 -28
- package/public/r/pricing-3.json +0 -29
- package/public/r/product-1.json +0 -24
- package/public/r/products-1.json +0 -24
- package/public/r/products-2.json +0 -24
- package/public/r/products-3.json +0 -24
- package/public/r/products-4.json +0 -24
- package/public/r/products-5.json +0 -25
- package/public/r/progress-examples.json +0 -33
- package/public/r/progress.json +0 -23
- package/public/r/radio-group-examples.json +0 -50
- package/public/r/radio-group.json +0 -31
- package/public/r/rating.json +0 -26
- package/public/r/registry.json +0 -6959
- package/public/r/resizable-examples.json +0 -33
- package/public/r/resizable.json +0 -36
- package/public/r/reviews-1.json +0 -27
- package/public/r/reviews-2.json +0 -27
- package/public/r/reviews-3.json +0 -27
- package/public/r/reviews-4.json +0 -25
- package/public/r/reviews-5.json +0 -27
- package/public/r/section.json +0 -38
- package/public/r/select-examples.json +0 -53
- package/public/r/select.json +0 -62
- package/public/r/separator-examples.json +0 -38
- package/public/r/separator.json +0 -23
- package/public/r/services-1.json +0 -32
- package/public/r/services-2.json +0 -29
- package/public/r/services-3.json +0 -29
- package/public/r/services-4.json +0 -31
- package/public/r/services-5.json +0 -26
- package/public/r/services-6.json +0 -32
- package/public/r/services-7.json +0 -32
- package/public/r/sheet-examples.json +0 -37
- package/public/r/sheet.json +0 -66
- package/public/r/sidebar-1.json +0 -35
- package/public/r/sidebar-examples.json +0 -24
- package/public/r/sidebar.json +0 -146
- package/public/r/skeleton-examples.json +0 -49
- package/public/r/skeleton.json +0 -23
- package/public/r/slider-examples.json +0 -44
- package/public/r/slider.json +0 -26
- package/public/r/spinner-examples.json +0 -61
- package/public/r/spinner.json +0 -26
- package/public/r/switch-examples.json +0 -50
- package/public/r/switch.json +0 -26
- package/public/r/table-examples.json +0 -38
- package/public/r/table.json +0 -58
- package/public/r/tabs-examples.json +0 -47
- package/public/r/tabs.json +0 -46
- package/public/r/textarea-examples.json +0 -45
- package/public/r/textarea.json +0 -23
- package/public/r/theme-toggle.json +0 -34
- package/public/r/toast-examples.json +0 -29
- package/public/r/toast.json +0 -80
- package/public/r/toc.json +0 -43
- package/public/r/toggle-examples.json +0 -46
- package/public/r/toggle-group-examples.json +0 -57
- package/public/r/toggle-group.json +0 -34
- package/public/r/toggle.json +0 -31
- package/public/r/tooltip-examples.json +0 -43
- package/public/r/tooltip.json +0 -36
- package/public/r/typography.json +0 -103
- package/public/r/video.json +0 -23
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "accordion-examples",
|
|
4
|
-
"title": "Accordion examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Accordion docs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/accordion",
|
|
8
|
-
"@fulldev/card"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/examples/accordion/accordion-basic.astro",
|
|
13
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\n\nconst items = [\n {\n value: \"item-1\",\n trigger: \"How do I reset my password?\",\n content:\n \"Click on 'Forgot Password' on the login page, enter your email address, and we'll send you a link to reset your password. The link will expire in 24 hours.\",\n },\n {\n value: \"item-2\",\n trigger: \"Can I change my subscription plan?\",\n content:\n \"Yes, you can upgrade or downgrade your plan at any time from your account settings. Changes will be reflected in your next billing cycle.\",\n },\n {\n value: \"item-3\",\n trigger: \"What payment methods do you accept?\",\n content:\n \"We accept all major credit cards, PayPal, and bank transfers. All payments are processed securely through our payment partners.\",\n },\n]\n---\n\n<Accordion defaultValue={[\"item-1\"]} class=\"max-w-lg\">\n {items.map((item) => (\n <AccordionItem value={item.value}>\n <AccordionTrigger>{item.trigger}</AccordionTrigger>\n <AccordionContent>{item.content}</AccordionContent>\n </AccordionItem>\n ))}\n</Accordion>\n",
|
|
14
|
-
"type": "registry:component"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/examples/accordion/accordion-borders.astro",
|
|
18
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\n\nconst items = [\n {\n value: \"billing\",\n trigger: \"How does billing work?\",\n content:\n \"We offer monthly and annual subscription plans. Billing is charged at the beginning of each cycle, and you can cancel anytime. All plans include automatic backups, 24/7 support, and unlimited team members.\",\n },\n {\n value: \"security\",\n trigger: \"Is my data secure?\",\n content:\n \"Yes. We use end-to-end encryption, SOC 2 Type II compliance, and regular third-party security audits. All data is encrypted at rest and in transit using industry-standard protocols.\",\n },\n {\n value: \"integration\",\n trigger: \"What integrations do you support?\",\n content:\n \"We integrate with 500+ popular tools including Slack, Zapier, Salesforce, HubSpot, and more. You can also build custom integrations using our REST API and webhooks.\",\n },\n]\n---\n\n<Accordion class=\"max-w-lg rounded-lg border\" defaultValue={[\"billing\"]}>\n {items.map((item) => (\n <AccordionItem value={item.value} class=\"border-b px-4 last:border-b-0\">\n <AccordionTrigger>{item.trigger}</AccordionTrigger>\n <AccordionContent>{item.content}</AccordionContent>\n </AccordionItem>\n ))}\n</Accordion>\n",
|
|
19
|
-
"type": "registry:component"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"path": "src/components/examples/accordion/accordion-card.astro",
|
|
23
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\n\nconst items = [\n {\n value: \"plans\",\n trigger: \"What subscription plans do you offer?\",\n content:\n \"We offer three subscription tiers: Starter ($9/month), Professional ($29/month), and Enterprise ($99/month). Each plan includes increasing storage limits, API access, priority support, and team collaboration features.\",\n },\n {\n value: \"billing\",\n trigger: \"How does billing work?\",\n content:\n \"Billing occurs automatically at the start of each billing cycle. We accept all major credit cards, PayPal, and ACH transfers for enterprise customers. You'll receive an invoice via email after each payment.\",\n },\n {\n value: \"cancel\",\n trigger: \"How do I cancel my subscription?\",\n content:\n \"You can cancel your subscription anytime from your account settings. There are no cancellation fees or penalties. Your access will continue until the end of your current billing period.\",\n },\n]\n---\n\n<Card class=\"w-full max-w-sm\">\n <CardHeader>\n <CardTitle>Subscription & Billing</CardTitle>\n <CardDescription>\n Common questions about your account, plans, payments and cancellations.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <Accordion defaultValue={[\"plans\"]}>\n {items.map((item) => (\n <AccordionItem value={item.value}>\n <AccordionTrigger>{item.trigger}</AccordionTrigger>\n <AccordionContent>{item.content}</AccordionContent>\n </AccordionItem>\n ))}\n </Accordion>\n </CardContent>\n</Card>\n",
|
|
24
|
-
"type": "registry:component"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "src/components/examples/accordion/accordion-demo.astro",
|
|
28
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\n---\n\n<Accordion defaultValue={[\"shipping\"]} class=\"max-w-lg\">\n <AccordionItem value=\"shipping\">\n <AccordionTrigger>What are your shipping options?</AccordionTrigger>\n <AccordionContent>\n We offer standard (5-7 days), express (2-3 days), and overnight shipping.\n Free shipping on international orders.\n </AccordionContent>\n </AccordionItem>\n <AccordionItem value=\"returns\">\n <AccordionTrigger>What is your return policy?</AccordionTrigger>\n <AccordionContent>\n Returns accepted within 30 days. Items must be unused and in original\n packaging. Refunds processed within 5-7 business days.\n </AccordionContent>\n </AccordionItem>\n <AccordionItem value=\"support\">\n <AccordionTrigger>How can I contact customer support?</AccordionTrigger>\n <AccordionContent>\n Reach us via email, live chat, or phone. We respond within 24 hours during\n business days.\n </AccordionContent>\n </AccordionItem>\n</Accordion>\n",
|
|
29
|
-
"type": "registry:component"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"path": "src/components/examples/accordion/accordion-disabled.astro",
|
|
33
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\n---\n\n<Accordion class=\"w-full\">\n <AccordionItem value=\"item-1\">\n <AccordionTrigger>Can I access my account history?</AccordionTrigger>\n <AccordionContent>\n Yes, you can view your complete account history including all\n transactions, plan changes, and support tickets in the Account History\n section of your dashboard.\n </AccordionContent>\n </AccordionItem>\n <AccordionItem value=\"item-2\" disabled>\n <AccordionTrigger>Premium feature information</AccordionTrigger>\n <AccordionContent>\n This section contains information about premium features. Upgrade your\n plan to access this content.\n </AccordionContent>\n </AccordionItem>\n <AccordionItem value=\"item-3\">\n <AccordionTrigger>How do I update my email address?</AccordionTrigger>\n <AccordionContent>\n You can update your email address in your account settings. You'll receive\n a verification email at your new address to confirm the change.\n </AccordionContent>\n </AccordionItem>\n</Accordion>\n",
|
|
34
|
-
"type": "registry:component"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "src/components/examples/accordion/accordion-multiple.astro",
|
|
38
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\n\nconst items = [\n {\n value: \"notifications\",\n trigger: \"Notification Settings\",\n content:\n \"Manage how you receive notifications. You can enable email alerts for updates or push notifications for mobile devices.\",\n },\n {\n value: \"privacy\",\n trigger: \"Privacy & Security\",\n content:\n \"Control your privacy settings and security preferences. Enable two-factor authentication, manage connected devices, review active sessions, and configure data sharing preferences. You can also download your data or delete your account.\",\n },\n {\n value: \"billing\",\n trigger: \"Billing & Subscription\",\n content:\n \"View your current plan, payment history, and upcoming invoices. Update your payment method, change your subscription tier, or cancel your subscription.\",\n },\n]\n---\n\n<Accordion multiple class=\"max-w-lg\" defaultValue={[\"notifications\"]}>\n {items.map((item) => (\n <AccordionItem value={item.value}>\n <AccordionTrigger>{item.trigger}</AccordionTrigger>\n <AccordionContent>{item.content}</AccordionContent>\n </AccordionItem>\n ))}\n</Accordion>\n",
|
|
39
|
-
"type": "registry:component"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "src/components/examples/accordion/accordion-rtl.astro",
|
|
43
|
-
"content": "---\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n question1: \"How do I reset my password?\",\n answer1:\n \"Click on 'Forgot Password' on the login page, enter your email address, and we'll send you a link to reset your password.\",\n question2: \"Can I change my subscription plan?\",\n answer2:\n \"Yes, you can upgrade or downgrade your plan at any time from your account settings. Changes will be reflected in your next billing cycle.\",\n question3: \"What payment methods do you accept?\",\n answer3:\n \"We accept all major credit cards, PayPal, and bank transfers. All payments are processed securely through our payment partners.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n question1: \"كيف يمكنني إعادة تعيين كلمة المرور؟\",\n answer1:\n \"انقر على 'نسيت كلمة المرور' في صفحة تسجيل الدخول، أدخل عنوان بريدك الإلكتروني، وسنرسل لك رابطًا لإعادة تعيين كلمة المرور. سينتهي صلاحية الرابط خلال 24 ساعة.\",\n question2: \"هل يمكنني تغيير خطة الاشتراك الخاصة بي؟\",\n answer2:\n \"نعم، يمكنك ترقية أو تخفيض خطتك في أي وقت من إعدادات حسابك. ستظهر التغييرات في دورة الفوترة التالية.\",\n question3: \"ما هي طرق الدفع التي تقبلونها؟\",\n answer3:\n \"نقبل جميع بطاقات الائتمان الرئيسية و PayPal والتحويلات المصرفية. تتم معالجة جميع المدفوعات بأمان من خلال شركاء الدفع لدينا.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n question1: \"איך אני מאפס את הסיסמה שלי?\",\n answer1:\n \"לחץ על 'שכחתי סיסמה' בעמוד ההתחברות, הזן את כתובת האימייל שלך, ונשלח לך קישור לאיפוס הסיסמה. הקישור יפוג תוך 24 שעות.\",\n question2: \"האם אני יכול לשנות את תוכנית המנוי שלי?\",\n answer2:\n \"כן, אתה יכול לשדרג או להוריד את התוכנית שלך בכל עת מההגדרות של החשבון שלך. השינויים יבואו לידי ביטוי במחזור החיוב הבא.\",\n question3: \"אילו אמצעי תשלום אתם מקבלים?\",\n answer3: \"אנו מקבלים כרטיסי אשראי, PayPal והעברות בנקאיות.\",\n },\n },\n} as const\n\nconst items = [\n { value: \"item-1\", questionKey: \"question1\", answerKey: \"answer1\" },\n { value: \"item-2\", questionKey: \"question2\", answerKey: \"answer2\" },\n { value: \"item-3\", questionKey: \"question3\", answerKey: \"answer3\" },\n] as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<Accordion defaultValue={[\"item-1\"]} class=\"max-w-md\" dir={dir}>\n {items.map((item) => (\n <AccordionItem value={item.value}>\n <AccordionTrigger>{t[item.questionKey]}</AccordionTrigger>\n <AccordionContent>{t[item.answerKey]}</AccordionContent>\n </AccordionItem>\n ))}\n</Accordion>\n",
|
|
44
|
-
"type": "registry:component"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"docs": "https://ui.full.dev/components/accordion/",
|
|
48
|
-
"type": "registry:example"
|
|
49
|
-
}
|
package/public/r/accordion.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "accordion",
|
|
4
|
-
"title": "Accordion",
|
|
5
|
-
"description": "A vertically stacked set of interactive headings that each reveal a section of content.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@data-slot/accordion@^1.1.2",
|
|
8
|
-
"@lucide/astro"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/ui/accordion/accordion.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n multiple?: boolean\n defaultValue?: string | string[]\n disabled?: boolean\n orientation?: \"horizontal\" | \"vertical\"\n loopFocus?: boolean\n hiddenUntilFound?: boolean\n collapsible?: boolean\n}\n\nconst {\n class: className,\n multiple,\n defaultValue,\n disabled,\n orientation = \"vertical\",\n loopFocus,\n hiddenUntilFound,\n collapsible,\n ...props\n} = Astro.props\n\nconst serializedDefaultValue = Array.isArray(defaultValue)\n ? JSON.stringify(defaultValue)\n : defaultValue\n---\n\n<div\n data-slot=\"accordion\"\n data-multiple={multiple}\n data-default-value={serializedDefaultValue}\n data-disabled={disabled}\n data-orientation={orientation}\n data-loop-focus={loopFocus}\n data-hidden-until-found={hiddenUntilFound}\n data-collapsible={collapsible}\n class={cn(\"flex w-full flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/accordion\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n</script>\n",
|
|
14
|
-
"type": "registry:ui"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/ui/accordion/accordion-content.astro",
|
|
18
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, hidden = true, ...props } = Astro.props\n---\n\n<div\n data-slot=\"accordion-content\"\n hidden={hidden}\n class=\"data-open:animate-accordion-down data-closed:animate-accordion-up text-sm overflow-hidden\"\n {...props}\n>\n <div\n data-slot=\"accordion-content-inner\"\n class={cn(\n \"pt-0 pb-4 [&_a]:hover:text-foreground h-(--accordion-panel-height) data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4\",\n className\n )}\n >\n <slot />\n </div>\n</div>\n",
|
|
19
|
-
"type": "registry:ui"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"path": "src/components/ui/accordion/accordion-item.astro",
|
|
23
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n value: string\n disabled?: boolean\n}\n\nconst { class: className, value, disabled, ...props } = Astro.props\n---\n\n<div\n data-slot=\"accordion-item\"\n data-value={value}\n data-disabled={disabled ? \"\" : undefined}\n class={cn(\"not-last:border-b\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
24
|
-
"type": "registry:ui"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "src/components/ui/accordion/accordion-trigger.astro",
|
|
28
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\nimport ChevronUpIcon from \"@lucide/astro/icons/chevron-up\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"button\">\n\nconst { class: className, type = \"button\", ...props } = Astro.props\n---\n\n<button\n data-slot=\"accordion-trigger\"\n type={type}\n class={cn(\n \"focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground rounded-md py-4 text-left text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 group/accordion-trigger relative flex w-full flex-1 items-start justify-between border border-transparent bg-transparent transition-all outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50\",\n className\n )}\n {...props}\n>\n <slot />\n <ChevronDownIcon\n data-slot=\"accordion-trigger-icon\"\n aria-hidden=\"true\"\n class=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\"\n />\n <ChevronUpIcon\n data-slot=\"accordion-trigger-icon\"\n aria-hidden=\"true\"\n class=\"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline\"\n />\n</button>\n",
|
|
29
|
-
"type": "registry:ui"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"path": "src/components/ui/accordion/index.ts",
|
|
33
|
-
"content": "export { default as Accordion } from \"./accordion.astro\"\nexport { default as AccordionContent } from \"./accordion-content.astro\"\nexport { default as AccordionItem } from \"./accordion-item.astro\"\nexport { default as AccordionTrigger } from \"./accordion-trigger.astro\"\n",
|
|
34
|
-
"type": "registry:ui"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"docs": "https://ui.full.dev/components/accordion/",
|
|
38
|
-
"categories": [
|
|
39
|
-
"ui"
|
|
40
|
-
],
|
|
41
|
-
"type": "registry:ui"
|
|
42
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "alert-dialog-examples",
|
|
4
|
-
"title": "Alert Dialog examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Alert Dialog docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/alert-dialog"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-basic.astro",
|
|
15
|
-
"content": "---\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n---\n\n<AlertDialog>\n <AlertDialogTrigger variant=\"outline\">Show Dialog</AlertDialogTrigger>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>\n <AlertDialogDescription>\n This action cannot be undone. This will permanently delete your account\n and remove your data from our servers.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction>Continue</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n</AlertDialog>\n",
|
|
16
|
-
"type": "registry:component"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-demo.astro",
|
|
20
|
-
"content": "---\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n---\n\n<AlertDialog>\n <AlertDialogTrigger variant=\"outline\">Show Dialog</AlertDialogTrigger>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>\n <AlertDialogDescription>\n This action cannot be undone. This will permanently delete your account\n from our servers.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction>Continue</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n</AlertDialog>\n",
|
|
21
|
-
"type": "registry:component"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-destructive.astro",
|
|
25
|
-
"content": "---\nimport Trash2Icon from \"@lucide/astro/icons/trash\"\n\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogMedia,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n---\n\n<AlertDialog>\n <AlertDialogTrigger variant=\"destructive\">Delete Chat</AlertDialogTrigger>\n <AlertDialogContent size=\"sm\">\n <AlertDialogHeader>\n <AlertDialogMedia class=\"bg-destructive/10 text-destructive dark:bg-destructive/20 dark:text-destructive\">\n <Trash2Icon />\n </AlertDialogMedia>\n <AlertDialogTitle>Delete chat?</AlertDialogTitle>\n <AlertDialogDescription>\n This will permanently delete this chat conversation. View\n <a href=\"#\">Settings</a> delete any memories saved during this chat.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel variant=\"outline\">Cancel</AlertDialogCancel>\n <AlertDialogAction variant=\"destructive\">Delete</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n</AlertDialog>\n",
|
|
26
|
-
"type": "registry:component"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-media.astro",
|
|
30
|
-
"content": "---\nimport CircleFadingPlusIcon from \"@lucide/astro/icons/circle-fading-plus\"\n\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogMedia,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n---\n\n<AlertDialog>\n <AlertDialogTrigger variant=\"outline\">Share Project</AlertDialogTrigger>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogMedia>\n <CircleFadingPlusIcon />\n </AlertDialogMedia>\n <AlertDialogTitle>Share this project?</AlertDialogTitle>\n <AlertDialogDescription>\n Anyone with the link will be able to view and edit this project.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction>Share</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n</AlertDialog>\n",
|
|
31
|
-
"type": "registry:component"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-rtl.astro",
|
|
35
|
-
"content": "---\nimport BluetoothIcon from \"@lucide/astro/icons/bluetooth\"\n\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogMedia,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n showDialog: \"Show Dialog\",\n showDialogSm: \"Show Dialog (sm)\",\n title: \"Are you absolutely sure?\",\n description:\n \"This action cannot be undone. This will permanently delete your account from our servers.\",\n cancel: \"Cancel\",\n continue: \"Continue\",\n smallTitle: \"Allow accessory to connect?\",\n smallDescription:\n \"Do you want to allow the USB accessory to connect to this device?\",\n dontAllow: \"Don't allow\",\n allow: \"Allow\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n showDialog: \"إظهار الحوار\",\n showDialogSm: \"إظهار الحوار (صغير)\",\n title: \"هل أنت متأكد تمامًا؟\",\n description:\n \"لا يمكن التراجع عن هذا الإجراء. سيؤدي هذا إلى حذف حسابك نهائيًا من خوادمنا.\",\n cancel: \"إلغاء\",\n continue: \"متابعة\",\n smallTitle: \"السماح للملحق بالاتصال؟\",\n smallDescription: \"هل تريد السماح لملحق USB بالاتصال بهذا الجهاز؟\",\n dontAllow: \"عدم السماح\",\n allow: \"السماح\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n showDialog: \"הצג דיאלוג\",\n showDialogSm: \"הצג דיאלוג (קטן)\",\n title: \"האם אתה בטוח לחלוטין?\",\n description:\n \"פעולה זו לא ניתנת לביטול. זה ימחק לצמיתות את החשבון שלך מהשרתים שלנו.\",\n cancel: \"ביטול\",\n continue: \"המשך\",\n smallTitle: \"לאפשר להתקן להתחבר?\",\n smallDescription: \"האם אתה רוצה לאפשר להתקן USB להתחבר למכשיר זה?\",\n dontAllow: \"אל תאפשר\",\n allow: \"אפשר\",\n },\n },\n} as const\n\nconst language = \"ar\"\nconst { dir, values: t } = translations[language]\n---\n\n<div class=\"flex gap-4\" dir={dir}>\n <AlertDialog>\n <AlertDialogTrigger variant=\"outline\">{t.showDialog}</AlertDialogTrigger>\n <AlertDialogContent dir={dir} data-lang={language}>\n <AlertDialogHeader>\n <AlertDialogTitle>{t.title}</AlertDialogTitle>\n <AlertDialogDescription>{t.description}</AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>{t.cancel}</AlertDialogCancel>\n <AlertDialogAction>{t.continue}</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n <AlertDialog>\n <AlertDialogTrigger variant=\"outline\">{t.showDialogSm}</AlertDialogTrigger>\n <AlertDialogContent size=\"sm\" dir={dir} data-lang={language}>\n <AlertDialogHeader>\n <AlertDialogMedia>\n <BluetoothIcon />\n </AlertDialogMedia>\n <AlertDialogTitle>{t.smallTitle}</AlertDialogTitle>\n <AlertDialogDescription>{t.smallDescription}</AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>{t.dontAllow}</AlertDialogCancel>\n <AlertDialogAction>{t.allow}</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n</div>\n",
|
|
36
|
-
"type": "registry:component"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-small-media.astro",
|
|
40
|
-
"content": "---\nimport BluetoothIcon from \"@lucide/astro/icons/bluetooth\"\n\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogMedia,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n---\n\n<AlertDialog>\n <AlertDialogTrigger variant=\"outline\">Show Dialog</AlertDialogTrigger>\n <AlertDialogContent size=\"sm\">\n <AlertDialogHeader>\n <AlertDialogMedia>\n <BluetoothIcon />\n </AlertDialogMedia>\n <AlertDialogTitle>Allow accessory to connect?</AlertDialogTitle>\n <AlertDialogDescription>\n Do you want to allow the USB accessory to connect to this device?\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Don't allow</AlertDialogCancel>\n <AlertDialogAction>Allow</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n</AlertDialog>\n",
|
|
41
|
-
"type": "registry:component"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"path": "src/components/examples/alert-dialog/alert-dialog-small.astro",
|
|
45
|
-
"content": "---\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\"\n---\n\n<AlertDialog>\n <AlertDialogTrigger variant=\"outline\">Show Dialog</AlertDialogTrigger>\n <AlertDialogContent size=\"sm\">\n <AlertDialogHeader>\n <AlertDialogTitle>Allow accessory to connect?</AlertDialogTitle>\n <AlertDialogDescription>\n Do you want to allow the USB accessory to connect to this device?\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Don't allow</AlertDialogCancel>\n <AlertDialogAction>Allow</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n</AlertDialog>\n",
|
|
46
|
-
"type": "registry:component"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"docs": "https://ui.full.dev/components/alert-dialog/",
|
|
50
|
-
"type": "registry:example"
|
|
51
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "alert-dialog",
|
|
4
|
-
"title": "Alert Dialog",
|
|
5
|
-
"description": "A modal dialog for important confirmations that expects a response.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@data-slot/alert-dialog@^1.1.2"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/button"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/ui/alert-dialog/alert-dialog.astro",
|
|
15
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n defaultOpen?: boolean\n closeOnClickOutside?: boolean\n closeOnEscape?: boolean\n lockScroll?: boolean\n}\n\nconst {\n class: className,\n defaultOpen,\n closeOnClickOutside,\n closeOnEscape,\n lockScroll,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"alert-dialog\"\n data-default-open={defaultOpen}\n data-close-on-click-outside={closeOnClickOutside}\n data-close-on-escape={closeOnEscape}\n data-lock-scroll={lockScroll}\n class={className}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/alert-dialog\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n</script>\n",
|
|
16
|
-
"type": "registry:ui"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-trigger.astro",
|
|
20
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { ...props } = Astro.props\n---\n\n<Button data-slot=\"alert-dialog-trigger\" {...props}>\n <slot />\n</Button>\n",
|
|
21
|
-
"type": "registry:ui"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-portal.astro",
|
|
25
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"alert-dialog-portal\" class={cn(className)} {...props}>\n <slot />\n</div>\n",
|
|
26
|
-
"type": "registry:ui"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-overlay.astro",
|
|
30
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, style, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-dialog-overlay\"\n hidden\n class={cn(\n \"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-(--alert-dialog-overlay-stack-index)\",\n className\n )}\n style={`z-index: calc(var(--alert-dialog-overlay-stack-index, 0) * 2 + 100);${style ? ` ${style}` : \"\"}`}\n {...props}\n></div>\n",
|
|
31
|
-
"type": "registry:ui"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-content.astro",
|
|
35
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport AlertDialogOverlay from \"./alert-dialog-overlay.astro\"\nimport AlertDialogPortal from \"./alert-dialog-portal.astro\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", style, ...props } = Astro.props\n---\n\n<AlertDialogPortal>\n <AlertDialogOverlay />\n <div\n data-slot=\"alert-dialog-content\"\n data-size={size}\n hidden\n class={cn(\n \"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-popover text-popover-foreground ring-foreground/10 gap-6 rounded-xl p-6 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none\",\n className\n )}\n style={`z-index: calc(var(--alert-dialog-content-stack-index, 0) * 2 + 101);${style ? ` ${style}` : \"\"}`}\n {...props}\n >\n <slot />\n </div>\n</AlertDialogPortal>\n",
|
|
36
|
-
"type": "registry:ui"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-header.astro",
|
|
40
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-dialog-header\"\n class={cn(\"grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
41
|
-
"type": "registry:ui"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-media.astro",
|
|
45
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-dialog-media\"\n class={cn(\"bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
46
|
-
"type": "registry:ui"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-footer.astro",
|
|
50
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-dialog-footer\"\n class={cn(\n \"flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
51
|
-
"type": "registry:ui"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-title.astro",
|
|
55
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"h2\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<h2\n data-slot=\"alert-dialog-title\"\n class={cn(\"text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2 font-heading\", className)}\n {...props}\n>\n <slot />\n</h2>\n",
|
|
56
|
-
"type": "registry:ui"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-description.astro",
|
|
60
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<p\n data-slot=\"alert-dialog-description\"\n class={cn(\"text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3\", className)}\n {...props}\n>\n <slot />\n</p>\n",
|
|
61
|
-
"type": "registry:ui"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-action.astro",
|
|
65
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { ...props } = Astro.props\n---\n\n<Button data-slot=\"alert-dialog-action\" {...props}>\n <slot />\n</Button>\n",
|
|
66
|
-
"type": "registry:ui"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "src/components/ui/alert-dialog/alert-dialog-cancel.astro",
|
|
70
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { variant = \"outline\", ...props } = Astro.props\n---\n\n<Button data-slot=\"alert-dialog-cancel\" variant={variant} {...props}>\n <slot />\n</Button>\n",
|
|
71
|
-
"type": "registry:ui"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"path": "src/components/ui/alert-dialog/index.ts",
|
|
75
|
-
"content": "export { default as AlertDialog } from \"./alert-dialog.astro\"\nexport { default as AlertDialogAction } from \"./alert-dialog-action.astro\"\nexport { default as AlertDialogCancel } from \"./alert-dialog-cancel.astro\"\nexport { default as AlertDialogContent } from \"./alert-dialog-content.astro\"\nexport { default as AlertDialogDescription } from \"./alert-dialog-description.astro\"\nexport { default as AlertDialogFooter } from \"./alert-dialog-footer.astro\"\nexport { default as AlertDialogHeader } from \"./alert-dialog-header.astro\"\nexport { default as AlertDialogMedia } from \"./alert-dialog-media.astro\"\nexport { default as AlertDialogOverlay } from \"./alert-dialog-overlay.astro\"\nexport { default as AlertDialogPortal } from \"./alert-dialog-portal.astro\"\nexport { default as AlertDialogTitle } from \"./alert-dialog-title.astro\"\nexport { default as AlertDialogTrigger } from \"./alert-dialog-trigger.astro\"\n",
|
|
76
|
-
"type": "registry:ui"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"docs": "https://ui.full.dev/components/alert-dialog/",
|
|
80
|
-
"categories": [
|
|
81
|
-
"ui"
|
|
82
|
-
],
|
|
83
|
-
"type": "registry:ui"
|
|
84
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "alert-examples",
|
|
4
|
-
"title": "Alert examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Alert docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/alert",
|
|
11
|
-
"@fulldev/button"
|
|
12
|
-
],
|
|
13
|
-
"files": [
|
|
14
|
-
{
|
|
15
|
-
"path": "src/components/examples/alert/alert-action.astro",
|
|
16
|
-
"content": "---\nimport {\n Alert,\n AlertAction,\n AlertDescription,\n AlertTitle,\n} from \"@/components/ui/alert\"\nimport { Button } from \"@/components/ui/button\"\n---\n\n<Alert class=\"max-w-md\">\n <AlertTitle>Dark mode is now available</AlertTitle>\n <AlertDescription>\n Enable it under your profile settings to get started.\n </AlertDescription>\n <AlertAction>\n <Button size=\"xs\" variant=\"default\">\n Enable\n </Button>\n </AlertAction>\n</Alert>\n",
|
|
17
|
-
"type": "registry:component"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"path": "src/components/examples/alert/alert-basic.astro",
|
|
21
|
-
"content": "---\nimport CheckCircle2Icon from \"@lucide/astro/icons/circle-check\"\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\"\n---\n\n<Alert class=\"max-w-md\">\n <CheckCircle2Icon />\n <AlertTitle>Account updated successfully</AlertTitle>\n <AlertDescription>\n Your profile information has been saved. Changes will be reflected\n immediately.\n </AlertDescription>\n</Alert>\n",
|
|
22
|
-
"type": "registry:component"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"path": "src/components/examples/alert/alert-colors.astro",
|
|
26
|
-
"content": "---\nimport AlertTriangleIcon from \"@lucide/astro/icons/triangle-alert\"\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\"\n---\n\n<Alert class=\"max-w-md border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-50\">\n <AlertTriangleIcon />\n <AlertTitle>Your subscription will expire in 3 days.</AlertTitle>\n <AlertDescription>\n Renew now to avoid service interruption or upgrade to a paid plan to\n continue using the service.\n </AlertDescription>\n</Alert>\n",
|
|
27
|
-
"type": "registry:component"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "src/components/examples/alert/alert-demo.astro",
|
|
31
|
-
"content": "---\nimport CheckCircle2Icon from \"@lucide/astro/icons/circle-check\"\nimport InfoIcon from \"@lucide/astro/icons/info\"\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\"\n---\n\n<div class=\"grid w-full max-w-md items-start gap-4\">\n <Alert>\n <CheckCircle2Icon />\n <AlertTitle>Payment successful</AlertTitle>\n <AlertDescription>\n Your payment of $29.99 has been processed. A receipt has been sent to your\n email address.\n </AlertDescription>\n </Alert>\n <Alert>\n <InfoIcon />\n <AlertTitle>New feature available</AlertTitle>\n <AlertDescription>\n We've added dark mode support. You can enable it in your account settings.\n </AlertDescription>\n </Alert>\n</div>\n",
|
|
32
|
-
"type": "registry:component"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"path": "src/components/examples/alert/alert-destructive.astro",
|
|
36
|
-
"content": "---\nimport AlertCircleIcon from \"@lucide/astro/icons/circle-alert\"\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\"\n---\n\n<Alert variant=\"destructive\" class=\"max-w-md\">\n <AlertCircleIcon />\n <AlertTitle>Payment failed</AlertTitle>\n <AlertDescription>\n Your payment could not be processed. Please check your payment method and\n try again.\n </AlertDescription>\n</Alert>\n",
|
|
37
|
-
"type": "registry:component"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"path": "src/components/examples/alert/alert-rtl.astro",
|
|
41
|
-
"content": "---\nimport CheckCircle2Icon from \"@lucide/astro/icons/circle-check\"\nimport InfoIcon from \"@lucide/astro/icons/info\"\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n paymentTitle: \"Payment successful\",\n paymentDescription:\n \"Your payment of $29.99 has been processed. A receipt has been sent to your email address.\",\n featureTitle: \"New feature available\",\n featureDescription:\n \"We've added dark mode support. You can enable it in your account settings.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n paymentTitle: \"تم الدفع بنجاح\",\n paymentDescription:\n \"تمت معالجة دفعتك البالغة 29.99 دولارًا. تم إرسال إيصال إلى عنوان بريدك الإلكتروني.\",\n featureTitle: \"ميزة جديدة متاحة\",\n featureDescription:\n \"لقد أضفنا دعم الوضع الداكن. يمكنك تفعيله في إعدادات حسابك.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n paymentTitle: \"התשלום בוצע בהצלחה\",\n paymentDescription:\n \"התשלום שלך בסך 29.99 דולר עובד. קבלה נשלחה לכתובת האימייל שלך.\",\n featureTitle: \"תכונה חדשה זמינה\",\n featureDescription:\n \"הוספנו תמיכה במצב כהה. אתה יכול להפעיל אותו בהגדרות החשבון שלך.\",\n },\n },\n} as const\n\nconst alerts = [\n {\n icon: CheckCircle2Icon,\n titleKey: \"paymentTitle\",\n descriptionKey: \"paymentDescription\",\n },\n {\n icon: InfoIcon,\n titleKey: \"featureTitle\",\n descriptionKey: \"featureDescription\",\n },\n] as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"grid w-full max-w-md items-start gap-4\" dir={dir}>\n {alerts.map((alert) => {\n const Icon = alert.icon\n return (\n <Alert>\n <Icon />\n <AlertTitle>{t[alert.titleKey]}</AlertTitle>\n <AlertDescription>{t[alert.descriptionKey]}</AlertDescription>\n </Alert>\n )\n })}\n</div>\n",
|
|
42
|
-
"type": "registry:component"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"docs": "https://ui.full.dev/components/alert/",
|
|
46
|
-
"type": "registry:example"
|
|
47
|
-
}
|
package/public/r/alert.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "alert",
|
|
4
|
-
"title": "Alert",
|
|
5
|
-
"description": "Displays a callout for user attention.",
|
|
6
|
-
"files": [
|
|
7
|
-
{
|
|
8
|
-
"path": "src/components/ui/alert/alert.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = VariantProps<typeof variants> & HTMLAttributes<\"div\">\n\nconst variants = cva(\"grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full\", {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive: \"text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n})\n\nconst { class: className, variant, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert\"\n role=\"alert\"\n class={cn(variants({ variant }), className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
10
|
-
"type": "registry:ui"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/alert/alert-action.astro",
|
|
14
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-action\"\n class={cn(\"absolute top-2.5 right-3\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "src/components/ui/alert/alert-description.astro",
|
|
19
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-description\"\n class={cn(\n \"text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
20
|
-
"type": "registry:ui"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "src/components/ui/alert/alert-title.astro",
|
|
24
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"alert-title\"\n class={cn(\n \"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
25
|
-
"type": "registry:ui"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"path": "src/components/ui/alert/index.ts",
|
|
29
|
-
"content": "export { default as Alert } from \"./alert.astro\"\nexport { default as AlertAction } from \"./alert-action.astro\"\nexport { default as AlertTitle } from \"./alert-title.astro\"\nexport { default as AlertDescription } from \"./alert-description.astro\"\n",
|
|
30
|
-
"type": "registry:ui"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"docs": "https://ui.full.dev/components/alert/",
|
|
34
|
-
"categories": [
|
|
35
|
-
"ui"
|
|
36
|
-
],
|
|
37
|
-
"type": "registry:ui"
|
|
38
|
-
}
|
package/public/r/article-1.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "article-1",
|
|
4
|
-
"title": "Article 1",
|
|
5
|
-
"description": "Editorial article layouts for long-form stories, interviews, and analysis.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/avatar",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/article-1.astro",
|
|
13
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n }\n image: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n author,\n image,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"max-w-2xl\">\n <article class=\"flex flex-col gap-8\">\n <header class=\"flex flex-col gap-6\">\n <div class=\"flex flex-col gap-4\">\n <h1 class=\"text-4xl leading-tight font-semibold tracking-tight text-balance sm:text-5xl\">\n {title}\n </h1>\n <p class=\"text-muted-foreground text-lg leading-8 text-balance\">\n {description}\n </p>\n </div>\n <div class=\"flex items-center gap-3\">\n <Avatar size=\"lg\" aria-hidden=\"true\">\n <AvatarImage src={author.image} />\n <AvatarFallback>{author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col\">\n <p class=\"text-sm font-medium\">{author.name}</p>\n <p class=\"text-muted-foreground text-xs\">{author.date}</p>\n </div>\n </div>\n </header>\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[16/10] w-full rounded-xl object-cover\"\n widths={[640, 960, 1280]}\n sizes=\"(min-width: 42rem) 42rem, 100vw\"\n loading=\"eager\"\n fetchpriority=\"high\"\n />\n <div class=\"flex flex-col gap-6 text-base leading-8\">\n <slot />\n </div>\n </article>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/article/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"article"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/article-2.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "article-2",
|
|
4
|
-
"title": "Article 2",
|
|
5
|
-
"description": "Editorial article layouts for long-form stories, interviews, and analysis.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/avatar",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/article-2.astro",
|
|
13
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n readingTime: string\n }\n image: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n author,\n image,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"max-w-2xl\">\n <article class=\"flex flex-col gap-8\">\n <header class=\"flex flex-col items-center gap-6 text-center\">\n <div class=\"flex flex-col gap-4\">\n <h1 class=\"text-4xl leading-tight font-semibold tracking-tight text-balance sm:text-5xl\">\n {title}\n </h1>\n <p class=\"text-muted-foreground text-lg leading-8 text-balance\">\n {description}\n </p>\n </div>\n <div class=\"flex items-center gap-3\">\n <Avatar size=\"lg\" aria-hidden=\"true\">\n <AvatarImage src={author.image} />\n <AvatarFallback>{author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col text-left\">\n <p class=\"text-sm font-medium\">\n {author.name}{\" \"}\n <span class=\"text-muted-foreground font-normal\">\n · {author.date}\n </span>\n </p>\n <p class=\"text-muted-foreground text-xs\">{author.readingTime}</p>\n </div>\n </div>\n </header>\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[16/10] w-full rounded-xl object-cover\"\n widths={[640, 960, 1280]}\n sizes=\"(min-width: 42rem) 42rem, 100vw\"\n loading=\"eager\"\n fetchpriority=\"high\"\n />\n <div class=\"flex flex-col gap-6 text-base leading-8\">\n <slot />\n </div>\n </article>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/article/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"article"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/articles-1.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "articles-1",
|
|
4
|
-
"title": "Articles 1",
|
|
5
|
-
"description": "Collection and listing layouts for journals, magazines, and editorial feeds.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/avatar",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/articles-1.astro",
|
|
13
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n articles: {\n image: {\n src: ImageMetadata\n alt: string\n }\n category: string\n title: string\n description: string\n href?: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n }\n }[]\n}\n\nconst { class: className, title, description, articles, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"flex max-w-2xl flex-col gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <p class=\"text-muted-foreground text-base leading-7\">{description}</p>\n </div>\n\n <div class=\"grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\n {articles.map((article) => {\n const Wrapper = article.href != null ? \"a\" : \"div\"\n return (\n <Wrapper\n href={article.href}\n class={cn(\n \"flex h-full flex-col gap-4 rounded-xl p-4\",\n article.href != null &&\n \"group hover:bg-muted/50 focus-visible:ring-ring/50 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n )}\n >\n <Image\n src={article.image.src}\n alt={article.image.alt}\n class=\"-mx-4 -mt-4 aspect-[16/9] w-[calc(100%+2rem)] max-w-none rounded-lg object-cover transition-opacity group-hover:opacity-85\"\n widths={[480, 720, 960]}\n sizes=\"(min-width: 64rem) 26rem, (min-width: 48rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-col gap-2\">\n <p class=\"text-muted-foreground text-sm font-medium\">\n {article.category}\n </p>\n <h3 class=\"text-foreground line-clamp-2 text-xl leading-snug font-semibold\">\n {article.title}\n </h3>\n <p class=\"text-muted-foreground line-clamp-2 text-sm leading-6\">\n {article.description}\n </p>\n </div>\n <div class=\"mt-auto flex items-center gap-3\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={article.author.image} />\n <AvatarFallback>{article.author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col\">\n <p class=\"text-sm font-medium\">{article.author.name}</p>\n <p class=\"text-muted-foreground text-xs\">\n {article.author.date}\n </p>\n </div>\n </div>\n </Wrapper>\n )\n })}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/articles/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"articles"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/articles-2.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "articles-2",
|
|
4
|
-
"title": "Articles 2",
|
|
5
|
-
"description": "Collection and listing layouts for journals, magazines, and editorial feeds.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/avatar",
|
|
8
|
-
"@fulldev/badge",
|
|
9
|
-
"@fulldev/section"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/blocks/articles-2.astro",
|
|
14
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n featured: {\n image: {\n src: ImageMetadata\n alt: string\n }\n category: string\n title: string\n description: string\n href?: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n }\n }\n articles: {\n image: {\n src: ImageMetadata\n alt: string\n }\n category: string\n title: string\n description: string\n href?: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n }\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n featured,\n articles,\n ...props\n} = Astro.props\n\nconst FeaturedWrapper = featured.href != null ? \"a\" : \"div\"\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"mx-auto max-w-2xl text-center\">\n <h2 class=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </h2>\n <p class=\"text-muted-foreground mt-2 text-base leading-7 text-balance\">\n {description}\n </p>\n </div>\n\n <FeaturedWrapper\n href={featured.href}\n class={cn(\n \"grid gap-6 rounded-xl lg:grid-cols-2 lg:items-center lg:pr-4\",\n featured.href != null &&\n \"group hover:bg-muted/50 focus-visible:ring-ring/50 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n )}\n >\n <Image\n src={featured.image.src}\n alt={featured.image.alt}\n class=\"aspect-[4/3] rounded-lg object-cover transition-opacity group-hover:opacity-85\"\n widths={[640, 960, 1280]}\n sizes=\"(min-width: 80rem) 616px, (min-width: 64rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-col gap-4\">\n <Badge variant=\"outline\" class=\"w-fit\">\n {featured.category}\n </Badge>\n <h3 class=\"text-foreground text-2xl leading-tight font-semibold sm:text-3xl\">\n {featured.title}\n </h3>\n <p class=\"text-muted-foreground text-base leading-7\">\n {featured.description}\n </p>\n <div class=\"flex items-center gap-3\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={featured.author.image} />\n <AvatarFallback>{featured.author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col\">\n <p class=\"text-sm font-medium\">{featured.author.name}</p>\n <p class=\"text-muted-foreground text-xs\">{featured.author.date}</p>\n </div>\n </div>\n </div>\n </FeaturedWrapper>\n\n <div class=\"grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\n {articles.map((article) => {\n const Wrapper = article.href != null ? \"a\" : \"div\"\n return (\n <Wrapper\n href={article.href}\n class={cn(\n \"flex h-full flex-col gap-4 rounded-xl p-4\",\n article.href != null &&\n \"group hover:bg-muted/50 focus-visible:ring-ring/50 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n )}\n >\n <Image\n src={article.image.src}\n alt={article.image.alt}\n class=\"-mx-4 -mt-4 aspect-[16/9] w-[calc(100%+2rem)] max-w-none rounded-lg object-cover transition-opacity group-hover:opacity-85\"\n widths={[480, 720]}\n sizes=\"(min-width: 64rem) 26rem, (min-width: 48rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-col gap-2\">\n <p class=\"text-muted-foreground text-sm font-medium\">\n {article.category}\n </p>\n <h3 class=\"text-foreground line-clamp-2 text-lg leading-snug font-semibold\">\n {article.title}\n </h3>\n <p class=\"text-muted-foreground line-clamp-2 text-sm leading-6\">\n {article.description}\n </p>\n </div>\n <div class=\"mt-auto flex items-center gap-3\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={article.author.image} />\n <AvatarFallback>{article.author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col\">\n <p class=\"text-sm font-medium\">{article.author.name}</p>\n <p class=\"text-muted-foreground text-xs\">\n {article.author.date}\n </p>\n </div>\n </div>\n </Wrapper>\n )\n })}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
15
|
-
"type": "registry:block"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"docs": "https://ui.full.dev/blocks/articles/",
|
|
19
|
-
"categories": [
|
|
20
|
-
"articles"
|
|
21
|
-
],
|
|
22
|
-
"type": "registry:block"
|
|
23
|
-
}
|
package/public/r/articles-3.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "articles-3",
|
|
4
|
-
"title": "Articles 3",
|
|
5
|
-
"description": "Collection and listing layouts for journals, magazines, and editorial feeds.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/avatar",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/articles-3.astro",
|
|
13
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n articles: {\n image: {\n src: ImageMetadata\n alt: string\n }\n category: string\n title: string\n description: string\n href?: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n }\n }[]\n}\n\nconst { class: className, title, articles, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"flex flex-wrap items-end justify-between gap-4\">\n <div class=\"flex flex-col gap-4\">\n <SectionTitle>{title}</SectionTitle>\n </div>\n </div>\n\n <div class=\"grid gap-6 md:grid-cols-2 lg:grid-cols-4\">\n {articles.map((article) => {\n const Wrapper = article.href != null ? \"a\" : \"div\"\n return (\n <Wrapper\n href={article.href}\n class={cn(\n \"bg-muted/50 flex h-full flex-col gap-4 rounded-xl p-4\",\n article.href != null &&\n \"group hover:bg-muted focus-visible:ring-ring/50 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n )}\n >\n <Image\n src={article.image.src}\n alt={article.image.alt}\n class=\"-mx-4 -mt-4 aspect-[16/9] w-[calc(100%+2rem)] max-w-none rounded-lg object-cover transition-opacity group-hover:opacity-85\"\n widths={[480, 720]}\n sizes=\"(min-width: 64rem) 18rem, (min-width: 48rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-col gap-2\">\n <p class=\"text-muted-foreground text-sm font-medium\">\n {article.category}\n </p>\n <h3 class=\"text-foreground line-clamp-2 text-lg leading-snug font-semibold\">\n {article.title}\n </h3>\n <p class=\"text-muted-foreground line-clamp-2 text-sm leading-6\">\n {article.description}\n </p>\n </div>\n <div class=\"mt-auto flex items-center gap-3\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={article.author.image} />\n <AvatarFallback>{article.author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col\">\n <p class=\"text-sm font-medium\">{article.author.name}</p>\n <p class=\"text-muted-foreground text-xs\">\n {article.author.date}\n </p>\n </div>\n </div>\n </Wrapper>\n )\n })}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/articles/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"articles"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/articles-4.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "articles-4",
|
|
4
|
-
"title": "Articles 4",
|
|
5
|
-
"description": "Collection and listing layouts for journals, magazines, and editorial feeds.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/avatar",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/articles-4.astro",
|
|
13
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n articles: {\n category: string\n title: string\n description: string\n href?: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n }\n }[]\n}\n\nconst { class: className, title, description, articles, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"mx-auto max-w-2xl text-center\">\n <h2 class=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </h2>\n <p class=\"text-muted-foreground mt-2 text-base leading-7 text-balance\">\n {description}\n </p>\n </div>\n\n <div class=\"grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\n {articles.map((article) => {\n const Wrapper = article.href != null ? \"a\" : \"div\"\n return (\n <Wrapper\n href={article.href}\n class={cn(\n \"flex h-full flex-col gap-4 rounded-xl border p-6\",\n article.href != null &&\n \"group hover:bg-muted/50 focus-visible:ring-ring/50 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n )}\n >\n <div class=\"flex flex-col gap-2\">\n <p class=\"text-muted-foreground text-sm font-medium\">\n {article.category}\n </p>\n <h3 class=\"text-foreground line-clamp-2 text-xl leading-snug font-semibold\">\n {article.title}\n </h3>\n <p class=\"text-muted-foreground line-clamp-2 text-sm leading-6\">\n {article.description}\n </p>\n </div>\n <div class=\"mt-auto flex items-center gap-3\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={article.author.image} />\n <AvatarFallback>{article.author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col\">\n <p class=\"text-sm font-medium\">{article.author.name}</p>\n <p class=\"text-muted-foreground text-xs\">\n {article.author.date}\n </p>\n </div>\n </div>\n </Wrapper>\n )\n })}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/articles/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"articles"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|