@gv-tech/design-system 2.5.0 → 2.5.1
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/package.json +4 -1
- 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/CHANGELOG.md +0 -679
- 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,126 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
import { Button } from '@gv-tech/ui-web';
|
|
4
|
-
import { toast } from 'sonner';
|
|
5
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
const isNative = false as boolean;
|
|
10
|
-
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
|
|
13
|
-
const platform = 'web' as string;
|
|
14
|
-
|
|
15
|
-
export function SonnerDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<div className="bg-muted/50 border rounded-lg p-6 space-y-4 mb-8">
|
|
19
|
-
<h3 className="text-lg font-semibold">Which to use?</h3>
|
|
20
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
|
|
21
|
-
<div className="space-y-2">
|
|
22
|
-
<h4 className="font-medium text-primary">Sonner</h4>
|
|
23
|
-
<p className="text-sm text-muted-foreground leading-relaxed">
|
|
24
|
-
Designed for modern applications. It stacks automatically, looks great by default, and uses a very simple
|
|
25
|
-
function call (<code>toast()</code>) that can be used anywhere—no hooks required.
|
|
26
|
-
</p>
|
|
27
|
-
</div>
|
|
28
|
-
<div className="space-y-2">
|
|
29
|
-
<h4 className="font-medium text-primary">Toast (Radix UI)</h4>
|
|
30
|
-
<p className="text-sm text-muted-foreground leading-relaxed">
|
|
31
|
-
Traditional Radix UI based toasts. Use this if you need deep programmatic control over the toast lifecycle
|
|
32
|
-
or if you require specific accessibility patterns not covered by Sonner.
|
|
33
|
-
</p>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<ComponentShowcase
|
|
39
|
-
title="Default"
|
|
40
|
-
description="A default toast."
|
|
41
|
-
code={`<Button
|
|
42
|
-
variant="outline"
|
|
43
|
-
onClick={() =>
|
|
44
|
-
toast("Event has been created", {
|
|
45
|
-
description: "Sunday, December 03, 2023 at 9:00 AM",
|
|
46
|
-
action: {
|
|
47
|
-
label: "Undo",
|
|
48
|
-
onClick: () => console.log("Undo"),
|
|
49
|
-
},
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
>
|
|
53
|
-
Show Toast
|
|
54
|
-
</Button>`}
|
|
55
|
-
>
|
|
56
|
-
<Button
|
|
57
|
-
variant="outline"
|
|
58
|
-
onClick={() =>
|
|
59
|
-
toast('Event has been created', {
|
|
60
|
-
description: 'Sunday, December 03, 2023 at 9:00 AM',
|
|
61
|
-
action: {
|
|
62
|
-
label: 'Undo',
|
|
63
|
-
onClick: () => console.log('Undo'),
|
|
64
|
-
},
|
|
65
|
-
})
|
|
66
|
-
}
|
|
67
|
-
>
|
|
68
|
-
Show Toast
|
|
69
|
-
</Button>
|
|
70
|
-
</ComponentShowcase>
|
|
71
|
-
|
|
72
|
-
<div className="space-y-4">
|
|
73
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
74
|
-
<p className="text-sm text-muted-foreground">
|
|
75
|
-
The Sonner component is based on{' '}
|
|
76
|
-
<a href="https://sonner.emilkowal.ski/" className="underline" target="_blank" rel="noreferrer">
|
|
77
|
-
Sonner
|
|
78
|
-
</a>
|
|
79
|
-
.
|
|
80
|
-
</p>
|
|
81
|
-
|
|
82
|
-
<h4 className="text-lg font-medium mt-6">Toaster</h4>
|
|
83
|
-
<PropsTable
|
|
84
|
-
props={[
|
|
85
|
-
{
|
|
86
|
-
name: 'theme',
|
|
87
|
-
type: '"light" | "dark" | "system"',
|
|
88
|
-
description: 'The theme of the toast.',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'richColors',
|
|
92
|
-
type: 'boolean',
|
|
93
|
-
description: 'Makes the toast colorful based on the type.',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: 'expand',
|
|
97
|
-
type: 'boolean',
|
|
98
|
-
description: 'Expands the toast to show the full content.',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: 'duration',
|
|
102
|
-
type: 'number',
|
|
103
|
-
description: 'Duration in milliseconds.',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'visibleToasts',
|
|
107
|
-
type: 'number',
|
|
108
|
-
description: 'Number of visible toasts.',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'closeButton',
|
|
112
|
-
type: 'boolean',
|
|
113
|
-
description: 'Shows a close button.',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'position',
|
|
117
|
-
type: '"top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center"',
|
|
118
|
-
defaultValue: '"bottom-right"',
|
|
119
|
-
description: 'Position of the toast.',
|
|
120
|
-
},
|
|
121
|
-
]}
|
|
122
|
-
/>
|
|
123
|
-
</div>
|
|
124
|
-
</>
|
|
125
|
-
);
|
|
126
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
import { Label, Switch } from '@gv-tech/ui-web';
|
|
4
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
const isNative = false as boolean;
|
|
9
|
-
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
|
|
12
|
-
const platform = 'web' as string;
|
|
13
|
-
|
|
14
|
-
export function SwitchDocs() {
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<ComponentShowcase
|
|
18
|
-
title="Default"
|
|
19
|
-
description="A default switch."
|
|
20
|
-
code={`<div className="flex items-center space-x-2">
|
|
21
|
-
<Switch id="airplane-mode" />
|
|
22
|
-
<Label htmlFor="airplane-mode">Airplane Mode</Label>
|
|
23
|
-
</div>`}
|
|
24
|
-
>
|
|
25
|
-
<div className="flex items-center space-x-2">
|
|
26
|
-
<Switch id="airplane-mode" />
|
|
27
|
-
<Label htmlFor="airplane-mode">Airplane Mode</Label>
|
|
28
|
-
</div>
|
|
29
|
-
</ComponentShowcase>
|
|
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 Switch component is built on top of{' '}
|
|
35
|
-
<a
|
|
36
|
-
href="https://www.radix-ui.com/primitives/docs/components/switch"
|
|
37
|
-
className="underline"
|
|
38
|
-
target="_blank"
|
|
39
|
-
rel="noreferrer"
|
|
40
|
-
>
|
|
41
|
-
Radix UI Switch
|
|
42
|
-
</a>
|
|
43
|
-
.
|
|
44
|
-
</p>
|
|
45
|
-
|
|
46
|
-
<h4 className="text-lg font-medium mt-6">Switch (Root)</h4>
|
|
47
|
-
<PropsTable
|
|
48
|
-
props={[
|
|
49
|
-
{
|
|
50
|
-
name: 'defaultChecked',
|
|
51
|
-
type: 'boolean',
|
|
52
|
-
description: 'The value of the switch when initially rendered.',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: 'checked',
|
|
56
|
-
type: 'boolean',
|
|
57
|
-
description: 'The controlled value of the switch.',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'onCheckedChange',
|
|
61
|
-
type: '(checked: boolean) => void',
|
|
62
|
-
description: 'Event handler called when the value changes.',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'disabled',
|
|
66
|
-
type: 'boolean',
|
|
67
|
-
description: 'When true, prevents the user from interacting with the switch.',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'required',
|
|
71
|
-
type: 'boolean',
|
|
72
|
-
description:
|
|
73
|
-
'When true, indicates that the user must toggle the switch before the owning form can be submitted.',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'name',
|
|
77
|
-
type: 'string',
|
|
78
|
-
description: 'The name of the switch. Submitted with its owning form as part of a name/value pair.',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'value',
|
|
82
|
-
type: 'string',
|
|
83
|
-
defaultValue: '"on"',
|
|
84
|
-
description: 'The value given as data when submitted with a name.',
|
|
85
|
-
},
|
|
86
|
-
]}
|
|
87
|
-
/>
|
|
88
|
-
</div>
|
|
89
|
-
</>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
4
|
-
import {
|
|
5
|
-
Table,
|
|
6
|
-
TableBody,
|
|
7
|
-
TableCaption,
|
|
8
|
-
TableCell,
|
|
9
|
-
TableFooter,
|
|
10
|
-
TableHead,
|
|
11
|
-
TableHeader,
|
|
12
|
-
TableRow,
|
|
13
|
-
} from '@gv-tech/ui-web';
|
|
14
|
-
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
|
|
17
|
-
const isNative = false as boolean;
|
|
18
|
-
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
|
|
21
|
-
const platform = 'web' as string;
|
|
22
|
-
|
|
23
|
-
const invoices = [
|
|
24
|
-
{
|
|
25
|
-
invoice: 'INV001',
|
|
26
|
-
paymentStatus: 'Paid',
|
|
27
|
-
totalAmount: '$250.00',
|
|
28
|
-
paymentMethod: 'Credit Card',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
invoice: 'INV002',
|
|
32
|
-
paymentStatus: 'Pending',
|
|
33
|
-
totalAmount: '$150.00',
|
|
34
|
-
paymentMethod: 'PayPal',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
invoice: 'INV003',
|
|
38
|
-
paymentStatus: 'Unpaid',
|
|
39
|
-
totalAmount: '$350.00',
|
|
40
|
-
paymentMethod: 'Bank Transfer',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
invoice: 'INV004',
|
|
44
|
-
paymentStatus: 'Paid',
|
|
45
|
-
totalAmount: '$450.00',
|
|
46
|
-
paymentMethod: 'Credit Card',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
invoice: 'INV005',
|
|
50
|
-
paymentStatus: 'Paid',
|
|
51
|
-
totalAmount: '$550.00',
|
|
52
|
-
paymentMethod: 'PayPal',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
invoice: 'INV006',
|
|
56
|
-
paymentStatus: 'Pending',
|
|
57
|
-
totalAmount: '$200.00',
|
|
58
|
-
paymentMethod: 'Bank Transfer',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
invoice: 'INV007',
|
|
62
|
-
paymentStatus: 'Unpaid',
|
|
63
|
-
totalAmount: '$300.00',
|
|
64
|
-
paymentMethod: 'Credit Card',
|
|
65
|
-
},
|
|
66
|
-
];
|
|
67
|
-
|
|
68
|
-
export function TableDocs() {
|
|
69
|
-
return (
|
|
70
|
-
<>
|
|
71
|
-
<ComponentShowcase
|
|
72
|
-
title="Default"
|
|
73
|
-
description="A list of recent invoices."
|
|
74
|
-
code={`<Table>
|
|
75
|
-
<TableCaption>A list of your recent invoices.</TableCaption>
|
|
76
|
-
<TableHeader>
|
|
77
|
-
<TableRow>
|
|
78
|
-
<TableHead className="w-[100px]">Invoice</TableHead>
|
|
79
|
-
<TableHead>Status</TableHead>
|
|
80
|
-
<TableHead>Method</TableHead>
|
|
81
|
-
<TableHead className="text-right">Amount</TableHead>
|
|
82
|
-
</TableRow>
|
|
83
|
-
</TableHeader>
|
|
84
|
-
<TableBody>
|
|
85
|
-
{invoices.map((invoice) => (
|
|
86
|
-
<TableRow key={invoice.invoice}>
|
|
87
|
-
<TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
88
|
-
<TableCell>{invoice.paymentStatus}</TableCell>
|
|
89
|
-
<TableCell>{invoice.paymentMethod}</TableCell>
|
|
90
|
-
<TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
91
|
-
</TableRow>
|
|
92
|
-
))}
|
|
93
|
-
</TableBody>
|
|
94
|
-
<TableFooter>
|
|
95
|
-
<TableRow>
|
|
96
|
-
<TableCell colSpan={3}>Total</TableCell>
|
|
97
|
-
<TableCell className="text-right">$2,500.00</TableCell>
|
|
98
|
-
</TableRow>
|
|
99
|
-
</TableFooter>
|
|
100
|
-
</Table>`}
|
|
101
|
-
>
|
|
102
|
-
<Table>
|
|
103
|
-
<TableCaption>A list of your recent invoices.</TableCaption>
|
|
104
|
-
<TableHeader>
|
|
105
|
-
<TableRow>
|
|
106
|
-
<TableHead className="w-[100px]">Invoice</TableHead>
|
|
107
|
-
<TableHead>Status</TableHead>
|
|
108
|
-
<TableHead>Method</TableHead>
|
|
109
|
-
<TableHead className="text-right">Amount</TableHead>
|
|
110
|
-
</TableRow>
|
|
111
|
-
</TableHeader>
|
|
112
|
-
<TableBody>
|
|
113
|
-
{invoices.map((invoice) => (
|
|
114
|
-
<TableRow key={invoice.invoice}>
|
|
115
|
-
<TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
116
|
-
<TableCell>{invoice.paymentStatus}</TableCell>
|
|
117
|
-
<TableCell>{invoice.paymentMethod}</TableCell>
|
|
118
|
-
<TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
119
|
-
</TableRow>
|
|
120
|
-
))}
|
|
121
|
-
</TableBody>
|
|
122
|
-
<TableFooter>
|
|
123
|
-
<TableRow>
|
|
124
|
-
<TableCell colSpan={3}>Total</TableCell>
|
|
125
|
-
<TableCell className="text-right">$2,500.00</TableCell>
|
|
126
|
-
</TableRow>
|
|
127
|
-
</TableFooter>
|
|
128
|
-
</Table>
|
|
129
|
-
</ComponentShowcase>
|
|
130
|
-
|
|
131
|
-
<div className="space-y-4">
|
|
132
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
133
|
-
<p className="text-sm text-muted-foreground">The Table component uses standard HTML table elements.</p>
|
|
134
|
-
|
|
135
|
-
<h4 className="text-lg font-medium mt-6">Table</h4>
|
|
136
|
-
<PropsTable
|
|
137
|
-
props={[
|
|
138
|
-
{
|
|
139
|
-
name: 'className',
|
|
140
|
-
type: 'string',
|
|
141
|
-
description: 'Additional class names to apply.',
|
|
142
|
-
},
|
|
143
|
-
]}
|
|
144
|
-
/>
|
|
145
|
-
</div>
|
|
146
|
-
</>
|
|
147
|
-
);
|
|
148
|
-
}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
4
|
-
import {
|
|
5
|
-
Button,
|
|
6
|
-
Card,
|
|
7
|
-
CardContent,
|
|
8
|
-
CardDescription,
|
|
9
|
-
CardFooter,
|
|
10
|
-
CardHeader,
|
|
11
|
-
CardTitle,
|
|
12
|
-
Input,
|
|
13
|
-
Label,
|
|
14
|
-
Tabs,
|
|
15
|
-
TabsContent,
|
|
16
|
-
TabsList,
|
|
17
|
-
TabsTrigger,
|
|
18
|
-
} from '@gv-tech/ui-web';
|
|
19
|
-
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
|
|
22
|
-
const isNative = false as boolean;
|
|
23
|
-
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
|
|
26
|
-
const platform = 'web' as string;
|
|
27
|
-
|
|
28
|
-
export function TabsDocs() {
|
|
29
|
-
return (
|
|
30
|
-
<>
|
|
31
|
-
<ComponentShowcase
|
|
32
|
-
title="Default"
|
|
33
|
-
description="A default tabs component."
|
|
34
|
-
code={`<Tabs defaultValue="account" className="w-[400px]">
|
|
35
|
-
<TabsList className="grid w-full grid-cols-2">
|
|
36
|
-
<TabsTrigger value="account">Account</TabsTrigger>
|
|
37
|
-
<TabsTrigger value="password">Password</TabsTrigger>
|
|
38
|
-
</TabsList>
|
|
39
|
-
<TabsContent value="account">
|
|
40
|
-
<Card>
|
|
41
|
-
<CardHeader>
|
|
42
|
-
<CardTitle>Account</CardTitle>
|
|
43
|
-
<CardDescription>
|
|
44
|
-
Make changes to your account here. Click save when you're done.
|
|
45
|
-
</CardDescription>
|
|
46
|
-
</CardHeader>
|
|
47
|
-
<CardContent className="space-y-2">
|
|
48
|
-
<div className="space-y-1">
|
|
49
|
-
<Label htmlFor="name">Name</Label>
|
|
50
|
-
<Input id="name" defaultValue="Pedro Duarte" />
|
|
51
|
-
</div>
|
|
52
|
-
<div className="space-y-1">
|
|
53
|
-
<Label htmlFor="username">Username</Label>
|
|
54
|
-
<Input id="username" defaultValue="@peduarte" />
|
|
55
|
-
</div>
|
|
56
|
-
</CardContent>
|
|
57
|
-
<CardFooter>
|
|
58
|
-
<Button>Save changes</Button>
|
|
59
|
-
</CardFooter>
|
|
60
|
-
</Card>
|
|
61
|
-
</TabsContent>
|
|
62
|
-
<TabsContent value="password">
|
|
63
|
-
<Card>
|
|
64
|
-
<CardHeader>
|
|
65
|
-
<CardTitle>Password</CardTitle>
|
|
66
|
-
<CardDescription>
|
|
67
|
-
Change your password here. After saving, you'll be logged out.
|
|
68
|
-
</CardDescription>
|
|
69
|
-
</CardHeader>
|
|
70
|
-
<CardContent className="space-y-2">
|
|
71
|
-
<div className="space-y-1">
|
|
72
|
-
<Label htmlFor="current">Current password</Label>
|
|
73
|
-
<Input id="current" type="password" />
|
|
74
|
-
</div>
|
|
75
|
-
<div className="space-y-1">
|
|
76
|
-
<Label htmlFor="new">New password</Label>
|
|
77
|
-
<Input id="new" type="password" />
|
|
78
|
-
</div>
|
|
79
|
-
</CardContent>
|
|
80
|
-
<CardFooter>
|
|
81
|
-
<Button>Save password</Button>
|
|
82
|
-
</CardFooter>
|
|
83
|
-
</Card>
|
|
84
|
-
</TabsContent>
|
|
85
|
-
</Tabs>`}
|
|
86
|
-
>
|
|
87
|
-
<Tabs defaultValue="account" className="w-[400px]">
|
|
88
|
-
<TabsList className="grid w-full grid-cols-2">
|
|
89
|
-
<TabsTrigger value="account">Account</TabsTrigger>
|
|
90
|
-
<TabsTrigger value="password">Password</TabsTrigger>
|
|
91
|
-
</TabsList>
|
|
92
|
-
<TabsContent value="account">
|
|
93
|
-
<Card>
|
|
94
|
-
<CardHeader>
|
|
95
|
-
<CardTitle>Account</CardTitle>
|
|
96
|
-
<CardDescription>Make changes to your account here. Click save when you're done.</CardDescription>
|
|
97
|
-
</CardHeader>
|
|
98
|
-
<CardContent className="space-y-2">
|
|
99
|
-
<div className="space-y-1">
|
|
100
|
-
<Label htmlFor="name">Name</Label>
|
|
101
|
-
<Input id="name" defaultValue="Pedro Duarte" />
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<div className="space-y-1">
|
|
105
|
-
<Label htmlFor="username">Username</Label>
|
|
106
|
-
<Input id="username" defaultValue="@peduarte" />
|
|
107
|
-
</div>
|
|
108
|
-
</CardContent>
|
|
109
|
-
<CardFooter>
|
|
110
|
-
<Button>Save changes</Button>
|
|
111
|
-
</CardFooter>
|
|
112
|
-
</Card>
|
|
113
|
-
</TabsContent>
|
|
114
|
-
<TabsContent value="password">
|
|
115
|
-
<Card>
|
|
116
|
-
<CardHeader>
|
|
117
|
-
<CardTitle>Password</CardTitle>
|
|
118
|
-
<CardDescription>Change your password here. After saving, you'll be logged out.</CardDescription>
|
|
119
|
-
</CardHeader>
|
|
120
|
-
<CardContent className="space-y-2">
|
|
121
|
-
<div className="space-y-1">
|
|
122
|
-
<Label htmlFor="current">Current password</Label>
|
|
123
|
-
<Input id="current" type="password" />
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<div className="space-y-1">
|
|
127
|
-
<Label htmlFor="new">New password</Label>
|
|
128
|
-
<Input id="new" type="password" />
|
|
129
|
-
</div>
|
|
130
|
-
</CardContent>
|
|
131
|
-
<CardFooter>
|
|
132
|
-
<Button>Save password</Button>
|
|
133
|
-
</CardFooter>
|
|
134
|
-
</Card>
|
|
135
|
-
</TabsContent>
|
|
136
|
-
</Tabs>
|
|
137
|
-
</ComponentShowcase>
|
|
138
|
-
|
|
139
|
-
<div className="space-y-4">
|
|
140
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
141
|
-
<p className="text-sm text-muted-foreground">
|
|
142
|
-
The Tabs component is built on top of{' '}
|
|
143
|
-
<a
|
|
144
|
-
href="https://www.radix-ui.com/primitives/docs/components/tabs"
|
|
145
|
-
className="underline"
|
|
146
|
-
target="_blank"
|
|
147
|
-
rel="noreferrer"
|
|
148
|
-
>
|
|
149
|
-
Radix UI Tabs
|
|
150
|
-
</a>
|
|
151
|
-
.
|
|
152
|
-
</p>
|
|
153
|
-
|
|
154
|
-
<h4 className="text-lg font-medium mt-6">Tabs (Root)</h4>
|
|
155
|
-
<PropsTable
|
|
156
|
-
props={[
|
|
157
|
-
{
|
|
158
|
-
name: 'defaultValue',
|
|
159
|
-
type: 'string',
|
|
160
|
-
description: 'The value of the tab that should be active when initially rendered.',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: 'value',
|
|
164
|
-
type: 'string',
|
|
165
|
-
description: 'The controlled value of the tab to activate.',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: 'onValueChange',
|
|
169
|
-
type: '(value: string) => void',
|
|
170
|
-
description: 'Event handler called when the value changes.',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: 'orientation',
|
|
174
|
-
type: '"horizontal" | "vertical"',
|
|
175
|
-
defaultValue: '"horizontal"',
|
|
176
|
-
description: 'The orientation of the tabs.',
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
name: 'dir',
|
|
180
|
-
type: '"ltr" | "rtl"',
|
|
181
|
-
description: 'The reading direction of the tabs.',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
name: 'activationMode',
|
|
185
|
-
type: '"automatic" | "manual"',
|
|
186
|
-
defaultValue: '"automatic"',
|
|
187
|
-
description:
|
|
188
|
-
'When automatic, tabs are activated when receiving focus. When manual, tabs are activated when clicked.',
|
|
189
|
-
},
|
|
190
|
-
]}
|
|
191
|
-
/>
|
|
192
|
-
|
|
193
|
-
<h4 className="text-lg font-medium mt-6">TabsList</h4>
|
|
194
|
-
<PropsTable
|
|
195
|
-
props={[
|
|
196
|
-
{
|
|
197
|
-
name: 'loop',
|
|
198
|
-
type: 'boolean',
|
|
199
|
-
defaultValue: 'true',
|
|
200
|
-
description: 'When true, keyboard navigation will loop from last tab to first, and vice versa.',
|
|
201
|
-
},
|
|
202
|
-
]}
|
|
203
|
-
/>
|
|
204
|
-
|
|
205
|
-
<h4 className="text-lg font-medium mt-6">TabsTrigger</h4>
|
|
206
|
-
<PropsTable
|
|
207
|
-
props={[
|
|
208
|
-
{
|
|
209
|
-
name: 'value',
|
|
210
|
-
type: 'string',
|
|
211
|
-
required: true,
|
|
212
|
-
description: 'A unique value for the trigger.',
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: 'disabled',
|
|
216
|
-
type: 'boolean',
|
|
217
|
-
description: 'When true, prevents the user from interacting with the tab.',
|
|
218
|
-
},
|
|
219
|
-
]}
|
|
220
|
-
/>
|
|
221
|
-
|
|
222
|
-
<h4 className="text-lg font-medium mt-6">TabsContent</h4>
|
|
223
|
-
<PropsTable
|
|
224
|
-
props={[
|
|
225
|
-
{
|
|
226
|
-
name: 'value',
|
|
227
|
-
type: 'string',
|
|
228
|
-
required: true,
|
|
229
|
-
description: 'A unique value for the content.',
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: 'forceMount',
|
|
233
|
-
type: 'boolean',
|
|
234
|
-
description: 'Used to force mounting when more control is needed.',
|
|
235
|
-
},
|
|
236
|
-
]}
|
|
237
|
-
/>
|
|
238
|
-
</div>
|
|
239
|
-
</>
|
|
240
|
-
);
|
|
241
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
import { Label, Textarea } from '@gv-tech/ui-web';
|
|
4
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
const isNative = false as boolean;
|
|
9
|
-
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
|
|
12
|
-
const platform = 'web' as string;
|
|
13
|
-
|
|
14
|
-
export function TextareaDocs() {
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<ComponentShowcase
|
|
18
|
-
title="Default"
|
|
19
|
-
description="A default textarea."
|
|
20
|
-
code={`<div className="grid w-full gap-1.5">
|
|
21
|
-
<Label htmlFor="message">Your message</Label>
|
|
22
|
-
<Textarea placeholder="Type your message here." id="message" />
|
|
23
|
-
</div>`}
|
|
24
|
-
>
|
|
25
|
-
<div className="grid w-full gap-1.5">
|
|
26
|
-
<Label htmlFor="message">Your message</Label>
|
|
27
|
-
<Textarea placeholder="Type your message here." id="message" />
|
|
28
|
-
</div>
|
|
29
|
-
</ComponentShowcase>
|
|
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 Textarea component accepts all standard HTML textarea attributes.
|
|
35
|
-
</p>
|
|
36
|
-
|
|
37
|
-
<h4 className="text-lg font-medium mt-6">Textarea</h4>
|
|
38
|
-
<PropsTable
|
|
39
|
-
props={[
|
|
40
|
-
{
|
|
41
|
-
name: 'className',
|
|
42
|
-
type: 'string',
|
|
43
|
-
description: 'Additional class names to apply.',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'placeholder',
|
|
47
|
-
type: 'string',
|
|
48
|
-
description: 'The placeholder object.',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'disabled',
|
|
52
|
-
type: 'boolean',
|
|
53
|
-
description: 'Whether the textarea is disabled.',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'required',
|
|
57
|
-
type: 'boolean',
|
|
58
|
-
description: 'Whether the textarea is required.',
|
|
59
|
-
},
|
|
60
|
-
]}
|
|
61
|
-
/>
|
|
62
|
-
</div>
|
|
63
|
-
</>
|
|
64
|
-
);
|
|
65
|
-
}
|