@pylonsync/create-pylon 0.22.75 → 0.22.77
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/bin/create-pylon.js +24 -74
- package/package.json +1 -1
- package/skill/SKILL.md +7 -11
- package/templates/_root/README.md +2 -8
- package/templates/agency/AGENTS.md +17 -0
- package/templates/agency/app/globals.css +5 -1
- package/templates/agency/app/internal/components/page.tsx +248 -0
- package/templates/agency/app/internal/design/page.tsx +169 -0
- package/templates/agency/app/internal/layout.tsx +89 -0
- package/templates/agency/app/internal/sections.ts +26 -0
- package/templates/agency/app/internal/showcase.tsx +43 -0
- package/templates/agency/app/robots.ts +1 -1
- package/templates/agency/components/ui/button.tsx +22 -20
- package/templates/agency/components/ui/dialog.tsx +77 -64
- package/templates/agency/components/ui/input.tsx +5 -5
- package/templates/agency/components/ui/label.tsx +5 -3
- package/templates/agency/components/ui/select.tsx +81 -19
- package/templates/agency/components/ui/textarea.tsx +5 -3
- package/templates/agency/lib/utils.ts +4 -4
- package/templates/agency/package.json +3 -3
- package/templates/ai-chat/AGENTS.md +17 -0
- package/templates/ai-chat/app/globals.css +5 -1
- package/templates/ai-chat/app/internal/components/page.tsx +248 -0
- package/templates/ai-chat/app/internal/design/page.tsx +173 -0
- package/templates/ai-chat/app/internal/layout.tsx +89 -0
- package/templates/ai-chat/app/internal/sections.ts +26 -0
- package/templates/ai-chat/app/internal/showcase.tsx +43 -0
- package/templates/ai-chat/app/robots.ts +1 -1
- package/templates/ai-chat/components/ui/button.tsx +22 -20
- package/templates/ai-chat/components/ui/dialog.tsx +77 -64
- package/templates/ai-chat/components/ui/input.tsx +5 -5
- package/templates/ai-chat/components/ui/label.tsx +5 -3
- package/templates/ai-chat/components/ui/select.tsx +81 -19
- package/templates/ai-chat/components/ui/textarea.tsx +5 -3
- package/templates/ai-chat/lib/utils.ts +4 -4
- package/templates/ai-chat/package.json +4 -4
- package/templates/ai-studio/AGENTS.md +17 -0
- package/templates/ai-studio/app/globals.css +5 -1
- package/templates/ai-studio/app/internal/components/page.tsx +248 -0
- package/templates/ai-studio/app/internal/design/page.tsx +168 -0
- package/templates/ai-studio/app/internal/layout.tsx +89 -0
- package/templates/ai-studio/app/internal/sections.ts +26 -0
- package/templates/ai-studio/app/internal/showcase.tsx +43 -0
- package/templates/ai-studio/app/robots.ts +1 -1
- package/templates/ai-studio/components/ui/button.tsx +22 -20
- package/templates/ai-studio/components/ui/dialog.tsx +77 -64
- package/templates/ai-studio/components/ui/input.tsx +5 -5
- package/templates/ai-studio/components/ui/label.tsx +5 -3
- package/templates/ai-studio/components/ui/select.tsx +81 -19
- package/templates/ai-studio/components/ui/textarea.tsx +5 -3
- package/templates/ai-studio/lib/utils.ts +4 -4
- package/templates/ai-studio/package.json +4 -4
- package/templates/barebones/AGENTS.md +17 -0
- package/templates/barebones/README.md +6 -3
- package/templates/barebones/app/(app)/layout.tsx +16 -0
- package/templates/barebones/app/{page.tsx → (app)/page.tsx} +2 -2
- package/templates/barebones/app/error.tsx +1 -1
- package/templates/barebones/app/globals.css +9 -7
- package/templates/barebones/app/internal/components/page.tsx +248 -0
- package/templates/barebones/app/internal/design/page.tsx +165 -0
- package/templates/barebones/app/internal/layout.tsx +89 -0
- package/templates/barebones/app/internal/sections.ts +26 -0
- package/templates/barebones/app/internal/showcase.tsx +43 -0
- package/templates/barebones/app/layout.tsx +4 -6
- package/templates/barebones/app/not-found.tsx +2 -4
- package/templates/barebones/app/robots.ts +1 -1
- package/templates/barebones/components/ui/button.tsx +22 -20
- package/templates/barebones/components/ui/dialog.tsx +77 -64
- package/templates/barebones/components/ui/input.tsx +5 -5
- package/templates/barebones/components/ui/label.tsx +5 -3
- package/templates/barebones/components/ui/select.tsx +81 -19
- package/templates/barebones/components/ui/textarea.tsx +5 -3
- package/templates/barebones/lib/utils.ts +4 -4
- package/templates/barebones/package.json +3 -3
- package/templates/chat/AGENTS.md +17 -0
- package/templates/chat/app/globals.css +7 -5
- package/templates/chat/app/internal/components/page.tsx +248 -0
- package/templates/chat/app/internal/design/page.tsx +170 -0
- package/templates/chat/app/internal/layout.tsx +89 -0
- package/templates/chat/app/internal/sections.ts +26 -0
- package/templates/chat/app/internal/showcase.tsx +43 -0
- package/templates/chat/app/not-found.tsx +1 -3
- package/templates/chat/app/robots.ts +1 -1
- package/templates/chat/components/ui/button.tsx +22 -20
- package/templates/chat/components/ui/dialog.tsx +77 -64
- package/templates/chat/components/ui/input.tsx +5 -5
- package/templates/chat/components/ui/label.tsx +5 -3
- package/templates/chat/components/ui/select.tsx +81 -19
- package/templates/chat/components/ui/textarea.tsx +5 -3
- package/templates/chat/lib/utils.ts +4 -4
- package/templates/chat/package.json +4 -4
- package/templates/consumer/AGENTS.md +17 -0
- package/templates/consumer/app/globals.css +9 -7
- package/templates/consumer/app/internal/components/page.tsx +248 -0
- package/templates/consumer/app/internal/design/page.tsx +167 -0
- package/templates/consumer/app/internal/layout.tsx +89 -0
- package/templates/consumer/app/internal/sections.ts +26 -0
- package/templates/consumer/app/internal/showcase.tsx +43 -0
- package/templates/consumer/app/robots.ts +1 -1
- package/templates/consumer/components/ui/button.tsx +22 -20
- package/templates/consumer/components/ui/dialog.tsx +77 -64
- package/templates/consumer/components/ui/input.tsx +5 -5
- package/templates/consumer/components/ui/label.tsx +5 -3
- package/templates/consumer/components/ui/select.tsx +81 -19
- package/templates/consumer/components/ui/textarea.tsx +5 -3
- package/templates/consumer/lib/utils.ts +4 -4
- package/templates/consumer/package.json +4 -4
- package/templates/creator/AGENTS.md +17 -0
- package/templates/creator/app/globals.css +5 -1
- package/templates/creator/app/internal/components/page.tsx +248 -0
- package/templates/creator/app/internal/design/page.tsx +171 -0
- package/templates/creator/app/internal/layout.tsx +89 -0
- package/templates/creator/app/internal/sections.ts +26 -0
- package/templates/creator/app/internal/showcase.tsx +43 -0
- package/templates/creator/app/robots.ts +1 -1
- package/templates/creator/components/ui/button.tsx +22 -20
- package/templates/creator/components/ui/dialog.tsx +77 -64
- package/templates/creator/components/ui/input.tsx +5 -5
- package/templates/creator/components/ui/label.tsx +5 -3
- package/templates/creator/components/ui/select.tsx +81 -19
- package/templates/creator/components/ui/textarea.tsx +5 -3
- package/templates/creator/lib/utils.ts +4 -4
- package/templates/creator/package.json +4 -4
- package/templates/crm/AGENTS.md +17 -0
- package/templates/crm/README.md +3 -4
- package/templates/crm/app/deals/[id]/deal-view.tsx +9 -14
- package/templates/crm/app/globals.css +5 -2
- package/templates/crm/app/internal/components/page.tsx +282 -0
- package/templates/crm/app/internal/design/page.tsx +163 -0
- package/templates/crm/app/internal/layout.tsx +89 -0
- package/templates/crm/app/internal/sections.ts +27 -0
- package/templates/crm/app/internal/showcase.tsx +43 -0
- package/templates/crm/app/not-found.tsx +1 -3
- package/templates/crm/app/robots.ts +1 -1
- package/templates/crm/components/activity-timeline.tsx +6 -8
- package/templates/crm/components/app-shell.tsx +25 -26
- package/templates/crm/components/deal-dialog.tsx +15 -17
- package/templates/crm/components/record-dialog.tsx +10 -11
- package/templates/crm/components/ui/button.tsx +22 -20
- package/templates/crm/components/ui/dialog.tsx +77 -64
- package/templates/crm/components/ui/input.tsx +5 -5
- package/templates/crm/components/ui/label.tsx +5 -3
- package/templates/crm/components/ui/select.tsx +81 -19
- package/templates/crm/components/ui/sheet.tsx +64 -0
- package/templates/crm/components/ui/textarea.tsx +5 -3
- package/templates/crm/lib/utils.ts +4 -4
- package/templates/crm/package.json +4 -4
- package/templates/directory/AGENTS.md +17 -0
- package/templates/directory/app/globals.css +5 -1
- package/templates/directory/app/internal/components/page.tsx +248 -0
- package/templates/directory/app/internal/design/page.tsx +168 -0
- package/templates/directory/app/internal/layout.tsx +89 -0
- package/templates/directory/app/internal/sections.ts +26 -0
- package/templates/directory/app/internal/showcase.tsx +43 -0
- package/templates/directory/app/robots.ts +1 -1
- package/templates/directory/components/ui/button.tsx +22 -20
- package/templates/directory/components/ui/dialog.tsx +77 -64
- package/templates/directory/components/ui/input.tsx +5 -5
- package/templates/directory/components/ui/label.tsx +5 -3
- package/templates/directory/components/ui/select.tsx +81 -19
- package/templates/directory/components/ui/textarea.tsx +5 -3
- package/templates/directory/lib/utils.ts +4 -4
- package/templates/directory/package.json +4 -4
- package/templates/helpdesk/AGENTS.md +17 -0
- package/templates/helpdesk/README.md +1 -1
- package/templates/helpdesk/app/globals.css +5 -2
- package/templates/helpdesk/app/internal/components/page.tsx +282 -0
- package/templates/helpdesk/app/internal/design/page.tsx +163 -0
- package/templates/helpdesk/app/internal/layout.tsx +89 -0
- package/templates/helpdesk/app/internal/sections.ts +27 -0
- package/templates/helpdesk/app/internal/showcase.tsx +43 -0
- package/templates/helpdesk/app/not-found.tsx +1 -3
- package/templates/helpdesk/app/robots.ts +1 -1
- package/templates/helpdesk/app/tickets/[id]/ticket-view.tsx +22 -29
- package/templates/helpdesk/components/app-shell.tsx +25 -26
- package/templates/helpdesk/components/new-ticket-dialog.tsx +15 -17
- package/templates/helpdesk/components/record-dialog.tsx +10 -11
- package/templates/helpdesk/components/ui/button.tsx +22 -20
- package/templates/helpdesk/components/ui/dialog.tsx +77 -64
- package/templates/helpdesk/components/ui/input.tsx +5 -5
- package/templates/helpdesk/components/ui/label.tsx +5 -3
- package/templates/helpdesk/components/ui/select.tsx +81 -19
- package/templates/helpdesk/components/ui/sheet.tsx +64 -0
- package/templates/helpdesk/components/ui/textarea.tsx +5 -3
- package/templates/helpdesk/lib/utils.ts +4 -4
- package/templates/helpdesk/package.json +4 -4
- package/templates/imessage/AGENTS.md +17 -0
- package/templates/imessage/app/globals.css +4 -0
- package/templates/imessage/app/internal/components/page.tsx +248 -0
- package/templates/imessage/app/internal/design/page.tsx +163 -0
- package/templates/imessage/app/internal/layout.tsx +89 -0
- package/templates/imessage/app/internal/sections.ts +26 -0
- package/templates/imessage/app/internal/showcase.tsx +43 -0
- package/templates/imessage/components/ui/button.tsx +22 -20
- package/templates/imessage/components/ui/dialog.tsx +77 -64
- package/templates/imessage/components/ui/input.tsx +5 -5
- package/templates/imessage/components/ui/label.tsx +5 -3
- package/templates/imessage/components/ui/select.tsx +81 -19
- package/templates/imessage/components/ui/textarea.tsx +5 -3
- package/templates/imessage/lib/utils.ts +4 -4
- package/templates/imessage/package.json +4 -4
- package/templates/inventory/AGENTS.md +17 -0
- package/templates/inventory/README.md +1 -1
- package/templates/inventory/app/globals.css +5 -2
- package/templates/inventory/app/internal/components/page.tsx +282 -0
- package/templates/inventory/app/internal/design/page.tsx +163 -0
- package/templates/inventory/app/internal/layout.tsx +89 -0
- package/templates/inventory/app/internal/sections.ts +27 -0
- package/templates/inventory/app/internal/showcase.tsx +43 -0
- package/templates/inventory/app/not-found.tsx +1 -3
- package/templates/inventory/app/products/[id]/product-view.tsx +1 -3
- package/templates/inventory/app/robots.ts +1 -1
- package/templates/inventory/components/app-shell.tsx +25 -26
- package/templates/inventory/components/movement-dialog.tsx +15 -17
- package/templates/inventory/components/record-dialog.tsx +10 -11
- package/templates/inventory/components/ui/button.tsx +22 -20
- package/templates/inventory/components/ui/dialog.tsx +77 -64
- package/templates/inventory/components/ui/input.tsx +5 -5
- package/templates/inventory/components/ui/label.tsx +5 -3
- package/templates/inventory/components/ui/select.tsx +81 -19
- package/templates/inventory/components/ui/sheet.tsx +64 -0
- package/templates/inventory/components/ui/textarea.tsx +5 -3
- package/templates/inventory/lib/utils.ts +4 -4
- package/templates/inventory/package.json +4 -4
- package/templates/inventory/tests/components.test.tsx +27 -14
- package/templates/invoices/AGENTS.md +17 -0
- package/templates/invoices/README.md +1 -1
- package/templates/invoices/app/globals.css +5 -2
- package/templates/invoices/app/internal/components/page.tsx +282 -0
- package/templates/invoices/app/internal/design/page.tsx +163 -0
- package/templates/invoices/app/internal/layout.tsx +89 -0
- package/templates/invoices/app/internal/sections.ts +27 -0
- package/templates/invoices/app/internal/showcase.tsx +43 -0
- package/templates/invoices/app/invoices/[id]/invoice-view.tsx +20 -26
- package/templates/invoices/app/not-found.tsx +1 -3
- package/templates/invoices/app/robots.ts +1 -1
- package/templates/invoices/components/app-shell.tsx +25 -26
- package/templates/invoices/components/payment-dialog.tsx +6 -8
- package/templates/invoices/components/record-dialog.tsx +10 -11
- package/templates/invoices/components/ui/button.tsx +22 -20
- package/templates/invoices/components/ui/dialog.tsx +77 -64
- package/templates/invoices/components/ui/input.tsx +5 -5
- package/templates/invoices/components/ui/label.tsx +5 -3
- package/templates/invoices/components/ui/select.tsx +81 -19
- package/templates/invoices/components/ui/sheet.tsx +64 -0
- package/templates/invoices/components/ui/textarea.tsx +5 -3
- package/templates/invoices/lib/utils.ts +4 -4
- package/templates/invoices/package.json +4 -4
- package/templates/local-service/AGENTS.md +17 -0
- package/templates/local-service/app/globals.css +5 -1
- package/templates/local-service/app/internal/components/page.tsx +248 -0
- package/templates/local-service/app/internal/design/page.tsx +170 -0
- package/templates/local-service/app/internal/layout.tsx +89 -0
- package/templates/local-service/app/internal/sections.ts +26 -0
- package/templates/local-service/app/internal/showcase.tsx +43 -0
- package/templates/local-service/app/robots.ts +1 -1
- package/templates/local-service/components/ui/button.tsx +22 -20
- package/templates/local-service/components/ui/dialog.tsx +77 -64
- package/templates/local-service/components/ui/input.tsx +5 -5
- package/templates/local-service/components/ui/label.tsx +5 -3
- package/templates/local-service/components/ui/select.tsx +81 -19
- package/templates/local-service/components/ui/textarea.tsx +5 -3
- package/templates/local-service/lib/utils.ts +4 -4
- package/templates/local-service/package.json +4 -4
- package/templates/marketplace/AGENTS.md +17 -0
- package/templates/marketplace/README.md +8 -5
- package/templates/marketplace/app/(market)/layout.tsx +113 -0
- package/templates/marketplace/app/{listing → (market)/listing}/[id]/page.tsx +7 -7
- package/templates/marketplace/app/{me → (market)/me}/page.tsx +1 -1
- package/templates/marketplace/app/{not-found.tsx → (market)/not-found.tsx} +1 -3
- package/templates/marketplace/app/{page.tsx → (market)/page.tsx} +5 -5
- package/templates/marketplace/app/{sell → (market)/sell}/page.tsx +1 -1
- package/templates/marketplace/app/error.tsx +1 -3
- package/templates/marketplace/app/globals.css +4 -0
- package/templates/marketplace/app/internal/components/page.tsx +335 -0
- package/templates/marketplace/app/internal/design/page.tsx +158 -0
- package/templates/marketplace/app/internal/layout.tsx +89 -0
- package/templates/marketplace/app/internal/sections.ts +30 -0
- package/templates/marketplace/app/internal/showcase.tsx +43 -0
- package/templates/marketplace/app/layout.tsx +4 -100
- package/templates/marketplace/app/robots.ts +1 -1
- package/templates/marketplace/client/ListingCard.tsx +1 -1
- package/templates/marketplace/components/ui/button.tsx +22 -21
- package/templates/marketplace/components/ui/dialog.tsx +77 -64
- package/templates/marketplace/components/ui/input.tsx +5 -5
- package/templates/marketplace/components/ui/label.tsx +5 -4
- package/templates/marketplace/components/ui/select.tsx +101 -0
- package/templates/marketplace/components/ui/separator.tsx +5 -8
- package/templates/marketplace/components/ui/textarea.tsx +5 -3
- package/templates/marketplace/lib/utils.ts +4 -4
- package/templates/marketplace/package.json +3 -5
- package/templates/projects/AGENTS.md +17 -0
- package/templates/projects/README.md +1 -1
- package/templates/projects/app/globals.css +5 -2
- package/templates/projects/app/internal/components/page.tsx +282 -0
- package/templates/projects/app/internal/design/page.tsx +163 -0
- package/templates/projects/app/internal/layout.tsx +89 -0
- package/templates/projects/app/internal/sections.ts +27 -0
- package/templates/projects/app/internal/showcase.tsx +43 -0
- package/templates/projects/app/not-found.tsx +1 -3
- package/templates/projects/app/projects/[id]/project-view.tsx +9 -14
- package/templates/projects/app/robots.ts +1 -1
- package/templates/projects/components/app-shell.tsx +25 -26
- package/templates/projects/components/record-dialog.tsx +10 -11
- package/templates/projects/components/time-dialog.tsx +6 -8
- package/templates/projects/components/ui/button.tsx +22 -20
- package/templates/projects/components/ui/dialog.tsx +77 -64
- package/templates/projects/components/ui/input.tsx +5 -5
- package/templates/projects/components/ui/label.tsx +5 -3
- package/templates/projects/components/ui/select.tsx +81 -19
- package/templates/projects/components/ui/sheet.tsx +64 -0
- package/templates/projects/components/ui/textarea.tsx +5 -3
- package/templates/projects/lib/utils.ts +4 -4
- package/templates/projects/package.json +4 -4
- package/templates/restaurant/AGENTS.md +17 -0
- package/templates/restaurant/app/globals.css +5 -1
- package/templates/restaurant/app/internal/components/page.tsx +248 -0
- package/templates/restaurant/app/internal/design/page.tsx +168 -0
- package/templates/restaurant/app/internal/layout.tsx +89 -0
- package/templates/restaurant/app/internal/sections.ts +26 -0
- package/templates/restaurant/app/internal/showcase.tsx +43 -0
- package/templates/restaurant/app/robots.ts +1 -1
- package/templates/restaurant/components/ui/button.tsx +22 -20
- package/templates/restaurant/components/ui/dialog.tsx +77 -64
- package/templates/restaurant/components/ui/input.tsx +5 -5
- package/templates/restaurant/components/ui/label.tsx +5 -3
- package/templates/restaurant/components/ui/select.tsx +81 -19
- package/templates/restaurant/components/ui/textarea.tsx +5 -3
- package/templates/restaurant/lib/utils.ts +4 -4
- package/templates/restaurant/package.json +4 -4
- package/templates/saas/AGENTS.md +17 -0
- package/templates/saas/README.md +1 -1
- package/templates/saas/app/(marketing)/not-found.tsx +1 -3
- package/templates/saas/app/dashboard/board-client.tsx +32 -42
- package/templates/saas/app/globals.css +9 -7
- package/templates/saas/app/internal/components/page.tsx +282 -0
- package/templates/saas/app/internal/design/page.tsx +168 -0
- package/templates/saas/app/internal/layout.tsx +89 -0
- package/templates/saas/app/internal/sections.ts +27 -0
- package/templates/saas/app/internal/showcase.tsx +43 -0
- package/templates/saas/app/robots.ts +1 -1
- package/templates/saas/components/dashboard-shell.tsx +28 -21
- package/templates/saas/components/ui/button.tsx +22 -20
- package/templates/saas/components/ui/dialog.tsx +77 -64
- package/templates/saas/components/ui/input.tsx +5 -5
- package/templates/saas/components/ui/label.tsx +5 -3
- package/templates/saas/components/ui/select.tsx +81 -19
- package/templates/saas/components/ui/sheet.tsx +64 -0
- package/templates/saas/components/ui/textarea.tsx +5 -3
- package/templates/saas/lib/utils.ts +4 -4
- package/templates/saas/package.json +4 -4
- package/templates/shop/AGENTS.md +17 -0
- package/templates/shop/app/globals.css +5 -1
- package/templates/shop/app/internal/components/page.tsx +248 -0
- package/templates/shop/app/internal/design/page.tsx +173 -0
- package/templates/shop/app/internal/layout.tsx +89 -0
- package/templates/shop/app/internal/sections.ts +26 -0
- package/templates/shop/app/internal/showcase.tsx +43 -0
- package/templates/shop/app/robots.ts +1 -1
- package/templates/shop/components/ui/button.tsx +22 -20
- package/templates/shop/components/ui/dialog.tsx +77 -64
- package/templates/shop/components/ui/input.tsx +5 -5
- package/templates/shop/components/ui/label.tsx +5 -3
- package/templates/shop/components/ui/select.tsx +81 -19
- package/templates/shop/components/ui/textarea.tsx +5 -3
- package/templates/shop/lib/utils.ts +4 -4
- package/templates/shop/package.json +4 -4
- package/templates/todo/AGENTS.md +17 -0
- package/templates/todo/README.md +7 -4
- package/templates/todo/app/(app)/layout.tsx +16 -0
- package/templates/todo/app/{page.tsx → (app)/page.tsx} +2 -2
- package/templates/todo/app/error.tsx +1 -1
- package/templates/todo/app/globals.css +9 -7
- package/templates/todo/app/internal/components/page.tsx +248 -0
- package/templates/todo/app/internal/design/page.tsx +165 -0
- package/templates/todo/app/internal/layout.tsx +89 -0
- package/templates/todo/app/internal/sections.ts +26 -0
- package/templates/todo/app/internal/showcase.tsx +43 -0
- package/templates/todo/app/layout.tsx +5 -7
- package/templates/todo/app/not-found.tsx +2 -4
- package/templates/todo/app/robots.ts +1 -1
- package/templates/todo/components/ui/button.tsx +22 -20
- package/templates/todo/components/ui/dialog.tsx +77 -64
- package/templates/todo/components/ui/input.tsx +5 -5
- package/templates/todo/components/ui/label.tsx +5 -3
- package/templates/todo/components/ui/select.tsx +81 -19
- package/templates/todo/components/ui/textarea.tsx +5 -3
- package/templates/todo/lib/utils.ts +4 -4
- package/templates/todo/package.json +4 -4
- package/templates/waitlist/AGENTS.md +17 -0
- package/templates/waitlist/app/globals.css +5 -1
- package/templates/waitlist/app/internal/components/page.tsx +248 -0
- package/templates/waitlist/app/internal/design/page.tsx +173 -0
- package/templates/waitlist/app/internal/layout.tsx +89 -0
- package/templates/waitlist/app/internal/sections.ts +26 -0
- package/templates/waitlist/app/internal/showcase.tsx +43 -0
- package/templates/waitlist/app/robots.ts +1 -1
- package/templates/waitlist/components/ui/button.tsx +22 -20
- package/templates/waitlist/components/ui/dialog.tsx +77 -64
- package/templates/waitlist/components/ui/input.tsx +5 -5
- package/templates/waitlist/components/ui/label.tsx +5 -3
- package/templates/waitlist/components/ui/select.tsx +81 -19
- package/templates/waitlist/components/ui/textarea.tsx +5 -3
- package/templates/waitlist/lib/utils.ts +4 -4
- package/templates/waitlist/package.json +4 -4
- package/templates/agency/components.json +0 -20
- package/templates/ai-chat/components.json +0 -20
- package/templates/ai-studio/components.json +0 -20
- package/templates/backend/b2b/apps/api/functions/archiveProject.ts +0 -13
- package/templates/backend/b2b/apps/api/functions/createOrg.ts +0 -44
- package/templates/backend/b2b/apps/api/functions/createProject.ts +0 -22
- package/templates/backend/b2b/apps/api/functions/inviteMember.ts +0 -41
- package/templates/backend/b2b/apps/api/functions/myOrgs.ts +0 -37
- package/templates/backend/b2b/apps/api/functions/orgMembers.ts +0 -13
- package/templates/backend/b2b/apps/api/functions/orgProjects.ts +0 -15
- package/templates/backend/b2b/apps/api/functions/removeMember.ts +0 -25
- package/templates/backend/b2b/apps/api/functions/setMemberRole.ts +0 -33
- package/templates/backend/b2b/apps/api/package.json +0 -20
- package/templates/backend/b2b/apps/api/schema.ts +0 -182
- package/templates/backend/b2b/apps/api/tsconfig.json +0 -13
- package/templates/backend/barebones/apps/api/functions/createWidget.ts +0 -26
- package/templates/backend/barebones/apps/api/functions/listWidgets.ts +0 -19
- package/templates/backend/barebones/apps/api/package.json +0 -20
- package/templates/backend/barebones/apps/api/schema.ts +0 -64
- package/templates/backend/barebones/apps/api/tsconfig.json +0 -13
- package/templates/backend/chat/apps/api/functions/createRoom.ts +0 -32
- package/templates/backend/chat/apps/api/functions/listRooms.ts +0 -15
- package/templates/backend/chat/apps/api/functions/roomMessages.ts +0 -20
- package/templates/backend/chat/apps/api/functions/sendMessage.ts +0 -37
- package/templates/backend/chat/apps/api/package.json +0 -20
- package/templates/backend/chat/apps/api/schema.ts +0 -99
- package/templates/backend/chat/apps/api/tsconfig.json +0 -13
- package/templates/backend/todo/apps/api/functions/addTodo.ts +0 -31
- package/templates/backend/todo/apps/api/functions/deleteTodo.ts +0 -15
- package/templates/backend/todo/apps/api/functions/editTodo.ts +0 -17
- package/templates/backend/todo/apps/api/functions/listTodos.ts +0 -25
- package/templates/backend/todo/apps/api/functions/reorderTodo.ts +0 -15
- package/templates/backend/todo/apps/api/functions/toggleTodo.ts +0 -14
- package/templates/backend/todo/apps/api/package.json +0 -20
- package/templates/backend/todo/apps/api/schema.ts +0 -88
- package/templates/backend/todo/apps/api/tsconfig.json +0 -13
- package/templates/barebones/components.json +0 -20
- package/templates/chat/components.json +0 -20
- package/templates/consumer/components.json +0 -20
- package/templates/creator/components.json +0 -20
- package/templates/crm/components.json +0 -20
- package/templates/directory/components.json +0 -20
- package/templates/expo/barebones/apps/expo/App.tsx +0 -166
- package/templates/expo/barebones/apps/expo/app.json +0 -31
- package/templates/expo/barebones/apps/expo/babel.config.js +0 -6
- package/templates/expo/barebones/apps/expo/package.json +0 -31
- package/templates/expo/barebones/apps/expo/tsconfig.json +0 -16
- package/templates/expo/chat/apps/expo/App.tsx +0 -391
- package/templates/expo/chat/apps/expo/app.json +0 -25
- package/templates/expo/chat/apps/expo/babel.config.js +0 -6
- package/templates/expo/chat/apps/expo/package.json +0 -32
- package/templates/expo/chat/apps/expo/tsconfig.json +0 -16
- package/templates/expo/todo/apps/expo/App.tsx +0 -287
- package/templates/expo/todo/apps/expo/app.json +0 -25
- package/templates/expo/todo/apps/expo/babel.config.js +0 -6
- package/templates/expo/todo/apps/expo/package.json +0 -31
- package/templates/expo/todo/apps/expo/tsconfig.json +0 -16
- package/templates/helpdesk/components.json +0 -20
- package/templates/imessage/components.json +0 -20
- package/templates/inventory/components.json +0 -20
- package/templates/invoices/components.json +0 -20
- package/templates/ios/barebones/apps/ios/Package.swift +0 -34
- package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/ContentView.swift +0 -98
- package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -17
- package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -34
- package/templates/ios/barebones/apps/ios/project.yml +0 -42
- package/templates/ios/chat/apps/ios/Package.swift +0 -24
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/ChatRootView.swift +0 -116
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -26
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/RoomView.swift +0 -136
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -58
- package/templates/ios/chat/apps/ios/project.yml +0 -44
- package/templates/ios/todo/apps/ios/Package.swift +0 -23
- package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -18
- package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/TodoListView.swift +0 -230
- package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -28
- package/templates/ios/todo/apps/ios/project.yml +0 -32
- package/templates/local-service/components.json +0 -20
- package/templates/mac/b2b/apps/mac/Package.swift +0 -22
- package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -15
- package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/OrgPickerView.swift +0 -178
- package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
- package/templates/mac/b2b/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/b2b/apps/mac/project.yml +0 -34
- package/templates/mac/barebones/apps/mac/Package.swift +0 -33
- package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/ContentView.swift +0 -104
- package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -17
- package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
- package/templates/mac/barebones/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/barebones/apps/mac/project.yml +0 -34
- package/templates/mac/chat/apps/mac/Package.swift +0 -34
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/ChatRootView.swift +0 -143
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -26
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/RoomView.swift +0 -136
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -58
- package/templates/mac/chat/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/chat/apps/mac/project.yml +0 -36
- package/templates/mac/consumer/apps/mac/Package.swift +0 -34
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/FeedView.swift +0 -199
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -34
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/ProfileSetupView.swift +0 -68
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/RootView.swift +0 -40
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -59
- package/templates/mac/consumer/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/consumer/apps/mac/project.yml +0 -36
- package/templates/mac/todo/apps/mac/Package.swift +0 -33
- package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -19
- package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/TodoListView.swift +0 -244
- package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
- package/templates/mac/todo/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/todo/apps/mac/project.yml +0 -34
- package/templates/marketplace/components/ui/native-select.tsx +0 -62
- package/templates/marketplace/components.json +0 -20
- package/templates/projects/components.json +0 -20
- package/templates/restaurant/components.json +0 -20
- package/templates/saas/components.json +0 -20
- package/templates/shop/components.json +0 -20
- package/templates/todo/components.json +0 -20
- package/templates/ui/packages/ui/package.json +0 -26
- package/templates/ui/packages/ui/src/button.tsx +0 -44
- package/templates/ui/packages/ui/src/card.tsx +0 -39
- package/templates/ui/packages/ui/src/cn.ts +0 -12
- package/templates/ui/packages/ui/src/index.ts +0 -4
- package/templates/ui/packages/ui/src/input.tsx +0 -19
- package/templates/ui/packages/ui/tsconfig.json +0 -15
- package/templates/vite/todo/apps/web/index.html +0 -12
- package/templates/vite/todo/apps/web/package.json +0 -31
- package/templates/vite/todo/apps/web/src/App.tsx +0 -16
- package/templates/vite/todo/apps/web/src/components/TodoList.tsx +0 -281
- package/templates/vite/todo/apps/web/src/index.css +0 -14
- package/templates/vite/todo/apps/web/src/main.tsx +0 -20
- package/templates/vite/todo/apps/web/tsconfig.json +0 -24
- package/templates/vite/todo/apps/web/vite.config.ts +0 -41
- package/templates/waitlist/components.json +0 -20
- package/templates/web/b2b/apps/web/next-env.d.ts +0 -2
- package/templates/web/b2b/apps/web/next.config.ts +0 -24
- package/templates/web/b2b/apps/web/package.json +0 -27
- package/templates/web/b2b/apps/web/postcss.config.mjs +0 -3
- package/templates/web/b2b/apps/web/src/app/components/OrgPicker.tsx +0 -171
- package/templates/web/b2b/apps/web/src/app/globals.css +0 -6
- package/templates/web/b2b/apps/web/src/app/layout.tsx +0 -21
- package/templates/web/b2b/apps/web/src/app/page.tsx +0 -39
- package/templates/web/b2b/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/b2b/apps/web/tsconfig.json +0 -26
- package/templates/web/barebones/apps/web/next-env.d.ts +0 -2
- package/templates/web/barebones/apps/web/next.config.ts +0 -40
- package/templates/web/barebones/apps/web/package.json +0 -27
- package/templates/web/barebones/apps/web/postcss.config.mjs +0 -3
- package/templates/web/barebones/apps/web/src/app/components/WidgetList.tsx +0 -81
- package/templates/web/barebones/apps/web/src/app/globals.css +0 -6
- package/templates/web/barebones/apps/web/src/app/layout.tsx +0 -21
- package/templates/web/barebones/apps/web/src/app/page.tsx +0 -43
- package/templates/web/barebones/apps/web/src/lib/pylon.ts +0 -14
- package/templates/web/barebones/apps/web/tsconfig.json +0 -26
- package/templates/web/chat/apps/web/next-env.d.ts +0 -2
- package/templates/web/chat/apps/web/next.config.ts +0 -24
- package/templates/web/chat/apps/web/package.json +0 -27
- package/templates/web/chat/apps/web/postcss.config.mjs +0 -3
- package/templates/web/chat/apps/web/src/app/components/ChatRoom.tsx +0 -231
- package/templates/web/chat/apps/web/src/app/globals.css +0 -6
- package/templates/web/chat/apps/web/src/app/layout.tsx +0 -22
- package/templates/web/chat/apps/web/src/app/page.tsx +0 -12
- package/templates/web/chat/apps/web/src/app/providers.tsx +0 -25
- package/templates/web/chat/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/chat/apps/web/tsconfig.json +0 -26
- package/templates/web/consumer/apps/web/next-env.d.ts +0 -2
- package/templates/web/consumer/apps/web/next.config.ts +0 -24
- package/templates/web/consumer/apps/web/package.json +0 -27
- package/templates/web/consumer/apps/web/postcss.config.mjs +0 -3
- package/templates/web/consumer/apps/web/src/app/components/Feed.tsx +0 -315
- package/templates/web/consumer/apps/web/src/app/globals.css +0 -6
- package/templates/web/consumer/apps/web/src/app/layout.tsx +0 -22
- package/templates/web/consumer/apps/web/src/app/page.tsx +0 -21
- package/templates/web/consumer/apps/web/src/app/providers.tsx +0 -25
- package/templates/web/consumer/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/consumer/apps/web/tsconfig.json +0 -26
- package/templates/web/todo/apps/web/next-env.d.ts +0 -2
- package/templates/web/todo/apps/web/next.config.ts +0 -26
- package/templates/web/todo/apps/web/package.json +0 -30
- package/templates/web/todo/apps/web/postcss.config.mjs +0 -3
- package/templates/web/todo/apps/web/src/app/components/TodoList.tsx +0 -310
- package/templates/web/todo/apps/web/src/app/globals.css +0 -6
- package/templates/web/todo/apps/web/src/app/layout.tsx +0 -21
- package/templates/web/todo/apps/web/src/app/page.tsx +0 -36
- package/templates/web/todo/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/todo/apps/web/tsconfig.json +0 -26
- /package/templates/barebones/app/{items-client.tsx → (app)/items-client.tsx} +0 -0
- /package/templates/marketplace/{app/_components → components}/CategoryIcon.tsx +0 -0
- /package/templates/todo/app/{todo-app.tsx → (app)/todo-app.tsx} +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type Metadata } from "@pylonsync/react";
|
|
3
|
+
import { Badge } from "@/components/ui/badge";
|
|
4
|
+
import { Button } from "@/components/ui/button";
|
|
5
|
+
import {
|
|
6
|
+
Card,
|
|
7
|
+
CardContent,
|
|
8
|
+
CardDescription,
|
|
9
|
+
CardFooter,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardTitle,
|
|
12
|
+
} from "@/components/ui/card";
|
|
13
|
+
import {
|
|
14
|
+
Dialog,
|
|
15
|
+
DialogClose,
|
|
16
|
+
DialogContent,
|
|
17
|
+
DialogDescription,
|
|
18
|
+
DialogFooter,
|
|
19
|
+
DialogHeader,
|
|
20
|
+
DialogTitle,
|
|
21
|
+
DialogTrigger,
|
|
22
|
+
} from "@/components/ui/dialog";
|
|
23
|
+
import { Input } from "@/components/ui/input";
|
|
24
|
+
import { Label } from "@/components/ui/label";
|
|
25
|
+
import { Select } from "@/components/ui/select";
|
|
26
|
+
import {
|
|
27
|
+
Table,
|
|
28
|
+
TableBody,
|
|
29
|
+
TableCell,
|
|
30
|
+
TableHead,
|
|
31
|
+
TableHeader,
|
|
32
|
+
TableRow,
|
|
33
|
+
} from "@/components/ui/table";
|
|
34
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
35
|
+
import { Example, Showcase } from "../showcase";
|
|
36
|
+
|
|
37
|
+
export const metadata: Metadata = {
|
|
38
|
+
title: "Components",
|
|
39
|
+
robots: "noindex, nofollow",
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// `/internal/components` shows every reusable component in `components/`.
|
|
43
|
+
// Look here before you write UI. When you add a component, add a `Showcase`
|
|
44
|
+
// for it in the same commit.
|
|
45
|
+
|
|
46
|
+
const PLANS = [
|
|
47
|
+
{ value: "free", label: "Free" },
|
|
48
|
+
{ value: "pro", label: "Pro" },
|
|
49
|
+
{ value: "team", label: "Team" },
|
|
50
|
+
{ value: "enterprise", label: "Enterprise", disabled: true },
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
const OWNERS = [
|
|
54
|
+
{ value: "", label: "Unassigned" },
|
|
55
|
+
{ value: "ada", label: "Ada" },
|
|
56
|
+
{ value: "grace", label: "Grace" },
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
export default function ComponentsPage() {
|
|
60
|
+
return (
|
|
61
|
+
<div className="flex flex-col gap-10">
|
|
62
|
+
<header className="flex flex-col gap-2">
|
|
63
|
+
<h1 className="text-3xl font-semibold tracking-tight">Components</h1>
|
|
64
|
+
<p className="text-sm text-muted-foreground">
|
|
65
|
+
The reusable components in <code>components/</code>. A page composes
|
|
66
|
+
these components. Behavior comes from <code>@ui-sdk/react</code>.
|
|
67
|
+
Styles come from the design tokens.
|
|
68
|
+
</p>
|
|
69
|
+
</header>
|
|
70
|
+
|
|
71
|
+
<Showcase
|
|
72
|
+
id="button"
|
|
73
|
+
title="Button"
|
|
74
|
+
source="components/ui/button.tsx"
|
|
75
|
+
description="Use a button to start an action. Use the render prop to show a link as a button."
|
|
76
|
+
>
|
|
77
|
+
<Example label="Variants">
|
|
78
|
+
<Button>Default</Button>
|
|
79
|
+
<Button variant="secondary">Secondary</Button>
|
|
80
|
+
<Button variant="outline">Outline</Button>
|
|
81
|
+
<Button variant="ghost">Ghost</Button>
|
|
82
|
+
<Button variant="link">Link</Button>
|
|
83
|
+
<Button variant="destructive">Destructive</Button>
|
|
84
|
+
</Example>
|
|
85
|
+
<Example label="Sizes">
|
|
86
|
+
<Button size="sm">Small</Button>
|
|
87
|
+
<Button>Default</Button>
|
|
88
|
+
<Button size="lg">Large</Button>
|
|
89
|
+
</Example>
|
|
90
|
+
<Example label="States">
|
|
91
|
+
<Button disabled>Disabled</Button>
|
|
92
|
+
<Button
|
|
93
|
+
onClick={() => new Promise((resolve) => setTimeout(resolve, 1500))}
|
|
94
|
+
pendingAnnouncement="Saving"
|
|
95
|
+
>
|
|
96
|
+
Pending for 1.5 s
|
|
97
|
+
</Button>
|
|
98
|
+
<Button variant="outline" render={<a href="/internal/design" />}>
|
|
99
|
+
Link as button
|
|
100
|
+
</Button>
|
|
101
|
+
</Example>
|
|
102
|
+
</Showcase>
|
|
103
|
+
|
|
104
|
+
<Showcase
|
|
105
|
+
id="badge"
|
|
106
|
+
title="Badge"
|
|
107
|
+
source="components/ui/badge.tsx"
|
|
108
|
+
description="Use a badge to show a short status."
|
|
109
|
+
>
|
|
110
|
+
<Example label="Variants">
|
|
111
|
+
<Badge>Default</Badge>
|
|
112
|
+
<Badge variant="secondary">Secondary</Badge>
|
|
113
|
+
<Badge variant="outline">Outline</Badge>
|
|
114
|
+
<Badge variant="destructive">Destructive</Badge>
|
|
115
|
+
</Example>
|
|
116
|
+
</Showcase>
|
|
117
|
+
|
|
118
|
+
<Showcase
|
|
119
|
+
id="text-fields"
|
|
120
|
+
title="Input, Label and Textarea"
|
|
121
|
+
source="components/ui/input.tsx, label.tsx, textarea.tsx"
|
|
122
|
+
description="Use these components for text entry. Give each control a label."
|
|
123
|
+
>
|
|
124
|
+
<Example label="Input">
|
|
125
|
+
<div className="flex w-full flex-col gap-1.5">
|
|
126
|
+
<Label htmlFor="showcase-email">Email</Label>
|
|
127
|
+
<Input id="showcase-email" type="email" placeholder="you@example.com" />
|
|
128
|
+
</div>
|
|
129
|
+
</Example>
|
|
130
|
+
<Example label="Disabled input">
|
|
131
|
+
<Input aria-label="Disabled input" disabled placeholder="Disabled" />
|
|
132
|
+
</Example>
|
|
133
|
+
<Example label="Textarea">
|
|
134
|
+
<div className="flex w-full flex-col gap-1.5">
|
|
135
|
+
<Label htmlFor="showcase-notes">Notes</Label>
|
|
136
|
+
<Textarea id="showcase-notes" placeholder="Write a note" />
|
|
137
|
+
</div>
|
|
138
|
+
</Example>
|
|
139
|
+
</Showcase>
|
|
140
|
+
|
|
141
|
+
<Showcase
|
|
142
|
+
id="select"
|
|
143
|
+
title="Select"
|
|
144
|
+
source="components/ui/select.tsx"
|
|
145
|
+
description="Use a select to pick one value from a list of options."
|
|
146
|
+
>
|
|
147
|
+
<Example label="With a placeholder">
|
|
148
|
+
<div className="flex w-full flex-col gap-1.5">
|
|
149
|
+
<Label htmlFor="showcase-plan">Plan</Label>
|
|
150
|
+
<Select id="showcase-plan" items={PLANS} placeholder="Select a plan" />
|
|
151
|
+
</div>
|
|
152
|
+
</Example>
|
|
153
|
+
<Example label="With a default value">
|
|
154
|
+
<Select aria-label="Plan" items={PLANS} defaultValue="pro" />
|
|
155
|
+
</Example>
|
|
156
|
+
<Example label="With an option for no value">
|
|
157
|
+
<Select aria-label="Owner" items={OWNERS} defaultValue="" />
|
|
158
|
+
</Example>
|
|
159
|
+
<Example label="Disabled">
|
|
160
|
+
<Select aria-label="Plan" items={PLANS} defaultValue="free" disabled />
|
|
161
|
+
</Example>
|
|
162
|
+
</Showcase>
|
|
163
|
+
|
|
164
|
+
<Showcase
|
|
165
|
+
id="dialog"
|
|
166
|
+
title="Dialog"
|
|
167
|
+
source="components/ui/dialog.tsx"
|
|
168
|
+
description="Use a dialog for a task that needs the full attention of the user."
|
|
169
|
+
>
|
|
170
|
+
<Example label="Default">
|
|
171
|
+
<Dialog>
|
|
172
|
+
<DialogTrigger render={<Button variant="outline" />}>
|
|
173
|
+
Open the dialog
|
|
174
|
+
</DialogTrigger>
|
|
175
|
+
<DialogContent>
|
|
176
|
+
<DialogHeader>
|
|
177
|
+
<DialogTitle>Rename the item</DialogTitle>
|
|
178
|
+
<DialogDescription>
|
|
179
|
+
The new name shows in every list.
|
|
180
|
+
</DialogDescription>
|
|
181
|
+
</DialogHeader>
|
|
182
|
+
<div className="flex flex-col gap-1.5">
|
|
183
|
+
<Label htmlFor="showcase-name">Name</Label>
|
|
184
|
+
<Input id="showcase-name" defaultValue="First item" />
|
|
185
|
+
</div>
|
|
186
|
+
<DialogFooter>
|
|
187
|
+
<DialogClose render={<Button variant="outline" />}>
|
|
188
|
+
Cancel
|
|
189
|
+
</DialogClose>
|
|
190
|
+
<DialogClose render={<Button />}>Save</DialogClose>
|
|
191
|
+
</DialogFooter>
|
|
192
|
+
</DialogContent>
|
|
193
|
+
</Dialog>
|
|
194
|
+
</Example>
|
|
195
|
+
</Showcase>
|
|
196
|
+
|
|
197
|
+
<Showcase
|
|
198
|
+
id="card"
|
|
199
|
+
title="Card"
|
|
200
|
+
source="components/ui/card.tsx"
|
|
201
|
+
description="Use a card to group related content."
|
|
202
|
+
>
|
|
203
|
+
<Card className="w-full">
|
|
204
|
+
<CardHeader>
|
|
205
|
+
<CardTitle>Team plan</CardTitle>
|
|
206
|
+
<CardDescription>10 seats. Billed each month.</CardDescription>
|
|
207
|
+
</CardHeader>
|
|
208
|
+
<CardContent className="text-sm">
|
|
209
|
+
The plan renews on the first day of each month.
|
|
210
|
+
</CardContent>
|
|
211
|
+
<CardFooter>
|
|
212
|
+
<Button size="sm">Change the plan</Button>
|
|
213
|
+
</CardFooter>
|
|
214
|
+
</Card>
|
|
215
|
+
</Showcase>
|
|
216
|
+
|
|
217
|
+
<Showcase
|
|
218
|
+
id="table"
|
|
219
|
+
title="Table"
|
|
220
|
+
source="components/ui/table.tsx"
|
|
221
|
+
description="Use a table to show rows of records."
|
|
222
|
+
>
|
|
223
|
+
<Table>
|
|
224
|
+
<TableHeader>
|
|
225
|
+
<TableRow>
|
|
226
|
+
<TableHead>Name</TableHead>
|
|
227
|
+
<TableHead>Status</TableHead>
|
|
228
|
+
</TableRow>
|
|
229
|
+
</TableHeader>
|
|
230
|
+
<TableBody>
|
|
231
|
+
<TableRow>
|
|
232
|
+
<TableCell>First item</TableCell>
|
|
233
|
+
<TableCell>
|
|
234
|
+
<Badge variant="secondary">Open</Badge>
|
|
235
|
+
</TableCell>
|
|
236
|
+
</TableRow>
|
|
237
|
+
<TableRow>
|
|
238
|
+
<TableCell>Second item</TableCell>
|
|
239
|
+
<TableCell>
|
|
240
|
+
<Badge variant="outline">Closed</Badge>
|
|
241
|
+
</TableCell>
|
|
242
|
+
</TableRow>
|
|
243
|
+
</TableBody>
|
|
244
|
+
</Table>
|
|
245
|
+
</Showcase>
|
|
246
|
+
</div>
|
|
247
|
+
);
|
|
248
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type Metadata } from "@pylonsync/react";
|
|
3
|
+
|
|
4
|
+
export const metadata: Metadata = {
|
|
5
|
+
title: "Design tokens",
|
|
6
|
+
robots: "noindex, nofollow",
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
// `/internal/design` shows every design token the app uses. The tokens are the
|
|
10
|
+
// CSS variables in `app/globals.css`. When you add or change a token there,
|
|
11
|
+
// add or change its entry here in the same commit.
|
|
12
|
+
|
|
13
|
+
// One entry for each color token in `app/globals.css`. Each class is written in
|
|
14
|
+
// full so that Tailwind finds it.
|
|
15
|
+
const COLORS = [
|
|
16
|
+
{ token: "background", swatch: "bg-background" },
|
|
17
|
+
{ token: "foreground", swatch: "bg-foreground" },
|
|
18
|
+
{ token: "card", swatch: "bg-card" },
|
|
19
|
+
{ token: "popover", swatch: "bg-popover" },
|
|
20
|
+
{ token: "primary", swatch: "bg-primary" },
|
|
21
|
+
{ token: "secondary", swatch: "bg-secondary" },
|
|
22
|
+
{ token: "muted", swatch: "bg-muted" },
|
|
23
|
+
{ token: "accent", swatch: "bg-accent" },
|
|
24
|
+
{ token: "destructive", swatch: "bg-destructive" },
|
|
25
|
+
{ token: "border", swatch: "bg-border" },
|
|
26
|
+
{ token: "input", swatch: "bg-input" },
|
|
27
|
+
{ token: "ring", swatch: "bg-ring" },
|
|
28
|
+
{ token: "chart-1", swatch: "bg-chart-1" },
|
|
29
|
+
{ token: "chart-2", swatch: "bg-chart-2" },
|
|
30
|
+
{ token: "chart-3", swatch: "bg-chart-3" },
|
|
31
|
+
{ token: "chart-4", swatch: "bg-chart-4" },
|
|
32
|
+
{ token: "chart-5", swatch: "bg-chart-5" },
|
|
33
|
+
{ token: "sidebar", swatch: "bg-sidebar" },
|
|
34
|
+
{ token: "sidebar-primary", swatch: "bg-sidebar-primary" },
|
|
35
|
+
{ token: "sidebar-accent", swatch: "bg-sidebar-accent" },
|
|
36
|
+
{ token: "sidebar-border", swatch: "bg-sidebar-border" },
|
|
37
|
+
{ token: "sidebar-ring", swatch: "bg-sidebar-ring" },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const TYPE_SCALE = [
|
|
41
|
+
{ name: "text-4xl", className: "text-4xl font-semibold tracking-tight" },
|
|
42
|
+
{ name: "text-3xl", className: "text-3xl font-semibold tracking-tight" },
|
|
43
|
+
{ name: "text-2xl", className: "text-2xl font-semibold tracking-tight" },
|
|
44
|
+
{ name: "text-xl", className: "text-xl font-semibold" },
|
|
45
|
+
{ name: "text-lg", className: "text-lg font-semibold" },
|
|
46
|
+
{ name: "text-base", className: "text-base" },
|
|
47
|
+
{ name: "text-sm", className: "text-sm" },
|
|
48
|
+
{ name: "text-xs", className: "text-xs" },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const RADII = [
|
|
52
|
+
{ name: "rounded-sm", className: "rounded-sm" },
|
|
53
|
+
{ name: "rounded-md", className: "rounded-md" },
|
|
54
|
+
{ name: "rounded-lg", className: "rounded-lg" },
|
|
55
|
+
{ name: "rounded-xl", className: "rounded-xl" },
|
|
56
|
+
{ name: "rounded-full", className: "rounded-full" },
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
const SPACING = [
|
|
60
|
+
{ name: "1", className: "w-1" },
|
|
61
|
+
{ name: "2", className: "w-2" },
|
|
62
|
+
{ name: "3", className: "w-3" },
|
|
63
|
+
{ name: "4", className: "w-4" },
|
|
64
|
+
{ name: "6", className: "w-6" },
|
|
65
|
+
{ name: "8", className: "w-8" },
|
|
66
|
+
{ name: "12", className: "w-12" },
|
|
67
|
+
{ name: "16", className: "w-16" },
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
const SHADOWS = [
|
|
71
|
+
{ name: "shadow-sm", className: "shadow-sm" },
|
|
72
|
+
{ name: "shadow-md", className: "shadow-md" },
|
|
73
|
+
{ name: "shadow-lg", className: "shadow-lg" },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
function Section({
|
|
77
|
+
id,
|
|
78
|
+
title,
|
|
79
|
+
children,
|
|
80
|
+
}: {
|
|
81
|
+
/** The section id from `sections.ts`. */
|
|
82
|
+
id: string;
|
|
83
|
+
title: string;
|
|
84
|
+
children: React.ReactNode;
|
|
85
|
+
}) {
|
|
86
|
+
return (
|
|
87
|
+
<section id={id} className="flex scroll-mt-10 flex-col gap-3">
|
|
88
|
+
<h2 className="text-lg font-semibold tracking-tight">{title}</h2>
|
|
89
|
+
{children}
|
|
90
|
+
</section>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default function DesignPage() {
|
|
95
|
+
return (
|
|
96
|
+
<div className="flex flex-col gap-10">
|
|
97
|
+
<header className="flex flex-col gap-2">
|
|
98
|
+
<h1 className="text-3xl font-semibold tracking-tight">Design tokens</h1>
|
|
99
|
+
<p className="text-sm text-muted-foreground">
|
|
100
|
+
The tokens are CSS variables in <code>app/globals.css</code>. Use a
|
|
101
|
+
token class such as <code>bg-primary</code>. Do not write a raw color,
|
|
102
|
+
a raw radius or a raw shadow in a component.
|
|
103
|
+
</p>
|
|
104
|
+
</header>
|
|
105
|
+
|
|
106
|
+
<Section id="color" title="Color">
|
|
107
|
+
<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4">
|
|
108
|
+
{COLORS.map((color) => (
|
|
109
|
+
<div key={color.token} className="flex flex-col gap-1.5">
|
|
110
|
+
<div className={`h-14 rounded-lg border ${color.swatch}`} />
|
|
111
|
+
<div className="flex flex-col text-xs">
|
|
112
|
+
<span className="font-medium">{color.token}</span>
|
|
113
|
+
<code className="text-muted-foreground">{color.swatch}</code>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
))}
|
|
117
|
+
</div>
|
|
118
|
+
</Section>
|
|
119
|
+
|
|
120
|
+
<Section id="type" title="Type">
|
|
121
|
+
<div className="flex flex-col gap-3">
|
|
122
|
+
{TYPE_SCALE.map((step) => (
|
|
123
|
+
<div key={step.name} className="flex flex-col gap-0.5">
|
|
124
|
+
<span className="text-xs text-muted-foreground">{step.name}</span>
|
|
125
|
+
<span className={step.className}>The quick brown fox</span>
|
|
126
|
+
</div>
|
|
127
|
+
))}
|
|
128
|
+
</div>
|
|
129
|
+
</Section>
|
|
130
|
+
|
|
131
|
+
<Section id="radius" title="Radius">
|
|
132
|
+
<div className="flex flex-wrap gap-4">
|
|
133
|
+
{RADII.map((radius) => (
|
|
134
|
+
<div key={radius.name} className="flex flex-col items-center gap-1.5">
|
|
135
|
+
<div className={`size-14 border bg-muted ${radius.className}`} />
|
|
136
|
+
<span className="text-xs text-muted-foreground">{radius.name}</span>
|
|
137
|
+
</div>
|
|
138
|
+
))}
|
|
139
|
+
</div>
|
|
140
|
+
</Section>
|
|
141
|
+
|
|
142
|
+
<Section id="spacing" title="Spacing">
|
|
143
|
+
<div className="flex flex-col gap-2">
|
|
144
|
+
{SPACING.map((space) => (
|
|
145
|
+
<div key={space.name} className="flex items-center gap-3">
|
|
146
|
+
<span className="w-6 text-xs text-muted-foreground">{space.name}</span>
|
|
147
|
+
<div className={`h-3 rounded-sm bg-primary ${space.className}`} />
|
|
148
|
+
</div>
|
|
149
|
+
))}
|
|
150
|
+
</div>
|
|
151
|
+
</Section>
|
|
152
|
+
|
|
153
|
+
<Section id="shadow" title="Shadow">
|
|
154
|
+
<div className="flex flex-wrap gap-6">
|
|
155
|
+
{SHADOWS.map((shadow) => (
|
|
156
|
+
<div key={shadow.name} className="flex flex-col items-center gap-1.5">
|
|
157
|
+
<div className={`size-14 rounded-lg border bg-card ${shadow.className}`} />
|
|
158
|
+
<span className="text-xs text-muted-foreground">{shadow.name}</span>
|
|
159
|
+
</div>
|
|
160
|
+
))}
|
|
161
|
+
</div>
|
|
162
|
+
</Section>
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Link, type Metadata } from "@pylonsync/react";
|
|
3
|
+
import {
|
|
4
|
+
COMPONENT_SECTIONS,
|
|
5
|
+
DESIGN_SECTIONS,
|
|
6
|
+
type InternalSection,
|
|
7
|
+
} from "./sections";
|
|
8
|
+
|
|
9
|
+
// `/internal/*` is the reference for the design tokens and the components of
|
|
10
|
+
// this app. The product does not link to these pages and search engines do
|
|
11
|
+
// not index them. To restrict them to signed-in staff, read the `auth` prop
|
|
12
|
+
// here and call `response.notFound()`.
|
|
13
|
+
export const metadata: Metadata = {
|
|
14
|
+
title: "Internal",
|
|
15
|
+
robots: "noindex, nofollow",
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
interface InternalLayoutProps {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
pathname: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface NavGroupProps {
|
|
24
|
+
title: string;
|
|
25
|
+
href: string;
|
|
26
|
+
sections: InternalSection[];
|
|
27
|
+
current: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function NavGroup({ title, href, sections, current }: NavGroupProps) {
|
|
31
|
+
return (
|
|
32
|
+
<div className="flex flex-col gap-1">
|
|
33
|
+
<Link
|
|
34
|
+
href={href}
|
|
35
|
+
aria-current={current ? "page" : undefined}
|
|
36
|
+
className="rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground aria-[current=page]:bg-accent aria-[current=page]:text-accent-foreground"
|
|
37
|
+
>
|
|
38
|
+
{title}
|
|
39
|
+
</Link>
|
|
40
|
+
<ul className="ml-2 hidden flex-col border-l pl-2 md:flex">
|
|
41
|
+
{sections.map((section) => (
|
|
42
|
+
<li key={section.id}>
|
|
43
|
+
<a
|
|
44
|
+
href={`${href}#${section.id}`}
|
|
45
|
+
className="block rounded-md px-2 py-1 text-sm text-muted-foreground hover:text-foreground"
|
|
46
|
+
>
|
|
47
|
+
{section.title}
|
|
48
|
+
</a>
|
|
49
|
+
</li>
|
|
50
|
+
))}
|
|
51
|
+
</ul>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export default function InternalLayout({ children, pathname }: InternalLayoutProps) {
|
|
57
|
+
return (
|
|
58
|
+
<div className="flex min-h-screen flex-col bg-background text-foreground md:flex-row">
|
|
59
|
+
<aside className="border-b md:sticky md:top-0 md:h-screen md:w-60 md:shrink-0 md:overflow-y-auto md:border-b-0 md:border-r">
|
|
60
|
+
<nav
|
|
61
|
+
aria-label="Internal"
|
|
62
|
+
className="flex flex-row items-start gap-2 p-3 md:flex-col md:gap-4 md:p-4"
|
|
63
|
+
>
|
|
64
|
+
<Link
|
|
65
|
+
href="/"
|
|
66
|
+
className="px-2 py-1.5 text-sm font-semibold tracking-tight"
|
|
67
|
+
>
|
|
68
|
+
__APP_NAME__
|
|
69
|
+
</Link>
|
|
70
|
+
<NavGroup
|
|
71
|
+
title="Design"
|
|
72
|
+
href="/internal/design"
|
|
73
|
+
sections={DESIGN_SECTIONS}
|
|
74
|
+
current={pathname === "/internal/design"}
|
|
75
|
+
/>
|
|
76
|
+
<NavGroup
|
|
77
|
+
title="Components"
|
|
78
|
+
href="/internal/components"
|
|
79
|
+
sections={COMPONENT_SECTIONS}
|
|
80
|
+
current={pathname === "/internal/components"}
|
|
81
|
+
/>
|
|
82
|
+
</nav>
|
|
83
|
+
</aside>
|
|
84
|
+
<main className="min-w-0 flex-1 px-6 py-10 md:px-10">
|
|
85
|
+
<div className="mx-auto flex max-w-3xl flex-col">{children}</div>
|
|
86
|
+
</main>
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// The sections of the internal pages. The sidebar and the pages read this
|
|
2
|
+
// list, so add an entry here when you add a section to a page.
|
|
3
|
+
|
|
4
|
+
export interface InternalSection {
|
|
5
|
+
/** The id of the section element. The sidebar links to it. */
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const DESIGN_SECTIONS: InternalSection[] = [
|
|
11
|
+
{ id: "color", title: "Color" },
|
|
12
|
+
{ id: "type", title: "Type" },
|
|
13
|
+
{ id: "radius", title: "Radius" },
|
|
14
|
+
{ id: "spacing", title: "Spacing" },
|
|
15
|
+
{ id: "shadow", title: "Shadow" },
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
export const COMPONENT_SECTIONS: InternalSection[] = [
|
|
19
|
+
{ id: "button", title: "Button" },
|
|
20
|
+
{ id: "badge", title: "Badge" },
|
|
21
|
+
{ id: "text-fields", title: "Input, Label, Textarea" },
|
|
22
|
+
{ id: "select", title: "Select" },
|
|
23
|
+
{ id: "dialog", title: "Dialog" },
|
|
24
|
+
{ id: "card", title: "Card" },
|
|
25
|
+
{ id: "table", title: "Table" },
|
|
26
|
+
];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
interface ShowcaseProps {
|
|
4
|
+
/** The section id from `sections.ts`. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** The component name. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** The file that defines the component. */
|
|
9
|
+
source: string;
|
|
10
|
+
/** One sentence that says when to use the component. */
|
|
11
|
+
description: string;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** One entry on `/internal/components`: a name, a source file and live examples. */
|
|
16
|
+
export function Showcase({ id, title, source, description, children }: ShowcaseProps) {
|
|
17
|
+
return (
|
|
18
|
+
<section id={id} className="flex scroll-mt-10 flex-col gap-3">
|
|
19
|
+
<header className="flex flex-col gap-1">
|
|
20
|
+
<h2 className="text-lg font-semibold tracking-tight">{title}</h2>
|
|
21
|
+
<code className="text-xs text-muted-foreground">{source}</code>
|
|
22
|
+
<p className="text-sm text-muted-foreground">{description}</p>
|
|
23
|
+
</header>
|
|
24
|
+
<div className="flex flex-col gap-4 rounded-lg border p-4">{children}</div>
|
|
25
|
+
</section>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ExampleProps {
|
|
30
|
+
/** The name of the variant or state. */
|
|
31
|
+
label: string;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** One labeled example in a `Showcase`. */
|
|
36
|
+
export function Example({ label, children }: ExampleProps) {
|
|
37
|
+
return (
|
|
38
|
+
<div className="flex flex-col gap-2">
|
|
39
|
+
<span className="text-xs font-medium text-muted-foreground">{label}</span>
|
|
40
|
+
<div className="flex flex-wrap items-center gap-3">{children}</div>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
3
|
+
// The root layout is the document shell for every route. Page chrome lives in
|
|
4
|
+
// a route group layout: `app/(app)/layout.tsx` for the product and
|
|
5
|
+
// `app/internal/layout.tsx` for the design reference.
|
|
6
6
|
interface LayoutProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}
|
|
@@ -18,9 +18,7 @@ export default function RootLayout({ children }: LayoutProps) {
|
|
|
18
18
|
stylesheet link is injected here automatically. */}
|
|
19
19
|
</head>
|
|
20
20
|
<body className="min-h-screen bg-background text-foreground antialiased">
|
|
21
|
-
|
|
22
|
-
{children}
|
|
23
|
-
</main>
|
|
21
|
+
{children}
|
|
24
22
|
</body>
|
|
25
23
|
</html>
|
|
26
24
|
);
|
|
@@ -9,7 +9,7 @@ import { Button } from "@/components/ui/button";
|
|
|
9
9
|
export default function NotFound(_props: NotFoundProps) {
|
|
10
10
|
const router = useRouter();
|
|
11
11
|
return (
|
|
12
|
-
<div className="space-y-6">
|
|
12
|
+
<div className="mx-auto max-w-lg space-y-6 px-4 py-12">
|
|
13
13
|
<section>
|
|
14
14
|
<h1 className="text-2xl font-semibold tracking-tight">404</h1>
|
|
15
15
|
<p className="mt-2 text-muted-foreground">
|
|
@@ -20,9 +20,7 @@ export default function NotFound(_props: NotFoundProps) {
|
|
|
20
20
|
<Button onClick={() => router.back()} variant="outline">
|
|
21
21
|
← Go back
|
|
22
22
|
</Button>
|
|
23
|
-
<Button
|
|
24
|
-
<Link href="/">Home</Link>
|
|
25
|
-
</Button>
|
|
23
|
+
<Button render={<Link href="/" />}>Home</Button>
|
|
26
24
|
</div>
|
|
27
25
|
</div>
|
|
28
26
|
);
|
|
@@ -6,7 +6,7 @@ const SITE = process.env.SITE_URL ?? "http://localhost:4321";
|
|
|
6
6
|
export default function robots(): Robots {
|
|
7
7
|
return {
|
|
8
8
|
// Keep the authenticated app and the API out of the index.
|
|
9
|
-
rules: { userAgent: "*", allow: "/", disallow: ["/dashboard", "/api/"] },
|
|
9
|
+
rules: { userAgent: "*", allow: "/", disallow: ["/dashboard", "/api/", "/internal/"] },
|
|
10
10
|
sitemap: `${SITE}/sitemap.xml`,
|
|
11
11
|
};
|
|
12
12
|
}
|