@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,128 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
const isNative = true as boolean;
|
|
10
|
-
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
const platform = 'native' as string;
|
|
14
|
-
|
|
15
|
-
export function AlertDialogDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Default"
|
|
20
|
-
description="An alert dialog for confirming destructive actions."
|
|
21
|
-
code={`<AlertDialog>
|
|
22
|
-
<AlertDialogTrigger asChild>
|
|
23
|
-
<Button variant="destructive">Delete Account</Button>
|
|
24
|
-
</AlertDialogTrigger>
|
|
25
|
-
<AlertDialogContent>
|
|
26
|
-
<AlertDialogHeader>
|
|
27
|
-
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
|
|
28
|
-
<AlertDialogDescription>
|
|
29
|
-
This action cannot be undone. This will permanently delete your account.
|
|
30
|
-
</AlertDialogDescription>
|
|
31
|
-
</AlertDialogHeader>
|
|
32
|
-
<AlertDialogFooter>
|
|
33
|
-
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
34
|
-
<AlertDialogAction>Continue</AlertDialogAction>
|
|
35
|
-
</AlertDialogFooter>
|
|
36
|
-
</AlertDialogContent>
|
|
37
|
-
</AlertDialog>`}
|
|
38
|
-
/>
|
|
39
|
-
|
|
40
|
-
<div className="space-y-4">
|
|
41
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
42
|
-
|
|
43
|
-
<h4 className="text-lg font-medium mt-6">AlertDialog (Root)</h4>
|
|
44
|
-
<PropsTable
|
|
45
|
-
props={[
|
|
46
|
-
{
|
|
47
|
-
name: 'open',
|
|
48
|
-
type: 'boolean',
|
|
49
|
-
description: 'The controlled open state of the dialog.',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'defaultOpen',
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
description: 'The default open state when initially rendered.',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'onOpenChange',
|
|
58
|
-
type: '(open: boolean) => void',
|
|
59
|
-
description: 'Event handler called when the open state changes.',
|
|
60
|
-
},
|
|
61
|
-
]}
|
|
62
|
-
/>
|
|
63
|
-
|
|
64
|
-
<h4 className="text-lg font-medium mt-6">AlertDialogTrigger</h4>
|
|
65
|
-
<PropsTable
|
|
66
|
-
props={[
|
|
67
|
-
{
|
|
68
|
-
name: 'asChild',
|
|
69
|
-
type: 'boolean',
|
|
70
|
-
defaultValue: 'false',
|
|
71
|
-
description: 'Change the default rendered element for the one passed as a child.',
|
|
72
|
-
},
|
|
73
|
-
]}
|
|
74
|
-
/>
|
|
75
|
-
|
|
76
|
-
<h4 className="text-lg font-medium mt-6">AlertDialogContent</h4>
|
|
77
|
-
<PropsTable
|
|
78
|
-
props={[
|
|
79
|
-
{
|
|
80
|
-
name: 'forceMount',
|
|
81
|
-
type: 'boolean',
|
|
82
|
-
description: 'Used to force mounting when more control is needed.',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'onEscapeKeyDown',
|
|
86
|
-
type: '(event: KeyboardEvent) => void',
|
|
87
|
-
description: 'Event handler called when the escape key is pressed.',
|
|
88
|
-
},
|
|
89
|
-
]}
|
|
90
|
-
/>
|
|
91
|
-
|
|
92
|
-
<h4 className="text-lg font-medium mt-6">AlertDialogAction</h4>
|
|
93
|
-
<PropsTable
|
|
94
|
-
props={[
|
|
95
|
-
{
|
|
96
|
-
name: 'asChild',
|
|
97
|
-
type: 'boolean',
|
|
98
|
-
defaultValue: 'false',
|
|
99
|
-
description: 'Change the default rendered element for the one passed as a child.',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: 'className',
|
|
103
|
-
type: 'string',
|
|
104
|
-
description: 'Additional CSS classes.',
|
|
105
|
-
},
|
|
106
|
-
]}
|
|
107
|
-
/>
|
|
108
|
-
|
|
109
|
-
<h4 className="text-lg font-medium mt-6">AlertDialogCancel</h4>
|
|
110
|
-
<PropsTable
|
|
111
|
-
props={[
|
|
112
|
-
{
|
|
113
|
-
name: 'asChild',
|
|
114
|
-
type: 'boolean',
|
|
115
|
-
defaultValue: 'false',
|
|
116
|
-
description: 'Change the default rendered element for the one passed as a child.',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'className',
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: 'Additional CSS classes.',
|
|
122
|
-
},
|
|
123
|
-
]}
|
|
124
|
-
/>
|
|
125
|
-
</div>
|
|
126
|
-
</>
|
|
127
|
-
);
|
|
128
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
import { Info } from 'lucide-react';
|
|
4
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
7
|
-
import {
|
|
8
|
-
Alert as WebAlert,
|
|
9
|
-
AlertDescription as WebAlertDescription,
|
|
10
|
-
AlertTitle as WebAlertTitle,
|
|
11
|
-
} from '@gv-tech/ui-web';
|
|
12
|
-
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
|
|
15
|
-
const isNative = true as boolean;
|
|
16
|
-
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
|
|
19
|
-
const platform = 'native' as string;
|
|
20
|
-
|
|
21
|
-
export function AlertDocs() {
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
<WebAlert variant="warning" className="mb-6">
|
|
25
|
-
<Info className="h-4 w-4 text-amber-600 dark:text-amber-400" />
|
|
26
|
-
<WebAlertTitle>Native Preview</WebAlertTitle>
|
|
27
|
-
<WebAlertDescription>
|
|
28
|
-
This preview renders the actual <code className="bg-background px-1 rounded">.native.tsx</code> component
|
|
29
|
-
using <code className="bg-background px-1 rounded">react-native-web</code>.
|
|
30
|
-
</WebAlertDescription>
|
|
31
|
-
</WebAlert>
|
|
32
|
-
|
|
33
|
-
<ComponentShowcase
|
|
34
|
-
title="Default"
|
|
35
|
-
description="The default alert style."
|
|
36
|
-
code={`<Alert>
|
|
37
|
-
<Terminal className="h-4 w-4" />
|
|
38
|
-
<AlertTitle>Heads up!</AlertTitle>
|
|
39
|
-
<AlertDescription>
|
|
40
|
-
You can add components to your app using the cli.
|
|
41
|
-
</AlertDescription>
|
|
42
|
-
</Alert>`}
|
|
43
|
-
/>
|
|
44
|
-
|
|
45
|
-
<ComponentShowcase
|
|
46
|
-
title="Destructive"
|
|
47
|
-
description="Use the destructive variant for error messages."
|
|
48
|
-
code={`<Alert variant="destructive">
|
|
49
|
-
<AlertCircle className="h-4 w-4" />
|
|
50
|
-
<AlertTitle>Error</AlertTitle>
|
|
51
|
-
<AlertDescription>
|
|
52
|
-
Your session has expired. Please log in again.
|
|
53
|
-
</AlertDescription>
|
|
54
|
-
</Alert>`}
|
|
55
|
-
/>
|
|
56
|
-
|
|
57
|
-
<ComponentShowcase
|
|
58
|
-
title="Warning"
|
|
59
|
-
description="Use the warning variant for important notes or warnings."
|
|
60
|
-
code={`<Alert variant="warning">
|
|
61
|
-
<Info className="h-4 w-4" />
|
|
62
|
-
<AlertTitle>Warning</AlertTitle>
|
|
63
|
-
<AlertDescription>
|
|
64
|
-
This action cannot be undone. Please proceed with caution.
|
|
65
|
-
</AlertDescription>
|
|
66
|
-
</Alert>`}
|
|
67
|
-
/>
|
|
68
|
-
|
|
69
|
-
<div className="space-y-4">
|
|
70
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
71
|
-
<PropsTable
|
|
72
|
-
props={[
|
|
73
|
-
{
|
|
74
|
-
name: 'variant',
|
|
75
|
-
type: '"default" | "destructive" | "warning" | "info"',
|
|
76
|
-
defaultValue: '"default"',
|
|
77
|
-
description: 'The visual style of the alert.',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'className',
|
|
81
|
-
type: 'string',
|
|
82
|
-
description: isNative ? 'Tailwind (NativeWind) classes.' : 'Additional CSS classes to apply.',
|
|
83
|
-
},
|
|
84
|
-
]}
|
|
85
|
-
/>
|
|
86
|
-
</div>
|
|
87
|
-
</>
|
|
88
|
-
);
|
|
89
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
const isNative = true as boolean;
|
|
9
|
-
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
|
|
12
|
-
const platform = 'native' as string;
|
|
13
|
-
|
|
14
|
-
export function AspectRatioDocs() {
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<ComponentShowcase
|
|
18
|
-
title="16:9"
|
|
19
|
-
description="A 16:9 aspect ratio container."
|
|
20
|
-
code={`<div className="w-[450px]">
|
|
21
|
-
<AspectRatio ratio={16 / 9} className="bg-muted">
|
|
22
|
-
<img
|
|
23
|
-
src="https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800"
|
|
24
|
-
alt="Photo by Drew Beamer"
|
|
25
|
-
className="h-full w-full rounded-md object-cover"
|
|
26
|
-
/>
|
|
27
|
-
</AspectRatio>
|
|
28
|
-
</div>`}
|
|
29
|
-
/>
|
|
30
|
-
|
|
31
|
-
<ComponentShowcase
|
|
32
|
-
title="Square (1:1)"
|
|
33
|
-
description="A square aspect ratio container."
|
|
34
|
-
code={`<div className="w-[200px]">
|
|
35
|
-
<AspectRatio ratio={1 / 1} className="bg-muted rounded-md flex items-center justify-center">
|
|
36
|
-
<span className="text-muted-foreground">1:1</span>
|
|
37
|
-
</AspectRatio>
|
|
38
|
-
</div>`}
|
|
39
|
-
/>
|
|
40
|
-
|
|
41
|
-
<ComponentShowcase
|
|
42
|
-
title="4:3"
|
|
43
|
-
description="A 4:3 aspect ratio container."
|
|
44
|
-
code={`<div className="w-[300px]">
|
|
45
|
-
<AspectRatio ratio={4 / 3} className="bg-muted rounded-md flex items-center justify-center">
|
|
46
|
-
<span className="text-muted-foreground">4:3</span>
|
|
47
|
-
</AspectRatio>
|
|
48
|
-
</div>`}
|
|
49
|
-
/>
|
|
50
|
-
</>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
const isNative = true as boolean;
|
|
10
|
-
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
const platform = 'native' as string;
|
|
14
|
-
|
|
15
|
-
export function AvatarDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Default"
|
|
20
|
-
description="An avatar with an image."
|
|
21
|
-
code={`<Avatar>
|
|
22
|
-
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
|
|
23
|
-
<AvatarFallback>CN</AvatarFallback>
|
|
24
|
-
</Avatar>`}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<ComponentShowcase
|
|
28
|
-
title="Fallback"
|
|
29
|
-
description="When no image is available, the fallback is displayed."
|
|
30
|
-
code={`<Avatar>
|
|
31
|
-
<AvatarFallback>JD</AvatarFallback>
|
|
32
|
-
</Avatar>`}
|
|
33
|
-
/>
|
|
34
|
-
|
|
35
|
-
<div className="space-y-4">
|
|
36
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
37
|
-
|
|
38
|
-
<h4 className="text-lg font-medium mt-6">Avatar (Root)</h4>
|
|
39
|
-
<PropsTable
|
|
40
|
-
props={[
|
|
41
|
-
{
|
|
42
|
-
name: 'className',
|
|
43
|
-
type: 'string',
|
|
44
|
-
description: isNative ? 'Tailwind (NativeWind) classes.' : 'Additional CSS classes.',
|
|
45
|
-
},
|
|
46
|
-
]}
|
|
47
|
-
/>
|
|
48
|
-
|
|
49
|
-
<h4 className="text-lg font-medium mt-6">AvatarImage</h4>
|
|
50
|
-
<PropsTable
|
|
51
|
-
props={[
|
|
52
|
-
{
|
|
53
|
-
name: 'src',
|
|
54
|
-
type: isNative ? 'ImageSourcePropType | string' : 'string',
|
|
55
|
-
description: 'The image source.',
|
|
56
|
-
},
|
|
57
|
-
...[
|
|
58
|
-
{
|
|
59
|
-
name: 'alt',
|
|
60
|
-
type: 'string',
|
|
61
|
-
description: 'The alternative text for the image.',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'onLoadingStatusChange',
|
|
65
|
-
type: '(status: "idle" | "loading" | "loaded" | "error") => void',
|
|
66
|
-
description: 'Event handler called when the loading status of the image changes.',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
]}
|
|
70
|
-
/>
|
|
71
|
-
|
|
72
|
-
<h4 className="text-lg font-medium mt-6">AvatarFallback</h4>
|
|
73
|
-
<PropsTable
|
|
74
|
-
props={[
|
|
75
|
-
{
|
|
76
|
-
name: 'className',
|
|
77
|
-
type: 'string',
|
|
78
|
-
description: isNative ? 'Tailwind (NativeWind) classes.' : 'Additional CSS classes.',
|
|
79
|
-
},
|
|
80
|
-
...[
|
|
81
|
-
{
|
|
82
|
-
name: 'delayMs',
|
|
83
|
-
type: 'number',
|
|
84
|
-
description: 'Useful for delaying rendering so it only appears for those with slower connections.',
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
]}
|
|
88
|
-
/>
|
|
89
|
-
</div>
|
|
90
|
-
</>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
const isNative = true as boolean;
|
|
10
|
-
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
const platform = 'native' as string;
|
|
14
|
-
|
|
15
|
-
export function BadgeDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Variants"
|
|
20
|
-
description="Badges come in 4 different variants."
|
|
21
|
-
code={`<Badge>Default</Badge>
|
|
22
|
-
<Badge variant="secondary">Secondary</Badge>
|
|
23
|
-
<Badge variant="destructive">Destructive</Badge>
|
|
24
|
-
<Badge variant="outline">Outline</Badge>`}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<ComponentShowcase
|
|
28
|
-
title="Use Cases"
|
|
29
|
-
description="Common use cases for badges."
|
|
30
|
-
code={`<Badge>New</Badge>
|
|
31
|
-
<Badge variant="secondary">Beta</Badge>
|
|
32
|
-
<Badge variant="destructive">Error</Badge>
|
|
33
|
-
<Badge variant="outline">v1.0.0</Badge>`}
|
|
34
|
-
/>
|
|
35
|
-
|
|
36
|
-
<div className="space-y-4">
|
|
37
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
38
|
-
<PropsTable
|
|
39
|
-
props={[
|
|
40
|
-
{
|
|
41
|
-
name: 'variant',
|
|
42
|
-
type: '"default" | "secondary" | "destructive" | "outline"',
|
|
43
|
-
defaultValue: '"default"',
|
|
44
|
-
description: 'The visual style of the badge.',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'className',
|
|
48
|
-
type: 'string',
|
|
49
|
-
description: isNative ? 'Tailwind (NativeWind) classes.' : 'Additional CSS classes to apply.',
|
|
50
|
-
},
|
|
51
|
-
...[
|
|
52
|
-
{
|
|
53
|
-
name: 'textClassName',
|
|
54
|
-
type: 'string',
|
|
55
|
-
description: 'Classes for the inner Text component (NativeWind).',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
]}
|
|
59
|
-
/>
|
|
60
|
-
</div>
|
|
61
|
-
</>
|
|
62
|
-
);
|
|
63
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
const isNative = true as boolean;
|
|
10
|
-
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
const platform = 'native' as string;
|
|
14
|
-
|
|
15
|
-
export function BreadcrumbDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Default"
|
|
20
|
-
description="A basic breadcrumb navigation."
|
|
21
|
-
code={`<Breadcrumb>
|
|
22
|
-
<BreadcrumbList>
|
|
23
|
-
<BreadcrumbItem>
|
|
24
|
-
<BreadcrumbLink href="/">Home</BreadcrumbLink>
|
|
25
|
-
</BreadcrumbItem>
|
|
26
|
-
<BreadcrumbSeparator />
|
|
27
|
-
<BreadcrumbItem>
|
|
28
|
-
<BreadcrumbLink href="/components">Components</BreadcrumbLink>
|
|
29
|
-
</BreadcrumbItem>
|
|
30
|
-
<BreadcrumbSeparator />
|
|
31
|
-
<BreadcrumbItem>
|
|
32
|
-
<BreadcrumbPage>Breadcrumb</BreadcrumbPage>
|
|
33
|
-
</BreadcrumbItem>
|
|
34
|
-
</BreadcrumbList>
|
|
35
|
-
</Breadcrumb>`}
|
|
36
|
-
/>
|
|
37
|
-
|
|
38
|
-
<div className="space-y-4">
|
|
39
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
40
|
-
|
|
41
|
-
<h4 className="text-lg font-medium mt-6">Breadcrumb (Root)</h4>
|
|
42
|
-
<PropsTable
|
|
43
|
-
props={[
|
|
44
|
-
{
|
|
45
|
-
name: 'separator',
|
|
46
|
-
type: 'ReactNode',
|
|
47
|
-
description: 'Custom separator element.',
|
|
48
|
-
},
|
|
49
|
-
]}
|
|
50
|
-
/>
|
|
51
|
-
|
|
52
|
-
<h4 className="text-lg font-medium mt-6">BreadcrumbLink</h4>
|
|
53
|
-
<PropsTable
|
|
54
|
-
props={[
|
|
55
|
-
{
|
|
56
|
-
name: 'asChild',
|
|
57
|
-
type: 'boolean',
|
|
58
|
-
defaultValue: 'false',
|
|
59
|
-
description: 'Change the default rendered element for the one passed as a child.',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'href',
|
|
63
|
-
type: 'string',
|
|
64
|
-
description: 'The URL of the link.',
|
|
65
|
-
},
|
|
66
|
-
]}
|
|
67
|
-
/>
|
|
68
|
-
</div>
|
|
69
|
-
</>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
export function ButtonDocs() {
|
|
6
|
-
return (
|
|
7
|
-
<>
|
|
8
|
-
<ComponentShowcase
|
|
9
|
-
title="Variants"
|
|
10
|
-
description="The button comes in 6 different variants."
|
|
11
|
-
code={`<Button variant="default">Default</Button>
|
|
12
|
-
<Button variant="secondary">Secondary</Button>
|
|
13
|
-
<Button variant="destructive">Destructive</Button>
|
|
14
|
-
<Button variant="outline">Outline</Button>
|
|
15
|
-
<Button variant="ghost">Ghost</Button>
|
|
16
|
-
<Button variant="link">Link</Button>`}
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<ComponentShowcase
|
|
20
|
-
title="Sizes"
|
|
21
|
-
description="Buttons come in default, small, large, and icon sizes."
|
|
22
|
-
code={`import { Button } from "@gv-tech/design-system";
|
|
23
|
-
|
|
24
|
-
<Button size="default">Default</Button>
|
|
25
|
-
<Button size="sm">Small</Button>
|
|
26
|
-
<Button size="lg">Large</Button>
|
|
27
|
-
<Button size="icon"><ChevronRight size={18} /></Button>`}
|
|
28
|
-
/>
|
|
29
|
-
|
|
30
|
-
<ComponentShowcase
|
|
31
|
-
title="With Icon"
|
|
32
|
-
description="You can add icons to buttons for additional context."
|
|
33
|
-
code={`import { Button } from "@gv-tech/design-system";
|
|
34
|
-
|
|
35
|
-
<Button onPress={() => console.log("Pressed")}>
|
|
36
|
-
<Mail size={18} color="white" />
|
|
37
|
-
<Text className="text-white ml-2">Login with Email</Text>
|
|
38
|
-
</Button>`}
|
|
39
|
-
/>
|
|
40
|
-
|
|
41
|
-
<ComponentShowcase
|
|
42
|
-
title="Loading State"
|
|
43
|
-
description="Use the disabled attribute with a spinner for loading states."
|
|
44
|
-
code={`import { Button } from "@gv-tech/design-system";
|
|
45
|
-
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
51
|
-
const isNative = true as boolean;
|
|
52
|
-
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
|
-
const platform = 'native' as string;
|
|
59
|
-
|
|
60
|
-
<Button disabled>
|
|
61
|
-
<Loader2 size={18} className="animate-spin text-white" />
|
|
62
|
-
<Text className="text-white ml-2">Please wait</Text>
|
|
63
|
-
</Button>`}
|
|
64
|
-
/>
|
|
65
|
-
|
|
66
|
-
<div className="space-y-4">
|
|
67
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
68
|
-
<PropsTable
|
|
69
|
-
props={[
|
|
70
|
-
{
|
|
71
|
-
name: 'variant',
|
|
72
|
-
type: '"default" | "destructive" | "outline" | "secondary" | "ghost" | "link"',
|
|
73
|
-
defaultValue: '"default"',
|
|
74
|
-
description: 'The visual style of the button.',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'size',
|
|
78
|
-
type: '"default" | "sm" | "lg" | "icon"',
|
|
79
|
-
defaultValue: '"default"',
|
|
80
|
-
description: 'The size of the button.',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'onPress',
|
|
84
|
-
type: '() => void',
|
|
85
|
-
description: 'Native press event handler.',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: 'className',
|
|
89
|
-
type: 'string',
|
|
90
|
-
description: 'Tailwind (NativeWind) classes.',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'disabled',
|
|
94
|
-
type: 'boolean',
|
|
95
|
-
defaultValue: 'false',
|
|
96
|
-
description: 'Whether the button is disabled.',
|
|
97
|
-
},
|
|
98
|
-
]}
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
</>
|
|
102
|
-
);
|
|
103
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
const isNative = true as boolean;
|
|
10
|
-
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
const platform = 'native' as string;
|
|
14
|
-
|
|
15
|
-
export function CalendarDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Default"
|
|
20
|
-
description="A basic calendar for date selection."
|
|
21
|
-
code={`
|
|
22
|
-
|
|
23
|
-
<Calendar
|
|
24
|
-
mode="single"
|
|
25
|
-
selected={date}
|
|
26
|
-
onSelect={setDate}
|
|
27
|
-
className="rounded-md border"
|
|
28
|
-
/>`}
|
|
29
|
-
/>
|
|
30
|
-
|
|
31
|
-
<div className="space-y-4">
|
|
32
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
33
|
-
<p className="text-sm text-muted-foreground">
|
|
34
|
-
The Calendar component is built on top of{' '}
|
|
35
|
-
<a href="https://react-day-picker.js.org/" className="underline" target="_blank" rel="noreferrer">
|
|
36
|
-
React Day Picker
|
|
37
|
-
</a>
|
|
38
|
-
.
|
|
39
|
-
</p>
|
|
40
|
-
<PropsTable
|
|
41
|
-
props={[
|
|
42
|
-
{
|
|
43
|
-
name: 'mode',
|
|
44
|
-
type: '"single" | "multiple" | "range" | "default"',
|
|
45
|
-
defaultValue: '"default"',
|
|
46
|
-
description: 'The selection mode of the calendar.',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: 'selected',
|
|
50
|
-
type: 'Date | Date[] | DateRange | undefined',
|
|
51
|
-
description: 'The selected date(s).',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: 'onSelect',
|
|
55
|
-
type: '(date: any) => void',
|
|
56
|
-
description: 'Event handler called when a date is selected.',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'showOutsideDays',
|
|
60
|
-
type: 'boolean',
|
|
61
|
-
defaultValue: 'true',
|
|
62
|
-
description: 'Whether to show days from the previous and next months.',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'className',
|
|
66
|
-
type: 'string',
|
|
67
|
-
description: 'Additional CSS classes to apply.',
|
|
68
|
-
},
|
|
69
|
-
]}
|
|
70
|
-
/>
|
|
71
|
-
</div>
|
|
72
|
-
</>
|
|
73
|
-
);
|
|
74
|
-
}
|