@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,121 +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 ContextMenuDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Default"
|
|
20
|
-
description="Right-click to open the context menu."
|
|
21
|
-
code={`<ContextMenu>
|
|
22
|
-
<ContextMenuTrigger className="flex h-[150px] w-[300px] items-center justify-center rounded-md border border-dashed text-sm">
|
|
23
|
-
Right click here
|
|
24
|
-
</ContextMenuTrigger>
|
|
25
|
-
<ContextMenuContent className="w-64">
|
|
26
|
-
<ContextMenuItem>
|
|
27
|
-
Back
|
|
28
|
-
<ContextMenuShortcut>⌘[</ContextMenuShortcut>
|
|
29
|
-
</ContextMenuItem>
|
|
30
|
-
<ContextMenuItem disabled>
|
|
31
|
-
Forward
|
|
32
|
-
<ContextMenuShortcut>⌘]</ContextMenuShortcut>
|
|
33
|
-
</ContextMenuItem>
|
|
34
|
-
<ContextMenuItem>
|
|
35
|
-
Reload
|
|
36
|
-
<ContextMenuShortcut>⌘R</ContextMenuShortcut>
|
|
37
|
-
</ContextMenuItem>
|
|
38
|
-
<ContextMenuSub>
|
|
39
|
-
<ContextMenuSubTrigger>More Tools</ContextMenuSubTrigger>
|
|
40
|
-
<ContextMenuSubContent className="w-48">
|
|
41
|
-
<ContextMenuItem>Save Page As...</ContextMenuItem>
|
|
42
|
-
<ContextMenuItem>Create Shortcut...</ContextMenuItem>
|
|
43
|
-
<ContextMenuSeparator />
|
|
44
|
-
<ContextMenuItem>Developer Tools</ContextMenuItem>
|
|
45
|
-
</ContextMenuSubContent>
|
|
46
|
-
</ContextMenuSub>
|
|
47
|
-
<ContextMenuSeparator />
|
|
48
|
-
<ContextMenuItem>
|
|
49
|
-
View Page Source
|
|
50
|
-
<ContextMenuShortcut>⌘U</ContextMenuShortcut>
|
|
51
|
-
</ContextMenuItem>
|
|
52
|
-
</ContextMenuContent>
|
|
53
|
-
</ContextMenu>`}
|
|
54
|
-
/>
|
|
55
|
-
|
|
56
|
-
<div className="space-y-4">
|
|
57
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
58
|
-
<p className="text-sm text-muted-foreground">
|
|
59
|
-
The Context Menu component is built on top of{' '}
|
|
60
|
-
<a
|
|
61
|
-
href="https://www.radix-ui.com/primitives/docs/components/context-menu"
|
|
62
|
-
className="underline"
|
|
63
|
-
target="_blank"
|
|
64
|
-
rel="noreferrer"
|
|
65
|
-
>
|
|
66
|
-
Radix UI Context Menu
|
|
67
|
-
</a>
|
|
68
|
-
.
|
|
69
|
-
</p>
|
|
70
|
-
<h4 className="text-lg font-medium mt-6">ContextMenu (Root)</h4>
|
|
71
|
-
<PropsTable
|
|
72
|
-
props={[
|
|
73
|
-
{
|
|
74
|
-
name: 'onOpenChange',
|
|
75
|
-
type: '(open: boolean) => void',
|
|
76
|
-
description: 'Event handler called when the open state changes.',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'modal',
|
|
80
|
-
type: 'boolean',
|
|
81
|
-
defaultValue: 'true',
|
|
82
|
-
description: 'The modality of the context menu.',
|
|
83
|
-
},
|
|
84
|
-
]}
|
|
85
|
-
/>
|
|
86
|
-
|
|
87
|
-
<h4 className="text-lg font-medium mt-6">ContextMenuTrigger</h4>
|
|
88
|
-
<PropsTable
|
|
89
|
-
props={[
|
|
90
|
-
{
|
|
91
|
-
name: 'disabled',
|
|
92
|
-
type: 'boolean',
|
|
93
|
-
description: 'Whether the trigger is disabled.',
|
|
94
|
-
},
|
|
95
|
-
]}
|
|
96
|
-
/>
|
|
97
|
-
|
|
98
|
-
<h4 className="text-lg font-medium mt-6">ContextMenuItem</h4>
|
|
99
|
-
<PropsTable
|
|
100
|
-
props={[
|
|
101
|
-
{
|
|
102
|
-
name: 'onSelect',
|
|
103
|
-
type: '(event: Event) => void',
|
|
104
|
-
description: 'Event handler called when the item is selected.',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'disabled',
|
|
108
|
-
type: 'boolean',
|
|
109
|
-
description: 'Whether the item is disabled.',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'textValue',
|
|
113
|
-
type: 'string',
|
|
114
|
-
description: 'Text representation of the item for typeahead support.',
|
|
115
|
-
},
|
|
116
|
-
]}
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
</>
|
|
120
|
-
);
|
|
121
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
3
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
4
|
-
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
|
|
7
|
-
const isNative = true as boolean;
|
|
8
|
-
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
|
|
11
|
-
const platform = 'native' as string;
|
|
12
|
-
|
|
13
|
-
export function DialogDocs() {
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<ComponentShowcase
|
|
17
|
-
title="Default"
|
|
18
|
-
description="A basic dialog with a trigger and content."
|
|
19
|
-
code={`<Dialog>
|
|
20
|
-
<DialogTrigger asChild>
|
|
21
|
-
<Button variant="outline">Edit Profile</Button>
|
|
22
|
-
</DialogTrigger>
|
|
23
|
-
<DialogContent className="sm:max-w-[425px]">
|
|
24
|
-
<DialogHeader>
|
|
25
|
-
<DialogTitle>Edit profile</DialogTitle>
|
|
26
|
-
<DialogDescription>
|
|
27
|
-
Make changes to your profile here. Click save when you're done.
|
|
28
|
-
</DialogDescription>
|
|
29
|
-
</DialogHeader>
|
|
30
|
-
<div className="grid gap-4 py-4">
|
|
31
|
-
<div className="grid grid-cols-4 items-center gap-4">
|
|
32
|
-
<Label htmlFor="name" className="text-right">
|
|
33
|
-
Name
|
|
34
|
-
</Label>
|
|
35
|
-
<Input id="name" defaultValue="Pedro Duarte" className="col-span-3" />
|
|
36
|
-
</div>
|
|
37
|
-
<div className="grid grid-cols-4 items-center gap-4">
|
|
38
|
-
<Label htmlFor="username" className="text-right">
|
|
39
|
-
Username
|
|
40
|
-
</Label>
|
|
41
|
-
<Input id="username" defaultValue="@peduarte" className="col-span-3" />
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<DialogFooter>
|
|
45
|
-
<Button type="submit">Save changes</Button>
|
|
46
|
-
</DialogFooter>
|
|
47
|
-
</DialogContent>
|
|
48
|
-
</Dialog>`}
|
|
49
|
-
/>
|
|
50
|
-
|
|
51
|
-
<div className="space-y-4">
|
|
52
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
53
|
-
<p className="text-sm text-muted-foreground">
|
|
54
|
-
The Dialog component is built on top of{' '}
|
|
55
|
-
<a
|
|
56
|
-
href="https://www.radix-ui.com/primitives/docs/components/dialog"
|
|
57
|
-
className="underline"
|
|
58
|
-
target="_blank"
|
|
59
|
-
rel="noreferrer"
|
|
60
|
-
>
|
|
61
|
-
Radix UI Dialog
|
|
62
|
-
</a>
|
|
63
|
-
.
|
|
64
|
-
</p>
|
|
65
|
-
<h4 className="text-lg font-medium mt-6">Dialog (Root)</h4>
|
|
66
|
-
<PropsTable
|
|
67
|
-
props={[
|
|
68
|
-
{
|
|
69
|
-
name: 'open',
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
description: 'The controlled open state of the dialog.',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'defaultOpen',
|
|
75
|
-
type: 'boolean',
|
|
76
|
-
description: 'The default open state when uncontrolled.',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'onOpenChange',
|
|
80
|
-
type: '(open: boolean) => void',
|
|
81
|
-
description: 'Event handler called when the open state changes.',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: 'modal',
|
|
85
|
-
type: 'boolean',
|
|
86
|
-
defaultValue: 'true',
|
|
87
|
-
description: 'The modality of the dialog.',
|
|
88
|
-
},
|
|
89
|
-
]}
|
|
90
|
-
/>
|
|
91
|
-
|
|
92
|
-
<h4 className="text-lg font-medium mt-6">DialogTrigger</h4>
|
|
93
|
-
<PropsTable
|
|
94
|
-
props={[
|
|
95
|
-
{
|
|
96
|
-
name: 'asChild',
|
|
97
|
-
type: 'boolean',
|
|
98
|
-
description: 'Change the default rendered element for the one passed as a child.',
|
|
99
|
-
},
|
|
100
|
-
]}
|
|
101
|
-
/>
|
|
102
|
-
|
|
103
|
-
<h4 className="text-lg font-medium mt-6">DialogContent</h4>
|
|
104
|
-
<PropsTable
|
|
105
|
-
props={[
|
|
106
|
-
{
|
|
107
|
-
name: 'onEscapeKeyDown',
|
|
108
|
-
type: '(event: KeyboardEvent) => void',
|
|
109
|
-
description: 'Event handler called when the escape key is down.',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'onPointerDownOutside',
|
|
113
|
-
type: '(event: PointerDownOutsideEvent) => void',
|
|
114
|
-
description: 'Event handler called when a pointer event occurs outside the bounds of the component.',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'onInteractOutside',
|
|
118
|
-
type: '(event: React.FocusEvent | MouseEvent | TouchEvent) => void',
|
|
119
|
-
description:
|
|
120
|
-
'Event handler called when an interaction (pointer or focus) happens outside the bounds of the component.',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'forceMount',
|
|
124
|
-
type: 'boolean',
|
|
125
|
-
description: 'Used to force mounting when more control is needed.',
|
|
126
|
-
},
|
|
127
|
-
]}
|
|
128
|
-
/>
|
|
129
|
-
</div>
|
|
130
|
-
</>
|
|
131
|
-
);
|
|
132
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
3
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
4
|
-
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
|
|
7
|
-
const isNative = true as boolean;
|
|
8
|
-
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
|
|
11
|
-
const platform = 'native' as string;
|
|
12
|
-
|
|
13
|
-
export function DrawerDocs() {
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<ComponentShowcase
|
|
17
|
-
title="Default"
|
|
18
|
-
description="A responsive drawer."
|
|
19
|
-
code={`<Drawer>
|
|
20
|
-
<DrawerTrigger asChild>
|
|
21
|
-
<Button variant="outline">Open Drawer</Button>
|
|
22
|
-
</DrawerTrigger>
|
|
23
|
-
<DrawerContent>
|
|
24
|
-
<div className="mx-auto w-full max-w-sm">
|
|
25
|
-
<DrawerHeader>
|
|
26
|
-
<DrawerTitle>Move Goal</DrawerTitle>
|
|
27
|
-
<DrawerDescription>Set your daily activity goal.</DrawerDescription>
|
|
28
|
-
</DrawerHeader>
|
|
29
|
-
<div className="p-4 pb-0">
|
|
30
|
-
<div className="flex items-center justify-center space-x-2">
|
|
31
|
-
<Button
|
|
32
|
-
variant="outline"
|
|
33
|
-
size="icon"
|
|
34
|
-
className="h-8 w-8 shrink-0 rounded-full"
|
|
35
|
-
onClick={() => onClick(-10)}
|
|
36
|
-
disabled={goal <= 200}
|
|
37
|
-
>
|
|
38
|
-
<Minus className="h-4 w-4" />
|
|
39
|
-
<span className="sr-only">Decrease</span>
|
|
40
|
-
</Button>
|
|
41
|
-
<div className="flex-1 text-center">
|
|
42
|
-
<div className="text-7xl font-bold tracking-tighter">
|
|
43
|
-
{goal}
|
|
44
|
-
</div>
|
|
45
|
-
<div className="text-[0.70rem] uppercase text-muted-foreground">
|
|
46
|
-
Calories/day
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<Button
|
|
50
|
-
variant="outline"
|
|
51
|
-
size="icon"
|
|
52
|
-
className="h-8 w-8 shrink-0 rounded-full"
|
|
53
|
-
onClick={() => onClick(10)}
|
|
54
|
-
disabled={goal >= 400}
|
|
55
|
-
>
|
|
56
|
-
<Plus className="h-4 w-4" />
|
|
57
|
-
<span className="sr-only">Increase</span>
|
|
58
|
-
</Button>
|
|
59
|
-
</div>
|
|
60
|
-
<div className="mt-3 h-[120px]">
|
|
61
|
-
<ResponsiveContainer width="100%" height="100%">
|
|
62
|
-
<BarChart data={data}>
|
|
63
|
-
<Bar
|
|
64
|
-
dataKey="goal"
|
|
65
|
-
style={
|
|
66
|
-
{
|
|
67
|
-
fill: "hsl(var(--foreground))",
|
|
68
|
-
opacity: 0.9,
|
|
69
|
-
} as React.CSSProperties
|
|
70
|
-
}
|
|
71
|
-
/>
|
|
72
|
-
</BarChart>
|
|
73
|
-
</ResponsiveContainer>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
<DrawerFooter>
|
|
77
|
-
<Button>Submit</Button>
|
|
78
|
-
<DrawerClose asChild>
|
|
79
|
-
<Button variant="outline">Cancel</Button>
|
|
80
|
-
</DrawerClose>
|
|
81
|
-
</DrawerFooter>
|
|
82
|
-
</div>
|
|
83
|
-
</DrawerContent>
|
|
84
|
-
</Drawer>`}
|
|
85
|
-
/>
|
|
86
|
-
|
|
87
|
-
<div className="space-y-4">
|
|
88
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
89
|
-
<p className="text-sm text-muted-foreground">
|
|
90
|
-
The Drawer component is built on top of{' '}
|
|
91
|
-
<a href="https://github.com/emilkowalski/vaul" className="underline" target="_blank" rel="noreferrer">
|
|
92
|
-
Vaul
|
|
93
|
-
</a>
|
|
94
|
-
.
|
|
95
|
-
</p>
|
|
96
|
-
<h4 className="text-lg font-medium mt-6">Drawer (Root)</h4>
|
|
97
|
-
<PropsTable
|
|
98
|
-
props={[
|
|
99
|
-
{
|
|
100
|
-
name: 'open',
|
|
101
|
-
type: 'boolean',
|
|
102
|
-
description: 'The controlled open state of the drawer.',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: 'defaultOpen',
|
|
106
|
-
type: 'boolean',
|
|
107
|
-
description: 'The default open state when uncontrolled.',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'onOpenChange',
|
|
111
|
-
type: '(open: boolean) => void',
|
|
112
|
-
description: 'Event handler called when the open state changes.',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'shouldScaleBackground',
|
|
116
|
-
type: 'boolean',
|
|
117
|
-
defaultValue: 'true',
|
|
118
|
-
description: 'Whether to scale the background when the drawer opens.',
|
|
119
|
-
},
|
|
120
|
-
]}
|
|
121
|
-
/>
|
|
122
|
-
|
|
123
|
-
<h4 className="text-lg font-medium mt-6">DrawerTrigger</h4>
|
|
124
|
-
<PropsTable
|
|
125
|
-
props={[
|
|
126
|
-
{
|
|
127
|
-
name: 'asChild',
|
|
128
|
-
type: 'boolean',
|
|
129
|
-
description: 'Change the default rendered element for the one passed as a child.',
|
|
130
|
-
},
|
|
131
|
-
]}
|
|
132
|
-
/>
|
|
133
|
-
|
|
134
|
-
<h4 className="text-lg font-medium mt-6">DrawerContent</h4>
|
|
135
|
-
<PropsTable
|
|
136
|
-
props={[
|
|
137
|
-
{
|
|
138
|
-
name: 'onEscapeKeyDown',
|
|
139
|
-
type: '(event: KeyboardEvent) => void',
|
|
140
|
-
description: 'Event handler called when the escape key is down.',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: 'onPointerDownOutside',
|
|
144
|
-
type: '(event: PointerDownOutsideEvent) => void',
|
|
145
|
-
description: 'Event handler called when a pointer event occurs outside the bounds of the component.',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: 'onInteractOutside',
|
|
149
|
-
type: '(event: React.FocusEvent | MouseEvent | TouchEvent) => void',
|
|
150
|
-
description:
|
|
151
|
-
'Event handler called when an interaction (pointer or focus) happens outside the bounds of the component.',
|
|
152
|
-
},
|
|
153
|
-
]}
|
|
154
|
-
/>
|
|
155
|
-
</div>
|
|
156
|
-
</>
|
|
157
|
-
);
|
|
158
|
-
}
|
|
@@ -1,168 +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 DropdownMenuDocs() {
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<ComponentShowcase
|
|
19
|
-
title="Default"
|
|
20
|
-
description="A simple dropdown menu."
|
|
21
|
-
code={`<DropdownMenu>
|
|
22
|
-
<DropdownMenuTrigger asChild>
|
|
23
|
-
<Button variant="outline">Open</Button>
|
|
24
|
-
</DropdownMenuTrigger>
|
|
25
|
-
<DropdownMenuContent className="w-56">
|
|
26
|
-
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
27
|
-
<DropdownMenuSeparator />
|
|
28
|
-
<DropdownMenuGroup>
|
|
29
|
-
<DropdownMenuItem>
|
|
30
|
-
<User className="mr-2 h-4 w-4" />
|
|
31
|
-
<span>Profile</span>
|
|
32
|
-
<DropdownMenuShortcut>⇧⌘P</DropdownMenuShortcut>
|
|
33
|
-
</DropdownMenuItem>
|
|
34
|
-
...
|
|
35
|
-
</DropdownMenuGroup>
|
|
36
|
-
...
|
|
37
|
-
<DropdownMenuItem>
|
|
38
|
-
<SiGithub className="mr-2 h-4 w-4" />
|
|
39
|
-
<span>GitHub</span>
|
|
40
|
-
</DropdownMenuItem>
|
|
41
|
-
...
|
|
42
|
-
</DropdownMenuContent>
|
|
43
|
-
</DropdownMenu>`}
|
|
44
|
-
/>
|
|
45
|
-
|
|
46
|
-
<ComponentShowcase
|
|
47
|
-
title="Checkboxes and Radios"
|
|
48
|
-
description="A dropdown menu with checkboxes and radio items."
|
|
49
|
-
code={`<DropdownMenu>
|
|
50
|
-
<DropdownMenuTrigger asChild>
|
|
51
|
-
<Button variant="outline">Open</Button>
|
|
52
|
-
</DropdownMenuTrigger>
|
|
53
|
-
<DropdownMenuContent className="w-56">
|
|
54
|
-
<DropdownMenuLabel>Appearance</DropdownMenuLabel>
|
|
55
|
-
<DropdownMenuSeparator />
|
|
56
|
-
<DropdownMenuCheckboxItem
|
|
57
|
-
checked={showStatusBar}
|
|
58
|
-
onCheckedChange={setShowStatusBar}
|
|
59
|
-
>
|
|
60
|
-
Status Bar
|
|
61
|
-
</DropdownMenuCheckboxItem>
|
|
62
|
-
<DropdownMenuCheckboxItem
|
|
63
|
-
checked={showActivityBar}
|
|
64
|
-
onCheckedChange={setShowActivityBar}
|
|
65
|
-
disabled
|
|
66
|
-
>
|
|
67
|
-
Activity Bar
|
|
68
|
-
</DropdownMenuCheckboxItem>
|
|
69
|
-
<DropdownMenuCheckboxItem
|
|
70
|
-
checked={showPanel}
|
|
71
|
-
onCheckedChange={setShowPanel}
|
|
72
|
-
>
|
|
73
|
-
Panel
|
|
74
|
-
</DropdownMenuCheckboxItem>
|
|
75
|
-
<DropdownMenuSeparator />
|
|
76
|
-
<DropdownMenuLabel>Panel Position</DropdownMenuLabel>
|
|
77
|
-
<DropdownMenuSeparator />
|
|
78
|
-
<DropdownMenuRadioGroup value={position} onValueChange={setPosition}>
|
|
79
|
-
<DropdownMenuRadioItem value="top">Top</DropdownMenuRadioItem>
|
|
80
|
-
<DropdownMenuRadioItem value="bottom">Bottom</DropdownMenuRadioItem>
|
|
81
|
-
<DropdownMenuRadioItem value="right">Right</DropdownMenuRadioItem>
|
|
82
|
-
</DropdownMenuRadioGroup>
|
|
83
|
-
</DropdownMenuContent>
|
|
84
|
-
</DropdownMenu>`}
|
|
85
|
-
/>
|
|
86
|
-
|
|
87
|
-
<div className="space-y-4">
|
|
88
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
89
|
-
<p className="text-sm text-muted-foreground">
|
|
90
|
-
The DropdownMenu component is built on top of{' '}
|
|
91
|
-
<a
|
|
92
|
-
href="https://www.radix-ui.com/primitives/docs/components/dropdown-menu"
|
|
93
|
-
className="underline"
|
|
94
|
-
target="_blank"
|
|
95
|
-
rel="noreferrer"
|
|
96
|
-
>
|
|
97
|
-
Radix UI Dropdown Menu
|
|
98
|
-
</a>
|
|
99
|
-
.
|
|
100
|
-
</p>
|
|
101
|
-
|
|
102
|
-
<h4 className="text-lg font-medium mt-6">DropdownMenu (Root)</h4>
|
|
103
|
-
<PropsTable
|
|
104
|
-
props={[
|
|
105
|
-
{
|
|
106
|
-
name: 'open',
|
|
107
|
-
type: 'boolean',
|
|
108
|
-
description: 'The controlled open state of the dropdown menu.',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'defaultOpen',
|
|
112
|
-
type: 'boolean',
|
|
113
|
-
description: 'The default open state when uncontrolled.',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'onOpenChange',
|
|
117
|
-
type: '(open: boolean) => void',
|
|
118
|
-
description: 'Event handler called when the open state changes.',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'modal',
|
|
122
|
-
type: 'boolean',
|
|
123
|
-
defaultValue: 'true',
|
|
124
|
-
description: 'The modality of the dropdown menu.',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'dir',
|
|
128
|
-
type: '"ltr" | "rtl"',
|
|
129
|
-
description: 'The reading direction of the dropdown menu.',
|
|
130
|
-
},
|
|
131
|
-
]}
|
|
132
|
-
/>
|
|
133
|
-
|
|
134
|
-
<h4 className="text-lg font-medium mt-6">DropdownMenuCheckboxItem</h4>
|
|
135
|
-
<PropsTable
|
|
136
|
-
props={[
|
|
137
|
-
{
|
|
138
|
-
name: 'checked',
|
|
139
|
-
type: 'boolean | "indeterminate"',
|
|
140
|
-
description: 'The controlled checked state of the item.',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: 'onCheckedChange',
|
|
144
|
-
type: '(checked: boolean) => void',
|
|
145
|
-
description: 'Event handler called when the checked state changes.',
|
|
146
|
-
},
|
|
147
|
-
]}
|
|
148
|
-
/>
|
|
149
|
-
|
|
150
|
-
<h4 className="text-lg font-medium mt-6">DropdownMenuRadioGroup</h4>
|
|
151
|
-
<PropsTable
|
|
152
|
-
props={[
|
|
153
|
-
{
|
|
154
|
-
name: 'value',
|
|
155
|
-
type: 'string',
|
|
156
|
-
description: 'The value of the selected item in the group.',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
name: 'onValueChange',
|
|
160
|
-
type: '(value: string) => void',
|
|
161
|
-
description: 'Event handler called when the value changes.',
|
|
162
|
-
},
|
|
163
|
-
]}
|
|
164
|
-
/>
|
|
165
|
-
</div>
|
|
166
|
-
</>
|
|
167
|
-
);
|
|
168
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
|
|
3
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
4
|
-
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
|
|
7
|
-
const isNative = true as boolean;
|
|
8
|
-
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
|
|
11
|
-
const platform = 'native' as string;
|
|
12
|
-
|
|
13
|
-
export function HoverCardDocs() {
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<ComponentShowcase
|
|
17
|
-
title="Default"
|
|
18
|
-
description="A hover card showing user details."
|
|
19
|
-
code={`<HoverCard>
|
|
20
|
-
<HoverCardTrigger asChild>
|
|
21
|
-
<Button variant="link">@nextjs</Button>
|
|
22
|
-
</HoverCardTrigger>
|
|
23
|
-
<HoverCardContent className="w-80">
|
|
24
|
-
<div className="flex justify-between space-x-4">
|
|
25
|
-
<Avatar>
|
|
26
|
-
<AvatarImage src="https://github.com/vercel.png" />
|
|
27
|
-
<AvatarFallback>VC</AvatarFallback>
|
|
28
|
-
</Avatar>
|
|
29
|
-
<div className="space-y-1">
|
|
30
|
-
<h4 className="text-sm font-semibold">@nextjs</h4>
|
|
31
|
-
<p className="text-sm">
|
|
32
|
-
The React Framework – created and maintained by @vercel.
|
|
33
|
-
</p>
|
|
34
|
-
<div className="flex items-center pt-2">
|
|
35
|
-
<CalendarDays className="mr-2 h-4 w-4 opacity-70" />{" "}
|
|
36
|
-
<span className="text-xs text-muted-foreground">
|
|
37
|
-
Joined December 2021
|
|
38
|
-
</span>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</HoverCardContent>
|
|
43
|
-
</HoverCard>`}
|
|
44
|
-
/>
|
|
45
|
-
|
|
46
|
-
<div className="space-y-4">
|
|
47
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
48
|
-
<p className="text-sm text-muted-foreground">
|
|
49
|
-
The Hover Card component is built on top of{' '}
|
|
50
|
-
<a
|
|
51
|
-
href="https://www.radix-ui.com/primitives/docs/components/hover-card"
|
|
52
|
-
className="underline"
|
|
53
|
-
target="_blank"
|
|
54
|
-
rel="noreferrer"
|
|
55
|
-
>
|
|
56
|
-
Radix UI Hover Card
|
|
57
|
-
</a>
|
|
58
|
-
.
|
|
59
|
-
</p>
|
|
60
|
-
|
|
61
|
-
<h4 className="text-lg font-medium mt-6">HoverCard (Root)</h4>
|
|
62
|
-
<PropsTable
|
|
63
|
-
props={[
|
|
64
|
-
{
|
|
65
|
-
name: 'open',
|
|
66
|
-
type: 'boolean',
|
|
67
|
-
description: 'The controlled open state of the hover card.',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'defaultOpen',
|
|
71
|
-
type: 'boolean',
|
|
72
|
-
description: 'The default open state when uncontrolled.',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'onOpenChange',
|
|
76
|
-
type: '(open: boolean) => void',
|
|
77
|
-
description: 'Event handler called when the open state changes.',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'openDelay',
|
|
81
|
-
type: 'number',
|
|
82
|
-
defaultValue: '700',
|
|
83
|
-
description: 'The duration from when the mouse enters the trigger until the hover card opens.',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'closeDelay',
|
|
87
|
-
type: 'number',
|
|
88
|
-
defaultValue: '300',
|
|
89
|
-
description: 'The duration from when the mouse leaves the trigger until the hover card closes.',
|
|
90
|
-
},
|
|
91
|
-
]}
|
|
92
|
-
/>
|
|
93
|
-
|
|
94
|
-
<h4 className="text-lg font-medium mt-6">HoverCardContent</h4>
|
|
95
|
-
<PropsTable
|
|
96
|
-
props={[
|
|
97
|
-
{
|
|
98
|
-
name: 'forceMount',
|
|
99
|
-
type: 'boolean',
|
|
100
|
-
description: 'Used to force mounting when more control is needed.',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'sideOffset',
|
|
104
|
-
type: 'number',
|
|
105
|
-
defaultValue: '4',
|
|
106
|
-
description: 'The distance in pixels from the trigger.',
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: 'align',
|
|
110
|
-
type: '"start" | "center" | "end"',
|
|
111
|
-
defaultValue: '"center"',
|
|
112
|
-
description: 'The preferred alignment against the trigger.',
|
|
113
|
-
},
|
|
114
|
-
]}
|
|
115
|
-
/>
|
|
116
|
-
</div>
|
|
117
|
-
</>
|
|
118
|
-
);
|
|
119
|
-
}
|