@gv-tech/design-system 2.5.0 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/package.json +5 -2
- package/.agent/skills/dogfood-components/SKILL.md +0 -34
- package/.agent/skills/maintain-component/SKILL.md +0 -77
- package/.agent/workflows/native-playground.md +0 -93
- package/.github/CODEOWNERS +0 -2
- package/.github/CONTRIBUTING.md +0 -42
- package/.github/FUNDING.yml +0 -4
- package/.github/PULL_REQUEST_TEMPLATE/build.md +0 -5
- package/.github/PULL_REQUEST_TEMPLATE/standard.md +0 -3
- package/.github/RELEASING.md +0 -37
- package/.github/copilot-instructions.md +0 -61
- package/.github/workflows/ci.yml +0 -91
- package/.github/workflows/codeql-analysis.yml +0 -34
- package/.github/workflows/release-please.yml +0 -79
- package/.husky/pre-commit +0 -1
- package/.prettierignore +0 -3
- package/.release-please-manifest.json +0 -9
- package/.tool-versions +0 -1
- package/.vscode/launch.json +0 -22
- package/.vscode/mcp.json +0 -8
- package/.vscode/settings.json +0 -30
- package/.yarnrc.yml +0 -7
- package/SECURITY.md +0 -9
- package/apps/.gitkeep +0 -0
- package/apps/native-playground/CHANGELOG.md +0 -8
- package/apps/native-playground/app.json +0 -37
- package/apps/native-playground/assets/fonts/.gitkeep +0 -0
- package/apps/native-playground/assets/images/adaptive-icon.png +0 -0
- package/apps/native-playground/assets/images/favicon.png +0 -0
- package/apps/native-playground/assets/images/icon.png +0 -0
- package/apps/native-playground/assets/images/splash-icon.png +0 -0
- package/apps/native-playground/babel.config.js +0 -6
- package/apps/native-playground/eas.json +0 -25
- package/apps/native-playground/index.js +0 -8
- package/apps/native-playground/metro.config.js +0 -26
- package/apps/native-playground/nativewind-env.d.ts +0 -1
- package/apps/native-playground/package.json +0 -23
- package/apps/native-playground/project.json +0 -15
- package/apps/native-playground/src/app/App.tsx +0 -842
- package/apps/native-playground/src/global.css +0 -49
- package/apps/native-playground/tailwind.config.js +0 -49
- package/apps/native-playground/tsconfig.app.json +0 -24
- package/apps/native-playground/tsconfig.json +0 -23
- package/apps/native-playground/tsconfig.spec.json +0 -24
- package/apps/playground-web/CHANGELOG.md +0 -8
- package/apps/playground-web/index.html +0 -13
- package/apps/playground-web/package.json +0 -31
- package/apps/playground-web/public/favicon.png +0 -0
- package/apps/playground-web/public/index.demo.html +0 -40
- package/apps/playground-web/public/logo192.png +0 -0
- package/apps/playground-web/public/logo512.png +0 -0
- package/apps/playground-web/public/manifest.json +0 -25
- package/apps/playground-web/public/robots.txt +0 -2
- package/apps/playground-web/src/App.tsx +0 -179
- package/apps/playground-web/src/components/docs/CodeBlock.tsx +0 -34
- package/apps/playground-web/src/components/docs/CombinedDocsLayout.tsx +0 -103
- package/apps/playground-web/src/components/docs/ComponentShowcase.tsx +0 -96
- package/apps/playground-web/src/components/docs/ErrorBoundary.tsx +0 -55
- package/apps/playground-web/src/components/docs/Footer.tsx +0 -146
- package/apps/playground-web/src/components/docs/PropsTable.tsx +0 -43
- package/apps/playground-web/src/components/docs/Search.tsx +0 -75
- package/apps/playground-web/src/components/docs/Sidebar.tsx +0 -77
- package/apps/playground-web/src/components/docs/ThemeToggle.tsx +0 -19
- package/apps/playground-web/src/components/docs/index.ts +0 -9
- package/apps/playground-web/src/config/docs.ts +0 -293
- package/apps/playground-web/src/globals.css +0 -148
- package/apps/playground-web/src/hooks/useDocMetadata.ts +0 -34
- package/apps/playground-web/src/hooks/usePackageManager.tsx +0 -42
- package/apps/playground-web/src/lib/react-native-shim.js +0 -34
- package/apps/playground-web/src/main.tsx +0 -11
- package/apps/playground-web/src/pages/index.ts +0 -4
- package/apps/playground-web/src/pages/native/AccordionDocs.tsx +0 -85
- package/apps/playground-web/src/pages/native/AlertDialogDocs.tsx +0 -128
- package/apps/playground-web/src/pages/native/AlertDocs.tsx +0 -89
- package/apps/playground-web/src/pages/native/AspectRatioDocs.tsx +0 -52
- package/apps/playground-web/src/pages/native/AvatarDocs.tsx +0 -92
- package/apps/playground-web/src/pages/native/BadgeDocs.tsx +0 -63
- package/apps/playground-web/src/pages/native/BreadcrumbDocs.tsx +0 -71
- package/apps/playground-web/src/pages/native/ButtonDocs.tsx +0 -103
- package/apps/playground-web/src/pages/native/CalendarDocs.tsx +0 -74
- package/apps/playground-web/src/pages/native/CardDocs.tsx +0 -75
- package/apps/playground-web/src/pages/native/CarouselDocs.tsx +0 -113
- package/apps/playground-web/src/pages/native/ChartDocs.tsx +0 -115
- package/apps/playground-web/src/pages/native/CheckboxDocs.tsx +0 -38
- package/apps/playground-web/src/pages/native/CollapsibleDocs.tsx +0 -89
- package/apps/playground-web/src/pages/native/CommandDocs.tsx +0 -170
- package/apps/playground-web/src/pages/native/ContextMenuDocs.tsx +0 -121
- package/apps/playground-web/src/pages/native/DialogDocs.tsx +0 -132
- package/apps/playground-web/src/pages/native/DrawerDocs.tsx +0 -158
- package/apps/playground-web/src/pages/native/DropdownMenuDocs.tsx +0 -168
- package/apps/playground-web/src/pages/native/HoverCardDocs.tsx +0 -119
- package/apps/playground-web/src/pages/native/InputDocs.tsx +0 -86
- package/apps/playground-web/src/pages/native/LabelDocs.tsx +0 -55
- package/apps/playground-web/src/pages/native/MenubarDocs.tsx +0 -197
- package/apps/playground-web/src/pages/native/NavigationMenuDocs.tsx +0 -190
- package/apps/playground-web/src/pages/native/PaginationDocs.tsx +0 -70
- package/apps/playground-web/src/pages/native/PopoverDocs.tsx +0 -156
- package/apps/playground-web/src/pages/native/ProgressDocs.tsx +0 -61
- package/apps/playground-web/src/pages/native/RadioGroupDocs.tsx +0 -125
- package/apps/playground-web/src/pages/native/ResizableDocs.tsx +0 -118
- package/apps/playground-web/src/pages/native/ScrollAreaDocs.tsx +0 -92
- package/apps/playground-web/src/pages/native/SearchDocs.tsx +0 -150
- package/apps/playground-web/src/pages/native/SelectDocs.tsx +0 -141
- package/apps/playground-web/src/pages/native/SeparatorDocs.tsx +0 -72
- package/apps/playground-web/src/pages/native/SheetDocs.tsx +0 -140
- package/apps/playground-web/src/pages/native/SkeletonDocs.tsx +0 -44
- package/apps/playground-web/src/pages/native/SliderDocs.tsx +0 -118
- package/apps/playground-web/src/pages/native/SonnerDocs.tsx +0 -111
- package/apps/playground-web/src/pages/native/SwitchDocs.tsx +0 -87
- package/apps/playground-web/src/pages/native/TableDocs.tsx +0 -67
- package/apps/playground-web/src/pages/native/TabsDocs.tsx +0 -175
- package/apps/playground-web/src/pages/native/TextareaDocs.tsx +0 -61
- package/apps/playground-web/src/pages/native/ThemeToggleDocs.tsx +0 -288
- package/apps/playground-web/src/pages/native/ToastDocs.tsx +0 -124
- package/apps/playground-web/src/pages/native/ToggleDocs.tsx +0 -81
- package/apps/playground-web/src/pages/native/ToggleGroupDocs.tsx +0 -128
- package/apps/playground-web/src/pages/native/TooltipDocs.tsx +0 -140
- package/apps/playground-web/src/pages/native/index.ts +0 -47
- package/apps/playground-web/src/pages/shared/ColorTokensDocs.tsx +0 -234
- package/apps/playground-web/src/pages/shared/GettingStarted.tsx +0 -413
- package/apps/playground-web/src/pages/web/AccordionDocs.tsx +0 -194
- package/apps/playground-web/src/pages/web/AlertDialogDocs.tsx +0 -157
- package/apps/playground-web/src/pages/web/AlertDocs.tsx +0 -110
- package/apps/playground-web/src/pages/web/AspectRatioDocs.tsx +0 -94
- package/apps/playground-web/src/pages/web/AvatarDocs.tsx +0 -81
- package/apps/playground-web/src/pages/web/BadgeDocs.tsx +0 -66
- package/apps/playground-web/src/pages/web/BreadcrumbDocs.tsx +0 -93
- package/apps/playground-web/src/pages/web/ButtonDocs.tsx +0 -129
- package/apps/playground-web/src/pages/web/CalendarDocs.tsx +0 -78
- package/apps/playground-web/src/pages/web/CardDocs.tsx +0 -115
- package/apps/playground-web/src/pages/web/CarouselDocs.tsx +0 -176
- package/apps/playground-web/src/pages/web/ChartDocs.tsx +0 -151
- package/apps/playground-web/src/pages/web/CheckboxDocs.tsx +0 -95
- package/apps/playground-web/src/pages/web/CollapsibleDocs.tsx +0 -111
- package/apps/playground-web/src/pages/web/CommandDocs.tsx +0 -219
- package/apps/playground-web/src/pages/web/ContextMenuDocs.tsx +0 -164
- package/apps/playground-web/src/pages/web/DialogDocs.tsx +0 -175
- package/apps/playground-web/src/pages/web/DrawerDocs.tsx +0 -283
- package/apps/playground-web/src/pages/web/DropdownMenuDocs.tsx +0 -319
- package/apps/playground-web/src/pages/web/FormDocs.tsx +0 -175
- package/apps/playground-web/src/pages/web/HoverCardDocs.tsx +0 -151
- package/apps/playground-web/src/pages/web/InputDocs.tsx +0 -118
- package/apps/playground-web/src/pages/web/LabelDocs.tsx +0 -59
- package/apps/playground-web/src/pages/web/MenubarDocs.tsx +0 -296
- package/apps/playground-web/src/pages/web/NavigationMenuDocs.tsx +0 -263
- package/apps/playground-web/src/pages/web/PaginationDocs.tsx +0 -102
- package/apps/playground-web/src/pages/web/PopoverDocs.tsx +0 -189
- package/apps/playground-web/src/pages/web/ProgressDocs.tsx +0 -70
- package/apps/playground-web/src/pages/web/RadioGroupDocs.tsx +0 -137
- package/apps/playground-web/src/pages/web/ResizableDocs.tsx +0 -143
- package/apps/playground-web/src/pages/web/ScrollAreaDocs.tsx +0 -107
- package/apps/playground-web/src/pages/web/SearchDocs.tsx +0 -203
- package/apps/playground-web/src/pages/web/SelectDocs.tsx +0 -164
- package/apps/playground-web/src/pages/web/SeparatorDocs.tsx +0 -88
- package/apps/playground-web/src/pages/web/SheetDocs.tsx +0 -186
- package/apps/playground-web/src/pages/web/SkeletonDocs.tsx +0 -53
- package/apps/playground-web/src/pages/web/SliderDocs.tsx +0 -119
- package/apps/playground-web/src/pages/web/SonnerDocs.tsx +0 -126
- package/apps/playground-web/src/pages/web/SwitchDocs.tsx +0 -91
- package/apps/playground-web/src/pages/web/TableDocs.tsx +0 -148
- package/apps/playground-web/src/pages/web/TabsDocs.tsx +0 -241
- package/apps/playground-web/src/pages/web/TextareaDocs.tsx +0 -65
- package/apps/playground-web/src/pages/web/ThemeToggleDocs.tsx +0 -303
- package/apps/playground-web/src/pages/web/ToastDocs.tsx +0 -149
- package/apps/playground-web/src/pages/web/ToggleDocs.tsx +0 -85
- package/apps/playground-web/src/pages/web/ToggleGroupDocs.tsx +0 -140
- package/apps/playground-web/src/pages/web/TooltipDocs.tsx +0 -150
- package/apps/playground-web/src/pages/web/index.ts +0 -47
- package/apps/playground-web/src/routes/doc-routes.tsx +0 -363
- package/apps/playground-web/tailwind.config.js +0 -47
- package/apps/playground-web/tsconfig.app.json +0 -16
- package/apps/playground-web/tsconfig.json +0 -4
- package/apps/playground-web/tsconfig.node.json +0 -13
- package/apps/playground-web/vite.config.ts +0 -41
- package/components.json +0 -20
- package/docs/architecture-pivot.md +0 -165
- package/docs/native-setup-decision.md +0 -57
- package/docs/phase-1-tracker.md +0 -144
- package/docs/release-tooling-evaluation.md +0 -67
- package/docs/universal-implementation.md +0 -195
- package/docs/update-plan.md +0 -268
- package/eslint.config.mjs +0 -13
- package/nx.json +0 -50
- package/packages/.gitkeep +0 -0
- package/packages/design-tokens/CHANGELOG.md +0 -8
- package/packages/design-tokens/package.json +0 -20
- package/packages/design-tokens/src/index.ts +0 -35
- package/packages/design-tokens/src/palette.ts +0 -36
- package/packages/design-tokens/src/radii.ts +0 -26
- package/packages/design-tokens/src/shadows.ts +0 -16
- package/packages/design-tokens/src/spacing.ts +0 -33
- package/packages/design-tokens/src/theme.ts +0 -54
- package/packages/design-tokens/src/typography.ts +0 -36
- package/packages/design-tokens/tsconfig.json +0 -17
- package/packages/ui-core/CHANGELOG.md +0 -8
- package/packages/ui-core/package.json +0 -40
- package/packages/ui-core/src/contracts/accordion.ts +0 -23
- package/packages/ui-core/src/contracts/alert-dialog.ts +0 -48
- package/packages/ui-core/src/contracts/alert.ts +0 -17
- package/packages/ui-core/src/contracts/aspect-ratio.ts +0 -7
- package/packages/ui-core/src/contracts/avatar.ts +0 -17
- package/packages/ui-core/src/contracts/badge.ts +0 -7
- package/packages/ui-core/src/contracts/breadcrumb.ts +0 -37
- package/packages/ui-core/src/contracts/button.ts +0 -17
- package/packages/ui-core/src/contracts/calendar.ts +0 -4
- package/packages/ui-core/src/contracts/card.ts +0 -11
- package/packages/ui-core/src/contracts/carousel.ts +0 -29
- package/packages/ui-core/src/contracts/chart.ts +0 -31
- package/packages/ui-core/src/contracts/checkbox.ts +0 -11
- package/packages/ui-core/src/contracts/collapsible.ts +0 -21
- package/packages/ui-core/src/contracts/command.ts +0 -43
- package/packages/ui-core/src/contracts/context-menu.ts +0 -78
- package/packages/ui-core/src/contracts/dialog.ts +0 -29
- package/packages/ui-core/src/contracts/drawer.ts +0 -39
- package/packages/ui-core/src/contracts/dropdown-menu.ts +0 -87
- package/packages/ui-core/src/contracts/form.ts +0 -29
- package/packages/ui-core/src/contracts/hover-card.ts +0 -21
- package/packages/ui-core/src/contracts/input.ts +0 -11
- package/packages/ui-core/src/contracts/label.ts +0 -7
- package/packages/ui-core/src/contracts/menubar.ts +0 -86
- package/packages/ui-core/src/contracts/navigation-menu.ts +0 -55
- package/packages/ui-core/src/contracts/pagination.ts +0 -38
- package/packages/ui-core/src/contracts/popover.ts +0 -28
- package/packages/ui-core/src/contracts/progress.ts +0 -4
- package/packages/ui-core/src/contracts/radio.ts +0 -16
- package/packages/ui-core/src/contracts/resizable.ts +0 -36
- package/packages/ui-core/src/contracts/scroll-area.ts +0 -15
- package/packages/ui-core/src/contracts/search.ts +0 -13
- package/packages/ui-core/src/contracts/select.ts +0 -64
- package/packages/ui-core/src/contracts/separator.ts +0 -5
- package/packages/ui-core/src/contracts/sheet.ts +0 -58
- package/packages/ui-core/src/contracts/skeleton.ts +0 -6
- package/packages/ui-core/src/contracts/slider.ts +0 -15
- package/packages/ui-core/src/contracts/sonner.ts +0 -15
- package/packages/ui-core/src/contracts/switch.ts +0 -11
- package/packages/ui-core/src/contracts/table.ts +0 -41
- package/packages/ui-core/src/contracts/tabs.ts +0 -31
- package/packages/ui-core/src/contracts/text.ts +0 -12
- package/packages/ui-core/src/contracts/textarea.ts +0 -7
- package/packages/ui-core/src/contracts/theme-provider.ts +0 -14
- package/packages/ui-core/src/contracts/theme-toggle.ts +0 -15
- package/packages/ui-core/src/contracts/toast.ts +0 -15
- package/packages/ui-core/src/contracts/toaster.ts +0 -3
- package/packages/ui-core/src/contracts/toggle-group.ts +0 -23
- package/packages/ui-core/src/contracts/toggle.ts +0 -49
- package/packages/ui-core/src/contracts/tooltip.ts +0 -28
- package/packages/ui-core/src/index.ts +0 -327
- package/packages/ui-core/tsconfig.json +0 -18
- package/packages/ui-native/CHANGELOG.md +0 -8
- package/packages/ui-native/package.json +0 -76
- package/packages/ui-native/src/accordion.tsx +0 -93
- package/packages/ui-native/src/alert-dialog.tsx +0 -123
- package/packages/ui-native/src/alert.tsx +0 -50
- package/packages/ui-native/src/aspect-ratio.tsx +0 -9
- package/packages/ui-native/src/avatar.tsx +0 -38
- package/packages/ui-native/src/badge.tsx +0 -51
- package/packages/ui-native/src/breadcrumb.tsx +0 -9
- package/packages/ui-native/src/button.test.tsx +0 -27
- package/packages/ui-native/src/button.tsx +0 -75
- package/packages/ui-native/src/calendar.tsx +0 -9
- package/packages/ui-native/src/card.test.tsx +0 -33
- package/packages/ui-native/src/card.tsx +0 -56
- package/packages/ui-native/src/carousel.tsx +0 -9
- package/packages/ui-native/src/chart.tsx +0 -9
- package/packages/ui-native/src/checkbox.test.tsx +0 -58
- package/packages/ui-native/src/checkbox.tsx +0 -31
- package/packages/ui-native/src/collapsible.test.tsx +0 -50
- package/packages/ui-native/src/collapsible.tsx +0 -15
- package/packages/ui-native/src/command.tsx +0 -9
- package/packages/ui-native/src/context-menu.tsx +0 -9
- package/packages/ui-native/src/dialog.test.tsx +0 -91
- package/packages/ui-native/src/dialog.tsx +0 -121
- package/packages/ui-native/src/drawer.tsx +0 -9
- package/packages/ui-native/src/dropdown-menu.tsx +0 -9
- package/packages/ui-native/src/form.tsx +0 -9
- package/packages/ui-native/src/hover-card.tsx +0 -9
- package/packages/ui-native/src/index.ts +0 -209
- package/packages/ui-native/src/input.test.tsx +0 -27
- package/packages/ui-native/src/input.tsx +0 -27
- package/packages/ui-native/src/label.tsx +0 -29
- package/packages/ui-native/src/lib/render-native.tsx +0 -17
- package/packages/ui-native/src/lib/utils.ts +0 -6
- package/packages/ui-native/src/menubar.tsx +0 -9
- package/packages/ui-native/src/nativewind-env.d.ts +0 -1
- package/packages/ui-native/src/navigation-menu.tsx +0 -9
- package/packages/ui-native/src/pagination.tsx +0 -9
- package/packages/ui-native/src/popover.tsx +0 -9
- package/packages/ui-native/src/progress.tsx +0 -9
- package/packages/ui-native/src/radio-group.test.tsx +0 -77
- package/packages/ui-native/src/radio-group.tsx +0 -42
- package/packages/ui-native/src/resizable.tsx +0 -25
- package/packages/ui-native/src/scroll-area.tsx +0 -9
- package/packages/ui-native/src/search.tsx +0 -17
- package/packages/ui-native/src/select.tsx +0 -229
- package/packages/ui-native/src/separator.tsx +0 -20
- package/packages/ui-native/src/sheet.test.tsx +0 -93
- package/packages/ui-native/src/sheet.tsx +0 -127
- package/packages/ui-native/src/skeleton.test.tsx +0 -29
- package/packages/ui-native/src/skeleton.tsx +0 -31
- package/packages/ui-native/src/slider.tsx +0 -9
- package/packages/ui-native/src/sonner.tsx +0 -9
- package/packages/ui-native/src/switch.tsx +0 -34
- package/packages/ui-native/src/table.tsx +0 -73
- package/packages/ui-native/src/tabs.tsx +0 -74
- package/packages/ui-native/src/text.test.tsx +0 -24
- package/packages/ui-native/src/text.tsx +0 -43
- package/packages/ui-native/src/textarea.test.tsx +0 -27
- package/packages/ui-native/src/textarea.tsx +0 -29
- package/packages/ui-native/src/theme-provider.tsx +0 -6
- package/packages/ui-native/src/theme-toggle.tsx +0 -11
- package/packages/ui-native/src/toast.test.tsx +0 -61
- package/packages/ui-native/src/toast.tsx +0 -88
- package/packages/ui-native/src/toaster.tsx +0 -9
- package/packages/ui-native/src/toggle-group.tsx +0 -78
- package/packages/ui-native/src/toggle.tsx +0 -35
- package/packages/ui-native/src/tooltip.tsx +0 -44
- package/packages/ui-native/tsconfig.json +0 -23
- package/packages/ui-native/vite.config.ts +0 -17
- package/packages/ui-web/CHANGELOG.md +0 -8
- package/packages/ui-web/package.json +0 -84
- package/packages/ui-web/src/accordion.test.tsx +0 -86
- package/packages/ui-web/src/accordion.tsx +0 -58
- package/packages/ui-web/src/alert-dialog.test.tsx +0 -91
- package/packages/ui-web/src/alert-dialog.tsx +0 -121
- package/packages/ui-web/src/alert.test.tsx +0 -47
- package/packages/ui-web/src/alert.tsx +0 -49
- package/packages/ui-web/src/aspect-ratio.test.tsx +0 -34
- package/packages/ui-web/src/aspect-ratio.tsx +0 -7
- package/packages/ui-web/src/avatar.test.tsx +0 -33
- package/packages/ui-web/src/avatar.tsx +0 -40
- package/packages/ui-web/src/badge.test.tsx +0 -24
- package/packages/ui-web/src/badge.tsx +0 -34
- package/packages/ui-web/src/breadcrumb.tsx +0 -105
- package/packages/ui-web/src/button.test.tsx +0 -62
- package/packages/ui-web/src/button.tsx +0 -47
- package/packages/ui-web/src/calendar.test.tsx +0 -23
- package/packages/ui-web/src/calendar.tsx +0 -163
- package/packages/ui-web/src/card.test.tsx +0 -35
- package/packages/ui-web/src/card.tsx +0 -46
- package/packages/ui-web/src/carousel.test.tsx +0 -37
- package/packages/ui-web/src/carousel.tsx +0 -234
- package/packages/ui-web/src/chart.test.tsx +0 -62
- package/packages/ui-web/src/chart.tsx +0 -296
- package/packages/ui-web/src/checkbox.test.tsx +0 -30
- package/packages/ui-web/src/checkbox.tsx +0 -31
- package/packages/ui-web/src/collapsible.test.tsx +0 -51
- package/packages/ui-web/src/collapsible.tsx +0 -15
- package/packages/ui-web/src/command.test.tsx +0 -79
- package/packages/ui-web/src/command.tsx +0 -154
- package/packages/ui-web/src/context-menu.test.tsx +0 -37
- package/packages/ui-web/src/context-menu.tsx +0 -208
- package/packages/ui-web/src/dialog.test.tsx +0 -66
- package/packages/ui-web/src/dialog.tsx +0 -95
- package/packages/ui-web/src/drawer.test.tsx +0 -68
- package/packages/ui-web/src/drawer.tsx +0 -110
- package/packages/ui-web/src/dropdown-menu.test.tsx +0 -93
- package/packages/ui-web/src/dropdown-menu.tsx +0 -212
- package/packages/ui-web/src/form.test.tsx +0 -84
- package/packages/ui-web/src/form.tsx +0 -160
- package/packages/ui-web/src/hooks/use-theme.ts +0 -15
- package/packages/ui-web/src/hooks/use-toast.ts +0 -189
- package/packages/ui-web/src/hover-card.test.tsx +0 -48
- package/packages/ui-web/src/hover-card.tsx +0 -35
- package/packages/ui-web/src/index.ts +0 -474
- package/packages/ui-web/src/input.test.tsx +0 -33
- package/packages/ui-web/src/input.tsx +0 -23
- package/packages/ui-web/src/label.test.tsx +0 -27
- package/packages/ui-web/src/label.tsx +0 -21
- package/packages/ui-web/src/lib/utils.ts +0 -6
- package/packages/ui-web/src/menubar.test.tsx +0 -92
- package/packages/ui-web/src/menubar.tsx +0 -244
- package/packages/ui-web/src/navigation-menu.test.tsx +0 -53
- package/packages/ui-web/src/navigation-menu.tsx +0 -143
- package/packages/ui-web/src/pagination.test.tsx +0 -57
- package/packages/ui-web/src/pagination.tsx +0 -107
- package/packages/ui-web/src/popover.test.tsx +0 -31
- package/packages/ui-web/src/popover.tsx +0 -45
- package/packages/ui-web/src/progress.test.tsx +0 -18
- package/packages/ui-web/src/progress.tsx +0 -28
- package/packages/ui-web/src/radio-group.test.tsx +0 -39
- package/packages/ui-web/src/radio-group.tsx +0 -41
- package/packages/ui-web/src/resizable.test.tsx +0 -23
- package/packages/ui-web/src/resizable.tsx +0 -59
- package/packages/ui-web/src/scroll-area.test.tsx +0 -15
- package/packages/ui-web/src/scroll-area.tsx +0 -42
- package/packages/ui-web/src/search.test.tsx +0 -81
- package/packages/ui-web/src/search.tsx +0 -87
- package/packages/ui-web/src/select.test.tsx +0 -42
- package/packages/ui-web/src/select.tsx +0 -169
- package/packages/ui-web/src/separator.test.tsx +0 -16
- package/packages/ui-web/src/separator.tsx +0 -24
- package/packages/ui-web/src/setupTests.ts +0 -114
- package/packages/ui-web/src/sheet.test.tsx +0 -48
- package/packages/ui-web/src/sheet.tsx +0 -136
- package/packages/ui-web/src/skeleton.test.tsx +0 -13
- package/packages/ui-web/src/skeleton.tsx +0 -10
- package/packages/ui-web/src/slider.test.tsx +0 -18
- package/packages/ui-web/src/slider.tsx +0 -27
- package/packages/ui-web/src/sonner.test.tsx +0 -13
- package/packages/ui-web/src/sonner.tsx +0 -32
- package/packages/ui-web/src/switch.test.tsx +0 -22
- package/packages/ui-web/src/switch.tsx +0 -31
- package/packages/ui-web/src/table.test.tsx +0 -29
- package/packages/ui-web/src/table.tsx +0 -104
- package/packages/ui-web/src/tabs.test.tsx +0 -43
- package/packages/ui-web/src/tabs.tsx +0 -62
- package/packages/ui-web/src/text.test.tsx +0 -34
- package/packages/ui-web/src/text.tsx +0 -55
- package/packages/ui-web/src/textarea.test.tsx +0 -21
- package/packages/ui-web/src/textarea.tsx +0 -25
- package/packages/ui-web/src/theme-provider.tsx +0 -15
- package/packages/ui-web/src/theme-toggle.test.tsx +0 -49
- package/packages/ui-web/src/theme-toggle.tsx +0 -92
- package/packages/ui-web/src/toast.test.tsx +0 -42
- package/packages/ui-web/src/toast.tsx +0 -111
- package/packages/ui-web/src/toaster.tsx +0 -27
- package/packages/ui-web/src/toggle-group.test.tsx +0 -40
- package/packages/ui-web/src/toggle-group.tsx +0 -55
- package/packages/ui-web/src/toggle.test.tsx +0 -21
- package/packages/ui-web/src/toggle.tsx +0 -24
- package/packages/ui-web/src/tooltip.tsx +0 -51
- package/packages/ui-web/tsconfig.json +0 -24
- package/packages/ui-web/vite.config.ts +0 -21
- package/postcss.config.mjs +0 -5
- package/release-please-config.json +0 -60
- package/scripts/build-registry.ts +0 -80
- package/scripts/sync-tokens.ts +0 -86
- package/scripts/validate.ts +0 -74
- package/src/globals.css +0 -146
- package/src/index.ts +0 -4
- package/src/setupTests.ts +0 -47
- package/src/types/nativewind.d.ts +0 -19
- package/tailwind.config.js +0 -48
- package/tsconfig.build.json +0 -22
- package/tsconfig.json +0 -30
- package/tsconfig.node.json +0 -11
- package/vite.config.ts +0 -106
- package/vitest.config.ts +0 -23
- package/wrangler.toml +0 -22
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Alert,
|
|
3
|
-
AlertDescription,
|
|
4
|
-
AlertTitle,
|
|
5
|
-
Card,
|
|
6
|
-
CardContent,
|
|
7
|
-
CardDescription,
|
|
8
|
-
CardHeader,
|
|
9
|
-
CardTitle,
|
|
10
|
-
Tabs,
|
|
11
|
-
TabsContent,
|
|
12
|
-
TabsList,
|
|
13
|
-
TabsTrigger,
|
|
14
|
-
cn,
|
|
15
|
-
} from '@gv-tech/ui-web';
|
|
16
|
-
import { Info } from 'lucide-react';
|
|
17
|
-
import * as React from 'react';
|
|
18
|
-
import { CodeBlock } from './CodeBlock';
|
|
19
|
-
import { PlatformContext } from './CombinedDocsLayout';
|
|
20
|
-
|
|
21
|
-
interface ComponentShowcaseProps {
|
|
22
|
-
title: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
code: string;
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function ComponentShowcase({ title, description, code, children, className }: ComponentShowcaseProps) {
|
|
30
|
-
const platform = React.useContext(PlatformContext);
|
|
31
|
-
const isNative = platform === 'native';
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<Card className={cn('overflow-hidden', className)}>
|
|
35
|
-
<CardHeader>
|
|
36
|
-
<CardTitle className="text-lg">{title}</CardTitle>
|
|
37
|
-
{description && <CardDescription>{description}</CardDescription>}
|
|
38
|
-
</CardHeader>
|
|
39
|
-
<CardContent className="p-0">
|
|
40
|
-
<Tabs defaultValue={isNative && !children ? 'code' : 'preview'} className="w-full">
|
|
41
|
-
<div className="border-b px-4 md:px-6">
|
|
42
|
-
<TabsList className="h-10 bg-transparent p-0">
|
|
43
|
-
<TabsTrigger
|
|
44
|
-
value="preview"
|
|
45
|
-
className="rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent"
|
|
46
|
-
>
|
|
47
|
-
Preview
|
|
48
|
-
</TabsTrigger>
|
|
49
|
-
<TabsTrigger
|
|
50
|
-
value="code"
|
|
51
|
-
className="rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent"
|
|
52
|
-
>
|
|
53
|
-
Code
|
|
54
|
-
</TabsTrigger>
|
|
55
|
-
</TabsList>
|
|
56
|
-
</div>
|
|
57
|
-
<TabsContent value="preview" className="p-4 md:p-6 mt-0">
|
|
58
|
-
{isNative && !children ? (
|
|
59
|
-
<Alert variant="info" className="bg-muted/50 border-none shadow-none">
|
|
60
|
-
<Info className="h-4 w-4" />
|
|
61
|
-
<AlertTitle>Native Preview Unavailable</AlertTitle>
|
|
62
|
-
<AlertDescription>
|
|
63
|
-
This is a React Native component. Interactive previews are currently only available for web
|
|
64
|
-
components. Please switch to the <strong>Code</strong> tab to see the implementation.
|
|
65
|
-
</AlertDescription>
|
|
66
|
-
</Alert>
|
|
67
|
-
) : (
|
|
68
|
-
<div className="flex flex-wrap gap-4 items-center overflow-x-auto">{children}</div>
|
|
69
|
-
)}
|
|
70
|
-
</TabsContent>
|
|
71
|
-
<TabsContent value="code" className="mt-0">
|
|
72
|
-
<CodeBlock code={code} className="rounded-none border-0" />
|
|
73
|
-
</TabsContent>
|
|
74
|
-
</Tabs>
|
|
75
|
-
</CardContent>
|
|
76
|
-
</Card>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface ComponentSectionProps {
|
|
81
|
-
title: string;
|
|
82
|
-
description?: string;
|
|
83
|
-
children: React.ReactNode;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function ComponentSection({ title, description, children }: ComponentSectionProps) {
|
|
87
|
-
return (
|
|
88
|
-
<div className="space-y-6">
|
|
89
|
-
<div className="space-y-2">
|
|
90
|
-
<h1 className="text-2xl md:text-3xl font-bold tracking-tight">{title}</h1>
|
|
91
|
-
{description && <p className="text-base md:text-lg text-muted-foreground">{description}</p>}
|
|
92
|
-
</div>
|
|
93
|
-
<div className="space-y-6">{children}</div>
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Button } from '@gv-tech/ui-web';
|
|
2
|
-
import { AlertTriangle } from 'lucide-react';
|
|
3
|
-
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
fallback?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface State {
|
|
11
|
-
hasError: boolean;
|
|
12
|
-
error: Error | null;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class ErrorBoundary extends Component<Props, State> {
|
|
16
|
-
public state: State = {
|
|
17
|
-
hasError: false,
|
|
18
|
-
error: null,
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
public static getDerivedStateFromError(error: Error): State {
|
|
22
|
-
return { hasError: true, error };
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public componentDidCatch(error: Error, errorInfo: ErrorInfo) {
|
|
26
|
-
console.error('Uncaught error:', error, errorInfo);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public render() {
|
|
30
|
-
if (this.state.hasError) {
|
|
31
|
-
if (this.props.fallback) {
|
|
32
|
-
return this.props.fallback;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<div className="flex flex-col items-center justify-center min-h-[400px] p-6 text-center border-2 border-dashed border-destructive/50 rounded-lg bg-destructive/5">
|
|
37
|
-
<AlertTriangle className="h-12 w-12 text-destructive mb-4" />
|
|
38
|
-
<h2 className="text-xl font-semibold mb-2">Something went wrong</h2>
|
|
39
|
-
<p className="text-muted-foreground mb-6 max-w-md">
|
|
40
|
-
This documentation page encountered an error during rendering. This usually happens when a native component
|
|
41
|
-
fails to shim correctly on the web.
|
|
42
|
-
</p>
|
|
43
|
-
<div className="bg-background p-4 rounded border mb-6 text-left overflow-auto max-w-full font-mono text-sm text-destructive">
|
|
44
|
-
{this.state.error?.message}
|
|
45
|
-
</div>
|
|
46
|
-
<Button variant="outline" onClick={() => this.setState({ hasError: false, error: null })}>
|
|
47
|
-
Try Again
|
|
48
|
-
</Button>
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return this.props.children;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { Button, Separator, Tooltip, TooltipContent, TooltipTrigger } from '@gv-tech/ui-web';
|
|
2
|
-
import { SiGithub, SiLinkedin, SiX } from 'react-icons/si';
|
|
3
|
-
|
|
4
|
-
export function Footer() {
|
|
5
|
-
return (
|
|
6
|
-
<footer className="border-t bg-muted/30">
|
|
7
|
-
<div className="p-8 space-y-6">
|
|
8
|
-
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
|
9
|
-
{/* Brand */}
|
|
10
|
-
<div className="space-y-3">
|
|
11
|
-
<h3 className="font-semibold">GV Tech Design System</h3>
|
|
12
|
-
<p className="text-sm text-muted-foreground">
|
|
13
|
-
A comprehensive React component library for building modern applications.
|
|
14
|
-
</p>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
{/* Resources */}
|
|
18
|
-
<div className="space-y-3">
|
|
19
|
-
<h4 className="font-medium text-sm">Resources</h4>
|
|
20
|
-
<ul className="space-y-2 text-sm text-muted-foreground">
|
|
21
|
-
<li>
|
|
22
|
-
<a
|
|
23
|
-
href="https://github.com/Garcia-Ventures/gvtech-design"
|
|
24
|
-
target="_blank"
|
|
25
|
-
rel="noopener noreferrer"
|
|
26
|
-
className="hover:text-foreground transition-colors"
|
|
27
|
-
>
|
|
28
|
-
GitHub Repository
|
|
29
|
-
</a>
|
|
30
|
-
</li>
|
|
31
|
-
<li>
|
|
32
|
-
<a
|
|
33
|
-
href="https://www.npmjs.com/package/@gv-tech/design-system"
|
|
34
|
-
target="_blank"
|
|
35
|
-
rel="noopener noreferrer"
|
|
36
|
-
className="hover:text-foreground transition-colors"
|
|
37
|
-
>
|
|
38
|
-
NPM Package
|
|
39
|
-
</a>
|
|
40
|
-
</li>
|
|
41
|
-
<li>
|
|
42
|
-
<a
|
|
43
|
-
href="https://ui.shadcn.com"
|
|
44
|
-
target="_blank"
|
|
45
|
-
rel="noopener noreferrer"
|
|
46
|
-
className="hover:text-foreground transition-colors"
|
|
47
|
-
>
|
|
48
|
-
shadcn/ui
|
|
49
|
-
</a>
|
|
50
|
-
</li>
|
|
51
|
-
<li>
|
|
52
|
-
<a
|
|
53
|
-
href="https://reactnativereusables.com/"
|
|
54
|
-
target="_blank"
|
|
55
|
-
rel="noopener noreferrer"
|
|
56
|
-
className="hover:text-foreground transition-colors"
|
|
57
|
-
>
|
|
58
|
-
React Native Reusables
|
|
59
|
-
</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<div className="space-y-3">
|
|
65
|
-
<h4 className="font-medium text-sm">Connect</h4>
|
|
66
|
-
<div className="flex items-center space-x-2">
|
|
67
|
-
<Tooltip>
|
|
68
|
-
<TooltipTrigger asChild>
|
|
69
|
-
<Button variant="ghost" size="icon" className="text-muted-foreground hover:text-foreground" asChild>
|
|
70
|
-
<a
|
|
71
|
-
href="https://github.com/Garcia-Ventures"
|
|
72
|
-
target="_blank"
|
|
73
|
-
rel="noopener noreferrer"
|
|
74
|
-
aria-label="GitHub"
|
|
75
|
-
>
|
|
76
|
-
<SiGithub className="h-5 w-5" />
|
|
77
|
-
</a>
|
|
78
|
-
</Button>
|
|
79
|
-
</TooltipTrigger>
|
|
80
|
-
<TooltipContent>GitHub</TooltipContent>
|
|
81
|
-
</Tooltip>
|
|
82
|
-
|
|
83
|
-
<Tooltip>
|
|
84
|
-
<TooltipTrigger asChild>
|
|
85
|
-
<Button variant="ghost" size="icon" className="text-muted-foreground hover:text-foreground" asChild>
|
|
86
|
-
<a
|
|
87
|
-
href="https://twitter.com/garciaericn"
|
|
88
|
-
target="_blank"
|
|
89
|
-
rel="noopener noreferrer"
|
|
90
|
-
aria-label="X (formerly Twitter)"
|
|
91
|
-
>
|
|
92
|
-
<SiX className="h-4 w-4" />
|
|
93
|
-
</a>
|
|
94
|
-
</Button>
|
|
95
|
-
</TooltipTrigger>
|
|
96
|
-
<TooltipContent>X (formerly Twitter)</TooltipContent>
|
|
97
|
-
</Tooltip>
|
|
98
|
-
|
|
99
|
-
<Tooltip>
|
|
100
|
-
<TooltipTrigger asChild>
|
|
101
|
-
<Button variant="ghost" size="icon" className="text-muted-foreground hover:text-foreground" asChild>
|
|
102
|
-
<a
|
|
103
|
-
href="https://www.linkedin.com/in/garciaericn/"
|
|
104
|
-
target="_blank"
|
|
105
|
-
rel="noopener noreferrer"
|
|
106
|
-
aria-label="LinkedIn"
|
|
107
|
-
>
|
|
108
|
-
<SiLinkedin className="h-5 w-5" />
|
|
109
|
-
</a>
|
|
110
|
-
</Button>
|
|
111
|
-
</TooltipTrigger>
|
|
112
|
-
<TooltipContent>LinkedIn</TooltipContent>
|
|
113
|
-
</Tooltip>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
<Separator />
|
|
119
|
-
|
|
120
|
-
<div className="flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-muted-foreground">
|
|
121
|
-
<p>© GVTech 2026. All rights reserved.</p>
|
|
122
|
-
<p>
|
|
123
|
-
Built with{' '}
|
|
124
|
-
<a
|
|
125
|
-
href="https://ui.shadcn.com"
|
|
126
|
-
target="_blank"
|
|
127
|
-
rel="noopener noreferrer"
|
|
128
|
-
className="underline underline-offset-4 hover:text-foreground"
|
|
129
|
-
>
|
|
130
|
-
shadcn/ui
|
|
131
|
-
</a>{' '}
|
|
132
|
-
and{' '}
|
|
133
|
-
<a
|
|
134
|
-
href="https://tailwindcss.com"
|
|
135
|
-
target="_blank"
|
|
136
|
-
rel="noopener noreferrer"
|
|
137
|
-
className="underline underline-offset-4 hover:text-foreground"
|
|
138
|
-
>
|
|
139
|
-
Tailwind CSS
|
|
140
|
-
</a>
|
|
141
|
-
</p>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</footer>
|
|
145
|
-
);
|
|
146
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@gv-tech/ui-web';
|
|
2
|
-
|
|
3
|
-
export interface PropDefinition {
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
description: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface PropsTableProps {
|
|
12
|
-
props: PropDefinition[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function PropsTable({ props }: PropsTableProps) {
|
|
16
|
-
return (
|
|
17
|
-
<div className="my-6 w-full overflow-y-auto">
|
|
18
|
-
<Table>
|
|
19
|
-
<TableHeader>
|
|
20
|
-
<TableRow>
|
|
21
|
-
<TableHead>Prop</TableHead>
|
|
22
|
-
<TableHead>Type</TableHead>
|
|
23
|
-
<TableHead>Default</TableHead>
|
|
24
|
-
<TableHead>Description</TableHead>
|
|
25
|
-
</TableRow>
|
|
26
|
-
</TableHeader>
|
|
27
|
-
<TableBody>
|
|
28
|
-
{props.map((prop) => (
|
|
29
|
-
<TableRow key={prop.name}>
|
|
30
|
-
<TableCell className="font-mono text-sm font-semibold">
|
|
31
|
-
{prop.name}
|
|
32
|
-
{prop.required && <span className="ml-1 text-destructive">*</span>}
|
|
33
|
-
</TableCell>
|
|
34
|
-
<TableCell className="font-mono text-xs text-muted-foreground">{prop.type}</TableCell>
|
|
35
|
-
<TableCell className="font-mono text-xs text-muted-foreground">{prop.defaultValue || '-'}</TableCell>
|
|
36
|
-
<TableCell className="text-sm text-muted-foreground">{prop.description}</TableCell>
|
|
37
|
-
</TableRow>
|
|
38
|
-
))}
|
|
39
|
-
</TableBody>
|
|
40
|
-
</Table>
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { docConfig } from '@/config/docs';
|
|
2
|
-
import {
|
|
3
|
-
CommandEmpty,
|
|
4
|
-
CommandGroup,
|
|
5
|
-
CommandInput,
|
|
6
|
-
CommandItem,
|
|
7
|
-
CommandList,
|
|
8
|
-
Search,
|
|
9
|
-
SearchTrigger,
|
|
10
|
-
} from '@gv-tech/ui-web';
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
import { useNavigate } from 'react-router-dom';
|
|
13
|
-
|
|
14
|
-
interface SearchContextType {
|
|
15
|
-
open: boolean;
|
|
16
|
-
setOpen: (open: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const SearchContext = React.createContext<SearchContextType | undefined>(undefined);
|
|
20
|
-
|
|
21
|
-
export function DocSearchProvider({ children }: { children: React.ReactNode }) {
|
|
22
|
-
const [open, setOpen] = React.useState(false);
|
|
23
|
-
const navigate = useNavigate();
|
|
24
|
-
|
|
25
|
-
const onSelect = React.useCallback(
|
|
26
|
-
(href: string) => {
|
|
27
|
-
setOpen(false);
|
|
28
|
-
navigate(`/docs/${href}`);
|
|
29
|
-
},
|
|
30
|
-
[navigate],
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<SearchContext.Provider value={{ open, setOpen }}>
|
|
35
|
-
{children}
|
|
36
|
-
<Search open={open} onOpenChange={setOpen}>
|
|
37
|
-
<CommandInput placeholder="Search documentation..." />
|
|
38
|
-
<CommandList>
|
|
39
|
-
<CommandEmpty>No results found.</CommandEmpty>
|
|
40
|
-
{docConfig.map((category) => (
|
|
41
|
-
<CommandGroup key={category.title} heading={category.title}>
|
|
42
|
-
{category.items.map((item) => (
|
|
43
|
-
<CommandItem key={item.href} value={item.title} onSelect={() => onSelect(item.href)}>
|
|
44
|
-
{item.title}
|
|
45
|
-
</CommandItem>
|
|
46
|
-
))}
|
|
47
|
-
</CommandGroup>
|
|
48
|
-
))}
|
|
49
|
-
</CommandList>
|
|
50
|
-
</Search>
|
|
51
|
-
</SearchContext.Provider>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface DocSearchProps {
|
|
56
|
-
variant?: 'default' | 'compact';
|
|
57
|
-
className?: string;
|
|
58
|
-
placeholder?: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function DocSearch({ variant = 'default', className, placeholder = 'Search documentation...' }: DocSearchProps) {
|
|
62
|
-
const context = React.useContext(SearchContext);
|
|
63
|
-
if (!context) {
|
|
64
|
-
throw new Error('DocSearch must be used within a DocSearchProvider');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<SearchTrigger
|
|
69
|
-
onClick={() => context.setOpen(true)}
|
|
70
|
-
variant={variant}
|
|
71
|
-
className={className}
|
|
72
|
-
placeholder={placeholder}
|
|
73
|
-
/>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { docConfig } from '@/config/docs';
|
|
2
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ScrollArea, cn } from '@gv-tech/ui-web';
|
|
3
|
-
import { NavLink } from 'react-router-dom';
|
|
4
|
-
import { version } from '../../../../../package.json';
|
|
5
|
-
|
|
6
|
-
interface SidebarProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
onLinkClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function Sidebar({ className, onLinkClick }: SidebarProps) {
|
|
12
|
-
return (
|
|
13
|
-
<div className={cn('w-64 border-r bg-card flex flex-col h-full', className)}>
|
|
14
|
-
<div className="p-6 h-14 flex items-center border-b shrink-0">
|
|
15
|
-
<div className="flex items-center gap-2 font-bold text-xl">
|
|
16
|
-
<div className="h-6 w-6 rounded bg-primary flex items-center justify-center text-primary-foreground text-xs">
|
|
17
|
-
GV
|
|
18
|
-
</div>
|
|
19
|
-
GVTech Design
|
|
20
|
-
</div>
|
|
21
|
-
<div className="ml-auto flex flex-col items-end gap-0.5">
|
|
22
|
-
<span className="text-[10px] text-muted-foreground font-mono">v{version}</span>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<ScrollArea className="flex-1">
|
|
27
|
-
<div className="p-4">
|
|
28
|
-
<Accordion type="multiple" defaultValue={docConfig.map((c) => c.title)} className="w-full">
|
|
29
|
-
{docConfig.map((category) => {
|
|
30
|
-
const items = category.items;
|
|
31
|
-
const filteredItems = items; // Show all items regardless of platform
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<AccordionItem value={category.title} key={category.title} className="border-none">
|
|
35
|
-
<AccordionTrigger className="py-2 text-sm font-semibold hover:no-underline">
|
|
36
|
-
{category.title}
|
|
37
|
-
</AccordionTrigger>
|
|
38
|
-
<AccordionContent className="pb-2">
|
|
39
|
-
<div className="flex flex-col space-y-1">
|
|
40
|
-
{filteredItems.map((item) => {
|
|
41
|
-
const isUniversal =
|
|
42
|
-
category.title !== 'Getting Started' &&
|
|
43
|
-
item.platforms.includes('web') &&
|
|
44
|
-
item.platforms.includes('native');
|
|
45
|
-
return (
|
|
46
|
-
<NavLink
|
|
47
|
-
key={item.href}
|
|
48
|
-
to={`/docs/${item.href}`}
|
|
49
|
-
onClick={onLinkClick}
|
|
50
|
-
className={({ isActive }) =>
|
|
51
|
-
cn(
|
|
52
|
-
'group px-2 py-1.5 text-sm rounded-md transition-colors hover:bg-muted/50 text-muted-foreground flex items-center justify-between',
|
|
53
|
-
isActive && 'bg-accent text-accent-foreground font-medium',
|
|
54
|
-
)
|
|
55
|
-
}
|
|
56
|
-
>
|
|
57
|
-
<span>{item.title}</span>
|
|
58
|
-
{isUniversal && (
|
|
59
|
-
<span
|
|
60
|
-
className="h-1.5 w-1.5 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.6)]"
|
|
61
|
-
title="Universal Component (available on both Web & Native)"
|
|
62
|
-
/>
|
|
63
|
-
)}
|
|
64
|
-
</NavLink>
|
|
65
|
-
);
|
|
66
|
-
})}
|
|
67
|
-
</div>
|
|
68
|
-
</AccordionContent>
|
|
69
|
-
</AccordionItem>
|
|
70
|
-
);
|
|
71
|
-
})}
|
|
72
|
-
</Accordion>
|
|
73
|
-
</div>
|
|
74
|
-
</ScrollArea>
|
|
75
|
-
</div>
|
|
76
|
-
);
|
|
77
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Button } from '@gv-tech/ui-web';
|
|
2
|
-
import { Moon, Sun } from 'lucide-react';
|
|
3
|
-
import { useTheme } from 'next-themes';
|
|
4
|
-
|
|
5
|
-
export function ThemeToggle() {
|
|
6
|
-
const { theme, setTheme } = useTheme();
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<Button
|
|
10
|
-
variant="ghost"
|
|
11
|
-
size="icon"
|
|
12
|
-
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
|
|
13
|
-
aria-label="Toggle theme"
|
|
14
|
-
>
|
|
15
|
-
<Sun className="h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
|
|
16
|
-
<Moon className="absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
|
|
17
|
-
</Button>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { CodeBlock } from './CodeBlock';
|
|
2
|
-
export { CombinedDocsLayout } from './CombinedDocsLayout';
|
|
3
|
-
export { ComponentSection, ComponentShowcase } from './ComponentShowcase';
|
|
4
|
-
export { ErrorBoundary } from './ErrorBoundary';
|
|
5
|
-
export { Footer } from './Footer';
|
|
6
|
-
export { PropsTable, type PropDefinition } from './PropsTable';
|
|
7
|
-
export { DocSearch, DocSearchProvider } from './Search';
|
|
8
|
-
export { Sidebar } from './Sidebar';
|
|
9
|
-
export { ThemeToggle } from './ThemeToggle';
|