@devxcrew/react-ui 0.0.0-stage → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -2
- package/package.json +105 -4
- package/src/blocks/agent-chat-workspace/agent-chat-workspace.tsx +162 -0
- package/src/blocks/agent-chat-workspace/index.ts +2 -0
- package/src/blocks/agent-provider-settings/agent-provider-settings.tsx +183 -0
- package/src/blocks/agent-provider-settings/index.ts +2 -0
- package/src/blocks/agent-task-workspace/agent-task-workspace.tsx +48 -0
- package/src/blocks/agent-task-workspace/index.ts +2 -0
- package/src/blocks/analysis-context/analysis-context.tsx +6 -0
- package/src/blocks/analysis-context/index.ts +1 -0
- package/src/blocks/app-header/app-header.tsx +159 -0
- package/src/blocks/app-header/index.ts +2 -0
- package/src/blocks/archived-chat-workspace/archived-chat-workspace.tsx +29 -0
- package/src/blocks/archived-chat-workspace/index.ts +2 -0
- package/src/blocks/auth/README.md +32 -0
- package/src/blocks/auth/admin-login-page.tsx +15 -0
- package/src/blocks/auth/admin-password-forgot-page.tsx +5 -0
- package/src/blocks/auth/auth-page-layout.tsx +90 -0
- package/src/blocks/auth/client-login-page.tsx +20 -0
- package/src/blocks/auth/client-password-forgot-page.tsx +5 -0
- package/src/blocks/auth/identity-management-desk.tsx +530 -0
- package/src/blocks/auth/index.ts +12 -0
- package/src/blocks/auth/login-page.tsx +206 -0
- package/src/blocks/auth/password-forgot-page.tsx +60 -0
- package/src/blocks/auth/portal-pages.tsx +32 -0
- package/src/blocks/auth/privileged-desk.tsx +55 -0
- package/src/blocks/auth/register-page.tsx +117 -0
- package/src/blocks/auth/session-boundary.tsx +296 -0
- package/src/blocks/auth/super-admin-login-page.tsx +15 -0
- package/src/blocks/auth/super-admin-password-forgot-page.tsx +5 -0
- package/src/blocks/blog/blog-card.tsx +156 -0
- package/src/blocks/blog/blog-reader.tsx +175 -0
- package/src/blocks/blog/blog-types.ts +47 -0
- package/src/blocks/blog/index.ts +3 -0
- package/src/blocks/chat-composer/chat-composer.tsx +140 -0
- package/src/blocks/chat-composer/index.ts +1 -0
- package/src/blocks/chat-history/chat-history.tsx +59 -0
- package/src/blocks/chat-history/index.ts +1 -0
- package/src/blocks/chat-response-progress/chat-response-progress.tsx +34 -0
- package/src/blocks/chat-response-progress/index.ts +2 -0
- package/src/blocks/chat-runtime-controls/chat-runtime-controls.tsx +56 -0
- package/src/blocks/chat-runtime-controls/index.ts +2 -0
- package/src/blocks/chat-runtime-trace/chat-runtime-trace.tsx +71 -0
- package/src/blocks/chat-runtime-trace/index.ts +2 -0
- package/src/blocks/codex-connection-settings/codex-connection-settings.tsx +42 -0
- package/src/blocks/codex-connection-settings/index.ts +1 -0
- package/src/blocks/dropzone/dropzone-file-item.tsx +113 -0
- package/src/blocks/dropzone/dropzone-types.ts +32 -0
- package/src/blocks/dropzone/dropzone.tsx +216 -0
- package/src/blocks/dropzone/index.ts +3 -0
- package/src/blocks/ecommerce/cart/cart-drawer.tsx +228 -0
- package/src/blocks/ecommerce/cart/cart-types.ts +27 -0
- package/src/blocks/ecommerce/cart/index.ts +2 -0
- package/src/blocks/ecommerce/categories/categories-types.ts +23 -0
- package/src/blocks/ecommerce/categories/category-showcase.tsx +125 -0
- package/src/blocks/ecommerce/categories/index.ts +2 -0
- package/src/blocks/ecommerce/checkout/checkout-types.ts +48 -0
- package/src/blocks/ecommerce/checkout/checkout-wizard.tsx +468 -0
- package/src/blocks/ecommerce/checkout/index.ts +2 -0
- package/src/blocks/ecommerce/comparison/comparison-types.ts +28 -0
- package/src/blocks/ecommerce/comparison/index.ts +2 -0
- package/src/blocks/ecommerce/comparison/product-comparison.tsx +174 -0
- package/src/blocks/ecommerce/coupon-wallet/coupon-wallet-types.ts +21 -0
- package/src/blocks/ecommerce/coupon-wallet/coupon-wallet.tsx +154 -0
- package/src/blocks/ecommerce/coupon-wallet/index.ts +2 -0
- package/src/blocks/ecommerce/delivery-tracker/delivery-tracker-types.ts +20 -0
- package/src/blocks/ecommerce/delivery-tracker/delivery-tracker.tsx +169 -0
- package/src/blocks/ecommerce/delivery-tracker/index.ts +2 -0
- package/src/blocks/ecommerce/index.ts +12 -0
- package/src/blocks/ecommerce/payment-methods/index.ts +2 -0
- package/src/blocks/ecommerce/payment-methods/payment-method-selector.tsx +224 -0
- package/src/blocks/ecommerce/payment-methods/payment-methods-types.ts +21 -0
- package/src/blocks/ecommerce/price-history/index.ts +2 -0
- package/src/blocks/ecommerce/price-history/price-history-chart.tsx +217 -0
- package/src/blocks/ecommerce/price-history/price-history-types.ts +16 -0
- package/src/blocks/ecommerce/reviews/index.ts +2 -0
- package/src/blocks/ecommerce/reviews/reviews-section.tsx +309 -0
- package/src/blocks/ecommerce/reviews/reviews-types.ts +26 -0
- package/src/blocks/ecommerce/wishlist/index.ts +2 -0
- package/src/blocks/ecommerce/wishlist/wishlist-grid.tsx +149 -0
- package/src/blocks/ecommerce/wishlist/wishlist-types.ts +19 -0
- package/src/blocks/execution-status/README.md +25 -0
- package/src/blocks/execution-status/execution-status.tsx +135 -0
- package/src/blocks/execution-status/index.ts +2 -0
- package/src/blocks/file-tree/file-icons.tsx +84 -0
- package/src/blocks/file-tree/file-tree-node.tsx +158 -0
- package/src/blocks/file-tree/file-tree-types.ts +33 -0
- package/src/blocks/file-tree/file-tree.tsx +163 -0
- package/src/blocks/file-tree/index.ts +5 -0
- package/src/blocks/filter-builder/filter-builder.tsx +169 -0
- package/src/blocks/filter-builder/filter-row.tsx +164 -0
- package/src/blocks/filter-builder/filter-types.ts +61 -0
- package/src/blocks/filter-builder/index.ts +12 -0
- package/src/blocks/footer/footer-types.ts +35 -0
- package/src/blocks/footer/index.ts +2 -0
- package/src/blocks/footer/site-footer.tsx +212 -0
- package/src/blocks/form/form-block.tsx +113 -0
- package/src/blocks/form/form-lookup-field.tsx +60 -0
- package/src/blocks/form/index.ts +4 -0
- package/src/blocks/handover-stack/handover-stack.tsx +41 -0
- package/src/blocks/handover-stack/index.ts +1 -0
- package/src/blocks/idea-handover/idea-handover-readiness.ts +41 -0
- package/src/blocks/idea-handover/idea-handover-workspace.tsx +150 -0
- package/src/blocks/idea-handover/index.ts +4 -0
- package/src/blocks/kanban/index.ts +11 -0
- package/src/blocks/kanban/kanban-board.tsx +146 -0
- package/src/blocks/kanban/kanban-card.tsx +149 -0
- package/src/blocks/kanban/kanban-column.tsx +102 -0
- package/src/blocks/kanban/kanban-types.ts +38 -0
- package/src/blocks/loader/global-loader.tsx +90 -0
- package/src/blocks/loader/index.ts +1 -0
- package/src/blocks/mascot/README.md +21 -0
- package/src/blocks/mascot/index.ts +2 -0
- package/src/blocks/mascot/mascot.tsx +202 -0
- package/src/blocks/master-list/README.md +21 -0
- package/src/blocks/master-list/index.ts +12 -0
- package/src/blocks/master-list/master-form.tsx +157 -0
- package/src/blocks/master-list/master-list-desk.tsx +370 -0
- package/src/blocks/master-list/master-list.tsx +189 -0
- package/src/blocks/master-list/types.ts +18 -0
- package/src/blocks/mermaid-preview/index.ts +1 -0
- package/src/blocks/mermaid-preview/mermaid-preview.tsx +164 -0
- package/src/blocks/notifications/README.md +7 -0
- package/src/blocks/notifications/index.ts +1 -0
- package/src/blocks/notifications/notification-center-page.tsx +73 -0
- package/src/blocks/pricing/index.ts +7 -0
- package/src/blocks/pricing/pricing-table.tsx +173 -0
- package/src/blocks/pricing/pricing-types.ts +34 -0
- package/src/blocks/product-card/index.ts +2 -0
- package/src/blocks/product-card/product-card-types.ts +35 -0
- package/src/blocks/product-card/product-card.tsx +183 -0
- package/src/blocks/table/data-table-block.tsx +313 -0
- package/src/blocks/table/data-table-filter-menu.tsx +48 -0
- package/src/blocks/table/data-table-icon-menu-trigger.tsx +44 -0
- package/src/blocks/table/data-table-menu-content.tsx +32 -0
- package/src/blocks/table/data-table-pagination.tsx +149 -0
- package/src/blocks/table/data-table-row-actions.tsx +53 -0
- package/src/blocks/table/data-table-status.tsx +42 -0
- package/src/blocks/table/data-table-toolbar.tsx +124 -0
- package/src/blocks/table/data-table-totals.tsx +31 -0
- package/src/blocks/table/index.ts +13 -0
- package/src/blocks/workspace/index.ts +19 -0
- package/src/blocks/workspace/workspace-action-card.tsx +73 -0
- package/src/blocks/workspace/workspace-application-header.tsx +67 -0
- package/src/blocks/workspace/workspace-entity-card.tsx +48 -0
- package/src/blocks/workspace/workspace-health-summary.tsx +15 -0
- package/src/blocks/workspace/workspace-metric-card.tsx +97 -0
- package/src/blocks/workspace/workspace-page-header.tsx +43 -0
- package/src/blocks/workspace/workspace-publish-status.tsx +15 -0
- package/src/blocks/workspace/workspace-route-checklist.tsx +28 -0
- package/src/blocks/workspace/workspace-runtime-status.tsx +48 -0
- package/src/blocks/workspace/workspace-section-card.tsx +42 -0
- package/src/components/accordion.tsx +65 -0
- package/src/components/alert-dialog.tsx +160 -0
- package/src/components/alert.tsx +68 -0
- package/src/components/aspect-ratio.tsx +22 -0
- package/src/components/attachment.tsx +195 -0
- package/src/components/avatar.tsx +90 -0
- package/src/components/badge.tsx +55 -0
- package/src/components/breadcrumb.tsx +100 -0
- package/src/components/bubble.tsx +123 -0
- package/src/components/button-group.tsx +79 -0
- package/src/components/button.tsx +71 -0
- package/src/components/calendar.tsx +185 -0
- package/src/components/card.tsx +100 -0
- package/src/components/carousel.tsx +229 -0
- package/src/components/chart.tsx +338 -0
- package/src/components/checkbox.tsx +27 -0
- package/src/components/collapsible.tsx +15 -0
- package/src/components/combobox.tsx +269 -0
- package/src/components/command.tsx +181 -0
- package/src/components/compact-model-switcher.tsx +128 -0
- package/src/components/context-menu.tsx +244 -0
- package/src/components/dialog.tsx +138 -0
- package/src/components/direction.tsx +1 -0
- package/src/components/drawer.tsx +208 -0
- package/src/components/dropdown-menu.tsx +257 -0
- package/src/components/empty.tsx +93 -0
- package/src/components/field.tsx +232 -0
- package/src/components/hover-card.tsx +45 -0
- package/src/components/input-group.tsx +146 -0
- package/src/components/input-otp.tsx +83 -0
- package/src/components/input.tsx +19 -0
- package/src/components/item.tsx +188 -0
- package/src/components/kbd.tsx +26 -0
- package/src/components/label.tsx +17 -0
- package/src/components/markdown-content.tsx +113 -0
- package/src/components/marker.tsx +67 -0
- package/src/components/menubar.tsx +267 -0
- package/src/components/message-scroller.tsx +91 -0
- package/src/components/message.tsx +84 -0
- package/src/components/native-select.tsx +54 -0
- package/src/components/navigation-menu.tsx +160 -0
- package/src/components/pagination.tsx +118 -0
- package/src/components/popover.tsx +74 -0
- package/src/components/progress.tsx +82 -0
- package/src/components/questionnaire.tsx +150 -0
- package/src/components/radio-group.tsx +35 -0
- package/src/components/resizable.tsx +41 -0
- package/src/components/rich-text-editor.tsx +604 -0
- package/src/components/scroll-area.tsx +47 -0
- package/src/components/select.tsx +189 -0
- package/src/components/separator.tsx +18 -0
- package/src/components/sheet.tsx +125 -0
- package/src/components/sidebar.tsx +693 -0
- package/src/components/skeleton.tsx +13 -0
- package/src/components/slider.tsx +51 -0
- package/src/components/sonner.tsx +45 -0
- package/src/components/sparkline.tsx +231 -0
- package/src/components/spinner.tsx +20 -0
- package/src/components/status-badge.tsx +114 -0
- package/src/components/switch.tsx +31 -0
- package/src/components/table.tsx +91 -0
- package/src/components/tabs.tsx +72 -0
- package/src/components/textarea.tsx +17 -0
- package/src/components/toast.tsx +222 -0
- package/src/components/toggle-group.tsx +85 -0
- package/src/components/toggle.tsx +42 -0
- package/src/components/tooltip.tsx +53 -0
- package/src/design-system/README.md +55 -0
- package/src/design-system/action-intents.ts +21 -0
- package/src/design-system/agent-manifest.ts +83 -0
- package/src/design-system/block-registry.ts +272 -0
- package/src/design-system/component-registry.ts +142 -0
- package/src/design-system/contracts.ts +69 -0
- package/src/design-system/defaults.ts +3 -0
- package/src/design-system/index.ts +29 -0
- package/src/design-system/mcp-server.ts +156 -0
- package/src/design-system/page-registry.ts +74 -0
- package/src/design-system/selection.ts +67 -0
- package/src/design-system/template-registry.ts +33 -0
- package/src/features/interface-topology/index.ts +14 -0
- package/src/features/interface-topology/interface-topology.types.ts +40 -0
- package/src/features/interface-topology/topology-control.tsx +18 -0
- package/src/features/interface-topology/topology-inspector.tsx +228 -0
- package/src/features/interface-topology/topology-marker.tsx +47 -0
- package/src/features/interface-topology/topology-region.tsx +44 -0
- package/src/features/interface-topology/use-interface-topology.ts +178 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/use-scroll-follow.ts +22 -0
- package/src/index.ts +11 -0
- package/src/layouts/README.md +65 -0
- package/src/layouts/agent-workspace/agent-activity-rail.tsx +101 -0
- package/src/layouts/agent-workspace/agent-workspace.tsx +27 -0
- package/src/layouts/agent-workspace/agent-workspace.types.ts +28 -0
- package/src/layouts/agent-workspace/index.ts +7 -0
- package/src/layouts/blog-header/blog-header-types.ts +25 -0
- package/src/layouts/blog-header/blog-header.tsx +172 -0
- package/src/layouts/blog-header/index.ts +2 -0
- package/src/layouts/documentation-workspace/README.md +8 -0
- package/src/layouts/documentation-workspace/documentation-workspace.tsx +34 -0
- package/src/layouts/documentation-workspace/index.ts +1 -0
- package/src/layouts/ecommerce-header/ecommerce-actions.tsx +89 -0
- package/src/layouts/ecommerce-header/ecommerce-announcement.tsx +43 -0
- package/src/layouts/ecommerce-header/ecommerce-drawer.tsx +97 -0
- package/src/layouts/ecommerce-header/ecommerce-header-types.ts +59 -0
- package/src/layouts/ecommerce-header/ecommerce-header.tsx +47 -0
- package/src/layouts/ecommerce-header/ecommerce-navigation.tsx +98 -0
- package/src/layouts/ecommerce-header/ecommerce-search.tsx +86 -0
- package/src/layouts/ecommerce-header/index.ts +2 -0
- package/src/layouts/main-workspace/index.ts +28 -0
- package/src/layouts/mdi/index.ts +1 -0
- package/src/layouts/mdi/mdi.tsx +20 -0
- package/src/layouts/mdi-main/index.ts +27 -0
- package/src/layouts/mdi-main/mdi-app-catalog.generated.ts +159 -0
- package/src/layouts/mdi-main/mdi-app-catalog.ts +76 -0
- package/src/layouts/mdi-main/mdi-app-switcher.tsx +107 -0
- package/src/layouts/mdi-main/mdi-feature-settings.tsx +135 -0
- package/src/layouts/mdi-main/mdi-global-search.tsx +192 -0
- package/src/layouts/mdi-main/mdi-main.tsx +241 -0
- package/src/layouts/mdi-main/mdi-notifications-menu.tsx +197 -0
- package/src/layouts/mdi-main/mdi-profile-menu.tsx +79 -0
- package/src/layouts/mdi-main/mdi-sidebar-navigation.tsx +226 -0
- package/src/layouts/mdi-main/mdi-sidebar.tsx +110 -0
- package/src/layouts/mdi-main/mdi-status-bar.tsx +26 -0
- package/src/layouts/mdi-main/mdi-top-menu-control.ts +4 -0
- package/src/layouts/mdi-main/mdi-top-menu.tsx +117 -0
- package/src/layouts/mdi-main/mdi-topology.tsx +297 -0
- package/src/layouts/mdi-main/mdi-tweak-panel.tsx +104 -0
- package/src/layouts/mdi-main/mdi-types.ts +131 -0
- package/src/layouts/mdi-main/use-mdi-features.ts +36 -0
- package/src/layouts/mdi-main/use-mdi-sidebar-state.ts +59 -0
- package/src/layouts/site-header/announcement-bar.tsx +55 -0
- package/src/layouts/site-header/category-strip.tsx +41 -0
- package/src/layouts/site-header/index.ts +16 -0
- package/src/layouts/site-header/main-navbar.tsx +179 -0
- package/src/layouts/site-header/mobile-drawer.tsx +140 -0
- package/src/layouts/site-header/site-header-types.ts +63 -0
- package/src/layouts/site-header/site-header.tsx +58 -0
- package/src/lib/random-id.ts +19 -0
- package/src/lib/utils.ts +6 -0
- package/src/providers/pdf-provider.ts +137 -0
- package/src/styles/globals.css +374 -0
- package/src/templates/README.md +12 -0
- package/src/templates/dashboard-01/components/app-sidebar.tsx +177 -0
- package/src/templates/dashboard-01/components/chart-area-interactive.tsx +276 -0
- package/src/templates/dashboard-01/components/data-table-cell-viewer.tsx +213 -0
- package/src/templates/dashboard-01/components/data-table.tsx +577 -0
- package/src/templates/dashboard-01/components/nav-documents.tsx +79 -0
- package/src/templates/dashboard-01/components/nav-main.tsx +55 -0
- package/src/templates/dashboard-01/components/nav-secondary.tsx +39 -0
- package/src/templates/dashboard-01/components/nav-user.tsx +97 -0
- package/src/templates/dashboard-01/components/section-cards.tsx +99 -0
- package/src/templates/dashboard-01/components/site-header.tsx +14 -0
- package/src/templates/dashboard-01/data.json +614 -0
- package/src/templates/dashboard-01/index.ts +7 -0
- package/src/templates/documentation-sidebar/app-sidebar.tsx +95 -0
- package/src/templates/documentation-sidebar/index.ts +2 -0
- package/src/templates/sidebar-07/components/app-sidebar.tsx +175 -0
- package/src/templates/sidebar-07/components/nav-main.tsx +64 -0
- package/src/templates/sidebar-07/components/nav-projects.tsx +79 -0
- package/src/templates/sidebar-07/components/nav-user.tsx +105 -0
- package/src/templates/sidebar-07/components/team-switcher.tsx +94 -0
- package/src/templates/sidebar-07/index.ts +1 -0
- package/src/templates/ui-page/index.ts +7 -0
- package/src/templates/ui-page/ui-browser-frame.tsx +27 -0
- package/src/templates/ui-page/ui-template-code.tsx +48 -0
- package/src/templates/ui-page/ui-template-header.tsx +87 -0
- package/src/templates/ui-page/ui-template-navigation.tsx +60 -0
- package/src/templates/ui-page/ui-template-page.tsx +97 -0
- package/src/theme/index.ts +12 -0
- package/src/theme/theme-config.ts +30 -0
- package/src/theme/theme-provider.tsx +142 -0
- package/src/theme/theme-selector.tsx +75 -0
- package/src/tokens/index.ts +15 -0
- package/src/vite-env.d.ts +3 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
|
|
5
|
+
|
|
6
|
+
import { useIsMobile } from '@devxcrew/react-ui/hooks/use-mobile'
|
|
7
|
+
import {
|
|
8
|
+
Card,
|
|
9
|
+
CardAction,
|
|
10
|
+
CardContent,
|
|
11
|
+
CardDescription,
|
|
12
|
+
CardHeader,
|
|
13
|
+
CardTitle,
|
|
14
|
+
} from '@devxcrew/react-ui/components/card'
|
|
15
|
+
import {
|
|
16
|
+
ChartContainer,
|
|
17
|
+
ChartTooltip,
|
|
18
|
+
ChartTooltipContent,
|
|
19
|
+
type ChartConfig,
|
|
20
|
+
} from '@devxcrew/react-ui/components/chart'
|
|
21
|
+
import {
|
|
22
|
+
Select,
|
|
23
|
+
SelectContent,
|
|
24
|
+
SelectItem,
|
|
25
|
+
SelectTrigger,
|
|
26
|
+
SelectValue,
|
|
27
|
+
} from '@devxcrew/react-ui/components/select'
|
|
28
|
+
import { ToggleGroup, ToggleGroupItem } from '@devxcrew/react-ui/components/toggle-group'
|
|
29
|
+
|
|
30
|
+
export const description = 'An interactive area chart'
|
|
31
|
+
|
|
32
|
+
const chartData = [
|
|
33
|
+
{ date: '2024-04-01', desktop: 222, mobile: 150 },
|
|
34
|
+
{ date: '2024-04-02', desktop: 97, mobile: 180 },
|
|
35
|
+
{ date: '2024-04-03', desktop: 167, mobile: 120 },
|
|
36
|
+
{ date: '2024-04-04', desktop: 242, mobile: 260 },
|
|
37
|
+
{ date: '2024-04-05', desktop: 373, mobile: 290 },
|
|
38
|
+
{ date: '2024-04-06', desktop: 301, mobile: 340 },
|
|
39
|
+
{ date: '2024-04-07', desktop: 245, mobile: 180 },
|
|
40
|
+
{ date: '2024-04-08', desktop: 409, mobile: 320 },
|
|
41
|
+
{ date: '2024-04-09', desktop: 59, mobile: 110 },
|
|
42
|
+
{ date: '2024-04-10', desktop: 261, mobile: 190 },
|
|
43
|
+
{ date: '2024-04-11', desktop: 327, mobile: 350 },
|
|
44
|
+
{ date: '2024-04-12', desktop: 292, mobile: 210 },
|
|
45
|
+
{ date: '2024-04-13', desktop: 342, mobile: 380 },
|
|
46
|
+
{ date: '2024-04-14', desktop: 137, mobile: 220 },
|
|
47
|
+
{ date: '2024-04-15', desktop: 120, mobile: 170 },
|
|
48
|
+
{ date: '2024-04-16', desktop: 138, mobile: 190 },
|
|
49
|
+
{ date: '2024-04-17', desktop: 446, mobile: 360 },
|
|
50
|
+
{ date: '2024-04-18', desktop: 364, mobile: 410 },
|
|
51
|
+
{ date: '2024-04-19', desktop: 243, mobile: 180 },
|
|
52
|
+
{ date: '2024-04-20', desktop: 89, mobile: 150 },
|
|
53
|
+
{ date: '2024-04-21', desktop: 137, mobile: 200 },
|
|
54
|
+
{ date: '2024-04-22', desktop: 224, mobile: 170 },
|
|
55
|
+
{ date: '2024-04-23', desktop: 138, mobile: 230 },
|
|
56
|
+
{ date: '2024-04-24', desktop: 387, mobile: 290 },
|
|
57
|
+
{ date: '2024-04-25', desktop: 215, mobile: 250 },
|
|
58
|
+
{ date: '2024-04-26', desktop: 75, mobile: 130 },
|
|
59
|
+
{ date: '2024-04-27', desktop: 383, mobile: 420 },
|
|
60
|
+
{ date: '2024-04-28', desktop: 122, mobile: 180 },
|
|
61
|
+
{ date: '2024-04-29', desktop: 315, mobile: 240 },
|
|
62
|
+
{ date: '2024-04-30', desktop: 454, mobile: 380 },
|
|
63
|
+
{ date: '2024-05-01', desktop: 165, mobile: 220 },
|
|
64
|
+
{ date: '2024-05-02', desktop: 293, mobile: 310 },
|
|
65
|
+
{ date: '2024-05-03', desktop: 247, mobile: 190 },
|
|
66
|
+
{ date: '2024-05-04', desktop: 385, mobile: 420 },
|
|
67
|
+
{ date: '2024-05-05', desktop: 481, mobile: 390 },
|
|
68
|
+
{ date: '2024-05-06', desktop: 498, mobile: 520 },
|
|
69
|
+
{ date: '2024-05-07', desktop: 388, mobile: 300 },
|
|
70
|
+
{ date: '2024-05-08', desktop: 149, mobile: 210 },
|
|
71
|
+
{ date: '2024-05-09', desktop: 227, mobile: 180 },
|
|
72
|
+
{ date: '2024-05-10', desktop: 293, mobile: 330 },
|
|
73
|
+
{ date: '2024-05-11', desktop: 335, mobile: 270 },
|
|
74
|
+
{ date: '2024-05-12', desktop: 197, mobile: 240 },
|
|
75
|
+
{ date: '2024-05-13', desktop: 197, mobile: 160 },
|
|
76
|
+
{ date: '2024-05-14', desktop: 448, mobile: 490 },
|
|
77
|
+
{ date: '2024-05-15', desktop: 473, mobile: 380 },
|
|
78
|
+
{ date: '2024-05-16', desktop: 338, mobile: 400 },
|
|
79
|
+
{ date: '2024-05-17', desktop: 499, mobile: 420 },
|
|
80
|
+
{ date: '2024-05-18', desktop: 315, mobile: 350 },
|
|
81
|
+
{ date: '2024-05-19', desktop: 235, mobile: 180 },
|
|
82
|
+
{ date: '2024-05-20', desktop: 177, mobile: 230 },
|
|
83
|
+
{ date: '2024-05-21', desktop: 82, mobile: 140 },
|
|
84
|
+
{ date: '2024-05-22', desktop: 81, mobile: 120 },
|
|
85
|
+
{ date: '2024-05-23', desktop: 252, mobile: 290 },
|
|
86
|
+
{ date: '2024-05-24', desktop: 294, mobile: 220 },
|
|
87
|
+
{ date: '2024-05-25', desktop: 201, mobile: 250 },
|
|
88
|
+
{ date: '2024-05-26', desktop: 213, mobile: 170 },
|
|
89
|
+
{ date: '2024-05-27', desktop: 420, mobile: 460 },
|
|
90
|
+
{ date: '2024-05-28', desktop: 233, mobile: 190 },
|
|
91
|
+
{ date: '2024-05-29', desktop: 78, mobile: 130 },
|
|
92
|
+
{ date: '2024-05-30', desktop: 340, mobile: 280 },
|
|
93
|
+
{ date: '2024-05-31', desktop: 178, mobile: 230 },
|
|
94
|
+
{ date: '2024-06-01', desktop: 178, mobile: 200 },
|
|
95
|
+
{ date: '2024-06-02', desktop: 470, mobile: 410 },
|
|
96
|
+
{ date: '2024-06-03', desktop: 103, mobile: 160 },
|
|
97
|
+
{ date: '2024-06-04', desktop: 439, mobile: 380 },
|
|
98
|
+
{ date: '2024-06-05', desktop: 88, mobile: 140 },
|
|
99
|
+
{ date: '2024-06-06', desktop: 294, mobile: 250 },
|
|
100
|
+
{ date: '2024-06-07', desktop: 323, mobile: 370 },
|
|
101
|
+
{ date: '2024-06-08', desktop: 385, mobile: 320 },
|
|
102
|
+
{ date: '2024-06-09', desktop: 438, mobile: 480 },
|
|
103
|
+
{ date: '2024-06-10', desktop: 155, mobile: 200 },
|
|
104
|
+
{ date: '2024-06-11', desktop: 92, mobile: 150 },
|
|
105
|
+
{ date: '2024-06-12', desktop: 492, mobile: 420 },
|
|
106
|
+
{ date: '2024-06-13', desktop: 81, mobile: 130 },
|
|
107
|
+
{ date: '2024-06-14', desktop: 426, mobile: 380 },
|
|
108
|
+
{ date: '2024-06-15', desktop: 307, mobile: 350 },
|
|
109
|
+
{ date: '2024-06-16', desktop: 371, mobile: 310 },
|
|
110
|
+
{ date: '2024-06-17', desktop: 475, mobile: 520 },
|
|
111
|
+
{ date: '2024-06-18', desktop: 107, mobile: 170 },
|
|
112
|
+
{ date: '2024-06-19', desktop: 341, mobile: 290 },
|
|
113
|
+
{ date: '2024-06-20', desktop: 408, mobile: 450 },
|
|
114
|
+
{ date: '2024-06-21', desktop: 169, mobile: 210 },
|
|
115
|
+
{ date: '2024-06-22', desktop: 317, mobile: 270 },
|
|
116
|
+
{ date: '2024-06-23', desktop: 480, mobile: 530 },
|
|
117
|
+
{ date: '2024-06-24', desktop: 132, mobile: 180 },
|
|
118
|
+
{ date: '2024-06-25', desktop: 141, mobile: 190 },
|
|
119
|
+
{ date: '2024-06-26', desktop: 434, mobile: 380 },
|
|
120
|
+
{ date: '2024-06-27', desktop: 448, mobile: 490 },
|
|
121
|
+
{ date: '2024-06-28', desktop: 149, mobile: 200 },
|
|
122
|
+
{ date: '2024-06-29', desktop: 103, mobile: 160 },
|
|
123
|
+
{ date: '2024-06-30', desktop: 446, mobile: 400 },
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
const chartConfig = {
|
|
127
|
+
visitors: {
|
|
128
|
+
label: 'Visitors',
|
|
129
|
+
},
|
|
130
|
+
desktop: {
|
|
131
|
+
label: 'Desktop',
|
|
132
|
+
color: 'var(--primary)',
|
|
133
|
+
},
|
|
134
|
+
mobile: {
|
|
135
|
+
label: 'Mobile',
|
|
136
|
+
color: 'var(--primary)',
|
|
137
|
+
},
|
|
138
|
+
} satisfies ChartConfig
|
|
139
|
+
|
|
140
|
+
export function ChartAreaInteractive() {
|
|
141
|
+
const isMobile = useIsMobile()
|
|
142
|
+
const [timeRange, setTimeRange] = React.useState('90d')
|
|
143
|
+
|
|
144
|
+
React.useEffect(() => {
|
|
145
|
+
if (isMobile) {
|
|
146
|
+
setTimeRange('7d')
|
|
147
|
+
}
|
|
148
|
+
}, [isMobile])
|
|
149
|
+
|
|
150
|
+
const filteredData = chartData.filter((item) => {
|
|
151
|
+
const date = new Date(item.date)
|
|
152
|
+
const referenceDate = new Date('2024-06-30')
|
|
153
|
+
let daysToSubtract = 90
|
|
154
|
+
if (timeRange === '30d') {
|
|
155
|
+
daysToSubtract = 30
|
|
156
|
+
} else if (timeRange === '7d') {
|
|
157
|
+
daysToSubtract = 7
|
|
158
|
+
}
|
|
159
|
+
const startDate = new Date(referenceDate)
|
|
160
|
+
startDate.setDate(startDate.getDate() - daysToSubtract)
|
|
161
|
+
return date >= startDate
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
<Card className="@container/card">
|
|
166
|
+
<CardHeader>
|
|
167
|
+
<CardTitle>Total Visitors</CardTitle>
|
|
168
|
+
<CardDescription>
|
|
169
|
+
<span className="hidden @[540px]/card:block">Total for the last 3 months</span>
|
|
170
|
+
<span className="@[540px]/card:hidden">Last 3 months</span>
|
|
171
|
+
</CardDescription>
|
|
172
|
+
<CardAction>
|
|
173
|
+
<ToggleGroup
|
|
174
|
+
multiple={false}
|
|
175
|
+
value={timeRange ? [timeRange] : []}
|
|
176
|
+
onValueChange={(value) => {
|
|
177
|
+
setTimeRange(value[0] ?? '90d')
|
|
178
|
+
}}
|
|
179
|
+
variant="outline"
|
|
180
|
+
className="hidden *:data-[slot=toggle-group-item]:px-4! @[767px]/card:flex"
|
|
181
|
+
>
|
|
182
|
+
<ToggleGroupItem value="90d">Last 3 months</ToggleGroupItem>
|
|
183
|
+
<ToggleGroupItem value="30d">Last 30 days</ToggleGroupItem>
|
|
184
|
+
<ToggleGroupItem value="7d">Last 7 days</ToggleGroupItem>
|
|
185
|
+
</ToggleGroup>
|
|
186
|
+
<Select
|
|
187
|
+
value={timeRange}
|
|
188
|
+
onValueChange={(value) => {
|
|
189
|
+
if (value !== null) {
|
|
190
|
+
setTimeRange(value)
|
|
191
|
+
}
|
|
192
|
+
}}
|
|
193
|
+
>
|
|
194
|
+
<SelectTrigger
|
|
195
|
+
className="flex w-40 **:data-[slot=select-value]:block **:data-[slot=select-value]:truncate @[767px]/card:hidden"
|
|
196
|
+
size="sm"
|
|
197
|
+
aria-label="Select a value"
|
|
198
|
+
>
|
|
199
|
+
<SelectValue placeholder="Last 3 months" />
|
|
200
|
+
</SelectTrigger>
|
|
201
|
+
<SelectContent className="rounded-xl">
|
|
202
|
+
<SelectItem value="90d" className="rounded-lg">
|
|
203
|
+
Last 3 months
|
|
204
|
+
</SelectItem>
|
|
205
|
+
<SelectItem value="30d" className="rounded-lg">
|
|
206
|
+
Last 30 days
|
|
207
|
+
</SelectItem>
|
|
208
|
+
<SelectItem value="7d" className="rounded-lg">
|
|
209
|
+
Last 7 days
|
|
210
|
+
</SelectItem>
|
|
211
|
+
</SelectContent>
|
|
212
|
+
</Select>
|
|
213
|
+
</CardAction>
|
|
214
|
+
</CardHeader>
|
|
215
|
+
<CardContent className="px-2 pt-4 sm:px-6 sm:pt-6">
|
|
216
|
+
<ChartContainer config={chartConfig} className="aspect-auto h-[250px] w-full">
|
|
217
|
+
<AreaChart data={filteredData}>
|
|
218
|
+
<defs>
|
|
219
|
+
<linearGradient id="fillDesktop" x1="0" y1="0" x2="0" y2="1">
|
|
220
|
+
<stop offset="5%" stopColor="var(--color-desktop)" stopOpacity={1.0} />
|
|
221
|
+
<stop offset="95%" stopColor="var(--color-desktop)" stopOpacity={0.1} />
|
|
222
|
+
</linearGradient>
|
|
223
|
+
<linearGradient id="fillMobile" x1="0" y1="0" x2="0" y2="1">
|
|
224
|
+
<stop offset="5%" stopColor="var(--color-mobile)" stopOpacity={0.8} />
|
|
225
|
+
<stop offset="95%" stopColor="var(--color-mobile)" stopOpacity={0.1} />
|
|
226
|
+
</linearGradient>
|
|
227
|
+
</defs>
|
|
228
|
+
<CartesianGrid vertical={false} />
|
|
229
|
+
<XAxis
|
|
230
|
+
dataKey="date"
|
|
231
|
+
tickLine={false}
|
|
232
|
+
axisLine={false}
|
|
233
|
+
tickMargin={8}
|
|
234
|
+
minTickGap={32}
|
|
235
|
+
tickFormatter={(value) => {
|
|
236
|
+
const date = new Date(value)
|
|
237
|
+
return date.toLocaleDateString('en-US', {
|
|
238
|
+
month: 'short',
|
|
239
|
+
day: 'numeric',
|
|
240
|
+
})
|
|
241
|
+
}}
|
|
242
|
+
/>
|
|
243
|
+
<ChartTooltip
|
|
244
|
+
cursor={false}
|
|
245
|
+
content={
|
|
246
|
+
<ChartTooltipContent
|
|
247
|
+
labelFormatter={(value) => {
|
|
248
|
+
return new Date(String(value)).toLocaleDateString('en-US', {
|
|
249
|
+
month: 'short',
|
|
250
|
+
day: 'numeric',
|
|
251
|
+
})
|
|
252
|
+
}}
|
|
253
|
+
indicator="dot"
|
|
254
|
+
/>
|
|
255
|
+
}
|
|
256
|
+
/>
|
|
257
|
+
<Area
|
|
258
|
+
dataKey="mobile"
|
|
259
|
+
type="natural"
|
|
260
|
+
fill="url(#fillMobile)"
|
|
261
|
+
stroke="var(--color-mobile)"
|
|
262
|
+
stackId="a"
|
|
263
|
+
/>
|
|
264
|
+
<Area
|
|
265
|
+
dataKey="desktop"
|
|
266
|
+
type="natural"
|
|
267
|
+
fill="url(#fillDesktop)"
|
|
268
|
+
stroke="var(--color-desktop)"
|
|
269
|
+
stackId="a"
|
|
270
|
+
/>
|
|
271
|
+
</AreaChart>
|
|
272
|
+
</ChartContainer>
|
|
273
|
+
</CardContent>
|
|
274
|
+
</Card>
|
|
275
|
+
)
|
|
276
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
|
|
2
|
+
|
|
3
|
+
import { Button } from '@devxcrew/react-ui/components/button'
|
|
4
|
+
import {
|
|
5
|
+
ChartContainer,
|
|
6
|
+
ChartTooltip,
|
|
7
|
+
ChartTooltipContent,
|
|
8
|
+
type ChartConfig,
|
|
9
|
+
} from '@devxcrew/react-ui/components/chart'
|
|
10
|
+
import {
|
|
11
|
+
Drawer,
|
|
12
|
+
DrawerClose,
|
|
13
|
+
DrawerContent,
|
|
14
|
+
DrawerDescription,
|
|
15
|
+
DrawerFooter,
|
|
16
|
+
DrawerHeader,
|
|
17
|
+
DrawerTitle,
|
|
18
|
+
DrawerTrigger,
|
|
19
|
+
} from '@devxcrew/react-ui/components/drawer'
|
|
20
|
+
import { Input } from '@devxcrew/react-ui/components/input'
|
|
21
|
+
import { Label } from '@devxcrew/react-ui/components/label'
|
|
22
|
+
import {
|
|
23
|
+
Select,
|
|
24
|
+
SelectContent,
|
|
25
|
+
SelectGroup,
|
|
26
|
+
SelectItem,
|
|
27
|
+
SelectTrigger,
|
|
28
|
+
SelectValue,
|
|
29
|
+
} from '@devxcrew/react-ui/components/select'
|
|
30
|
+
import { Separator } from '@devxcrew/react-ui/components/separator'
|
|
31
|
+
import { useIsMobile } from '@devxcrew/react-ui/hooks/use-mobile'
|
|
32
|
+
import { TrendingUpIcon } from 'lucide-react'
|
|
33
|
+
|
|
34
|
+
import type { DataTableItem } from './data-table'
|
|
35
|
+
|
|
36
|
+
const chartData = [
|
|
37
|
+
{ month: 'January', desktop: 186, mobile: 80 },
|
|
38
|
+
{ month: 'February', desktop: 305, mobile: 200 },
|
|
39
|
+
{ month: 'March', desktop: 237, mobile: 120 },
|
|
40
|
+
{ month: 'April', desktop: 73, mobile: 190 },
|
|
41
|
+
{ month: 'May', desktop: 209, mobile: 130 },
|
|
42
|
+
{ month: 'June', desktop: 214, mobile: 140 },
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
const chartConfig = {
|
|
46
|
+
desktop: { label: 'Desktop', color: 'var(--primary)' },
|
|
47
|
+
mobile: { label: 'Mobile', color: 'var(--primary)' },
|
|
48
|
+
} satisfies ChartConfig
|
|
49
|
+
|
|
50
|
+
export function TableCellViewer({ item }: { item: DataTableItem }) {
|
|
51
|
+
const isMobile = useIsMobile()
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<Drawer swipeDirection={isMobile ? 'down' : 'right'}>
|
|
55
|
+
<DrawerTrigger
|
|
56
|
+
render={<Button variant="link" className="w-fit px-0 text-left text-foreground" />}
|
|
57
|
+
>
|
|
58
|
+
{item.header}
|
|
59
|
+
</DrawerTrigger>
|
|
60
|
+
<DrawerContent>
|
|
61
|
+
<DrawerHeader className="gap-1">
|
|
62
|
+
<DrawerTitle>{item.header}</DrawerTitle>
|
|
63
|
+
<DrawerDescription>Showing total visitors for the last 6 months</DrawerDescription>
|
|
64
|
+
</DrawerHeader>
|
|
65
|
+
<div className="flex flex-col gap-4 overflow-y-auto px-4 text-sm">
|
|
66
|
+
{!isMobile && (
|
|
67
|
+
<>
|
|
68
|
+
<ChartContainer config={chartConfig}>
|
|
69
|
+
<AreaChart accessibilityLayer data={chartData} margin={{ left: 0, right: 10 }}>
|
|
70
|
+
<CartesianGrid vertical={false} />
|
|
71
|
+
<XAxis
|
|
72
|
+
dataKey="month"
|
|
73
|
+
tickLine={false}
|
|
74
|
+
axisLine={false}
|
|
75
|
+
tickMargin={8}
|
|
76
|
+
tickFormatter={(value) => value.slice(0, 3)}
|
|
77
|
+
hide
|
|
78
|
+
/>
|
|
79
|
+
<ChartTooltip cursor={false} content={<ChartTooltipContent indicator="dot" />} />
|
|
80
|
+
<Area
|
|
81
|
+
dataKey="mobile"
|
|
82
|
+
type="natural"
|
|
83
|
+
fill="var(--color-mobile)"
|
|
84
|
+
fillOpacity={0.6}
|
|
85
|
+
stroke="var(--color-mobile)"
|
|
86
|
+
stackId="a"
|
|
87
|
+
/>
|
|
88
|
+
<Area
|
|
89
|
+
dataKey="desktop"
|
|
90
|
+
type="natural"
|
|
91
|
+
fill="var(--color-desktop)"
|
|
92
|
+
fillOpacity={0.4}
|
|
93
|
+
stroke="var(--color-desktop)"
|
|
94
|
+
stackId="a"
|
|
95
|
+
/>
|
|
96
|
+
</AreaChart>
|
|
97
|
+
</ChartContainer>
|
|
98
|
+
<Separator />
|
|
99
|
+
<div className="grid gap-2">
|
|
100
|
+
<div className="flex gap-2 leading-none font-medium">
|
|
101
|
+
Trending up by 5.2% this month <TrendingUpIcon className="size-4" />
|
|
102
|
+
</div>
|
|
103
|
+
<div className="text-muted-foreground">
|
|
104
|
+
Showing total visitors for the last 6 months. This is just some random text to
|
|
105
|
+
test the layout. It spans multiple lines and should wrap around.
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<Separator />
|
|
109
|
+
</>
|
|
110
|
+
)}
|
|
111
|
+
<form className="flex flex-col gap-4">
|
|
112
|
+
<div className="flex flex-col gap-3">
|
|
113
|
+
<Label htmlFor="header">Header</Label>
|
|
114
|
+
<Input id="header" defaultValue={item.header} />
|
|
115
|
+
</div>
|
|
116
|
+
<div className="grid grid-cols-2 gap-4">
|
|
117
|
+
<div className="flex flex-col gap-3">
|
|
118
|
+
<Label htmlFor="type">Type</Label>
|
|
119
|
+
<Select
|
|
120
|
+
defaultValue={item.type}
|
|
121
|
+
items={[
|
|
122
|
+
{ label: 'Table of Contents', value: 'Table of Contents' },
|
|
123
|
+
{ label: 'Executive Summary', value: 'Executive Summary' },
|
|
124
|
+
{ label: 'Technical Approach', value: 'Technical Approach' },
|
|
125
|
+
{ label: 'Design', value: 'Design' },
|
|
126
|
+
{ label: 'Capabilities', value: 'Capabilities' },
|
|
127
|
+
{ label: 'Focus Documents', value: 'Focus Documents' },
|
|
128
|
+
{ label: 'Narrative', value: 'Narrative' },
|
|
129
|
+
{ label: 'Cover Page', value: 'Cover Page' },
|
|
130
|
+
]}
|
|
131
|
+
>
|
|
132
|
+
<SelectTrigger id="type" className="w-full">
|
|
133
|
+
<SelectValue placeholder="Select a type" />
|
|
134
|
+
</SelectTrigger>
|
|
135
|
+
<SelectContent>
|
|
136
|
+
<SelectGroup>
|
|
137
|
+
<SelectItem value="Table of Contents">Table of Contents</SelectItem>
|
|
138
|
+
<SelectItem value="Executive Summary">Executive Summary</SelectItem>
|
|
139
|
+
<SelectItem value="Technical Approach">Technical Approach</SelectItem>
|
|
140
|
+
<SelectItem value="Design">Design</SelectItem>
|
|
141
|
+
<SelectItem value="Capabilities">Capabilities</SelectItem>
|
|
142
|
+
<SelectItem value="Focus Documents">Focus Documents</SelectItem>
|
|
143
|
+
<SelectItem value="Narrative">Narrative</SelectItem>
|
|
144
|
+
<SelectItem value="Cover Page">Cover Page</SelectItem>
|
|
145
|
+
</SelectGroup>
|
|
146
|
+
</SelectContent>
|
|
147
|
+
</Select>
|
|
148
|
+
</div>
|
|
149
|
+
<div className="flex flex-col gap-3">
|
|
150
|
+
<Label htmlFor="status">Status</Label>
|
|
151
|
+
<Select
|
|
152
|
+
defaultValue={item.status}
|
|
153
|
+
items={[
|
|
154
|
+
{ label: 'Done', value: 'Done' },
|
|
155
|
+
{ label: 'In Progress', value: 'In Progress' },
|
|
156
|
+
{ label: 'Not Started', value: 'Not Started' },
|
|
157
|
+
]}
|
|
158
|
+
>
|
|
159
|
+
<SelectTrigger id="status" className="w-full">
|
|
160
|
+
<SelectValue placeholder="Select a status" />
|
|
161
|
+
</SelectTrigger>
|
|
162
|
+
<SelectContent>
|
|
163
|
+
<SelectGroup>
|
|
164
|
+
<SelectItem value="Done">Done</SelectItem>
|
|
165
|
+
<SelectItem value="In Progress">In Progress</SelectItem>
|
|
166
|
+
<SelectItem value="Not Started">Not Started</SelectItem>
|
|
167
|
+
</SelectGroup>
|
|
168
|
+
</SelectContent>
|
|
169
|
+
</Select>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
<div className="grid grid-cols-2 gap-4">
|
|
173
|
+
<div className="flex flex-col gap-3">
|
|
174
|
+
<Label htmlFor="target">Target</Label>
|
|
175
|
+
<Input id="target" defaultValue={item.target} />
|
|
176
|
+
</div>
|
|
177
|
+
<div className="flex flex-col gap-3">
|
|
178
|
+
<Label htmlFor="limit">Limit</Label>
|
|
179
|
+
<Input id="limit" defaultValue={item.limit} />
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div className="flex flex-col gap-3">
|
|
183
|
+
<Label htmlFor="reviewer">Reviewer</Label>
|
|
184
|
+
<Select
|
|
185
|
+
defaultValue={item.reviewer}
|
|
186
|
+
items={[
|
|
187
|
+
{ label: 'Eddie Lake', value: 'Eddie Lake' },
|
|
188
|
+
{ label: 'Jamik Tashpulatov', value: 'Jamik Tashpulatov' },
|
|
189
|
+
{ label: 'Emily Whalen', value: 'Emily Whalen' },
|
|
190
|
+
]}
|
|
191
|
+
>
|
|
192
|
+
<SelectTrigger id="reviewer" className="w-full">
|
|
193
|
+
<SelectValue placeholder="Select a reviewer" />
|
|
194
|
+
</SelectTrigger>
|
|
195
|
+
<SelectContent>
|
|
196
|
+
<SelectGroup>
|
|
197
|
+
<SelectItem value="Eddie Lake">Eddie Lake</SelectItem>
|
|
198
|
+
<SelectItem value="Jamik Tashpulatov">Jamik Tashpulatov</SelectItem>
|
|
199
|
+
<SelectItem value="Emily Whalen">Emily Whalen</SelectItem>
|
|
200
|
+
</SelectGroup>
|
|
201
|
+
</SelectContent>
|
|
202
|
+
</Select>
|
|
203
|
+
</div>
|
|
204
|
+
</form>
|
|
205
|
+
</div>
|
|
206
|
+
<DrawerFooter>
|
|
207
|
+
<Button>Submit</Button>
|
|
208
|
+
<DrawerClose render={<Button variant="outline" />}>Done</DrawerClose>
|
|
209
|
+
</DrawerFooter>
|
|
210
|
+
</DrawerContent>
|
|
211
|
+
</Drawer>
|
|
212
|
+
)
|
|
213
|
+
}
|