@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,293 +0,0 @@
|
|
|
1
|
-
export type DocPlatform = 'web' | 'native';
|
|
2
|
-
|
|
3
|
-
export interface DocItem {
|
|
4
|
-
title: string;
|
|
5
|
-
href: string; // URL path segment (e.g., 'button')
|
|
6
|
-
platforms: DocPlatform[];
|
|
7
|
-
description?: string;
|
|
8
|
-
component?: React.ComponentType<{ platform: DocPlatform }>; // The docs component
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface DocCategory {
|
|
12
|
-
title: string;
|
|
13
|
-
items: DocItem[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// We'll import the actual components in App.tsx to keep the config lightweight if we want
|
|
17
|
-
// but for now, to make the loop work, we might need to reference them differently
|
|
18
|
-
// or just export the structure and map it in App.tsx.
|
|
19
|
-
// Let's stick to a pure config structure and map in App.tsx to avoid circular deps if configs grow.
|
|
20
|
-
// Actually, mapping in App.tsx is safer.
|
|
21
|
-
|
|
22
|
-
export const docConfig: DocCategory[] = [
|
|
23
|
-
{
|
|
24
|
-
title: 'Getting Started',
|
|
25
|
-
items: [
|
|
26
|
-
{
|
|
27
|
-
title: 'Introduction',
|
|
28
|
-
href: 'getting-started',
|
|
29
|
-
platforms: ['web', 'native'],
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
title: 'Installation',
|
|
33
|
-
href: 'installation',
|
|
34
|
-
platforms: ['web', 'native'],
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
title: 'Theming',
|
|
38
|
-
href: 'theming',
|
|
39
|
-
platforms: ['web', 'native'],
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: 'Layout',
|
|
45
|
-
items: [
|
|
46
|
-
{
|
|
47
|
-
title: 'Aspect Ratio',
|
|
48
|
-
href: 'aspect-ratio',
|
|
49
|
-
platforms: ['web'],
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
title: 'Resizable',
|
|
53
|
-
href: 'resizable',
|
|
54
|
-
platforms: ['web'],
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
title: 'Scroll Area',
|
|
58
|
-
href: 'scroll-area',
|
|
59
|
-
platforms: ['web'],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: 'Separator',
|
|
63
|
-
href: 'separator',
|
|
64
|
-
platforms: ['web', 'native'],
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
title: 'Forms',
|
|
70
|
-
items: [
|
|
71
|
-
{
|
|
72
|
-
title: 'Button',
|
|
73
|
-
href: 'button',
|
|
74
|
-
platforms: ['web', 'native'],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
title: 'Checkbox',
|
|
78
|
-
href: 'checkbox',
|
|
79
|
-
platforms: ['web', 'native'],
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
title: 'Form',
|
|
83
|
-
href: 'form',
|
|
84
|
-
platforms: ['web'],
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
title: 'Input',
|
|
88
|
-
href: 'input',
|
|
89
|
-
platforms: ['web', 'native'],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
title: 'Label',
|
|
93
|
-
href: 'label',
|
|
94
|
-
platforms: ['web', 'native'],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
title: 'Radio Group',
|
|
98
|
-
href: 'radio-group',
|
|
99
|
-
platforms: ['web', 'native'],
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
title: 'Select',
|
|
103
|
-
href: 'select',
|
|
104
|
-
platforms: ['web', 'native'],
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
title: 'Slider',
|
|
108
|
-
href: 'slider',
|
|
109
|
-
platforms: ['web'],
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
title: 'Switch',
|
|
113
|
-
href: 'switch',
|
|
114
|
-
platforms: ['web', 'native'],
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
title: 'Textarea',
|
|
118
|
-
href: 'textarea',
|
|
119
|
-
platforms: ['web', 'native'],
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
title: 'Toggle',
|
|
123
|
-
href: 'toggle',
|
|
124
|
-
platforms: ['web', 'native'],
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
title: 'Toggle Group',
|
|
128
|
-
href: 'toggle-group',
|
|
129
|
-
platforms: ['web', 'native'],
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
title: 'Data Display',
|
|
135
|
-
items: [
|
|
136
|
-
{
|
|
137
|
-
title: 'Accordion',
|
|
138
|
-
href: 'accordion',
|
|
139
|
-
platforms: ['web', 'native'],
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
title: 'Alert',
|
|
143
|
-
href: 'alert',
|
|
144
|
-
platforms: ['web', 'native'],
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
title: 'Avatar',
|
|
148
|
-
href: 'avatar',
|
|
149
|
-
platforms: ['web', 'native'],
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
title: 'Badge',
|
|
153
|
-
href: 'badge',
|
|
154
|
-
platforms: ['web', 'native'],
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
title: 'Calendar',
|
|
158
|
-
href: 'calendar',
|
|
159
|
-
platforms: ['web'],
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
title: 'Card',
|
|
163
|
-
href: 'card',
|
|
164
|
-
platforms: ['web', 'native'],
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
title: 'Carousel',
|
|
168
|
-
href: 'carousel',
|
|
169
|
-
platforms: ['web'],
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
title: 'Chart',
|
|
173
|
-
href: 'chart',
|
|
174
|
-
platforms: ['web'],
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
title: 'Collapsible',
|
|
178
|
-
href: 'collapsible',
|
|
179
|
-
platforms: ['web', 'native'],
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
title: 'Table',
|
|
183
|
-
href: 'table',
|
|
184
|
-
platforms: ['web', 'native'],
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
title: 'Feedback',
|
|
190
|
-
items: [
|
|
191
|
-
{
|
|
192
|
-
title: 'Alert Dialog',
|
|
193
|
-
href: 'alert-dialog',
|
|
194
|
-
platforms: ['web', 'native'],
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
title: 'Dialog',
|
|
198
|
-
href: 'dialog',
|
|
199
|
-
platforms: ['web', 'native'],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
title: 'Hover Card',
|
|
203
|
-
href: 'hover-card',
|
|
204
|
-
platforms: ['web'],
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
title: 'Popover',
|
|
208
|
-
href: 'popover',
|
|
209
|
-
platforms: ['web'],
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
title: 'Progress',
|
|
213
|
-
href: 'progress',
|
|
214
|
-
platforms: ['web'],
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
title: 'Skeleton',
|
|
218
|
-
href: 'skeleton',
|
|
219
|
-
platforms: ['web', 'native'],
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
title: 'Sonner',
|
|
223
|
-
href: 'sonner',
|
|
224
|
-
platforms: ['web'],
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
title: 'Toast',
|
|
228
|
-
href: 'toast',
|
|
229
|
-
platforms: ['web', 'native'],
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
title: 'Tooltip',
|
|
233
|
-
href: 'tooltip',
|
|
234
|
-
platforms: ['web', 'native'],
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
title: 'Navigation',
|
|
240
|
-
items: [
|
|
241
|
-
{
|
|
242
|
-
title: 'Breadcrumb',
|
|
243
|
-
href: 'breadcrumb',
|
|
244
|
-
platforms: ['web'],
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
title: 'Command',
|
|
248
|
-
href: 'command',
|
|
249
|
-
platforms: ['web'],
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
title: 'Context Menu',
|
|
253
|
-
href: 'context-menu',
|
|
254
|
-
platforms: ['web'],
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
title: 'Drawer',
|
|
258
|
-
href: 'drawer',
|
|
259
|
-
platforms: ['web'],
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
title: 'Dropdown Menu',
|
|
263
|
-
href: 'dropdown-menu',
|
|
264
|
-
platforms: ['web'],
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
title: 'Menubar',
|
|
268
|
-
href: 'menubar',
|
|
269
|
-
platforms: ['web'],
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
title: 'Navigation Menu',
|
|
273
|
-
href: 'navigation-menu',
|
|
274
|
-
platforms: ['web'],
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
title: 'Pagination',
|
|
278
|
-
href: 'pagination',
|
|
279
|
-
platforms: ['web'],
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
title: 'Sheet',
|
|
283
|
-
href: 'sheet',
|
|
284
|
-
platforms: ['web', 'native'],
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
title: 'Tabs',
|
|
288
|
-
href: 'tabs',
|
|
289
|
-
platforms: ['web', 'native'],
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
},
|
|
293
|
-
];
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
@import 'tailwindcss';
|
|
2
|
-
@source "../../../packages/ui-web/src/**/*.{js,ts,jsx,tsx}";
|
|
3
|
-
@source "../../../packages/ui-core/src/**/*.{js,ts,jsx,tsx}";
|
|
4
|
-
|
|
5
|
-
@theme {
|
|
6
|
-
/* Border radius */
|
|
7
|
-
--radius-lg: 0.5rem;
|
|
8
|
-
--radius-md: calc(var(--radius-lg) - 2px);
|
|
9
|
-
--radius-sm: calc(var(--radius-lg) - 4px);
|
|
10
|
-
|
|
11
|
-
/* Container */
|
|
12
|
-
--container-2xl: 1400px;
|
|
13
|
-
|
|
14
|
-
/* Animations */
|
|
15
|
-
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
16
|
-
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes accordion-down {
|
|
20
|
-
from {
|
|
21
|
-
height: 0;
|
|
22
|
-
}
|
|
23
|
-
to {
|
|
24
|
-
height: var(--radix-accordion-content-height);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@keyframes accordion-up {
|
|
29
|
-
from {
|
|
30
|
-
height: var(--radix-accordion-content-height);
|
|
31
|
-
}
|
|
32
|
-
to {
|
|
33
|
-
height: 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@layer base {
|
|
38
|
-
/* @tokens-start */
|
|
39
|
-
:root {
|
|
40
|
-
--background: 0 0% 96%;
|
|
41
|
-
--foreground: 222 47% 11%;
|
|
42
|
-
--card: 0 0% 100%;
|
|
43
|
-
--card-foreground: 222 47% 11%;
|
|
44
|
-
--popover: 0 0% 100%;
|
|
45
|
-
--popover-foreground: 222 47% 11%;
|
|
46
|
-
--primary: 225 73% 57%;
|
|
47
|
-
--primary-foreground: 0 0% 100%;
|
|
48
|
-
--secondary: 93 28% 54%;
|
|
49
|
-
--secondary-foreground: 0 0% 100%;
|
|
50
|
-
--muted: 0 0% 92%;
|
|
51
|
-
--muted-foreground: 215 16% 47%;
|
|
52
|
-
--accent: 0 0% 88%;
|
|
53
|
-
--accent-foreground: 222 47% 11%;
|
|
54
|
-
--destructive: 0 84.2% 60.2%;
|
|
55
|
-
--destructive-foreground: 0 0% 100%;
|
|
56
|
-
--border: 0 0% 89%;
|
|
57
|
-
--input: 0 0% 89%;
|
|
58
|
-
--ring: 222 47% 11%;
|
|
59
|
-
--radius: 0.5rem;
|
|
60
|
-
|
|
61
|
-
/* Brand Tokens */
|
|
62
|
-
--brand-blue: 225 73% 57%;
|
|
63
|
-
--brand-green: 151 66% 27%;
|
|
64
|
-
--brand-floral-white: 40 100% 97%;
|
|
65
|
-
--neutral-white: 0 0% 100%;
|
|
66
|
-
--neutral-black: 0 0% 0%;
|
|
67
|
-
--neutral-gray50: 0 0% 96%;
|
|
68
|
-
--neutral-gray100: 0 0% 92%;
|
|
69
|
-
--neutral-gray200: 0 0% 89%;
|
|
70
|
-
--neutral-gray300: 0 0% 88%;
|
|
71
|
-
--neutral-gray400: 0 0% 70%;
|
|
72
|
-
--neutral-gray500: 215 16% 47%;
|
|
73
|
-
--neutral-gray600: 222 47% 11%;
|
|
74
|
-
--neutral-gray700: 0 0% 18%;
|
|
75
|
-
--neutral-gray800: 0 0% 15%;
|
|
76
|
-
--neutral-gray900: 0 0% 14%;
|
|
77
|
-
--neutral-gray950: 0 0% 11%;
|
|
78
|
-
--neutral-gray975: 0 0% 9%;
|
|
79
|
-
--neutral-gray990: 0 0% 6%;
|
|
80
|
-
--semantic-success: 93 28% 54%;
|
|
81
|
-
--semantic-success-dark: 96 44% 61%;
|
|
82
|
-
--semantic-destructive: 0 84.2% 60.2%;
|
|
83
|
-
--semantic-destructive-dark: 0 62.8% 30.6%;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.dark {
|
|
87
|
-
--background: 0 0% 9%;
|
|
88
|
-
--foreground: 0 0% 100%;
|
|
89
|
-
--card: 0 0% 14%;
|
|
90
|
-
--card-foreground: 0 0% 100%;
|
|
91
|
-
--popover: 0 0% 11%;
|
|
92
|
-
--popover-foreground: 0 0% 100%;
|
|
93
|
-
--primary: 227 96% 71%;
|
|
94
|
-
--primary-foreground: 0 0% 9%;
|
|
95
|
-
--secondary: 96 44% 61%;
|
|
96
|
-
--secondary-foreground: 0 0% 9%;
|
|
97
|
-
--muted: 0 0% 6%;
|
|
98
|
-
--muted-foreground: 0 0% 70%;
|
|
99
|
-
--accent: 0 0% 15%;
|
|
100
|
-
--accent-foreground: 0 0% 100%;
|
|
101
|
-
--destructive: 0 62.8% 30.6%;
|
|
102
|
-
--destructive-foreground: 0 0% 100%;
|
|
103
|
-
--border: 0 0% 18%;
|
|
104
|
-
--input: 0 0% 18%;
|
|
105
|
-
--ring: 0 0% 90%;
|
|
106
|
-
--radius: 0.5rem;
|
|
107
|
-
}
|
|
108
|
-
/* @tokens-end */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@layer base {
|
|
112
|
-
* {
|
|
113
|
-
@apply border-border;
|
|
114
|
-
}
|
|
115
|
-
body {
|
|
116
|
-
@apply bg-background text-foreground;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* Tailwind v4 color utilities - map CSS vars to theme */
|
|
121
|
-
@theme {
|
|
122
|
-
--color-background: hsl(var(--background));
|
|
123
|
-
--color-foreground: hsl(var(--foreground));
|
|
124
|
-
--color-card: hsl(var(--card));
|
|
125
|
-
--color-card-foreground: hsl(var(--card-foreground));
|
|
126
|
-
--color-popover: hsl(var(--popover));
|
|
127
|
-
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
128
|
-
--color-primary: hsl(var(--primary));
|
|
129
|
-
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
130
|
-
--color-secondary: hsl(var(--secondary));
|
|
131
|
-
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
132
|
-
--color-muted: hsl(var(--muted));
|
|
133
|
-
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
134
|
-
--color-accent: hsl(var(--accent));
|
|
135
|
-
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
136
|
-
--color-destructive: hsl(var(--destructive));
|
|
137
|
-
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
138
|
-
--color-border: hsl(var(--border));
|
|
139
|
-
--color-input: hsl(var(--input));
|
|
140
|
-
--color-ring: hsl(var(--ring));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/* Sticky footer support for ScrollArea */
|
|
144
|
-
[data-radix-scroll-area-viewport] > div {
|
|
145
|
-
min-height: 100%;
|
|
146
|
-
display: flex !important;
|
|
147
|
-
flex-direction: column;
|
|
148
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface DocMetadata {
|
|
4
|
-
title: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function useDocMetadata({ title, description }: DocMetadata) {
|
|
9
|
-
React.useEffect(() => {
|
|
10
|
-
const previousTitle = document.title;
|
|
11
|
-
const previousDescription = document.querySelector('meta[name="description"]')?.getAttribute('content');
|
|
12
|
-
|
|
13
|
-
// Update title
|
|
14
|
-
document.title = `${title} | GV Tech Design System`;
|
|
15
|
-
|
|
16
|
-
// Update description
|
|
17
|
-
if (description) {
|
|
18
|
-
let metaDescription = document.querySelector('meta[name="description"]');
|
|
19
|
-
if (!metaDescription) {
|
|
20
|
-
metaDescription = document.createElement('meta');
|
|
21
|
-
metaDescription.setAttribute('name', 'description');
|
|
22
|
-
document.head.appendChild(metaDescription);
|
|
23
|
-
}
|
|
24
|
-
metaDescription.setAttribute('content', description);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return () => {
|
|
28
|
-
document.title = previousTitle;
|
|
29
|
-
if (previousDescription) {
|
|
30
|
-
document.querySelector('meta[name="description"]')?.setAttribute('content', previousDescription);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}, [title, description]);
|
|
34
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React, { createContext, ReactNode, useCallback, useContext, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
export const PACKAGEMANAGERS = ['npm', 'yarn', 'pnpm'] as const;
|
|
4
|
-
export type PackageManager = (typeof PACKAGEMANAGERS)[number];
|
|
5
|
-
|
|
6
|
-
interface PackageManagerContextType {
|
|
7
|
-
packageManager: PackageManager;
|
|
8
|
-
setPackageManager: (pm: PackageManager) => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const PackageManagerContext = createContext<PackageManagerContextType | undefined>(undefined);
|
|
12
|
-
|
|
13
|
-
export function PackageManagerProvider({ children }: { children: ReactNode }): React.ReactElement {
|
|
14
|
-
const [packageManager, setPackageManagerState] = useState<PackageManager>(() => {
|
|
15
|
-
if (typeof window !== 'undefined') {
|
|
16
|
-
const saved = localStorage.getItem('gv-docs-package-manager');
|
|
17
|
-
if (saved === 'npm' || saved === 'yarn' || saved === 'pnpm') {
|
|
18
|
-
return saved;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return 'yarn';
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
const setPackageManager = useCallback((pm: PackageManager) => {
|
|
25
|
-
setPackageManagerState(pm);
|
|
26
|
-
localStorage.setItem('gv-docs-package-manager', pm);
|
|
27
|
-
}, []);
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<PackageManagerContext.Provider value={{ packageManager, setPackageManager }}>
|
|
31
|
-
{children}
|
|
32
|
-
</PackageManagerContext.Provider>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function usePackageManager() {
|
|
37
|
-
const context = useContext(PackageManagerContext);
|
|
38
|
-
if (context === undefined) {
|
|
39
|
-
throw new Error('usePackageManager must be used within a PackageManagerProvider');
|
|
40
|
-
}
|
|
41
|
-
return context;
|
|
42
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as ReactNativeWeb from 'react-native-web';
|
|
2
|
-
|
|
3
|
-
// Export everything from react-native-web
|
|
4
|
-
export * from 'react-native-web';
|
|
5
|
-
|
|
6
|
-
// Add missing exports that some native packages expect
|
|
7
|
-
export const TurboModuleRegistry = {
|
|
8
|
-
get: () => null,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// Some versions/exports of react-native-web might not include these
|
|
12
|
-
export const UnimplementedView = ReactNativeWeb.UnimplementedView || (() => null);
|
|
13
|
-
export const ViewPropTypes = ReactNativeWeb.ViewPropTypes || {};
|
|
14
|
-
|
|
15
|
-
// Default export
|
|
16
|
-
// Create a default export that functions as both the module object and a callable function
|
|
17
|
-
// This is necessary because some libraries (like lucide-react-native) might be transpiled in a way
|
|
18
|
-
// that attempts to call the default import as a function.
|
|
19
|
-
const ReactNative = () => {
|
|
20
|
-
return null;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
// Copy all properties from react-native-web to our function
|
|
24
|
-
Object.assign(ReactNative, ReactNativeWeb);
|
|
25
|
-
|
|
26
|
-
// Add our custom/missing exports
|
|
27
|
-
Object.assign(ReactNative, {
|
|
28
|
-
TurboModuleRegistry,
|
|
29
|
-
UnimplementedView,
|
|
30
|
-
ViewPropTypes,
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// Default export
|
|
34
|
-
export default ReactNative;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ComponentShowcase } from '@/components/docs/ComponentShowcase';
|
|
2
|
-
import { PropsTable } from '@/components/docs/PropsTable';
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
export function AccordionDocs() {
|
|
6
|
-
return (
|
|
7
|
-
<>
|
|
8
|
-
<ComponentShowcase
|
|
9
|
-
title="Example"
|
|
10
|
-
description="A simple accordion with three items."
|
|
11
|
-
code={`import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@gv-tech/design-system";
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18
|
-
const isNative = true as boolean;
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25
|
-
const platform = 'native' as string;
|
|
26
|
-
|
|
27
|
-
<Accordion type="multiple" collapsible defaultValue={["item-1"]}>
|
|
28
|
-
<AccordionItem value="item-1">
|
|
29
|
-
<AccordionTrigger>Is it accessible?</AccordionTrigger>
|
|
30
|
-
<AccordionContent>
|
|
31
|
-
Yes. It adheres to the WAI-ARIA design pattern.
|
|
32
|
-
</AccordionContent>
|
|
33
|
-
</AccordionItem>
|
|
34
|
-
<AccordionItem value="item-2">
|
|
35
|
-
<AccordionTrigger>Is it styled?</AccordionTrigger>
|
|
36
|
-
<AccordionContent>
|
|
37
|
-
Yes. It comes with default styles that matches the other components' aesthetic.
|
|
38
|
-
</AccordionContent>
|
|
39
|
-
</AccordionItem>
|
|
40
|
-
<AccordionItem value="item-3">
|
|
41
|
-
<AccordionTrigger>Is it animated?</AccordionTrigger>
|
|
42
|
-
<AccordionContent>
|
|
43
|
-
Yes. It's animated by default, but you can disable it if you prefer.
|
|
44
|
-
</AccordionContent>
|
|
45
|
-
</AccordionItem>
|
|
46
|
-
</Accordion>`}
|
|
47
|
-
/>
|
|
48
|
-
|
|
49
|
-
<div className="space-y-4">
|
|
50
|
-
<h3 className="text-xl font-semibold">Props</h3>
|
|
51
|
-
<PropsTable
|
|
52
|
-
props={[
|
|
53
|
-
{
|
|
54
|
-
name: 'type',
|
|
55
|
-
type: '"single" | "multiple"',
|
|
56
|
-
defaultValue: '"single"',
|
|
57
|
-
description: 'Whether one or multiple items can be opened at the same time.',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'collapsible',
|
|
61
|
-
type: 'boolean',
|
|
62
|
-
defaultValue: 'false',
|
|
63
|
-
description: 'When type is "single", allows closing content when clicking trigger for an open item.',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
name: 'defaultValue',
|
|
67
|
-
type: 'string | string[]',
|
|
68
|
-
description: 'The value of the item to expand by default.',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'value',
|
|
72
|
-
type: 'string | string[]',
|
|
73
|
-
description: 'The controlled value of the item(s) to expand.',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'onValueChange',
|
|
77
|
-
type: '(value: string | string[]) => void',
|
|
78
|
-
description: 'Event handler called when the expanded state of an item changes.',
|
|
79
|
-
},
|
|
80
|
-
]}
|
|
81
|
-
/>
|
|
82
|
-
</div>
|
|
83
|
-
</>
|
|
84
|
-
);
|
|
85
|
-
}
|