From 475abbbb209fb207636346be8604566a12ec4192 Mon Sep 17 00:00:00 2001 From: shadcn Date: Wed, 5 Feb 2025 10:38:28 +0400 Subject: [PATCH] refactor: new-york-v4 --- apps/v4/__registry__/index.tsx | 3727 ++++++----------- apps/v4/app/(app)/charts/charts.tsx | 140 +- apps/v4/app/(app)/charts/page.tsx | 2 +- apps/v4/app/(app)/layout.tsx | 6 +- apps/v4/app/layout.tsx | 2 +- apps/v4/components/accordion-demo.tsx | 2 +- apps/v4/components/alert-demo.tsx | 8 +- apps/v4/components/alert-dialog-demo.tsx | 4 +- apps/v4/components/app-sidebar.tsx | 8 +- apps/v4/components/aspect-ratio-demo.tsx | 2 +- apps/v4/components/avatar-demo.tsx | 6 +- apps/v4/components/badge-demo.tsx | 2 +- apps/v4/components/breadcrumb-demo.tsx | 4 +- apps/v4/components/button-demo.tsx | 2 +- apps/v4/components/calendar-demo.tsx | 2 +- apps/v4/components/card-demo.tsx | 16 +- apps/v4/components/carousel-demo.tsx | 4 +- apps/v4/components/chart-area-demo.tsx | 4 +- apps/v4/components/chart-bar-demo.tsx | 4 +- apps/v4/components/chart-line-demo.tsx | 4 +- apps/v4/components/checkbox-demo.tsx | 4 +- apps/v4/components/collapsible-demo.tsx | 4 +- apps/v4/components/combobox-demo.tsx | 16 +- apps/v4/components/command-demo.tsx | 2 +- apps/v4/components/component-wrapper.tsx | 2 +- apps/v4/components/context-menu-demo.tsx | 2 +- apps/v4/components/date-picker-demo.tsx | 10 +- apps/v4/components/dialog-demo.tsx | 8 +- apps/v4/components/drawer-demo.tsx | 4 +- apps/v4/components/dropdown-menu-demo.tsx | 10 +- apps/v4/components/form-demo.tsx | 27 +- apps/v4/components/hover-card-demo.tsx | 10 +- apps/v4/components/input-demo.tsx | 2 +- apps/v4/components/input-otp-demo.tsx | 4 +- apps/v4/components/label-demo.tsx | 8 +- apps/v4/components/menubar-demo.tsx | 2 +- apps/v4/components/mode-switcher.tsx | 2 +- apps/v4/components/mode-toggle.tsx | 2 +- apps/v4/components/nav-main.tsx | 4 +- apps/v4/components/nav-projects.tsx | 4 +- apps/v4/components/nav-user.tsx | 10 +- apps/v4/components/navigation-menu-demo.tsx | 2 +- apps/v4/components/pagination-demo.tsx | 2 +- apps/v4/components/popover-demo.tsx | 12 +- apps/v4/components/progress-demo.tsx | 2 +- apps/v4/components/radio-group-demo.tsx | 7 +- apps/v4/components/resizable-demo.tsx | 2 +- apps/v4/components/scroll-area-demo.tsx | 4 +- apps/v4/components/select-demo.tsx | 2 +- apps/v4/components/separator-demo.tsx | 2 +- apps/v4/components/sheet-demo.tsx | 8 +- apps/v4/components/skeleton-demo.tsx | 4 +- apps/v4/components/slider-demo.tsx | 4 +- apps/v4/components/sonner-demo.tsx | 2 +- apps/v4/components/switch-demo.tsx | 4 +- apps/v4/components/table-demo.tsx | 2 +- apps/v4/components/tabs-demo.tsx | 15 +- apps/v4/components/team-switcher.tsx | 4 +- apps/v4/components/textarea-demo.tsx | 4 +- apps/v4/components/toggle-demo.tsx | 2 +- apps/v4/components/toggle-group-demo.tsx | 5 +- apps/v4/components/tooltip-demo.tsx | 8 +- apps/v4/registry.json | 433 +- .../blocks/login-01/components/login-form.tsx | 10 +- .../blocks/login-01/page.tsx | 2 +- .../blocks/login-02/components/login-form.tsx | 8 +- .../blocks/login-02/page.tsx | 2 +- .../blocks/login-03/components/login-form.tsx | 10 +- .../blocks/login-03/page.tsx | 2 +- .../blocks/login-04/components/login-form.tsx | 10 +- .../blocks/login-04/page.tsx | 2 +- .../blocks/login-05/components/login-form.tsx | 8 +- .../blocks/login-05/page.tsx | 2 +- .../sidebar-01/components/app-sidebar.tsx | 6 +- .../sidebar-01/components/search-form.tsx | 4 +- .../components/version-switcher.tsx | 4 +- .../blocks/sidebar-01/page.tsx | 8 +- .../sidebar-02/components/app-sidebar.tsx | 8 +- .../sidebar-02/components/search-form.tsx | 4 +- .../components/version-switcher.tsx | 4 +- .../blocks/sidebar-02/page.tsx | 8 +- .../sidebar-03/components/app-sidebar.tsx | 2 +- .../blocks/sidebar-03/page.tsx | 8 +- .../sidebar-04/components/app-sidebar.tsx | 2 +- .../blocks/sidebar-04/page.tsx | 8 +- .../sidebar-05/components/app-sidebar.tsx | 6 +- .../sidebar-05/components/search-form.tsx | 4 +- .../blocks/sidebar-05}/page.tsx | 8 +- .../sidebar-06/components/app-sidebar.tsx | 6 +- .../blocks/sidebar-06/components/nav-main.tsx | 4 +- .../components/sidebar-opt-in-form.tsx | 6 +- .../blocks/sidebar-06}/page.tsx | 8 +- .../sidebar-07/components/app-sidebar.tsx | 10 +- .../blocks/sidebar-07/components/nav-main.tsx | 4 +- .../sidebar-07/components/nav-projects.tsx | 4 +- .../blocks/sidebar-07/components/nav-user.tsx | 10 +- .../sidebar-07/components/team-switcher.tsx | 4 +- .../blocks/sidebar-07/page.tsx | 8 +- .../sidebar-08/components/app-sidebar.tsx | 10 +- .../sidebar-08}/components/nav-main.tsx | 4 +- .../sidebar-08}/components/nav-projects.tsx | 4 +- .../sidebar-08/components/nav-secondary.tsx | 2 +- .../blocks/sidebar-08/components/nav-user.tsx | 10 +- .../blocks/sidebar-08/page.tsx | 8 +- .../sidebar-09/components/app-sidebar.tsx | 8 +- .../blocks/sidebar-09/components/nav-user.tsx | 10 +- .../blocks/sidebar-09/page.tsx | 8 +- .../sidebar-10/components/app-sidebar.tsx | 12 +- .../sidebar-10/components/nav-actions.tsx | 10 +- .../sidebar-10/components/nav-favorites.tsx | 4 +- .../blocks/sidebar-10/components/nav-main.tsx | 2 +- .../sidebar-10}/components/nav-secondary.tsx | 2 +- .../sidebar-10}/components/nav-workspaces.tsx | 4 +- .../sidebar-10/components/team-switcher.tsx | 4 +- .../blocks/sidebar-10/page.tsx | 10 +- .../sidebar-11/components/app-sidebar.tsx | 4 +- .../blocks/sidebar-11/page.tsx | 8 +- .../sidebar-12/components/app-sidebar.tsx | 8 +- .../sidebar-12/components/calendars.tsx | 4 +- .../sidebar-12/components/date-picker.tsx | 7 +- .../sidebar-12}/components/nav-user.tsx | 10 +- .../blocks/sidebar-12/page.tsx | 8 +- .../sidebar-13/components/settings-dialog.tsx | 8 +- .../blocks/sidebar-13/page.tsx | 2 +- .../sidebar-14/components/app-sidebar.tsx | 2 +- .../blocks/sidebar-14/page.tsx | 6 +- .../sidebar-15/components/calendars.tsx | 4 +- .../sidebar-15/components/date-picker.tsx | 7 +- .../sidebar-15/components/nav-favorites.tsx | 4 +- .../blocks/sidebar-15/components/nav-main.tsx | 2 +- .../sidebar-15}/components/nav-secondary.tsx | 2 +- .../sidebar-15}/components/nav-user.tsx | 10 +- .../sidebar-15}/components/nav-workspaces.tsx | 4 +- .../sidebar-15/components/sidebar-left.tsx | 12 +- .../sidebar-15/components/sidebar-right.tsx | 8 +- .../sidebar-15/components/team-switcher.tsx | 4 +- .../blocks/sidebar-15/page.tsx | 10 +- .../sidebar-16/components/app-sidebar.tsx | 10 +- .../sidebar-16}/components/nav-main.tsx | 4 +- .../sidebar-16}/components/nav-projects.tsx | 4 +- .../sidebar-16/components/nav-secondary.tsx | 2 +- .../blocks/sidebar-16/components/nav-user.tsx | 10 +- .../sidebar-16/components/search-form.tsx | 4 +- .../sidebar-16/components/site-header.tsx | 10 +- .../blocks/sidebar-16/page.tsx | 9 +- .../charts/chart-area-axes.tsx | 4 +- .../charts/chart-area-default.tsx | 4 +- .../charts/chart-area-gradient.tsx | 4 +- .../charts/chart-area-icons.tsx | 4 +- .../charts/chart-area-interactive.tsx | 6 +- .../charts/chart-area-legend.tsx | 4 +- .../charts/chart-area-linear.tsx | 4 +- .../charts/chart-area-stacked-expand.tsx | 4 +- .../charts/chart-area-stacked.tsx | 4 +- .../charts/chart-area-step.tsx | 4 +- .../charts/chart-bar-active.tsx | 4 +- .../charts/chart-bar-default.tsx | 4 +- .../charts/chart-bar-horizontal.tsx | 4 +- .../charts/chart-bar-interactive.tsx | 4 +- .../charts/chart-bar-label-custom.tsx | 4 +- .../charts/chart-bar-label.tsx | 4 +- .../charts/chart-bar-mixed.tsx | 4 +- .../charts/chart-bar-multiple.tsx | 4 +- .../charts/chart-bar-negative.tsx | 4 +- .../charts/chart-bar-stacked.tsx | 4 +- .../charts/chart-line-default.tsx | 4 +- .../charts/chart-line-dots-colors.tsx | 4 +- .../charts/chart-line-dots-custom.tsx | 4 +- .../charts/chart-line-dots.tsx | 4 +- .../charts/chart-line-interactive.tsx | 4 +- .../charts/chart-line-label-custom.tsx | 4 +- .../charts/chart-line-label.tsx | 4 +- .../charts/chart-line-linear.tsx | 4 +- .../charts/chart-line-multiple.tsx | 4 +- .../charts/chart-line-step.tsx | 4 +- .../charts/chart-pie-donut-active.tsx | 4 +- .../charts/chart-pie-donut-text.tsx | 4 +- .../charts/chart-pie-donut.tsx | 4 +- .../charts/chart-pie-interactive.tsx | 6 +- .../charts/chart-pie-label-custom.tsx | 4 +- .../charts/chart-pie-label-list.tsx | 4 +- .../charts/chart-pie-label.tsx | 4 +- .../charts/chart-pie-legend.tsx | 4 +- .../charts/chart-pie-separator-none.tsx | 4 +- .../charts/chart-pie-simple.tsx | 4 +- .../charts/chart-pie-stacked.tsx | 4 +- .../charts/chart-radar-default.tsx | 4 +- .../charts/chart-radar-dots.tsx | 4 +- .../charts/chart-radar-grid-circle-fill.tsx | 4 +- .../chart-radar-grid-circle-no-lines.tsx | 4 +- .../charts/chart-radar-grid-circle.tsx | 4 +- .../charts/chart-radar-grid-custom.tsx | 4 +- .../charts/chart-radar-grid-fill.tsx | 4 +- .../charts/chart-radar-grid-none.tsx | 4 +- .../charts/chart-radar-icons.tsx | 4 +- .../charts/chart-radar-label-custom.tsx | 4 +- .../charts/chart-radar-legend.tsx | 4 +- .../charts/chart-radar-lines-only.tsx | 4 +- .../charts/chart-radar-multiple.tsx | 4 +- .../charts/chart-radar-radius.tsx | 4 +- .../charts/chart-radial-grid.tsx | 4 +- .../charts/chart-radial-label.tsx | 4 +- .../charts/chart-radial-shape.tsx | 4 +- .../charts/chart-radial-simple.tsx | 4 +- .../charts/chart-radial-stacked.tsx | 4 +- .../charts/chart-radial-text.tsx | 4 +- .../charts/chart-tooltip-advanced.tsx | 4 +- .../charts/chart-tooltip-default.tsx | 4 +- .../charts/chart-tooltip-formatter.tsx | 4 +- .../charts/chart-tooltip-icons.tsx | 4 +- .../charts/chart-tooltip-indicator-line.tsx | 4 +- .../charts/chart-tooltip-indicator-none.tsx | 4 +- .../charts/chart-tooltip-label-custom.tsx | 4 +- .../charts/chart-tooltip-label-formatter.tsx | 4 +- .../charts/chart-tooltip-label-none.tsx | 4 +- .../{ => new-york-v4}/hooks/use-mobile.ts | 0 .../registry/{ => new-york-v4}/lib/utils.ts | 0 .../{ => new-york-v4}/ui/accordion.tsx | 0 .../{ => new-york-v4}/ui/alert-dialog.tsx | 2 +- .../registry/{ => new-york-v4}/ui/alert.tsx | 0 .../{ => new-york-v4}/ui/aspect-ratio.tsx | 0 .../registry/{ => new-york-v4}/ui/avatar.tsx | 0 .../registry/{ => new-york-v4}/ui/badge.tsx | 0 .../{ => new-york-v4}/ui/breadcrumb.tsx | 0 .../registry/{ => new-york-v4}/ui/button.tsx | 0 .../{ => new-york-v4}/ui/calendar.tsx | 2 +- .../v4/registry/{ => new-york-v4}/ui/card.tsx | 0 .../{ => new-york-v4}/ui/carousel.tsx | 2 +- .../registry/{ => new-york-v4}/ui/chart.tsx | 0 .../{ => new-york-v4}/ui/checkbox.tsx | 0 .../{ => new-york-v4}/ui/collapsible.tsx | 0 .../registry/{ => new-york-v4}/ui/command.tsx | 2 +- .../{ => new-york-v4}/ui/context-menu.tsx | 0 .../registry/{ => new-york-v4}/ui/dialog.tsx | 0 .../registry/{ => new-york-v4}/ui/drawer.tsx | 0 .../{ => new-york-v4}/ui/dropdown-menu.tsx | 0 .../v4/registry/{ => new-york-v4}/ui/form.tsx | 2 +- .../{ => new-york-v4}/ui/hover-card.tsx | 0 .../{ => new-york-v4}/ui/input-otp.tsx | 0 .../registry/{ => new-york-v4}/ui/input.tsx | 0 .../registry/{ => new-york-v4}/ui/label.tsx | 0 .../registry/{ => new-york-v4}/ui/menubar.tsx | 0 .../{ => new-york-v4}/ui/navigation-menu.tsx | 0 .../{ => new-york-v4}/ui/pagination.tsx | 2 +- .../registry/{ => new-york-v4}/ui/popover.tsx | 0 .../{ => new-york-v4}/ui/progress.tsx | 0 .../{ => new-york-v4}/ui/radio-group.tsx | 0 .../{ => new-york-v4}/ui/resizable.tsx | 0 .../{ => new-york-v4}/ui/scroll-area.tsx | 0 .../registry/{ => new-york-v4}/ui/select.tsx | 0 .../{ => new-york-v4}/ui/separator.tsx | 0 .../registry/{ => new-york-v4}/ui/sheet.tsx | 0 .../registry/{ => new-york-v4}/ui/sidebar.tsx | 16 +- .../{ => new-york-v4}/ui/skeleton.tsx | 0 .../registry/{ => new-york-v4}/ui/slider.tsx | 0 .../registry/{ => new-york-v4}/ui/sonner.tsx | 0 .../registry/{ => new-york-v4}/ui/switch.tsx | 0 .../registry/{ => new-york-v4}/ui/table.tsx | 0 .../v4/registry/{ => new-york-v4}/ui/tabs.tsx | 0 .../{ => new-york-v4}/ui/textarea.tsx | 0 .../{ => new-york-v4}/ui/toggle-group.tsx | 2 +- .../registry/{ => new-york-v4}/ui/toggle.tsx | 0 .../registry/{ => new-york-v4}/ui/tooltip.tsx | 0 apps/v4/scripts/build-registry.mts | 37 +- .../r/styles/new-york-v4/accordion.json | 2 +- .../r/styles/new-york-v4/alert-dialog.json | 4 +- .../public/r/styles/new-york-v4/alert.json | 2 +- .../r/styles/new-york-v4/aspect-ratio.json | 2 +- .../public/r/styles/new-york-v4/avatar.json | 2 +- .../public/r/styles/new-york-v4/badge.json | 2 +- .../r/styles/new-york-v4/breadcrumb.json | 2 +- .../public/r/styles/new-york-v4/button.json | 2 +- .../public/r/styles/new-york-v4/calendar.json | 4 +- .../www/public/r/styles/new-york-v4/card.json | 2 +- .../public/r/styles/new-york-v4/carousel.json | 4 +- .../r/styles/new-york-v4/chart-area-axes.json | 4 +- .../new-york-v4/chart-area-default.json | 4 +- .../new-york-v4/chart-area-gradient.json | 4 +- .../styles/new-york-v4/chart-area-icons.json | 4 +- .../new-york-v4/chart-area-interactive.json | 4 +- .../styles/new-york-v4/chart-area-legend.json | 4 +- .../styles/new-york-v4/chart-area-linear.json | 4 +- .../chart-area-stacked-expand.json | 4 +- .../new-york-v4/chart-area-stacked.json | 4 +- .../r/styles/new-york-v4/chart-area-step.json | 4 +- .../styles/new-york-v4/chart-bar-active.json | 4 +- .../styles/new-york-v4/chart-bar-default.json | 4 +- .../new-york-v4/chart-bar-horizontal.json | 4 +- .../new-york-v4/chart-bar-interactive.json | 4 +- .../new-york-v4/chart-bar-label-custom.json | 4 +- .../r/styles/new-york-v4/chart-bar-label.json | 4 +- .../r/styles/new-york-v4/chart-bar-mixed.json | 4 +- .../new-york-v4/chart-bar-multiple.json | 4 +- .../new-york-v4/chart-bar-negative.json | 4 +- .../styles/new-york-v4/chart-bar-stacked.json | 4 +- .../new-york-v4/chart-line-default.json | 4 +- .../new-york-v4/chart-line-dots-colors.json | 4 +- .../new-york-v4/chart-line-dots-custom.json | 4 +- .../r/styles/new-york-v4/chart-line-dots.json | 4 +- .../new-york-v4/chart-line-interactive.json | 4 +- .../new-york-v4/chart-line-label-custom.json | 4 +- .../styles/new-york-v4/chart-line-label.json | 4 +- .../styles/new-york-v4/chart-line-linear.json | 4 +- .../new-york-v4/chart-line-multiple.json | 4 +- .../r/styles/new-york-v4/chart-line-step.json | 4 +- .../new-york-v4/chart-pie-donut-active.json | 4 +- .../new-york-v4/chart-pie-donut-text.json | 4 +- .../r/styles/new-york-v4/chart-pie-donut.json | 4 +- .../new-york-v4/chart-pie-interactive.json | 4 +- .../new-york-v4/chart-pie-label-custom.json | 4 +- .../new-york-v4/chart-pie-label-list.json | 4 +- .../r/styles/new-york-v4/chart-pie-label.json | 4 +- .../styles/new-york-v4/chart-pie-legend.json | 4 +- .../new-york-v4/chart-pie-separator-none.json | 4 +- .../styles/new-york-v4/chart-pie-simple.json | 4 +- .../styles/new-york-v4/chart-pie-stacked.json | 4 +- .../new-york-v4/chart-radar-default.json | 4 +- .../styles/new-york-v4/chart-radar-dots.json | 4 +- .../chart-radar-grid-circle-fill.json | 4 +- .../chart-radar-grid-circle-no-lines.json | 4 +- .../new-york-v4/chart-radar-grid-circle.json | 4 +- .../new-york-v4/chart-radar-grid-custom.json | 4 +- .../new-york-v4/chart-radar-grid-fill.json | 4 +- .../new-york-v4/chart-radar-grid-none.json | 4 +- .../styles/new-york-v4/chart-radar-icons.json | 4 +- .../new-york-v4/chart-radar-label-custom.json | 4 +- .../new-york-v4/chart-radar-legend.json | 4 +- .../new-york-v4/chart-radar-lines-only.json | 4 +- .../new-york-v4/chart-radar-multiple.json | 4 +- .../new-york-v4/chart-radar-radius.json | 4 +- .../styles/new-york-v4/chart-radial-grid.json | 4 +- .../new-york-v4/chart-radial-label.json | 4 +- .../new-york-v4/chart-radial-shape.json | 4 +- .../new-york-v4/chart-radial-simple.json | 4 +- .../new-york-v4/chart-radial-stacked.json | 4 +- .../styles/new-york-v4/chart-radial-text.json | 4 +- .../new-york-v4/chart-tooltip-advanced.json | 4 +- .../new-york-v4/chart-tooltip-default.json | 4 +- .../new-york-v4/chart-tooltip-formatter.json | 4 +- .../new-york-v4/chart-tooltip-icons.json | 4 +- .../chart-tooltip-indicator-line.json | 4 +- .../chart-tooltip-indicator-none.json | 4 +- .../chart-tooltip-label-custom.json | 4 +- .../chart-tooltip-label-formatter.json | 4 +- .../new-york-v4/chart-tooltip-label-none.json | 4 +- .../public/r/styles/new-york-v4/chart.json | 2 +- .../public/r/styles/new-york-v4/checkbox.json | 2 +- .../r/styles/new-york-v4/collapsible.json | 2 +- .../public/r/styles/new-york-v4/command.json | 4 +- .../r/styles/new-york-v4/context-menu.json | 2 +- .../public/r/styles/new-york-v4/dialog.json | 2 +- .../public/r/styles/new-york-v4/drawer.json | 2 +- .../r/styles/new-york-v4/dropdown-menu.json | 2 +- .../www/public/r/styles/new-york-v4/form.json | 4 +- .../r/styles/new-york-v4/hover-card.json | 2 +- .../public/r/styles/new-york-v4/index.json | 22 + .../r/styles/new-york-v4/input-otp.json | 2 +- .../public/r/styles/new-york-v4/input.json | 2 +- .../public/r/styles/new-york-v4/label.json | 2 +- .../public/r/styles/new-york-v4/login-01.json | 8 +- .../public/r/styles/new-york-v4/login-02.json | 8 +- .../public/r/styles/new-york-v4/login-03.json | 8 +- .../public/r/styles/new-york-v4/login-04.json | 8 +- .../public/r/styles/new-york-v4/login-05.json | 8 +- .../public/r/styles/new-york-v4/menubar.json | 2 +- .../r/styles/new-york-v4/navigation-menu.json | 2 +- .../r/styles/new-york-v4/pagination.json | 4 +- .../public/r/styles/new-york-v4/popover.json | 2 +- .../public/r/styles/new-york-v4/progress.json | 2 +- .../r/styles/new-york-v4/radio-group.json | 2 +- .../r/styles/new-york-v4/resizable.json | 2 +- .../r/styles/new-york-v4/scroll-area.json | 2 +- .../public/r/styles/new-york-v4/select.json | 2 +- .../r/styles/new-york-v4/separator.json | 2 +- .../public/r/styles/new-york-v4/sheet.json | 2 +- .../r/styles/new-york-v4/sidebar-01.json | 16 +- .../r/styles/new-york-v4/sidebar-02.json | 16 +- .../r/styles/new-york-v4/sidebar-03.json | 8 +- .../r/styles/new-york-v4/sidebar-04.json | 8 +- .../r/styles/new-york-v4/sidebar-05.json | 12 +- .../r/styles/new-york-v4/sidebar-06.json | 16 +- .../r/styles/new-york-v4/sidebar-07.json | 24 +- .../r/styles/new-york-v4/sidebar-08.json | 24 +- .../r/styles/new-york-v4/sidebar-09.json | 12 +- .../r/styles/new-york-v4/sidebar-10.json | 32 +- .../r/styles/new-york-v4/sidebar-11.json | 8 +- .../r/styles/new-york-v4/sidebar-12.json | 20 +- .../r/styles/new-york-v4/sidebar-13.json | 8 +- .../r/styles/new-york-v4/sidebar-14.json | 8 +- .../r/styles/new-york-v4/sidebar-15.json | 44 +- .../r/styles/new-york-v4/sidebar-16.json | 32 +- .../public/r/styles/new-york-v4/sidebar.json | 4 +- .../public/r/styles/new-york-v4/skeleton.json | 2 +- .../public/r/styles/new-york-v4/slider.json | 2 +- .../public/r/styles/new-york-v4/sonner.json | 2 +- .../public/r/styles/new-york-v4/switch.json | 2 +- .../public/r/styles/new-york-v4/table.json | 2 +- .../www/public/r/styles/new-york-v4/tabs.json | 2 +- .../public/r/styles/new-york-v4/textarea.json | 2 +- .../r/styles/new-york-v4/toggle-group.json | 4 +- .../public/r/styles/new-york-v4/toggle.json | 2 +- .../public/r/styles/new-york-v4/tooltip.json | 2 +- .../r/styles/new-york-v4/use-mobile.json | 2 +- .../public/r/styles/new-york-v4/utils.json | 16 + 404 files changed, 2731 insertions(+), 3495 deletions(-) rename apps/v4/registry/{ => new-york-v4}/blocks/login-01/components/login-form.tsx (88%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-01/page.tsx (71%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-02/components/login-form.tsx (92%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-02/page.tsx (92%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-03/components/login-form.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-03/page.tsx (87%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-04/components/login-form.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-04/page.tsx (73%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-05/components/login-form.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/login-05/page.tsx (73%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-01/components/app-sidebar.tsx (93%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-01/components/search-form.tsx (87%) rename apps/v4/registry/{blocks/sidebar-02 => new-york-v4/blocks/sidebar-01}/components/version-switcher.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-01/page.tsx (86%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-02/components/app-sidebar.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-02/components/search-form.tsx (87%) rename apps/v4/registry/{blocks/sidebar-01 => new-york-v4/blocks/sidebar-02}/components/version-switcher.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-02/page.tsx (84%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-03/components/app-sidebar.tsx (99%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-03/page.tsx (86%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-04/components/app-sidebar.tsx (99%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-04/page.tsx (87%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-05/components/app-sidebar.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-05/components/search-form.tsx (87%) rename apps/v4/registry/{blocks/sidebar-06 => new-york-v4/blocks/sidebar-05}/page.tsx (86%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-06/components/app-sidebar.tsx (93%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-06/components/nav-main.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-06/components/sidebar-opt-in-form.tsx (83%) rename apps/v4/registry/{blocks/sidebar-05 => new-york-v4/blocks/sidebar-06}/page.tsx (86%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-07/components/app-sidebar.tsx (87%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-07/components/nav-main.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-07/components/nav-projects.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-07/components/nav-user.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-07/components/team-switcher.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-07/page.tsx (87%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-08/components/app-sidebar.tsx (89%) rename apps/v4/registry/{blocks/sidebar-16 => new-york-v4/blocks/sidebar-08}/components/nav-main.tsx (95%) rename apps/v4/registry/{blocks/sidebar-16 => new-york-v4/blocks/sidebar-08}/components/nav-projects.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-08/components/nav-secondary.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-08/components/nav-user.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-08/page.tsx (87%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-09/components/app-sidebar.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-09/components/nav-user.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-09/page.tsx (85%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-10/components/app-sidebar.tsx (90%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-10/components/nav-actions.tsx (93%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-10/components/nav-favorites.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-10/components/nav-main.tsx (93%) rename apps/v4/registry/{blocks/sidebar-15 => new-york-v4/blocks/sidebar-10}/components/nav-secondary.tsx (95%) rename apps/v4/registry/{blocks/sidebar-15 => new-york-v4/blocks/sidebar-10}/components/nav-workspaces.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-10/components/team-switcher.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-10/page.tsx (79%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-11/components/app-sidebar.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-11/page.tsx (87%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-12/components/app-sidebar.tsx (81%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-12/components/calendars.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-12/components/date-picker.tsx (68%) rename apps/v4/registry/{blocks/sidebar-15 => new-york-v4/blocks/sidebar-12}/components/nav-user.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-12/page.tsx (82%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-13/components/settings-dialog.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-13/page.tsx (59%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-14/components/app-sidebar.tsx (98%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-14/page.tsx (89%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/calendars.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/date-picker.tsx (68%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/nav-favorites.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/nav-main.tsx (93%) rename apps/v4/registry/{blocks/sidebar-10 => new-york-v4/blocks/sidebar-15}/components/nav-secondary.tsx (95%) rename apps/v4/registry/{blocks/sidebar-12 => new-york-v4/blocks/sidebar-15}/components/nav-user.tsx (94%) rename apps/v4/registry/{blocks/sidebar-10 => new-york-v4/blocks/sidebar-15}/components/nav-workspaces.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/sidebar-left.tsx (90%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/sidebar-right.tsx (82%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/components/team-switcher.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-15/page.tsx (78%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-16/components/app-sidebar.tsx (89%) rename apps/v4/registry/{blocks/sidebar-08 => new-york-v4/blocks/sidebar-16}/components/nav-main.tsx (95%) rename apps/v4/registry/{blocks/sidebar-08 => new-york-v4/blocks/sidebar-16}/components/nav-projects.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-16/components/nav-secondary.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-16/components/nav-user.tsx (94%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-16/components/search-form.tsx (81%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-16/components/site-header.tsx (79%) rename apps/v4/registry/{ => new-york-v4}/blocks/sidebar-16/page.tsx (77%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-axes.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-default.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-gradient.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-icons.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-interactive.tsx (98%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-legend.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-linear.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-stacked-expand.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-stacked.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-area-step.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-active.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-default.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-horizontal.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-interactive.tsx (99%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-label-custom.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-label.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-mixed.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-multiple.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-negative.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-bar-stacked.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-default.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-dots-colors.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-dots-custom.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-dots.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-interactive.tsx (99%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-label-custom.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-label.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-linear.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-multiple.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-line-step.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-donut-active.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-donut-text.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-donut.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-interactive.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-label-custom.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-label-list.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-label.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-legend.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-separator-none.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-simple.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-pie-stacked.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-default.tsx (95%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-dots.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-grid-circle-fill.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-grid-circle-no-lines.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-grid-circle.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-grid-custom.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-grid-fill.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-grid-none.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-icons.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-label-custom.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-legend.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-lines-only.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-multiple.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radar-radius.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radial-grid.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radial-label.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radial-shape.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radial-simple.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radial-stacked.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-radial-text.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-advanced.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-default.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-formatter.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-icons.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-indicator-line.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-indicator-none.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-label-custom.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-label-formatter.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/charts/chart-tooltip-label-none.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/hooks/use-mobile.ts (100%) rename apps/v4/registry/{ => new-york-v4}/lib/utils.ts (100%) rename apps/v4/registry/{ => new-york-v4}/ui/accordion.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/alert-dialog.tsx (98%) rename apps/v4/registry/{ => new-york-v4}/ui/alert.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/aspect-ratio.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/avatar.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/badge.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/breadcrumb.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/button.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/calendar.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/ui/card.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/carousel.tsx (98%) rename apps/v4/registry/{ => new-york-v4}/ui/chart.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/checkbox.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/collapsible.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/command.tsx (99%) rename apps/v4/registry/{ => new-york-v4}/ui/context-menu.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/dialog.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/drawer.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/dropdown-menu.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/form.tsx (98%) rename apps/v4/registry/{ => new-york-v4}/ui/hover-card.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/input-otp.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/input.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/label.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/menubar.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/navigation-menu.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/pagination.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/ui/popover.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/progress.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/radio-group.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/resizable.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/scroll-area.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/select.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/separator.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/sheet.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/sidebar.tsx (97%) rename apps/v4/registry/{ => new-york-v4}/ui/skeleton.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/slider.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/sonner.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/switch.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/table.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/tabs.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/textarea.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/toggle-group.tsx (96%) rename apps/v4/registry/{ => new-york-v4}/ui/toggle.tsx (100%) rename apps/v4/registry/{ => new-york-v4}/ui/tooltip.tsx (100%) create mode 100644 apps/www/public/r/styles/new-york-v4/index.json create mode 100644 apps/www/public/r/styles/new-york-v4/utils.json diff --git a/apps/v4/__registry__/index.tsx b/apps/v4/__registry__/index.tsx index 14126108de7..8c67cd33d5b 100644 --- a/apps/v4/__registry__/index.tsx +++ b/apps/v4/__registry__/index.tsx @@ -6,48 +6,45 @@ import * as React from "react" export const Index: Record = { - accordion: { + "index": { + name: "index", + description: "", + type: "registry:style", + registryDependencies: ["utils"], + files: [], + component: null, + meta: undefined, + }, + "accordion": { name: "accordion", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/accordion.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/accordion.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/accordion.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/accordion.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - alert: { + "alert": { name: "alert", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/alert.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/alert.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/alert.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/alert.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -57,20 +54,14 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: ["button"], - files: [ - { - path: "registry/ui/alert-dialog.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/alert-dialog.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/alert-dialog.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/alert-dialog.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -80,273 +71,201 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/aspect-ratio.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/aspect-ratio.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/aspect-ratio.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/aspect-ratio.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - avatar: { + "avatar": { name: "avatar", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/avatar.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/avatar.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/avatar.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/avatar.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - badge: { + "badge": { name: "badge", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/badge.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/badge.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/badge.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/badge.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - breadcrumb: { + "breadcrumb": { name: "breadcrumb", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/breadcrumb.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/breadcrumb.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/breadcrumb.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/breadcrumb.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - button: { + "button": { name: "button", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/button.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/button.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/button.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/button.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - calendar: { + "calendar": { name: "calendar", description: "", type: "registry:ui", registryDependencies: ["button"], - files: [ - { - path: "registry/ui/calendar.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/calendar.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/calendar.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/calendar.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - card: { + "card": { name: "card", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/card.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/card.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/card.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/card.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - carousel: { + "carousel": { name: "carousel", description: "", type: "registry:ui", registryDependencies: ["button"], - files: [ - { - path: "registry/ui/carousel.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/carousel.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/carousel.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/carousel.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - chart: { + "chart": { name: "chart", description: "", type: "registry:ui", registryDependencies: ["card"], - files: [ - { - path: "registry/ui/chart.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/chart.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/chart.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/chart.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - checkbox: { + "checkbox": { name: "checkbox", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/checkbox.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/checkbox.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/checkbox.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/checkbox.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - collapsible: { + "collapsible": { name: "collapsible", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/collapsible.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/collapsible.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/collapsible.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/collapsible.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - command: { + "command": { name: "command", description: "", type: "registry:ui", registryDependencies: ["dialog"], - files: [ - { - path: "registry/ui/command.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/command.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/command.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/command.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -356,66 +275,48 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/context-menu.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/context-menu.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/context-menu.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/context-menu.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - dialog: { + "dialog": { name: "dialog", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/dialog.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/dialog.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/dialog.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/dialog.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - drawer: { + "drawer": { name: "drawer", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/drawer.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/drawer.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/drawer.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/drawer.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -425,43 +326,31 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/dropdown-menu.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/dropdown-menu.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/dropdown-menu.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/dropdown-menu.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - form: { + "form": { name: "form", description: "", type: "registry:ui", - registryDependencies: ["button", "label"], - files: [ - { - path: "registry/ui/form.tsx", - type: "registry:ui", - target: "", - }, - ], + registryDependencies: ["button","label"], + files: [{ + path: "registry/ui/form.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/form.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/form.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -471,43 +360,31 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/hover-card.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/hover-card.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/hover-card.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/hover-card.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - input: { + "input": { name: "input", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/input.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/input.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/input.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/input.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -517,66 +394,48 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/input-otp.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/input-otp.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/input-otp.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/input-otp.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - label: { + "label": { name: "label", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/label.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/label.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/label.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/label.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - menubar: { + "menubar": { name: "menubar", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/menubar.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/menubar.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/menubar.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/menubar.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -586,89 +445,65 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/navigation-menu.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/navigation-menu.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/navigation-menu.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/navigation-menu.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - pagination: { + "pagination": { name: "pagination", description: "", type: "registry:ui", registryDependencies: ["button"], - files: [ - { - path: "registry/ui/pagination.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/pagination.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/pagination.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/pagination.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - popover: { + "popover": { name: "popover", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/popover.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/popover.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/popover.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/popover.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - progress: { + "progress": { name: "progress", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/progress.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/progress.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/progress.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/progress.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -678,43 +513,31 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/radio-group.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/radio-group.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/radio-group.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/radio-group.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - resizable: { + "resizable": { name: "resizable", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/resizable.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/resizable.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/resizable.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/resizable.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -724,304 +547,218 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/scroll-area.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/scroll-area.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/scroll-area.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/scroll-area.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - select: { + "select": { name: "select", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/select.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/select.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/select.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/select.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - separator: { + "separator": { name: "separator", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/separator.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/separator.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/separator.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/separator.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - sheet: { + "sheet": { name: "sheet", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/sheet.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/sheet.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/sheet.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/sheet.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - sidebar: { + "sidebar": { name: "sidebar", description: "", type: "registry:ui", - registryDependencies: [ - "button", - "separator", - "sheet", - "tooltip", - "input", - "use-mobile", - "skeleton", - ], - files: [ - { - path: "registry/ui/sidebar.tsx", - type: "registry:ui", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/ui/sidebar.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name - return { default: mod.default || mod[exportName] } - }), - meta: undefined, - }, - skeleton: { + registryDependencies: ["button","separator","sheet","tooltip","input","use-mobile","skeleton"], + files: [{ + path: "registry/ui/sidebar.tsx", + type: "registry:ui", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/ui/sidebar.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + meta: undefined, + }, + "skeleton": { name: "skeleton", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/skeleton.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/skeleton.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/skeleton.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/skeleton.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - slider: { + "slider": { name: "slider", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/slider.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/slider.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/slider.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/slider.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - sonner: { + "sonner": { name: "sonner", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/sonner.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/sonner.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/sonner.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/sonner.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - switch: { + "switch": { name: "switch", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/switch.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/switch.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/switch.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/switch.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - table: { + "table": { name: "table", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/table.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/table.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/table.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/table.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - tabs: { + "tabs": { name: "tabs", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/tabs.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/tabs.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/tabs.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/tabs.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - textarea: { + "textarea": { name: "textarea", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/textarea.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/textarea.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/textarea.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/textarea.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - toggle: { + "toggle": { name: "toggle", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/toggle.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/toggle.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/toggle.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/toggle.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1031,43 +768,31 @@ export const Index: Record = { description: "", type: "registry:ui", registryDependencies: ["toggle"], - files: [ - { - path: "registry/ui/toggle-group.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/toggle-group.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/toggle-group.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/toggle-group.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, - tooltip: { + "tooltip": { name: "tooltip", description: "", type: "registry:ui", registryDependencies: undefined, - files: [ - { - path: "registry/ui/tooltip.tsx", - type: "registry:ui", - target: "", - }, - ], + files: [{ + path: "registry/ui/tooltip.tsx", + type: "registry:ui", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/ui/tooltip.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/ui/tooltip.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1076,42 +801,27 @@ export const Index: Record = { name: "sidebar-01", description: "A simple sidebar with navigation grouped by section.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "label", - "dropdown-menu", - ], - files: [ - { - path: "registry/blocks/sidebar-01/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-01/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-01/components/search-form.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-01/components/version-switcher.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-01/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","label","dropdown-menu"], + files: [{ + path: "registry/blocks/sidebar-01/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-01/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-01/components/search-form.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-01/components/version-switcher.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-01/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1120,42 +830,27 @@ export const Index: Record = { name: "sidebar-02", description: "A sidebar with collapsible sections.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "label", - "dropdown-menu", - ], - files: [ - { - path: "registry/blocks/sidebar-02/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-02/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-02/components/search-form.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-02/components/version-switcher.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-02/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","label","dropdown-menu"], + files: [{ + path: "registry/blocks/sidebar-02/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-02/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-02/components/search-form.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-02/components/version-switcher.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-02/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1164,26 +859,19 @@ export const Index: Record = { name: "sidebar-03", description: "A sidebar with submenus.", type: "registry:block", - registryDependencies: ["sidebar", "breadcrumb"], - files: [ - { - path: "registry/blocks/sidebar-03/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-03/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["sidebar","breadcrumb"], + files: [{ + path: "registry/blocks/sidebar-03/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-03/components/app-sidebar.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-03/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/sidebar-03/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1192,26 +880,19 @@ export const Index: Record = { name: "sidebar-04", description: "A floating sidebar with submenus.", type: "registry:block", - registryDependencies: ["sidebar", "breadcrumb", "separator"], - files: [ - { - path: "registry/blocks/sidebar-04/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-04/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["sidebar","breadcrumb","separator"], + files: [{ + path: "registry/blocks/sidebar-04/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-04/components/app-sidebar.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-04/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/sidebar-04/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1220,37 +901,23 @@ export const Index: Record = { name: "sidebar-05", description: "A sidebar with collapsible submenus.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "label", - "collapsible", - ], - files: [ - { - path: "registry/blocks/sidebar-05/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-05/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-05/components/search-form.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-05/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","label","collapsible"], + files: [{ + path: "registry/blocks/sidebar-05/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-05/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-05/components/search-form.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-05/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1259,42 +926,27 @@ export const Index: Record = { name: "sidebar-06", description: "A sidebar with submenus as dropdowns.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "card", - "dropdown-menu", - ], - files: [ - { - path: "registry/blocks/sidebar-06/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-06/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-06/components/nav-main.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-06/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","card","dropdown-menu"], + files: [{ + path: "registry/blocks/sidebar-06/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-06/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-06/components/nav-main.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-06/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1303,53 +955,35 @@ export const Index: Record = { name: "sidebar-07", description: "A sidebar that collapses to icons.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "collapsible", - "dropdown-menu", - "avatar", - ], - files: [ - { - path: "registry/blocks/sidebar-07/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-07/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-07/components/nav-main.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-07/components/nav-projects.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-07/components/nav-user.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-07/components/team-switcher.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-07/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","collapsible","dropdown-menu","avatar"], + files: [{ + path: "registry/blocks/sidebar-07/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-07/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-07/components/nav-main.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-07/components/nav-projects.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-07/components/nav-user.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-07/components/team-switcher.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-07/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1358,53 +992,35 @@ export const Index: Record = { name: "sidebar-08", description: "An inset sidebar with secondary navigation.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "collapsible", - "dropdown-menu", - "avatar", - ], - files: [ - { - path: "registry/blocks/sidebar-08/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-08/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-08/components/nav-main.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-08/components/nav-projects.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-08/components/nav-secondary.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-08/components/nav-user.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-08/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","collapsible","dropdown-menu","avatar"], + files: [{ + path: "registry/blocks/sidebar-08/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-08/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-08/components/nav-main.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-08/components/nav-projects.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-08/components/nav-secondary.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-08/components/nav-user.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-08/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1413,39 +1029,23 @@ export const Index: Record = { name: "sidebar-09", description: "Collapsible nested sidebars.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "collapsible", - "dropdown-menu", - "avatar", - "switch", - ], - files: [ - { - path: "registry/blocks/sidebar-09/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-09/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-09/components/nav-user.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-09/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","collapsible","dropdown-menu","avatar","switch"], + files: [{ + path: "registry/blocks/sidebar-09/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-09/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-09/components/nav-user.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-09/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1454,63 +1054,43 @@ export const Index: Record = { name: "sidebar-10", description: "A sidebar in a popover.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "popover", - "collapsible", - "dropdown-menu", - ], - files: [ - { - path: "registry/blocks/sidebar-10/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-10/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-10/components/nav-actions.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-10/components/nav-favorites.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-10/components/nav-main.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-10/components/nav-secondary.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-10/components/nav-workspaces.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-10/components/team-switcher.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-10/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","popover","collapsible","dropdown-menu"], + files: [{ + path: "registry/blocks/sidebar-10/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-10/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-10/components/nav-actions.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-10/components/nav-favorites.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-10/components/nav-main.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-10/components/nav-secondary.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-10/components/nav-workspaces.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-10/components/team-switcher.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-10/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1519,26 +1099,19 @@ export const Index: Record = { name: "sidebar-11", description: "A sidebar with a collapsible file tree.", type: "registry:block", - registryDependencies: ["sidebar", "breadcrumb", "separator", "collapsible"], - files: [ - { - path: "registry/blocks/sidebar-11/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-11/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["sidebar","breadcrumb","separator","collapsible"], + files: [{ + path: "registry/blocks/sidebar-11/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-11/components/app-sidebar.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-11/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/sidebar-11/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1547,49 +1120,31 @@ export const Index: Record = { name: "sidebar-12", description: "A sidebar with a calendar.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "collapsible", - "calendar", - "dropdown-menu", - "avatar", - ], - files: [ - { - path: "registry/blocks/sidebar-12/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-12/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-12/components/calendars.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-12/components/date-picker.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-12/components/nav-user.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-12/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","collapsible","calendar","dropdown-menu","avatar"], + files: [{ + path: "registry/blocks/sidebar-12/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-12/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-12/components/calendars.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-12/components/date-picker.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-12/components/nav-user.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-12/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1598,26 +1153,19 @@ export const Index: Record = { name: "sidebar-13", description: "A sidebar in a dialog.", type: "registry:block", - registryDependencies: ["sidebar", "breadcrumb", "button", "dialog"], - files: [ - { - path: "registry/blocks/sidebar-13/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-13/components/settings-dialog.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["sidebar","breadcrumb","button","dialog"], + files: [{ + path: "registry/blocks/sidebar-13/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-13/components/settings-dialog.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-13/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/sidebar-13/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1626,26 +1174,19 @@ export const Index: Record = { name: "sidebar-14", description: "A sidebar on the right.", type: "registry:block", - registryDependencies: ["sidebar", "breadcrumb"], - files: [ - { - path: "registry/blocks/sidebar-14/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-14/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["sidebar","breadcrumb"], + files: [{ + path: "registry/blocks/sidebar-14/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-14/components/app-sidebar.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-14/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/sidebar-14/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1654,80 +1195,55 @@ export const Index: Record = { name: "sidebar-15", description: "A left and right sidebar.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "popover", - "collapsible", - "dropdown-menu", - "calendar", - "avatar", - ], - files: [ - { - path: "registry/blocks/sidebar-15/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-15/components/calendars.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/date-picker.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/nav-favorites.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/nav-main.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/nav-secondary.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/nav-user.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/nav-workspaces.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/sidebar-left.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/sidebar-right.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-15/components/team-switcher.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-15/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","popover","collapsible","dropdown-menu","calendar","avatar"], + files: [{ + path: "registry/blocks/sidebar-15/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-15/components/calendars.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/date-picker.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/nav-favorites.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/nav-main.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/nav-secondary.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/nav-user.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/nav-workspaces.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/sidebar-left.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/sidebar-right.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-15/components/team-switcher.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-15/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1736,64 +1252,43 @@ export const Index: Record = { name: "sidebar-16", description: "A sidebar with a sticky site header.", type: "registry:block", - registryDependencies: [ - "sidebar", - "breadcrumb", - "separator", - "collapsible", - "dropdown-menu", - "avatar", - "button", - ], - files: [ - { - path: "registry/blocks/sidebar-16/page.tsx", - type: "registry:page", - target: "app/dashboard/page.tsx", - }, - { - path: "registry/blocks/sidebar-16/components/app-sidebar.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-16/components/nav-main.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-16/components/nav-projects.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-16/components/nav-secondary.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-16/components/nav-user.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-16/components/search-form.tsx", - type: "registry:component", - target: "", - }, - { - path: "registry/blocks/sidebar-16/components/site-header.tsx", - type: "registry:component", - target: "", - }, - ], - component: React.lazy(async () => { - const mod = await import("@/registry/blocks/sidebar-16/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + registryDependencies: ["sidebar","breadcrumb","separator","collapsible","dropdown-menu","avatar","button"], + files: [{ + path: "registry/blocks/sidebar-16/page.tsx", + type: "registry:page", + target: "app/dashboard/page.tsx" + },{ + path: "registry/blocks/sidebar-16/components/app-sidebar.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-16/components/nav-main.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-16/components/nav-projects.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-16/components/nav-secondary.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-16/components/nav-user.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-16/components/search-form.tsx", + type: "registry:component", + target: "" + },{ + path: "registry/blocks/sidebar-16/components/site-header.tsx", + type: "registry:component", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/blocks/sidebar-16/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1802,26 +1297,19 @@ export const Index: Record = { name: "login-01", description: "A simple login form.", type: "registry:block", - registryDependencies: ["button", "card", "input", "label"], - files: [ - { - path: "registry/blocks/login-01/page.tsx", - type: "registry:page", - target: "app/login/page.tsx", - }, - { - path: "registry/blocks/login-01/components/login-form.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["button","card","input","label"], + files: [{ + path: "registry/blocks/login-01/page.tsx", + type: "registry:page", + target: "app/login/page.tsx" + },{ + path: "registry/blocks/login-01/components/login-form.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/login-01/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/login-01/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1830,26 +1318,19 @@ export const Index: Record = { name: "login-02", description: "A two column login page with a cover image.", type: "registry:block", - registryDependencies: ["button", "card", "input", "label"], - files: [ - { - path: "registry/blocks/login-02/page.tsx", - type: "registry:page", - target: "app/login/page.tsx", - }, - { - path: "registry/blocks/login-02/components/login-form.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["button","card","input","label"], + files: [{ + path: "registry/blocks/login-02/page.tsx", + type: "registry:page", + target: "app/login/page.tsx" + },{ + path: "registry/blocks/login-02/components/login-form.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/login-02/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/login-02/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1858,26 +1339,19 @@ export const Index: Record = { name: "login-03", description: "A login page with a muted background color.", type: "registry:block", - registryDependencies: ["button", "card", "input", "label"], - files: [ - { - path: "registry/blocks/login-03/page.tsx", - type: "registry:page", - target: "app/login/page.tsx", - }, - { - path: "registry/blocks/login-03/components/login-form.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["button","card","input","label"], + files: [{ + path: "registry/blocks/login-03/page.tsx", + type: "registry:page", + target: "app/login/page.tsx" + },{ + path: "registry/blocks/login-03/components/login-form.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/login-03/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/login-03/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1886,26 +1360,19 @@ export const Index: Record = { name: "login-04", description: "A login page with form and image.", type: "registry:block", - registryDependencies: ["button", "card", "input", "label"], - files: [ - { - path: "registry/blocks/login-04/page.tsx", - type: "registry:page", - target: "app/login/page.tsx", - }, - { - path: "registry/blocks/login-04/components/login-form.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["button","card","input","label"], + files: [{ + path: "registry/blocks/login-04/page.tsx", + type: "registry:page", + target: "app/login/page.tsx" + },{ + path: "registry/blocks/login-04/components/login-form.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/login-04/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/login-04/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1914,26 +1381,19 @@ export const Index: Record = { name: "login-05", description: "A simple email-only login page.", type: "registry:block", - registryDependencies: ["button", "card", "input", "label"], - files: [ - { - path: "registry/blocks/login-05/page.tsx", - type: "registry:page", - target: "app/login/page.tsx", - }, - { - path: "registry/blocks/login-05/components/login-form.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["button","card","input","label"], + files: [{ + path: "registry/blocks/login-05/page.tsx", + type: "registry:page", + target: "app/login/page.tsx" + },{ + path: "registry/blocks/login-05/components/login-form.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/blocks/login-05/page.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/blocks/login-05/page.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1942,21 +1402,15 @@ export const Index: Record = { name: "chart-area-axes", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-axes.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-axes.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-axes.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-axes.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1965,21 +1419,15 @@ export const Index: Record = { name: "chart-area-default", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-default.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-default.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-default.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-default.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -1988,21 +1436,15 @@ export const Index: Record = { name: "chart-area-gradient", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-gradient.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-gradient.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-gradient.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-gradient.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2011,21 +1453,15 @@ export const Index: Record = { name: "chart-area-icons", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-icons.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-icons.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-icons.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-icons.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2034,21 +1470,15 @@ export const Index: Record = { name: "chart-area-interactive", description: "", type: "registry:block", - registryDependencies: ["card", "chart", "select"], - files: [ - { - path: "registry/charts/chart-area-interactive.tsx", - type: "registry:component", - target: "", - }, - ], + registryDependencies: ["card","chart","select"], + files: [{ + path: "registry/charts/chart-area-interactive.tsx", + type: "registry:component", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-interactive.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-interactive.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2057,21 +1487,15 @@ export const Index: Record = { name: "chart-area-legend", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-legend.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-legend.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-legend.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-legend.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2080,21 +1504,15 @@ export const Index: Record = { name: "chart-area-linear", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-linear.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-linear.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-linear.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-linear.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2103,23 +1521,15 @@ export const Index: Record = { name: "chart-area-stacked-expand", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-stacked-expand.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-stacked-expand.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-area-stacked-expand.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-stacked-expand.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2128,21 +1538,15 @@ export const Index: Record = { name: "chart-area-stacked", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-stacked.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-stacked.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-stacked.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-stacked.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2151,21 +1555,15 @@ export const Index: Record = { name: "chart-area-step", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-area-step.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-area-step.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-area-step.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-area-step.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2174,21 +1572,15 @@ export const Index: Record = { name: "chart-bar-active", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-active.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-active.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-active.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-active.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2197,21 +1589,15 @@ export const Index: Record = { name: "chart-bar-default", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-default.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-default.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-default.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-default.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2220,21 +1606,15 @@ export const Index: Record = { name: "chart-bar-horizontal", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-horizontal.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-horizontal.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-horizontal.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-horizontal.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2243,21 +1623,15 @@ export const Index: Record = { name: "chart-bar-interactive", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-interactive.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-interactive.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-interactive.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-interactive.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2266,21 +1640,15 @@ export const Index: Record = { name: "chart-bar-label-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-label-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-label-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-label-custom.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-label-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2289,21 +1657,15 @@ export const Index: Record = { name: "chart-bar-label", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-label.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-label.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-label.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-label.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2312,21 +1674,15 @@ export const Index: Record = { name: "chart-bar-mixed", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-mixed.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-mixed.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-mixed.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-mixed.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2335,21 +1691,15 @@ export const Index: Record = { name: "chart-bar-multiple", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-multiple.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-multiple.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-multiple.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-multiple.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2358,21 +1708,15 @@ export const Index: Record = { name: "chart-bar-negative", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-negative.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-negative.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-negative.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-negative.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2381,21 +1725,15 @@ export const Index: Record = { name: "chart-bar-stacked", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-bar-stacked.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-bar-stacked.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-bar-stacked.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-bar-stacked.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2404,21 +1742,15 @@ export const Index: Record = { name: "chart-line-default", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-default.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-default.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-default.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-default.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2427,21 +1759,15 @@ export const Index: Record = { name: "chart-line-dots-colors", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-dots-colors.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-dots-colors.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-dots-colors.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-dots-colors.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2450,21 +1776,15 @@ export const Index: Record = { name: "chart-line-dots-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-dots-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-dots-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-dots-custom.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-dots-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2473,21 +1793,15 @@ export const Index: Record = { name: "chart-line-dots", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-dots.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-dots.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-dots.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-dots.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2496,21 +1810,15 @@ export const Index: Record = { name: "chart-line-interactive", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-interactive.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-interactive.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-interactive.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-interactive.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2519,21 +1827,15 @@ export const Index: Record = { name: "chart-line-label-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-label-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-label-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-label-custom.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-label-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2542,21 +1844,15 @@ export const Index: Record = { name: "chart-line-label", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-label.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-label.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-label.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-label.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2565,21 +1861,15 @@ export const Index: Record = { name: "chart-line-linear", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-linear.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-linear.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-linear.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-linear.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2588,21 +1878,15 @@ export const Index: Record = { name: "chart-line-multiple", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-multiple.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-multiple.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-multiple.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-multiple.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2611,21 +1895,15 @@ export const Index: Record = { name: "chart-line-step", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-line-step.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-line-step.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-line-step.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-line-step.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2634,21 +1912,15 @@ export const Index: Record = { name: "chart-pie-donut-active", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-donut-active.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-donut-active.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-donut-active.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-donut-active.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2657,21 +1929,15 @@ export const Index: Record = { name: "chart-pie-donut-text", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-donut-text.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-donut-text.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-donut-text.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-donut-text.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2680,21 +1946,15 @@ export const Index: Record = { name: "chart-pie-donut", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-donut.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-donut.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-donut.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-donut.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2703,21 +1963,15 @@ export const Index: Record = { name: "chart-pie-interactive", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-interactive.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-interactive.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-interactive.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-interactive.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2726,21 +1980,15 @@ export const Index: Record = { name: "chart-pie-label-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-label-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-label-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-label-custom.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-label-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2749,21 +1997,15 @@ export const Index: Record = { name: "chart-pie-label-list", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-label-list.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-label-list.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-label-list.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-label-list.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2772,21 +2014,15 @@ export const Index: Record = { name: "chart-pie-label", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-label.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-label.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-label.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-label.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2795,21 +2031,15 @@ export const Index: Record = { name: "chart-pie-legend", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-legend.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-legend.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-legend.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-legend.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2818,21 +2048,15 @@ export const Index: Record = { name: "chart-pie-separator-none", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-separator-none.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-separator-none.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-separator-none.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-separator-none.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2841,21 +2065,15 @@ export const Index: Record = { name: "chart-pie-simple", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-simple.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-simple.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-simple.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-simple.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2864,21 +2082,15 @@ export const Index: Record = { name: "chart-pie-stacked", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-pie-stacked.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-pie-stacked.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-pie-stacked.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-pie-stacked.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2887,21 +2099,15 @@ export const Index: Record = { name: "chart-radar-default", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-default.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-default.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-default.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-default.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2910,21 +2116,15 @@ export const Index: Record = { name: "chart-radar-dots", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-dots.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-dots.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-dots.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-dots.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2933,23 +2133,15 @@ export const Index: Record = { name: "chart-radar-grid-circle-fill", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-grid-circle-fill.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-grid-circle-fill.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-radar-grid-circle-fill.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-grid-circle-fill.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2958,23 +2150,15 @@ export const Index: Record = { name: "chart-radar-grid-circle-no-lines", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-grid-circle-no-lines.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-grid-circle-no-lines.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-radar-grid-circle-no-lines.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-grid-circle-no-lines.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -2983,21 +2167,15 @@ export const Index: Record = { name: "chart-radar-grid-circle", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-grid-circle.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-grid-circle.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-grid-circle.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-grid-circle.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3006,21 +2184,15 @@ export const Index: Record = { name: "chart-radar-grid-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-grid-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-grid-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-grid-custom.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-grid-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3029,21 +2201,15 @@ export const Index: Record = { name: "chart-radar-grid-fill", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-grid-fill.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-grid-fill.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-grid-fill.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-grid-fill.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3052,21 +2218,15 @@ export const Index: Record = { name: "chart-radar-grid-none", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-grid-none.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-grid-none.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-grid-none.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-grid-none.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3075,21 +2235,15 @@ export const Index: Record = { name: "chart-radar-icons", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-icons.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-icons.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-icons.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-icons.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3098,21 +2252,15 @@ export const Index: Record = { name: "chart-radar-label-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-label-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-label-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-label-custom.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-label-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3121,21 +2269,15 @@ export const Index: Record = { name: "chart-radar-legend", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-legend.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-legend.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-legend.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-legend.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3144,21 +2286,15 @@ export const Index: Record = { name: "chart-radar-lines-only", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-lines-only.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-lines-only.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-lines-only.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-lines-only.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3167,21 +2303,15 @@ export const Index: Record = { name: "chart-radar-multiple", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-multiple.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-multiple.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-multiple.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-multiple.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3190,21 +2320,15 @@ export const Index: Record = { name: "chart-radar-radius", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radar-radius.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radar-radius.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radar-radius.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radar-radius.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3213,21 +2337,15 @@ export const Index: Record = { name: "chart-radial-grid", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radial-grid.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radial-grid.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radial-grid.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radial-grid.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3236,21 +2354,15 @@ export const Index: Record = { name: "chart-radial-label", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radial-label.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radial-label.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radial-label.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radial-label.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3259,21 +2371,15 @@ export const Index: Record = { name: "chart-radial-shape", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radial-shape.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radial-shape.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radial-shape.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radial-shape.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3282,21 +2388,15 @@ export const Index: Record = { name: "chart-radial-simple", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radial-simple.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radial-simple.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radial-simple.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radial-simple.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3305,21 +2405,15 @@ export const Index: Record = { name: "chart-radial-stacked", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radial-stacked.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radial-stacked.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radial-stacked.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radial-stacked.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3328,21 +2422,15 @@ export const Index: Record = { name: "chart-radial-text", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-radial-text.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-radial-text.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-radial-text.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-radial-text.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3351,21 +2439,15 @@ export const Index: Record = { name: "chart-tooltip-default", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-default.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-default.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-tooltip-default.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-default.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3374,23 +2456,15 @@ export const Index: Record = { name: "chart-tooltip-indicator-line", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-indicator-line.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-indicator-line.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-tooltip-indicator-line.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-indicator-line.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3399,23 +2473,15 @@ export const Index: Record = { name: "chart-tooltip-indicator-none", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-indicator-none.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-indicator-none.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-tooltip-indicator-none.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-indicator-none.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3424,21 +2490,15 @@ export const Index: Record = { name: "chart-tooltip-label-none", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-label-none.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-label-none.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-tooltip-label-none.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-label-none.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3447,23 +2507,15 @@ export const Index: Record = { name: "chart-tooltip-label-custom", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-label-custom.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-label-custom.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-tooltip-label-custom.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-label-custom.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3472,23 +2524,15 @@ export const Index: Record = { name: "chart-tooltip-label-formatter", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-label-formatter.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-label-formatter.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import( - "@/registry/charts/chart-tooltip-label-formatter.tsx" - ) - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-label-formatter.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3497,21 +2541,15 @@ export const Index: Record = { name: "chart-tooltip-formatter", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-formatter.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-formatter.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-tooltip-formatter.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-formatter.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3520,21 +2558,15 @@ export const Index: Record = { name: "chart-tooltip-icons", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-icons.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-icons.tsx", + type: "registry:block", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-tooltip-icons.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-icons.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3543,21 +2575,32 @@ export const Index: Record = { name: "chart-tooltip-advanced", description: "", type: "registry:block", - registryDependencies: ["card", "chart"], - files: [ - { - path: "registry/charts/chart-tooltip-advanced.tsx", - type: "registry:block", - target: "", - }, - ], + registryDependencies: ["card","chart"], + files: [{ + path: "registry/charts/chart-tooltip-advanced.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-tooltip-advanced.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + meta: undefined, + }, + "utils": { + name: "utils", + description: "", + type: "registry:lib", + registryDependencies: undefined, + files: [{ + path: "registry/lib/utils.ts", + type: "registry:lib", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/charts/chart-tooltip-advanced.tsx") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/lib/utils.ts") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, @@ -3567,22 +2610,16 @@ export const Index: Record = { description: "", type: "registry:hook", registryDependencies: undefined, - files: [ - { - path: "registry/hooks/use-mobile.ts", - type: "registry:hook", - target: "", - }, - ], + files: [{ + path: "registry/hooks/use-mobile.ts", + type: "registry:hook", + target: "" + }], component: React.lazy(async () => { - const mod = await import("@/registry/hooks/use-mobile.ts") - const exportName = - Object.keys(mod).find( - (key) => - typeof mod[key] === "function" || typeof mod[key] === "object" - ) || item.name + const mod = await import("@/registry/new-york-v4/hooks/use-mobile.ts") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } }), meta: undefined, }, -} + } \ No newline at end of file diff --git a/apps/v4/app/(app)/charts/charts.tsx b/apps/v4/app/(app)/charts/charts.tsx index 589f5b87d81..ae13f41c748 100644 --- a/apps/v4/app/(app)/charts/charts.tsx +++ b/apps/v4/app/(app)/charts/charts.tsx @@ -1,76 +1,76 @@ -export { ChartAreaDefault } from "@/registry/charts/chart-area-default" -export { ChartAreaLinear } from "@/registry/charts/chart-area-linear" -export { ChartAreaStep } from "@/registry/charts/chart-area-step" -export { ChartAreaLegend } from "@/registry/charts/chart-area-legend" -export { ChartAreaStacked } from "@/registry/charts/chart-area-stacked" -export { ChartAreaStackedExpand } from "@/registry/charts/chart-area-stacked-expand" -export { ChartAreaIcons } from "@/registry/charts/chart-area-icons" -export { ChartAreaGradient } from "@/registry/charts/chart-area-gradient" -export { ChartAreaAxes } from "@/registry/charts/chart-area-axes" -export { ChartAreaInteractive } from "@/registry/charts/chart-area-interactive" +export { ChartAreaDefault } from "@/registry/new-york-v4/charts/chart-area-default" +export { ChartAreaLinear } from "@/registry/new-york-v4/charts/chart-area-linear" +export { ChartAreaStep } from "@/registry/new-york-v4/charts/chart-area-step" +export { ChartAreaLegend } from "@/registry/new-york-v4/charts/chart-area-legend" +export { ChartAreaStacked } from "@/registry/new-york-v4/charts/chart-area-stacked" +export { ChartAreaStackedExpand } from "@/registry/new-york-v4/charts/chart-area-stacked-expand" +export { ChartAreaIcons } from "@/registry/new-york-v4/charts/chart-area-icons" +export { ChartAreaGradient } from "@/registry/new-york-v4/charts/chart-area-gradient" +export { ChartAreaAxes } from "@/registry/new-york-v4/charts/chart-area-axes" +export { ChartAreaInteractive } from "@/registry/new-york-v4/charts/chart-area-interactive" -export { ChartBarDefault } from "@/registry/charts/chart-bar-default" -export { ChartBarHorizontal } from "@/registry/charts/chart-bar-horizontal" -export { ChartBarMultiple } from "@/registry/charts/chart-bar-multiple" -export { ChartBarStacked } from "@/registry/charts/chart-bar-stacked" -export { ChartBarLabel } from "@/registry/charts/chart-bar-label" -export { ChartBarLabelCustom } from "@/registry/charts/chart-bar-label-custom" -export { ChartBarMixed } from "@/registry/charts/chart-bar-mixed" -export { ChartBarActive } from "@/registry/charts/chart-bar-active" -export { ChartBarNegative } from "@/registry/charts/chart-bar-negative" -export { ChartBarInteractive } from "@/registry/charts/chart-bar-interactive" +export { ChartBarDefault } from "@/registry/new-york-v4/charts/chart-bar-default" +export { ChartBarHorizontal } from "@/registry/new-york-v4/charts/chart-bar-horizontal" +export { ChartBarMultiple } from "@/registry/new-york-v4/charts/chart-bar-multiple" +export { ChartBarStacked } from "@/registry/new-york-v4/charts/chart-bar-stacked" +export { ChartBarLabel } from "@/registry/new-york-v4/charts/chart-bar-label" +export { ChartBarLabelCustom } from "@/registry/new-york-v4/charts/chart-bar-label-custom" +export { ChartBarMixed } from "@/registry/new-york-v4/charts/chart-bar-mixed" +export { ChartBarActive } from "@/registry/new-york-v4/charts/chart-bar-active" +export { ChartBarNegative } from "@/registry/new-york-v4/charts/chart-bar-negative" +export { ChartBarInteractive } from "@/registry/new-york-v4/charts/chart-bar-interactive" -export { ChartLineDefault } from "@/registry/charts/chart-line-default" -export { ChartLineLinear } from "@/registry/charts/chart-line-linear" -export { ChartLineStep } from "@/registry/charts/chart-line-step" -export { ChartLineMultiple } from "@/registry/charts/chart-line-multiple" -export { ChartLineDots } from "@/registry/charts/chart-line-dots" -export { ChartLineDotsCustom } from "@/registry/charts/chart-line-dots-custom" -export { ChartLineDotsColors } from "@/registry/charts/chart-line-dots-colors" -export { ChartLineLabel } from "@/registry/charts/chart-line-label" -export { ChartLineLabelCustom } from "@/registry/charts/chart-line-label-custom" -export { ChartLineInteractive } from "@/registry/charts/chart-line-interactive" +export { ChartLineDefault } from "@/registry/new-york-v4/charts/chart-line-default" +export { ChartLineLinear } from "@/registry/new-york-v4/charts/chart-line-linear" +export { ChartLineStep } from "@/registry/new-york-v4/charts/chart-line-step" +export { ChartLineMultiple } from "@/registry/new-york-v4/charts/chart-line-multiple" +export { ChartLineDots } from "@/registry/new-york-v4/charts/chart-line-dots" +export { ChartLineDotsCustom } from "@/registry/new-york-v4/charts/chart-line-dots-custom" +export { ChartLineDotsColors } from "@/registry/new-york-v4/charts/chart-line-dots-colors" +export { ChartLineLabel } from "@/registry/new-york-v4/charts/chart-line-label" +export { ChartLineLabelCustom } from "@/registry/new-york-v4/charts/chart-line-label-custom" +export { ChartLineInteractive } from "@/registry/new-york-v4/charts/chart-line-interactive" -export { ChartPieSimple } from "@/registry/charts/chart-pie-simple" -export { ChartPieSeparatorNone } from "@/registry/charts/chart-pie-separator-none" -export { ChartPieLabel } from "@/registry/charts/chart-pie-label" -export { ChartPieLabelCustom } from "@/registry/charts/chart-pie-label-custom" -export { ChartPieLabelList } from "@/registry/charts/chart-pie-label-list" -export { ChartPieLegend } from "@/registry/charts/chart-pie-legend" -export { ChartPieDonut } from "@/registry/charts/chart-pie-donut" -export { ChartPieDonutActive } from "@/registry/charts/chart-pie-donut-active" -export { ChartPieDonutText } from "@/registry/charts/chart-pie-donut-text" -export { ChartPieStacked } from "@/registry/charts/chart-pie-stacked" -export { ChartPieInteractive } from "@/registry/charts/chart-pie-interactive" +export { ChartPieSimple } from "@/registry/new-york-v4/charts/chart-pie-simple" +export { ChartPieSeparatorNone } from "@/registry/new-york-v4/charts/chart-pie-separator-none" +export { ChartPieLabel } from "@/registry/new-york-v4/charts/chart-pie-label" +export { ChartPieLabelCustom } from "@/registry/new-york-v4/charts/chart-pie-label-custom" +export { ChartPieLabelList } from "@/registry/new-york-v4/charts/chart-pie-label-list" +export { ChartPieLegend } from "@/registry/new-york-v4/charts/chart-pie-legend" +export { ChartPieDonut } from "@/registry/new-york-v4/charts/chart-pie-donut" +export { ChartPieDonutActive } from "@/registry/new-york-v4/charts/chart-pie-donut-active" +export { ChartPieDonutText } from "@/registry/new-york-v4/charts/chart-pie-donut-text" +export { ChartPieStacked } from "@/registry/new-york-v4/charts/chart-pie-stacked" +export { ChartPieInteractive } from "@/registry/new-york-v4/charts/chart-pie-interactive" -export { ChartRadarDefault } from "@/registry/charts/chart-radar-default" -export { ChartRadarDots } from "@/registry/charts/chart-radar-dots" -export { ChartRadarLinesOnly } from "@/registry/charts/chart-radar-lines-only" -export { ChartRadarLabelCustom } from "@/registry/charts/chart-radar-label-custom" -export { ChartRadarGridCustom } from "@/registry/charts/chart-radar-grid-custom" -export { ChartRadarGridNone } from "@/registry/charts/chart-radar-grid-none" -export { ChartRadarGridCircle } from "@/registry/charts/chart-radar-grid-circle" -export { ChartRadarGridCircleNoLines } from "@/registry/charts/chart-radar-grid-circle-no-lines" -export { ChartRadarGridCircleFill } from "@/registry/charts/chart-radar-grid-circle-fill" -export { ChartRadarGridFill } from "@/registry/charts/chart-radar-grid-fill" -export { ChartRadarMultiple } from "@/registry/charts/chart-radar-multiple" -export { ChartRadarLegend } from "@/registry/charts/chart-radar-legend" -export { ChartRadarIcons } from "@/registry/charts/chart-radar-icons" -export { ChartRadarRadius } from "@/registry/charts/chart-radar-radius" +export { ChartRadarDefault } from "@/registry/new-york-v4/charts/chart-radar-default" +export { ChartRadarDots } from "@/registry/new-york-v4/charts/chart-radar-dots" +export { ChartRadarLinesOnly } from "@/registry/new-york-v4/charts/chart-radar-lines-only" +export { ChartRadarLabelCustom } from "@/registry/new-york-v4/charts/chart-radar-label-custom" +export { ChartRadarGridCustom } from "@/registry/new-york-v4/charts/chart-radar-grid-custom" +export { ChartRadarGridNone } from "@/registry/new-york-v4/charts/chart-radar-grid-none" +export { ChartRadarGridCircle } from "@/registry/new-york-v4/charts/chart-radar-grid-circle" +export { ChartRadarGridCircleNoLines } from "@/registry/new-york-v4/charts/chart-radar-grid-circle-no-lines" +export { ChartRadarGridCircleFill } from "@/registry/new-york-v4/charts/chart-radar-grid-circle-fill" +export { ChartRadarGridFill } from "@/registry/new-york-v4/charts/chart-radar-grid-fill" +export { ChartRadarMultiple } from "@/registry/new-york-v4/charts/chart-radar-multiple" +export { ChartRadarLegend } from "@/registry/new-york-v4/charts/chart-radar-legend" +export { ChartRadarIcons } from "@/registry/new-york-v4/charts/chart-radar-icons" +export { ChartRadarRadius } from "@/registry/new-york-v4/charts/chart-radar-radius" -export { ChartRadialSimple } from "@/registry/charts/chart-radial-simple" -export { ChartRadialLabel } from "@/registry/charts/chart-radial-label" -export { ChartRadialGrid } from "@/registry/charts/chart-radial-grid" -export { ChartRadialText } from "@/registry/charts/chart-radial-text" -export { ChartRadialShape } from "@/registry/charts/chart-radial-shape" -export { ChartRadialStacked } from "@/registry/charts/chart-radial-stacked" +export { ChartRadialSimple } from "@/registry/new-york-v4/charts/chart-radial-simple" +export { ChartRadialLabel } from "@/registry/new-york-v4/charts/chart-radial-label" +export { ChartRadialGrid } from "@/registry/new-york-v4/charts/chart-radial-grid" +export { ChartRadialText } from "@/registry/new-york-v4/charts/chart-radial-text" +export { ChartRadialShape } from "@/registry/new-york-v4/charts/chart-radial-shape" +export { ChartRadialStacked } from "@/registry/new-york-v4/charts/chart-radial-stacked" -export { ChartTooltipDefault } from "@/registry/charts/chart-tooltip-default" -export { ChartTooltipIndicatorLine } from "@/registry/charts/chart-tooltip-indicator-line" -export { ChartTooltipIndicatorNone } from "@/registry/charts/chart-tooltip-indicator-none" -export { ChartTooltipLabelCustom } from "@/registry/charts/chart-tooltip-label-custom" -export { ChartTooltipLabelFormatter } from "@/registry/charts/chart-tooltip-label-formatter" -export { ChartTooltipLabelNone } from "@/registry/charts/chart-tooltip-label-none" -export { ChartTooltipFormatter } from "@/registry/charts/chart-tooltip-formatter" -export { ChartTooltipIcons } from "@/registry/charts/chart-tooltip-icons" -export { ChartTooltipAdvanced } from "@/registry/charts/chart-tooltip-advanced" +export { ChartTooltipDefault } from "@/registry/new-york-v4/charts/chart-tooltip-default" +export { ChartTooltipIndicatorLine } from "@/registry/new-york-v4/charts/chart-tooltip-indicator-line" +export { ChartTooltipIndicatorNone } from "@/registry/new-york-v4/charts/chart-tooltip-indicator-none" +export { ChartTooltipLabelCustom } from "@/registry/new-york-v4/charts/chart-tooltip-label-custom" +export { ChartTooltipLabelFormatter } from "@/registry/new-york-v4/charts/chart-tooltip-label-formatter" +export { ChartTooltipLabelNone } from "@/registry/new-york-v4/charts/chart-tooltip-label-none" +export { ChartTooltipFormatter } from "@/registry/new-york-v4/charts/chart-tooltip-formatter" +export { ChartTooltipIcons } from "@/registry/new-york-v4/charts/chart-tooltip-icons" +export { ChartTooltipAdvanced } from "@/registry/new-york-v4/charts/chart-tooltip-advanced" diff --git a/apps/v4/app/(app)/charts/page.tsx b/apps/v4/app/(app)/charts/page.tsx index b1dba32bb8e..ce55b25fb05 100644 --- a/apps/v4/app/(app)/charts/page.tsx +++ b/apps/v4/app/(app)/charts/page.tsx @@ -3,7 +3,7 @@ import * as Charts from "@/app/(app)/charts/charts" export default function ChartsPage() { return ( -
+
{Object.entries(Charts) .sort() .map(([key, Component]) => ( diff --git a/apps/v4/app/(app)/layout.tsx b/apps/v4/app/(app)/layout.tsx index 27db48a725a..2d7abfb0b58 100644 --- a/apps/v4/app/(app)/layout.tsx +++ b/apps/v4/app/(app)/layout.tsx @@ -7,13 +7,13 @@ import { NavigationMenuItem, NavigationMenuLink, NavigationMenuList, -} from "@/registry/ui/navigation-menu" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/navigation-menu" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function AppLayout({ children, diff --git a/apps/v4/app/layout.tsx b/apps/v4/app/layout.tsx index f779a134eee..5e9b97aec06 100644 --- a/apps/v4/app/layout.tsx +++ b/apps/v4/app/layout.tsx @@ -4,7 +4,7 @@ import { GeistSans } from "geist/font/sans" import { cn } from "@/lib/utils" import { ThemeProvider } from "@/components/theme-provider" -import { Toaster } from "@/registry/ui/sonner" +import { Toaster } from "@/registry/new-york-v4/ui/sonner" import { siteConfig } from "@/www/config/site" import "./globals.css" diff --git a/apps/v4/components/accordion-demo.tsx b/apps/v4/components/accordion-demo.tsx index ada56fd6d65..1f616ac8588 100644 --- a/apps/v4/components/accordion-demo.tsx +++ b/apps/v4/components/accordion-demo.tsx @@ -3,7 +3,7 @@ import { AccordionContent, AccordionItem, AccordionTrigger, -} from "@/registry/ui/accordion" +} from "@/registry/new-york-v4/ui/accordion" export function AccordionDemo() { return ( diff --git a/apps/v4/components/alert-demo.tsx b/apps/v4/components/alert-demo.tsx index 1090b07676d..b37b802df5c 100644 --- a/apps/v4/components/alert-demo.tsx +++ b/apps/v4/components/alert-demo.tsx @@ -7,8 +7,12 @@ import { ShieldAlertIcon, } from "lucide-react" -import { Alert, AlertDescription, AlertTitle } from "@/registry/ui/alert" -import { Button } from "@/registry/ui/button" +import { + Alert, + AlertDescription, + AlertTitle, +} from "@/registry/new-york-v4/ui/alert" +import { Button } from "@/registry/new-york-v4/ui/button" export function AlertDemo() { return ( diff --git a/apps/v4/components/alert-dialog-demo.tsx b/apps/v4/components/alert-dialog-demo.tsx index 7b70a691323..a9fe2a35116 100644 --- a/apps/v4/components/alert-dialog-demo.tsx +++ b/apps/v4/components/alert-dialog-demo.tsx @@ -8,8 +8,8 @@ import { AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, -} from "@/registry/ui/alert-dialog" -import { Button } from "@/registry/ui/button" +} from "@/registry/new-york-v4/ui/alert-dialog" +import { Button } from "@/registry/new-york-v4/ui/button" export function AlertDialogDemo() { return ( diff --git a/apps/v4/components/app-sidebar.tsx b/apps/v4/components/app-sidebar.tsx index 627e383ad37..19477bb9d51 100644 --- a/apps/v4/components/app-sidebar.tsx +++ b/apps/v4/components/app-sidebar.tsx @@ -12,9 +12,9 @@ import { SquareTerminal, } from "lucide-react" -import { NavMain } from "@/registry/blocks/sidebar-07/components/nav-main" -import { NavUser } from "@/registry/blocks/sidebar-07/components/nav-user" -import { TeamSwitcher } from "@/registry/blocks/sidebar-07/components/team-switcher" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-07/components/nav-main" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-07/components/nav-user" +import { TeamSwitcher } from "@/registry/new-york-v4/blocks/sidebar-07/components/team-switcher" import { Sidebar, SidebarContent, @@ -26,7 +26,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/components/aspect-ratio-demo.tsx b/apps/v4/components/aspect-ratio-demo.tsx index e84e09d23d1..1d755ba353a 100644 --- a/apps/v4/components/aspect-ratio-demo.tsx +++ b/apps/v4/components/aspect-ratio-demo.tsx @@ -1,6 +1,6 @@ import Image from "next/image" -import { AspectRatio } from "@/registry/ui/aspect-ratio" +import { AspectRatio } from "@/registry/new-york-v4/ui/aspect-ratio" export function AspectRatioDemo() { return ( diff --git a/apps/v4/components/avatar-demo.tsx b/apps/v4/components/avatar-demo.tsx index 99b98872d89..8766ff251da 100644 --- a/apps/v4/components/avatar-demo.tsx +++ b/apps/v4/components/avatar-demo.tsx @@ -1,4 +1,8 @@ -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" export function AvatarDemo() { return ( diff --git a/apps/v4/components/badge-demo.tsx b/apps/v4/components/badge-demo.tsx index 9df15d53803..1798df90be9 100644 --- a/apps/v4/components/badge-demo.tsx +++ b/apps/v4/components/badge-demo.tsx @@ -1,6 +1,6 @@ import { AlertCircleIcon, ArrowRightIcon, CheckIcon } from "lucide-react" -import { Badge } from "@/registry/ui/badge" +import { Badge } from "@/registry/new-york-v4/ui/badge" export function BadgeDemo() { return ( diff --git a/apps/v4/components/breadcrumb-demo.tsx b/apps/v4/components/breadcrumb-demo.tsx index 5caa3640233..058579162c9 100644 --- a/apps/v4/components/breadcrumb-demo.tsx +++ b/apps/v4/components/breadcrumb-demo.tsx @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" +} from "@/registry/new-york-v4/ui/breadcrumb" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" export function BreadcrumbDemo() { return ( diff --git a/apps/v4/components/button-demo.tsx b/apps/v4/components/button-demo.tsx index b3ebfcb2bd8..e79e5312a97 100644 --- a/apps/v4/components/button-demo.tsx +++ b/apps/v4/components/button-demo.tsx @@ -1,6 +1,6 @@ import { Loader2Icon, MailOpenIcon } from "lucide-react" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" export function ButtonDemo() { return ( diff --git a/apps/v4/components/calendar-demo.tsx b/apps/v4/components/calendar-demo.tsx index 114786f8b11..ae97d70b132 100644 --- a/apps/v4/components/calendar-demo.tsx +++ b/apps/v4/components/calendar-demo.tsx @@ -4,7 +4,7 @@ import * as React from "react" import { addDays } from "date-fns" import { type DateRange } from "react-day-picker" -import { Calendar } from "@/registry/ui/calendar" +import { Calendar } from "@/registry/new-york-v4/ui/calendar" export function CalendarDemo() { const [date, setDate] = React.useState(new Date()) diff --git a/apps/v4/components/card-demo.tsx b/apps/v4/components/card-demo.tsx index b31c30fff03..24dc66c40e5 100644 --- a/apps/v4/components/card-demo.tsx +++ b/apps/v4/components/card-demo.tsx @@ -1,9 +1,13 @@ import Image from "next/image" import { BathIcon, BedIcon, LandPlotIcon } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" -import { Badge } from "@/registry/ui/badge" -import { Button } from "@/registry/ui/button" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" +import { Badge } from "@/registry/new-york-v4/ui/badge" +import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, @@ -11,9 +15,9 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +} from "@/registry/new-york-v4/ui/card" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function CardDemo() { return ( diff --git a/apps/v4/components/carousel-demo.tsx b/apps/v4/components/carousel-demo.tsx index 2a7596592a5..88ed7b2e476 100644 --- a/apps/v4/components/carousel-demo.tsx +++ b/apps/v4/components/carousel-demo.tsx @@ -1,13 +1,13 @@ import * as React from "react" -import { Card, CardContent } from "@/registry/ui/card" +import { Card, CardContent } from "@/registry/new-york-v4/ui/card" import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, -} from "@/registry/ui/carousel" +} from "@/registry/new-york-v4/ui/carousel" export function CarouselDemo() { return ( diff --git a/apps/v4/components/chart-area-demo.tsx b/apps/v4/components/chart-area-demo.tsx index cb31f1cbcdc..4cbb2896d2c 100644 --- a/apps/v4/components/chart-area-demo.tsx +++ b/apps/v4/components/chart-area-demo.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A simple area chart" diff --git a/apps/v4/components/chart-bar-demo.tsx b/apps/v4/components/chart-bar-demo.tsx index e24221a6290..3b53863b007 100644 --- a/apps/v4/components/chart-bar-demo.tsx +++ b/apps/v4/components/chart-bar-demo.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A multiple bar chart" diff --git a/apps/v4/components/chart-line-demo.tsx b/apps/v4/components/chart-line-demo.tsx index c5f233ff168..cc9f6872cf8 100644 --- a/apps/v4/components/chart-line-demo.tsx +++ b/apps/v4/components/chart-line-demo.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A multiple line chart" diff --git a/apps/v4/components/checkbox-demo.tsx b/apps/v4/components/checkbox-demo.tsx index 444c4e15a24..3de6a07bcb2 100644 --- a/apps/v4/components/checkbox-demo.tsx +++ b/apps/v4/components/checkbox-demo.tsx @@ -1,7 +1,7 @@ "use client" -import { Checkbox } from "@/registry/ui/checkbox" -import { Label } from "@/registry/ui/label" +import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" +import { Label } from "@/registry/new-york-v4/ui/label" export function CheckboxDemo() { return ( diff --git a/apps/v4/components/collapsible-demo.tsx b/apps/v4/components/collapsible-demo.tsx index a291ca08a42..a2da7994ac0 100644 --- a/apps/v4/components/collapsible-demo.tsx +++ b/apps/v4/components/collapsible-demo.tsx @@ -3,12 +3,12 @@ import * as React from "react" import { ChevronsUpDown } from "lucide-react" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" export function CollapsibleDemo() { const [isOpen, setIsOpen] = React.useState(false) diff --git a/apps/v4/components/combobox-demo.tsx b/apps/v4/components/combobox-demo.tsx index 863cae88ad0..40783372e9d 100644 --- a/apps/v4/components/combobox-demo.tsx +++ b/apps/v4/components/combobox-demo.tsx @@ -9,8 +9,12 @@ import { } from "lucide-react" import { cn } from "@/lib/utils" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" -import { Button } from "@/registry/ui/button" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" +import { Button } from "@/registry/new-york-v4/ui/button" import { Command, CommandEmpty, @@ -19,8 +23,12 @@ import { CommandItem, CommandList, CommandSeparator, -} from "@/registry/ui/command" -import { Popover, PopoverContent, PopoverTrigger } from "@/registry/ui/popover" +} from "@/registry/new-york-v4/ui/command" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" const frameworks = [ { diff --git a/apps/v4/components/command-demo.tsx b/apps/v4/components/command-demo.tsx index 9c75a4aec16..bff278d675a 100644 --- a/apps/v4/components/command-demo.tsx +++ b/apps/v4/components/command-demo.tsx @@ -19,7 +19,7 @@ import { CommandList, CommandSeparator, CommandShortcut, -} from "@/registry/ui/command" +} from "@/registry/new-york-v4/ui/command" export function CommandDemo() { const [open, setOpen] = React.useState(false) diff --git a/apps/v4/components/component-wrapper.tsx b/apps/v4/components/component-wrapper.tsx index ea839dd5db6..46ed741cf53 100644 --- a/apps/v4/components/component-wrapper.tsx +++ b/apps/v4/components/component-wrapper.tsx @@ -2,7 +2,7 @@ import * as React from "react" -import { cn } from "@/registry/lib/utils" +import { cn } from "@/registry/new-york-v4/lib/utils" export function ComponentWrapper({ className, diff --git a/apps/v4/components/context-menu-demo.tsx b/apps/v4/components/context-menu-demo.tsx index 09a9faf6207..658d78dc829 100644 --- a/apps/v4/components/context-menu-demo.tsx +++ b/apps/v4/components/context-menu-demo.tsx @@ -14,7 +14,7 @@ import { ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, -} from "@/registry/ui/context-menu" +} from "@/registry/new-york-v4/ui/context-menu" export function ContextMenuDemo() { return ( diff --git a/apps/v4/components/date-picker-demo.tsx b/apps/v4/components/date-picker-demo.tsx index aa8237b812c..dece99ae2f2 100644 --- a/apps/v4/components/date-picker-demo.tsx +++ b/apps/v4/components/date-picker-demo.tsx @@ -6,9 +6,13 @@ import { CalendarIcon } from "lucide-react" import { DateRange } from "react-day-picker" import { cn } from "@/lib/utils" -import { Button } from "@/registry/ui/button" -import { Calendar } from "@/registry/ui/calendar" -import { Popover, PopoverContent, PopoverTrigger } from "@/registry/ui/popover" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Calendar } from "@/registry/new-york-v4/ui/calendar" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" export function DatePickerDemo() { return ( diff --git a/apps/v4/components/dialog-demo.tsx b/apps/v4/components/dialog-demo.tsx index c922a9a9a2a..25d115a6238 100644 --- a/apps/v4/components/dialog-demo.tsx +++ b/apps/v4/components/dialog-demo.tsx @@ -1,4 +1,4 @@ -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" import { Dialog, DialogClose, @@ -8,9 +8,9 @@ import { DialogHeader, DialogTitle, DialogTrigger, -} from "@/registry/ui/dialog" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +} from "@/registry/new-york-v4/ui/dialog" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function DialogDemo() { return ( diff --git a/apps/v4/components/drawer-demo.tsx b/apps/v4/components/drawer-demo.tsx index 869100bb5e4..1c47891f3a7 100644 --- a/apps/v4/components/drawer-demo.tsx +++ b/apps/v4/components/drawer-demo.tsx @@ -4,7 +4,7 @@ import * as React from "react" import { Minus, Plus } from "lucide-react" import { Bar, BarChart, ResponsiveContainer } from "recharts" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" import { Drawer, DrawerClose, @@ -14,7 +14,7 @@ import { DrawerHeader, DrawerTitle, DrawerTrigger, -} from "@/registry/ui/drawer" +} from "@/registry/new-york-v4/ui/drawer" const data = [ { diff --git a/apps/v4/components/dropdown-menu-demo.tsx b/apps/v4/components/dropdown-menu-demo.tsx index 349d3261c83..987d2f55f29 100644 --- a/apps/v4/components/dropdown-menu-demo.tsx +++ b/apps/v4/components/dropdown-menu-demo.tsx @@ -17,8 +17,12 @@ import { UserIcon, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" -import { Button } from "@/registry/ui/button" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" +import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuCheckboxItem, @@ -35,7 +39,7 @@ import { DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" export function DropdownMenuDemo() { return ( diff --git a/apps/v4/components/form-demo.tsx b/apps/v4/components/form-demo.tsx index 1cf300b0967..96317e8ec03 100644 --- a/apps/v4/components/form-demo.tsx +++ b/apps/v4/components/form-demo.tsx @@ -9,9 +9,9 @@ import { toast } from "sonner" import { z } from "zod" import { cn } from "@/lib/utils" -import { Button } from "@/registry/ui/button" -import { Calendar } from "@/registry/ui/calendar" -import { Checkbox } from "@/registry/ui/checkbox" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Calendar } from "@/registry/new-york-v4/ui/calendar" +import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" import { Form, FormControl, @@ -20,19 +20,26 @@ import { FormItem, FormLabel, FormMessage, -} from "@/registry/ui/form" -import { Input } from "@/registry/ui/input" -import { Popover, PopoverContent, PopoverTrigger } from "@/registry/ui/popover" -import { RadioGroup, RadioGroupItem } from "@/registry/ui/radio-group" +} from "@/registry/new-york-v4/ui/form" +import { Input } from "@/registry/new-york-v4/ui/input" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" +import { + RadioGroup, + RadioGroupItem, +} from "@/registry/new-york-v4/ui/radio-group" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, -} from "@/registry/ui/select" -import { Switch } from "@/registry/ui/switch" -import { Textarea } from "@/registry/ui/textarea" +} from "@/registry/new-york-v4/ui/select" +import { Switch } from "@/registry/new-york-v4/ui/switch" +import { Textarea } from "@/registry/new-york-v4/ui/textarea" const items = [ { diff --git a/apps/v4/components/hover-card-demo.tsx b/apps/v4/components/hover-card-demo.tsx index 5fe763f0419..a1b7d3daf04 100644 --- a/apps/v4/components/hover-card-demo.tsx +++ b/apps/v4/components/hover-card-demo.tsx @@ -1,12 +1,16 @@ import { CalendarIcon } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" -import { Button } from "@/registry/ui/button" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" +import { Button } from "@/registry/new-york-v4/ui/button" import { HoverCard, HoverCardContent, HoverCardTrigger, -} from "@/registry/ui/hover-card" +} from "@/registry/new-york-v4/ui/hover-card" export function HoverCardDemo() { return ( diff --git a/apps/v4/components/input-demo.tsx b/apps/v4/components/input-demo.tsx index 41c138ef3bd..ffa9a7c2c66 100644 --- a/apps/v4/components/input-demo.tsx +++ b/apps/v4/components/input-demo.tsx @@ -1,4 +1,4 @@ -import { Input } from "@/registry/ui/input" +import { Input } from "@/registry/new-york-v4/ui/input" export function InputDemo() { return ( diff --git a/apps/v4/components/input-otp-demo.tsx b/apps/v4/components/input-otp-demo.tsx index 147c07ab295..979ac1e97c6 100644 --- a/apps/v4/components/input-otp-demo.tsx +++ b/apps/v4/components/input-otp-demo.tsx @@ -8,8 +8,8 @@ import { InputOTPGroup, InputOTPSeparator, InputOTPSlot, -} from "@/registry/ui/input-otp" -import { Label } from "@/registry/ui/label" +} from "@/registry/new-york-v4/ui/input-otp" +import { Label } from "@/registry/new-york-v4/ui/label" export function InputOTPDemo() { return ( diff --git a/apps/v4/components/label-demo.tsx b/apps/v4/components/label-demo.tsx index 58b7b300dc8..d3ed8060fbc 100644 --- a/apps/v4/components/label-demo.tsx +++ b/apps/v4/components/label-demo.tsx @@ -1,7 +1,7 @@ -import { Checkbox } from "@/registry/ui/checkbox" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" -import { Textarea } from "@/registry/ui/textarea" +import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" +import { Textarea } from "@/registry/new-york-v4/ui/textarea" export function LabelDemo() { return ( diff --git a/apps/v4/components/menubar-demo.tsx b/apps/v4/components/menubar-demo.tsx index 5b8a9e4ef59..1ece3f98ca6 100644 --- a/apps/v4/components/menubar-demo.tsx +++ b/apps/v4/components/menubar-demo.tsx @@ -15,7 +15,7 @@ import { MenubarSubContent, MenubarSubTrigger, MenubarTrigger, -} from "@/registry/ui/menubar" +} from "@/registry/new-york-v4/ui/menubar" export function MenubarDemo() { return ( diff --git a/apps/v4/components/mode-switcher.tsx b/apps/v4/components/mode-switcher.tsx index 07571a0f154..ae3257c60a6 100644 --- a/apps/v4/components/mode-switcher.tsx +++ b/apps/v4/components/mode-switcher.tsx @@ -5,7 +5,7 @@ import { MoonIcon, SunIcon } from "lucide-react" import { useTheme } from "next-themes" import { META_THEME_COLORS, useMetaColor } from "@/hooks/use-meta-color" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" export function ModeSwitcher() { const { setTheme, resolvedTheme } = useTheme() diff --git a/apps/v4/components/mode-toggle.tsx b/apps/v4/components/mode-toggle.tsx index 1233f3d1611..4ccf6dcf4f9 100644 --- a/apps/v4/components/mode-toggle.tsx +++ b/apps/v4/components/mode-toggle.tsx @@ -4,7 +4,7 @@ import * as React from "react" import { MoonIcon, SunIcon } from "lucide-react" import { useTheme } from "next-themes" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" export function ModeToggle() { const { setTheme, resolvedTheme } = useTheme() diff --git a/apps/v4/components/nav-main.tsx b/apps/v4/components/nav-main.tsx index 4905522774e..25b99a8a0c3 100644 --- a/apps/v4/components/nav-main.tsx +++ b/apps/v4/components/nav-main.tsx @@ -6,7 +6,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupLabel, @@ -16,7 +16,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/components/nav-projects.tsx b/apps/v4/components/nav-projects.tsx index df3fa65f0fd..e4d55c8a4d4 100644 --- a/apps/v4/components/nav-projects.tsx +++ b/apps/v4/components/nav-projects.tsx @@ -14,7 +14,7 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarGroupLabel, @@ -23,7 +23,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavProjects({ projects, diff --git a/apps/v4/components/nav-user.tsx b/apps/v4/components/nav-user.tsx index 7e41a7c2555..9d751fbf267 100644 --- a/apps/v4/components/nav-user.tsx +++ b/apps/v4/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/components/navigation-menu-demo.tsx b/apps/v4/components/navigation-menu-demo.tsx index 92785e995df..2178ed9ca66 100644 --- a/apps/v4/components/navigation-menu-demo.tsx +++ b/apps/v4/components/navigation-menu-demo.tsx @@ -11,7 +11,7 @@ import { NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, -} from "@/registry/ui/navigation-menu" +} from "@/registry/new-york-v4/ui/navigation-menu" const components: { title: string; href: string; description: string }[] = [ { diff --git a/apps/v4/components/pagination-demo.tsx b/apps/v4/components/pagination-demo.tsx index 5d50aa70132..451eb8b2783 100644 --- a/apps/v4/components/pagination-demo.tsx +++ b/apps/v4/components/pagination-demo.tsx @@ -6,7 +6,7 @@ import { PaginationLink, PaginationNext, PaginationPrevious, -} from "@/registry/ui/pagination" +} from "@/registry/new-york-v4/ui/pagination" export function PaginationDemo() { return ( diff --git a/apps/v4/components/popover-demo.tsx b/apps/v4/components/popover-demo.tsx index 789699f96e5..87329c1355c 100644 --- a/apps/v4/components/popover-demo.tsx +++ b/apps/v4/components/popover-demo.tsx @@ -1,7 +1,11 @@ -import { Button } from "@/registry/ui/button" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" -import { Popover, PopoverContent, PopoverTrigger } from "@/registry/ui/popover" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" export function PopoverDemo() { return ( diff --git a/apps/v4/components/progress-demo.tsx b/apps/v4/components/progress-demo.tsx index 85d64cb011b..ee94673b9b8 100644 --- a/apps/v4/components/progress-demo.tsx +++ b/apps/v4/components/progress-demo.tsx @@ -2,7 +2,7 @@ import * as React from "react" -import { Progress } from "@/registry/ui/progress" +import { Progress } from "@/registry/new-york-v4/ui/progress" export function ProgressDemo() { const [progress, setProgress] = React.useState(13) diff --git a/apps/v4/components/radio-group-demo.tsx b/apps/v4/components/radio-group-demo.tsx index 6479242e46f..4b4d462cde6 100644 --- a/apps/v4/components/radio-group-demo.tsx +++ b/apps/v4/components/radio-group-demo.tsx @@ -1,5 +1,8 @@ -import { Label } from "@/registry/ui/label" -import { RadioGroup, RadioGroupItem } from "@/registry/ui/radio-group" +import { Label } from "@/registry/new-york-v4/ui/label" +import { + RadioGroup, + RadioGroupItem, +} from "@/registry/new-york-v4/ui/radio-group" const plans = [ { diff --git a/apps/v4/components/resizable-demo.tsx b/apps/v4/components/resizable-demo.tsx index 7dbc0db0f4a..8f6ed50f020 100644 --- a/apps/v4/components/resizable-demo.tsx +++ b/apps/v4/components/resizable-demo.tsx @@ -2,7 +2,7 @@ import { ResizableHandle, ResizablePanel, ResizablePanelGroup, -} from "@/registry/ui/resizable" +} from "@/registry/new-york-v4/ui/resizable" export function ResizableDemo() { return ( diff --git a/apps/v4/components/scroll-area-demo.tsx b/apps/v4/components/scroll-area-demo.tsx index f18db84ab46..acd4ac1a550 100644 --- a/apps/v4/components/scroll-area-demo.tsx +++ b/apps/v4/components/scroll-area-demo.tsx @@ -1,8 +1,8 @@ import * as React from "react" import Image from "next/image" -import { ScrollArea, ScrollBar } from "@/registry/ui/scroll-area" -import { Separator } from "@/registry/ui/separator" +import { ScrollArea, ScrollBar } from "@/registry/new-york-v4/ui/scroll-area" +import { Separator } from "@/registry/new-york-v4/ui/separator" export function ScrollAreaDemo() { return ( diff --git a/apps/v4/components/select-demo.tsx b/apps/v4/components/select-demo.tsx index 3b2e18eec91..f880adbbcb2 100644 --- a/apps/v4/components/select-demo.tsx +++ b/apps/v4/components/select-demo.tsx @@ -14,7 +14,7 @@ import { SelectLabel, SelectTrigger, SelectValue, -} from "@/registry/ui/select" +} from "@/registry/new-york-v4/ui/select" export function SelectDemo() { return ( diff --git a/apps/v4/components/separator-demo.tsx b/apps/v4/components/separator-demo.tsx index e9083164072..5054ba2bcd9 100644 --- a/apps/v4/components/separator-demo.tsx +++ b/apps/v4/components/separator-demo.tsx @@ -1,4 +1,4 @@ -import { Separator } from "@/registry/ui/separator" +import { Separator } from "@/registry/new-york-v4/ui/separator" export function SeparatorDemo() { return ( diff --git a/apps/v4/components/sheet-demo.tsx b/apps/v4/components/sheet-demo.tsx index e5a1fdb4bbc..70094e3dcc2 100644 --- a/apps/v4/components/sheet-demo.tsx +++ b/apps/v4/components/sheet-demo.tsx @@ -1,6 +1,6 @@ -import { Button } from "@/registry/ui/button" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" import { Sheet, SheetClose, @@ -10,7 +10,7 @@ import { SheetHeader, SheetTitle, SheetTrigger, -} from "@/registry/ui/sheet" +} from "@/registry/new-york-v4/ui/sheet" const SHEET_SIDES = ["top", "right", "bottom", "left"] as const diff --git a/apps/v4/components/skeleton-demo.tsx b/apps/v4/components/skeleton-demo.tsx index ac62304ced9..6fc6db2ceb1 100644 --- a/apps/v4/components/skeleton-demo.tsx +++ b/apps/v4/components/skeleton-demo.tsx @@ -1,5 +1,5 @@ -import { Card, CardContent, CardHeader } from "@/registry/ui/card" -import { Skeleton } from "@/registry/ui/skeleton" +import { Card, CardContent, CardHeader } from "@/registry/new-york-v4/ui/card" +import { Skeleton } from "@/registry/new-york-v4/ui/skeleton" export function SkeletonDemo() { return ( diff --git a/apps/v4/components/slider-demo.tsx b/apps/v4/components/slider-demo.tsx index 6bb787dec45..e4c63ea361b 100644 --- a/apps/v4/components/slider-demo.tsx +++ b/apps/v4/components/slider-demo.tsx @@ -2,8 +2,8 @@ import * as React from "react" -import { Label } from "@/registry/ui/label" -import { Slider } from "@/registry/ui/slider" +import { Label } from "@/registry/new-york-v4/ui/label" +import { Slider } from "@/registry/new-york-v4/ui/slider" export function SliderDemo() { return ( diff --git a/apps/v4/components/sonner-demo.tsx b/apps/v4/components/sonner-demo.tsx index d0994bce1a2..1455c7590bb 100644 --- a/apps/v4/components/sonner-demo.tsx +++ b/apps/v4/components/sonner-demo.tsx @@ -2,7 +2,7 @@ import { toast } from "sonner" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" export function SonnerDemo() { return ( diff --git a/apps/v4/components/switch-demo.tsx b/apps/v4/components/switch-demo.tsx index ba23eb216d7..bd4cf82cb44 100644 --- a/apps/v4/components/switch-demo.tsx +++ b/apps/v4/components/switch-demo.tsx @@ -1,5 +1,5 @@ -import { Label } from "@/registry/ui/label" -import { Switch } from "@/registry/ui/switch" +import { Label } from "@/registry/new-york-v4/ui/label" +import { Switch } from "@/registry/new-york-v4/ui/switch" export function SwitchDemo() { return ( diff --git a/apps/v4/components/table-demo.tsx b/apps/v4/components/table-demo.tsx index 0d65cb38cbd..c1269df1bab 100644 --- a/apps/v4/components/table-demo.tsx +++ b/apps/v4/components/table-demo.tsx @@ -7,7 +7,7 @@ import { TableHead, TableHeader, TableRow, -} from "@/registry/ui/table" +} from "@/registry/new-york-v4/ui/table" const invoices = [ { diff --git a/apps/v4/components/tabs-demo.tsx b/apps/v4/components/tabs-demo.tsx index 6558a096661..0bc527035c9 100644 --- a/apps/v4/components/tabs-demo.tsx +++ b/apps/v4/components/tabs-demo.tsx @@ -1,6 +1,6 @@ import { AppWindowIcon, CodeIcon } from "lucide-react" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, @@ -8,10 +8,15 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/registry/ui/tabs" +} from "@/registry/new-york-v4/ui/card" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" +import { + Tabs, + TabsContent, + TabsList, + TabsTrigger, +} from "@/registry/new-york-v4/ui/tabs" export function TabsDemo() { return ( diff --git a/apps/v4/components/team-switcher.tsx b/apps/v4/components/team-switcher.tsx index 0e2e76e9507..b0f8b3fe643 100644 --- a/apps/v4/components/team-switcher.tsx +++ b/apps/v4/components/team-switcher.tsx @@ -11,13 +11,13 @@ import { DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function TeamSwitcher({ teams, diff --git a/apps/v4/components/textarea-demo.tsx b/apps/v4/components/textarea-demo.tsx index 21ba6a4f32c..556c87e1226 100644 --- a/apps/v4/components/textarea-demo.tsx +++ b/apps/v4/components/textarea-demo.tsx @@ -1,5 +1,5 @@ -import { Label } from "@/registry/ui/label" -import { Textarea } from "@/registry/ui/textarea" +import { Label } from "@/registry/new-york-v4/ui/label" +import { Textarea } from "@/registry/new-york-v4/ui/textarea" export function TextareaDemo() { return ( diff --git a/apps/v4/components/toggle-demo.tsx b/apps/v4/components/toggle-demo.tsx index 28df1140969..466025c6461 100644 --- a/apps/v4/components/toggle-demo.tsx +++ b/apps/v4/components/toggle-demo.tsx @@ -1,6 +1,6 @@ import { BoldIcon, BookmarkIcon, ItalicIcon, UnderlineIcon } from "lucide-react" -import { Toggle } from "@/registry/ui/toggle" +import { Toggle } from "@/registry/new-york-v4/ui/toggle" export function ToggleDemo() { return ( diff --git a/apps/v4/components/toggle-group-demo.tsx b/apps/v4/components/toggle-group-demo.tsx index a02d84d8db2..56ddce0deb8 100644 --- a/apps/v4/components/toggle-group-demo.tsx +++ b/apps/v4/components/toggle-group-demo.tsx @@ -1,6 +1,9 @@ import { BoldIcon, ItalicIcon, UnderlineIcon } from "lucide-react" -import { ToggleGroup, ToggleGroupItem } from "@/registry/ui/toggle-group" +import { + ToggleGroup, + ToggleGroupItem, +} from "@/registry/new-york-v4/ui/toggle-group" export function ToggleGroupDemo() { return ( diff --git a/apps/v4/components/tooltip-demo.tsx b/apps/v4/components/tooltip-demo.tsx index e9c9d7cbf76..928788af979 100644 --- a/apps/v4/components/tooltip-demo.tsx +++ b/apps/v4/components/tooltip-demo.tsx @@ -1,7 +1,11 @@ import { InfoIcon } from "lucide-react" -import { Button } from "@/registry/ui/button" -import { Tooltip, TooltipContent, TooltipTrigger } from "@/registry/ui/tooltip" +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/registry/new-york-v4/ui/tooltip" export function TooltipDemo() { return ( diff --git a/apps/v4/registry.json b/apps/v4/registry.json index 086b8a2a1df..16b15246ee2 100644 --- a/apps/v4/registry.json +++ b/apps/v4/registry.json @@ -2,6 +2,27 @@ "name": "shadcn/ui", "homepage": "https://ui.shadcn.com", "items": [ + { + "name": "index", + "type": "registry:style", + "dependencies": [ + "tailwindcss-animate", + "class-variance-authority", + "lucide-react" + ], + "registryDependencies": [ + "utils" + ], + "files": [], + "tailwind": { + "config": { + "plugins": [ + "require(\"tailwindcss-animate\")" + ] + } + }, + "cssVars": {} + }, { "name": "accordion", "type": "registry:ui", @@ -10,7 +31,7 @@ ], "files": [ { - "path": "registry/ui/accordion.tsx", + "path": "registry/new-york-v4/ui/accordion.tsx", "type": "registry:ui" } ], @@ -50,7 +71,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/alert.tsx", + "path": "registry/new-york-v4/ui/alert.tsx", "type": "registry:ui" } ] @@ -66,7 +87,7 @@ ], "files": [ { - "path": "registry/ui/alert-dialog.tsx", + "path": "registry/new-york-v4/ui/alert-dialog.tsx", "type": "registry:ui" } ] @@ -79,7 +100,7 @@ ], "files": [ { - "path": "registry/ui/aspect-ratio.tsx", + "path": "registry/new-york-v4/ui/aspect-ratio.tsx", "type": "registry:ui" } ] @@ -92,7 +113,7 @@ ], "files": [ { - "path": "registry/ui/avatar.tsx", + "path": "registry/new-york-v4/ui/avatar.tsx", "type": "registry:ui" } ] @@ -102,7 +123,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/badge.tsx", + "path": "registry/new-york-v4/ui/badge.tsx", "type": "registry:ui" } ] @@ -115,7 +136,7 @@ ], "files": [ { - "path": "registry/ui/breadcrumb.tsx", + "path": "registry/new-york-v4/ui/breadcrumb.tsx", "type": "registry:ui" } ] @@ -128,7 +149,7 @@ ], "files": [ { - "path": "registry/ui/button.tsx", + "path": "registry/new-york-v4/ui/button.tsx", "type": "registry:ui" } ] @@ -145,7 +166,7 @@ ], "files": [ { - "path": "registry/ui/calendar.tsx", + "path": "registry/new-york-v4/ui/calendar.tsx", "type": "registry:ui" } ] @@ -155,7 +176,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/card.tsx", + "path": "registry/new-york-v4/ui/card.tsx", "type": "registry:ui" } ] @@ -171,7 +192,7 @@ ], "files": [ { - "path": "registry/ui/carousel.tsx", + "path": "registry/new-york-v4/ui/carousel.tsx", "type": "registry:ui" } ] @@ -188,7 +209,7 @@ ], "files": [ { - "path": "registry/ui/chart.tsx", + "path": "registry/new-york-v4/ui/chart.tsx", "type": "registry:ui" } ] @@ -201,7 +222,7 @@ ], "files": [ { - "path": "registry/ui/checkbox.tsx", + "path": "registry/new-york-v4/ui/checkbox.tsx", "type": "registry:ui" } ] @@ -214,7 +235,7 @@ ], "files": [ { - "path": "registry/ui/collapsible.tsx", + "path": "registry/new-york-v4/ui/collapsible.tsx", "type": "registry:ui" } ] @@ -230,7 +251,7 @@ ], "files": [ { - "path": "registry/ui/command.tsx", + "path": "registry/new-york-v4/ui/command.tsx", "type": "registry:ui" } ] @@ -243,7 +264,7 @@ ], "files": [ { - "path": "registry/ui/context-menu.tsx", + "path": "registry/new-york-v4/ui/context-menu.tsx", "type": "registry:ui" } ] @@ -256,7 +277,7 @@ ], "files": [ { - "path": "registry/ui/dialog.tsx", + "path": "registry/new-york-v4/ui/dialog.tsx", "type": "registry:ui" } ] @@ -270,7 +291,7 @@ ], "files": [ { - "path": "registry/ui/drawer.tsx", + "path": "registry/new-york-v4/ui/drawer.tsx", "type": "registry:ui" } ] @@ -283,7 +304,7 @@ ], "files": [ { - "path": "registry/ui/dropdown-menu.tsx", + "path": "registry/new-york-v4/ui/dropdown-menu.tsx", "type": "registry:ui" } ] @@ -304,7 +325,7 @@ ], "files": [ { - "path": "registry/ui/form.tsx", + "path": "registry/new-york-v4/ui/form.tsx", "type": "registry:ui" } ] @@ -317,7 +338,7 @@ ], "files": [ { - "path": "registry/ui/hover-card.tsx", + "path": "registry/new-york-v4/ui/hover-card.tsx", "type": "registry:ui" } ] @@ -327,7 +348,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/input.tsx", + "path": "registry/new-york-v4/ui/input.tsx", "type": "registry:ui" } ] @@ -340,7 +361,7 @@ ], "files": [ { - "path": "registry/ui/input-otp.tsx", + "path": "registry/new-york-v4/ui/input-otp.tsx", "type": "registry:ui" } ] @@ -353,7 +374,7 @@ ], "files": [ { - "path": "registry/ui/label.tsx", + "path": "registry/new-york-v4/ui/label.tsx", "type": "registry:ui" } ] @@ -366,7 +387,7 @@ ], "files": [ { - "path": "registry/ui/menubar.tsx", + "path": "registry/new-york-v4/ui/menubar.tsx", "type": "registry:ui" } ] @@ -379,7 +400,7 @@ ], "files": [ { - "path": "registry/ui/navigation-menu.tsx", + "path": "registry/new-york-v4/ui/navigation-menu.tsx", "type": "registry:ui" } ] @@ -392,7 +413,7 @@ ], "files": [ { - "path": "registry/ui/pagination.tsx", + "path": "registry/new-york-v4/ui/pagination.tsx", "type": "registry:ui" } ] @@ -405,7 +426,7 @@ ], "files": [ { - "path": "registry/ui/popover.tsx", + "path": "registry/new-york-v4/ui/popover.tsx", "type": "registry:ui" } ] @@ -418,7 +439,7 @@ ], "files": [ { - "path": "registry/ui/progress.tsx", + "path": "registry/new-york-v4/ui/progress.tsx", "type": "registry:ui" } ] @@ -431,7 +452,7 @@ ], "files": [ { - "path": "registry/ui/radio-group.tsx", + "path": "registry/new-york-v4/ui/radio-group.tsx", "type": "registry:ui" } ] @@ -444,7 +465,7 @@ ], "files": [ { - "path": "registry/ui/resizable.tsx", + "path": "registry/new-york-v4/ui/resizable.tsx", "type": "registry:ui" } ] @@ -457,7 +478,7 @@ ], "files": [ { - "path": "registry/ui/scroll-area.tsx", + "path": "registry/new-york-v4/ui/scroll-area.tsx", "type": "registry:ui" } ] @@ -470,7 +491,7 @@ ], "files": [ { - "path": "registry/ui/select.tsx", + "path": "registry/new-york-v4/ui/select.tsx", "type": "registry:ui" } ] @@ -483,7 +504,7 @@ ], "files": [ { - "path": "registry/ui/separator.tsx", + "path": "registry/new-york-v4/ui/separator.tsx", "type": "registry:ui" } ] @@ -496,7 +517,7 @@ ], "files": [ { - "path": "registry/ui/sheet.tsx", + "path": "registry/new-york-v4/ui/sheet.tsx", "type": "registry:ui" } ] @@ -520,7 +541,7 @@ ], "files": [ { - "path": "registry/ui/sidebar.tsx", + "path": "registry/new-york-v4/ui/sidebar.tsx", "type": "registry:ui" } ], @@ -572,7 +593,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/skeleton.tsx", + "path": "registry/new-york-v4/ui/skeleton.tsx", "type": "registry:ui" } ] @@ -585,7 +606,7 @@ ], "files": [ { - "path": "registry/ui/slider.tsx", + "path": "registry/new-york-v4/ui/slider.tsx", "type": "registry:ui" } ] @@ -599,7 +620,7 @@ ], "files": [ { - "path": "registry/ui/sonner.tsx", + "path": "registry/new-york-v4/ui/sonner.tsx", "type": "registry:ui" } ] @@ -612,7 +633,7 @@ ], "files": [ { - "path": "registry/ui/switch.tsx", + "path": "registry/new-york-v4/ui/switch.tsx", "type": "registry:ui" } ] @@ -622,7 +643,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/table.tsx", + "path": "registry/new-york-v4/ui/table.tsx", "type": "registry:ui" } ] @@ -635,7 +656,7 @@ ], "files": [ { - "path": "registry/ui/tabs.tsx", + "path": "registry/new-york-v4/ui/tabs.tsx", "type": "registry:ui" } ] @@ -645,7 +666,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/textarea.tsx", + "path": "registry/new-york-v4/ui/textarea.tsx", "type": "registry:ui" } ] @@ -658,7 +679,7 @@ ], "files": [ { - "path": "registry/ui/toggle.tsx", + "path": "registry/new-york-v4/ui/toggle.tsx", "type": "registry:ui" } ] @@ -674,7 +695,7 @@ ], "files": [ { - "path": "registry/ui/toggle-group.tsx", + "path": "registry/new-york-v4/ui/toggle-group.tsx", "type": "registry:ui" } ] @@ -687,7 +708,7 @@ ], "files": [ { - "path": "registry/ui/tooltip.tsx", + "path": "registry/new-york-v4/ui/tooltip.tsx", "type": "registry:ui" } ] @@ -705,20 +726,20 @@ ], "files": [ { - "path": "registry/blocks/sidebar-01/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-01/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-01/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-01/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-01/components/search-form.tsx", + "path": "registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-01/components/version-switcher.tsx", + "path": "registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx", "type": "registry:component" } ], @@ -740,20 +761,20 @@ ], "files": [ { - "path": "registry/blocks/sidebar-02/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-02/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-02/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-02/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-02/components/search-form.tsx", + "path": "registry/new-york-v4/blocks/sidebar-02/components/search-form.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-02/components/version-switcher.tsx", + "path": "registry/new-york-v4/blocks/sidebar-02/components/version-switcher.tsx", "type": "registry:component" } ], @@ -772,12 +793,12 @@ ], "files": [ { - "path": "registry/blocks/sidebar-03/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-03/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-03/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-03/components/app-sidebar.tsx", "type": "registry:component" } ], @@ -797,12 +818,12 @@ ], "files": [ { - "path": "registry/blocks/sidebar-04/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-04/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-04/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-04/components/app-sidebar.tsx", "type": "registry:component" } ], @@ -824,16 +845,16 @@ ], "files": [ { - "path": "registry/blocks/sidebar-05/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-05/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-05/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-05/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-05/components/search-form.tsx", + "path": "registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx", "type": "registry:component" } ], @@ -855,20 +876,20 @@ ], "files": [ { - "path": "registry/blocks/sidebar-06/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-06/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-06/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-06/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-06/components/nav-main.tsx", + "path": "registry/new-york-v4/blocks/sidebar-06/components/nav-main.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx", + "path": "registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form.tsx", "type": "registry:component" } ], @@ -891,28 +912,28 @@ ], "files": [ { - "path": "registry/blocks/sidebar-07/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-07/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-07/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-07/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/nav-main.tsx", + "path": "registry/new-york-v4/blocks/sidebar-07/components/nav-main.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/nav-projects.tsx", + "path": "registry/new-york-v4/blocks/sidebar-07/components/nav-projects.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/nav-user.tsx", + "path": "registry/new-york-v4/blocks/sidebar-07/components/nav-user.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/team-switcher.tsx", + "path": "registry/new-york-v4/blocks/sidebar-07/components/team-switcher.tsx", "type": "registry:component" } ], @@ -935,28 +956,28 @@ ], "files": [ { - "path": "registry/blocks/sidebar-08/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-08/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-08/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-main.tsx", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-main.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-projects.tsx", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-projects.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-secondary.tsx", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-secondary.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-user.tsx", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-user.tsx", "type": "registry:component" } ], @@ -980,16 +1001,16 @@ ], "files": [ { - "path": "registry/blocks/sidebar-09/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-09/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-09/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-09/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-09/components/nav-user.tsx", + "path": "registry/new-york-v4/blocks/sidebar-09/components/nav-user.tsx", "type": "registry:component" } ], @@ -1012,36 +1033,36 @@ ], "files": [ { - "path": "registry/blocks/sidebar-10/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-10/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-actions.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-favorites.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-favorites.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-main.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-main.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-secondary.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-secondary.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-workspaces.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/team-switcher.tsx", + "path": "registry/new-york-v4/blocks/sidebar-10/components/team-switcher.tsx", "type": "registry:component" } ], @@ -1062,12 +1083,12 @@ ], "files": [ { - "path": "registry/blocks/sidebar-11/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-11/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-11/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-11/components/app-sidebar.tsx", "type": "registry:component" } ], @@ -1091,24 +1112,24 @@ ], "files": [ { - "path": "registry/blocks/sidebar-12/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-12/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-12/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-12/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-12/components/calendars.tsx", + "path": "registry/new-york-v4/blocks/sidebar-12/components/calendars.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-12/components/date-picker.tsx", + "path": "registry/new-york-v4/blocks/sidebar-12/components/date-picker.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-12/components/nav-user.tsx", + "path": "registry/new-york-v4/blocks/sidebar-12/components/nav-user.tsx", "type": "registry:component" } ], @@ -1129,12 +1150,12 @@ ], "files": [ { - "path": "registry/blocks/sidebar-13/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-13/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-13/components/settings-dialog.tsx", + "path": "registry/new-york-v4/blocks/sidebar-13/components/settings-dialog.tsx", "type": "registry:component" } ], @@ -1153,12 +1174,12 @@ ], "files": [ { - "path": "registry/blocks/sidebar-14/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-14/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-14/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-14/components/app-sidebar.tsx", "type": "registry:component" } ], @@ -1183,48 +1204,48 @@ ], "files": [ { - "path": "registry/blocks/sidebar-15/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-15/components/calendars.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/calendars.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/date-picker.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/date-picker.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-favorites.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-favorites.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-main.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-secondary.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-user.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-user.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-workspaces.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/sidebar-left.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/sidebar-left.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/sidebar-right.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/sidebar-right.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/team-switcher.tsx", + "path": "registry/new-york-v4/blocks/sidebar-15/components/team-switcher.tsx", "type": "registry:component" } ], @@ -1248,36 +1269,36 @@ ], "files": [ { - "path": "registry/blocks/sidebar-16/page.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/page.tsx", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-16/components/app-sidebar.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/app-sidebar.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-16/components/nav-main.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/nav-main.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-16/components/nav-projects.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/nav-projects.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-16/components/nav-secondary.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/nav-secondary.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-16/components/nav-user.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/nav-user.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-16/components/search-form.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/search-form.tsx", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-16/components/site-header.tsx", + "path": "registry/new-york-v4/blocks/sidebar-16/components/site-header.tsx", "type": "registry:component" } ], @@ -1298,12 +1319,12 @@ ], "files": [ { - "path": "registry/blocks/login-01/page.tsx", + "path": "registry/new-york-v4/blocks/login-01/page.tsx", "type": "registry:page", "target": "app/login/page.tsx" }, { - "path": "registry/blocks/login-01/components/login-form.tsx", + "path": "registry/new-york-v4/blocks/login-01/components/login-form.tsx", "type": "registry:component" } ], @@ -1324,12 +1345,12 @@ ], "files": [ { - "path": "registry/blocks/login-02/page.tsx", + "path": "registry/new-york-v4/blocks/login-02/page.tsx", "type": "registry:page", "target": "app/login/page.tsx" }, { - "path": "registry/blocks/login-02/components/login-form.tsx", + "path": "registry/new-york-v4/blocks/login-02/components/login-form.tsx", "type": "registry:component" } ], @@ -1350,12 +1371,12 @@ ], "files": [ { - "path": "registry/blocks/login-03/page.tsx", + "path": "registry/new-york-v4/blocks/login-03/page.tsx", "type": "registry:page", "target": "app/login/page.tsx" }, { - "path": "registry/blocks/login-03/components/login-form.tsx", + "path": "registry/new-york-v4/blocks/login-03/components/login-form.tsx", "type": "registry:component" } ], @@ -1376,12 +1397,12 @@ ], "files": [ { - "path": "registry/blocks/login-04/page.tsx", + "path": "registry/new-york-v4/blocks/login-04/page.tsx", "type": "registry:page", "target": "app/login/page.tsx" }, { - "path": "registry/blocks/login-04/components/login-form.tsx", + "path": "registry/new-york-v4/blocks/login-04/components/login-form.tsx", "type": "registry:component" } ], @@ -1402,12 +1423,12 @@ ], "files": [ { - "path": "registry/blocks/login-05/page.tsx", + "path": "registry/new-york-v4/blocks/login-05/page.tsx", "type": "registry:page", "target": "app/login/page.tsx" }, { - "path": "registry/blocks/login-05/components/login-form.tsx", + "path": "registry/new-york-v4/blocks/login-05/components/login-form.tsx", "type": "registry:component" } ], @@ -1425,7 +1446,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-axes.tsx", + "path": "registry/new-york-v4/charts/chart-area-axes.tsx", "type": "registry:block" } ], @@ -1443,7 +1464,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-default.tsx", + "path": "registry/new-york-v4/charts/chart-area-default.tsx", "type": "registry:block" } ], @@ -1461,7 +1482,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-gradient.tsx", + "path": "registry/new-york-v4/charts/chart-area-gradient.tsx", "type": "registry:block" } ], @@ -1479,7 +1500,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-icons.tsx", + "path": "registry/new-york-v4/charts/chart-area-icons.tsx", "type": "registry:block" } ], @@ -1498,7 +1519,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-interactive.tsx", + "path": "registry/new-york-v4/charts/chart-area-interactive.tsx", "type": "registry:component" } ], @@ -1516,7 +1537,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-legend.tsx", + "path": "registry/new-york-v4/charts/chart-area-legend.tsx", "type": "registry:block" } ], @@ -1534,7 +1555,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-linear.tsx", + "path": "registry/new-york-v4/charts/chart-area-linear.tsx", "type": "registry:block" } ], @@ -1552,7 +1573,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-stacked-expand.tsx", + "path": "registry/new-york-v4/charts/chart-area-stacked-expand.tsx", "type": "registry:block" } ], @@ -1570,7 +1591,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-stacked.tsx", + "path": "registry/new-york-v4/charts/chart-area-stacked.tsx", "type": "registry:block" } ], @@ -1588,7 +1609,7 @@ ], "files": [ { - "path": "registry/charts/chart-area-step.tsx", + "path": "registry/new-york-v4/charts/chart-area-step.tsx", "type": "registry:block" } ], @@ -1606,7 +1627,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-active.tsx", + "path": "registry/new-york-v4/charts/chart-bar-active.tsx", "type": "registry:block" } ], @@ -1624,7 +1645,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-default.tsx", + "path": "registry/new-york-v4/charts/chart-bar-default.tsx", "type": "registry:block" } ], @@ -1642,7 +1663,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-horizontal.tsx", + "path": "registry/new-york-v4/charts/chart-bar-horizontal.tsx", "type": "registry:block" } ], @@ -1660,7 +1681,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-interactive.tsx", + "path": "registry/new-york-v4/charts/chart-bar-interactive.tsx", "type": "registry:block" } ], @@ -1678,7 +1699,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-label-custom.tsx", + "path": "registry/new-york-v4/charts/chart-bar-label-custom.tsx", "type": "registry:block" } ], @@ -1696,7 +1717,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-label.tsx", + "path": "registry/new-york-v4/charts/chart-bar-label.tsx", "type": "registry:block" } ], @@ -1714,7 +1735,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-mixed.tsx", + "path": "registry/new-york-v4/charts/chart-bar-mixed.tsx", "type": "registry:block" } ], @@ -1732,7 +1753,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-multiple.tsx", + "path": "registry/new-york-v4/charts/chart-bar-multiple.tsx", "type": "registry:block" } ], @@ -1750,7 +1771,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-negative.tsx", + "path": "registry/new-york-v4/charts/chart-bar-negative.tsx", "type": "registry:block" } ], @@ -1768,7 +1789,7 @@ ], "files": [ { - "path": "registry/charts/chart-bar-stacked.tsx", + "path": "registry/new-york-v4/charts/chart-bar-stacked.tsx", "type": "registry:block" } ], @@ -1786,7 +1807,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-default.tsx", + "path": "registry/new-york-v4/charts/chart-line-default.tsx", "type": "registry:block" } ], @@ -1804,7 +1825,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-dots-colors.tsx", + "path": "registry/new-york-v4/charts/chart-line-dots-colors.tsx", "type": "registry:block" } ], @@ -1822,7 +1843,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-dots-custom.tsx", + "path": "registry/new-york-v4/charts/chart-line-dots-custom.tsx", "type": "registry:block" } ], @@ -1840,7 +1861,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-dots.tsx", + "path": "registry/new-york-v4/charts/chart-line-dots.tsx", "type": "registry:block" } ], @@ -1858,7 +1879,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-interactive.tsx", + "path": "registry/new-york-v4/charts/chart-line-interactive.tsx", "type": "registry:block" } ], @@ -1876,7 +1897,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-label-custom.tsx", + "path": "registry/new-york-v4/charts/chart-line-label-custom.tsx", "type": "registry:block" } ], @@ -1894,7 +1915,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-label.tsx", + "path": "registry/new-york-v4/charts/chart-line-label.tsx", "type": "registry:block" } ], @@ -1912,7 +1933,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-linear.tsx", + "path": "registry/new-york-v4/charts/chart-line-linear.tsx", "type": "registry:block" } ], @@ -1930,7 +1951,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-multiple.tsx", + "path": "registry/new-york-v4/charts/chart-line-multiple.tsx", "type": "registry:block" } ], @@ -1948,7 +1969,7 @@ ], "files": [ { - "path": "registry/charts/chart-line-step.tsx", + "path": "registry/new-york-v4/charts/chart-line-step.tsx", "type": "registry:block" } ], @@ -1966,7 +1987,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-donut-active.tsx", + "path": "registry/new-york-v4/charts/chart-pie-donut-active.tsx", "type": "registry:block" } ], @@ -1984,7 +2005,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-donut-text.tsx", + "path": "registry/new-york-v4/charts/chart-pie-donut-text.tsx", "type": "registry:block" } ], @@ -2002,7 +2023,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-donut.tsx", + "path": "registry/new-york-v4/charts/chart-pie-donut.tsx", "type": "registry:block" } ], @@ -2020,7 +2041,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-interactive.tsx", + "path": "registry/new-york-v4/charts/chart-pie-interactive.tsx", "type": "registry:block" } ], @@ -2038,7 +2059,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-label-custom.tsx", + "path": "registry/new-york-v4/charts/chart-pie-label-custom.tsx", "type": "registry:block" } ], @@ -2056,7 +2077,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-label-list.tsx", + "path": "registry/new-york-v4/charts/chart-pie-label-list.tsx", "type": "registry:block" } ], @@ -2074,7 +2095,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-label.tsx", + "path": "registry/new-york-v4/charts/chart-pie-label.tsx", "type": "registry:block" } ], @@ -2092,7 +2113,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-legend.tsx", + "path": "registry/new-york-v4/charts/chart-pie-legend.tsx", "type": "registry:block" } ], @@ -2110,7 +2131,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-separator-none.tsx", + "path": "registry/new-york-v4/charts/chart-pie-separator-none.tsx", "type": "registry:block" } ], @@ -2128,7 +2149,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-simple.tsx", + "path": "registry/new-york-v4/charts/chart-pie-simple.tsx", "type": "registry:block" } ], @@ -2146,7 +2167,7 @@ ], "files": [ { - "path": "registry/charts/chart-pie-stacked.tsx", + "path": "registry/new-york-v4/charts/chart-pie-stacked.tsx", "type": "registry:block" } ], @@ -2164,7 +2185,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-default.tsx", + "path": "registry/new-york-v4/charts/chart-radar-default.tsx", "type": "registry:block" } ], @@ -2182,7 +2203,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-dots.tsx", + "path": "registry/new-york-v4/charts/chart-radar-dots.tsx", "type": "registry:block" } ], @@ -2200,7 +2221,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-circle-fill.tsx", + "path": "registry/new-york-v4/charts/chart-radar-grid-circle-fill.tsx", "type": "registry:block" } ], @@ -2218,7 +2239,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-circle-no-lines.tsx", + "path": "registry/new-york-v4/charts/chart-radar-grid-circle-no-lines.tsx", "type": "registry:block" } ], @@ -2236,7 +2257,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-circle.tsx", + "path": "registry/new-york-v4/charts/chart-radar-grid-circle.tsx", "type": "registry:block" } ], @@ -2254,7 +2275,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-custom.tsx", + "path": "registry/new-york-v4/charts/chart-radar-grid-custom.tsx", "type": "registry:block" } ], @@ -2272,7 +2293,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-fill.tsx", + "path": "registry/new-york-v4/charts/chart-radar-grid-fill.tsx", "type": "registry:block" } ], @@ -2290,7 +2311,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-none.tsx", + "path": "registry/new-york-v4/charts/chart-radar-grid-none.tsx", "type": "registry:block" } ], @@ -2308,7 +2329,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-icons.tsx", + "path": "registry/new-york-v4/charts/chart-radar-icons.tsx", "type": "registry:block" } ], @@ -2326,7 +2347,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-label-custom.tsx", + "path": "registry/new-york-v4/charts/chart-radar-label-custom.tsx", "type": "registry:block" } ], @@ -2344,7 +2365,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-legend.tsx", + "path": "registry/new-york-v4/charts/chart-radar-legend.tsx", "type": "registry:block" } ], @@ -2362,7 +2383,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-lines-only.tsx", + "path": "registry/new-york-v4/charts/chart-radar-lines-only.tsx", "type": "registry:block" } ], @@ -2380,7 +2401,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-multiple.tsx", + "path": "registry/new-york-v4/charts/chart-radar-multiple.tsx", "type": "registry:block" } ], @@ -2398,7 +2419,7 @@ ], "files": [ { - "path": "registry/charts/chart-radar-radius.tsx", + "path": "registry/new-york-v4/charts/chart-radar-radius.tsx", "type": "registry:block" } ], @@ -2416,7 +2437,7 @@ ], "files": [ { - "path": "registry/charts/chart-radial-grid.tsx", + "path": "registry/new-york-v4/charts/chart-radial-grid.tsx", "type": "registry:block" } ], @@ -2434,7 +2455,7 @@ ], "files": [ { - "path": "registry/charts/chart-radial-label.tsx", + "path": "registry/new-york-v4/charts/chart-radial-label.tsx", "type": "registry:block" } ], @@ -2452,7 +2473,7 @@ ], "files": [ { - "path": "registry/charts/chart-radial-shape.tsx", + "path": "registry/new-york-v4/charts/chart-radial-shape.tsx", "type": "registry:block" } ], @@ -2470,7 +2491,7 @@ ], "files": [ { - "path": "registry/charts/chart-radial-simple.tsx", + "path": "registry/new-york-v4/charts/chart-radial-simple.tsx", "type": "registry:block" } ], @@ -2488,7 +2509,7 @@ ], "files": [ { - "path": "registry/charts/chart-radial-stacked.tsx", + "path": "registry/new-york-v4/charts/chart-radial-stacked.tsx", "type": "registry:block" } ], @@ -2506,7 +2527,7 @@ ], "files": [ { - "path": "registry/charts/chart-radial-text.tsx", + "path": "registry/new-york-v4/charts/chart-radial-text.tsx", "type": "registry:block" } ], @@ -2524,7 +2545,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-default.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-default.tsx", "type": "registry:block" } ], @@ -2542,7 +2563,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-indicator-line.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-indicator-line.tsx", "type": "registry:block" } ], @@ -2560,7 +2581,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-indicator-none.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-indicator-none.tsx", "type": "registry:block" } ], @@ -2578,7 +2599,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-label-none.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-label-none.tsx", "type": "registry:block" } ], @@ -2596,7 +2617,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-label-custom.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-label-custom.tsx", "type": "registry:block" } ], @@ -2614,7 +2635,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-label-formatter.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-label-formatter.tsx", "type": "registry:block" } ], @@ -2632,7 +2653,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-formatter.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-formatter.tsx", "type": "registry:block" } ], @@ -2650,7 +2671,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-icons.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-icons.tsx", "type": "registry:block" } ], @@ -2668,7 +2689,7 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-advanced.tsx", + "path": "registry/new-york-v4/charts/chart-tooltip-advanced.tsx", "type": "registry:block" } ], @@ -2677,12 +2698,26 @@ "charts-tooltip" ] }, + { + "name": "utils", + "type": "registry:lib", + "dependencies": [ + "clsx", + "tailwind-merge" + ], + "files": [ + { + "path": "registry/new-york-v4/lib/utils.ts", + "type": "registry:lib" + } + ] + }, { "name": "use-mobile", "type": "registry:hook", "files": [ { - "path": "registry/hooks/use-mobile.ts", + "path": "registry/new-york-v4/hooks/use-mobile.ts", "type": "registry:hook" } ] diff --git a/apps/v4/registry/blocks/login-01/components/login-form.tsx b/apps/v4/registry/new-york-v4/blocks/login-01/components/login-form.tsx similarity index 88% rename from apps/v4/registry/blocks/login-01/components/login-form.tsx rename to apps/v4/registry/new-york-v4/blocks/login-01/components/login-form.tsx index 17fe0c2a3b3..b3bce636635 100644 --- a/apps/v4/registry/blocks/login-01/components/login-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-01/components/login-form.tsx @@ -1,14 +1,14 @@ -import { cn } from "@/registry/lib/utils" -import { Button } from "@/registry/ui/button" +import { cn } from "@/registry/new-york-v4/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +} from "@/registry/new-york-v4/ui/card" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function LoginForm({ className, diff --git a/apps/v4/registry/blocks/login-01/page.tsx b/apps/v4/registry/new-york-v4/blocks/login-01/page.tsx similarity index 71% rename from apps/v4/registry/blocks/login-01/page.tsx rename to apps/v4/registry/new-york-v4/blocks/login-01/page.tsx index 0f6b17b0ef2..88eb8bde6f2 100644 --- a/apps/v4/registry/blocks/login-01/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-01/page.tsx @@ -1,4 +1,4 @@ -import { LoginForm } from "@/registry/blocks/login-01/components/login-form" +import { LoginForm } from "@/registry/new-york-v4/blocks/login-01/components/login-form" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/login-02/components/login-form.tsx b/apps/v4/registry/new-york-v4/blocks/login-02/components/login-form.tsx similarity index 92% rename from apps/v4/registry/blocks/login-02/components/login-form.tsx rename to apps/v4/registry/new-york-v4/blocks/login-02/components/login-form.tsx index 3c67b855789..fa01c733860 100644 --- a/apps/v4/registry/blocks/login-02/components/login-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-02/components/login-form.tsx @@ -1,7 +1,7 @@ -import { cn } from "@/registry/lib/utils" -import { Button } from "@/registry/ui/button" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +import { cn } from "@/registry/new-york-v4/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function LoginForm({ className, diff --git a/apps/v4/registry/blocks/login-02/page.tsx b/apps/v4/registry/new-york-v4/blocks/login-02/page.tsx similarity index 92% rename from apps/v4/registry/blocks/login-02/page.tsx rename to apps/v4/registry/new-york-v4/blocks/login-02/page.tsx index f4510edf318..e260bcd3ea7 100644 --- a/apps/v4/registry/blocks/login-02/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-02/page.tsx @@ -1,6 +1,6 @@ import { GalleryVerticalEnd } from "lucide-react" -import { LoginForm } from "@/registry/blocks/login-02/components/login-form" +import { LoginForm } from "@/registry/new-york-v4/blocks/login-02/components/login-form" export default function LoginPage() { return ( diff --git a/apps/v4/registry/blocks/login-03/components/login-form.tsx b/apps/v4/registry/new-york-v4/blocks/login-03/components/login-form.tsx similarity index 94% rename from apps/v4/registry/blocks/login-03/components/login-form.tsx rename to apps/v4/registry/new-york-v4/blocks/login-03/components/login-form.tsx index 8d7aa5b9c36..422b61ae5df 100644 --- a/apps/v4/registry/blocks/login-03/components/login-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-03/components/login-form.tsx @@ -1,14 +1,14 @@ -import { cn } from "@/registry/lib/utils" -import { Button } from "@/registry/ui/button" +import { cn } from "@/registry/new-york-v4/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +} from "@/registry/new-york-v4/ui/card" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function LoginForm({ className, diff --git a/apps/v4/registry/blocks/login-03/page.tsx b/apps/v4/registry/new-york-v4/blocks/login-03/page.tsx similarity index 87% rename from apps/v4/registry/blocks/login-03/page.tsx rename to apps/v4/registry/new-york-v4/blocks/login-03/page.tsx index 386d250e6c8..3c201cb9190 100644 --- a/apps/v4/registry/blocks/login-03/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-03/page.tsx @@ -1,6 +1,6 @@ import { GalleryVerticalEnd } from "lucide-react" -import { LoginForm } from "@/registry/blocks/login-03/components/login-form" +import { LoginForm } from "@/registry/new-york-v4/blocks/login-03/components/login-form" export default function LoginPage() { return ( diff --git a/apps/v4/registry/blocks/login-04/components/login-form.tsx b/apps/v4/registry/new-york-v4/blocks/login-04/components/login-form.tsx similarity index 95% rename from apps/v4/registry/blocks/login-04/components/login-form.tsx rename to apps/v4/registry/new-york-v4/blocks/login-04/components/login-form.tsx index c275b235bc1..762bdff058d 100644 --- a/apps/v4/registry/blocks/login-04/components/login-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-04/components/login-form.tsx @@ -1,8 +1,8 @@ -import { cn } from "@/registry/lib/utils" -import { Button } from "@/registry/ui/button" -import { Card, CardContent } from "@/registry/ui/card" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +import { cn } from "@/registry/new-york-v4/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Card, CardContent } from "@/registry/new-york-v4/ui/card" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function LoginForm({ className, diff --git a/apps/v4/registry/blocks/login-04/page.tsx b/apps/v4/registry/new-york-v4/blocks/login-04/page.tsx similarity index 73% rename from apps/v4/registry/blocks/login-04/page.tsx rename to apps/v4/registry/new-york-v4/blocks/login-04/page.tsx index ec73546b223..e014af15fea 100644 --- a/apps/v4/registry/blocks/login-04/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-04/page.tsx @@ -1,4 +1,4 @@ -import { LoginForm } from "@/registry/blocks/login-04/components/login-form" +import { LoginForm } from "@/registry/new-york-v4/blocks/login-04/components/login-form" export default function LoginPage() { return ( diff --git a/apps/v4/registry/blocks/login-05/components/login-form.tsx b/apps/v4/registry/new-york-v4/blocks/login-05/components/login-form.tsx similarity index 94% rename from apps/v4/registry/blocks/login-05/components/login-form.tsx rename to apps/v4/registry/new-york-v4/blocks/login-05/components/login-form.tsx index 8b7b4382afa..61307747c74 100644 --- a/apps/v4/registry/blocks/login-05/components/login-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-05/components/login-form.tsx @@ -1,9 +1,9 @@ import { GalleryVerticalEnd } from "lucide-react" -import { cn } from "@/registry/lib/utils" -import { Button } from "@/registry/ui/button" -import { Input } from "@/registry/ui/input" -import { Label } from "@/registry/ui/label" +import { cn } from "@/registry/new-york-v4/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" export function LoginForm({ className, diff --git a/apps/v4/registry/blocks/login-05/page.tsx b/apps/v4/registry/new-york-v4/blocks/login-05/page.tsx similarity index 73% rename from apps/v4/registry/blocks/login-05/page.tsx rename to apps/v4/registry/new-york-v4/blocks/login-05/page.tsx index 6a7ef3097a9..af237a27266 100644 --- a/apps/v4/registry/blocks/login-05/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/login-05/page.tsx @@ -1,4 +1,4 @@ -import { LoginForm } from "@/registry/blocks/login-05/components/login-form" +import { LoginForm } from "@/registry/new-york-v4/blocks/login-05/components/login-form" export default function LoginPage() { return ( diff --git a/apps/v4/registry/blocks/sidebar-01/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-01/components/app-sidebar.tsx similarity index 93% rename from apps/v4/registry/blocks/sidebar-01/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-01/components/app-sidebar.tsx index c9e40ec1c41..fdcc8a01a3c 100644 --- a/apps/v4/registry/blocks/sidebar-01/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-01/components/app-sidebar.tsx @@ -1,7 +1,7 @@ import * as React from "react" -import { SearchForm } from "@/registry/blocks/sidebar-01/components/search-form" -import { VersionSwitcher } from "@/registry/blocks/sidebar-01/components/version-switcher" +import { SearchForm } from "@/registry/new-york-v4/blocks/sidebar-01/components/search-form" +import { VersionSwitcher } from "@/registry/new-york-v4/blocks/sidebar-01/components/version-switcher" import { Sidebar, SidebarContent, @@ -13,7 +13,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-01/components/search-form.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-01/components/search-form.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx index 3bf583b742c..ec4ac46ebe2 100644 --- a/apps/v4/registry/blocks/sidebar-01/components/search-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx @@ -1,11 +1,11 @@ import { Search } from "lucide-react" -import { Label } from "@/registry/ui/label" +import { Label } from "@/registry/new-york-v4/ui/label" import { SidebarGroup, SidebarGroupContent, SidebarInput, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function SearchForm({ ...props }: React.ComponentProps<"form">) { return ( diff --git a/apps/v4/registry/blocks/sidebar-02/components/version-switcher.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-02/components/version-switcher.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx index a3a9df2185e..a23dd7abff0 100644 --- a/apps/v4/registry/blocks/sidebar-02/components/version-switcher.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx @@ -8,12 +8,12 @@ import { DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function VersionSwitcher({ versions, diff --git a/apps/v4/registry/blocks/sidebar-01/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-01/page.tsx similarity index 86% rename from apps/v4/registry/blocks/sidebar-01/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-01/page.tsx index 08c6632209b..c963e46ec9c 100644 --- a/apps/v4/registry/blocks/sidebar-01/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-01/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-01/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-01/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-02/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-02/components/app-sidebar.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-02/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-02/components/app-sidebar.tsx index 3f520cc6a7a..5bf206338e1 100644 --- a/apps/v4/registry/blocks/sidebar-02/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-02/components/app-sidebar.tsx @@ -1,13 +1,13 @@ import * as React from "react" import { ChevronRight } from "lucide-react" -import { SearchForm } from "@/registry/blocks/sidebar-02/components/search-form" -import { VersionSwitcher } from "@/registry/blocks/sidebar-02/components/version-switcher" +import { SearchForm } from "@/registry/new-york-v4/blocks/sidebar-02/components/search-form" +import { VersionSwitcher } from "@/registry/new-york-v4/blocks/sidebar-02/components/version-switcher" import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { Sidebar, SidebarContent, @@ -19,7 +19,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-02/components/search-form.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-02/components/search-form.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-02/components/search-form.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-02/components/search-form.tsx index 3bf583b742c..ec4ac46ebe2 100644 --- a/apps/v4/registry/blocks/sidebar-02/components/search-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-02/components/search-form.tsx @@ -1,11 +1,11 @@ import { Search } from "lucide-react" -import { Label } from "@/registry/ui/label" +import { Label } from "@/registry/new-york-v4/ui/label" import { SidebarGroup, SidebarGroupContent, SidebarInput, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function SearchForm({ ...props }: React.ComponentProps<"form">) { return ( diff --git a/apps/v4/registry/blocks/sidebar-01/components/version-switcher.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-02/components/version-switcher.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-01/components/version-switcher.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-02/components/version-switcher.tsx index a3a9df2185e..a23dd7abff0 100644 --- a/apps/v4/registry/blocks/sidebar-01/components/version-switcher.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-02/components/version-switcher.tsx @@ -8,12 +8,12 @@ import { DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function VersionSwitcher({ versions, diff --git a/apps/v4/registry/blocks/sidebar-02/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-02/page.tsx similarity index 84% rename from apps/v4/registry/blocks/sidebar-02/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-02/page.tsx index 19829ffe4a4..1a6cbe801df 100644 --- a/apps/v4/registry/blocks/sidebar-02/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-02/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-02/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-02/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-03/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-03/components/app-sidebar.tsx similarity index 99% rename from apps/v4/registry/blocks/sidebar-03/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-03/components/app-sidebar.tsx index 5881aa03077..fac993ac7cb 100644 --- a/apps/v4/registry/blocks/sidebar-03/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-03/components/app-sidebar.tsx @@ -13,7 +13,7 @@ import { SidebarMenuSubButton, SidebarMenuSubItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-03/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-03/page.tsx similarity index 86% rename from apps/v4/registry/blocks/sidebar-03/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-03/page.tsx index c0389f63594..73764d20e83 100644 --- a/apps/v4/registry/blocks/sidebar-03/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-03/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-03/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-03/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-04/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-04/components/app-sidebar.tsx similarity index 99% rename from apps/v4/registry/blocks/sidebar-04/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-04/components/app-sidebar.tsx index e2030b837b4..addcadea893 100644 --- a/apps/v4/registry/blocks/sidebar-04/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-04/components/app-sidebar.tsx @@ -12,7 +12,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-04/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-04/page.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-04/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-04/page.tsx index 9f3333f8554..3391d52210a 100644 --- a/apps/v4/registry/blocks/sidebar-04/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-04/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-04/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-04/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-05/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-05/components/app-sidebar.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-05/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-05/components/app-sidebar.tsx index e2a56efa0f2..ffa09ac1528 100644 --- a/apps/v4/registry/blocks/sidebar-05/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-05/components/app-sidebar.tsx @@ -1,12 +1,12 @@ import * as React from "react" import { GalleryVerticalEnd, Minus, Plus } from "lucide-react" -import { SearchForm } from "@/registry/blocks/sidebar-05/components/search-form" +import { SearchForm } from "@/registry/new-york-v4/blocks/sidebar-05/components/search-form" import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { Sidebar, SidebarContent, @@ -19,7 +19,7 @@ import { SidebarMenuSubButton, SidebarMenuSubItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-05/components/search-form.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-05/components/search-form.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx index 3bf583b742c..ec4ac46ebe2 100644 --- a/apps/v4/registry/blocks/sidebar-05/components/search-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx @@ -1,11 +1,11 @@ import { Search } from "lucide-react" -import { Label } from "@/registry/ui/label" +import { Label } from "@/registry/new-york-v4/ui/label" import { SidebarGroup, SidebarGroupContent, SidebarInput, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function SearchForm({ ...props }: React.ComponentProps<"form">) { return ( diff --git a/apps/v4/registry/blocks/sidebar-06/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-05/page.tsx similarity index 86% rename from apps/v4/registry/blocks/sidebar-06/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-05/page.tsx index 87aef965904..e557db0a536 100644 --- a/apps/v4/registry/blocks/sidebar-06/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-05/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-06/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-05/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-06/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar.tsx similarity index 93% rename from apps/v4/registry/blocks/sidebar-06/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar.tsx index 05860b5ece4..c2cebdcf236 100644 --- a/apps/v4/registry/blocks/sidebar-06/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar.tsx @@ -1,8 +1,8 @@ import * as React from "react" import { GalleryVerticalEnd } from "lucide-react" -import { NavMain } from "@/registry/blocks/sidebar-06/components/nav-main" -import { SidebarOptInForm } from "@/registry/blocks/sidebar-06/components/sidebar-opt-in-form" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-06/components/nav-main" +import { SidebarOptInForm } from "@/registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form" import { Sidebar, SidebarContent, @@ -12,7 +12,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-06/components/nav-main.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-06/components/nav-main.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-06/components/nav-main.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-06/components/nav-main.tsx index d9d1e0812ca..cf40f37dfd2 100644 --- a/apps/v4/registry/blocks/sidebar-06/components/nav-main.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-06/components/nav-main.tsx @@ -7,14 +7,14 @@ import { DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form.tsx similarity index 83% rename from apps/v4/registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form.tsx index dd77ef3ef69..3e7ddfc4cf2 100644 --- a/apps/v4/registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form.tsx @@ -1,12 +1,12 @@ -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { SidebarInput } from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/card" +import { SidebarInput } from "@/registry/new-york-v4/ui/sidebar" export function SidebarOptInForm() { return ( diff --git a/apps/v4/registry/blocks/sidebar-05/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-06/page.tsx similarity index 86% rename from apps/v4/registry/blocks/sidebar-05/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-06/page.tsx index 647b52b29c8..3dafe5c4a4c 100644 --- a/apps/v4/registry/blocks/sidebar-05/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-06/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-05/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-07/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/app-sidebar.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-07/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-07/components/app-sidebar.tsx index 7aee59b869f..165e79eb234 100644 --- a/apps/v4/registry/blocks/sidebar-07/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/app-sidebar.tsx @@ -14,17 +14,17 @@ import { SquareTerminal, } from "lucide-react" -import { NavMain } from "@/registry/blocks/sidebar-07/components/nav-main" -import { NavProjects } from "@/registry/blocks/sidebar-07/components/nav-projects" -import { NavUser } from "@/registry/blocks/sidebar-07/components/nav-user" -import { TeamSwitcher } from "@/registry/blocks/sidebar-07/components/team-switcher" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-07/components/nav-main" +import { NavProjects } from "@/registry/new-york-v4/blocks/sidebar-07/components/nav-projects" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-07/components/nav-user" +import { TeamSwitcher } from "@/registry/new-york-v4/blocks/sidebar-07/components/team-switcher" import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-07/components/nav-main.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-main.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-07/components/nav-main.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-main.tsx index 4905522774e..25b99a8a0c3 100644 --- a/apps/v4/registry/blocks/sidebar-07/components/nav-main.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-main.tsx @@ -6,7 +6,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupLabel, @@ -16,7 +16,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/registry/blocks/sidebar-07/components/nav-projects.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-projects.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-07/components/nav-projects.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-projects.tsx index df3fa65f0fd..e4d55c8a4d4 100644 --- a/apps/v4/registry/blocks/sidebar-07/components/nav-projects.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-projects.tsx @@ -14,7 +14,7 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarGroupLabel, @@ -23,7 +23,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavProjects({ projects, diff --git a/apps/v4/registry/blocks/sidebar-07/components/nav-user.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-user.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-07/components/nav-user.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-user.tsx index 7e41a7c2555..9d751fbf267 100644 --- a/apps/v4/registry/blocks/sidebar-07/components/nav-user.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/registry/blocks/sidebar-07/components/team-switcher.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/team-switcher.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-07/components/team-switcher.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-07/components/team-switcher.tsx index 0e2e76e9507..b0f8b3fe643 100644 --- a/apps/v4/registry/blocks/sidebar-07/components/team-switcher.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-07/components/team-switcher.tsx @@ -11,13 +11,13 @@ import { DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function TeamSwitcher({ teams, diff --git a/apps/v4/registry/blocks/sidebar-07/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-07/page.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-07/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-07/page.tsx index 25f12531a35..5942a99fc09 100644 --- a/apps/v4/registry/blocks/sidebar-07/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-07/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-07/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-07/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-08/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx similarity index 89% rename from apps/v4/registry/blocks/sidebar-08/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx index 14e9745a530..330b301b085 100644 --- a/apps/v4/registry/blocks/sidebar-08/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx @@ -14,10 +14,10 @@ import { SquareTerminal, } from "lucide-react" -import { NavMain } from "@/registry/blocks/sidebar-08/components/nav-main" -import { NavProjects } from "@/registry/blocks/sidebar-08/components/nav-projects" -import { NavSecondary } from "@/registry/blocks/sidebar-08/components/nav-secondary" -import { NavUser } from "@/registry/blocks/sidebar-08/components/nav-user" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-08/components/nav-main" +import { NavProjects } from "@/registry/new-york-v4/blocks/sidebar-08/components/nav-projects" +import { NavSecondary } from "@/registry/new-york-v4/blocks/sidebar-08/components/nav-secondary" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-08/components/nav-user" import { Sidebar, SidebarContent, @@ -26,7 +26,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" const data = { user: { diff --git a/apps/v4/registry/blocks/sidebar-16/components/nav-main.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-main.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-16/components/nav-main.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-main.tsx index 61c5f5d5c11..4ffa6b3fd51 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/nav-main.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-main.tsx @@ -6,7 +6,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupLabel, @@ -17,7 +17,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/registry/blocks/sidebar-16/components/nav-projects.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-projects.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-16/components/nav-projects.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-projects.tsx index ba334ddbbec..2c6d23a28ae 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/nav-projects.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-projects.tsx @@ -14,7 +14,7 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarGroupLabel, @@ -23,7 +23,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavProjects({ projects, diff --git a/apps/v4/registry/blocks/sidebar-08/components/nav-secondary.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-secondary.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-08/components/nav-secondary.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-secondary.tsx index 753fa156dd9..66924a12dc0 100644 --- a/apps/v4/registry/blocks/sidebar-08/components/nav-secondary.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-secondary.tsx @@ -7,7 +7,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavSecondary({ items, diff --git a/apps/v4/registry/blocks/sidebar-08/components/nav-user.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-user.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-08/components/nav-user.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-user.tsx index 7e41a7c2555..9d751fbf267 100644 --- a/apps/v4/registry/blocks/sidebar-08/components/nav-user.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-08/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/registry/blocks/sidebar-08/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-08/page.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-08/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-08/page.tsx index 5d156e946e9..e432248b11c 100644 --- a/apps/v4/registry/blocks/sidebar-08/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-08/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-08/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-09/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-09/components/app-sidebar.tsx similarity index 97% rename from apps/v4/registry/blocks/sidebar-09/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-09/components/app-sidebar.tsx index 7a2337f44a4..7028ae418c4 100644 --- a/apps/v4/registry/blocks/sidebar-09/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-09/components/app-sidebar.tsx @@ -3,8 +3,8 @@ import * as React from "react" import { ArchiveX, Command, File, Inbox, Send, Trash2 } from "lucide-react" -import { NavUser } from "@/registry/blocks/sidebar-09/components/nav-user" -import { Label } from "@/registry/ui/label" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-09/components/nav-user" +import { Label } from "@/registry/new-york-v4/ui/label" import { Sidebar, SidebarContent, @@ -17,8 +17,8 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" -import { Switch } from "@/registry/ui/switch" +} from "@/registry/new-york-v4/ui/sidebar" +import { Switch } from "@/registry/new-york-v4/ui/switch" // This is sample data const data = { diff --git a/apps/v4/registry/blocks/sidebar-09/components/nav-user.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-09/components/nav-user.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-09/components/nav-user.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-09/components/nav-user.tsx index dd9d60eccfd..d3719ddec19 100644 --- a/apps/v4/registry/blocks/sidebar-09/components/nav-user.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-09/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/registry/blocks/sidebar-09/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-09/page.tsx similarity index 85% rename from apps/v4/registry/blocks/sidebar-09/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-09/page.tsx index 42c87b37ef2..c4fd03139f4 100644 --- a/apps/v4/registry/blocks/sidebar-09/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-09/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-09/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-09/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-10/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/app-sidebar.tsx similarity index 90% rename from apps/v4/registry/blocks/sidebar-10/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/app-sidebar.tsx index a45f365ee82..3334c2a32a0 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/app-sidebar.tsx @@ -15,17 +15,17 @@ import { Trash2, } from "lucide-react" -import { NavFavorites } from "@/registry/blocks/sidebar-10/components/nav-favorites" -import { NavMain } from "@/registry/blocks/sidebar-10/components/nav-main" -import { NavSecondary } from "@/registry/blocks/sidebar-10/components/nav-secondary" -import { NavWorkspaces } from "@/registry/blocks/sidebar-10/components/nav-workspaces" -import { TeamSwitcher } from "@/registry/blocks/sidebar-10/components/team-switcher" +import { NavFavorites } from "@/registry/new-york-v4/blocks/sidebar-10/components/nav-favorites" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-10/components/nav-main" +import { NavSecondary } from "@/registry/new-york-v4/blocks/sidebar-10/components/nav-secondary" +import { NavWorkspaces } from "@/registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces" +import { TeamSwitcher } from "@/registry/new-york-v4/blocks/sidebar-10/components/team-switcher" import { Sidebar, SidebarContent, SidebarHeader, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-10/components/nav-actions.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx similarity index 93% rename from apps/v4/registry/blocks/sidebar-10/components/nav-actions.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx index e87bf1c7be1..146b8f825b1 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/nav-actions.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx @@ -19,8 +19,12 @@ import { Trash2, } from "lucide-react" -import { Button } from "@/registry/ui/button" -import { Popover, PopoverContent, PopoverTrigger } from "@/registry/ui/popover" +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" import { Sidebar, SidebarContent, @@ -29,7 +33,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" const data = [ [ diff --git a/apps/v4/registry/blocks/sidebar-10/components/nav-favorites.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-favorites.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-10/components/nav-favorites.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-favorites.tsx index c9eb101ee1d..1fb17fc10b8 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/nav-favorites.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-favorites.tsx @@ -14,7 +14,7 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarGroupLabel, @@ -23,7 +23,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavFavorites({ favorites, diff --git a/apps/v4/registry/blocks/sidebar-10/components/nav-main.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-main.tsx similarity index 93% rename from apps/v4/registry/blocks/sidebar-10/components/nav-main.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-main.tsx index 3039da47fef..742b3ce7f95 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/nav-main.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-main.tsx @@ -6,7 +6,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/registry/blocks/sidebar-15/components/nav-secondary.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-secondary.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-15/components/nav-secondary.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-secondary.tsx index f80ff30e8c7..901c63e89a3 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/nav-secondary.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-secondary.tsx @@ -8,7 +8,7 @@ import { SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavSecondary({ items, diff --git a/apps/v4/registry/blocks/sidebar-15/components/nav-workspaces.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-15/components/nav-workspaces.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces.tsx index a0dabfe004f..cf9bfa9aedf 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/nav-workspaces.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces.tsx @@ -4,7 +4,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupContent, @@ -16,7 +16,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavWorkspaces({ workspaces, diff --git a/apps/v4/registry/blocks/sidebar-10/components/team-switcher.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/team-switcher.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-10/components/team-switcher.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/components/team-switcher.tsx index 53f09481d47..10bd29575c2 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/team-switcher.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/components/team-switcher.tsx @@ -11,12 +11,12 @@ import { DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function TeamSwitcher({ teams, diff --git a/apps/v4/registry/blocks/sidebar-10/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-10/page.tsx similarity index 79% rename from apps/v4/registry/blocks/sidebar-10/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-10/page.tsx index 7b7f2d132ff..777c747f792 100644 --- a/apps/v4/registry/blocks/sidebar-10/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-10/page.tsx @@ -1,17 +1,17 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-10/components/app-sidebar" -import { NavActions } from "@/registry/blocks/sidebar-10/components/nav-actions" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-10/components/app-sidebar" +import { NavActions } from "@/registry/new-york-v4/blocks/sidebar-10/components/nav-actions" import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-11/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-11/components/app-sidebar.tsx similarity index 97% rename from apps/v4/registry/blocks/sidebar-11/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-11/components/app-sidebar.tsx index 3122fab67eb..a7aec0c157a 100644 --- a/apps/v4/registry/blocks/sidebar-11/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-11/components/app-sidebar.tsx @@ -5,7 +5,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { Sidebar, SidebarContent, @@ -18,7 +18,7 @@ import { SidebarMenuItem, SidebarMenuSub, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-11/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-11/page.tsx similarity index 87% rename from apps/v4/registry/blocks/sidebar-11/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-11/page.tsx index f57afa25775..91537b1940a 100644 --- a/apps/v4/registry/blocks/sidebar-11/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-11/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-11/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-11/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,13 +6,13 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-12/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/app-sidebar.tsx similarity index 81% rename from apps/v4/registry/blocks/sidebar-12/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-12/components/app-sidebar.tsx index b1ded6c86a1..86f9f6965d1 100644 --- a/apps/v4/registry/blocks/sidebar-12/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/app-sidebar.tsx @@ -1,9 +1,9 @@ import * as React from "react" import { Plus } from "lucide-react" -import { Calendars } from "@/registry/blocks/sidebar-12/components/calendars" -import { DatePicker } from "@/registry/blocks/sidebar-12/components/date-picker" -import { NavUser } from "@/registry/blocks/sidebar-12/components/nav-user" +import { Calendars } from "@/registry/new-york-v4/blocks/sidebar-12/components/calendars" +import { DatePicker } from "@/registry/new-york-v4/blocks/sidebar-12/components/date-picker" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-12/components/nav-user" import { Sidebar, SidebarContent, @@ -14,7 +14,7 @@ import { SidebarMenuItem, SidebarRail, SidebarSeparator, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-12/components/calendars.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/calendars.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-12/components/calendars.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-12/components/calendars.tsx index 1bcc57f77e4..8b5e4954e64 100644 --- a/apps/v4/registry/blocks/sidebar-12/components/calendars.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/calendars.tsx @@ -5,7 +5,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupContent, @@ -14,7 +14,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarSeparator, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function Calendars({ calendars, diff --git a/apps/v4/registry/blocks/sidebar-12/components/date-picker.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/date-picker.tsx similarity index 68% rename from apps/v4/registry/blocks/sidebar-12/components/date-picker.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-12/components/date-picker.tsx index db8eef3644f..81c493ea2b0 100644 --- a/apps/v4/registry/blocks/sidebar-12/components/date-picker.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/date-picker.tsx @@ -1,5 +1,8 @@ -import { Calendar } from "@/registry/ui/calendar" -import { SidebarGroup, SidebarGroupContent } from "@/registry/ui/sidebar" +import { Calendar } from "@/registry/new-york-v4/ui/calendar" +import { + SidebarGroup, + SidebarGroupContent, +} from "@/registry/new-york-v4/ui/sidebar" export function DatePicker() { return ( diff --git a/apps/v4/registry/blocks/sidebar-15/components/nav-user.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/nav-user.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-15/components/nav-user.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-12/components/nav-user.tsx index 79762b84fb8..7fc9c8616a1 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/nav-user.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-12/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/registry/blocks/sidebar-12/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-12/page.tsx similarity index 82% rename from apps/v4/registry/blocks/sidebar-12/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-12/page.tsx index a3c7efa82b9..eb594eb253a 100644 --- a/apps/v4/registry/blocks/sidebar-12/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-12/page.tsx @@ -1,16 +1,16 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-12/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-12/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-13/components/settings-dialog.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-13/components/settings-dialog.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-13/components/settings-dialog.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-13/components/settings-dialog.tsx index bb21ad9bbc8..b408be0e2f0 100644 --- a/apps/v4/registry/blocks/sidebar-13/components/settings-dialog.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-13/components/settings-dialog.tsx @@ -23,15 +23,15 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Button } from "@/registry/ui/button" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Button } from "@/registry/new-york-v4/ui/button" import { Dialog, DialogContent, DialogDescription, DialogTitle, DialogTrigger, -} from "@/registry/ui/dialog" +} from "@/registry/new-york-v4/ui/dialog" import { Sidebar, SidebarContent, @@ -41,7 +41,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarProvider, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" const data = { nav: [ diff --git a/apps/v4/registry/blocks/sidebar-13/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-13/page.tsx similarity index 59% rename from apps/v4/registry/blocks/sidebar-13/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-13/page.tsx index cb8d423dd62..fc2bd2dff2e 100644 --- a/apps/v4/registry/blocks/sidebar-13/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-13/page.tsx @@ -1,4 +1,4 @@ -import { SettingsDialog } from "@/registry/blocks/sidebar-13/components/settings-dialog" +import { SettingsDialog } from "@/registry/new-york-v4/blocks/sidebar-13/components/settings-dialog" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-14/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-14/components/app-sidebar.tsx similarity index 98% rename from apps/v4/registry/blocks/sidebar-14/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-14/components/app-sidebar.tsx index 0b08a4fad31..56a8db36663 100644 --- a/apps/v4/registry/blocks/sidebar-14/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-14/components/app-sidebar.tsx @@ -13,7 +13,7 @@ import { SidebarMenuSubButton, SidebarMenuSubItem, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-14/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-14/page.tsx similarity index 89% rename from apps/v4/registry/blocks/sidebar-14/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-14/page.tsx index 4a99dc933e9..90872e74eec 100644 --- a/apps/v4/registry/blocks/sidebar-14/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-14/page.tsx @@ -1,4 +1,4 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-14/components/app-sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-14/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, @@ -6,12 +6,12 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" +} from "@/registry/new-york-v4/ui/breadcrumb" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-15/components/calendars.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/calendars.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-15/components/calendars.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/calendars.tsx index 76bb58e47c8..3d1b7eb35ee 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/calendars.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/calendars.tsx @@ -5,7 +5,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupContent, @@ -14,7 +14,7 @@ import { SidebarMenuButton, SidebarMenuItem, SidebarSeparator, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function Calendars({ calendars, diff --git a/apps/v4/registry/blocks/sidebar-15/components/date-picker.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/date-picker.tsx similarity index 68% rename from apps/v4/registry/blocks/sidebar-15/components/date-picker.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/date-picker.tsx index db8eef3644f..81c493ea2b0 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/date-picker.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/date-picker.tsx @@ -1,5 +1,8 @@ -import { Calendar } from "@/registry/ui/calendar" -import { SidebarGroup, SidebarGroupContent } from "@/registry/ui/sidebar" +import { Calendar } from "@/registry/new-york-v4/ui/calendar" +import { + SidebarGroup, + SidebarGroupContent, +} from "@/registry/new-york-v4/ui/sidebar" export function DatePicker() { return ( diff --git a/apps/v4/registry/blocks/sidebar-15/components/nav-favorites.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-favorites.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-15/components/nav-favorites.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-favorites.tsx index c9eb101ee1d..1fb17fc10b8 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/nav-favorites.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-favorites.tsx @@ -14,7 +14,7 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarGroupLabel, @@ -23,7 +23,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavFavorites({ favorites, diff --git a/apps/v4/registry/blocks/sidebar-15/components/nav-main.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx similarity index 93% rename from apps/v4/registry/blocks/sidebar-15/components/nav-main.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx index 3039da47fef..742b3ce7f95 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/nav-main.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx @@ -6,7 +6,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/registry/blocks/sidebar-10/components/nav-secondary.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-10/components/nav-secondary.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx index f80ff30e8c7..901c63e89a3 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/nav-secondary.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx @@ -8,7 +8,7 @@ import { SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavSecondary({ items, diff --git a/apps/v4/registry/blocks/sidebar-12/components/nav-user.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-user.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-12/components/nav-user.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-user.tsx index 79762b84fb8..7fc9c8616a1 100644 --- a/apps/v4/registry/blocks/sidebar-12/components/nav-user.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/registry/blocks/sidebar-10/components/nav-workspaces.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-10/components/nav-workspaces.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces.tsx index a0dabfe004f..cf9bfa9aedf 100644 --- a/apps/v4/registry/blocks/sidebar-10/components/nav-workspaces.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces.tsx @@ -4,7 +4,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupContent, @@ -16,7 +16,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavWorkspaces({ workspaces, diff --git a/apps/v4/registry/blocks/sidebar-15/components/sidebar-left.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-left.tsx similarity index 90% rename from apps/v4/registry/blocks/sidebar-15/components/sidebar-left.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-left.tsx index 2e3ae721ed2..9f3bad49f02 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/sidebar-left.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-left.tsx @@ -15,17 +15,17 @@ import { Trash2, } from "lucide-react" -import { NavFavorites } from "@/registry/blocks/sidebar-15/components/nav-favorites" -import { NavMain } from "@/registry/blocks/sidebar-15/components/nav-main" -import { NavSecondary } from "@/registry/blocks/sidebar-15/components/nav-secondary" -import { NavWorkspaces } from "@/registry/blocks/sidebar-15/components/nav-workspaces" -import { TeamSwitcher } from "@/registry/blocks/sidebar-15/components/team-switcher" +import { NavFavorites } from "@/registry/new-york-v4/blocks/sidebar-15/components/nav-favorites" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-15/components/nav-main" +import { NavSecondary } from "@/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary" +import { NavWorkspaces } from "@/registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces" +import { TeamSwitcher } from "@/registry/new-york-v4/blocks/sidebar-15/components/team-switcher" import { Sidebar, SidebarContent, SidebarHeader, SidebarRail, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-15/components/sidebar-right.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-right.tsx similarity index 82% rename from apps/v4/registry/blocks/sidebar-15/components/sidebar-right.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-right.tsx index 525427698bd..b3c1ee4d3a5 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/sidebar-right.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-right.tsx @@ -1,9 +1,9 @@ import * as React from "react" import { Plus } from "lucide-react" -import { Calendars } from "@/registry/blocks/sidebar-15/components/calendars" -import { DatePicker } from "@/registry/blocks/sidebar-15/components/date-picker" -import { NavUser } from "@/registry/blocks/sidebar-15/components/nav-user" +import { Calendars } from "@/registry/new-york-v4/blocks/sidebar-15/components/calendars" +import { DatePicker } from "@/registry/new-york-v4/blocks/sidebar-15/components/date-picker" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-15/components/nav-user" import { Sidebar, SidebarContent, @@ -14,7 +14,7 @@ import { SidebarMenuItem, SidebarRail, SidebarSeparator, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" // This is sample data. const data = { diff --git a/apps/v4/registry/blocks/sidebar-15/components/team-switcher.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/team-switcher.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-15/components/team-switcher.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/components/team-switcher.tsx index 53f09481d47..10bd29575c2 100644 --- a/apps/v4/registry/blocks/sidebar-15/components/team-switcher.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/components/team-switcher.tsx @@ -11,12 +11,12 @@ import { DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function TeamSwitcher({ teams, diff --git a/apps/v4/registry/blocks/sidebar-15/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-15/page.tsx similarity index 78% rename from apps/v4/registry/blocks/sidebar-15/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-15/page.tsx index 75cdc2d5b90..a301f05ce35 100644 --- a/apps/v4/registry/blocks/sidebar-15/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-15/page.tsx @@ -1,17 +1,17 @@ -import { SidebarLeft } from "@/registry/blocks/sidebar-15/components/sidebar-left" -import { SidebarRight } from "@/registry/blocks/sidebar-15/components/sidebar-right" +import { SidebarLeft } from "@/registry/new-york-v4/blocks/sidebar-15/components/sidebar-left" +import { SidebarRight } from "@/registry/new-york-v4/blocks/sidebar-15/components/sidebar-right" import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage, -} from "@/registry/ui/breadcrumb" -import { Separator } from "@/registry/ui/separator" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { SidebarInset, SidebarProvider, SidebarTrigger, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export default function Page() { return ( diff --git a/apps/v4/registry/blocks/sidebar-16/components/app-sidebar.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/app-sidebar.tsx similarity index 89% rename from apps/v4/registry/blocks/sidebar-16/components/app-sidebar.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/app-sidebar.tsx index e0084d1cb0f..75c8d65e9e2 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/app-sidebar.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/app-sidebar.tsx @@ -14,10 +14,10 @@ import { SquareTerminal, } from "lucide-react" -import { NavMain } from "@/registry/blocks/sidebar-16/components/nav-main" -import { NavProjects } from "@/registry/blocks/sidebar-16/components/nav-projects" -import { NavSecondary } from "@/registry/blocks/sidebar-16/components/nav-secondary" -import { NavUser } from "@/registry/blocks/sidebar-16/components/nav-user" +import { NavMain } from "@/registry/new-york-v4/blocks/sidebar-16/components/nav-main" +import { NavProjects } from "@/registry/new-york-v4/blocks/sidebar-16/components/nav-projects" +import { NavSecondary } from "@/registry/new-york-v4/blocks/sidebar-16/components/nav-secondary" +import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-16/components/nav-user" import { Sidebar, SidebarContent, @@ -26,7 +26,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" const data = { user: { diff --git a/apps/v4/registry/blocks/sidebar-08/components/nav-main.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-main.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-08/components/nav-main.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-main.tsx index 61c5f5d5c11..4ffa6b3fd51 100644 --- a/apps/v4/registry/blocks/sidebar-08/components/nav-main.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-main.tsx @@ -6,7 +6,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger, -} from "@/registry/ui/collapsible" +} from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupLabel, @@ -17,7 +17,7 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavMain({ items, diff --git a/apps/v4/registry/blocks/sidebar-08/components/nav-projects.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-projects.tsx similarity index 96% rename from apps/v4/registry/blocks/sidebar-08/components/nav-projects.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-projects.tsx index ba334ddbbec..2c6d23a28ae 100644 --- a/apps/v4/registry/blocks/sidebar-08/components/nav-projects.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-projects.tsx @@ -14,7 +14,7 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarGroup, SidebarGroupLabel, @@ -23,7 +23,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavProjects({ projects, diff --git a/apps/v4/registry/blocks/sidebar-16/components/nav-secondary.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-secondary.tsx similarity index 95% rename from apps/v4/registry/blocks/sidebar-16/components/nav-secondary.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-secondary.tsx index 753fa156dd9..66924a12dc0 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/nav-secondary.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-secondary.tsx @@ -7,7 +7,7 @@ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavSecondary({ items, diff --git a/apps/v4/registry/blocks/sidebar-16/components/nav-user.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-user.tsx similarity index 94% rename from apps/v4/registry/blocks/sidebar-16/components/nav-user.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-user.tsx index 7e41a7c2555..9d751fbf267 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/nav-user.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/nav-user.tsx @@ -9,7 +9,11 @@ import { Sparkles, } from "lucide-react" -import { Avatar, AvatarFallback, AvatarImage } from "@/registry/ui/avatar" +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, @@ -18,13 +22,13 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@/registry/ui/dropdown-menu" +} from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, -} from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/sidebar" export function NavUser({ user, diff --git a/apps/v4/registry/blocks/sidebar-16/components/search-form.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/search-form.tsx similarity index 81% rename from apps/v4/registry/blocks/sidebar-16/components/search-form.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/search-form.tsx index 02affc40f4f..0491880e4d2 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/search-form.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/search-form.tsx @@ -1,7 +1,7 @@ import { Search } from "lucide-react" -import { Label } from "@/registry/ui/label" -import { SidebarInput } from "@/registry/ui/sidebar" +import { Label } from "@/registry/new-york-v4/ui/label" +import { SidebarInput } from "@/registry/new-york-v4/ui/sidebar" export function SearchForm({ ...props }: React.ComponentProps<"form">) { return ( diff --git a/apps/v4/registry/blocks/sidebar-16/components/site-header.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/site-header.tsx similarity index 79% rename from apps/v4/registry/blocks/sidebar-16/components/site-header.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/components/site-header.tsx index e4747bf2942..9ab08581ef2 100644 --- a/apps/v4/registry/blocks/sidebar-16/components/site-header.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/components/site-header.tsx @@ -2,7 +2,7 @@ import { SidebarIcon } from "lucide-react" -import { SearchForm } from "@/registry/blocks/sidebar-16/components/search-form" +import { SearchForm } from "@/registry/new-york-v4/blocks/sidebar-16/components/search-form" import { Breadcrumb, BreadcrumbItem, @@ -10,10 +10,10 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from "@/registry/ui/breadcrumb" -import { Button } from "@/registry/ui/button" -import { Separator } from "@/registry/ui/separator" -import { useSidebar } from "@/registry/ui/sidebar" +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Separator } from "@/registry/new-york-v4/ui/separator" +import { useSidebar } from "@/registry/new-york-v4/ui/sidebar" export function SiteHeader() { const { toggleSidebar } = useSidebar() diff --git a/apps/v4/registry/blocks/sidebar-16/page.tsx b/apps/v4/registry/new-york-v4/blocks/sidebar-16/page.tsx similarity index 77% rename from apps/v4/registry/blocks/sidebar-16/page.tsx rename to apps/v4/registry/new-york-v4/blocks/sidebar-16/page.tsx index c0e00140a5c..9a90ac959e3 100644 --- a/apps/v4/registry/blocks/sidebar-16/page.tsx +++ b/apps/v4/registry/new-york-v4/blocks/sidebar-16/page.tsx @@ -1,6 +1,9 @@ -import { AppSidebar } from "@/registry/blocks/sidebar-16/components/app-sidebar" -import { SiteHeader } from "@/registry/blocks/sidebar-16/components/site-header" -import { SidebarInset, SidebarProvider } from "@/registry/ui/sidebar" +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-16/components/app-sidebar" +import { SiteHeader } from "@/registry/new-york-v4/blocks/sidebar-16/components/site-header" +import { + SidebarInset, + SidebarProvider, +} from "@/registry/new-york-v4/ui/sidebar" export const iframeHeight = "800px" diff --git a/apps/v4/registry/charts/chart-area-axes.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-axes.tsx similarity index 97% rename from apps/v4/registry/charts/chart-area-axes.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-axes.tsx index 6ea930836ba..be7572d9657 100644 --- a/apps/v4/registry/charts/chart-area-axes.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-axes.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "An area chart with axes" diff --git a/apps/v4/registry/charts/chart-area-default.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-default.tsx similarity index 96% rename from apps/v4/registry/charts/chart-area-default.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-default.tsx index 6e6fca61442..08296e713b7 100644 --- a/apps/v4/registry/charts/chart-area-default.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-default.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A simple area chart" diff --git a/apps/v4/registry/charts/chart-area-gradient.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-gradient.tsx similarity index 97% rename from apps/v4/registry/charts/chart-area-gradient.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-gradient.tsx index 951f8ab5100..5fac294ded9 100644 --- a/apps/v4/registry/charts/chart-area-gradient.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-gradient.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "An area chart with gradient fill" diff --git a/apps/v4/registry/charts/chart-area-icons.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-icons.tsx similarity index 97% rename from apps/v4/registry/charts/chart-area-icons.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-icons.tsx index 97bb8353a63..7d9806ba9f7 100644 --- a/apps/v4/registry/charts/chart-area-icons.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-icons.tsx @@ -10,7 +10,7 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, @@ -18,7 +18,7 @@ import { ChartLegendContent, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "An area chart with icons" diff --git a/apps/v4/registry/charts/chart-area-interactive.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-interactive.tsx similarity index 98% rename from apps/v4/registry/charts/chart-area-interactive.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-interactive.tsx index ece58d0f0e3..f1b74750963 100644 --- a/apps/v4/registry/charts/chart-area-interactive.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-interactive.tsx @@ -9,7 +9,7 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, @@ -17,14 +17,14 @@ import { ChartLegendContent, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, -} from "@/registry/ui/select" +} from "@/registry/new-york-v4/ui/select" export const description = "An interactive area chart" diff --git a/apps/v4/registry/charts/chart-area-legend.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-legend.tsx similarity index 97% rename from apps/v4/registry/charts/chart-area-legend.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-legend.tsx index 1b91ac4ecbd..f74b7bbbbe3 100644 --- a/apps/v4/registry/charts/chart-area-legend.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-legend.tsx @@ -10,7 +10,7 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, @@ -18,7 +18,7 @@ import { ChartLegendContent, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "An area chart with a legend" diff --git a/apps/v4/registry/charts/chart-area-linear.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-linear.tsx similarity index 96% rename from apps/v4/registry/charts/chart-area-linear.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-linear.tsx index b53885fae29..f6a6f40e7be 100644 --- a/apps/v4/registry/charts/chart-area-linear.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-linear.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A linear area chart" diff --git a/apps/v4/registry/charts/chart-area-stacked-expand.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-stacked-expand.tsx similarity index 97% rename from apps/v4/registry/charts/chart-area-stacked-expand.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-stacked-expand.tsx index ff34a4fe4bf..1ff030e704c 100644 --- a/apps/v4/registry/charts/chart-area-stacked-expand.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-stacked-expand.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked area chart with expand stacking" diff --git a/apps/v4/registry/charts/chart-area-stacked.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-stacked.tsx similarity index 97% rename from apps/v4/registry/charts/chart-area-stacked.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-stacked.tsx index a695b6f8f7a..98a2d930e9d 100644 --- a/apps/v4/registry/charts/chart-area-stacked.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-stacked.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked area chart" diff --git a/apps/v4/registry/charts/chart-area-step.tsx b/apps/v4/registry/new-york-v4/charts/chart-area-step.tsx similarity index 96% rename from apps/v4/registry/charts/chart-area-step.tsx rename to apps/v4/registry/new-york-v4/charts/chart-area-step.tsx index 991417a95ac..91423052044 100644 --- a/apps/v4/registry/charts/chart-area-step.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-area-step.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A step area chart" diff --git a/apps/v4/registry/charts/chart-bar-active.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-active.tsx similarity index 97% rename from apps/v4/registry/charts/chart-bar-active.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-active.tsx index ff829740090..bcc8631e2e2 100644 --- a/apps/v4/registry/charts/chart-bar-active.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-active.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A bar chart with an active bar" diff --git a/apps/v4/registry/charts/chart-bar-default.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-default.tsx similarity index 95% rename from apps/v4/registry/charts/chart-bar-default.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-default.tsx index ea682d732b2..a74ed59dd9c 100644 --- a/apps/v4/registry/charts/chart-bar-default.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-default.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A bar chart" diff --git a/apps/v4/registry/charts/chart-bar-horizontal.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-horizontal.tsx similarity index 96% rename from apps/v4/registry/charts/chart-bar-horizontal.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-horizontal.tsx index a1f38693eaf..8b9d863921c 100644 --- a/apps/v4/registry/charts/chart-bar-horizontal.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-horizontal.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A horizontal bar chart" diff --git a/apps/v4/registry/charts/chart-bar-interactive.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-interactive.tsx similarity index 99% rename from apps/v4/registry/charts/chart-bar-interactive.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-interactive.tsx index ebebd8d1dea..6cbc21ef292 100644 --- a/apps/v4/registry/charts/chart-bar-interactive.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-interactive.tsx @@ -9,13 +9,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "An interactive bar chart" diff --git a/apps/v4/registry/charts/chart-bar-label-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-label-custom.tsx similarity index 97% rename from apps/v4/registry/charts/chart-bar-label-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-label-custom.tsx index 8b497064a62..3c084bf0336 100644 --- a/apps/v4/registry/charts/chart-bar-label-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-label-custom.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A bar chart with a custom label" diff --git a/apps/v4/registry/charts/chart-bar-label.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-label.tsx similarity index 96% rename from apps/v4/registry/charts/chart-bar-label.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-label.tsx index a0675813c78..faaac426f81 100644 --- a/apps/v4/registry/charts/chart-bar-label.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-label.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A bar chart with a label" diff --git a/apps/v4/registry/charts/chart-bar-mixed.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-mixed.tsx similarity index 96% rename from apps/v4/registry/charts/chart-bar-mixed.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-mixed.tsx index 167c2ce00d5..1e622051c29 100644 --- a/apps/v4/registry/charts/chart-bar-mixed.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-mixed.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A mixed bar chart" diff --git a/apps/v4/registry/charts/chart-bar-multiple.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-multiple.tsx similarity index 96% rename from apps/v4/registry/charts/chart-bar-multiple.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-multiple.tsx index 8a41dd2845e..c5682fc6be6 100644 --- a/apps/v4/registry/charts/chart-bar-multiple.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-multiple.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A multiple bar chart" diff --git a/apps/v4/registry/charts/chart-bar-negative.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-negative.tsx similarity index 96% rename from apps/v4/registry/charts/chart-bar-negative.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-negative.tsx index 736ac671b86..91a195ab81d 100644 --- a/apps/v4/registry/charts/chart-bar-negative.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-negative.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A bar chart with negative values" diff --git a/apps/v4/registry/charts/chart-bar-stacked.tsx b/apps/v4/registry/new-york-v4/charts/chart-bar-stacked.tsx similarity index 96% rename from apps/v4/registry/charts/chart-bar-stacked.tsx rename to apps/v4/registry/new-york-v4/charts/chart-bar-stacked.tsx index 1361c30d478..e8da231089f 100644 --- a/apps/v4/registry/charts/chart-bar-stacked.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-bar-stacked.tsx @@ -10,7 +10,7 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, @@ -18,7 +18,7 @@ import { ChartLegendContent, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-line-default.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-default.tsx similarity index 96% rename from apps/v4/registry/charts/chart-line-default.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-default.tsx index 659fbbe495f..e6a67fd5b34 100644 --- a/apps/v4/registry/charts/chart-line-default.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-default.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart" diff --git a/apps/v4/registry/charts/chart-line-dots-colors.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-dots-colors.tsx similarity index 97% rename from apps/v4/registry/charts/chart-line-dots-colors.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-dots-colors.tsx index 40733d3a3f4..3863dec495b 100644 --- a/apps/v4/registry/charts/chart-line-dots-colors.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-dots-colors.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart with dots and colors" diff --git a/apps/v4/registry/charts/chart-line-dots-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-dots-custom.tsx similarity index 97% rename from apps/v4/registry/charts/chart-line-dots-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-dots-custom.tsx index ac77b0847d5..9c1b8d58d5a 100644 --- a/apps/v4/registry/charts/chart-line-dots-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-dots-custom.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart with custom dots" diff --git a/apps/v4/registry/charts/chart-line-dots.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-dots.tsx similarity index 96% rename from apps/v4/registry/charts/chart-line-dots.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-dots.tsx index cbce0e02235..174eeeed437 100644 --- a/apps/v4/registry/charts/chart-line-dots.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-dots.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart with dots" diff --git a/apps/v4/registry/charts/chart-line-interactive.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-interactive.tsx similarity index 99% rename from apps/v4/registry/charts/chart-line-interactive.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-interactive.tsx index ee16eb2d77f..ca267f8de84 100644 --- a/apps/v4/registry/charts/chart-line-interactive.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-interactive.tsx @@ -9,13 +9,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "An interactive line chart" diff --git a/apps/v4/registry/charts/chart-line-label-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-label-custom.tsx similarity index 97% rename from apps/v4/registry/charts/chart-line-label-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-label-custom.tsx index 48d74f94d03..6f30ee1762d 100644 --- a/apps/v4/registry/charts/chart-line-label-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-label-custom.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart with a custom label" diff --git a/apps/v4/registry/charts/chart-line-label.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-label.tsx similarity index 97% rename from apps/v4/registry/charts/chart-line-label.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-label.tsx index a5f5b5b9918..1de35744ec3 100644 --- a/apps/v4/registry/charts/chart-line-label.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-label.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart with a label" diff --git a/apps/v4/registry/charts/chart-line-linear.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-linear.tsx similarity index 96% rename from apps/v4/registry/charts/chart-line-linear.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-linear.tsx index d2bc0b05783..0cc249ce573 100644 --- a/apps/v4/registry/charts/chart-line-linear.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-linear.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A linear line chart" diff --git a/apps/v4/registry/charts/chart-line-multiple.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-multiple.tsx similarity index 97% rename from apps/v4/registry/charts/chart-line-multiple.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-multiple.tsx index 039f977a446..80e9b0870e9 100644 --- a/apps/v4/registry/charts/chart-line-multiple.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-multiple.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A multiple line chart" diff --git a/apps/v4/registry/charts/chart-line-step.tsx b/apps/v4/registry/new-york-v4/charts/chart-line-step.tsx similarity index 96% rename from apps/v4/registry/charts/chart-line-step.tsx rename to apps/v4/registry/new-york-v4/charts/chart-line-step.tsx index 9065f6ed94f..d387525a90a 100644 --- a/apps/v4/registry/charts/chart-line-step.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-line-step.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A line chart with step" diff --git a/apps/v4/registry/charts/chart-pie-donut-active.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-donut-active.tsx similarity index 97% rename from apps/v4/registry/charts/chart-pie-donut-active.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-donut-active.tsx index 86e80fa29db..65a909a39b8 100644 --- a/apps/v4/registry/charts/chart-pie-donut-active.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-donut-active.tsx @@ -11,13 +11,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A donut chart with an active sector" diff --git a/apps/v4/registry/charts/chart-pie-donut-text.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-donut-text.tsx similarity index 97% rename from apps/v4/registry/charts/chart-pie-donut-text.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-donut-text.tsx index 433de7466a5..b4ba4ca5e46 100644 --- a/apps/v4/registry/charts/chart-pie-donut-text.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-donut-text.tsx @@ -11,13 +11,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A donut chart with text" diff --git a/apps/v4/registry/charts/chart-pie-donut.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-donut.tsx similarity index 96% rename from apps/v4/registry/charts/chart-pie-donut.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-donut.tsx index 84f700c5b98..4296f8113e2 100644 --- a/apps/v4/registry/charts/chart-pie-donut.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-donut.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A donut chart" diff --git a/apps/v4/registry/charts/chart-pie-interactive.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-interactive.tsx similarity index 97% rename from apps/v4/registry/charts/chart-pie-interactive.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-interactive.tsx index 6b2afeaaf96..06dd2579347 100644 --- a/apps/v4/registry/charts/chart-pie-interactive.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-interactive.tsx @@ -10,21 +10,21 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartStyle, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, -} from "@/registry/ui/select" +} from "@/registry/new-york-v4/ui/select" export const description = "An interactive pie chart" diff --git a/apps/v4/registry/charts/chart-pie-label-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-label-custom.tsx similarity index 97% rename from apps/v4/registry/charts/chart-pie-label-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-label-custom.tsx index 266acf48e89..dcd601dac7c 100644 --- a/apps/v4/registry/charts/chart-pie-label-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-label-custom.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A pie chart with a custom label" diff --git a/apps/v4/registry/charts/chart-pie-label-list.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-label-list.tsx similarity index 96% rename from apps/v4/registry/charts/chart-pie-label-list.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-label-list.tsx index 73d5ff27ae2..a715bc88b5e 100644 --- a/apps/v4/registry/charts/chart-pie-label-list.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-label-list.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A pie chart with a label list" diff --git a/apps/v4/registry/charts/chart-pie-label.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-label.tsx similarity index 96% rename from apps/v4/registry/charts/chart-pie-label.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-label.tsx index bbe586d9ead..e82954ffff8 100644 --- a/apps/v4/registry/charts/chart-pie-label.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-label.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A pie chart with a label" diff --git a/apps/v4/registry/charts/chart-pie-legend.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-legend.tsx similarity index 95% rename from apps/v4/registry/charts/chart-pie-legend.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-legend.tsx index 9c3c7f9949b..bb29479fc9b 100644 --- a/apps/v4/registry/charts/chart-pie-legend.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-legend.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A pie chart with a legend" diff --git a/apps/v4/registry/charts/chart-pie-separator-none.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-separator-none.tsx similarity index 96% rename from apps/v4/registry/charts/chart-pie-separator-none.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-separator-none.tsx index 0b3ac5635d7..45b05167685 100644 --- a/apps/v4/registry/charts/chart-pie-separator-none.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-separator-none.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A pie chart with no separator" diff --git a/apps/v4/registry/charts/chart-pie-simple.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-simple.tsx similarity index 96% rename from apps/v4/registry/charts/chart-pie-simple.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-simple.tsx index 0d813fd7175..e669d09a701 100644 --- a/apps/v4/registry/charts/chart-pie-simple.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-simple.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A simple pie chart" diff --git a/apps/v4/registry/charts/chart-pie-stacked.tsx b/apps/v4/registry/new-york-v4/charts/chart-pie-stacked.tsx similarity index 97% rename from apps/v4/registry/charts/chart-pie-stacked.tsx rename to apps/v4/registry/new-york-v4/charts/chart-pie-stacked.tsx index c323a405f89..70b5b29130e 100644 --- a/apps/v4/registry/charts/chart-pie-stacked.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-pie-stacked.tsx @@ -11,13 +11,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A pie chart with stacked sections" diff --git a/apps/v4/registry/charts/chart-radar-default.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-default.tsx similarity index 95% rename from apps/v4/registry/charts/chart-radar-default.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-default.tsx index 80c5ed61e12..c932dfaf73f 100644 --- a/apps/v4/registry/charts/chart-radar-default.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-default.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart" diff --git a/apps/v4/registry/charts/chart-radar-dots.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-dots.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-dots.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-dots.tsx index 81bd3d9965d..12b1b2c3542 100644 --- a/apps/v4/registry/charts/chart-radar-dots.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-dots.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with dots" diff --git a/apps/v4/registry/charts/chart-radar-grid-circle-fill.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle-fill.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-grid-circle-fill.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle-fill.tsx index 2a02f0b271e..082632f5b5f 100644 --- a/apps/v4/registry/charts/chart-radar-grid-circle-fill.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle-fill.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a grid and circle fill" diff --git a/apps/v4/registry/charts/chart-radar-grid-circle-no-lines.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle-no-lines.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-grid-circle-no-lines.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle-no-lines.tsx index 63e886534f6..79c413714f2 100644 --- a/apps/v4/registry/charts/chart-radar-grid-circle-no-lines.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle-no-lines.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a grid and circle fill" diff --git a/apps/v4/registry/charts/chart-radar-grid-circle.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-grid-circle.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle.tsx index ed09a391db7..4705e33936f 100644 --- a/apps/v4/registry/charts/chart-radar-grid-circle.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a grid and circle" diff --git a/apps/v4/registry/charts/chart-radar-grid-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-custom.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-grid-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-grid-custom.tsx index 714e3cca3c3..0049721d96d 100644 --- a/apps/v4/registry/charts/chart-radar-grid-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-custom.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a custom grid" diff --git a/apps/v4/registry/charts/chart-radar-grid-fill.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-fill.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-grid-fill.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-grid-fill.tsx index 77c3c629d44..a02991945f7 100644 --- a/apps/v4/registry/charts/chart-radar-grid-fill.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-fill.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a grid filled" diff --git a/apps/v4/registry/charts/chart-radar-grid-none.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-none.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-grid-none.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-grid-none.tsx index c9d4ed2f615..03d7122c2ba 100644 --- a/apps/v4/registry/charts/chart-radar-grid-none.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-grid-none.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with no grid" diff --git a/apps/v4/registry/charts/chart-radar-icons.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-icons.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-icons.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-icons.tsx index 2f82f3f0214..71fd60d94dd 100644 --- a/apps/v4/registry/charts/chart-radar-icons.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-icons.tsx @@ -10,7 +10,7 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, @@ -18,7 +18,7 @@ import { ChartLegendContent, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with icons" diff --git a/apps/v4/registry/charts/chart-radar-label-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-label-custom.tsx similarity index 97% rename from apps/v4/registry/charts/chart-radar-label-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-label-custom.tsx index c2b53c63851..d2f246646a1 100644 --- a/apps/v4/registry/charts/chart-radar-label-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-label-custom.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a custom label" diff --git a/apps/v4/registry/charts/chart-radar-legend.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-legend.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-legend.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-legend.tsx index e8bda7f422b..4cecde5ec4b 100644 --- a/apps/v4/registry/charts/chart-radar-legend.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-legend.tsx @@ -10,7 +10,7 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, @@ -18,7 +18,7 @@ import { ChartLegendContent, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a legend" diff --git a/apps/v4/registry/charts/chart-radar-lines-only.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-lines-only.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-lines-only.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-lines-only.tsx index 3f43d674ce2..b800f91e1de 100644 --- a/apps/v4/registry/charts/chart-radar-lines-only.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-lines-only.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with lines only" diff --git a/apps/v4/registry/charts/chart-radar-multiple.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-multiple.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-multiple.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-multiple.tsx index d83fc227a0a..a71a46f6fdc 100644 --- a/apps/v4/registry/charts/chart-radar-multiple.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-multiple.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with multiple data" diff --git a/apps/v4/registry/charts/chart-radar-radius.tsx b/apps/v4/registry/new-york-v4/charts/chart-radar-radius.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radar-radius.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radar-radius.tsx index cf3adc51b7c..74c425c23d9 100644 --- a/apps/v4/registry/charts/chart-radar-radius.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radar-radius.tsx @@ -16,13 +16,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radar chart with a radius axis" diff --git a/apps/v4/registry/charts/chart-radial-grid.tsx b/apps/v4/registry/new-york-v4/charts/chart-radial-grid.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radial-grid.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radial-grid.tsx index 9b200ac9bf3..26a74b32fec 100644 --- a/apps/v4/registry/charts/chart-radial-grid.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radial-grid.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radial chart with a grid" diff --git a/apps/v4/registry/charts/chart-radial-label.tsx b/apps/v4/registry/new-york-v4/charts/chart-radial-label.tsx similarity index 97% rename from apps/v4/registry/charts/chart-radial-label.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radial-label.tsx index 4d60ae0baf9..913d1cb97ef 100644 --- a/apps/v4/registry/charts/chart-radial-label.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radial-label.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radial chart with a label" diff --git a/apps/v4/registry/charts/chart-radial-shape.tsx b/apps/v4/registry/new-york-v4/charts/chart-radial-shape.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radial-shape.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radial-shape.tsx index 3a95097875c..1f9a9aad6e6 100644 --- a/apps/v4/registry/charts/chart-radial-shape.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radial-shape.tsx @@ -16,8 +16,8 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { ChartConfig, ChartContainer } from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/card" +import { ChartConfig, ChartContainer } from "@/registry/new-york-v4/ui/chart" export const description = "A radial chart with a custom shape" diff --git a/apps/v4/registry/charts/chart-radial-simple.tsx b/apps/v4/registry/new-york-v4/charts/chart-radial-simple.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radial-simple.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radial-simple.tsx index 4335f7e97df..67f68c5799c 100644 --- a/apps/v4/registry/charts/chart-radial-simple.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radial-simple.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radial chart" diff --git a/apps/v4/registry/charts/chart-radial-stacked.tsx b/apps/v4/registry/new-york-v4/charts/chart-radial-stacked.tsx similarity index 97% rename from apps/v4/registry/charts/chart-radial-stacked.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radial-stacked.tsx index e60fabed660..2f5a2763cd3 100644 --- a/apps/v4/registry/charts/chart-radial-stacked.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radial-stacked.tsx @@ -10,13 +10,13 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A radial chart with stacked sections" diff --git a/apps/v4/registry/charts/chart-radial-text.tsx b/apps/v4/registry/new-york-v4/charts/chart-radial-text.tsx similarity index 96% rename from apps/v4/registry/charts/chart-radial-text.tsx rename to apps/v4/registry/new-york-v4/charts/chart-radial-text.tsx index 11149749802..75f32bce2d4 100644 --- a/apps/v4/registry/charts/chart-radial-text.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-radial-text.tsx @@ -16,8 +16,8 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/registry/ui/card" -import { ChartConfig, ChartContainer } from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/card" +import { ChartConfig, ChartContainer } from "@/registry/new-york-v4/ui/chart" export const description = "A radial chart with text" diff --git a/apps/v4/registry/charts/chart-tooltip-advanced.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-advanced.tsx similarity index 97% rename from apps/v4/registry/charts/chart-tooltip-advanced.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-advanced.tsx index 468fba2c53e..044c94f8e53 100644 --- a/apps/v4/registry/charts/chart-tooltip-advanced.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-advanced.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-tooltip-default.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-default.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-default.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-default.tsx index 7bb1370f6b2..695c70a9d0a 100644 --- a/apps/v4/registry/charts/chart-tooltip-default.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-default.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" export const iframeHeight = "600px" diff --git a/apps/v4/registry/charts/chart-tooltip-formatter.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-formatter.tsx similarity index 97% rename from apps/v4/registry/charts/chart-tooltip-formatter.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-formatter.tsx index 2c499d1ad04..e2f3d70dbd0 100644 --- a/apps/v4/registry/charts/chart-tooltip-formatter.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-formatter.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-tooltip-icons.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-icons.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-icons.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-icons.tsx index a52d3c8af66..edce3936dca 100644 --- a/apps/v4/registry/charts/chart-tooltip-icons.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-icons.tsx @@ -9,13 +9,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-tooltip-indicator-line.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-indicator-line.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-indicator-line.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-indicator-line.tsx index 735eab00f0c..e6acd7079dc 100644 --- a/apps/v4/registry/charts/chart-tooltip-indicator-line.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-indicator-line.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" export const iframeHeight = "600px" diff --git a/apps/v4/registry/charts/chart-tooltip-indicator-none.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-indicator-none.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-indicator-none.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-indicator-none.tsx index a6154da6b5c..63b7464b900 100644 --- a/apps/v4/registry/charts/chart-tooltip-indicator-none.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-indicator-none.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-tooltip-label-custom.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-label-custom.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-label-custom.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-label-custom.tsx index d295c1abbd9..8765718980f 100644 --- a/apps/v4/registry/charts/chart-tooltip-label-custom.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-label-custom.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-tooltip-label-formatter.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-label-formatter.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-label-formatter.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-label-formatter.tsx index 1fe96794996..43bd7d1313f 100644 --- a/apps/v4/registry/charts/chart-tooltip-label-formatter.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-label-formatter.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/charts/chart-tooltip-label-none.tsx b/apps/v4/registry/new-york-v4/charts/chart-tooltip-label-none.tsx similarity index 96% rename from apps/v4/registry/charts/chart-tooltip-label-none.tsx rename to apps/v4/registry/new-york-v4/charts/chart-tooltip-label-none.tsx index 6003ecd973f..d93bd185602 100644 --- a/apps/v4/registry/charts/chart-tooltip-label-none.tsx +++ b/apps/v4/registry/new-york-v4/charts/chart-tooltip-label-none.tsx @@ -8,13 +8,13 @@ import { CardDescription, CardHeader, CardTitle, -} from "@/registry/ui/card" +} from "@/registry/new-york-v4/ui/card" import { ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, -} from "@/registry/ui/chart" +} from "@/registry/new-york-v4/ui/chart" export const description = "A stacked bar chart with a legend" diff --git a/apps/v4/registry/hooks/use-mobile.ts b/apps/v4/registry/new-york-v4/hooks/use-mobile.ts similarity index 100% rename from apps/v4/registry/hooks/use-mobile.ts rename to apps/v4/registry/new-york-v4/hooks/use-mobile.ts diff --git a/apps/v4/registry/lib/utils.ts b/apps/v4/registry/new-york-v4/lib/utils.ts similarity index 100% rename from apps/v4/registry/lib/utils.ts rename to apps/v4/registry/new-york-v4/lib/utils.ts diff --git a/apps/v4/registry/ui/accordion.tsx b/apps/v4/registry/new-york-v4/ui/accordion.tsx similarity index 100% rename from apps/v4/registry/ui/accordion.tsx rename to apps/v4/registry/new-york-v4/ui/accordion.tsx diff --git a/apps/v4/registry/ui/alert-dialog.tsx b/apps/v4/registry/new-york-v4/ui/alert-dialog.tsx similarity index 98% rename from apps/v4/registry/ui/alert-dialog.tsx rename to apps/v4/registry/new-york-v4/ui/alert-dialog.tsx index 91bc0ab87cf..34f2d407b66 100644 --- a/apps/v4/registry/ui/alert-dialog.tsx +++ b/apps/v4/registry/new-york-v4/ui/alert-dialog.tsx @@ -4,7 +4,7 @@ import * as React from "react" import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" import { cn } from "@/lib/utils" -import { buttonVariants } from "@/registry/ui/button" +import { buttonVariants } from "@/registry/new-york-v4/ui/button" function AlertDialog({ ...props diff --git a/apps/v4/registry/ui/alert.tsx b/apps/v4/registry/new-york-v4/ui/alert.tsx similarity index 100% rename from apps/v4/registry/ui/alert.tsx rename to apps/v4/registry/new-york-v4/ui/alert.tsx diff --git a/apps/v4/registry/ui/aspect-ratio.tsx b/apps/v4/registry/new-york-v4/ui/aspect-ratio.tsx similarity index 100% rename from apps/v4/registry/ui/aspect-ratio.tsx rename to apps/v4/registry/new-york-v4/ui/aspect-ratio.tsx diff --git a/apps/v4/registry/ui/avatar.tsx b/apps/v4/registry/new-york-v4/ui/avatar.tsx similarity index 100% rename from apps/v4/registry/ui/avatar.tsx rename to apps/v4/registry/new-york-v4/ui/avatar.tsx diff --git a/apps/v4/registry/ui/badge.tsx b/apps/v4/registry/new-york-v4/ui/badge.tsx similarity index 100% rename from apps/v4/registry/ui/badge.tsx rename to apps/v4/registry/new-york-v4/ui/badge.tsx diff --git a/apps/v4/registry/ui/breadcrumb.tsx b/apps/v4/registry/new-york-v4/ui/breadcrumb.tsx similarity index 100% rename from apps/v4/registry/ui/breadcrumb.tsx rename to apps/v4/registry/new-york-v4/ui/breadcrumb.tsx diff --git a/apps/v4/registry/ui/button.tsx b/apps/v4/registry/new-york-v4/ui/button.tsx similarity index 100% rename from apps/v4/registry/ui/button.tsx rename to apps/v4/registry/new-york-v4/ui/button.tsx diff --git a/apps/v4/registry/ui/calendar.tsx b/apps/v4/registry/new-york-v4/ui/calendar.tsx similarity index 97% rename from apps/v4/registry/ui/calendar.tsx rename to apps/v4/registry/new-york-v4/ui/calendar.tsx index a06ef113a1f..40ebf4e27d3 100644 --- a/apps/v4/registry/ui/calendar.tsx +++ b/apps/v4/registry/new-york-v4/ui/calendar.tsx @@ -5,7 +5,7 @@ import { ChevronLeft, ChevronRight } from "lucide-react" import { DayPicker } from "react-day-picker" import { cn } from "@/lib/utils" -import { buttonVariants } from "@/registry/ui/button" +import { buttonVariants } from "@/registry/new-york-v4/ui/button" function Calendar({ className, diff --git a/apps/v4/registry/ui/card.tsx b/apps/v4/registry/new-york-v4/ui/card.tsx similarity index 100% rename from apps/v4/registry/ui/card.tsx rename to apps/v4/registry/new-york-v4/ui/card.tsx diff --git a/apps/v4/registry/ui/carousel.tsx b/apps/v4/registry/new-york-v4/ui/carousel.tsx similarity index 98% rename from apps/v4/registry/ui/carousel.tsx rename to apps/v4/registry/new-york-v4/ui/carousel.tsx index 9db1893d7a9..1c38c8217c2 100644 --- a/apps/v4/registry/ui/carousel.tsx +++ b/apps/v4/registry/new-york-v4/ui/carousel.tsx @@ -7,7 +7,7 @@ import useEmblaCarousel, { import { ArrowLeft, ArrowRight } from "lucide-react" import { cn } from "@/lib/utils" -import { Button } from "@/registry/ui/button" +import { Button } from "@/registry/new-york-v4/ui/button" type CarouselApi = UseEmblaCarouselType[1] type UseCarouselParameters = Parameters diff --git a/apps/v4/registry/ui/chart.tsx b/apps/v4/registry/new-york-v4/ui/chart.tsx similarity index 100% rename from apps/v4/registry/ui/chart.tsx rename to apps/v4/registry/new-york-v4/ui/chart.tsx diff --git a/apps/v4/registry/ui/checkbox.tsx b/apps/v4/registry/new-york-v4/ui/checkbox.tsx similarity index 100% rename from apps/v4/registry/ui/checkbox.tsx rename to apps/v4/registry/new-york-v4/ui/checkbox.tsx diff --git a/apps/v4/registry/ui/collapsible.tsx b/apps/v4/registry/new-york-v4/ui/collapsible.tsx similarity index 100% rename from apps/v4/registry/ui/collapsible.tsx rename to apps/v4/registry/new-york-v4/ui/collapsible.tsx diff --git a/apps/v4/registry/ui/command.tsx b/apps/v4/registry/new-york-v4/ui/command.tsx similarity index 99% rename from apps/v4/registry/ui/command.tsx rename to apps/v4/registry/new-york-v4/ui/command.tsx index f6d8b98f200..fb8c2efd284 100644 --- a/apps/v4/registry/ui/command.tsx +++ b/apps/v4/registry/new-york-v4/ui/command.tsx @@ -11,7 +11,7 @@ import { DialogDescription, DialogHeader, DialogTitle, -} from "@/registry/ui/dialog" +} from "@/registry/new-york-v4/ui/dialog" function Command({ className, diff --git a/apps/v4/registry/ui/context-menu.tsx b/apps/v4/registry/new-york-v4/ui/context-menu.tsx similarity index 100% rename from apps/v4/registry/ui/context-menu.tsx rename to apps/v4/registry/new-york-v4/ui/context-menu.tsx diff --git a/apps/v4/registry/ui/dialog.tsx b/apps/v4/registry/new-york-v4/ui/dialog.tsx similarity index 100% rename from apps/v4/registry/ui/dialog.tsx rename to apps/v4/registry/new-york-v4/ui/dialog.tsx diff --git a/apps/v4/registry/ui/drawer.tsx b/apps/v4/registry/new-york-v4/ui/drawer.tsx similarity index 100% rename from apps/v4/registry/ui/drawer.tsx rename to apps/v4/registry/new-york-v4/ui/drawer.tsx diff --git a/apps/v4/registry/ui/dropdown-menu.tsx b/apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx similarity index 100% rename from apps/v4/registry/ui/dropdown-menu.tsx rename to apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx diff --git a/apps/v4/registry/ui/form.tsx b/apps/v4/registry/new-york-v4/ui/form.tsx similarity index 98% rename from apps/v4/registry/ui/form.tsx rename to apps/v4/registry/new-york-v4/ui/form.tsx index 7c1fadb252b..a5de0199282 100644 --- a/apps/v4/registry/ui/form.tsx +++ b/apps/v4/registry/new-york-v4/ui/form.tsx @@ -14,7 +14,7 @@ import { } from "react-hook-form" import { cn } from "@/lib/utils" -import { Label } from "@/registry/ui/label" +import { Label } from "@/registry/new-york-v4/ui/label" const Form = FormProvider diff --git a/apps/v4/registry/ui/hover-card.tsx b/apps/v4/registry/new-york-v4/ui/hover-card.tsx similarity index 100% rename from apps/v4/registry/ui/hover-card.tsx rename to apps/v4/registry/new-york-v4/ui/hover-card.tsx diff --git a/apps/v4/registry/ui/input-otp.tsx b/apps/v4/registry/new-york-v4/ui/input-otp.tsx similarity index 100% rename from apps/v4/registry/ui/input-otp.tsx rename to apps/v4/registry/new-york-v4/ui/input-otp.tsx diff --git a/apps/v4/registry/ui/input.tsx b/apps/v4/registry/new-york-v4/ui/input.tsx similarity index 100% rename from apps/v4/registry/ui/input.tsx rename to apps/v4/registry/new-york-v4/ui/input.tsx diff --git a/apps/v4/registry/ui/label.tsx b/apps/v4/registry/new-york-v4/ui/label.tsx similarity index 100% rename from apps/v4/registry/ui/label.tsx rename to apps/v4/registry/new-york-v4/ui/label.tsx diff --git a/apps/v4/registry/ui/menubar.tsx b/apps/v4/registry/new-york-v4/ui/menubar.tsx similarity index 100% rename from apps/v4/registry/ui/menubar.tsx rename to apps/v4/registry/new-york-v4/ui/menubar.tsx diff --git a/apps/v4/registry/ui/navigation-menu.tsx b/apps/v4/registry/new-york-v4/ui/navigation-menu.tsx similarity index 100% rename from apps/v4/registry/ui/navigation-menu.tsx rename to apps/v4/registry/new-york-v4/ui/navigation-menu.tsx diff --git a/apps/v4/registry/ui/pagination.tsx b/apps/v4/registry/new-york-v4/ui/pagination.tsx similarity index 97% rename from apps/v4/registry/ui/pagination.tsx rename to apps/v4/registry/new-york-v4/ui/pagination.tsx index 945b6b12b66..8014149c4c5 100644 --- a/apps/v4/registry/ui/pagination.tsx +++ b/apps/v4/registry/new-york-v4/ui/pagination.tsx @@ -6,7 +6,7 @@ import { } from "lucide-react" import { cn } from "@/lib/utils" -import { Button, buttonVariants } from "@/registry/ui/button" +import { Button, buttonVariants } from "@/registry/new-york-v4/ui/button" function Pagination({ className, ...props }: React.ComponentProps<"nav">) { return ( diff --git a/apps/v4/registry/ui/popover.tsx b/apps/v4/registry/new-york-v4/ui/popover.tsx similarity index 100% rename from apps/v4/registry/ui/popover.tsx rename to apps/v4/registry/new-york-v4/ui/popover.tsx diff --git a/apps/v4/registry/ui/progress.tsx b/apps/v4/registry/new-york-v4/ui/progress.tsx similarity index 100% rename from apps/v4/registry/ui/progress.tsx rename to apps/v4/registry/new-york-v4/ui/progress.tsx diff --git a/apps/v4/registry/ui/radio-group.tsx b/apps/v4/registry/new-york-v4/ui/radio-group.tsx similarity index 100% rename from apps/v4/registry/ui/radio-group.tsx rename to apps/v4/registry/new-york-v4/ui/radio-group.tsx diff --git a/apps/v4/registry/ui/resizable.tsx b/apps/v4/registry/new-york-v4/ui/resizable.tsx similarity index 100% rename from apps/v4/registry/ui/resizable.tsx rename to apps/v4/registry/new-york-v4/ui/resizable.tsx diff --git a/apps/v4/registry/ui/scroll-area.tsx b/apps/v4/registry/new-york-v4/ui/scroll-area.tsx similarity index 100% rename from apps/v4/registry/ui/scroll-area.tsx rename to apps/v4/registry/new-york-v4/ui/scroll-area.tsx diff --git a/apps/v4/registry/ui/select.tsx b/apps/v4/registry/new-york-v4/ui/select.tsx similarity index 100% rename from apps/v4/registry/ui/select.tsx rename to apps/v4/registry/new-york-v4/ui/select.tsx diff --git a/apps/v4/registry/ui/separator.tsx b/apps/v4/registry/new-york-v4/ui/separator.tsx similarity index 100% rename from apps/v4/registry/ui/separator.tsx rename to apps/v4/registry/new-york-v4/ui/separator.tsx diff --git a/apps/v4/registry/ui/sheet.tsx b/apps/v4/registry/new-york-v4/ui/sheet.tsx similarity index 100% rename from apps/v4/registry/ui/sheet.tsx rename to apps/v4/registry/new-york-v4/ui/sheet.tsx diff --git a/apps/v4/registry/ui/sidebar.tsx b/apps/v4/registry/new-york-v4/ui/sidebar.tsx similarity index 97% rename from apps/v4/registry/ui/sidebar.tsx rename to apps/v4/registry/new-york-v4/ui/sidebar.tsx index 36599aaff6c..e931294f0e3 100644 --- a/apps/v4/registry/ui/sidebar.tsx +++ b/apps/v4/registry/new-york-v4/ui/sidebar.tsx @@ -5,25 +5,25 @@ import { Slot } from "@radix-ui/react-slot" import { VariantProps, cva } from "class-variance-authority" import { PanelLeftIcon } from "lucide-react" -import { useIsMobile } from "@/registry/hooks/use-mobile" -import { cn } from "@/registry/lib/utils" -import { Button } from "@/registry/ui/button" -import { Input } from "@/registry/ui/input" -import { Separator } from "@/registry/ui/separator" +import { useIsMobile } from "@/registry/new-york-v4/hooks/use-mobile" +import { cn } from "@/registry/new-york-v4/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Separator } from "@/registry/new-york-v4/ui/separator" import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, -} from "@/registry/ui/sheet" -import { Skeleton } from "@/registry/ui/skeleton" +} from "@/registry/new-york-v4/ui/sheet" +import { Skeleton } from "@/registry/new-york-v4/ui/skeleton" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, -} from "@/registry/ui/tooltip" +} from "@/registry/new-york-v4/ui/tooltip" const SIDEBAR_COOKIE_NAME = "sidebar:state" const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7 diff --git a/apps/v4/registry/ui/skeleton.tsx b/apps/v4/registry/new-york-v4/ui/skeleton.tsx similarity index 100% rename from apps/v4/registry/ui/skeleton.tsx rename to apps/v4/registry/new-york-v4/ui/skeleton.tsx diff --git a/apps/v4/registry/ui/slider.tsx b/apps/v4/registry/new-york-v4/ui/slider.tsx similarity index 100% rename from apps/v4/registry/ui/slider.tsx rename to apps/v4/registry/new-york-v4/ui/slider.tsx diff --git a/apps/v4/registry/ui/sonner.tsx b/apps/v4/registry/new-york-v4/ui/sonner.tsx similarity index 100% rename from apps/v4/registry/ui/sonner.tsx rename to apps/v4/registry/new-york-v4/ui/sonner.tsx diff --git a/apps/v4/registry/ui/switch.tsx b/apps/v4/registry/new-york-v4/ui/switch.tsx similarity index 100% rename from apps/v4/registry/ui/switch.tsx rename to apps/v4/registry/new-york-v4/ui/switch.tsx diff --git a/apps/v4/registry/ui/table.tsx b/apps/v4/registry/new-york-v4/ui/table.tsx similarity index 100% rename from apps/v4/registry/ui/table.tsx rename to apps/v4/registry/new-york-v4/ui/table.tsx diff --git a/apps/v4/registry/ui/tabs.tsx b/apps/v4/registry/new-york-v4/ui/tabs.tsx similarity index 100% rename from apps/v4/registry/ui/tabs.tsx rename to apps/v4/registry/new-york-v4/ui/tabs.tsx diff --git a/apps/v4/registry/ui/textarea.tsx b/apps/v4/registry/new-york-v4/ui/textarea.tsx similarity index 100% rename from apps/v4/registry/ui/textarea.tsx rename to apps/v4/registry/new-york-v4/ui/textarea.tsx diff --git a/apps/v4/registry/ui/toggle-group.tsx b/apps/v4/registry/new-york-v4/ui/toggle-group.tsx similarity index 96% rename from apps/v4/registry/ui/toggle-group.tsx rename to apps/v4/registry/new-york-v4/ui/toggle-group.tsx index d363868c34c..2152afecd53 100644 --- a/apps/v4/registry/ui/toggle-group.tsx +++ b/apps/v4/registry/new-york-v4/ui/toggle-group.tsx @@ -5,7 +5,7 @@ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group" import { type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" -import { toggleVariants } from "@/registry/ui/toggle" +import { toggleVariants } from "@/registry/new-york-v4/ui/toggle" const ToggleGroupContext = React.createContext< VariantProps diff --git a/apps/v4/registry/ui/toggle.tsx b/apps/v4/registry/new-york-v4/ui/toggle.tsx similarity index 100% rename from apps/v4/registry/ui/toggle.tsx rename to apps/v4/registry/new-york-v4/ui/toggle.tsx diff --git a/apps/v4/registry/ui/tooltip.tsx b/apps/v4/registry/new-york-v4/ui/tooltip.tsx similarity index 100% rename from apps/v4/registry/ui/tooltip.tsx rename to apps/v4/registry/new-york-v4/ui/tooltip.tsx diff --git a/apps/v4/scripts/build-registry.mts b/apps/v4/scripts/build-registry.mts index e24a8edbc79..24cbd2ad096 100644 --- a/apps/v4/scripts/build-registry.mts +++ b/apps/v4/scripts/build-registry.mts @@ -7,6 +7,7 @@ import { z } from "zod" import { blocks } from "@/www/registry/registry-blocks" import { charts } from "@/www/registry/registry-charts" +import { lib } from "@/www/registry/registry-lib" import { ui } from "@/www/registry/registry-ui" const DEPRECATED_ITEMS = ["toast"] @@ -16,9 +17,27 @@ const registry = { homepage: "https://ui.shadcn.com", items: z.array(registryItemSchema).parse( [ + { + name: "index", + type: "registry:style", + dependencies: [ + "tailwindcss-animate", + "class-variance-authority", + "lucide-react", + ], + registryDependencies: ["utils"], + tailwind: { + config: { + plugins: [`require("tailwindcss-animate")`], + }, + }, + cssVars: {}, + files: [], + }, ...ui, ...blocks, ...charts, + ...lib, { name: "use-mobile", type: "registry:hook", @@ -45,12 +64,16 @@ import * as React from "react" export const Index: Record = {` for (const item of registry.items) { - const resolveFiles = item.files?.map((file) => `registry/${file.path}`) + const resolveFiles = item.files?.map( + (file) => `registry/new-york-v4/${file.path}` + ) if (!resolveFiles) { continue } - const componentPath = item.files ? `@/registry/${item.files[0].path}` : "" + const componentPath = item.files?.[0]?.path + ? `@/registry/new-york-v4/${item.files[0].path}` + : "" index += ` "${item.name}": { @@ -69,11 +92,15 @@ export const Index: Record = {` target: "${file.target ?? ""}" }` })}], - component: React.lazy(async () => { + component: ${ + componentPath + ? `React.lazy(async () => { const mod = await import("${componentPath}") const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name return { default: mod.default || mod[exportName] } - }), + })` + : "null" + }, meta: ${JSON.stringify(item.meta)}, },` } @@ -94,7 +121,7 @@ async function buildRegistryJsonFile() { const files = item.files?.map((file) => { return { ...file, - path: `registry/${file.path}`, + path: `registry/new-york-v4/${file.path}`, } }) diff --git a/apps/www/public/r/styles/new-york-v4/accordion.json b/apps/www/public/r/styles/new-york-v4/accordion.json index f9c89847297..cb55e4e8748 100644 --- a/apps/www/public/r/styles/new-york-v4/accordion.json +++ b/apps/www/public/r/styles/new-york-v4/accordion.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/accordion.tsx", + "path": "registry/new-york-v4/ui/accordion.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDownIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Accordion({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction AccordionItem({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n \n \n \n )\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n
{children}
\n \n )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/alert-dialog.json b/apps/www/public/r/styles/new-york-v4/alert-dialog.json index 15b39769088..7f518652f24 100644 --- a/apps/www/public/r/styles/new-york-v4/alert-dialog.json +++ b/apps/www/public/r/styles/new-york-v4/alert-dialog.json @@ -10,8 +10,8 @@ ], "files": [ { - "path": "registry/ui/alert-dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/registry/ui/button\"\n\nfunction AlertDialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction AlertDialogTrigger({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogPortal({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogContent({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n )\n}\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogAction({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogCancel({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n}\n", + "path": "registry/new-york-v4/ui/alert-dialog.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/registry/new-york-v4/ui/button\"\n\nfunction AlertDialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction AlertDialogTrigger({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogPortal({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogContent({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n )\n}\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogAction({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AlertDialogCancel({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n}\n", "type": "registry:ui" } ] diff --git a/apps/www/public/r/styles/new-york-v4/alert.json b/apps/www/public/r/styles/new-york-v4/alert.json index 7c34d3fc3f7..9e9401a2919 100644 --- a/apps/www/public/r/styles/new-york-v4/alert.json +++ b/apps/www/public/r/styles/new-york-v4/alert.json @@ -4,7 +4,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/alert.tsx", + "path": "registry/new-york-v4/ui/alert.tsx", "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-background text-foreground\",\n destructive:\n \"border-destructive/50 text-destructive dark:text-destructive-foreground/80 dark:border-destructive [&>svg]:text-current dark:bg-destructive/50\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps) {\n return (\n \n )\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nexport { Alert, AlertTitle, AlertDescription }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/aspect-ratio.json b/apps/www/public/r/styles/new-york-v4/aspect-ratio.json index fbb9073df89..5d7e39d26a0 100644 --- a/apps/www/public/r/styles/new-york-v4/aspect-ratio.json +++ b/apps/www/public/r/styles/new-york-v4/aspect-ratio.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/aspect-ratio.tsx", + "path": "registry/new-york-v4/ui/aspect-ratio.tsx", "content": "\"use client\"\n\nimport * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\"\n\nfunction AspectRatio({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nexport { AspectRatio }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/avatar.json b/apps/www/public/r/styles/new-york-v4/avatar.json index 6cd404a5e82..ec90b1573e7 100644 --- a/apps/www/public/r/styles/new-york-v4/avatar.json +++ b/apps/www/public/r/styles/new-york-v4/avatar.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/avatar.tsx", + "path": "registry/new-york-v4/ui/avatar.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Avatar({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AvatarImage({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport { Avatar, AvatarImage, AvatarFallback }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/badge.json b/apps/www/public/r/styles/new-york-v4/badge.json index 5c94d707874..051a0dcb2ff 100644 --- a/apps/www/public/r/styles/new-york-v4/badge.json +++ b/apps/www/public/r/styles/new-york-v4/badge.json @@ -4,7 +4,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/badge.tsx", + "path": "registry/new-york-v4/ui/badge.tsx", "content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground shadow-sm [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground shadow-sm [a&]:hover:bg-destructive/90\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\"\n\n return (\n \n )\n}\n\nexport { Badge, badgeVariants }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/breadcrumb.json b/apps/www/public/r/styles/new-york-v4/breadcrumb.json index 20e24fec7c1..9558777aa91 100644 --- a/apps/www/public/r/styles/new-york-v4/breadcrumb.json +++ b/apps/www/public/r/styles/new-york-v4/breadcrumb.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/breadcrumb.tsx", + "path": "registry/new-york-v4/ui/breadcrumb.tsx", "content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<\"nav\">) {\n return
\n \n )\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<\"div\">) {\n const { carouselRef, orientation } = useCarousel()\n\n return (\n \n \n
\n )\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const { orientation } = useCarousel()\n\n return (\n \n )\n}\n\nfunction CarouselPrevious({\n className,\n variant = \"outline\",\n size = \"icon\",\n ...props\n}: React.ComponentProps) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n return (\n \n \n Previous slide\n \n )\n}\n\nfunction CarouselNext({\n className,\n variant = \"outline\",\n size = \"icon\",\n ...props\n}: React.ComponentProps) {\n const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n return (\n \n \n Next slide\n \n )\n}\n\nexport {\n type CarouselApi,\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselPrevious,\n CarouselNext,\n}\n", + "path": "registry/new-york-v4/ui/carousel.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport useEmblaCarousel, {\n type UseEmblaCarouselType,\n} from \"embla-carousel-react\"\nimport { ArrowLeft, ArrowRight } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\ntype CarouselProps = {\n opts?: CarouselOptions\n plugins?: CarouselPlugin\n orientation?: \"horizontal\" | \"vertical\"\n setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n carouselRef: ReturnType[0]\n api: ReturnType[1]\n scrollPrev: () => void\n scrollNext: () => void\n canScrollPrev: boolean\n canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext(null)\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext)\n\n if (!context) {\n throw new Error(\"useCarousel must be used within a \")\n }\n\n return context\n}\n\nfunction Carousel({\n orientation = \"horizontal\",\n opts,\n setApi,\n plugins,\n className,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n },\n plugins\n )\n const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n const onSelect = React.useCallback((api: CarouselApi) => {\n if (!api) return\n setCanScrollPrev(api.canScrollPrev())\n setCanScrollNext(api.canScrollNext())\n }, [])\n\n const scrollPrev = React.useCallback(() => {\n api?.scrollPrev()\n }, [api])\n\n const scrollNext = React.useCallback(() => {\n api?.scrollNext()\n }, [api])\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === \"ArrowLeft\") {\n event.preventDefault()\n scrollPrev()\n } else if (event.key === \"ArrowRight\") {\n event.preventDefault()\n scrollNext()\n }\n },\n [scrollPrev, scrollNext]\n )\n\n React.useEffect(() => {\n if (!api || !setApi) return\n setApi(api)\n }, [api, setApi])\n\n React.useEffect(() => {\n if (!api) return\n onSelect(api)\n api.on(\"reInit\", onSelect)\n api.on(\"select\", onSelect)\n\n return () => {\n api?.off(\"select\", onSelect)\n }\n }, [api, onSelect])\n\n return (\n \n \n {children}\n \n \n )\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<\"div\">) {\n const { carouselRef, orientation } = useCarousel()\n\n return (\n \n \n \n )\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const { orientation } = useCarousel()\n\n return (\n \n )\n}\n\nfunction CarouselPrevious({\n className,\n variant = \"outline\",\n size = \"icon\",\n ...props\n}: React.ComponentProps) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n return (\n \n \n Previous slide\n \n )\n}\n\nfunction CarouselNext({\n className,\n variant = \"outline\",\n size = \"icon\",\n ...props\n}: React.ComponentProps) {\n const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n return (\n \n \n Next slide\n \n )\n}\n\nexport {\n type CarouselApi,\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselPrevious,\n CarouselNext,\n}\n", "type": "registry:ui" } ] diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-axes.json b/apps/www/public/r/styles/new-york-v4/chart-area-axes.json index 49f2b020d9f..46b24f76075 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-axes.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-axes.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-axes.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"An area chart with axes\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaAxes() {\n return (\n \n \n Area Chart - Axes\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n \n } />\n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-axes.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"An area chart with axes\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaAxes() {\n return (\n \n \n Area Chart - Axes\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n \n } />\n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-default.json b/apps/www/public/r/styles/new-york-v4/chart-area-default.json index d277f5e6e8a..3fd13fa8f53 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-default.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-default.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-default.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A simple area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaDefault() {\n return (\n \n \n Area Chart\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-default.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A simple area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaDefault() {\n return (\n \n \n Area Chart\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-gradient.json b/apps/www/public/r/styles/new-york-v4/chart-area-gradient.json index 9dee4f41d85..a883b39b66d 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-gradient.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-gradient.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-gradient.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"An area chart with gradient fill\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaGradient() {\n return (\n \n \n Area Chart - Gradient\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n } />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-gradient.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"An area chart with gradient fill\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaGradient() {\n return (\n \n \n Area Chart - Gradient\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n } />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-icons.json b/apps/www/public/r/styles/new-york-v4/chart-area-icons.json index e9921fbc3cd..ce943df1f5c 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-icons.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-icons.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-icons.tsx", - "content": "\"use client\"\n\nimport { TrendingDown, TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"An area chart with icons\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: TrendingDown,\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n icon: TrendingUp,\n },\n} satisfies ChartConfig\n\nexport function ChartAreaIcons() {\n return (\n \n \n Area Chart - Icons\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n } />\n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-icons.tsx", + "content": "\"use client\"\n\nimport { TrendingDown, TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"An area chart with icons\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: TrendingDown,\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n icon: TrendingUp,\n },\n} satisfies ChartConfig\n\nexport function ChartAreaIcons() {\n return (\n \n \n Area Chart - Icons\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n } />\n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-interactive.json b/apps/www/public/r/styles/new-york-v4/chart-area-interactive.json index 7a42e29f8e3..161acbf4b76 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-interactive.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-interactive.json @@ -9,8 +9,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-interactive.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/ui/select\"\n\nexport const description = \"An interactive area chart\"\n\nconst chartData = [\n { date: \"2024-04-01\", desktop: 222, mobile: 150 },\n { date: \"2024-04-02\", desktop: 97, mobile: 180 },\n { date: \"2024-04-03\", desktop: 167, mobile: 120 },\n { date: \"2024-04-04\", desktop: 242, mobile: 260 },\n { date: \"2024-04-05\", desktop: 373, mobile: 290 },\n { date: \"2024-04-06\", desktop: 301, mobile: 340 },\n { date: \"2024-04-07\", desktop: 245, mobile: 180 },\n { date: \"2024-04-08\", desktop: 409, mobile: 320 },\n { date: \"2024-04-09\", desktop: 59, mobile: 110 },\n { date: \"2024-04-10\", desktop: 261, mobile: 190 },\n { date: \"2024-04-11\", desktop: 327, mobile: 350 },\n { date: \"2024-04-12\", desktop: 292, mobile: 210 },\n { date: \"2024-04-13\", desktop: 342, mobile: 380 },\n { date: \"2024-04-14\", desktop: 137, mobile: 220 },\n { date: \"2024-04-15\", desktop: 120, mobile: 170 },\n { date: \"2024-04-16\", desktop: 138, mobile: 190 },\n { date: \"2024-04-17\", desktop: 446, mobile: 360 },\n { date: \"2024-04-18\", desktop: 364, mobile: 410 },\n { date: \"2024-04-19\", desktop: 243, mobile: 180 },\n { date: \"2024-04-20\", desktop: 89, mobile: 150 },\n { date: \"2024-04-21\", desktop: 137, mobile: 200 },\n { date: \"2024-04-22\", desktop: 224, mobile: 170 },\n { date: \"2024-04-23\", desktop: 138, mobile: 230 },\n { date: \"2024-04-24\", desktop: 387, mobile: 290 },\n { date: \"2024-04-25\", desktop: 215, mobile: 250 },\n { date: \"2024-04-26\", desktop: 75, mobile: 130 },\n { date: \"2024-04-27\", desktop: 383, mobile: 420 },\n { date: \"2024-04-28\", desktop: 122, mobile: 180 },\n { date: \"2024-04-29\", desktop: 315, mobile: 240 },\n { date: \"2024-04-30\", desktop: 454, mobile: 380 },\n { date: \"2024-05-01\", desktop: 165, mobile: 220 },\n { date: \"2024-05-02\", desktop: 293, mobile: 310 },\n { date: \"2024-05-03\", desktop: 247, mobile: 190 },\n { date: \"2024-05-04\", desktop: 385, mobile: 420 },\n { date: \"2024-05-05\", desktop: 481, mobile: 390 },\n { date: \"2024-05-06\", desktop: 498, mobile: 520 },\n { date: \"2024-05-07\", desktop: 388, mobile: 300 },\n { date: \"2024-05-08\", desktop: 149, mobile: 210 },\n { date: \"2024-05-09\", desktop: 227, mobile: 180 },\n { date: \"2024-05-10\", desktop: 293, mobile: 330 },\n { date: \"2024-05-11\", desktop: 335, mobile: 270 },\n { date: \"2024-05-12\", desktop: 197, mobile: 240 },\n { date: \"2024-05-13\", desktop: 197, mobile: 160 },\n { date: \"2024-05-14\", desktop: 448, mobile: 490 },\n { date: \"2024-05-15\", desktop: 473, mobile: 380 },\n { date: \"2024-05-16\", desktop: 338, mobile: 400 },\n { date: \"2024-05-17\", desktop: 499, mobile: 420 },\n { date: \"2024-05-18\", desktop: 315, mobile: 350 },\n { date: \"2024-05-19\", desktop: 235, mobile: 180 },\n { date: \"2024-05-20\", desktop: 177, mobile: 230 },\n { date: \"2024-05-21\", desktop: 82, mobile: 140 },\n { date: \"2024-05-22\", desktop: 81, mobile: 120 },\n { date: \"2024-05-23\", desktop: 252, mobile: 290 },\n { date: \"2024-05-24\", desktop: 294, mobile: 220 },\n { date: \"2024-05-25\", desktop: 201, mobile: 250 },\n { date: \"2024-05-26\", desktop: 213, mobile: 170 },\n { date: \"2024-05-27\", desktop: 420, mobile: 460 },\n { date: \"2024-05-28\", desktop: 233, mobile: 190 },\n { date: \"2024-05-29\", desktop: 78, mobile: 130 },\n { date: \"2024-05-30\", desktop: 340, mobile: 280 },\n { date: \"2024-05-31\", desktop: 178, mobile: 230 },\n { date: \"2024-06-01\", desktop: 178, mobile: 200 },\n { date: \"2024-06-02\", desktop: 470, mobile: 410 },\n { date: \"2024-06-03\", desktop: 103, mobile: 160 },\n { date: \"2024-06-04\", desktop: 439, mobile: 380 },\n { date: \"2024-06-05\", desktop: 88, mobile: 140 },\n { date: \"2024-06-06\", desktop: 294, mobile: 250 },\n { date: \"2024-06-07\", desktop: 323, mobile: 370 },\n { date: \"2024-06-08\", desktop: 385, mobile: 320 },\n { date: \"2024-06-09\", desktop: 438, mobile: 480 },\n { date: \"2024-06-10\", desktop: 155, mobile: 200 },\n { date: \"2024-06-11\", desktop: 92, mobile: 150 },\n { date: \"2024-06-12\", desktop: 492, mobile: 420 },\n { date: \"2024-06-13\", desktop: 81, mobile: 130 },\n { date: \"2024-06-14\", desktop: 426, mobile: 380 },\n { date: \"2024-06-15\", desktop: 307, mobile: 350 },\n { date: \"2024-06-16\", desktop: 371, mobile: 310 },\n { date: \"2024-06-17\", desktop: 475, mobile: 520 },\n { date: \"2024-06-18\", desktop: 107, mobile: 170 },\n { date: \"2024-06-19\", desktop: 341, mobile: 290 },\n { date: \"2024-06-20\", desktop: 408, mobile: 450 },\n { date: \"2024-06-21\", desktop: 169, mobile: 210 },\n { date: \"2024-06-22\", desktop: 317, mobile: 270 },\n { date: \"2024-06-23\", desktop: 480, mobile: 530 },\n { date: \"2024-06-24\", desktop: 132, mobile: 180 },\n { date: \"2024-06-25\", desktop: 141, mobile: 190 },\n { date: \"2024-06-26\", desktop: 434, mobile: 380 },\n { date: \"2024-06-27\", desktop: 448, mobile: 490 },\n { date: \"2024-06-28\", desktop: 149, mobile: 200 },\n { date: \"2024-06-29\", desktop: 103, mobile: 160 },\n { date: \"2024-06-30\", desktop: 446, mobile: 400 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaInteractive() {\n const [timeRange, setTimeRange] = React.useState(\"90d\")\n\n const filteredData = chartData.filter((item) => {\n const date = new Date(item.date)\n const referenceDate = new Date(\"2024-06-30\")\n let daysToSubtract = 90\n if (timeRange === \"30d\") {\n daysToSubtract = 30\n } else if (timeRange === \"7d\") {\n daysToSubtract = 7\n }\n const startDate = new Date(referenceDate)\n startDate.setDate(startDate.getDate() - daysToSubtract)\n return date >= startDate\n })\n\n return (\n \n \n
\n Area Chart - Interactive\n \n Showing total visitors for the last 3 months\n \n
\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n const date = new Date(value)\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n />\n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n indicator=\"dot\"\n />\n }\n />\n \n \n } />\n \n \n \n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-interactive.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/new-york-v4/ui/select\"\n\nexport const description = \"An interactive area chart\"\n\nconst chartData = [\n { date: \"2024-04-01\", desktop: 222, mobile: 150 },\n { date: \"2024-04-02\", desktop: 97, mobile: 180 },\n { date: \"2024-04-03\", desktop: 167, mobile: 120 },\n { date: \"2024-04-04\", desktop: 242, mobile: 260 },\n { date: \"2024-04-05\", desktop: 373, mobile: 290 },\n { date: \"2024-04-06\", desktop: 301, mobile: 340 },\n { date: \"2024-04-07\", desktop: 245, mobile: 180 },\n { date: \"2024-04-08\", desktop: 409, mobile: 320 },\n { date: \"2024-04-09\", desktop: 59, mobile: 110 },\n { date: \"2024-04-10\", desktop: 261, mobile: 190 },\n { date: \"2024-04-11\", desktop: 327, mobile: 350 },\n { date: \"2024-04-12\", desktop: 292, mobile: 210 },\n { date: \"2024-04-13\", desktop: 342, mobile: 380 },\n { date: \"2024-04-14\", desktop: 137, mobile: 220 },\n { date: \"2024-04-15\", desktop: 120, mobile: 170 },\n { date: \"2024-04-16\", desktop: 138, mobile: 190 },\n { date: \"2024-04-17\", desktop: 446, mobile: 360 },\n { date: \"2024-04-18\", desktop: 364, mobile: 410 },\n { date: \"2024-04-19\", desktop: 243, mobile: 180 },\n { date: \"2024-04-20\", desktop: 89, mobile: 150 },\n { date: \"2024-04-21\", desktop: 137, mobile: 200 },\n { date: \"2024-04-22\", desktop: 224, mobile: 170 },\n { date: \"2024-04-23\", desktop: 138, mobile: 230 },\n { date: \"2024-04-24\", desktop: 387, mobile: 290 },\n { date: \"2024-04-25\", desktop: 215, mobile: 250 },\n { date: \"2024-04-26\", desktop: 75, mobile: 130 },\n { date: \"2024-04-27\", desktop: 383, mobile: 420 },\n { date: \"2024-04-28\", desktop: 122, mobile: 180 },\n { date: \"2024-04-29\", desktop: 315, mobile: 240 },\n { date: \"2024-04-30\", desktop: 454, mobile: 380 },\n { date: \"2024-05-01\", desktop: 165, mobile: 220 },\n { date: \"2024-05-02\", desktop: 293, mobile: 310 },\n { date: \"2024-05-03\", desktop: 247, mobile: 190 },\n { date: \"2024-05-04\", desktop: 385, mobile: 420 },\n { date: \"2024-05-05\", desktop: 481, mobile: 390 },\n { date: \"2024-05-06\", desktop: 498, mobile: 520 },\n { date: \"2024-05-07\", desktop: 388, mobile: 300 },\n { date: \"2024-05-08\", desktop: 149, mobile: 210 },\n { date: \"2024-05-09\", desktop: 227, mobile: 180 },\n { date: \"2024-05-10\", desktop: 293, mobile: 330 },\n { date: \"2024-05-11\", desktop: 335, mobile: 270 },\n { date: \"2024-05-12\", desktop: 197, mobile: 240 },\n { date: \"2024-05-13\", desktop: 197, mobile: 160 },\n { date: \"2024-05-14\", desktop: 448, mobile: 490 },\n { date: \"2024-05-15\", desktop: 473, mobile: 380 },\n { date: \"2024-05-16\", desktop: 338, mobile: 400 },\n { date: \"2024-05-17\", desktop: 499, mobile: 420 },\n { date: \"2024-05-18\", desktop: 315, mobile: 350 },\n { date: \"2024-05-19\", desktop: 235, mobile: 180 },\n { date: \"2024-05-20\", desktop: 177, mobile: 230 },\n { date: \"2024-05-21\", desktop: 82, mobile: 140 },\n { date: \"2024-05-22\", desktop: 81, mobile: 120 },\n { date: \"2024-05-23\", desktop: 252, mobile: 290 },\n { date: \"2024-05-24\", desktop: 294, mobile: 220 },\n { date: \"2024-05-25\", desktop: 201, mobile: 250 },\n { date: \"2024-05-26\", desktop: 213, mobile: 170 },\n { date: \"2024-05-27\", desktop: 420, mobile: 460 },\n { date: \"2024-05-28\", desktop: 233, mobile: 190 },\n { date: \"2024-05-29\", desktop: 78, mobile: 130 },\n { date: \"2024-05-30\", desktop: 340, mobile: 280 },\n { date: \"2024-05-31\", desktop: 178, mobile: 230 },\n { date: \"2024-06-01\", desktop: 178, mobile: 200 },\n { date: \"2024-06-02\", desktop: 470, mobile: 410 },\n { date: \"2024-06-03\", desktop: 103, mobile: 160 },\n { date: \"2024-06-04\", desktop: 439, mobile: 380 },\n { date: \"2024-06-05\", desktop: 88, mobile: 140 },\n { date: \"2024-06-06\", desktop: 294, mobile: 250 },\n { date: \"2024-06-07\", desktop: 323, mobile: 370 },\n { date: \"2024-06-08\", desktop: 385, mobile: 320 },\n { date: \"2024-06-09\", desktop: 438, mobile: 480 },\n { date: \"2024-06-10\", desktop: 155, mobile: 200 },\n { date: \"2024-06-11\", desktop: 92, mobile: 150 },\n { date: \"2024-06-12\", desktop: 492, mobile: 420 },\n { date: \"2024-06-13\", desktop: 81, mobile: 130 },\n { date: \"2024-06-14\", desktop: 426, mobile: 380 },\n { date: \"2024-06-15\", desktop: 307, mobile: 350 },\n { date: \"2024-06-16\", desktop: 371, mobile: 310 },\n { date: \"2024-06-17\", desktop: 475, mobile: 520 },\n { date: \"2024-06-18\", desktop: 107, mobile: 170 },\n { date: \"2024-06-19\", desktop: 341, mobile: 290 },\n { date: \"2024-06-20\", desktop: 408, mobile: 450 },\n { date: \"2024-06-21\", desktop: 169, mobile: 210 },\n { date: \"2024-06-22\", desktop: 317, mobile: 270 },\n { date: \"2024-06-23\", desktop: 480, mobile: 530 },\n { date: \"2024-06-24\", desktop: 132, mobile: 180 },\n { date: \"2024-06-25\", desktop: 141, mobile: 190 },\n { date: \"2024-06-26\", desktop: 434, mobile: 380 },\n { date: \"2024-06-27\", desktop: 448, mobile: 490 },\n { date: \"2024-06-28\", desktop: 149, mobile: 200 },\n { date: \"2024-06-29\", desktop: 103, mobile: 160 },\n { date: \"2024-06-30\", desktop: 446, mobile: 400 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaInteractive() {\n const [timeRange, setTimeRange] = React.useState(\"90d\")\n\n const filteredData = chartData.filter((item) => {\n const date = new Date(item.date)\n const referenceDate = new Date(\"2024-06-30\")\n let daysToSubtract = 90\n if (timeRange === \"30d\") {\n daysToSubtract = 30\n } else if (timeRange === \"7d\") {\n daysToSubtract = 7\n }\n const startDate = new Date(referenceDate)\n startDate.setDate(startDate.getDate() - daysToSubtract)\n return date >= startDate\n })\n\n return (\n \n \n
\n Area Chart - Interactive\n \n Showing total visitors for the last 3 months\n \n
\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n const date = new Date(value)\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n />\n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n indicator=\"dot\"\n />\n }\n />\n \n \n } />\n \n \n \n
\n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-legend.json b/apps/www/public/r/styles/new-york-v4/chart-area-legend.json index c2310104604..93298a47ba3 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-legend.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-legend.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-legend.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"An area chart with a legend\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaLegend() {\n return (\n \n \n Area Chart - Legend\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n } />\n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-legend.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"An area chart with a legend\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaLegend() {\n return (\n \n \n Area Chart - Legend\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n } />\n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-linear.json b/apps/www/public/r/styles/new-york-v4/chart-area-linear.json index c6b200cf95c..ae1ab901eb7 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-linear.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-linear.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-linear.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A linear area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaLinear() {\n return (\n \n \n Area Chart - Linear\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-linear.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A linear area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaLinear() {\n return (\n \n \n Area Chart - Linear\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-stacked-expand.json b/apps/www/public/r/styles/new-york-v4/chart-area-stacked-expand.json index a15885a77b8..0881f0bcd6c 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-stacked-expand.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-stacked-expand.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-stacked-expand.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked area chart with expand stacking\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80, other: 45 },\n { month: \"February\", desktop: 305, mobile: 200, other: 100 },\n { month: \"March\", desktop: 237, mobile: 120, other: 150 },\n { month: \"April\", desktop: 73, mobile: 190, other: 50 },\n { month: \"May\", desktop: 209, mobile: 130, other: 100 },\n { month: \"June\", desktop: 214, mobile: 140, other: 160 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-3)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaStackedExpand() {\n return (\n \n \n Area Chart - Stacked Expanded\n \n Showing total visitors for the last 6months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-stacked-expand.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked area chart with expand stacking\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80, other: 45 },\n { month: \"February\", desktop: 305, mobile: 200, other: 100 },\n { month: \"March\", desktop: 237, mobile: 120, other: 150 },\n { month: \"April\", desktop: 73, mobile: 190, other: 50 },\n { month: \"May\", desktop: 209, mobile: 130, other: 100 },\n { month: \"June\", desktop: 214, mobile: 140, other: 160 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-3)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaStackedExpand() {\n return (\n \n \n Area Chart - Stacked Expanded\n \n Showing total visitors for the last 6months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-stacked.json b/apps/www/public/r/styles/new-york-v4/chart-area-stacked.json index baefae7ee20..958bb0fcba2 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-stacked.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-stacked.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-stacked.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaStacked() {\n return (\n \n \n Area Chart - Stacked\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-stacked.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartAreaStacked() {\n return (\n \n \n Area Chart - Stacked\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-area-step.json b/apps/www/public/r/styles/new-york-v4/chart-area-step.json index c0a57f7b8f5..ec978d8eeac 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-area-step.json +++ b/apps/www/public/r/styles/new-york-v4/chart-area-step.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-area-step.tsx", - "content": "\"use client\"\n\nimport { Activity, TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A step area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: Activity,\n },\n} satisfies ChartConfig\n\nexport function ChartAreaStep() {\n return (\n \n \n Area Chart - Step\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-area-step.tsx", + "content": "\"use client\"\n\nimport { Activity, TrendingUp } from \"lucide-react\"\nimport { Area, AreaChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A step area chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: Activity,\n },\n} satisfies ChartConfig\n\nexport function ChartAreaStep() {\n return (\n \n \n Area Chart - Step\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-active.json b/apps/www/public/r/styles/new-york-v4/chart-bar-active.json index ea6e9456b07..e0816aec316 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-active.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-active.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-active.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, Rectangle, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A bar chart with an active bar\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 187, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 275, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarActive() {\n return (\n \n \n Bar Chart - Active\n January - June 2024\n \n \n \n \n \n \n chartConfig[value as keyof typeof chartConfig]?.label\n }\n />\n }\n />\n {\n return (\n \n )\n }}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-active.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, Rectangle, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bar chart with an active bar\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 187, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 275, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarActive() {\n return (\n \n \n Bar Chart - Active\n January - June 2024\n \n \n \n \n \n \n chartConfig[value as keyof typeof chartConfig]?.label\n }\n />\n }\n />\n {\n return (\n \n )\n }}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-default.json b/apps/www/public/r/styles/new-york-v4/chart-bar-default.json index e862a51b746..a7ef669ffed 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-default.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-default.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-default.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A bar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarDefault() {\n return (\n \n \n Bar Chart\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-default.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarDefault() {\n return (\n \n \n Bar Chart\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-horizontal.json b/apps/www/public/r/styles/new-york-v4/chart-bar-horizontal.json index 19f3e426965..27a5bfb0aa1 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-horizontal.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-horizontal.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-horizontal.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A horizontal bar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarHorizontal() {\n return (\n \n \n Bar Chart - Horizontal\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-horizontal.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A horizontal bar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarHorizontal() {\n return (\n \n \n Bar Chart - Horizontal\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-interactive.json b/apps/www/public/r/styles/new-york-v4/chart-bar-interactive.json index 6461eff2bb6..7bfead85ef3 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-interactive.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-interactive.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-interactive.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"An interactive bar chart\"\n\nconst chartData = [\n { date: \"2024-04-01\", desktop: 222, mobile: 150 },\n { date: \"2024-04-02\", desktop: 97, mobile: 180 },\n { date: \"2024-04-03\", desktop: 167, mobile: 120 },\n { date: \"2024-04-04\", desktop: 242, mobile: 260 },\n { date: \"2024-04-05\", desktop: 373, mobile: 290 },\n { date: \"2024-04-06\", desktop: 301, mobile: 340 },\n { date: \"2024-04-07\", desktop: 245, mobile: 180 },\n { date: \"2024-04-08\", desktop: 409, mobile: 320 },\n { date: \"2024-04-09\", desktop: 59, mobile: 110 },\n { date: \"2024-04-10\", desktop: 261, mobile: 190 },\n { date: \"2024-04-11\", desktop: 327, mobile: 350 },\n { date: \"2024-04-12\", desktop: 292, mobile: 210 },\n { date: \"2024-04-13\", desktop: 342, mobile: 380 },\n { date: \"2024-04-14\", desktop: 137, mobile: 220 },\n { date: \"2024-04-15\", desktop: 120, mobile: 170 },\n { date: \"2024-04-16\", desktop: 138, mobile: 190 },\n { date: \"2024-04-17\", desktop: 446, mobile: 360 },\n { date: \"2024-04-18\", desktop: 364, mobile: 410 },\n { date: \"2024-04-19\", desktop: 243, mobile: 180 },\n { date: \"2024-04-20\", desktop: 89, mobile: 150 },\n { date: \"2024-04-21\", desktop: 137, mobile: 200 },\n { date: \"2024-04-22\", desktop: 224, mobile: 170 },\n { date: \"2024-04-23\", desktop: 138, mobile: 230 },\n { date: \"2024-04-24\", desktop: 387, mobile: 290 },\n { date: \"2024-04-25\", desktop: 215, mobile: 250 },\n { date: \"2024-04-26\", desktop: 75, mobile: 130 },\n { date: \"2024-04-27\", desktop: 383, mobile: 420 },\n { date: \"2024-04-28\", desktop: 122, mobile: 180 },\n { date: \"2024-04-29\", desktop: 315, mobile: 240 },\n { date: \"2024-04-30\", desktop: 454, mobile: 380 },\n { date: \"2024-05-01\", desktop: 165, mobile: 220 },\n { date: \"2024-05-02\", desktop: 293, mobile: 310 },\n { date: \"2024-05-03\", desktop: 247, mobile: 190 },\n { date: \"2024-05-04\", desktop: 385, mobile: 420 },\n { date: \"2024-05-05\", desktop: 481, mobile: 390 },\n { date: \"2024-05-06\", desktop: 498, mobile: 520 },\n { date: \"2024-05-07\", desktop: 388, mobile: 300 },\n { date: \"2024-05-08\", desktop: 149, mobile: 210 },\n { date: \"2024-05-09\", desktop: 227, mobile: 180 },\n { date: \"2024-05-10\", desktop: 293, mobile: 330 },\n { date: \"2024-05-11\", desktop: 335, mobile: 270 },\n { date: \"2024-05-12\", desktop: 197, mobile: 240 },\n { date: \"2024-05-13\", desktop: 197, mobile: 160 },\n { date: \"2024-05-14\", desktop: 448, mobile: 490 },\n { date: \"2024-05-15\", desktop: 473, mobile: 380 },\n { date: \"2024-05-16\", desktop: 338, mobile: 400 },\n { date: \"2024-05-17\", desktop: 499, mobile: 420 },\n { date: \"2024-05-18\", desktop: 315, mobile: 350 },\n { date: \"2024-05-19\", desktop: 235, mobile: 180 },\n { date: \"2024-05-20\", desktop: 177, mobile: 230 },\n { date: \"2024-05-21\", desktop: 82, mobile: 140 },\n { date: \"2024-05-22\", desktop: 81, mobile: 120 },\n { date: \"2024-05-23\", desktop: 252, mobile: 290 },\n { date: \"2024-05-24\", desktop: 294, mobile: 220 },\n { date: \"2024-05-25\", desktop: 201, mobile: 250 },\n { date: \"2024-05-26\", desktop: 213, mobile: 170 },\n { date: \"2024-05-27\", desktop: 420, mobile: 460 },\n { date: \"2024-05-28\", desktop: 233, mobile: 190 },\n { date: \"2024-05-29\", desktop: 78, mobile: 130 },\n { date: \"2024-05-30\", desktop: 340, mobile: 280 },\n { date: \"2024-05-31\", desktop: 178, mobile: 230 },\n { date: \"2024-06-01\", desktop: 178, mobile: 200 },\n { date: \"2024-06-02\", desktop: 470, mobile: 410 },\n { date: \"2024-06-03\", desktop: 103, mobile: 160 },\n { date: \"2024-06-04\", desktop: 439, mobile: 380 },\n { date: \"2024-06-05\", desktop: 88, mobile: 140 },\n { date: \"2024-06-06\", desktop: 294, mobile: 250 },\n { date: \"2024-06-07\", desktop: 323, mobile: 370 },\n { date: \"2024-06-08\", desktop: 385, mobile: 320 },\n { date: \"2024-06-09\", desktop: 438, mobile: 480 },\n { date: \"2024-06-10\", desktop: 155, mobile: 200 },\n { date: \"2024-06-11\", desktop: 92, mobile: 150 },\n { date: \"2024-06-12\", desktop: 492, mobile: 420 },\n { date: \"2024-06-13\", desktop: 81, mobile: 130 },\n { date: \"2024-06-14\", desktop: 426, mobile: 380 },\n { date: \"2024-06-15\", desktop: 307, mobile: 350 },\n { date: \"2024-06-16\", desktop: 371, mobile: 310 },\n { date: \"2024-06-17\", desktop: 475, mobile: 520 },\n { date: \"2024-06-18\", desktop: 107, mobile: 170 },\n { date: \"2024-06-19\", desktop: 341, mobile: 290 },\n { date: \"2024-06-20\", desktop: 408, mobile: 450 },\n { date: \"2024-06-21\", desktop: 169, mobile: 210 },\n { date: \"2024-06-22\", desktop: 317, mobile: 270 },\n { date: \"2024-06-23\", desktop: 480, mobile: 530 },\n { date: \"2024-06-24\", desktop: 132, mobile: 180 },\n { date: \"2024-06-25\", desktop: 141, mobile: 190 },\n { date: \"2024-06-26\", desktop: 434, mobile: 380 },\n { date: \"2024-06-27\", desktop: 448, mobile: 490 },\n { date: \"2024-06-28\", desktop: 149, mobile: 200 },\n { date: \"2024-06-29\", desktop: 103, mobile: 160 },\n { date: \"2024-06-30\", desktop: 446, mobile: 400 },\n]\n\nconst chartConfig = {\n views: {\n label: \"Page Views\",\n },\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarInteractive() {\n const [activeChart, setActiveChart] =\n React.useState(\"desktop\")\n\n const total = React.useMemo(\n () => ({\n desktop: chartData.reduce((acc, curr) => acc + curr.desktop, 0),\n mobile: chartData.reduce((acc, curr) => acc + curr.mobile, 0),\n }),\n []\n )\n\n return (\n \n \n
\n Bar Chart - Interactive\n \n Showing total visitors for the last 3 months\n \n
\n
\n {[\"desktop\", \"mobile\"].map((key) => {\n const chart = key as keyof typeof chartConfig\n return (\n setActiveChart(chart)}\n >\n \n {chartConfig[chart].label}\n \n \n {total[key as keyof typeof total].toLocaleString()}\n \n \n )\n })}\n
\n
\n \n \n \n \n {\n const date = new Date(value)\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n />\n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n })\n }}\n />\n }\n />\n \n \n \n \n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-interactive.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"An interactive bar chart\"\n\nconst chartData = [\n { date: \"2024-04-01\", desktop: 222, mobile: 150 },\n { date: \"2024-04-02\", desktop: 97, mobile: 180 },\n { date: \"2024-04-03\", desktop: 167, mobile: 120 },\n { date: \"2024-04-04\", desktop: 242, mobile: 260 },\n { date: \"2024-04-05\", desktop: 373, mobile: 290 },\n { date: \"2024-04-06\", desktop: 301, mobile: 340 },\n { date: \"2024-04-07\", desktop: 245, mobile: 180 },\n { date: \"2024-04-08\", desktop: 409, mobile: 320 },\n { date: \"2024-04-09\", desktop: 59, mobile: 110 },\n { date: \"2024-04-10\", desktop: 261, mobile: 190 },\n { date: \"2024-04-11\", desktop: 327, mobile: 350 },\n { date: \"2024-04-12\", desktop: 292, mobile: 210 },\n { date: \"2024-04-13\", desktop: 342, mobile: 380 },\n { date: \"2024-04-14\", desktop: 137, mobile: 220 },\n { date: \"2024-04-15\", desktop: 120, mobile: 170 },\n { date: \"2024-04-16\", desktop: 138, mobile: 190 },\n { date: \"2024-04-17\", desktop: 446, mobile: 360 },\n { date: \"2024-04-18\", desktop: 364, mobile: 410 },\n { date: \"2024-04-19\", desktop: 243, mobile: 180 },\n { date: \"2024-04-20\", desktop: 89, mobile: 150 },\n { date: \"2024-04-21\", desktop: 137, mobile: 200 },\n { date: \"2024-04-22\", desktop: 224, mobile: 170 },\n { date: \"2024-04-23\", desktop: 138, mobile: 230 },\n { date: \"2024-04-24\", desktop: 387, mobile: 290 },\n { date: \"2024-04-25\", desktop: 215, mobile: 250 },\n { date: \"2024-04-26\", desktop: 75, mobile: 130 },\n { date: \"2024-04-27\", desktop: 383, mobile: 420 },\n { date: \"2024-04-28\", desktop: 122, mobile: 180 },\n { date: \"2024-04-29\", desktop: 315, mobile: 240 },\n { date: \"2024-04-30\", desktop: 454, mobile: 380 },\n { date: \"2024-05-01\", desktop: 165, mobile: 220 },\n { date: \"2024-05-02\", desktop: 293, mobile: 310 },\n { date: \"2024-05-03\", desktop: 247, mobile: 190 },\n { date: \"2024-05-04\", desktop: 385, mobile: 420 },\n { date: \"2024-05-05\", desktop: 481, mobile: 390 },\n { date: \"2024-05-06\", desktop: 498, mobile: 520 },\n { date: \"2024-05-07\", desktop: 388, mobile: 300 },\n { date: \"2024-05-08\", desktop: 149, mobile: 210 },\n { date: \"2024-05-09\", desktop: 227, mobile: 180 },\n { date: \"2024-05-10\", desktop: 293, mobile: 330 },\n { date: \"2024-05-11\", desktop: 335, mobile: 270 },\n { date: \"2024-05-12\", desktop: 197, mobile: 240 },\n { date: \"2024-05-13\", desktop: 197, mobile: 160 },\n { date: \"2024-05-14\", desktop: 448, mobile: 490 },\n { date: \"2024-05-15\", desktop: 473, mobile: 380 },\n { date: \"2024-05-16\", desktop: 338, mobile: 400 },\n { date: \"2024-05-17\", desktop: 499, mobile: 420 },\n { date: \"2024-05-18\", desktop: 315, mobile: 350 },\n { date: \"2024-05-19\", desktop: 235, mobile: 180 },\n { date: \"2024-05-20\", desktop: 177, mobile: 230 },\n { date: \"2024-05-21\", desktop: 82, mobile: 140 },\n { date: \"2024-05-22\", desktop: 81, mobile: 120 },\n { date: \"2024-05-23\", desktop: 252, mobile: 290 },\n { date: \"2024-05-24\", desktop: 294, mobile: 220 },\n { date: \"2024-05-25\", desktop: 201, mobile: 250 },\n { date: \"2024-05-26\", desktop: 213, mobile: 170 },\n { date: \"2024-05-27\", desktop: 420, mobile: 460 },\n { date: \"2024-05-28\", desktop: 233, mobile: 190 },\n { date: \"2024-05-29\", desktop: 78, mobile: 130 },\n { date: \"2024-05-30\", desktop: 340, mobile: 280 },\n { date: \"2024-05-31\", desktop: 178, mobile: 230 },\n { date: \"2024-06-01\", desktop: 178, mobile: 200 },\n { date: \"2024-06-02\", desktop: 470, mobile: 410 },\n { date: \"2024-06-03\", desktop: 103, mobile: 160 },\n { date: \"2024-06-04\", desktop: 439, mobile: 380 },\n { date: \"2024-06-05\", desktop: 88, mobile: 140 },\n { date: \"2024-06-06\", desktop: 294, mobile: 250 },\n { date: \"2024-06-07\", desktop: 323, mobile: 370 },\n { date: \"2024-06-08\", desktop: 385, mobile: 320 },\n { date: \"2024-06-09\", desktop: 438, mobile: 480 },\n { date: \"2024-06-10\", desktop: 155, mobile: 200 },\n { date: \"2024-06-11\", desktop: 92, mobile: 150 },\n { date: \"2024-06-12\", desktop: 492, mobile: 420 },\n { date: \"2024-06-13\", desktop: 81, mobile: 130 },\n { date: \"2024-06-14\", desktop: 426, mobile: 380 },\n { date: \"2024-06-15\", desktop: 307, mobile: 350 },\n { date: \"2024-06-16\", desktop: 371, mobile: 310 },\n { date: \"2024-06-17\", desktop: 475, mobile: 520 },\n { date: \"2024-06-18\", desktop: 107, mobile: 170 },\n { date: \"2024-06-19\", desktop: 341, mobile: 290 },\n { date: \"2024-06-20\", desktop: 408, mobile: 450 },\n { date: \"2024-06-21\", desktop: 169, mobile: 210 },\n { date: \"2024-06-22\", desktop: 317, mobile: 270 },\n { date: \"2024-06-23\", desktop: 480, mobile: 530 },\n { date: \"2024-06-24\", desktop: 132, mobile: 180 },\n { date: \"2024-06-25\", desktop: 141, mobile: 190 },\n { date: \"2024-06-26\", desktop: 434, mobile: 380 },\n { date: \"2024-06-27\", desktop: 448, mobile: 490 },\n { date: \"2024-06-28\", desktop: 149, mobile: 200 },\n { date: \"2024-06-29\", desktop: 103, mobile: 160 },\n { date: \"2024-06-30\", desktop: 446, mobile: 400 },\n]\n\nconst chartConfig = {\n views: {\n label: \"Page Views\",\n },\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarInteractive() {\n const [activeChart, setActiveChart] =\n React.useState(\"desktop\")\n\n const total = React.useMemo(\n () => ({\n desktop: chartData.reduce((acc, curr) => acc + curr.desktop, 0),\n mobile: chartData.reduce((acc, curr) => acc + curr.mobile, 0),\n }),\n []\n )\n\n return (\n \n \n
\n Bar Chart - Interactive\n \n Showing total visitors for the last 3 months\n \n
\n
\n {[\"desktop\", \"mobile\"].map((key) => {\n const chart = key as keyof typeof chartConfig\n return (\n setActiveChart(chart)}\n >\n \n {chartConfig[chart].label}\n \n \n {total[key as keyof typeof total].toLocaleString()}\n \n \n )\n })}\n
\n
\n \n \n \n \n {\n const date = new Date(value)\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n />\n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n })\n }}\n />\n }\n />\n \n \n \n \n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-label-custom.json b/apps/www/public/r/styles/new-york-v4/chart-bar-label-custom.json index daa5d27a2c5..ecbef376ab2 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-label-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-label-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-label-custom.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, LabelList, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A bar chart with a custom label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n label: {\n color: \"var(--background)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarLabelCustom() {\n return (\n \n \n Bar Chart - Custom Label\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n hide\n />\n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-label-custom.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, LabelList, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bar chart with a custom label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n label: {\n color: \"var(--background)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarLabelCustom() {\n return (\n \n \n Bar Chart - Custom Label\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n hide\n />\n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-label.json b/apps/www/public/r/styles/new-york-v4/chart-bar-label.json index c3b777310aa..f6c790f94b9 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-label.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-label.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-label.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, LabelList, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A bar chart with a label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarLabel() {\n return (\n \n \n Bar Chart - Label\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-label.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, LabelList, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bar chart with a label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarLabel() {\n return (\n \n \n Bar Chart - Label\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-mixed.json b/apps/www/public/r/styles/new-york-v4/chart-bar-mixed.json index 6ab9caff8b3..f2dfa0e46de 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-mixed.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-mixed.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-mixed.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A mixed bar chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarMixed() {\n return (\n \n \n Bar Chart - Mixed\n January - June 2024\n \n \n \n \n \n chartConfig[value as keyof typeof chartConfig]?.label\n }\n />\n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-mixed.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A mixed bar chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarMixed() {\n return (\n \n \n Bar Chart - Mixed\n January - June 2024\n \n \n \n \n \n chartConfig[value as keyof typeof chartConfig]?.label\n }\n />\n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-multiple.json b/apps/www/public/r/styles/new-york-v4/chart-bar-multiple.json index 014091357bd..f0774b35e5c 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-multiple.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-multiple.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-multiple.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A multiple bar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarMultiple() {\n return (\n \n \n Bar Chart - Multiple\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-multiple.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A multiple bar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarMultiple() {\n return (\n \n \n Bar Chart - Multiple\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-negative.json b/apps/www/public/r/styles/new-york-v4/chart-bar-negative.json index 0713138bf94..ca76ad01ef5 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-negative.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-negative.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-negative.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, Cell, LabelList } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A bar chart with negative values\"\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 205 },\n { month: \"March\", visitors: -207 },\n { month: \"April\", visitors: 173 },\n { month: \"May\", visitors: -209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarNegative() {\n return (\n \n \n Bar Chart - Negative\n January - June 2024\n \n \n \n \n \n }\n />\n \n \n {chartData.map((item) => (\n 0 ? \"var(--chart-1)\" : \"var(--chart-2)\"}\n />\n ))}\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-negative.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, Cell, LabelList } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bar chart with negative values\"\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 205 },\n { month: \"March\", visitors: -207 },\n { month: \"April\", visitors: 173 },\n { month: \"May\", visitors: -209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarNegative() {\n return (\n \n \n Bar Chart - Negative\n January - June 2024\n \n \n \n \n \n }\n />\n \n \n {chartData.map((item) => (\n 0 ? \"var(--chart-1)\" : \"var(--chart-2)\"}\n />\n ))}\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-bar-stacked.json b/apps/www/public/r/styles/new-york-v4/chart-bar-stacked.json index 81461b8008a..e05119bf803 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-bar-stacked.json +++ b/apps/www/public/r/styles/new-york-v4/chart-bar-stacked.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-bar-stacked.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarStacked() {\n return (\n \n \n Bar Chart - Stacked + Legend\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n } />\n } />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-bar-stacked.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Bar, BarChart, CartesianGrid, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartBarStacked() {\n return (\n \n \n Bar Chart - Stacked + Legend\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n } />\n } />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-default.json b/apps/www/public/r/styles/new-york-v4/chart-line-default.json index fe133feff55..61851b481a7 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-default.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-default.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-default.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDefault() {\n return (\n \n \n Line Chart\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-default.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDefault() {\n return (\n \n \n Line Chart\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-dots-colors.json b/apps/www/public/r/styles/new-york-v4/chart-line-dots-colors.json index fe69b1cfb32..1079c6f20e7 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-dots-colors.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-dots-colors.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-dots-colors.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Dot, Line, LineChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart with dots and colors\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-2)\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDotsColors() {\n return (\n \n \n Line Chart - Dots Colors\n January - June 2024\n \n \n \n \n \n \n }\n />\n {\n return (\n \n )\n }}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-dots-colors.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Dot, Line, LineChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart with dots and colors\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-2)\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDotsColors() {\n return (\n \n \n Line Chart - Dots Colors\n January - June 2024\n \n \n \n \n \n \n }\n />\n {\n return (\n \n )\n }}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-dots-custom.json b/apps/www/public/r/styles/new-york-v4/chart-line-dots-custom.json index 133c2dfe4c4..c4344b35351 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-dots-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-dots-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-dots-custom.tsx", - "content": "\"use client\"\n\nimport { GitCommitVertical, TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart with custom dots\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDotsCustom() {\n return (\n \n \n Line Chart - Custom Dots\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n {\n const r = 24\n return (\n \n )\n }}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-dots-custom.tsx", + "content": "\"use client\"\n\nimport { GitCommitVertical, TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart with custom dots\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDotsCustom() {\n return (\n \n \n Line Chart - Custom Dots\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n {\n const r = 24\n return (\n \n )\n }}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-dots.json b/apps/www/public/r/styles/new-york-v4/chart-line-dots.json index b661cc02c20..5a394829c62 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-dots.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-dots.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-dots.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart with dots\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDots() {\n return (\n \n \n Line Chart - Dots\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-dots.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart with dots\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineDots() {\n return (\n \n \n Line Chart - Dots\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-interactive.json b/apps/www/public/r/styles/new-york-v4/chart-line-interactive.json index 4259cb476dc..a8a1edd2498 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-interactive.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-interactive.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-interactive.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"An interactive line chart\"\n\nconst chartData = [\n { date: \"2024-04-01\", desktop: 222, mobile: 150 },\n { date: \"2024-04-02\", desktop: 97, mobile: 180 },\n { date: \"2024-04-03\", desktop: 167, mobile: 120 },\n { date: \"2024-04-04\", desktop: 242, mobile: 260 },\n { date: \"2024-04-05\", desktop: 373, mobile: 290 },\n { date: \"2024-04-06\", desktop: 301, mobile: 340 },\n { date: \"2024-04-07\", desktop: 245, mobile: 180 },\n { date: \"2024-04-08\", desktop: 409, mobile: 320 },\n { date: \"2024-04-09\", desktop: 59, mobile: 110 },\n { date: \"2024-04-10\", desktop: 261, mobile: 190 },\n { date: \"2024-04-11\", desktop: 327, mobile: 350 },\n { date: \"2024-04-12\", desktop: 292, mobile: 210 },\n { date: \"2024-04-13\", desktop: 342, mobile: 380 },\n { date: \"2024-04-14\", desktop: 137, mobile: 220 },\n { date: \"2024-04-15\", desktop: 120, mobile: 170 },\n { date: \"2024-04-16\", desktop: 138, mobile: 190 },\n { date: \"2024-04-17\", desktop: 446, mobile: 360 },\n { date: \"2024-04-18\", desktop: 364, mobile: 410 },\n { date: \"2024-04-19\", desktop: 243, mobile: 180 },\n { date: \"2024-04-20\", desktop: 89, mobile: 150 },\n { date: \"2024-04-21\", desktop: 137, mobile: 200 },\n { date: \"2024-04-22\", desktop: 224, mobile: 170 },\n { date: \"2024-04-23\", desktop: 138, mobile: 230 },\n { date: \"2024-04-24\", desktop: 387, mobile: 290 },\n { date: \"2024-04-25\", desktop: 215, mobile: 250 },\n { date: \"2024-04-26\", desktop: 75, mobile: 130 },\n { date: \"2024-04-27\", desktop: 383, mobile: 420 },\n { date: \"2024-04-28\", desktop: 122, mobile: 180 },\n { date: \"2024-04-29\", desktop: 315, mobile: 240 },\n { date: \"2024-04-30\", desktop: 454, mobile: 380 },\n { date: \"2024-05-01\", desktop: 165, mobile: 220 },\n { date: \"2024-05-02\", desktop: 293, mobile: 310 },\n { date: \"2024-05-03\", desktop: 247, mobile: 190 },\n { date: \"2024-05-04\", desktop: 385, mobile: 420 },\n { date: \"2024-05-05\", desktop: 481, mobile: 390 },\n { date: \"2024-05-06\", desktop: 498, mobile: 520 },\n { date: \"2024-05-07\", desktop: 388, mobile: 300 },\n { date: \"2024-05-08\", desktop: 149, mobile: 210 },\n { date: \"2024-05-09\", desktop: 227, mobile: 180 },\n { date: \"2024-05-10\", desktop: 293, mobile: 330 },\n { date: \"2024-05-11\", desktop: 335, mobile: 270 },\n { date: \"2024-05-12\", desktop: 197, mobile: 240 },\n { date: \"2024-05-13\", desktop: 197, mobile: 160 },\n { date: \"2024-05-14\", desktop: 448, mobile: 490 },\n { date: \"2024-05-15\", desktop: 473, mobile: 380 },\n { date: \"2024-05-16\", desktop: 338, mobile: 400 },\n { date: \"2024-05-17\", desktop: 499, mobile: 420 },\n { date: \"2024-05-18\", desktop: 315, mobile: 350 },\n { date: \"2024-05-19\", desktop: 235, mobile: 180 },\n { date: \"2024-05-20\", desktop: 177, mobile: 230 },\n { date: \"2024-05-21\", desktop: 82, mobile: 140 },\n { date: \"2024-05-22\", desktop: 81, mobile: 120 },\n { date: \"2024-05-23\", desktop: 252, mobile: 290 },\n { date: \"2024-05-24\", desktop: 294, mobile: 220 },\n { date: \"2024-05-25\", desktop: 201, mobile: 250 },\n { date: \"2024-05-26\", desktop: 213, mobile: 170 },\n { date: \"2024-05-27\", desktop: 420, mobile: 460 },\n { date: \"2024-05-28\", desktop: 233, mobile: 190 },\n { date: \"2024-05-29\", desktop: 78, mobile: 130 },\n { date: \"2024-05-30\", desktop: 340, mobile: 280 },\n { date: \"2024-05-31\", desktop: 178, mobile: 230 },\n { date: \"2024-06-01\", desktop: 178, mobile: 200 },\n { date: \"2024-06-02\", desktop: 470, mobile: 410 },\n { date: \"2024-06-03\", desktop: 103, mobile: 160 },\n { date: \"2024-06-04\", desktop: 439, mobile: 380 },\n { date: \"2024-06-05\", desktop: 88, mobile: 140 },\n { date: \"2024-06-06\", desktop: 294, mobile: 250 },\n { date: \"2024-06-07\", desktop: 323, mobile: 370 },\n { date: \"2024-06-08\", desktop: 385, mobile: 320 },\n { date: \"2024-06-09\", desktop: 438, mobile: 480 },\n { date: \"2024-06-10\", desktop: 155, mobile: 200 },\n { date: \"2024-06-11\", desktop: 92, mobile: 150 },\n { date: \"2024-06-12\", desktop: 492, mobile: 420 },\n { date: \"2024-06-13\", desktop: 81, mobile: 130 },\n { date: \"2024-06-14\", desktop: 426, mobile: 380 },\n { date: \"2024-06-15\", desktop: 307, mobile: 350 },\n { date: \"2024-06-16\", desktop: 371, mobile: 310 },\n { date: \"2024-06-17\", desktop: 475, mobile: 520 },\n { date: \"2024-06-18\", desktop: 107, mobile: 170 },\n { date: \"2024-06-19\", desktop: 341, mobile: 290 },\n { date: \"2024-06-20\", desktop: 408, mobile: 450 },\n { date: \"2024-06-21\", desktop: 169, mobile: 210 },\n { date: \"2024-06-22\", desktop: 317, mobile: 270 },\n { date: \"2024-06-23\", desktop: 480, mobile: 530 },\n { date: \"2024-06-24\", desktop: 132, mobile: 180 },\n { date: \"2024-06-25\", desktop: 141, mobile: 190 },\n { date: \"2024-06-26\", desktop: 434, mobile: 380 },\n { date: \"2024-06-27\", desktop: 448, mobile: 490 },\n { date: \"2024-06-28\", desktop: 149, mobile: 200 },\n { date: \"2024-06-29\", desktop: 103, mobile: 160 },\n { date: \"2024-06-30\", desktop: 446, mobile: 400 },\n]\n\nconst chartConfig = {\n views: {\n label: \"Page Views\",\n },\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineInteractive() {\n const [activeChart, setActiveChart] =\n React.useState(\"desktop\")\n\n const total = React.useMemo(\n () => ({\n desktop: chartData.reduce((acc, curr) => acc + curr.desktop, 0),\n mobile: chartData.reduce((acc, curr) => acc + curr.mobile, 0),\n }),\n []\n )\n\n return (\n \n \n
\n Line Chart - Interactive\n \n Showing total visitors for the last 3 months\n \n
\n
\n {[\"desktop\", \"mobile\"].map((key) => {\n const chart = key as keyof typeof chartConfig\n return (\n setActiveChart(chart)}\n >\n \n {chartConfig[chart].label}\n \n \n {total[key as keyof typeof total].toLocaleString()}\n \n \n )\n })}\n
\n
\n \n \n \n \n {\n const date = new Date(value)\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n />\n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n })\n }}\n />\n }\n />\n \n \n \n \n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-interactive.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"An interactive line chart\"\n\nconst chartData = [\n { date: \"2024-04-01\", desktop: 222, mobile: 150 },\n { date: \"2024-04-02\", desktop: 97, mobile: 180 },\n { date: \"2024-04-03\", desktop: 167, mobile: 120 },\n { date: \"2024-04-04\", desktop: 242, mobile: 260 },\n { date: \"2024-04-05\", desktop: 373, mobile: 290 },\n { date: \"2024-04-06\", desktop: 301, mobile: 340 },\n { date: \"2024-04-07\", desktop: 245, mobile: 180 },\n { date: \"2024-04-08\", desktop: 409, mobile: 320 },\n { date: \"2024-04-09\", desktop: 59, mobile: 110 },\n { date: \"2024-04-10\", desktop: 261, mobile: 190 },\n { date: \"2024-04-11\", desktop: 327, mobile: 350 },\n { date: \"2024-04-12\", desktop: 292, mobile: 210 },\n { date: \"2024-04-13\", desktop: 342, mobile: 380 },\n { date: \"2024-04-14\", desktop: 137, mobile: 220 },\n { date: \"2024-04-15\", desktop: 120, mobile: 170 },\n { date: \"2024-04-16\", desktop: 138, mobile: 190 },\n { date: \"2024-04-17\", desktop: 446, mobile: 360 },\n { date: \"2024-04-18\", desktop: 364, mobile: 410 },\n { date: \"2024-04-19\", desktop: 243, mobile: 180 },\n { date: \"2024-04-20\", desktop: 89, mobile: 150 },\n { date: \"2024-04-21\", desktop: 137, mobile: 200 },\n { date: \"2024-04-22\", desktop: 224, mobile: 170 },\n { date: \"2024-04-23\", desktop: 138, mobile: 230 },\n { date: \"2024-04-24\", desktop: 387, mobile: 290 },\n { date: \"2024-04-25\", desktop: 215, mobile: 250 },\n { date: \"2024-04-26\", desktop: 75, mobile: 130 },\n { date: \"2024-04-27\", desktop: 383, mobile: 420 },\n { date: \"2024-04-28\", desktop: 122, mobile: 180 },\n { date: \"2024-04-29\", desktop: 315, mobile: 240 },\n { date: \"2024-04-30\", desktop: 454, mobile: 380 },\n { date: \"2024-05-01\", desktop: 165, mobile: 220 },\n { date: \"2024-05-02\", desktop: 293, mobile: 310 },\n { date: \"2024-05-03\", desktop: 247, mobile: 190 },\n { date: \"2024-05-04\", desktop: 385, mobile: 420 },\n { date: \"2024-05-05\", desktop: 481, mobile: 390 },\n { date: \"2024-05-06\", desktop: 498, mobile: 520 },\n { date: \"2024-05-07\", desktop: 388, mobile: 300 },\n { date: \"2024-05-08\", desktop: 149, mobile: 210 },\n { date: \"2024-05-09\", desktop: 227, mobile: 180 },\n { date: \"2024-05-10\", desktop: 293, mobile: 330 },\n { date: \"2024-05-11\", desktop: 335, mobile: 270 },\n { date: \"2024-05-12\", desktop: 197, mobile: 240 },\n { date: \"2024-05-13\", desktop: 197, mobile: 160 },\n { date: \"2024-05-14\", desktop: 448, mobile: 490 },\n { date: \"2024-05-15\", desktop: 473, mobile: 380 },\n { date: \"2024-05-16\", desktop: 338, mobile: 400 },\n { date: \"2024-05-17\", desktop: 499, mobile: 420 },\n { date: \"2024-05-18\", desktop: 315, mobile: 350 },\n { date: \"2024-05-19\", desktop: 235, mobile: 180 },\n { date: \"2024-05-20\", desktop: 177, mobile: 230 },\n { date: \"2024-05-21\", desktop: 82, mobile: 140 },\n { date: \"2024-05-22\", desktop: 81, mobile: 120 },\n { date: \"2024-05-23\", desktop: 252, mobile: 290 },\n { date: \"2024-05-24\", desktop: 294, mobile: 220 },\n { date: \"2024-05-25\", desktop: 201, mobile: 250 },\n { date: \"2024-05-26\", desktop: 213, mobile: 170 },\n { date: \"2024-05-27\", desktop: 420, mobile: 460 },\n { date: \"2024-05-28\", desktop: 233, mobile: 190 },\n { date: \"2024-05-29\", desktop: 78, mobile: 130 },\n { date: \"2024-05-30\", desktop: 340, mobile: 280 },\n { date: \"2024-05-31\", desktop: 178, mobile: 230 },\n { date: \"2024-06-01\", desktop: 178, mobile: 200 },\n { date: \"2024-06-02\", desktop: 470, mobile: 410 },\n { date: \"2024-06-03\", desktop: 103, mobile: 160 },\n { date: \"2024-06-04\", desktop: 439, mobile: 380 },\n { date: \"2024-06-05\", desktop: 88, mobile: 140 },\n { date: \"2024-06-06\", desktop: 294, mobile: 250 },\n { date: \"2024-06-07\", desktop: 323, mobile: 370 },\n { date: \"2024-06-08\", desktop: 385, mobile: 320 },\n { date: \"2024-06-09\", desktop: 438, mobile: 480 },\n { date: \"2024-06-10\", desktop: 155, mobile: 200 },\n { date: \"2024-06-11\", desktop: 92, mobile: 150 },\n { date: \"2024-06-12\", desktop: 492, mobile: 420 },\n { date: \"2024-06-13\", desktop: 81, mobile: 130 },\n { date: \"2024-06-14\", desktop: 426, mobile: 380 },\n { date: \"2024-06-15\", desktop: 307, mobile: 350 },\n { date: \"2024-06-16\", desktop: 371, mobile: 310 },\n { date: \"2024-06-17\", desktop: 475, mobile: 520 },\n { date: \"2024-06-18\", desktop: 107, mobile: 170 },\n { date: \"2024-06-19\", desktop: 341, mobile: 290 },\n { date: \"2024-06-20\", desktop: 408, mobile: 450 },\n { date: \"2024-06-21\", desktop: 169, mobile: 210 },\n { date: \"2024-06-22\", desktop: 317, mobile: 270 },\n { date: \"2024-06-23\", desktop: 480, mobile: 530 },\n { date: \"2024-06-24\", desktop: 132, mobile: 180 },\n { date: \"2024-06-25\", desktop: 141, mobile: 190 },\n { date: \"2024-06-26\", desktop: 434, mobile: 380 },\n { date: \"2024-06-27\", desktop: 448, mobile: 490 },\n { date: \"2024-06-28\", desktop: 149, mobile: 200 },\n { date: \"2024-06-29\", desktop: 103, mobile: 160 },\n { date: \"2024-06-30\", desktop: 446, mobile: 400 },\n]\n\nconst chartConfig = {\n views: {\n label: \"Page Views\",\n },\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineInteractive() {\n const [activeChart, setActiveChart] =\n React.useState(\"desktop\")\n\n const total = React.useMemo(\n () => ({\n desktop: chartData.reduce((acc, curr) => acc + curr.desktop, 0),\n mobile: chartData.reduce((acc, curr) => acc + curr.mobile, 0),\n }),\n []\n )\n\n return (\n \n \n
\n Line Chart - Interactive\n \n Showing total visitors for the last 3 months\n \n
\n
\n {[\"desktop\", \"mobile\"].map((key) => {\n const chart = key as keyof typeof chartConfig\n return (\n setActiveChart(chart)}\n >\n \n {chartConfig[chart].label}\n \n \n {total[key as keyof typeof total].toLocaleString()}\n \n \n )\n })}\n
\n
\n \n \n \n \n {\n const date = new Date(value)\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n })\n }}\n />\n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n })\n }}\n />\n }\n />\n \n \n \n \n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-label-custom.json b/apps/www/public/r/styles/new-york-v4/chart-line-label-custom.json index a6366f52fb7..ce4b2866baa 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-label-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-label-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-label-custom.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, LabelList, Line, LineChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart with a custom label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-2)\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineLabelCustom() {\n return (\n \n \n Line Chart - Custom Label\n January - June 2024\n \n \n \n \n \n \n }\n />\n \n \n chartConfig[value]?.label\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-label-custom.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, LabelList, Line, LineChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart with a custom label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-2)\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineLabelCustom() {\n return (\n \n \n Line Chart - Custom Label\n January - June 2024\n \n \n \n \n \n \n }\n />\n \n \n chartConfig[value]?.label\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-label.json b/apps/www/public/r/styles/new-york-v4/chart-line-label.json index 350d6497b6c..c9c682b1bb6 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-label.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-label.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-label.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, LabelList, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart with a label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineLabel() {\n return (\n \n \n Line Chart - Label\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-label.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, LabelList, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart with a label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineLabel() {\n return (\n \n \n Line Chart - Label\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-linear.json b/apps/www/public/r/styles/new-york-v4/chart-line-linear.json index 4a226afebd1..53fca61781f 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-linear.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-linear.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-linear.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A linear line chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineLinear() {\n return (\n \n \n Line Chart - Linear\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-linear.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A linear line chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineLinear() {\n return (\n \n \n Line Chart - Linear\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-multiple.json b/apps/www/public/r/styles/new-york-v4/chart-line-multiple.json index cb74fa18e9f..ac4fd35301d 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-multiple.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-multiple.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-multiple.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A multiple line chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineMultiple() {\n return (\n \n \n Line Chart - Multiple\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n } />\n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-multiple.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A multiple line chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineMultiple() {\n return (\n \n \n Line Chart - Multiple\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n } />\n \n \n \n \n \n \n
\n
\n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-line-step.json b/apps/www/public/r/styles/new-york-v4/chart-line-step.json index ab5537b131c..643baed9f75 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-line-step.json +++ b/apps/www/public/r/styles/new-york-v4/chart-line-step.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-line-step.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A line chart with step\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineStep() {\n return (\n \n \n Line Chart - Step\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-line-step.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Line, LineChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A line chart with step\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 73 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartLineStep() {\n return (\n \n \n Line Chart - Step\n January - June 2024\n \n \n \n \n \n value.slice(0, 3)}\n />\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-donut-active.json b/apps/www/public/r/styles/new-york-v4/chart-pie-donut-active.json index f1eb03115b7..ec45b95d573 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-donut-active.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-donut-active.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-donut-active.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, Pie, PieChart, Sector } from \"recharts\"\nimport { PieSectorDataItem } from \"recharts/types/polar/Pie\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A donut chart with an active sector\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieDonutActive() {\n return (\n \n \n Pie Chart - Donut Active\n January - June 2024\n \n \n \n \n }\n />\n (\n \n )}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-donut-active.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, Pie, PieChart, Sector } from \"recharts\"\nimport { PieSectorDataItem } from \"recharts/types/polar/Pie\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A donut chart with an active sector\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieDonutActive() {\n return (\n \n \n Pie Chart - Donut Active\n January - June 2024\n \n \n \n \n }\n />\n (\n \n )}\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-donut-text.json b/apps/www/public/r/styles/new-york-v4/chart-pie-donut-text.json index ac059671cac..572d6b41147 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-donut-text.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-donut-text.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-donut-text.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A donut chart with text\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 287, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 190, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieDonutText() {\n const totalVisitors = React.useMemo(() => {\n return chartData.reduce((acc, curr) => acc + curr.visitors, 0)\n }, [])\n\n return (\n \n \n Pie Chart - Donut with Text\n January - June 2024\n \n \n \n \n }\n />\n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {totalVisitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-donut-text.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A donut chart with text\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 287, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 190, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieDonutText() {\n const totalVisitors = React.useMemo(() => {\n return chartData.reduce((acc, curr) => acc + curr.visitors, 0)\n }, [])\n\n return (\n \n \n Pie Chart - Donut with Text\n January - June 2024\n \n \n \n \n }\n />\n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {totalVisitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-donut.json b/apps/www/public/r/styles/new-york-v4/chart-pie-donut.json index 28453a825e4..ac6ae021db3 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-donut.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-donut.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-donut.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A donut chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieDonut() {\n return (\n \n \n Pie Chart - Donut\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-donut.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A donut chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieDonut() {\n return (\n \n \n Pie Chart - Donut\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-interactive.json b/apps/www/public/r/styles/new-york-v4/chart-pie-interactive.json index 1232fca54f7..62038382f89 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-interactive.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-interactive.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-interactive.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Label, Pie, PieChart, Sector } from \"recharts\"\nimport { PieSectorDataItem } from \"recharts/types/polar/Pie\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartStyle,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/ui/select\"\n\nexport const description = \"An interactive pie chart\"\n\nconst desktopData = [\n { month: \"january\", desktop: 186, fill: \"var(--color-january)\" },\n { month: \"february\", desktop: 305, fill: \"var(--color-february)\" },\n { month: \"march\", desktop: 237, fill: \"var(--color-march)\" },\n { month: \"april\", desktop: 173, fill: \"var(--color-april)\" },\n { month: \"may\", desktop: 209, fill: \"var(--color-may)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n desktop: {\n label: \"Desktop\",\n },\n mobile: {\n label: \"Mobile\",\n },\n january: {\n label: \"January\",\n color: \"var(--chart-1)\",\n },\n february: {\n label: \"February\",\n color: \"var(--chart-2)\",\n },\n march: {\n label: \"March\",\n color: \"var(--chart-3)\",\n },\n april: {\n label: \"April\",\n color: \"var(--chart-4)\",\n },\n may: {\n label: \"May\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieInteractive() {\n const id = \"pie-interactive\"\n const [activeMonth, setActiveMonth] = React.useState(desktopData[0].month)\n\n const activeIndex = React.useMemo(\n () => desktopData.findIndex((item) => item.month === activeMonth),\n [activeMonth]\n )\n const months = React.useMemo(() => desktopData.map((item) => item.month), [])\n\n return (\n \n \n \n
\n Pie Chart - Interactive\n January - June 2024\n
\n \n
\n \n \n \n }\n />\n (\n \n \n \n \n )}\n >\n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {desktopData[activeIndex].desktop.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-interactive.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Label, Pie, PieChart, Sector } from \"recharts\"\nimport { PieSectorDataItem } from \"recharts/types/polar/Pie\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartStyle,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/new-york-v4/ui/select\"\n\nexport const description = \"An interactive pie chart\"\n\nconst desktopData = [\n { month: \"january\", desktop: 186, fill: \"var(--color-january)\" },\n { month: \"february\", desktop: 305, fill: \"var(--color-february)\" },\n { month: \"march\", desktop: 237, fill: \"var(--color-march)\" },\n { month: \"april\", desktop: 173, fill: \"var(--color-april)\" },\n { month: \"may\", desktop: 209, fill: \"var(--color-may)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n desktop: {\n label: \"Desktop\",\n },\n mobile: {\n label: \"Mobile\",\n },\n january: {\n label: \"January\",\n color: \"var(--chart-1)\",\n },\n february: {\n label: \"February\",\n color: \"var(--chart-2)\",\n },\n march: {\n label: \"March\",\n color: \"var(--chart-3)\",\n },\n april: {\n label: \"April\",\n color: \"var(--chart-4)\",\n },\n may: {\n label: \"May\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieInteractive() {\n const id = \"pie-interactive\"\n const [activeMonth, setActiveMonth] = React.useState(desktopData[0].month)\n\n const activeIndex = React.useMemo(\n () => desktopData.findIndex((item) => item.month === activeMonth),\n [activeMonth]\n )\n const months = React.useMemo(() => desktopData.map((item) => item.month), [])\n\n return (\n \n \n \n
\n Pie Chart - Interactive\n January - June 2024\n
\n \n
\n \n \n \n }\n />\n (\n \n \n \n \n )}\n >\n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {desktopData[activeIndex].desktop.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-label-custom.json b/apps/www/public/r/styles/new-york-v4/chart-pie-label-custom.json index 1b26cc4f8aa..b1dc9a37de2 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-label-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-label-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-label-custom.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A pie chart with a custom label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLabelCustom() {\n return (\n \n \n Pie Chart - Custom Label\n January - June 2024\n \n \n \n \n }\n />\n {\n return (\n \n {payload.visitors}\n \n )\n }}\n nameKey=\"browser\"\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-label-custom.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A pie chart with a custom label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLabelCustom() {\n return (\n \n \n Pie Chart - Custom Label\n January - June 2024\n \n \n \n \n }\n />\n {\n return (\n \n {payload.visitors}\n \n )\n }}\n nameKey=\"browser\"\n />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-label-list.json b/apps/www/public/r/styles/new-york-v4/chart-pie-label-list.json index 377b7506ff9..72e27f1c4fc 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-label-list.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-label-list.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-label-list.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { LabelList, Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A pie chart with a label list\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLabelList() {\n return (\n \n \n Pie Chart - Label List\n January - June 2024\n \n \n \n \n }\n />\n \n \n chartConfig[value]?.label\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-label-list.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { LabelList, Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A pie chart with a label list\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLabelList() {\n return (\n \n \n Pie Chart - Label List\n January - June 2024\n \n \n \n \n }\n />\n \n \n chartConfig[value]?.label\n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-label.json b/apps/www/public/r/styles/new-york-v4/chart-pie-label.json index 3235c9c742d..f34aa4fd95e 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-label.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-label.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-label.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A pie chart with a label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLabel() {\n return (\n \n \n Pie Chart - Label\n January - June 2024\n \n \n \n \n } />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-label.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A pie chart with a label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLabel() {\n return (\n \n \n Pie Chart - Label\n January - June 2024\n \n \n \n \n } />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-legend.json b/apps/www/public/r/styles/new-york-v4/chart-pie-legend.json index 59be18b5e8e..5302bb37ac6 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-legend.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-legend.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-legend.tsx", - "content": "\"use client\"\n\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A pie chart with a legend\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLegend() {\n return (\n \n \n Pie Chart - Legend\n January - June 2024\n \n \n \n \n \n }\n className=\"-translate-y-2 flex-wrap gap-2 *:basis-1/4 *:justify-center\"\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-legend.tsx", + "content": "\"use client\"\n\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A pie chart with a legend\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieLegend() {\n return (\n \n \n Pie Chart - Legend\n January - June 2024\n \n \n \n \n \n }\n className=\"-translate-y-2 flex-wrap gap-2 *:basis-1/4 *:justify-center\"\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-separator-none.json b/apps/www/public/r/styles/new-york-v4/chart-pie-separator-none.json index 2fb1fe2dd81..3792d9c3b98 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-separator-none.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-separator-none.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-separator-none.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A pie chart with no separator\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieSeparatorNone() {\n return (\n \n \n Pie Chart - Separator None\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-separator-none.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A pie chart with no separator\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieSeparatorNone() {\n return (\n \n \n Pie Chart - Separator None\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-simple.json b/apps/www/public/r/styles/new-york-v4/chart-pie-simple.json index 60f5b64d1cc..16d6012d124 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-simple.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-simple.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-simple.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A simple pie chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieSimple() {\n return (\n \n \n Pie Chart\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-simple.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A simple pie chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieSimple() {\n return (\n \n \n Pie Chart\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-pie-stacked.json b/apps/www/public/r/styles/new-york-v4/chart-pie-stacked.json index 54dfc7cae7b..f65e0a3be6c 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-pie-stacked.json +++ b/apps/www/public/r/styles/new-york-v4/chart-pie-stacked.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-pie-stacked.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A pie chart with stacked sections\"\n\nconst desktopData = [\n { month: \"january\", desktop: 186, fill: \"var(--color-january)\" },\n { month: \"february\", desktop: 305, fill: \"var(--color-february)\" },\n { month: \"march\", desktop: 237, fill: \"var(--color-march)\" },\n { month: \"april\", desktop: 173, fill: \"var(--color-april)\" },\n { month: \"may\", desktop: 209, fill: \"var(--color-may)\" },\n]\n\nconst mobileData = [\n { month: \"january\", mobile: 80, fill: \"var(--color-january)\" },\n { month: \"february\", mobile: 200, fill: \"var(--color-february)\" },\n { month: \"march\", mobile: 120, fill: \"var(--color-march)\" },\n { month: \"april\", mobile: 190, fill: \"var(--color-april)\" },\n { month: \"may\", mobile: 130, fill: \"var(--color-may)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n desktop: {\n label: \"Desktop\",\n },\n mobile: {\n label: \"Mobile\",\n },\n january: {\n label: \"January\",\n color: \"var(--chart-1)\",\n },\n february: {\n label: \"February\",\n color: \"var(--chart-2)\",\n },\n march: {\n label: \"March\",\n color: \"var(--chart-3)\",\n },\n april: {\n label: \"April\",\n color: \"var(--chart-4)\",\n },\n may: {\n label: \"May\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieStacked() {\n return (\n \n \n Pie Chart - Stacked\n January - June 2024\n \n \n \n \n {\n return chartConfig[\n payload?.[0].dataKey as keyof typeof chartConfig\n ].label\n }}\n />\n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-pie-stacked.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, Pie, PieChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A pie chart with stacked sections\"\n\nconst desktopData = [\n { month: \"january\", desktop: 186, fill: \"var(--color-january)\" },\n { month: \"february\", desktop: 305, fill: \"var(--color-february)\" },\n { month: \"march\", desktop: 237, fill: \"var(--color-march)\" },\n { month: \"april\", desktop: 173, fill: \"var(--color-april)\" },\n { month: \"may\", desktop: 209, fill: \"var(--color-may)\" },\n]\n\nconst mobileData = [\n { month: \"january\", mobile: 80, fill: \"var(--color-january)\" },\n { month: \"february\", mobile: 200, fill: \"var(--color-february)\" },\n { month: \"march\", mobile: 120, fill: \"var(--color-march)\" },\n { month: \"april\", mobile: 190, fill: \"var(--color-april)\" },\n { month: \"may\", mobile: 130, fill: \"var(--color-may)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n desktop: {\n label: \"Desktop\",\n },\n mobile: {\n label: \"Mobile\",\n },\n january: {\n label: \"January\",\n color: \"var(--chart-1)\",\n },\n february: {\n label: \"February\",\n color: \"var(--chart-2)\",\n },\n march: {\n label: \"March\",\n color: \"var(--chart-3)\",\n },\n april: {\n label: \"April\",\n color: \"var(--chart-4)\",\n },\n may: {\n label: \"May\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartPieStacked() {\n return (\n \n \n Pie Chart - Stacked\n January - June 2024\n \n \n \n \n {\n return chartConfig[\n payload?.[0].dataKey as keyof typeof chartConfig\n ].label\n }}\n />\n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-default.json b/apps/www/public/r/styles/new-york-v4/chart-radar-default.json index d1015b0184d..8df06687734 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-default.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-default.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-default.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarDefault() {\n return (\n \n \n Radar Chart\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n } />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-default.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarDefault() {\n return (\n \n \n Radar Chart\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n } />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-dots.json b/apps/www/public/r/styles/new-york-v4/chart-radar-dots.json index ecada9a5023..a38aaa0237d 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-dots.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-dots.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-dots.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with dots\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarDots() {\n return (\n \n \n Radar Chart - Dots\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n } />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-dots.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with dots\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarDots() {\n return (\n \n \n Radar Chart - Dots\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n } />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-fill.json b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-fill.json index e97d9e18247..95a9fb43d7c 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-fill.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-fill.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-circle-fill.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a grid and circle fill\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 285 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 203 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 264 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCircleFill() {\n return (\n \n \n Radar Chart - Grid Circle Filled\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n } />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-grid-circle-fill.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a grid and circle fill\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 285 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 203 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 264 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCircleFill() {\n return (\n \n \n Radar Chart - Grid Circle Filled\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n } />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-no-lines.json b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-no-lines.json index e1b26b78601..50de824ad67 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-no-lines.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle-no-lines.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-circle-no-lines.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a grid and circle fill\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 203 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCircleNoLines() {\n return (\n \n \n Radar Chart - Grid Circle - No lines\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-grid-circle-no-lines.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a grid and circle fill\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 203 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCircleNoLines() {\n return (\n \n \n Radar Chart - Grid Circle - No lines\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle.json b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle.json index 1119c3ee442..ed57385fe0a 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-circle.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-circle.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a grid and circle\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCircle() {\n return (\n \n \n Radar Chart - Grid Circle\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-grid-circle.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a grid and circle\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCircle() {\n return (\n \n \n Radar Chart - Grid Circle\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-custom.json b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-custom.json index 3359e44aee4..3c12f9fbee7 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-custom.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a custom grid\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCustom() {\n return (\n \n \n Radar Chart - Grid Custom\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-grid-custom.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a custom grid\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridCustom() {\n return (\n \n \n Radar Chart - Grid Custom\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-fill.json b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-fill.json index 444bdee1f9d..2a71e2c79fe 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-fill.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-fill.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-fill.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a grid filled\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 285 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 203 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 264 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridFill() {\n return (\n \n \n Radar Chart - Grid Filled\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-grid-fill.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a grid filled\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 285 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 203 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 264 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridFill() {\n return (\n \n \n Radar Chart - Grid Filled\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-none.json b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-none.json index 93a87c2a6f6..b2d43da2c86 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-grid-none.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-grid-none.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-grid-none.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with no grid\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridNone() {\n return (\n \n \n Radar Chart - Grid None\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-grid-none.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with no grid\"\n\nconst chartData = [\n { month: \"January\", desktop: 186 },\n { month: \"February\", desktop: 305 },\n { month: \"March\", desktop: 237 },\n { month: \"April\", desktop: 273 },\n { month: \"May\", desktop: 209 },\n { month: \"June\", desktop: 214 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarGridNone() {\n return (\n \n \n Radar Chart - Grid None\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-icons.json b/apps/www/public/r/styles/new-york-v4/chart-radar-icons.json index 76c57dd38cf..e4d189c18d4 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-icons.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-icons.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-icons.tsx", - "content": "\"use client\"\n\nimport { ArrowDownFromLine, ArrowUpFromLine, TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with icons\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: ArrowDownFromLine,\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n icon: ArrowUpFromLine,\n },\n} satisfies ChartConfig\n\nexport function ChartRadarIcons() {\n return (\n \n \n Radar Chart - Icons\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n } />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-icons.tsx", + "content": "\"use client\"\n\nimport { ArrowDownFromLine, ArrowUpFromLine, TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with icons\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: ArrowDownFromLine,\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n icon: ArrowUpFromLine,\n },\n} satisfies ChartConfig\n\nexport function ChartRadarIcons() {\n return (\n \n \n Radar Chart - Icons\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n } />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-label-custom.json b/apps/www/public/r/styles/new-york-v4/chart-radar-label-custom.json index bdf5f5e0dea..289b36bda0e 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-label-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-label-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-label-custom.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a custom label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarLabelCustom() {\n return (\n \n \n Radar Chart - Custom Label\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n {\n const data = chartData[index]\n\n return (\n \n {data.desktop}\n /\n {data.mobile}\n \n {data.month}\n \n \n )\n }}\n />\n\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-label-custom.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a custom label\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarLabelCustom() {\n return (\n \n \n Radar Chart - Custom Label\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n {\n const data = chartData[index]\n\n return (\n \n {data.desktop}\n /\n {data.mobile}\n \n {data.month}\n \n \n )\n }}\n />\n\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-legend.json b/apps/www/public/r/styles/new-york-v4/chart-radar-legend.json index ec49d96ce64..fd34d06186a 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-legend.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-legend.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-legend.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a legend\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarLegend() {\n return (\n \n \n Radar Chart - Legend\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n } />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-legend.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a legend\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarLegend() {\n return (\n \n \n Radar Chart - Legend\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n } />\n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-lines-only.json b/apps/www/public/r/styles/new-york-v4/chart-radar-lines-only.json index 1c521ffd9ed..93ea203a121 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-lines-only.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-lines-only.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-lines-only.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with lines only\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 160 },\n { month: \"February\", desktop: 185, mobile: 170 },\n { month: \"March\", desktop: 207, mobile: 180 },\n { month: \"April\", desktop: 173, mobile: 160 },\n { month: \"May\", desktop: 160, mobile: 190 },\n { month: \"June\", desktop: 174, mobile: 204 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarLinesOnly() {\n return (\n \n \n Radar Chart - Lines Only\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-lines-only.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with lines only\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 160 },\n { month: \"February\", desktop: 185, mobile: 170 },\n { month: \"March\", desktop: 207, mobile: 180 },\n { month: \"April\", desktop: 173, mobile: 160 },\n { month: \"May\", desktop: 160, mobile: 190 },\n { month: \"June\", desktop: 174, mobile: 204 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarLinesOnly() {\n return (\n \n \n Radar Chart - Lines Only\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-multiple.json b/apps/www/public/r/styles/new-york-v4/chart-radar-multiple.json index 7d36be3855d..75adfea85ef 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-multiple.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-multiple.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-multiple.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with multiple data\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarMultiple() {\n return (\n \n \n Radar Chart - Multiple\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-multiple.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarAngleAxis, PolarGrid, Radar, RadarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with multiple data\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarMultiple() {\n return (\n \n \n Radar Chart - Multiple\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radar-radius.json b/apps/www/public/r/styles/new-york-v4/chart-radar-radius.json index 32e6f1342ca..c0abb76d53a 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radar-radius.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radar-radius.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radar-radius.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n PolarAngleAxis,\n PolarGrid,\n PolarRadiusAxis,\n Radar,\n RadarChart,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radar chart with a radius axis\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarRadius() {\n return (\n \n \n Radar Chart - Radius Axis\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radar-radius.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n PolarAngleAxis,\n PolarGrid,\n PolarRadiusAxis,\n Radar,\n RadarChart,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radar chart with a radius axis\"\n\nconst chartData = [\n { month: \"January\", desktop: 186, mobile: 80 },\n { month: \"February\", desktop: 305, mobile: 200 },\n { month: \"March\", desktop: 237, mobile: 120 },\n { month: \"April\", desktop: 73, mobile: 190 },\n { month: \"May\", desktop: 209, mobile: 130 },\n { month: \"June\", desktop: 214, mobile: 140 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadarRadius() {\n return (\n \n \n Radar Chart - Radius Axis\n \n Showing total visitors for the last 6 months\n \n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n January - June 2024\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radial-grid.json b/apps/www/public/r/styles/new-york-v4/chart-radial-grid.json index 6b31f7a3421..6afbeb0b04e 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radial-grid.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radial-grid.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radial-grid.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarGrid, RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radial chart with a grid\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialGrid() {\n return (\n \n \n Radial Chart - Grid\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radial-grid.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { PolarGrid, RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radial chart with a grid\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialGrid() {\n return (\n \n \n Radial Chart - Grid\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radial-label.json b/apps/www/public/r/styles/new-york-v4/chart-radial-label.json index db0536d3282..fb33f244082 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radial-label.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radial-label.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radial-label.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { LabelList, RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radial chart with a label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialLabel() {\n return (\n \n \n Radial Chart - Label\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radial-label.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { LabelList, RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radial chart with a label\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialLabel() {\n return (\n \n \n Radial Chart - Label\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radial-shape.json b/apps/www/public/r/styles/new-york-v4/chart-radial-shape.json index 7234c7b7053..7a698348495 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radial-shape.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radial-shape.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radial-shape.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n Label,\n PolarGrid,\n PolarRadiusAxis,\n RadialBar,\n RadialBarChart,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport { ChartConfig, ChartContainer } from \"@/registry/ui/chart\"\n\nexport const description = \"A radial chart with a custom shape\"\n\nconst chartData = [\n { browser: \"safari\", visitors: 1260, fill: \"var(--color-safari)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialShape() {\n return (\n \n \n Radial Chart - Shape\n January - June 2024\n \n \n \n \n \n \n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {chartData[0].visitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radial-shape.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n Label,\n PolarGrid,\n PolarRadiusAxis,\n RadialBar,\n RadialBarChart,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport { ChartConfig, ChartContainer } from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radial chart with a custom shape\"\n\nconst chartData = [\n { browser: \"safari\", visitors: 1260, fill: \"var(--color-safari)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialShape() {\n return (\n \n \n Radial Chart - Shape\n January - June 2024\n \n \n \n \n \n \n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {chartData[0].visitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radial-simple.json b/apps/www/public/r/styles/new-york-v4/chart-radial-simple.json index 2a3b3962093..2df2df2318f 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radial-simple.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radial-simple.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radial-simple.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radial chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialSimple() {\n return (\n \n \n Radial Chart\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radial-simple.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radial chart\"\n\nconst chartData = [\n { browser: \"chrome\", visitors: 275, fill: \"var(--color-chrome)\" },\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n { browser: \"firefox\", visitors: 187, fill: \"var(--color-firefox)\" },\n { browser: \"edge\", visitors: 173, fill: \"var(--color-edge)\" },\n { browser: \"other\", visitors: 90, fill: \"var(--color-other)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n chrome: {\n label: \"Chrome\",\n color: \"var(--chart-1)\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n firefox: {\n label: \"Firefox\",\n color: \"var(--chart-3)\",\n },\n edge: {\n label: \"Edge\",\n color: \"var(--chart-4)\",\n },\n other: {\n label: \"Other\",\n color: \"var(--chart-5)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialSimple() {\n return (\n \n \n Radial Chart\n January - June 2024\n \n \n \n \n }\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radial-stacked.json b/apps/www/public/r/styles/new-york-v4/chart-radial-stacked.json index 5f1213d3e28..727525264cf 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radial-stacked.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radial-stacked.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radial-stacked.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, PolarRadiusAxis, RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A radial chart with stacked sections\"\n\nconst chartData = [{ month: \"january\", desktop: 1260, mobile: 570 }]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialStacked() {\n const totalVisitors = chartData[0].desktop + chartData[0].mobile\n\n return (\n \n \n Radial Chart - Stacked\n January - June 2024\n \n \n \n \n }\n />\n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {totalVisitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radial-stacked.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { Label, PolarRadiusAxis, RadialBar, RadialBarChart } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radial chart with stacked sections\"\n\nconst chartData = [{ month: \"january\", desktop: 1260, mobile: 570 }]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialStacked() {\n const totalVisitors = chartData[0].desktop + chartData[0].mobile\n\n return (\n \n \n Radial Chart - Stacked\n January - June 2024\n \n \n \n \n }\n />\n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {totalVisitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-radial-text.json b/apps/www/public/r/styles/new-york-v4/chart-radial-text.json index a257ae07287..fddbc36c401 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-radial-text.json +++ b/apps/www/public/r/styles/new-york-v4/chart-radial-text.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-radial-text.tsx", - "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n Label,\n PolarGrid,\n PolarRadiusAxis,\n RadialBar,\n RadialBarChart,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport { ChartConfig, ChartContainer } from \"@/registry/ui/chart\"\n\nexport const description = \"A radial chart with text\"\n\nconst chartData = [\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialText() {\n return (\n \n \n Radial Chart - Text\n January - June 2024\n \n \n \n \n \n \n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {chartData[0].visitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-radial-text.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n Label,\n PolarGrid,\n PolarRadiusAxis,\n RadialBar,\n RadialBarChart,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport { ChartConfig, ChartContainer } from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A radial chart with text\"\n\nconst chartData = [\n { browser: \"safari\", visitors: 200, fill: \"var(--color-safari)\" },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n },\n safari: {\n label: \"Safari\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartRadialText() {\n return (\n \n \n Radial Chart - Text\n January - June 2024\n \n \n \n \n \n \n \n {\n if (viewBox && \"cx\" in viewBox && \"cy\" in viewBox) {\n return (\n \n \n {chartData[0].visitors.toLocaleString()}\n \n \n Visitors\n \n \n )\n }\n }}\n />\n \n \n \n \n \n
\n Trending up by 5.2% this month \n
\n
\n Showing total visitors for the last 6 months\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-advanced.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-advanced.json index b51d625545e..05abfc3e43c 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-advanced.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-advanced.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-advanced.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipAdvanced() {\n return (\n \n \n Tooltip - Advanced\n \n Tooltip with custom formatter and total.\n \n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n (\n <>\n \n {chartConfig[name as keyof typeof chartConfig]?.label ||\n name}\n
\n {value}\n \n kcal\n \n
\n {/* Add this after the last item */}\n {index === 1 && (\n
\n Total\n
\n {item.payload.running + item.payload.swimming}\n \n kcal\n \n
\n
\n )}\n \n )}\n />\n }\n cursor={false}\n defaultIndex={1}\n />\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-advanced.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipAdvanced() {\n return (\n \n \n Tooltip - Advanced\n \n Tooltip with custom formatter and total.\n \n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n (\n <>\n \n {chartConfig[name as keyof typeof chartConfig]?.label ||\n name}\n
\n {value}\n \n kcal\n \n
\n {/* Add this after the last item */}\n {index === 1 && (\n
\n Total\n
\n {item.payload.running + item.payload.swimming}\n \n kcal\n \n
\n
\n )}\n \n )}\n />\n }\n cursor={false}\n defaultIndex={1}\n />\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-default.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-default.json index 98672f3dc78..be2e0a6033b 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-default.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-default.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-default.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\nexport const iframeHeight = \"600px\"\nexport const containerClassName =\n \"[&>div]:w-full [&>div]:max-w-md flex items-center justify-center min-h-svh\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipDefault() {\n return (\n \n \n Tooltip - Default\n \n Default tooltip with ChartTooltipContent.\n \n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-default.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\nexport const iframeHeight = \"600px\"\nexport const containerClassName =\n \"[&>div]:w-full [&>div]:max-w-md flex items-center justify-center min-h-svh\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipDefault() {\n return (\n \n \n Tooltip - Default\n \n Default tooltip with ChartTooltipContent.\n \n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-formatter.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-formatter.json index b01b4b4fc60..9062606673e 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-formatter.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-formatter.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-formatter.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipFormatter() {\n return (\n \n \n Tooltip - Formatter\n Tooltip with custom formatter .\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n (\n
\n {chartConfig[name as keyof typeof chartConfig]?.label ||\n name}\n
\n {value}\n \n kcal\n \n
\n
\n )}\n />\n }\n cursor={false}\n defaultIndex={1}\n />\n
\n
\n
\n
\n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-formatter.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipFormatter() {\n return (\n \n \n Tooltip - Formatter\n Tooltip with custom formatter .\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n (\n
\n {chartConfig[name as keyof typeof chartConfig]?.label ||\n name}\n
\n {value}\n \n kcal\n \n
\n
\n )}\n />\n }\n cursor={false}\n defaultIndex={1}\n />\n
\n
\n
\n
\n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-icons.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-icons.json index 159bb00402f..419ae3a6e58 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-icons.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-icons.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-icons.tsx", - "content": "\"use client\"\n\nimport { Footprints, Waves } from \"lucide-react\"\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n icon: Footprints,\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n icon: Waves,\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipIcons() {\n return (\n \n \n Tooltip - Icons\n Tooltip with icons.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-icons.tsx", + "content": "\"use client\"\n\nimport { Footprints, Waves } from \"lucide-react\"\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n icon: Footprints,\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n icon: Waves,\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipIcons() {\n return (\n \n \n Tooltip - Icons\n Tooltip with icons.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-line.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-line.json index 40d6ed9eecc..19a90b21061 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-line.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-line.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-indicator-line.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\nexport const iframeHeight = \"600px\"\nexport const containerClassName =\n \"[&>div]:w-full [&>div]:max-w-md flex items-center justify-center min-h-svh\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipIndicatorLine() {\n return (\n \n \n Tooltip - Line Indicator\n Tooltip with line indicator.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-indicator-line.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\nexport const iframeHeight = \"600px\"\nexport const containerClassName =\n \"[&>div]:w-full [&>div]:max-w-md flex items-center justify-center min-h-svh\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipIndicatorLine() {\n return (\n \n \n Tooltip - Line Indicator\n Tooltip with line indicator.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-none.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-none.json index 6945eb1ae3d..35a03b44cc9 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-none.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-indicator-none.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-indicator-none.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipIndicatorNone() {\n return (\n \n \n Tooltip - No Indicator\n Tooltip with no indicator.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-indicator-none.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipIndicatorNone() {\n return (\n \n \n Tooltip - No Indicator\n Tooltip with no indicator.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-custom.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-custom.json index 08102feaf07..d98b6266549 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-custom.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-custom.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-label-custom.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n activities: {\n label: \"Activities\",\n },\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipLabelCustom() {\n return (\n \n \n Tooltip - Custom label\n \n Tooltip with custom label from chartConfig.\n \n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-label-custom.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n activities: {\n label: \"Activities\",\n },\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipLabelCustom() {\n return (\n \n \n Tooltip - Custom label\n \n Tooltip with custom label from chartConfig.\n \n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-formatter.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-formatter.json index 83dc00fa65b..7a23d021f82 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-formatter.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-formatter.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-label-formatter.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipLabelFormatter() {\n return (\n \n \n Tooltip - Label Formatter\n Tooltip with label formatter.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\",\n })\n }}\n />\n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-label-formatter.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipLabelFormatter() {\n return (\n \n \n Tooltip - Label Formatter\n Tooltip with label formatter.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\",\n })\n }}\n />\n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-none.json b/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-none.json index 7502693761c..506a57017cc 100644 --- a/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-none.json +++ b/apps/www/public/r/styles/new-york-v4/chart-tooltip-label-none.json @@ -8,8 +8,8 @@ ], "files": [ { - "path": "registry/charts/chart-tooltip-label-none.tsx", - "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipLabelNone() {\n return (\n \n \n Tooltip - No Label\n Tooltip with no label.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/charts/chart-tooltip-label-none.tsx", + "content": "\"use client\"\n\nimport { Bar, BarChart, XAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartConfig,\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A stacked bar chart with a legend\"\n\nconst chartData = [\n { date: \"2024-07-15\", running: 450, swimming: 300 },\n { date: \"2024-07-16\", running: 380, swimming: 420 },\n { date: \"2024-07-17\", running: 520, swimming: 120 },\n { date: \"2024-07-18\", running: 140, swimming: 550 },\n { date: \"2024-07-19\", running: 600, swimming: 350 },\n { date: \"2024-07-20\", running: 480, swimming: 400 },\n]\n\nconst chartConfig = {\n running: {\n label: \"Running\",\n color: \"var(--chart-1)\",\n },\n swimming: {\n label: \"Swimming\",\n color: \"var(--chart-2)\",\n },\n} satisfies ChartConfig\n\nexport function ChartTooltipLabelNone() {\n return (\n \n \n Tooltip - No Label\n Tooltip with no label.\n \n \n \n \n {\n return new Date(value).toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n })\n }}\n />\n \n \n }\n cursor={false}\n defaultIndex={1}\n />\n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/www/public/r/styles/new-york-v4/chart.json b/apps/www/public/r/styles/new-york-v4/chart.json index 1eb3de3df35..5867dde101a 100644 --- a/apps/www/public/r/styles/new-york-v4/chart.json +++ b/apps/www/public/r/styles/new-york-v4/chart.json @@ -11,7 +11,7 @@ ], "files": [ { - "path": "registry/ui/chart.tsx", + "path": "registry/new-york-v4/ui/chart.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as RechartsPrimitive from \"recharts\"\n\nimport { cn } from \"@/lib/utils\"\n\n// Format: { THEME_NAME: CSS_SELECTOR }\nconst THEMES = { light: \"\", dark: \".dark\" } as const\n\nexport type ChartConfig = {\n [k in string]: {\n label?: React.ReactNode\n icon?: React.ComponentType\n } & (\n | { color?: string; theme?: never }\n | { color?: never; theme: Record }\n )\n}\n\ntype ChartContextProps = {\n config: ChartConfig\n}\n\nconst ChartContext = React.createContext(null)\n\nfunction useChart() {\n const context = React.useContext(ChartContext)\n\n if (!context) {\n throw new Error(\"useChart must be used within a \")\n }\n\n return context\n}\n\nconst ChartContainer = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n config: ChartConfig\n children: React.ComponentProps<\n typeof RechartsPrimitive.ResponsiveContainer\n >[\"children\"]\n }\n>(({ id, className, children, config, ...props }, ref) => {\n const uniqueId = React.useId()\n const chartId = `chart-${id || uniqueId.replace(/:/g, \"\")}`\n\n return (\n \n \n \n \n {children}\n \n \n \n )\n})\nChartContainer.displayName = \"Chart\"\n\nconst ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {\n const colorConfig = Object.entries(config).filter(\n ([, config]) => config.theme || config.color\n )\n\n if (!colorConfig.length) {\n return null\n }\n\n return (\n `\n${prefix} [data-chart=${id}] {\n${colorConfig\n .map(([key, itemConfig]) => {\n const color =\n itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ||\n itemConfig.color\n return color ? ` --color-${key}: ${color};` : null\n })\n .join(\"\\n\")}\n}\n`\n )\n .join(\"\\n\"),\n }}\n />\n )\n}\n\nconst ChartTooltip = RechartsPrimitive.Tooltip\n\nconst ChartTooltipContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps &\n React.ComponentProps<\"div\"> & {\n hideLabel?: boolean\n hideIndicator?: boolean\n indicator?: \"line\" | \"dot\" | \"dashed\"\n nameKey?: string\n labelKey?: string\n }\n>(\n (\n {\n active,\n payload,\n className,\n indicator = \"dot\",\n hideLabel = false,\n hideIndicator = false,\n label,\n labelFormatter,\n labelClassName,\n formatter,\n color,\n nameKey,\n labelKey,\n },\n ref\n ) => {\n const { config } = useChart()\n\n const tooltipLabel = React.useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null\n }\n\n const [item] = payload\n const key = `${labelKey || item.dataKey || item.name || \"value\"}`\n const itemConfig = getPayloadConfigFromPayload(config, item, key)\n const value =\n !labelKey && typeof label === \"string\"\n ? config[label as keyof typeof config]?.label || label\n : itemConfig?.label\n\n if (labelFormatter) {\n return (\n
\n {labelFormatter(value, payload)}\n
\n )\n }\n\n if (!value) {\n return null\n }\n\n return
{value}
\n }, [\n label,\n labelFormatter,\n payload,\n hideLabel,\n labelClassName,\n config,\n labelKey,\n ])\n\n if (!active || !payload?.length) {\n return null\n }\n\n const nestLabel = payload.length === 1 && indicator !== \"dot\"\n\n return (\n \n {!nestLabel ? tooltipLabel : null}\n
\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || \"value\"}`\n const itemConfig = getPayloadConfigFromPayload(config, item, key)\n const indicatorColor = color || item.payload.fill || item.color\n\n return (\n svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5\",\n indicator === \"dot\" && \"items-center\"\n )}\n >\n {formatter && item?.value !== undefined && item.name ? (\n formatter(item.value, item.name, item, index, item.payload)\n ) : (\n <>\n {itemConfig?.icon ? (\n \n ) : (\n !hideIndicator && (\n \n )\n )}\n \n
\n {nestLabel ? tooltipLabel : null}\n \n {itemConfig?.label || item.name}\n \n
\n {item.value && (\n \n {item.value.toLocaleString()}\n \n )}\n
\n \n )}\n \n )\n })}\n \n \n )\n }\n)\nChartTooltipContent.displayName = \"ChartTooltip\"\n\nconst ChartLegend = RechartsPrimitive.Legend\n\nconst ChartLegendContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> &\n Pick & {\n hideIcon?: boolean\n nameKey?: string\n }\n>(\n (\n { className, hideIcon = false, payload, verticalAlign = \"bottom\", nameKey },\n ref\n ) => {\n const { config } = useChart()\n\n if (!payload?.length) {\n return null\n }\n\n return (\n \n {payload.map((item) => {\n const key = `${nameKey || item.dataKey || \"value\"}`\n const itemConfig = getPayloadConfigFromPayload(config, item, key)\n\n return (\n svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3\"\n )}\n >\n {itemConfig?.icon && !hideIcon ? (\n \n ) : (\n \n )}\n {itemConfig?.label}\n \n )\n })}\n \n )\n }\n)\nChartLegendContent.displayName = \"ChartLegend\"\n\n// Helper to extract item config from a payload.\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string\n) {\n if (typeof payload !== \"object\" || payload === null) {\n return undefined\n }\n\n const payloadPayload =\n \"payload\" in payload &&\n typeof payload.payload === \"object\" &&\n payload.payload !== null\n ? payload.payload\n : undefined\n\n let configLabelKey: string = key\n\n if (\n key in payload &&\n typeof payload[key as keyof typeof payload] === \"string\"\n ) {\n configLabelKey = payload[key as keyof typeof payload] as string\n } else if (\n payloadPayload &&\n key in payloadPayload &&\n typeof payloadPayload[key as keyof typeof payloadPayload] === \"string\"\n ) {\n configLabelKey = payloadPayload[\n key as keyof typeof payloadPayload\n ] as string\n }\n\n return configLabelKey in config\n ? config[configLabelKey]\n : config[key as keyof typeof config]\n}\n\nexport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n ChartStyle,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/checkbox.json b/apps/www/public/r/styles/new-york-v4/checkbox.json index 833a9e6f662..1c50fc69fce 100644 --- a/apps/www/public/r/styles/new-york-v4/checkbox.json +++ b/apps/www/public/r/styles/new-york-v4/checkbox.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/checkbox.tsx", + "path": "registry/new-york-v4/ui/checkbox.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\"\nimport { CheckIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Checkbox({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n )\n}\n\nexport { Checkbox }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/collapsible.json b/apps/www/public/r/styles/new-york-v4/collapsible.json index 24750302b23..3dc6db7ab79 100644 --- a/apps/www/public/r/styles/new-york-v4/collapsible.json +++ b/apps/www/public/r/styles/new-york-v4/collapsible.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/collapsible.tsx", + "path": "registry/new-york-v4/ui/collapsible.tsx", "content": "\"use client\"\n\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\"\n\nfunction Collapsible({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction CollapsibleTrigger({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CollapsibleContent({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/command.json b/apps/www/public/r/styles/new-york-v4/command.json index 8c12f978def..f1a42c03630 100644 --- a/apps/www/public/r/styles/new-york-v4/command.json +++ b/apps/www/public/r/styles/new-york-v4/command.json @@ -10,8 +10,8 @@ ], "files": [ { - "path": "registry/ui/command.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Command as CommandPrimitive } from \"cmdk\"\nimport { SearchIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"@/registry/ui/dialog\"\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandDialog({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n ...props\n}: React.ComponentProps & {\n title?: string\n description?: string\n}) {\n return (\n \n \n {title}\n {description}\n \n \n \n {children}\n \n \n \n )\n}\n\nfunction CommandInput({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n )\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandEmpty({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandShortcut({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n )\n}\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n", + "path": "registry/new-york-v4/ui/command.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Command as CommandPrimitive } from \"cmdk\"\nimport { SearchIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"@/registry/new-york-v4/ui/dialog\"\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandDialog({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n ...props\n}: React.ComponentProps & {\n title?: string\n description?: string\n}) {\n return (\n \n \n {title}\n {description}\n \n \n \n {children}\n \n \n \n )\n}\n\nfunction CommandInput({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n )\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandEmpty({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction CommandShortcut({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n )\n}\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n", "type": "registry:ui" } ] diff --git a/apps/www/public/r/styles/new-york-v4/context-menu.json b/apps/www/public/r/styles/new-york-v4/context-menu.json index f30b45aa891..46001ea158d 100644 --- a/apps/www/public/r/styles/new-york-v4/context-menu.json +++ b/apps/www/public/r/styles/new-york-v4/context-menu.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/context-menu.tsx", + "path": "registry/new-york-v4/ui/context-menu.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\"\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction ContextMenu({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction ContextMenuTrigger({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ContextMenuGroup({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ContextMenuPortal({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ContextMenuSub({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction ContextMenuRadioGroup({\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ContextMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps & {\n inset?: boolean\n}) {\n return (\n \n {children}\n \n \n )\n}\n\nfunction ContextMenuSubContent({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ContextMenuContent({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nfunction ContextMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps & {\n inset?: boolean\n variant?: \"default\" | \"destructive\"\n}) {\n return (\n \n )\n}\n\nfunction ContextMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {children}\n \n )\n}\n\nfunction ContextMenuRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {children}\n \n )\n}\n\nfunction ContextMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps & {\n inset?: boolean\n}) {\n return (\n \n )\n}\n\nfunction ContextMenuSeparator({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ContextMenuShortcut({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n )\n}\n\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuPortal,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuRadioGroup,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/dialog.json b/apps/www/public/r/styles/new-york-v4/dialog.json index 3ce81073404..c1981ea18de 100644 --- a/apps/www/public/r/styles/new-york-v4/dialog.json +++ b/apps/www/public/r/styles/new-york-v4/dialog.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/dialog.tsx", + "path": "registry/new-york-v4/ui/dialog.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n {children}\n \n \n Close\n \n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/drawer.json b/apps/www/public/r/styles/new-york-v4/drawer.json index af1f86e0d59..ba2e5859e87 100644 --- a/apps/www/public/r/styles/new-york-v4/drawer.json +++ b/apps/www/public/r/styles/new-york-v4/drawer.json @@ -8,7 +8,7 @@ ], "files": [ { - "path": "registry/ui/drawer.tsx", + "path": "registry/new-york-v4/ui/drawer.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Drawer({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DrawerTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DrawerPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DrawerClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DrawerOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n )\n}\n\nfunction NavigationMenuLink({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction NavigationMenuIndicator({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n
\n \n )\n}\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n navigationMenuTriggerStyle,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/pagination.json b/apps/www/public/r/styles/new-york-v4/pagination.json index eac8621befb..18d91f44431 100644 --- a/apps/www/public/r/styles/new-york-v4/pagination.json +++ b/apps/www/public/r/styles/new-york-v4/pagination.json @@ -7,8 +7,8 @@ ], "files": [ { - "path": "registry/ui/pagination.tsx", - "content": "import * as React from \"react\"\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon,\n} from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, buttonVariants } from \"@/registry/ui/button\"\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n \n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n \n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n return
  • \n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick, \"size\"> &\n React.ComponentProps<\"a\">\n\nfunction PaginationLink({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) {\n return (\n \n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n Previous\n \n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n Next\n \n \n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n \n More pages\n \n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n", + "path": "registry/new-york-v4/ui/pagination.tsx", + "content": "import * as React from \"react\"\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon,\n} from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, buttonVariants } from \"@/registry/new-york-v4/ui/button\"\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n \n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n \n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n return
  • \n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick, \"size\"> &\n React.ComponentProps<\"a\">\n\nfunction PaginationLink({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) {\n return (\n \n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n Previous\n \n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n Next\n \n \n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n \n \n More pages\n \n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n", "type": "registry:ui" } ] diff --git a/apps/www/public/r/styles/new-york-v4/popover.json b/apps/www/public/r/styles/new-york-v4/popover.json index 9bd2c08ea89..385b419fed5 100644 --- a/apps/www/public/r/styles/new-york-v4/popover.json +++ b/apps/www/public/r/styles/new-york-v4/popover.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/popover.tsx", + "path": "registry/new-york-v4/ui/popover.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Popover({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction PopoverContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/progress.json b/apps/www/public/r/styles/new-york-v4/progress.json index dea1fa99edc..20f1d946c02 100644 --- a/apps/www/public/r/styles/new-york-v4/progress.json +++ b/apps/www/public/r/styles/new-york-v4/progress.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/progress.tsx", + "path": "registry/new-york-v4/ui/progress.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nexport { Progress }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/radio-group.json b/apps/www/public/r/styles/new-york-v4/radio-group.json index f93abf190ae..4ff445e6d19 100644 --- a/apps/www/public/r/styles/new-york-v4/radio-group.json +++ b/apps/www/public/r/styles/new-york-v4/radio-group.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/radio-group.tsx", + "path": "registry/new-york-v4/ui/radio-group.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\nimport { CircleIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction RadioGroup({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction RadioGroupItem({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n )\n}\n\nexport { RadioGroup, RadioGroupItem }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/resizable.json b/apps/www/public/r/styles/new-york-v4/resizable.json index 23c2f847c62..4e0217c6e0c 100644 --- a/apps/www/public/r/styles/new-york-v4/resizable.json +++ b/apps/www/public/r/styles/new-york-v4/resizable.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/resizable.tsx", + "path": "registry/new-york-v4/ui/resizable.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { GripVerticalIcon } from \"lucide-react\"\nimport * as ResizablePrimitive from \"react-resizable-panels\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction ResizablePanel({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: React.ComponentProps & {\n withHandle?: boolean\n}) {\n return (\n div]:rotate-90\",\n className\n )}\n {...props}\n >\n {withHandle && (\n
    \n \n
    \n )}\n \n )\n}\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/scroll-area.json b/apps/www/public/r/styles/new-york-v4/scroll-area.json index c22978cdf37..bf7fb1fdb24 100644 --- a/apps/www/public/r/styles/new-york-v4/scroll-area.json +++ b/apps/www/public/r/styles/new-york-v4/scroll-area.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/scroll-area.tsx", + "path": "registry/new-york-v4/ui/scroll-area.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction ScrollAreaRoot({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n {children}\n \n \n \n \n )\n}\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nconst ScrollArea = ScrollAreaRoot\n\nexport { ScrollArea, ScrollBar }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/select.json b/apps/www/public/r/styles/new-york-v4/select.json index 6dfc61b423c..fa4de2ddb92 100644 --- a/apps/www/public/r/styles/new-york-v4/select.json +++ b/apps/www/public/r/styles/new-york-v4/select.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/select.tsx", + "path": "registry/new-york-v4/ui/select.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Select({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n span]:line-clamp-1\",\n className\n )}\n {...props}\n >\n {children}\n \n \n \n \n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n {children}\n \n \n \n \n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {children}\n \n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/separator.json b/apps/www/public/r/styles/new-york-v4/separator.json index 73672ff80ab..926c6c28f21 100644 --- a/apps/www/public/r/styles/new-york-v4/separator.json +++ b/apps/www/public/r/styles/new-york-v4/separator.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/separator.tsx", + "path": "registry/new-york-v4/ui/separator.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport { Separator }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/sheet.json b/apps/www/public/r/styles/new-york-v4/sheet.json index 25478f868c5..3cf2cf1aef5 100644 --- a/apps/www/public/r/styles/new-york-v4/sheet.json +++ b/apps/www/public/r/styles/new-york-v4/sheet.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/sheet.tsx", + "path": "registry/new-york-v4/ui/sheet.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Sheet({ ...props }: React.ComponentProps) {\n return \n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n ...props\n}: React.ComponentProps & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n}) {\n return (\n \n \n \n {children}\n \n \n Close\n \n \n \n )\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction SheetTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-01.json b/apps/www/public/r/styles/new-york-v4/sidebar-01.json index 7f3577aba01..90cdcea7863 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-01.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-01.json @@ -12,24 +12,24 @@ ], "files": [ { - "path": "registry/blocks/sidebar-01/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-01/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-01/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-01/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-01/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\n\nimport { SearchForm } from \"@/registry/blocks/sidebar-01/components/search-form\"\nimport { VersionSwitcher } from \"@/registry/blocks/sidebar-01/components/version-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {/* We create a SidebarGroup for each parent. */}\n {data.navMain.map((item) => (\n \n {item.title}\n \n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n \n ))}\n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-01/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\n\nimport { SearchForm } from \"@/registry/new-york-v4/blocks/sidebar-01/components/search-form\"\nimport { VersionSwitcher } from \"@/registry/new-york-v4/blocks/sidebar-01/components/version-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {/* We create a SidebarGroup for each parent. */}\n {data.navMain.map((item) => (\n \n {item.title}\n \n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n \n ))}\n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-01/components/search-form.tsx", - "content": "import { Search } from \"lucide-react\"\n\nimport { Label } from \"@/registry/ui/label\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarInput,\n} from \"@/registry/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n
    \n \n \n \n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx", + "content": "import { Search } from \"lucide-react\"\n\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarInput,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n
    \n \n \n \n \n \n \n \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-01/components/version-switcher.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Check, ChevronsUpDown, GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function VersionSwitcher({\n versions,\n defaultVersion,\n}: {\n versions: string[]\n defaultVersion: string\n}) {\n const [selectedVersion, setSelectedVersion] = React.useState(defaultVersion)\n\n return (\n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v{selectedVersion}\n
    \n \n \n
    \n \n {versions.map((version) => (\n setSelectedVersion(version)}\n >\n v{version}{\" \"}\n {version === selectedVersion && }\n \n ))}\n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Check, ChevronsUpDown, GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function VersionSwitcher({\n versions,\n defaultVersion,\n}: {\n versions: string[]\n defaultVersion: string\n}) {\n const [selectedVersion, setSelectedVersion] = React.useState(defaultVersion)\n\n return (\n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v{selectedVersion}\n
    \n \n \n
    \n \n {versions.map((version) => (\n setSelectedVersion(version)}\n >\n v{version}{\" \"}\n {version === selectedVersion && }\n \n ))}\n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-02.json b/apps/www/public/r/styles/new-york-v4/sidebar-02.json index 0ccaa673efc..1e5c0706818 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-02.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-02.json @@ -12,24 +12,24 @@ ], "files": [ { - "path": "registry/blocks/sidebar-02/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-02/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n {Array.from({ length: 24 }).map((_, index) => (\n \n ))}\n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-02/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-02/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n {Array.from({ length: 24 }).map((_, index) => (\n \n ))}\n
    \n
    \n
    \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-02/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { ChevronRight } from \"lucide-react\"\n\nimport { SearchForm } from \"@/registry/blocks/sidebar-02/components/search-form\"\nimport { VersionSwitcher } from \"@/registry/blocks/sidebar-02/components/version-switcher\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {/* We create a collapsible SidebarGroup for each parent. */}\n {data.navMain.map((item) => (\n \n \n \n \n {item.title}{\" \"}\n \n \n \n \n \n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n \n \n \n ))}\n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-02/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { ChevronRight } from \"lucide-react\"\n\nimport { SearchForm } from \"@/registry/new-york-v4/blocks/sidebar-02/components/search-form\"\nimport { VersionSwitcher } from \"@/registry/new-york-v4/blocks/sidebar-02/components/version-switcher\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n {/* We create a collapsible SidebarGroup for each parent. */}\n {data.navMain.map((item) => (\n \n \n \n \n {item.title}{\" \"}\n \n \n \n \n \n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n \n \n \n ))}\n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-02/components/search-form.tsx", - "content": "import { Search } from \"lucide-react\"\n\nimport { Label } from \"@/registry/ui/label\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarInput,\n} from \"@/registry/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n
    \n \n \n \n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-02/components/search-form.tsx", + "content": "import { Search } from \"lucide-react\"\n\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarInput,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n
    \n \n \n \n \n \n \n \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-02/components/version-switcher.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Check, ChevronsUpDown, GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function VersionSwitcher({\n versions,\n defaultVersion,\n}: {\n versions: string[]\n defaultVersion: string\n}) {\n const [selectedVersion, setSelectedVersion] = React.useState(defaultVersion)\n\n return (\n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v{selectedVersion}\n
    \n \n \n
    \n \n {versions.map((version) => (\n setSelectedVersion(version)}\n >\n v{version}{\" \"}\n {version === selectedVersion && }\n \n ))}\n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-02/components/version-switcher.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Check, ChevronsUpDown, GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function VersionSwitcher({\n versions,\n defaultVersion,\n}: {\n versions: string[]\n defaultVersion: string\n}) {\n const [selectedVersion, setSelectedVersion] = React.useState(defaultVersion)\n\n return (\n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v{selectedVersion}\n
    \n \n \n
    \n \n {versions.map((version) => (\n setSelectedVersion(version)}\n >\n v{version}{\" \"}\n {version === selectedVersion && }\n \n ))}\n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-03.json b/apps/www/public/r/styles/new-york-v4/sidebar-03.json index 4e0a9ac6fa8..8efa453fe2a 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-03.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-03.json @@ -9,14 +9,14 @@ ], "files": [ { - "path": "registry/blocks/sidebar-03/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-03/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-03/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-03/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-03/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n {data.navMain.map((item) => (\n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n ) : null}\n \n ))}\n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-03/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n {data.navMain.map((item) => (\n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n ) : null}\n \n ))}\n \n \n \n \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-04.json b/apps/www/public/r/styles/new-york-v4/sidebar-04.json index 7d5ad8edd7b..6d281ca3251 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-04.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-04.json @@ -10,14 +10,14 @@ ], "files": [ { - "path": "registry/blocks/sidebar-04/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-04/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-04/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-04/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-04/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n {data.navMain.map((item) => (\n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n ) : null}\n \n ))}\n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-04/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd } from \"lucide-react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n {data.navMain.map((item) => (\n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n ) : null}\n \n ))}\n \n \n \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-05.json b/apps/www/public/r/styles/new-york-v4/sidebar-05.json index 5bee201a9c4..aa8c6586af5 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-05.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-05.json @@ -12,19 +12,19 @@ ], "files": [ { - "path": "registry/blocks/sidebar-05/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-05/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-05/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-05/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-05/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd, Minus, Plus } from \"lucide-react\"\n\nimport { SearchForm } from \"@/registry/blocks/sidebar-05/components/search-form\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \n \n {data.navMain.map((item, index) => (\n \n \n \n \n {item.title}{\" \"}\n \n \n \n \n {item.items?.length ? (\n \n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n ) : null}\n \n \n ))}\n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-05/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd, Minus, Plus } from \"lucide-react\"\n\nimport { SearchForm } from \"@/registry/new-york-v4/blocks/sidebar-05/components/search-form\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \n \n {data.navMain.map((item, index) => (\n \n \n \n \n {item.title}{\" \"}\n \n \n \n \n {item.items?.length ? (\n \n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n ) : null}\n \n \n ))}\n \n \n \n \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-05/components/search-form.tsx", - "content": "import { Search } from \"lucide-react\"\n\nimport { Label } from \"@/registry/ui/label\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarInput,\n} from \"@/registry/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n
    \n \n \n \n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx", + "content": "import { Search } from \"lucide-react\"\n\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarInput,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n return (\n
    \n \n \n \n \n \n \n \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-06.json b/apps/www/public/r/styles/new-york-v4/sidebar-06.json index 1607b6aca6e..28889a5a775 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-06.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-06.json @@ -12,24 +12,24 @@ ], "files": [ { - "path": "registry/blocks/sidebar-06/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-06/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-06/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-06/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd } from \"lucide-react\"\n\nimport { NavMain } from \"@/registry/blocks/sidebar-06/components/nav-main\"\nimport { SidebarOptInForm } from \"@/registry/blocks/sidebar-06/components/sidebar-opt-in-form\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n
    \n \n
    \n
    \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-06/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { GalleryVerticalEnd } from \"lucide-react\"\n\nimport { NavMain } from \"@/registry/new-york-v4/blocks/sidebar-06/components/nav-main\"\nimport { SidebarOptInForm } from \"@/registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Documentation\n v1.0.0\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n
    \n \n
    \n
    \n \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-06/components/nav-main.tsx", - "content": "\"use client\"\n\nimport { MoreHorizontal, type LucideIcon } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon?: LucideIcon\n isActive?: boolean\n items?: {\n title: string\n url: string\n }[]\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n {items.map((item) => (\n \n \n \n \n {item.title} \n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n {item.title}\n \n ))}\n \n ) : null}\n \n \n ))}\n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-06/components/nav-main.tsx", + "content": "\"use client\"\n\nimport { MoreHorizontal, type LucideIcon } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon?: LucideIcon\n isActive?: boolean\n items?: {\n title: string\n url: string\n }[]\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n {items.map((item) => (\n \n \n \n \n {item.title} \n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n {item.title}\n \n ))}\n \n ) : null}\n \n \n ))}\n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-06/components/sidebar-opt-in-form.tsx", - "content": "import { Button } from \"@/registry/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/ui/card\"\nimport { SidebarInput } from \"@/registry/ui/sidebar\"\n\nexport function SidebarOptInForm() {\n return (\n \n
    \n \n Subscribe to our newsletter\n \n Opt-in to receive updates and news about the sidebar.\n \n \n \n \n \n Subscribe\n \n \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-06/components/sidebar-opt-in-form.tsx", + "content": "import { Button } from \"@/registry/new-york-v4/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport { SidebarInput } from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function SidebarOptInForm() {\n return (\n \n
    \n \n Subscribe to our newsletter\n \n Opt-in to receive updates and news about the sidebar.\n \n \n \n \n \n Subscribe\n \n \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-07.json b/apps/www/public/r/styles/new-york-v4/sidebar-07.json index 194f863554c..332b53c29fd 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-07.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-07.json @@ -13,34 +13,34 @@ ], "files": [ { - "path": "registry/blocks/sidebar-07/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-07/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-07/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-07/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-07/components/app-sidebar.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n AudioWaveform,\n BookOpen,\n Bot,\n Command,\n Frame,\n GalleryVerticalEnd,\n Map,\n PieChart,\n Settings2,\n SquareTerminal,\n} from \"lucide-react\"\n\nimport { NavMain } from \"@/registry/blocks/sidebar-07/components/nav-main\"\nimport { NavProjects } from \"@/registry/blocks/sidebar-07/components/nav-projects\"\nimport { NavUser } from \"@/registry/blocks/sidebar-07/components/nav-user\"\nimport { TeamSwitcher } from \"@/registry/blocks/sidebar-07/components/team-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n teams: [\n {\n name: \"Acme Inc\",\n logo: GalleryVerticalEnd,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Playground\",\n url: \"#\",\n icon: SquareTerminal,\n isActive: true,\n items: [\n {\n title: \"History\",\n url: \"#\",\n },\n {\n title: \"Starred\",\n url: \"#\",\n },\n {\n title: \"Settings\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Models\",\n url: \"#\",\n icon: Bot,\n items: [\n {\n title: \"Genesis\",\n url: \"#\",\n },\n {\n title: \"Explorer\",\n url: \"#\",\n },\n {\n title: \"Quantum\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Documentation\",\n url: \"#\",\n icon: BookOpen,\n items: [\n {\n title: \"Introduction\",\n url: \"#\",\n },\n {\n title: \"Get Started\",\n url: \"#\",\n },\n {\n title: \"Tutorials\",\n url: \"#\",\n },\n {\n title: \"Changelog\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n items: [\n {\n title: \"General\",\n url: \"#\",\n },\n {\n title: \"Team\",\n url: \"#\",\n },\n {\n title: \"Billing\",\n url: \"#\",\n },\n {\n title: \"Limits\",\n url: \"#\",\n },\n ],\n },\n ],\n projects: [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: Frame,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChart,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: Map,\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-07/components/app-sidebar.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n AudioWaveform,\n BookOpen,\n Bot,\n Command,\n Frame,\n GalleryVerticalEnd,\n Map,\n PieChart,\n Settings2,\n SquareTerminal,\n} from \"lucide-react\"\n\nimport { NavMain } from \"@/registry/new-york-v4/blocks/sidebar-07/components/nav-main\"\nimport { NavProjects } from \"@/registry/new-york-v4/blocks/sidebar-07/components/nav-projects\"\nimport { NavUser } from \"@/registry/new-york-v4/blocks/sidebar-07/components/nav-user\"\nimport { TeamSwitcher } from \"@/registry/new-york-v4/blocks/sidebar-07/components/team-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n teams: [\n {\n name: \"Acme Inc\",\n logo: GalleryVerticalEnd,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Playground\",\n url: \"#\",\n icon: SquareTerminal,\n isActive: true,\n items: [\n {\n title: \"History\",\n url: \"#\",\n },\n {\n title: \"Starred\",\n url: \"#\",\n },\n {\n title: \"Settings\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Models\",\n url: \"#\",\n icon: Bot,\n items: [\n {\n title: \"Genesis\",\n url: \"#\",\n },\n {\n title: \"Explorer\",\n url: \"#\",\n },\n {\n title: \"Quantum\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Documentation\",\n url: \"#\",\n icon: BookOpen,\n items: [\n {\n title: \"Introduction\",\n url: \"#\",\n },\n {\n title: \"Get Started\",\n url: \"#\",\n },\n {\n title: \"Tutorials\",\n url: \"#\",\n },\n {\n title: \"Changelog\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n items: [\n {\n title: \"General\",\n url: \"#\",\n },\n {\n title: \"Team\",\n url: \"#\",\n },\n {\n title: \"Billing\",\n url: \"#\",\n },\n {\n title: \"Limits\",\n url: \"#\",\n },\n ],\n },\n ],\n projects: [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: Frame,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChart,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: Map,\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/nav-main.tsx", - "content": "\"use client\"\n\nimport { ChevronRight, type LucideIcon } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon?: LucideIcon\n isActive?: boolean\n items?: {\n title: string\n url: string\n }[]\n }[]\n}) {\n return (\n \n Platform\n \n {items.map((item) => (\n \n \n \n \n {item.icon && }\n {item.title}\n \n \n \n \n \n {item.items?.map((subItem) => (\n \n \n \n {subItem.title}\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-07/components/nav-main.tsx", + "content": "\"use client\"\n\nimport { ChevronRight, type LucideIcon } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon?: LucideIcon\n isActive?: boolean\n items?: {\n title: string\n url: string\n }[]\n }[]\n}) {\n return (\n \n Platform\n \n {items.map((item) => (\n \n \n \n \n {item.icon && }\n {item.title}\n \n \n \n \n \n {item.items?.map((subItem) => (\n \n \n \n {subItem.title}\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/nav-projects.tsx", - "content": "\"use client\"\n\nimport {\n Folder,\n Forward,\n MoreHorizontal,\n Trash2,\n type LucideIcon,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavProjects({\n projects,\n}: {\n projects: {\n name: string\n url: string\n icon: LucideIcon\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Projects\n \n {projects.map((item) => (\n \n \n \n \n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n View Project\n \n \n \n Share Project\n \n \n \n \n Delete Project\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-07/components/nav-projects.tsx", + "content": "\"use client\"\n\nimport {\n Folder,\n Forward,\n MoreHorizontal,\n Trash2,\n type LucideIcon,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavProjects({\n projects,\n}: {\n projects: {\n name: string\n url: string\n icon: LucideIcon\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Projects\n \n {projects.map((item) => (\n \n \n \n \n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n View Project\n \n \n \n Share Project\n \n \n \n \n Delete Project\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/nav-user.tsx", - "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/registry/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-07/components/nav-user.tsx", + "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/new-york-v4/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-07/components/team-switcher.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronsUpDown, Plus } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function TeamSwitcher({\n teams,\n}: {\n teams: {\n name: string\n logo: React.ElementType\n plan: string\n }[]\n}) {\n const { isMobile } = useSidebar()\n const [activeTeam, setActiveTeam] = React.useState(teams[0])\n\n return (\n \n \n \n \n \n
    \n \n
    \n
    \n \n {activeTeam.name}\n \n {activeTeam.plan}\n
    \n \n \n
    \n \n \n Teams\n \n {teams.map((team, index) => (\n setActiveTeam(team)}\n className=\"gap-2 p-2\"\n >\n
    \n \n
    \n {team.name}\n ⌘{index + 1}\n \n ))}\n \n \n
    \n \n
    \n
    Add team
    \n
    \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-07/components/team-switcher.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronsUpDown, Plus } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function TeamSwitcher({\n teams,\n}: {\n teams: {\n name: string\n logo: React.ElementType\n plan: string\n }[]\n}) {\n const { isMobile } = useSidebar()\n const [activeTeam, setActiveTeam] = React.useState(teams[0])\n\n return (\n \n \n \n \n \n
    \n \n
    \n
    \n \n {activeTeam.name}\n \n {activeTeam.plan}\n
    \n \n \n
    \n \n \n Teams\n \n {teams.map((team, index) => (\n setActiveTeam(team)}\n className=\"gap-2 p-2\"\n >\n
    \n \n
    \n {team.name}\n ⌘{index + 1}\n \n ))}\n \n \n
    \n \n
    \n
    Add team
    \n
    \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-08.json b/apps/www/public/r/styles/new-york-v4/sidebar-08.json index badc7f891b0..81645722622 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-08.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-08.json @@ -13,34 +13,34 @@ ], "files": [ { - "path": "registry/blocks/sidebar-08/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-08/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-08/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-08/components/app-sidebar.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n BookOpen,\n Bot,\n Command,\n Frame,\n LifeBuoy,\n Map,\n PieChart,\n Send,\n Settings2,\n SquareTerminal,\n} from \"lucide-react\"\n\nimport { NavMain } from \"@/registry/blocks/sidebar-08/components/nav-main\"\nimport { NavProjects } from \"@/registry/blocks/sidebar-08/components/nav-projects\"\nimport { NavSecondary } from \"@/registry/blocks/sidebar-08/components/nav-secondary\"\nimport { NavUser } from \"@/registry/blocks/sidebar-08/components/nav-user\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n navMain: [\n {\n title: \"Playground\",\n url: \"#\",\n icon: SquareTerminal,\n isActive: true,\n items: [\n {\n title: \"History\",\n url: \"#\",\n },\n {\n title: \"Starred\",\n url: \"#\",\n },\n {\n title: \"Settings\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Models\",\n url: \"#\",\n icon: Bot,\n items: [\n {\n title: \"Genesis\",\n url: \"#\",\n },\n {\n title: \"Explorer\",\n url: \"#\",\n },\n {\n title: \"Quantum\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Documentation\",\n url: \"#\",\n icon: BookOpen,\n items: [\n {\n title: \"Introduction\",\n url: \"#\",\n },\n {\n title: \"Get Started\",\n url: \"#\",\n },\n {\n title: \"Tutorials\",\n url: \"#\",\n },\n {\n title: \"Changelog\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n items: [\n {\n title: \"General\",\n url: \"#\",\n },\n {\n title: \"Team\",\n url: \"#\",\n },\n {\n title: \"Billing\",\n url: \"#\",\n },\n {\n title: \"Limits\",\n url: \"#\",\n },\n ],\n },\n ],\n navSecondary: [\n {\n title: \"Support\",\n url: \"#\",\n icon: LifeBuoy,\n },\n {\n title: \"Feedback\",\n url: \"#\",\n icon: Send,\n },\n ],\n projects: [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: Frame,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChart,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: Map,\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Acme Inc\n Enterprise\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n BookOpen,\n Bot,\n Command,\n Frame,\n LifeBuoy,\n Map,\n PieChart,\n Send,\n Settings2,\n SquareTerminal,\n} from \"lucide-react\"\n\nimport { NavMain } from \"@/registry/new-york-v4/blocks/sidebar-08/components/nav-main\"\nimport { NavProjects } from \"@/registry/new-york-v4/blocks/sidebar-08/components/nav-projects\"\nimport { NavSecondary } from \"@/registry/new-york-v4/blocks/sidebar-08/components/nav-secondary\"\nimport { NavUser } from \"@/registry/new-york-v4/blocks/sidebar-08/components/nav-user\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n navMain: [\n {\n title: \"Playground\",\n url: \"#\",\n icon: SquareTerminal,\n isActive: true,\n items: [\n {\n title: \"History\",\n url: \"#\",\n },\n {\n title: \"Starred\",\n url: \"#\",\n },\n {\n title: \"Settings\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Models\",\n url: \"#\",\n icon: Bot,\n items: [\n {\n title: \"Genesis\",\n url: \"#\",\n },\n {\n title: \"Explorer\",\n url: \"#\",\n },\n {\n title: \"Quantum\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Documentation\",\n url: \"#\",\n icon: BookOpen,\n items: [\n {\n title: \"Introduction\",\n url: \"#\",\n },\n {\n title: \"Get Started\",\n url: \"#\",\n },\n {\n title: \"Tutorials\",\n url: \"#\",\n },\n {\n title: \"Changelog\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n items: [\n {\n title: \"General\",\n url: \"#\",\n },\n {\n title: \"Team\",\n url: \"#\",\n },\n {\n title: \"Billing\",\n url: \"#\",\n },\n {\n title: \"Limits\",\n url: \"#\",\n },\n ],\n },\n ],\n navSecondary: [\n {\n title: \"Support\",\n url: \"#\",\n icon: LifeBuoy,\n },\n {\n title: \"Feedback\",\n url: \"#\",\n icon: Send,\n },\n ],\n projects: [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: Frame,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChart,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: Map,\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n
    \n \n
    \n
    \n Acme Inc\n Enterprise\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-main.tsx", - "content": "\"use client\"\n\nimport { ChevronRight, type LucideIcon } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n isActive?: boolean\n items?: {\n title: string\n url: string\n }[]\n }[]\n}) {\n return (\n \n Platform\n \n {items.map((item) => (\n \n \n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n <>\n \n \n \n Toggle\n \n \n \n \n {item.items?.map((subItem) => (\n \n \n \n {subItem.title}\n \n \n \n ))}\n \n \n \n ) : null}\n \n \n ))}\n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-main.tsx", + "content": "\"use client\"\n\nimport { ChevronRight, type LucideIcon } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n isActive?: boolean\n items?: {\n title: string\n url: string\n }[]\n }[]\n}) {\n return (\n \n Platform\n \n {items.map((item) => (\n \n \n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n <>\n \n \n \n Toggle\n \n \n \n \n {item.items?.map((subItem) => (\n \n \n \n {subItem.title}\n \n \n \n ))}\n \n \n \n ) : null}\n \n \n ))}\n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-projects.tsx", - "content": "\"use client\"\n\nimport {\n Folder,\n MoreHorizontal,\n Share,\n Trash2,\n type LucideIcon,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavProjects({\n projects,\n}: {\n projects: {\n name: string\n url: string\n icon: LucideIcon\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Projects\n \n {projects.map((item) => (\n \n \n \n \n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n View Project\n \n \n \n Share Project\n \n \n \n \n Delete Project\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-projects.tsx", + "content": "\"use client\"\n\nimport {\n Folder,\n MoreHorizontal,\n Share,\n Trash2,\n type LucideIcon,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavProjects({\n projects,\n}: {\n projects: {\n name: string\n url: string\n icon: LucideIcon\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Projects\n \n {projects.map((item) => (\n \n \n \n \n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n View Project\n \n \n \n Share Project\n \n \n \n \n Delete Project\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-secondary.tsx", - "content": "import * as React from \"react\"\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n }[]\n} & React.ComponentPropsWithoutRef) {\n return (\n \n \n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n \n ))}\n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-secondary.tsx", + "content": "import * as React from \"react\"\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n }[]\n} & React.ComponentPropsWithoutRef) {\n return (\n \n \n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n \n ))}\n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-08/components/nav-user.tsx", - "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/registry/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-08/components/nav-user.tsx", + "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/new-york-v4/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-09.json b/apps/www/public/r/styles/new-york-v4/sidebar-09.json index 85a2be9f24e..b821a9f9136 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-09.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-09.json @@ -14,19 +14,19 @@ ], "files": [ { - "path": "registry/blocks/sidebar-09/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-09/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n All Inboxes\n \n \n \n Inbox\n \n \n \n
    \n
    \n {Array.from({ length: 24 }).map((_, index) => (\n \n ))}\n
    \n
    \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-09/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-09/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n All Inboxes\n \n \n \n Inbox\n \n \n \n
    \n
    \n {Array.from({ length: 24 }).map((_, index) => (\n \n ))}\n
    \n
    \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-09/components/app-sidebar.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ArchiveX, Command, File, Inbox, Send, Trash2 } from \"lucide-react\"\n\nimport { NavUser } from \"@/registry/blocks/sidebar-09/components/nav-user\"\nimport { Label } from \"@/registry/ui/label\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupContent,\n SidebarHeader,\n SidebarInput,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\nimport { Switch } from \"@/registry/ui/switch\"\n\n// This is sample data\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n navMain: [\n {\n title: \"Inbox\",\n url: \"#\",\n icon: Inbox,\n isActive: true,\n },\n {\n title: \"Drafts\",\n url: \"#\",\n icon: File,\n isActive: false,\n },\n {\n title: \"Sent\",\n url: \"#\",\n icon: Send,\n isActive: false,\n },\n {\n title: \"Junk\",\n url: \"#\",\n icon: ArchiveX,\n isActive: false,\n },\n {\n title: \"Trash\",\n url: \"#\",\n icon: Trash2,\n isActive: false,\n },\n ],\n mails: [\n {\n name: \"William Smith\",\n email: \"williamsmith@example.com\",\n subject: \"Meeting Tomorrow\",\n date: \"09:34 AM\",\n teaser:\n \"Hi team, just a reminder about our meeting tomorrow at 10 AM.\\nPlease come prepared with your project updates.\",\n },\n {\n name: \"Alice Smith\",\n email: \"alicesmith@example.com\",\n subject: \"Re: Project Update\",\n date: \"Yesterday\",\n teaser:\n \"Thanks for the update. The progress looks great so far.\\nLet's schedule a call to discuss the next steps.\",\n },\n {\n name: \"Bob Johnson\",\n email: \"bobjohnson@example.com\",\n subject: \"Weekend Plans\",\n date: \"2 days ago\",\n teaser:\n \"Hey everyone! I'm thinking of organizing a team outing this weekend.\\nWould you be interested in a hiking trip or a beach day?\",\n },\n {\n name: \"Emily Davis\",\n email: \"emilydavis@example.com\",\n subject: \"Re: Question about Budget\",\n date: \"2 days ago\",\n teaser:\n \"I've reviewed the budget numbers you sent over.\\nCan we set up a quick call to discuss some potential adjustments?\",\n },\n {\n name: \"Michael Wilson\",\n email: \"michaelwilson@example.com\",\n subject: \"Important Announcement\",\n date: \"1 week ago\",\n teaser:\n \"Please join us for an all-hands meeting this Friday at 3 PM.\\nWe have some exciting news to share about the company's future.\",\n },\n {\n name: \"Sarah Brown\",\n email: \"sarahbrown@example.com\",\n subject: \"Re: Feedback on Proposal\",\n date: \"1 week ago\",\n teaser:\n \"Thank you for sending over the proposal. I've reviewed it and have some thoughts.\\nCould we schedule a meeting to discuss my feedback in detail?\",\n },\n {\n name: \"David Lee\",\n email: \"davidlee@example.com\",\n subject: \"New Project Idea\",\n date: \"1 week ago\",\n teaser:\n \"I've been brainstorming and came up with an interesting project concept.\\nDo you have time this week to discuss its potential impact and feasibility?\",\n },\n {\n name: \"Olivia Wilson\",\n email: \"oliviawilson@example.com\",\n subject: \"Vacation Plans\",\n date: \"1 week ago\",\n teaser:\n \"Just a heads up that I'll be taking a two-week vacation next month.\\nI'll make sure all my projects are up to date before I leave.\",\n },\n {\n name: \"James Martin\",\n email: \"jamesmartin@example.com\",\n subject: \"Re: Conference Registration\",\n date: \"1 week ago\",\n teaser:\n \"I've completed the registration for the upcoming tech conference.\\nLet me know if you need any additional information from my end.\",\n },\n {\n name: \"Sophia White\",\n email: \"sophiawhite@example.com\",\n subject: \"Team Dinner\",\n date: \"1 week ago\",\n teaser:\n \"To celebrate our recent project success, I'd like to organize a team dinner.\\nAre you available next Friday evening? Please let me know your preferences.\",\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n // Note: I'm using state to show active item.\n // IRL you should use the url/router.\n const [activeItem, setActiveItem] = React.useState(data.navMain[0])\n const [mails, setMails] = React.useState(data.mails)\n const { setOpen } = useSidebar()\n\n return (\n \n {/* This is the first sidebar */}\n {/* We disable collapsible and adjust width to icon. */}\n {/* This will make the sidebar appear as icons. */}\n \n \n \n \n \n \n
    \n \n
    \n
    \n Acme Inc\n Enterprise\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n {data.navMain.map((item) => (\n \n {\n setActiveItem(item)\n const mail = data.mails.sort(() => Math.random() - 0.5)\n setMails(\n mail.slice(\n 0,\n Math.max(5, Math.floor(Math.random() * 10) + 1)\n )\n )\n setOpen(true)\n }}\n isActive={activeItem.title === item.title}\n className=\"px-2.5 md:px-2\"\n >\n \n {item.title}\n \n \n ))}\n \n \n \n \n \n \n \n \n\n {/* This is the second sidebar */}\n {/* We disable collapsible and let it fill remaining space */}\n \n \n
    \n
    \n {activeItem.title}\n
    \n \n
    \n \n
    \n \n \n \n {mails.map((mail) => (\n \n
    \n {mail.name}{\" \"}\n {mail.date}\n
    \n {mail.subject}\n \n {mail.teaser}\n \n \n ))}\n
    \n
    \n
    \n
    \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-09/components/app-sidebar.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ArchiveX, Command, File, Inbox, Send, Trash2 } from \"lucide-react\"\n\nimport { NavUser } from \"@/registry/new-york-v4/blocks/sidebar-09/components/nav-user\"\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupContent,\n SidebarHeader,\n SidebarInput,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\nimport { Switch } from \"@/registry/new-york-v4/ui/switch\"\n\n// This is sample data\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n navMain: [\n {\n title: \"Inbox\",\n url: \"#\",\n icon: Inbox,\n isActive: true,\n },\n {\n title: \"Drafts\",\n url: \"#\",\n icon: File,\n isActive: false,\n },\n {\n title: \"Sent\",\n url: \"#\",\n icon: Send,\n isActive: false,\n },\n {\n title: \"Junk\",\n url: \"#\",\n icon: ArchiveX,\n isActive: false,\n },\n {\n title: \"Trash\",\n url: \"#\",\n icon: Trash2,\n isActive: false,\n },\n ],\n mails: [\n {\n name: \"William Smith\",\n email: \"williamsmith@example.com\",\n subject: \"Meeting Tomorrow\",\n date: \"09:34 AM\",\n teaser:\n \"Hi team, just a reminder about our meeting tomorrow at 10 AM.\\nPlease come prepared with your project updates.\",\n },\n {\n name: \"Alice Smith\",\n email: \"alicesmith@example.com\",\n subject: \"Re: Project Update\",\n date: \"Yesterday\",\n teaser:\n \"Thanks for the update. The progress looks great so far.\\nLet's schedule a call to discuss the next steps.\",\n },\n {\n name: \"Bob Johnson\",\n email: \"bobjohnson@example.com\",\n subject: \"Weekend Plans\",\n date: \"2 days ago\",\n teaser:\n \"Hey everyone! I'm thinking of organizing a team outing this weekend.\\nWould you be interested in a hiking trip or a beach day?\",\n },\n {\n name: \"Emily Davis\",\n email: \"emilydavis@example.com\",\n subject: \"Re: Question about Budget\",\n date: \"2 days ago\",\n teaser:\n \"I've reviewed the budget numbers you sent over.\\nCan we set up a quick call to discuss some potential adjustments?\",\n },\n {\n name: \"Michael Wilson\",\n email: \"michaelwilson@example.com\",\n subject: \"Important Announcement\",\n date: \"1 week ago\",\n teaser:\n \"Please join us for an all-hands meeting this Friday at 3 PM.\\nWe have some exciting news to share about the company's future.\",\n },\n {\n name: \"Sarah Brown\",\n email: \"sarahbrown@example.com\",\n subject: \"Re: Feedback on Proposal\",\n date: \"1 week ago\",\n teaser:\n \"Thank you for sending over the proposal. I've reviewed it and have some thoughts.\\nCould we schedule a meeting to discuss my feedback in detail?\",\n },\n {\n name: \"David Lee\",\n email: \"davidlee@example.com\",\n subject: \"New Project Idea\",\n date: \"1 week ago\",\n teaser:\n \"I've been brainstorming and came up with an interesting project concept.\\nDo you have time this week to discuss its potential impact and feasibility?\",\n },\n {\n name: \"Olivia Wilson\",\n email: \"oliviawilson@example.com\",\n subject: \"Vacation Plans\",\n date: \"1 week ago\",\n teaser:\n \"Just a heads up that I'll be taking a two-week vacation next month.\\nI'll make sure all my projects are up to date before I leave.\",\n },\n {\n name: \"James Martin\",\n email: \"jamesmartin@example.com\",\n subject: \"Re: Conference Registration\",\n date: \"1 week ago\",\n teaser:\n \"I've completed the registration for the upcoming tech conference.\\nLet me know if you need any additional information from my end.\",\n },\n {\n name: \"Sophia White\",\n email: \"sophiawhite@example.com\",\n subject: \"Team Dinner\",\n date: \"1 week ago\",\n teaser:\n \"To celebrate our recent project success, I'd like to organize a team dinner.\\nAre you available next Friday evening? Please let me know your preferences.\",\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n // Note: I'm using state to show active item.\n // IRL you should use the url/router.\n const [activeItem, setActiveItem] = React.useState(data.navMain[0])\n const [mails, setMails] = React.useState(data.mails)\n const { setOpen } = useSidebar()\n\n return (\n \n {/* This is the first sidebar */}\n {/* We disable collapsible and adjust width to icon. */}\n {/* This will make the sidebar appear as icons. */}\n \n \n \n \n \n \n
    \n \n
    \n
    \n Acme Inc\n Enterprise\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n {data.navMain.map((item) => (\n \n {\n setActiveItem(item)\n const mail = data.mails.sort(() => Math.random() - 0.5)\n setMails(\n mail.slice(\n 0,\n Math.max(5, Math.floor(Math.random() * 10) + 1)\n )\n )\n setOpen(true)\n }}\n isActive={activeItem.title === item.title}\n className=\"px-2.5 md:px-2\"\n >\n \n {item.title}\n \n \n ))}\n \n \n \n \n \n \n \n \n\n {/* This is the second sidebar */}\n {/* We disable collapsible and let it fill remaining space */}\n \n \n
    \n
    \n {activeItem.title}\n
    \n \n
    \n \n
    \n \n \n \n {mails.map((mail) => (\n \n
    \n {mail.name}{\" \"}\n {mail.date}\n
    \n {mail.subject}\n \n {mail.teaser}\n \n \n ))}\n
    \n
    \n
    \n
    \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-09/components/nav-user.tsx", - "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/registry/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-09/components/nav-user.tsx", + "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/new-york-v4/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-10.json b/apps/www/public/r/styles/new-york-v4/sidebar-10.json index 5b187fa3e58..252bebd70b8 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-10.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-10.json @@ -13,44 +13,44 @@ ], "files": [ { - "path": "registry/blocks/sidebar-10/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-10/components/app-sidebar\"\nimport { NavActions } from \"@/registry/blocks/sidebar-10/components/nav-actions\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbList,\n BreadcrumbPage,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Project Management & Task Tracking\n \n \n \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-10/components/app-sidebar\"\nimport { NavActions } from \"@/registry/new-york-v4/blocks/sidebar-10/components/nav-actions\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbList,\n BreadcrumbPage,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Project Management & Task Tracking\n \n \n \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-10/components/app-sidebar.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n AudioWaveform,\n Blocks,\n Calendar,\n Command,\n Home,\n Inbox,\n MessageCircleQuestion,\n Search,\n Settings2,\n Sparkles,\n Trash2,\n} from \"lucide-react\"\n\nimport { NavFavorites } from \"@/registry/blocks/sidebar-10/components/nav-favorites\"\nimport { NavMain } from \"@/registry/blocks/sidebar-10/components/nav-main\"\nimport { NavSecondary } from \"@/registry/blocks/sidebar-10/components/nav-secondary\"\nimport { NavWorkspaces } from \"@/registry/blocks/sidebar-10/components/nav-workspaces\"\nimport { TeamSwitcher } from \"@/registry/blocks/sidebar-10/components/team-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarHeader,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n teams: [\n {\n name: \"Acme Inc\",\n logo: Command,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Search\",\n url: \"#\",\n icon: Search,\n },\n {\n title: \"Ask AI\",\n url: \"#\",\n icon: Sparkles,\n },\n {\n title: \"Home\",\n url: \"#\",\n icon: Home,\n isActive: true,\n },\n {\n title: \"Inbox\",\n url: \"#\",\n icon: Inbox,\n badge: \"10\",\n },\n ],\n navSecondary: [\n {\n title: \"Calendar\",\n url: \"#\",\n icon: Calendar,\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n },\n {\n title: \"Templates\",\n url: \"#\",\n icon: Blocks,\n },\n {\n title: \"Trash\",\n url: \"#\",\n icon: Trash2,\n },\n {\n title: \"Help\",\n url: \"#\",\n icon: MessageCircleQuestion,\n },\n ],\n favorites: [\n {\n name: \"Project Management & Task Tracking\",\n url: \"#\",\n emoji: \"📊\",\n },\n {\n name: \"Family Recipe Collection & Meal Planning\",\n url: \"#\",\n emoji: \"🍳\",\n },\n {\n name: \"Fitness Tracker & Workout Routines\",\n url: \"#\",\n emoji: \"💪\",\n },\n {\n name: \"Book Notes & Reading List\",\n url: \"#\",\n emoji: \"📚\",\n },\n {\n name: \"Sustainable Gardening Tips & Plant Care\",\n url: \"#\",\n emoji: \"🌱\",\n },\n {\n name: \"Language Learning Progress & Resources\",\n url: \"#\",\n emoji: \"🗣️\",\n },\n {\n name: \"Home Renovation Ideas & Budget Tracker\",\n url: \"#\",\n emoji: \"🏠\",\n },\n {\n name: \"Personal Finance & Investment Portfolio\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Movie & TV Show Watchlist with Reviews\",\n url: \"#\",\n emoji: \"🎬\",\n },\n {\n name: \"Daily Habit Tracker & Goal Setting\",\n url: \"#\",\n emoji: \"✅\",\n },\n ],\n workspaces: [\n {\n name: \"Personal Life Management\",\n emoji: \"🏠\",\n pages: [\n {\n name: \"Daily Journal & Reflection\",\n url: \"#\",\n emoji: \"📔\",\n },\n {\n name: \"Health & Wellness Tracker\",\n url: \"#\",\n emoji: \"🍏\",\n },\n {\n name: \"Personal Growth & Learning Goals\",\n url: \"#\",\n emoji: \"🌟\",\n },\n ],\n },\n {\n name: \"Professional Development\",\n emoji: \"💼\",\n pages: [\n {\n name: \"Career Objectives & Milestones\",\n url: \"#\",\n emoji: \"🎯\",\n },\n {\n name: \"Skill Acquisition & Training Log\",\n url: \"#\",\n emoji: \"🧠\",\n },\n {\n name: \"Networking Contacts & Events\",\n url: \"#\",\n emoji: \"🤝\",\n },\n ],\n },\n {\n name: \"Creative Projects\",\n emoji: \"🎨\",\n pages: [\n {\n name: \"Writing Ideas & Story Outlines\",\n url: \"#\",\n emoji: \"✍️\",\n },\n {\n name: \"Art & Design Portfolio\",\n url: \"#\",\n emoji: \"🖼️\",\n },\n {\n name: \"Music Composition & Practice Log\",\n url: \"#\",\n emoji: \"🎵\",\n },\n ],\n },\n {\n name: \"Home Management\",\n emoji: \"🏡\",\n pages: [\n {\n name: \"Household Budget & Expense Tracking\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Home Maintenance Schedule & Tasks\",\n url: \"#\",\n emoji: \"🔧\",\n },\n {\n name: \"Family Calendar & Event Planning\",\n url: \"#\",\n emoji: \"📅\",\n },\n ],\n },\n {\n name: \"Travel & Adventure\",\n emoji: \"🧳\",\n pages: [\n {\n name: \"Trip Planning & Itineraries\",\n url: \"#\",\n emoji: \"🗺️\",\n },\n {\n name: \"Travel Bucket List & Inspiration\",\n url: \"#\",\n emoji: \"🌎\",\n },\n {\n name: \"Travel Journal & Photo Gallery\",\n url: \"#\",\n emoji: \"📸\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/app-sidebar.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n AudioWaveform,\n Blocks,\n Calendar,\n Command,\n Home,\n Inbox,\n MessageCircleQuestion,\n Search,\n Settings2,\n Sparkles,\n Trash2,\n} from \"lucide-react\"\n\nimport { NavFavorites } from \"@/registry/new-york-v4/blocks/sidebar-10/components/nav-favorites\"\nimport { NavMain } from \"@/registry/new-york-v4/blocks/sidebar-10/components/nav-main\"\nimport { NavSecondary } from \"@/registry/new-york-v4/blocks/sidebar-10/components/nav-secondary\"\nimport { NavWorkspaces } from \"@/registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces\"\nimport { TeamSwitcher } from \"@/registry/new-york-v4/blocks/sidebar-10/components/team-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarHeader,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n teams: [\n {\n name: \"Acme Inc\",\n logo: Command,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Search\",\n url: \"#\",\n icon: Search,\n },\n {\n title: \"Ask AI\",\n url: \"#\",\n icon: Sparkles,\n },\n {\n title: \"Home\",\n url: \"#\",\n icon: Home,\n isActive: true,\n },\n {\n title: \"Inbox\",\n url: \"#\",\n icon: Inbox,\n badge: \"10\",\n },\n ],\n navSecondary: [\n {\n title: \"Calendar\",\n url: \"#\",\n icon: Calendar,\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n },\n {\n title: \"Templates\",\n url: \"#\",\n icon: Blocks,\n },\n {\n title: \"Trash\",\n url: \"#\",\n icon: Trash2,\n },\n {\n title: \"Help\",\n url: \"#\",\n icon: MessageCircleQuestion,\n },\n ],\n favorites: [\n {\n name: \"Project Management & Task Tracking\",\n url: \"#\",\n emoji: \"📊\",\n },\n {\n name: \"Family Recipe Collection & Meal Planning\",\n url: \"#\",\n emoji: \"🍳\",\n },\n {\n name: \"Fitness Tracker & Workout Routines\",\n url: \"#\",\n emoji: \"💪\",\n },\n {\n name: \"Book Notes & Reading List\",\n url: \"#\",\n emoji: \"📚\",\n },\n {\n name: \"Sustainable Gardening Tips & Plant Care\",\n url: \"#\",\n emoji: \"🌱\",\n },\n {\n name: \"Language Learning Progress & Resources\",\n url: \"#\",\n emoji: \"🗣️\",\n },\n {\n name: \"Home Renovation Ideas & Budget Tracker\",\n url: \"#\",\n emoji: \"🏠\",\n },\n {\n name: \"Personal Finance & Investment Portfolio\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Movie & TV Show Watchlist with Reviews\",\n url: \"#\",\n emoji: \"🎬\",\n },\n {\n name: \"Daily Habit Tracker & Goal Setting\",\n url: \"#\",\n emoji: \"✅\",\n },\n ],\n workspaces: [\n {\n name: \"Personal Life Management\",\n emoji: \"🏠\",\n pages: [\n {\n name: \"Daily Journal & Reflection\",\n url: \"#\",\n emoji: \"📔\",\n },\n {\n name: \"Health & Wellness Tracker\",\n url: \"#\",\n emoji: \"🍏\",\n },\n {\n name: \"Personal Growth & Learning Goals\",\n url: \"#\",\n emoji: \"🌟\",\n },\n ],\n },\n {\n name: \"Professional Development\",\n emoji: \"💼\",\n pages: [\n {\n name: \"Career Objectives & Milestones\",\n url: \"#\",\n emoji: \"🎯\",\n },\n {\n name: \"Skill Acquisition & Training Log\",\n url: \"#\",\n emoji: \"🧠\",\n },\n {\n name: \"Networking Contacts & Events\",\n url: \"#\",\n emoji: \"🤝\",\n },\n ],\n },\n {\n name: \"Creative Projects\",\n emoji: \"🎨\",\n pages: [\n {\n name: \"Writing Ideas & Story Outlines\",\n url: \"#\",\n emoji: \"✍️\",\n },\n {\n name: \"Art & Design Portfolio\",\n url: \"#\",\n emoji: \"🖼️\",\n },\n {\n name: \"Music Composition & Practice Log\",\n url: \"#\",\n emoji: \"🎵\",\n },\n ],\n },\n {\n name: \"Home Management\",\n emoji: \"🏡\",\n pages: [\n {\n name: \"Household Budget & Expense Tracking\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Home Maintenance Schedule & Tasks\",\n url: \"#\",\n emoji: \"🔧\",\n },\n {\n name: \"Family Calendar & Event Planning\",\n url: \"#\",\n emoji: \"📅\",\n },\n ],\n },\n {\n name: \"Travel & Adventure\",\n emoji: \"🧳\",\n pages: [\n {\n name: \"Trip Planning & Itineraries\",\n url: \"#\",\n emoji: \"🗺️\",\n },\n {\n name: \"Travel Bucket List & Inspiration\",\n url: \"#\",\n emoji: \"🌎\",\n },\n {\n name: \"Travel Journal & Photo Gallery\",\n url: \"#\",\n emoji: \"📸\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-actions.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n ArrowDown,\n ArrowUp,\n Bell,\n Copy,\n CornerUpLeft,\n CornerUpRight,\n FileText,\n GalleryVerticalEnd,\n LineChart,\n Link,\n MoreHorizontal,\n Settings2,\n Star,\n Trash,\n Trash2,\n} from \"lucide-react\"\n\nimport { Button } from \"@/registry/ui/button\"\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/registry/ui/popover\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nconst data = [\n [\n {\n label: \"Customize Page\",\n icon: Settings2,\n },\n {\n label: \"Turn into wiki\",\n icon: FileText,\n },\n ],\n [\n {\n label: \"Copy Link\",\n icon: Link,\n },\n {\n label: \"Duplicate\",\n icon: Copy,\n },\n {\n label: \"Move to\",\n icon: CornerUpRight,\n },\n {\n label: \"Move to Trash\",\n icon: Trash2,\n },\n ],\n [\n {\n label: \"Undo\",\n icon: CornerUpLeft,\n },\n {\n label: \"View analytics\",\n icon: LineChart,\n },\n {\n label: \"Version History\",\n icon: GalleryVerticalEnd,\n },\n {\n label: \"Show delete pages\",\n icon: Trash,\n },\n {\n label: \"Notifications\",\n icon: Bell,\n },\n ],\n [\n {\n label: \"Import\",\n icon: ArrowUp,\n },\n {\n label: \"Export\",\n icon: ArrowDown,\n },\n ],\n]\n\nexport function NavActions() {\n const [isOpen, setIsOpen] = React.useState(false)\n\n React.useEffect(() => {\n setIsOpen(true)\n }, [])\n\n return (\n
    \n \n \n \n \n \n \n \n \n \n \n \n {data.map((group, index) => (\n \n \n \n {group.map((item, index) => (\n \n \n {item.label}\n \n \n ))}\n \n \n \n ))}\n \n \n \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n ArrowDown,\n ArrowUp,\n Bell,\n Copy,\n CornerUpLeft,\n CornerUpRight,\n FileText,\n GalleryVerticalEnd,\n LineChart,\n Link,\n MoreHorizontal,\n Settings2,\n Star,\n Trash,\n Trash2,\n} from \"lucide-react\"\n\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/new-york-v4/ui/popover\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nconst data = [\n [\n {\n label: \"Customize Page\",\n icon: Settings2,\n },\n {\n label: \"Turn into wiki\",\n icon: FileText,\n },\n ],\n [\n {\n label: \"Copy Link\",\n icon: Link,\n },\n {\n label: \"Duplicate\",\n icon: Copy,\n },\n {\n label: \"Move to\",\n icon: CornerUpRight,\n },\n {\n label: \"Move to Trash\",\n icon: Trash2,\n },\n ],\n [\n {\n label: \"Undo\",\n icon: CornerUpLeft,\n },\n {\n label: \"View analytics\",\n icon: LineChart,\n },\n {\n label: \"Version History\",\n icon: GalleryVerticalEnd,\n },\n {\n label: \"Show delete pages\",\n icon: Trash,\n },\n {\n label: \"Notifications\",\n icon: Bell,\n },\n ],\n [\n {\n label: \"Import\",\n icon: ArrowUp,\n },\n {\n label: \"Export\",\n icon: ArrowDown,\n },\n ],\n]\n\nexport function NavActions() {\n const [isOpen, setIsOpen] = React.useState(false)\n\n React.useEffect(() => {\n setIsOpen(true)\n }, [])\n\n return (\n
    \n \n \n \n \n \n \n \n \n \n \n \n {data.map((group, index) => (\n \n \n \n {group.map((item, index) => (\n \n \n {item.label}\n \n \n ))}\n \n \n \n ))}\n \n \n \n \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-favorites.tsx", - "content": "\"use client\"\n\nimport {\n ArrowUpRight,\n Link,\n MoreHorizontal,\n StarOff,\n Trash2,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavFavorites({\n favorites,\n}: {\n favorites: {\n name: string\n url: string\n emoji: string\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Favorites\n \n {favorites.map((item) => (\n \n \n \n {item.emoji}\n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n Remove from Favorites\n \n \n \n \n Copy Link\n \n \n \n Open in New Tab\n \n \n \n \n Delete\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-favorites.tsx", + "content": "\"use client\"\n\nimport {\n ArrowUpRight,\n Link,\n MoreHorizontal,\n StarOff,\n Trash2,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavFavorites({\n favorites,\n}: {\n favorites: {\n name: string\n url: string\n emoji: string\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Favorites\n \n {favorites.map((item) => (\n \n \n \n {item.emoji}\n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n Remove from Favorites\n \n \n \n \n Copy Link\n \n \n \n Open in New Tab\n \n \n \n \n Delete\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-main.tsx", - "content": "\"use client\"\n\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n isActive?: boolean\n }[]\n}) {\n return (\n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n \n ))}\n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-main.tsx", + "content": "\"use client\"\n\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n isActive?: boolean\n }[]\n}) {\n return (\n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n \n ))}\n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-secondary.tsx", - "content": "import React from \"react\"\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n badge?: React.ReactNode\n }[]\n} & React.ComponentPropsWithoutRef) {\n return (\n \n \n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n {item.badge && {item.badge}}\n \n ))}\n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-secondary.tsx", + "content": "import React from \"react\"\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n badge?: React.ReactNode\n }[]\n} & React.ComponentPropsWithoutRef) {\n return (\n \n \n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n {item.badge && {item.badge}}\n \n ))}\n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/nav-workspaces.tsx", - "content": "import { ChevronRight, MoreHorizontal, Plus } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavWorkspaces({\n workspaces,\n}: {\n workspaces: {\n name: string\n emoji: React.ReactNode\n pages: {\n name: string\n emoji: React.ReactNode\n }[]\n }[]\n}) {\n return (\n \n Workspaces\n \n \n {workspaces.map((workspace) => (\n \n \n \n \n {workspace.emoji}\n {workspace.name}\n \n \n \n \n \n \n \n \n \n \n \n \n {workspace.pages.map((page) => (\n \n \n \n {page.emoji}\n {page.name}\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/nav-workspaces.tsx", + "content": "import { ChevronRight, MoreHorizontal, Plus } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavWorkspaces({\n workspaces,\n}: {\n workspaces: {\n name: string\n emoji: React.ReactNode\n pages: {\n name: string\n emoji: React.ReactNode\n }[]\n }[]\n}) {\n return (\n \n Workspaces\n \n \n {workspaces.map((workspace) => (\n \n \n \n \n {workspace.emoji}\n {workspace.name}\n \n \n \n \n \n \n \n \n \n \n \n \n {workspace.pages.map((page) => (\n \n \n \n {page.emoji}\n {page.name}\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-10/components/team-switcher.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDown, Plus } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function TeamSwitcher({\n teams,\n}: {\n teams: {\n name: string\n logo: React.ElementType\n plan: string\n }[]\n}) {\n const [activeTeam, setActiveTeam] = React.useState(teams[0])\n\n return (\n \n \n \n \n \n
    \n \n
    \n {activeTeam.name}\n \n
    \n
    \n \n \n Teams\n \n {teams.map((team, index) => (\n setActiveTeam(team)}\n className=\"gap-2 p-2\"\n >\n
    \n \n
    \n {team.name}\n ⌘{index + 1}\n \n ))}\n \n \n
    \n \n
    \n
    Add team
    \n
    \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-10/components/team-switcher.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDown, Plus } from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function TeamSwitcher({\n teams,\n}: {\n teams: {\n name: string\n logo: React.ElementType\n plan: string\n }[]\n}) {\n const [activeTeam, setActiveTeam] = React.useState(teams[0])\n\n return (\n \n \n \n \n \n
    \n \n
    \n {activeTeam.name}\n \n
    \n
    \n \n \n Teams\n \n {teams.map((team, index) => (\n setActiveTeam(team)}\n className=\"gap-2 p-2\"\n >\n
    \n \n
    \n {team.name}\n ⌘{index + 1}\n \n ))}\n \n \n
    \n \n
    \n
    Add team
    \n
    \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-11.json b/apps/www/public/r/styles/new-york-v4/sidebar-11.json index 01da8fe9cb8..ed301dff865 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-11.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-11.json @@ -11,14 +11,14 @@ ], "files": [ { - "path": "registry/blocks/sidebar-11/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-11/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n components\n \n \n \n ui\n \n \n \n button.tsx\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-11/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-11/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n components\n \n \n \n ui\n \n \n \n button.tsx\n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-11/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { ChevronRight, File, Folder } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n changes: [\n {\n file: \"README.md\",\n state: \"M\",\n },\n {\n file: \"api/hello/route.ts\",\n state: \"U\",\n },\n {\n file: \"app/layout.tsx\",\n state: \"M\",\n },\n ],\n tree: [\n [\n \"app\",\n [\n \"api\",\n [\"hello\", [\"route.ts\"]],\n \"page.tsx\",\n \"layout.tsx\",\n [\"blog\", [\"page.tsx\"]],\n ],\n ],\n [\n \"components\",\n [\"ui\", \"button.tsx\", \"card.tsx\"],\n \"header.tsx\",\n \"footer.tsx\",\n ],\n [\"lib\", [\"util.ts\"]],\n [\"public\", \"favicon.ico\", \"vercel.svg\"],\n \".eslintrc.json\",\n \".gitignore\",\n \"next.config.js\",\n \"tailwind.config.js\",\n \"package.json\",\n \"README.md\",\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n Changes\n \n \n {data.changes.map((item, index) => (\n \n \n \n {item.file}\n \n {item.state}\n \n ))}\n \n \n \n \n Files\n \n \n {data.tree.map((item, index) => (\n \n ))}\n \n \n \n \n \n \n )\n}\n\nfunction Tree({ item }: { item: string | any[] }) {\n const [name, ...items] = Array.isArray(item) ? item : [item]\n\n if (!items.length) {\n return (\n \n \n {name}\n \n )\n }\n\n return (\n \n button>svg:first-child]:rotate-90\"\n defaultOpen={name === \"components\" || name === \"ui\"}\n >\n \n \n \n \n {name}\n \n \n \n \n {items.map((subItem, index) => (\n \n ))}\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-11/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { ChevronRight, File, Folder } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n changes: [\n {\n file: \"README.md\",\n state: \"M\",\n },\n {\n file: \"api/hello/route.ts\",\n state: \"U\",\n },\n {\n file: \"app/layout.tsx\",\n state: \"M\",\n },\n ],\n tree: [\n [\n \"app\",\n [\n \"api\",\n [\"hello\", [\"route.ts\"]],\n \"page.tsx\",\n \"layout.tsx\",\n [\"blog\", [\"page.tsx\"]],\n ],\n ],\n [\n \"components\",\n [\"ui\", \"button.tsx\", \"card.tsx\"],\n \"header.tsx\",\n \"footer.tsx\",\n ],\n [\"lib\", [\"util.ts\"]],\n [\"public\", \"favicon.ico\", \"vercel.svg\"],\n \".eslintrc.json\",\n \".gitignore\",\n \"next.config.js\",\n \"tailwind.config.js\",\n \"package.json\",\n \"README.md\",\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n Changes\n \n \n {data.changes.map((item, index) => (\n \n \n \n {item.file}\n \n {item.state}\n \n ))}\n \n \n \n \n Files\n \n \n {data.tree.map((item, index) => (\n \n ))}\n \n \n \n \n \n \n )\n}\n\nfunction Tree({ item }: { item: string | any[] }) {\n const [name, ...items] = Array.isArray(item) ? item : [item]\n\n if (!items.length) {\n return (\n \n \n {name}\n \n )\n }\n\n return (\n \n button>svg:first-child]:rotate-90\"\n defaultOpen={name === \"components\" || name === \"ui\"}\n >\n \n \n \n \n {name}\n \n \n \n \n {items.map((subItem, index) => (\n \n ))}\n \n \n \n \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-12.json b/apps/www/public/r/styles/new-york-v4/sidebar-12.json index 0c550c8a346..2387f0341ab 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-12.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-12.json @@ -14,29 +14,29 @@ ], "files": [ { - "path": "registry/blocks/sidebar-12/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-12/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbList,\n BreadcrumbPage,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n October 2024\n \n \n \n
    \n
    \n
    \n {Array.from({ length: 20 }).map((_, i) => (\n
    \n ))}\n
    \n
    \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-12/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-12/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbList,\n BreadcrumbPage,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n \n \n \n \n \n October 2024\n \n \n \n
    \n
    \n
    \n {Array.from({ length: 20 }).map((_, i) => (\n
    \n ))}\n
    \n
    \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-12/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\nimport { Plus } from \"lucide-react\"\n\nimport { Calendars } from \"@/registry/blocks/sidebar-12/components/calendars\"\nimport { DatePicker } from \"@/registry/blocks/sidebar-12/components/date-picker\"\nimport { NavUser } from \"@/registry/blocks/sidebar-12/components/nav-user\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n SidebarSeparator,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n calendars: [\n {\n name: \"My Calendars\",\n items: [\"Personal\", \"Work\", \"Family\"],\n },\n {\n name: \"Favorites\",\n items: [\"Holidays\", \"Birthdays\"],\n },\n {\n name: \"Other\",\n items: [\"Travel\", \"Reminders\", \"Deadlines\"],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n New Calendar\n \n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-12/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\nimport { Plus } from \"lucide-react\"\n\nimport { Calendars } from \"@/registry/new-york-v4/blocks/sidebar-12/components/calendars\"\nimport { DatePicker } from \"@/registry/new-york-v4/blocks/sidebar-12/components/date-picker\"\nimport { NavUser } from \"@/registry/new-york-v4/blocks/sidebar-12/components/nav-user\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n SidebarSeparator,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n calendars: [\n {\n name: \"My Calendars\",\n items: [\"Personal\", \"Work\", \"Family\"],\n },\n {\n name: \"Favorites\",\n items: [\"Holidays\", \"Birthdays\"],\n },\n {\n name: \"Other\",\n items: [\"Travel\", \"Reminders\", \"Deadlines\"],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n New Calendar\n \n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-12/components/calendars.tsx", - "content": "import * as React from \"react\"\nimport { Check, ChevronRight } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarSeparator,\n} from \"@/registry/ui/sidebar\"\n\nexport function Calendars({\n calendars,\n}: {\n calendars: {\n name: string\n items: string[]\n }[]\n}) {\n return (\n <>\n {calendars.map((calendar, index) => (\n \n \n \n \n \n {calendar.name}{\" \"}\n \n \n \n \n \n \n {calendar.items.map((item, index) => (\n \n \n \n \n
    \n {item}\n \n \n ))}\n \n \n \n \n \n \n \n ))}\n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-12/components/calendars.tsx", + "content": "import * as React from \"react\"\nimport { Check, ChevronRight } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarSeparator,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function Calendars({\n calendars,\n}: {\n calendars: {\n name: string\n items: string[]\n }[]\n}) {\n return (\n <>\n {calendars.map((calendar, index) => (\n \n \n \n \n \n {calendar.name}{\" \"}\n \n \n \n \n \n \n {calendar.items.map((item, index) => (\n \n \n \n \n
    \n {item}\n \n \n ))}\n \n \n \n \n \n \n \n ))}\n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-12/components/date-picker.tsx", - "content": "import { Calendar } from \"@/registry/ui/calendar\"\nimport { SidebarGroup, SidebarGroupContent } from \"@/registry/ui/sidebar\"\n\nexport function DatePicker() {\n return (\n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-12/components/date-picker.tsx", + "content": "import { Calendar } from \"@/registry/new-york-v4/ui/calendar\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function DatePicker() {\n return (\n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-12/components/nav-user.tsx", - "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/registry/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-12/components/nav-user.tsx", + "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/new-york-v4/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-13.json b/apps/www/public/r/styles/new-york-v4/sidebar-13.json index 8e6930610c6..3ffc740c57c 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-13.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-13.json @@ -11,14 +11,14 @@ ], "files": [ { - "path": "registry/blocks/sidebar-13/page.tsx", - "content": "import { SettingsDialog } from \"@/registry/blocks/sidebar-13/components/settings-dialog\"\n\nexport default function Page() {\n return (\n
    \n \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-13/page.tsx", + "content": "import { SettingsDialog } from \"@/registry/new-york-v4/blocks/sidebar-13/components/settings-dialog\"\n\nexport default function Page() {\n return (\n
    \n \n
    \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-13/components/settings-dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Bell,\n Check,\n Globe,\n Home,\n Keyboard,\n Link,\n Lock,\n Menu,\n MessageCircle,\n Paintbrush,\n Settings,\n Video,\n} from \"lucide-react\"\n\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport { Button } from \"@/registry/ui/button\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/ui/dialog\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarProvider,\n} from \"@/registry/ui/sidebar\"\n\nconst data = {\n nav: [\n { name: \"Notifications\", icon: Bell },\n { name: \"Navigation\", icon: Menu },\n { name: \"Home\", icon: Home },\n { name: \"Appearance\", icon: Paintbrush },\n { name: \"Messages & media\", icon: MessageCircle },\n { name: \"Language & region\", icon: Globe },\n { name: \"Accessibility\", icon: Keyboard },\n { name: \"Mark as read\", icon: Check },\n { name: \"Audio & video\", icon: Video },\n { name: \"Connected accounts\", icon: Link },\n { name: \"Privacy & visibility\", icon: Lock },\n { name: \"Advanced\", icon: Settings },\n ],\n}\n\nexport function SettingsDialog() {\n const [open, setOpen] = React.useState(true)\n\n return (\n \n \n \n \n \n Settings\n \n Customize your settings here.\n \n \n \n \n \n \n \n {data.nav.map((item) => (\n \n \n \n \n {item.name}\n \n \n \n ))}\n \n \n \n \n \n
    \n
    \n
    \n \n \n \n Settings\n \n \n \n Messages & media\n \n \n \n
    \n
    \n
    \n {Array.from({ length: 10 }).map((_, i) => (\n \n ))}\n
    \n
    \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-13/components/settings-dialog.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Bell,\n Check,\n Globe,\n Home,\n Keyboard,\n Link,\n Lock,\n Menu,\n MessageCircle,\n Paintbrush,\n Settings,\n Video,\n} from \"lucide-react\"\n\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/new-york-v4/ui/dialog\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarProvider,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nconst data = {\n nav: [\n { name: \"Notifications\", icon: Bell },\n { name: \"Navigation\", icon: Menu },\n { name: \"Home\", icon: Home },\n { name: \"Appearance\", icon: Paintbrush },\n { name: \"Messages & media\", icon: MessageCircle },\n { name: \"Language & region\", icon: Globe },\n { name: \"Accessibility\", icon: Keyboard },\n { name: \"Mark as read\", icon: Check },\n { name: \"Audio & video\", icon: Video },\n { name: \"Connected accounts\", icon: Link },\n { name: \"Privacy & visibility\", icon: Lock },\n { name: \"Advanced\", icon: Settings },\n ],\n}\n\nexport function SettingsDialog() {\n const [open, setOpen] = React.useState(true)\n\n return (\n \n \n \n \n \n Settings\n \n Customize your settings here.\n \n \n \n \n \n \n \n {data.nav.map((item) => (\n \n \n \n \n {item.name}\n \n \n \n ))}\n \n \n \n \n \n
    \n
    \n
    \n \n \n \n Settings\n \n \n \n Messages & media\n \n \n \n
    \n
    \n
    \n {Array.from({ length: 10 }).map((_, i) => (\n \n ))}\n
    \n
    \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-14.json b/apps/www/public/r/styles/new-york-v4/sidebar-14.json index 25c8f3cb72b..9e81550049c 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-14.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-14.json @@ -9,14 +9,14 @@ ], "files": [ { - "path": "registry/blocks/sidebar-14/page.tsx", - "content": "import { AppSidebar } from \"@/registry/blocks/sidebar-14/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/ui/breadcrumb\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n
    \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-14/page.tsx", + "content": "import { AppSidebar } from \"@/registry/new-york-v4/blocks/sidebar-14/components/app-sidebar\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n
    \n \n \n \n \n Building Your Application\n \n \n \n \n Data Fetching\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-14/components/app-sidebar.tsx", - "content": "import * as React from \"react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n Table of Contents\n \n \n {data.navMain.map((item) => (\n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n ) : null}\n \n ))}\n \n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-14/components/app-sidebar.tsx", + "content": "import * as React from \"react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n navMain: [\n {\n title: \"Getting Started\",\n url: \"#\",\n items: [\n {\n title: \"Installation\",\n url: \"#\",\n },\n {\n title: \"Project Structure\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Building Your Application\",\n url: \"#\",\n items: [\n {\n title: \"Routing\",\n url: \"#\",\n },\n {\n title: \"Data Fetching\",\n url: \"#\",\n isActive: true,\n },\n {\n title: \"Rendering\",\n url: \"#\",\n },\n {\n title: \"Caching\",\n url: \"#\",\n },\n {\n title: \"Styling\",\n url: \"#\",\n },\n {\n title: \"Optimizing\",\n url: \"#\",\n },\n {\n title: \"Configuring\",\n url: \"#\",\n },\n {\n title: \"Testing\",\n url: \"#\",\n },\n {\n title: \"Authentication\",\n url: \"#\",\n },\n {\n title: \"Deploying\",\n url: \"#\",\n },\n {\n title: \"Upgrading\",\n url: \"#\",\n },\n {\n title: \"Examples\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"API Reference\",\n url: \"#\",\n items: [\n {\n title: \"Components\",\n url: \"#\",\n },\n {\n title: \"File Conventions\",\n url: \"#\",\n },\n {\n title: \"Functions\",\n url: \"#\",\n },\n {\n title: \"next.config.js Options\",\n url: \"#\",\n },\n {\n title: \"CLI\",\n url: \"#\",\n },\n {\n title: \"Edge Runtime\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Architecture\",\n url: \"#\",\n items: [\n {\n title: \"Accessibility\",\n url: \"#\",\n },\n {\n title: \"Fast Refresh\",\n url: \"#\",\n },\n {\n title: \"Next.js Compiler\",\n url: \"#\",\n },\n {\n title: \"Supported Browsers\",\n url: \"#\",\n },\n {\n title: \"Turbopack\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Community\",\n url: \"#\",\n items: [\n {\n title: \"Contribution Guide\",\n url: \"#\",\n },\n ],\n },\n ],\n}\n\nexport function AppSidebar({ ...props }: React.ComponentProps) {\n return (\n \n \n \n Table of Contents\n \n \n {data.navMain.map((item) => (\n \n \n \n {item.title}\n \n \n {item.items?.length ? (\n \n {item.items.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n ) : null}\n \n ))}\n \n \n \n \n \n \n )\n}\n", "type": "registry:component" } ], diff --git a/apps/www/public/r/styles/new-york-v4/sidebar-15.json b/apps/www/public/r/styles/new-york-v4/sidebar-15.json index 911668452d7..52079582c6e 100644 --- a/apps/www/public/r/styles/new-york-v4/sidebar-15.json +++ b/apps/www/public/r/styles/new-york-v4/sidebar-15.json @@ -15,59 +15,59 @@ ], "files": [ { - "path": "registry/blocks/sidebar-15/page.tsx", - "content": "import { SidebarLeft } from \"@/registry/blocks/sidebar-15/components/sidebar-left\"\nimport { SidebarRight } from \"@/registry/blocks/sidebar-15/components/sidebar-right\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbList,\n BreadcrumbPage,\n} from \"@/registry/ui/breadcrumb\"\nimport { Separator } from \"@/registry/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Project Management & Task Tracking\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/page.tsx", + "content": "import { SidebarLeft } from \"@/registry/new-york-v4/blocks/sidebar-15/components/sidebar-left\"\nimport { SidebarRight } from \"@/registry/new-york-v4/blocks/sidebar-15/components/sidebar-right\"\nimport {\n Breadcrumb,\n BreadcrumbItem,\n BreadcrumbList,\n BreadcrumbPage,\n} from \"@/registry/new-york-v4/ui/breadcrumb\"\nimport { Separator } from \"@/registry/new-york-v4/ui/separator\"\nimport {\n SidebarInset,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport default function Page() {\n return (\n \n \n \n
    \n
    \n \n \n \n \n \n \n Project Management & Task Tracking\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n )\n}\n", "type": "registry:page", "target": "app/dashboard/page.tsx" }, { - "path": "registry/blocks/sidebar-15/components/calendars.tsx", - "content": "import * as React from \"react\"\nimport { Check, ChevronRight } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarSeparator,\n} from \"@/registry/ui/sidebar\"\n\nexport function Calendars({\n calendars,\n}: {\n calendars: {\n name: string\n items: string[]\n }[]\n}) {\n return (\n <>\n {calendars.map((calendar, index) => (\n \n \n \n \n \n {calendar.name}{\" \"}\n \n \n \n \n \n \n {calendar.items.map((item, index) => (\n \n \n \n \n
    \n {item}\n \n \n ))}\n \n \n \n \n \n \n \n ))}\n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/calendars.tsx", + "content": "import * as React from \"react\"\nimport { Check, ChevronRight } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarSeparator,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function Calendars({\n calendars,\n}: {\n calendars: {\n name: string\n items: string[]\n }[]\n}) {\n return (\n <>\n {calendars.map((calendar, index) => (\n \n \n \n \n \n {calendar.name}{\" \"}\n \n \n \n \n \n \n {calendar.items.map((item, index) => (\n \n \n \n \n
    \n {item}\n \n \n ))}\n \n \n \n \n \n \n \n ))}\n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/date-picker.tsx", - "content": "import { Calendar } from \"@/registry/ui/calendar\"\nimport { SidebarGroup, SidebarGroupContent } from \"@/registry/ui/sidebar\"\n\nexport function DatePicker() {\n return (\n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/date-picker.tsx", + "content": "import { Calendar } from \"@/registry/new-york-v4/ui/calendar\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function DatePicker() {\n return (\n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-favorites.tsx", - "content": "\"use client\"\n\nimport {\n ArrowUpRight,\n Link,\n MoreHorizontal,\n StarOff,\n Trash2,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavFavorites({\n favorites,\n}: {\n favorites: {\n name: string\n url: string\n emoji: string\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Favorites\n \n {favorites.map((item) => (\n \n \n \n {item.emoji}\n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n Remove from Favorites\n \n \n \n \n Copy Link\n \n \n \n Open in New Tab\n \n \n \n \n Delete\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-favorites.tsx", + "content": "\"use client\"\n\nimport {\n ArrowUpRight,\n Link,\n MoreHorizontal,\n StarOff,\n Trash2,\n} from \"lucide-react\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavFavorites({\n favorites,\n}: {\n favorites: {\n name: string\n url: string\n emoji: string\n }[]\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n Favorites\n \n {favorites.map((item) => (\n \n \n \n {item.emoji}\n {item.name}\n \n \n \n \n \n \n More\n \n \n \n \n \n Remove from Favorites\n \n \n \n \n Copy Link\n \n \n \n Open in New Tab\n \n \n \n \n Delete\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-main.tsx", - "content": "\"use client\"\n\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n isActive?: boolean\n }[]\n}) {\n return (\n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n \n ))}\n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx", + "content": "\"use client\"\n\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavMain({\n items,\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n isActive?: boolean\n }[]\n}) {\n return (\n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n \n ))}\n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-secondary.tsx", - "content": "import React from \"react\"\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n badge?: React.ReactNode\n }[]\n} & React.ComponentPropsWithoutRef) {\n return (\n \n \n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n {item.badge && {item.badge}}\n \n ))}\n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx", + "content": "import React from \"react\"\nimport { type LucideIcon } from \"lucide-react\"\n\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavSecondary({\n items,\n ...props\n}: {\n items: {\n title: string\n url: string\n icon: LucideIcon\n badge?: React.ReactNode\n }[]\n} & React.ComponentPropsWithoutRef) {\n return (\n \n \n \n {items.map((item) => (\n \n \n \n \n {item.title}\n \n \n {item.badge && {item.badge}}\n \n ))}\n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-user.tsx", - "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/registry/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-user.tsx", + "content": "\"use client\"\n\nimport {\n BadgeCheck,\n Bell,\n ChevronsUpDown,\n CreditCard,\n LogOut,\n Sparkles,\n} from \"lucide-react\"\n\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/new-york-v4/ui/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/new-york-v4/ui/dropdown-menu\"\nimport {\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n useSidebar,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavUser({\n user,\n}: {\n user: {\n name: string\n email: string\n avatar: string\n }\n}) {\n const { isMobile } = useSidebar()\n\n return (\n \n \n \n \n \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n \n \n
    \n \n \n
    \n \n \n CN\n \n
    \n {user.name}\n {user.email}\n
    \n
    \n
    \n \n \n \n \n Upgrade to Pro\n \n \n \n \n \n \n Account\n \n \n \n Billing\n \n \n \n Notifications\n \n \n \n \n \n Log out\n \n \n
    \n
    \n
    \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/nav-workspaces.tsx", - "content": "import { ChevronRight, MoreHorizontal, Plus } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/ui/sidebar\"\n\nexport function NavWorkspaces({\n workspaces,\n}: {\n workspaces: {\n name: string\n emoji: React.ReactNode\n pages: {\n name: string\n emoji: React.ReactNode\n }[]\n }[]\n}) {\n return (\n \n Workspaces\n \n \n {workspaces.map((workspace) => (\n \n \n \n \n {workspace.emoji}\n {workspace.name}\n \n \n \n \n \n \n \n \n \n \n \n \n {workspace.pages.map((page) => (\n \n \n \n {page.emoji}\n {page.name}\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces.tsx", + "content": "import { ChevronRight, MoreHorizontal, Plus } from \"lucide-react\"\n\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/registry/new-york-v4/ui/collapsible\"\nimport {\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nexport function NavWorkspaces({\n workspaces,\n}: {\n workspaces: {\n name: string\n emoji: React.ReactNode\n pages: {\n name: string\n emoji: React.ReactNode\n }[]\n }[]\n}) {\n return (\n \n Workspaces\n \n \n {workspaces.map((workspace) => (\n \n \n \n \n {workspace.emoji}\n {workspace.name}\n \n \n \n \n \n \n \n \n \n \n \n \n {workspace.pages.map((page) => (\n \n \n \n {page.emoji}\n {page.name}\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n \n More\n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/sidebar-left.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n AudioWaveform,\n Blocks,\n Calendar,\n Command,\n Home,\n Inbox,\n MessageCircleQuestion,\n Search,\n Settings2,\n Sparkles,\n Trash2,\n} from \"lucide-react\"\n\nimport { NavFavorites } from \"@/registry/blocks/sidebar-15/components/nav-favorites\"\nimport { NavMain } from \"@/registry/blocks/sidebar-15/components/nav-main\"\nimport { NavSecondary } from \"@/registry/blocks/sidebar-15/components/nav-secondary\"\nimport { NavWorkspaces } from \"@/registry/blocks/sidebar-15/components/nav-workspaces\"\nimport { TeamSwitcher } from \"@/registry/blocks/sidebar-15/components/team-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarHeader,\n SidebarRail,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n teams: [\n {\n name: \"Acme Inc\",\n logo: Command,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Search\",\n url: \"#\",\n icon: Search,\n },\n {\n title: \"Ask AI\",\n url: \"#\",\n icon: Sparkles,\n },\n {\n title: \"Home\",\n url: \"#\",\n icon: Home,\n isActive: true,\n },\n {\n title: \"Inbox\",\n url: \"#\",\n icon: Inbox,\n badge: \"10\",\n },\n ],\n navSecondary: [\n {\n title: \"Calendar\",\n url: \"#\",\n icon: Calendar,\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n },\n {\n title: \"Templates\",\n url: \"#\",\n icon: Blocks,\n },\n {\n title: \"Trash\",\n url: \"#\",\n icon: Trash2,\n },\n {\n title: \"Help\",\n url: \"#\",\n icon: MessageCircleQuestion,\n },\n ],\n favorites: [\n {\n name: \"Project Management & Task Tracking\",\n url: \"#\",\n emoji: \"📊\",\n },\n {\n name: \"Family Recipe Collection & Meal Planning\",\n url: \"#\",\n emoji: \"🍳\",\n },\n {\n name: \"Fitness Tracker & Workout Routines\",\n url: \"#\",\n emoji: \"💪\",\n },\n {\n name: \"Book Notes & Reading List\",\n url: \"#\",\n emoji: \"📚\",\n },\n {\n name: \"Sustainable Gardening Tips & Plant Care\",\n url: \"#\",\n emoji: \"🌱\",\n },\n {\n name: \"Language Learning Progress & Resources\",\n url: \"#\",\n emoji: \"🗣️\",\n },\n {\n name: \"Home Renovation Ideas & Budget Tracker\",\n url: \"#\",\n emoji: \"🏠\",\n },\n {\n name: \"Personal Finance & Investment Portfolio\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Movie & TV Show Watchlist with Reviews\",\n url: \"#\",\n emoji: \"🎬\",\n },\n {\n name: \"Daily Habit Tracker & Goal Setting\",\n url: \"#\",\n emoji: \"✅\",\n },\n ],\n workspaces: [\n {\n name: \"Personal Life Management\",\n emoji: \"🏠\",\n pages: [\n {\n name: \"Daily Journal & Reflection\",\n url: \"#\",\n emoji: \"📔\",\n },\n {\n name: \"Health & Wellness Tracker\",\n url: \"#\",\n emoji: \"🍏\",\n },\n {\n name: \"Personal Growth & Learning Goals\",\n url: \"#\",\n emoji: \"🌟\",\n },\n ],\n },\n {\n name: \"Professional Development\",\n emoji: \"💼\",\n pages: [\n {\n name: \"Career Objectives & Milestones\",\n url: \"#\",\n emoji: \"🎯\",\n },\n {\n name: \"Skill Acquisition & Training Log\",\n url: \"#\",\n emoji: \"🧠\",\n },\n {\n name: \"Networking Contacts & Events\",\n url: \"#\",\n emoji: \"🤝\",\n },\n ],\n },\n {\n name: \"Creative Projects\",\n emoji: \"🎨\",\n pages: [\n {\n name: \"Writing Ideas & Story Outlines\",\n url: \"#\",\n emoji: \"✍️\",\n },\n {\n name: \"Art & Design Portfolio\",\n url: \"#\",\n emoji: \"🖼️\",\n },\n {\n name: \"Music Composition & Practice Log\",\n url: \"#\",\n emoji: \"🎵\",\n },\n ],\n },\n {\n name: \"Home Management\",\n emoji: \"🏡\",\n pages: [\n {\n name: \"Household Budget & Expense Tracking\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Home Maintenance Schedule & Tasks\",\n url: \"#\",\n emoji: \"🔧\",\n },\n {\n name: \"Family Calendar & Event Planning\",\n url: \"#\",\n emoji: \"📅\",\n },\n ],\n },\n {\n name: \"Travel & Adventure\",\n emoji: \"🧳\",\n pages: [\n {\n name: \"Trip Planning & Itineraries\",\n url: \"#\",\n emoji: \"🗺️\",\n },\n {\n name: \"Travel Bucket List & Inspiration\",\n url: \"#\",\n emoji: \"🌎\",\n },\n {\n name: \"Travel Journal & Photo Gallery\",\n url: \"#\",\n emoji: \"📸\",\n },\n ],\n },\n ],\n}\n\nexport function SidebarLeft({\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n", + "path": "registry/new-york-v4/blocks/sidebar-15/components/sidebar-left.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n AudioWaveform,\n Blocks,\n Calendar,\n Command,\n Home,\n Inbox,\n MessageCircleQuestion,\n Search,\n Settings2,\n Sparkles,\n Trash2,\n} from \"lucide-react\"\n\nimport { NavFavorites } from \"@/registry/new-york-v4/blocks/sidebar-15/components/nav-favorites\"\nimport { NavMain } from \"@/registry/new-york-v4/blocks/sidebar-15/components/nav-main\"\nimport { NavSecondary } from \"@/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary\"\nimport { NavWorkspaces } from \"@/registry/new-york-v4/blocks/sidebar-15/components/nav-workspaces\"\nimport { TeamSwitcher } from \"@/registry/new-york-v4/blocks/sidebar-15/components/team-switcher\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarHeader,\n SidebarRail,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n teams: [\n {\n name: \"Acme Inc\",\n logo: Command,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Search\",\n url: \"#\",\n icon: Search,\n },\n {\n title: \"Ask AI\",\n url: \"#\",\n icon: Sparkles,\n },\n {\n title: \"Home\",\n url: \"#\",\n icon: Home,\n isActive: true,\n },\n {\n title: \"Inbox\",\n url: \"#\",\n icon: Inbox,\n badge: \"10\",\n },\n ],\n navSecondary: [\n {\n title: \"Calendar\",\n url: \"#\",\n icon: Calendar,\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n },\n {\n title: \"Templates\",\n url: \"#\",\n icon: Blocks,\n },\n {\n title: \"Trash\",\n url: \"#\",\n icon: Trash2,\n },\n {\n title: \"Help\",\n url: \"#\",\n icon: MessageCircleQuestion,\n },\n ],\n favorites: [\n {\n name: \"Project Management & Task Tracking\",\n url: \"#\",\n emoji: \"📊\",\n },\n {\n name: \"Family Recipe Collection & Meal Planning\",\n url: \"#\",\n emoji: \"🍳\",\n },\n {\n name: \"Fitness Tracker & Workout Routines\",\n url: \"#\",\n emoji: \"💪\",\n },\n {\n name: \"Book Notes & Reading List\",\n url: \"#\",\n emoji: \"📚\",\n },\n {\n name: \"Sustainable Gardening Tips & Plant Care\",\n url: \"#\",\n emoji: \"🌱\",\n },\n {\n name: \"Language Learning Progress & Resources\",\n url: \"#\",\n emoji: \"🗣️\",\n },\n {\n name: \"Home Renovation Ideas & Budget Tracker\",\n url: \"#\",\n emoji: \"🏠\",\n },\n {\n name: \"Personal Finance & Investment Portfolio\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Movie & TV Show Watchlist with Reviews\",\n url: \"#\",\n emoji: \"🎬\",\n },\n {\n name: \"Daily Habit Tracker & Goal Setting\",\n url: \"#\",\n emoji: \"✅\",\n },\n ],\n workspaces: [\n {\n name: \"Personal Life Management\",\n emoji: \"🏠\",\n pages: [\n {\n name: \"Daily Journal & Reflection\",\n url: \"#\",\n emoji: \"📔\",\n },\n {\n name: \"Health & Wellness Tracker\",\n url: \"#\",\n emoji: \"🍏\",\n },\n {\n name: \"Personal Growth & Learning Goals\",\n url: \"#\",\n emoji: \"🌟\",\n },\n ],\n },\n {\n name: \"Professional Development\",\n emoji: \"💼\",\n pages: [\n {\n name: \"Career Objectives & Milestones\",\n url: \"#\",\n emoji: \"🎯\",\n },\n {\n name: \"Skill Acquisition & Training Log\",\n url: \"#\",\n emoji: \"🧠\",\n },\n {\n name: \"Networking Contacts & Events\",\n url: \"#\",\n emoji: \"🤝\",\n },\n ],\n },\n {\n name: \"Creative Projects\",\n emoji: \"🎨\",\n pages: [\n {\n name: \"Writing Ideas & Story Outlines\",\n url: \"#\",\n emoji: \"✍️\",\n },\n {\n name: \"Art & Design Portfolio\",\n url: \"#\",\n emoji: \"🖼️\",\n },\n {\n name: \"Music Composition & Practice Log\",\n url: \"#\",\n emoji: \"🎵\",\n },\n ],\n },\n {\n name: \"Home Management\",\n emoji: \"🏡\",\n pages: [\n {\n name: \"Household Budget & Expense Tracking\",\n url: \"#\",\n emoji: \"💰\",\n },\n {\n name: \"Home Maintenance Schedule & Tasks\",\n url: \"#\",\n emoji: \"🔧\",\n },\n {\n name: \"Family Calendar & Event Planning\",\n url: \"#\",\n emoji: \"📅\",\n },\n ],\n },\n {\n name: \"Travel & Adventure\",\n emoji: \"🧳\",\n pages: [\n {\n name: \"Trip Planning & Itineraries\",\n url: \"#\",\n emoji: \"🗺️\",\n },\n {\n name: \"Travel Bucket List & Inspiration\",\n url: \"#\",\n emoji: \"🌎\",\n },\n {\n name: \"Travel Journal & Photo Gallery\",\n url: \"#\",\n emoji: \"📸\",\n },\n ],\n },\n ],\n}\n\nexport function SidebarLeft({\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n", "type": "registry:component" }, { - "path": "registry/blocks/sidebar-15/components/sidebar-right.tsx", - "content": "import * as React from \"react\"\nimport { Plus } from \"lucide-react\"\n\nimport { Calendars } from \"@/registry/blocks/sidebar-15/components/calendars\"\nimport { DatePicker } from \"@/registry/blocks/sidebar-15/components/date-picker\"\nimport { NavUser } from \"@/registry/blocks/sidebar-15/components/nav-user\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarHeader,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarRail,\n SidebarSeparator,\n} from \"@/registry/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"/avatars/shadcn.jpg\",\n },\n calendars: [\n {\n name: \"My Calendars\",\n items: [\"Personal\", \"Work\", \"Family\"],\n },\n {\n name: \"Favorites\",\n items: [\"Holidays\", \"Birthdays\"],\n },\n {\n name: \"Other\",\n items: [\"Travel\", \"Reminders\", \"Deadlines\"],\n },\n ],\n}\n\nexport function SidebarRight({\n ...props\n}: React.ComponentProps) {\n return (\n
    \n
    \n
    \n )\n}\n\nfunction SidebarTrigger({\n className,\n onClick,\n ...props\n}: React.ComponentProps) {\n const { toggleSidebar } = useSidebar()\n\n return (\n {\n onClick?.(event)\n toggleSidebar()\n }}\n {...props}\n >\n \n Toggle Sidebar\n \n )\n}\n\nfunction SidebarRail({ className, ...props }: React.ComponentProps<\"button\">) {\n const { toggleSidebar } = useSidebar()\n\n return (\n
    \n )\n}\n\nfunction SidebarMenuSub({ className, ...props }: React.ComponentProps<\"ul\">) {\n return (\n \n )\n}\n\nfunction SidebarMenuSubItem({\n className,\n ...props\n}: React.ComponentProps<\"li\">) {\n return (\n \n )\n}\n\nfunction SidebarMenuSubButton({\n asChild = false,\n size = \"md\",\n isActive = false,\n className,\n ...props\n}: React.ComponentProps<\"a\"> & {\n asChild?: boolean\n size?: \"sm\" | \"md\"\n isActive?: boolean\n}) {\n const Comp = asChild ? Slot : \"a\"\n\n return (\n svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\n \"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground\",\n size === \"sm\" && \"text-xs\",\n size === \"md\" && \"text-sm\",\n \"group-data-[collapsible=icon]:hidden\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n}\n", "type": "registry:ui" } ], diff --git a/apps/www/public/r/styles/new-york-v4/skeleton.json b/apps/www/public/r/styles/new-york-v4/skeleton.json index 3c1063da690..4d1d9c261a8 100644 --- a/apps/www/public/r/styles/new-york-v4/skeleton.json +++ b/apps/www/public/r/styles/new-york-v4/skeleton.json @@ -4,7 +4,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/skeleton.tsx", + "path": "registry/new-york-v4/ui/skeleton.tsx", "content": "import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nexport { Skeleton }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/slider.json b/apps/www/public/r/styles/new-york-v4/slider.json index dc0733f6bc6..56d33d9cf0a 100644 --- a/apps/www/public/r/styles/new-york-v4/slider.json +++ b/apps/www/public/r/styles/new-york-v4/slider.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/slider.tsx", + "path": "registry/new-york-v4/ui/slider.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n ...props\n}: React.ComponentProps) {\n const _values = React.useMemo(\n () =>\n Array.isArray(value)\n ? value\n : Array.isArray(defaultValue)\n ? defaultValue\n : [min, max],\n [value, defaultValue, min, max]\n )\n\n return (\n \n \n \n \n {Array.from({ length: _values.length }, (_, index) => (\n \n ))}\n \n )\n}\n\nexport { Slider }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/sonner.json b/apps/www/public/r/styles/new-york-v4/sonner.json index eef69f1ec5e..d177228b811 100644 --- a/apps/www/public/r/styles/new-york-v4/sonner.json +++ b/apps/www/public/r/styles/new-york-v4/sonner.json @@ -8,7 +8,7 @@ ], "files": [ { - "path": "registry/ui/sonner.tsx", + "path": "registry/new-york-v4/ui/sonner.tsx", "content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner, ToasterProps } from \"sonner\"\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme()\n\n return (\n \n )\n}\n\nexport { Toaster }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/switch.json b/apps/www/public/r/styles/new-york-v4/switch.json index 8b09b194e85..3c8fc5ce3dc 100644 --- a/apps/www/public/r/styles/new-york-v4/switch.json +++ b/apps/www/public/r/styles/new-york-v4/switch.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/switch.tsx", + "path": "registry/new-york-v4/ui/switch.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nexport { Switch }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/table.json b/apps/www/public/r/styles/new-york-v4/table.json index 87fa0bf0672..853486278cc 100644 --- a/apps/www/public/r/styles/new-york-v4/table.json +++ b/apps/www/public/r/styles/new-york-v4/table.json @@ -4,7 +4,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/table.tsx", + "path": "registry/new-york-v4/ui/table.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n
    \n \n
    \n )\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n \n )\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n \n )\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n \n )\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n [role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n [role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<\"caption\">) {\n return (\n \n )\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n}\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/tabs.json b/apps/www/public/r/styles/new-york-v4/tabs.json index 0454d897b1d..856c638669e 100644 --- a/apps/www/public/r/styles/new-york-v4/tabs.json +++ b/apps/www/public/r/styles/new-york-v4/tabs.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/tabs.tsx", + "path": "registry/new-york-v4/ui/tabs.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Tabs({ ...props }: React.ComponentProps) {\n return \n}\n\nfunction TabsList({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction TabsTrigger({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction TabsContent({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/textarea.json b/apps/www/public/r/styles/new-york-v4/textarea.json index 422882d55ec..902a6d6f2c9 100644 --- a/apps/www/public/r/styles/new-york-v4/textarea.json +++ b/apps/www/public/r/styles/new-york-v4/textarea.json @@ -4,7 +4,7 @@ "type": "registry:ui", "files": [ { - "path": "registry/ui/textarea.tsx", + "path": "registry/new-york-v4/ui/textarea.tsx", "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Textarea({ className, ...props }: React.ComponentProps<\"textarea\">) {\n return (\n \n )\n}\n\nexport { Textarea }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/toggle-group.json b/apps/www/public/r/styles/new-york-v4/toggle-group.json index 946c3cbe8be..81e4d476d41 100644 --- a/apps/www/public/r/styles/new-york-v4/toggle-group.json +++ b/apps/www/public/r/styles/new-york-v4/toggle-group.json @@ -10,8 +10,8 @@ ], "files": [ { - "path": "registry/ui/toggle-group.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants } from \"@/registry/ui/toggle\"\n\nconst ToggleGroupContext = React.createContext<\n VariantProps\n>({\n size: \"default\",\n variant: \"default\",\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: React.ComponentProps &\n VariantProps) {\n return (\n \n \n {children}\n \n \n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps &\n VariantProps) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n \n {children}\n \n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n", + "path": "registry/new-york-v4/ui/toggle-group.tsx", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants } from \"@/registry/new-york-v4/ui/toggle\"\n\nconst ToggleGroupContext = React.createContext<\n VariantProps\n>({\n size: \"default\",\n variant: \"default\",\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: React.ComponentProps &\n VariantProps) {\n return (\n \n \n {children}\n \n \n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps &\n VariantProps) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n \n {children}\n \n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n", "type": "registry:ui" } ] diff --git a/apps/www/public/r/styles/new-york-v4/toggle.json b/apps/www/public/r/styles/new-york-v4/toggle.json index ea25727ab64..d45c8a341fc 100644 --- a/apps/www/public/r/styles/new-york-v4/toggle.json +++ b/apps/www/public/r/styles/new-york-v4/toggle.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/toggle.tsx", + "path": "registry/new-york-v4/ui/toggle.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-9 px-2 min-w-9\",\n sm: \"h-8 px-1.5 min-w-8\",\n lg: \"h-10 px-2.5 min-w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: React.ComponentProps &\n VariantProps) {\n return (\n \n )\n}\n\nexport { Toggle, toggleVariants }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/tooltip.json b/apps/www/public/r/styles/new-york-v4/tooltip.json index 69b307b7647..c23df8b4094 100644 --- a/apps/www/public/r/styles/new-york-v4/tooltip.json +++ b/apps/www/public/r/styles/new-york-v4/tooltip.json @@ -7,7 +7,7 @@ ], "files": [ { - "path": "registry/ui/tooltip.tsx", + "path": "registry/new-york-v4/ui/tooltip.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction Tooltip({\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n )\n}\n\nfunction TooltipTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction TooltipContent({\n className,\n sideOffset = 4,\n children,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n {children}\n \n \n \n )\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n", "type": "registry:ui" } diff --git a/apps/www/public/r/styles/new-york-v4/use-mobile.json b/apps/www/public/r/styles/new-york-v4/use-mobile.json index 023f34fac1d..a5bed5f5550 100644 --- a/apps/www/public/r/styles/new-york-v4/use-mobile.json +++ b/apps/www/public/r/styles/new-york-v4/use-mobile.json @@ -4,7 +4,7 @@ "type": "registry:hook", "files": [ { - "path": "registry/hooks/use-mobile.ts", + "path": "registry/new-york-v4/hooks/use-mobile.ts", "content": "import * as React from \"react\"\n\nconst MOBILE_BREAKPOINT = 768\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState(undefined)\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n }\n mql.addEventListener(\"change\", onChange)\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n return () => mql.removeEventListener(\"change\", onChange)\n }, [])\n\n return !!isMobile\n}\n", "type": "registry:hook" } diff --git a/apps/www/public/r/styles/new-york-v4/utils.json b/apps/www/public/r/styles/new-york-v4/utils.json new file mode 100644 index 00000000000..3e3c81192b2 --- /dev/null +++ b/apps/www/public/r/styles/new-york-v4/utils.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "utils", + "type": "registry:lib", + "dependencies": [ + "clsx", + "tailwind-merge" + ], + "files": [ + { + "path": "registry/new-york-v4/lib/utils.ts", + "content": "import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n", + "type": "registry:lib" + } + ] +} \ No newline at end of file