@gv-tech/design-system 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/.agent/skills/dogfood-components/SKILL.md +0 -34
- package/.agent/skills/maintain-component/SKILL.md +0 -77
- package/.agent/workflows/native-playground.md +0 -93
- package/.github/CODEOWNERS +0 -2
- package/.github/CONTRIBUTING.md +0 -42
- package/.github/FUNDING.yml +0 -4
- package/.github/PULL_REQUEST_TEMPLATE/build.md +0 -5
- package/.github/PULL_REQUEST_TEMPLATE/standard.md +0 -3
- package/.github/RELEASING.md +0 -37
- package/.github/copilot-instructions.md +0 -61
- package/.github/workflows/ci.yml +0 -91
- package/.github/workflows/codeql-analysis.yml +0 -34
- package/.github/workflows/release-please.yml +0 -79
- package/.husky/pre-commit +0 -1
- package/.prettierignore +0 -3
- package/.release-please-manifest.json +0 -9
- package/.tool-versions +0 -1
- package/.vscode/launch.json +0 -22
- package/.vscode/mcp.json +0 -8
- package/.vscode/settings.json +0 -30
- package/.yarnrc.yml +0 -7
- package/CHANGELOG.md +0 -679
- package/SECURITY.md +0 -9
- package/apps/.gitkeep +0 -0
- package/apps/native-playground/CHANGELOG.md +0 -8
- package/apps/native-playground/app.json +0 -37
- package/apps/native-playground/assets/fonts/.gitkeep +0 -0
- package/apps/native-playground/assets/images/adaptive-icon.png +0 -0
- package/apps/native-playground/assets/images/favicon.png +0 -0
- package/apps/native-playground/assets/images/icon.png +0 -0
- package/apps/native-playground/assets/images/splash-icon.png +0 -0
- package/apps/native-playground/babel.config.js +0 -6
- package/apps/native-playground/eas.json +0 -25
- package/apps/native-playground/index.js +0 -8
- package/apps/native-playground/metro.config.js +0 -26
- package/apps/native-playground/nativewind-env.d.ts +0 -1
- package/apps/native-playground/package.json +0 -23
- package/apps/native-playground/project.json +0 -15
- package/apps/native-playground/src/app/App.tsx +0 -842
- package/apps/native-playground/src/global.css +0 -49
- package/apps/native-playground/tailwind.config.js +0 -49
- package/apps/native-playground/tsconfig.app.json +0 -24
- package/apps/native-playground/tsconfig.json +0 -23
- package/apps/native-playground/tsconfig.spec.json +0 -24
- package/apps/playground-web/CHANGELOG.md +0 -8
- package/apps/playground-web/index.html +0 -13
- package/apps/playground-web/package.json +0 -31
- package/apps/playground-web/public/favicon.png +0 -0
- package/apps/playground-web/public/index.demo.html +0 -40
- package/apps/playground-web/public/logo192.png +0 -0
- package/apps/playground-web/public/logo512.png +0 -0
- package/apps/playground-web/public/manifest.json +0 -25
- package/apps/playground-web/public/robots.txt +0 -2
- package/apps/playground-web/src/App.tsx +0 -179
- package/apps/playground-web/src/components/docs/CodeBlock.tsx +0 -34
- package/apps/playground-web/src/components/docs/CombinedDocsLayout.tsx +0 -103
- package/apps/playground-web/src/components/docs/ComponentShowcase.tsx +0 -96
- package/apps/playground-web/src/components/docs/ErrorBoundary.tsx +0 -55
- package/apps/playground-web/src/components/docs/Footer.tsx +0 -146
- package/apps/playground-web/src/components/docs/PropsTable.tsx +0 -43
- package/apps/playground-web/src/components/docs/Search.tsx +0 -75
- package/apps/playground-web/src/components/docs/Sidebar.tsx +0 -77
- package/apps/playground-web/src/components/docs/ThemeToggle.tsx +0 -19
- package/apps/playground-web/src/components/docs/index.ts +0 -9
- package/apps/playground-web/src/config/docs.ts +0 -293
- package/apps/playground-web/src/globals.css +0 -148
- package/apps/playground-web/src/hooks/useDocMetadata.ts +0 -34
- package/apps/playground-web/src/hooks/usePackageManager.tsx +0 -42
- package/apps/playground-web/src/lib/react-native-shim.js +0 -34
- package/apps/playground-web/src/main.tsx +0 -11
- package/apps/playground-web/src/pages/index.ts +0 -4
- package/apps/playground-web/src/pages/native/AccordionDocs.tsx +0 -85
- package/apps/playground-web/src/pages/native/AlertDialogDocs.tsx +0 -128
- package/apps/playground-web/src/pages/native/AlertDocs.tsx +0 -89
- package/apps/playground-web/src/pages/native/AspectRatioDocs.tsx +0 -52
- package/apps/playground-web/src/pages/native/AvatarDocs.tsx +0 -92
- package/apps/playground-web/src/pages/native/BadgeDocs.tsx +0 -63
- package/apps/playground-web/src/pages/native/BreadcrumbDocs.tsx +0 -71
- package/apps/playground-web/src/pages/native/ButtonDocs.tsx +0 -103
- package/apps/playground-web/src/pages/native/CalendarDocs.tsx +0 -74
- package/apps/playground-web/src/pages/native/CardDocs.tsx +0 -75
- package/apps/playground-web/src/pages/native/CarouselDocs.tsx +0 -113
- package/apps/playground-web/src/pages/native/ChartDocs.tsx +0 -115
- package/apps/playground-web/src/pages/native/CheckboxDocs.tsx +0 -38
- package/apps/playground-web/src/pages/native/CollapsibleDocs.tsx +0 -89
- package/apps/playground-web/src/pages/native/CommandDocs.tsx +0 -170
- package/apps/playground-web/src/pages/native/ContextMenuDocs.tsx +0 -121
- package/apps/playground-web/src/pages/native/DialogDocs.tsx +0 -132
- package/apps/playground-web/src/pages/native/DrawerDocs.tsx +0 -158
- package/apps/playground-web/src/pages/native/DropdownMenuDocs.tsx +0 -168
- package/apps/playground-web/src/pages/native/HoverCardDocs.tsx +0 -119
- package/apps/playground-web/src/pages/native/InputDocs.tsx +0 -86
- package/apps/playground-web/src/pages/native/LabelDocs.tsx +0 -55
- package/apps/playground-web/src/pages/native/MenubarDocs.tsx +0 -197
- package/apps/playground-web/src/pages/native/NavigationMenuDocs.tsx +0 -190
- package/apps/playground-web/src/pages/native/PaginationDocs.tsx +0 -70
- package/apps/playground-web/src/pages/native/PopoverDocs.tsx +0 -156
- package/apps/playground-web/src/pages/native/ProgressDocs.tsx +0 -61
- package/apps/playground-web/src/pages/native/RadioGroupDocs.tsx +0 -125
- package/apps/playground-web/src/pages/native/ResizableDocs.tsx +0 -118
- package/apps/playground-web/src/pages/native/ScrollAreaDocs.tsx +0 -92
- package/apps/playground-web/src/pages/native/SearchDocs.tsx +0 -150
- package/apps/playground-web/src/pages/native/SelectDocs.tsx +0 -141
- package/apps/playground-web/src/pages/native/SeparatorDocs.tsx +0 -72
- package/apps/playground-web/src/pages/native/SheetDocs.tsx +0 -140
- package/apps/playground-web/src/pages/native/SkeletonDocs.tsx +0 -44
- package/apps/playground-web/src/pages/native/SliderDocs.tsx +0 -118
- package/apps/playground-web/src/pages/native/SonnerDocs.tsx +0 -111
- package/apps/playground-web/src/pages/native/SwitchDocs.tsx +0 -87
- package/apps/playground-web/src/pages/native/TableDocs.tsx +0 -67
- package/apps/playground-web/src/pages/native/TabsDocs.tsx +0 -175
- package/apps/playground-web/src/pages/native/TextareaDocs.tsx +0 -61
- package/apps/playground-web/src/pages/native/ThemeToggleDocs.tsx +0 -288
- package/apps/playground-web/src/pages/native/ToastDocs.tsx +0 -124
- package/apps/playground-web/src/pages/native/ToggleDocs.tsx +0 -81
- package/apps/playground-web/src/pages/native/ToggleGroupDocs.tsx +0 -128
- package/apps/playground-web/src/pages/native/TooltipDocs.tsx +0 -140
- package/apps/playground-web/src/pages/native/index.ts +0 -47
- package/apps/playground-web/src/pages/shared/ColorTokensDocs.tsx +0 -234
- package/apps/playground-web/src/pages/shared/GettingStarted.tsx +0 -413
- package/apps/playground-web/src/pages/web/AccordionDocs.tsx +0 -194
- package/apps/playground-web/src/pages/web/AlertDialogDocs.tsx +0 -157
- package/apps/playground-web/src/pages/web/AlertDocs.tsx +0 -110
- package/apps/playground-web/src/pages/web/AspectRatioDocs.tsx +0 -94
- package/apps/playground-web/src/pages/web/AvatarDocs.tsx +0 -81
- package/apps/playground-web/src/pages/web/BadgeDocs.tsx +0 -66
- package/apps/playground-web/src/pages/web/BreadcrumbDocs.tsx +0 -93
- package/apps/playground-web/src/pages/web/ButtonDocs.tsx +0 -129
- package/apps/playground-web/src/pages/web/CalendarDocs.tsx +0 -78
- package/apps/playground-web/src/pages/web/CardDocs.tsx +0 -115
- package/apps/playground-web/src/pages/web/CarouselDocs.tsx +0 -176
- package/apps/playground-web/src/pages/web/ChartDocs.tsx +0 -151
- package/apps/playground-web/src/pages/web/CheckboxDocs.tsx +0 -95
- package/apps/playground-web/src/pages/web/CollapsibleDocs.tsx +0 -111
- package/apps/playground-web/src/pages/web/CommandDocs.tsx +0 -219
- package/apps/playground-web/src/pages/web/ContextMenuDocs.tsx +0 -164
- package/apps/playground-web/src/pages/web/DialogDocs.tsx +0 -175
- package/apps/playground-web/src/pages/web/DrawerDocs.tsx +0 -283
- package/apps/playground-web/src/pages/web/DropdownMenuDocs.tsx +0 -319
- package/apps/playground-web/src/pages/web/FormDocs.tsx +0 -175
- package/apps/playground-web/src/pages/web/HoverCardDocs.tsx +0 -151
- package/apps/playground-web/src/pages/web/InputDocs.tsx +0 -118
- package/apps/playground-web/src/pages/web/LabelDocs.tsx +0 -59
- package/apps/playground-web/src/pages/web/MenubarDocs.tsx +0 -296
- package/apps/playground-web/src/pages/web/NavigationMenuDocs.tsx +0 -263
- package/apps/playground-web/src/pages/web/PaginationDocs.tsx +0 -102
- package/apps/playground-web/src/pages/web/PopoverDocs.tsx +0 -189
- package/apps/playground-web/src/pages/web/ProgressDocs.tsx +0 -70
- package/apps/playground-web/src/pages/web/RadioGroupDocs.tsx +0 -137
- package/apps/playground-web/src/pages/web/ResizableDocs.tsx +0 -143
- package/apps/playground-web/src/pages/web/ScrollAreaDocs.tsx +0 -107
- package/apps/playground-web/src/pages/web/SearchDocs.tsx +0 -203
- package/apps/playground-web/src/pages/web/SelectDocs.tsx +0 -164
- package/apps/playground-web/src/pages/web/SeparatorDocs.tsx +0 -88
- package/apps/playground-web/src/pages/web/SheetDocs.tsx +0 -186
- package/apps/playground-web/src/pages/web/SkeletonDocs.tsx +0 -53
- package/apps/playground-web/src/pages/web/SliderDocs.tsx +0 -119
- package/apps/playground-web/src/pages/web/SonnerDocs.tsx +0 -126
- package/apps/playground-web/src/pages/web/SwitchDocs.tsx +0 -91
- package/apps/playground-web/src/pages/web/TableDocs.tsx +0 -148
- package/apps/playground-web/src/pages/web/TabsDocs.tsx +0 -241
- package/apps/playground-web/src/pages/web/TextareaDocs.tsx +0 -65
- package/apps/playground-web/src/pages/web/ThemeToggleDocs.tsx +0 -303
- package/apps/playground-web/src/pages/web/ToastDocs.tsx +0 -149
- package/apps/playground-web/src/pages/web/ToggleDocs.tsx +0 -85
- package/apps/playground-web/src/pages/web/ToggleGroupDocs.tsx +0 -140
- package/apps/playground-web/src/pages/web/TooltipDocs.tsx +0 -150
- package/apps/playground-web/src/pages/web/index.ts +0 -47
- package/apps/playground-web/src/routes/doc-routes.tsx +0 -363
- package/apps/playground-web/tailwind.config.js +0 -47
- package/apps/playground-web/tsconfig.app.json +0 -16
- package/apps/playground-web/tsconfig.json +0 -4
- package/apps/playground-web/tsconfig.node.json +0 -13
- package/apps/playground-web/vite.config.ts +0 -41
- package/components.json +0 -20
- package/docs/architecture-pivot.md +0 -165
- package/docs/native-setup-decision.md +0 -57
- package/docs/phase-1-tracker.md +0 -144
- package/docs/release-tooling-evaluation.md +0 -67
- package/docs/universal-implementation.md +0 -195
- package/docs/update-plan.md +0 -268
- package/eslint.config.mjs +0 -13
- package/nx.json +0 -50
- package/packages/.gitkeep +0 -0
- package/packages/design-tokens/CHANGELOG.md +0 -8
- package/packages/design-tokens/package.json +0 -20
- package/packages/design-tokens/src/index.ts +0 -35
- package/packages/design-tokens/src/palette.ts +0 -36
- package/packages/design-tokens/src/radii.ts +0 -26
- package/packages/design-tokens/src/shadows.ts +0 -16
- package/packages/design-tokens/src/spacing.ts +0 -33
- package/packages/design-tokens/src/theme.ts +0 -54
- package/packages/design-tokens/src/typography.ts +0 -36
- package/packages/design-tokens/tsconfig.json +0 -17
- package/packages/ui-core/CHANGELOG.md +0 -8
- package/packages/ui-core/package.json +0 -40
- package/packages/ui-core/src/contracts/accordion.ts +0 -23
- package/packages/ui-core/src/contracts/alert-dialog.ts +0 -48
- package/packages/ui-core/src/contracts/alert.ts +0 -17
- package/packages/ui-core/src/contracts/aspect-ratio.ts +0 -7
- package/packages/ui-core/src/contracts/avatar.ts +0 -17
- package/packages/ui-core/src/contracts/badge.ts +0 -7
- package/packages/ui-core/src/contracts/breadcrumb.ts +0 -37
- package/packages/ui-core/src/contracts/button.ts +0 -17
- package/packages/ui-core/src/contracts/calendar.ts +0 -4
- package/packages/ui-core/src/contracts/card.ts +0 -11
- package/packages/ui-core/src/contracts/carousel.ts +0 -29
- package/packages/ui-core/src/contracts/chart.ts +0 -31
- package/packages/ui-core/src/contracts/checkbox.ts +0 -11
- package/packages/ui-core/src/contracts/collapsible.ts +0 -21
- package/packages/ui-core/src/contracts/command.ts +0 -43
- package/packages/ui-core/src/contracts/context-menu.ts +0 -78
- package/packages/ui-core/src/contracts/dialog.ts +0 -29
- package/packages/ui-core/src/contracts/drawer.ts +0 -39
- package/packages/ui-core/src/contracts/dropdown-menu.ts +0 -87
- package/packages/ui-core/src/contracts/form.ts +0 -29
- package/packages/ui-core/src/contracts/hover-card.ts +0 -21
- package/packages/ui-core/src/contracts/input.ts +0 -11
- package/packages/ui-core/src/contracts/label.ts +0 -7
- package/packages/ui-core/src/contracts/menubar.ts +0 -86
- package/packages/ui-core/src/contracts/navigation-menu.ts +0 -55
- package/packages/ui-core/src/contracts/pagination.ts +0 -38
- package/packages/ui-core/src/contracts/popover.ts +0 -28
- package/packages/ui-core/src/contracts/progress.ts +0 -4
- package/packages/ui-core/src/contracts/radio.ts +0 -16
- package/packages/ui-core/src/contracts/resizable.ts +0 -36
- package/packages/ui-core/src/contracts/scroll-area.ts +0 -15
- package/packages/ui-core/src/contracts/search.ts +0 -13
- package/packages/ui-core/src/contracts/select.ts +0 -64
- package/packages/ui-core/src/contracts/separator.ts +0 -5
- package/packages/ui-core/src/contracts/sheet.ts +0 -58
- package/packages/ui-core/src/contracts/skeleton.ts +0 -6
- package/packages/ui-core/src/contracts/slider.ts +0 -15
- package/packages/ui-core/src/contracts/sonner.ts +0 -15
- package/packages/ui-core/src/contracts/switch.ts +0 -11
- package/packages/ui-core/src/contracts/table.ts +0 -41
- package/packages/ui-core/src/contracts/tabs.ts +0 -31
- package/packages/ui-core/src/contracts/text.ts +0 -12
- package/packages/ui-core/src/contracts/textarea.ts +0 -7
- package/packages/ui-core/src/contracts/theme-provider.ts +0 -14
- package/packages/ui-core/src/contracts/theme-toggle.ts +0 -15
- package/packages/ui-core/src/contracts/toast.ts +0 -15
- package/packages/ui-core/src/contracts/toaster.ts +0 -3
- package/packages/ui-core/src/contracts/toggle-group.ts +0 -23
- package/packages/ui-core/src/contracts/toggle.ts +0 -49
- package/packages/ui-core/src/contracts/tooltip.ts +0 -28
- package/packages/ui-core/src/index.ts +0 -327
- package/packages/ui-core/tsconfig.json +0 -18
- package/packages/ui-native/CHANGELOG.md +0 -8
- package/packages/ui-native/package.json +0 -76
- package/packages/ui-native/src/accordion.tsx +0 -93
- package/packages/ui-native/src/alert-dialog.tsx +0 -123
- package/packages/ui-native/src/alert.tsx +0 -50
- package/packages/ui-native/src/aspect-ratio.tsx +0 -9
- package/packages/ui-native/src/avatar.tsx +0 -38
- package/packages/ui-native/src/badge.tsx +0 -51
- package/packages/ui-native/src/breadcrumb.tsx +0 -9
- package/packages/ui-native/src/button.test.tsx +0 -27
- package/packages/ui-native/src/button.tsx +0 -75
- package/packages/ui-native/src/calendar.tsx +0 -9
- package/packages/ui-native/src/card.test.tsx +0 -33
- package/packages/ui-native/src/card.tsx +0 -56
- package/packages/ui-native/src/carousel.tsx +0 -9
- package/packages/ui-native/src/chart.tsx +0 -9
- package/packages/ui-native/src/checkbox.test.tsx +0 -58
- package/packages/ui-native/src/checkbox.tsx +0 -31
- package/packages/ui-native/src/collapsible.test.tsx +0 -50
- package/packages/ui-native/src/collapsible.tsx +0 -15
- package/packages/ui-native/src/command.tsx +0 -9
- package/packages/ui-native/src/context-menu.tsx +0 -9
- package/packages/ui-native/src/dialog.test.tsx +0 -91
- package/packages/ui-native/src/dialog.tsx +0 -121
- package/packages/ui-native/src/drawer.tsx +0 -9
- package/packages/ui-native/src/dropdown-menu.tsx +0 -9
- package/packages/ui-native/src/form.tsx +0 -9
- package/packages/ui-native/src/hover-card.tsx +0 -9
- package/packages/ui-native/src/index.ts +0 -209
- package/packages/ui-native/src/input.test.tsx +0 -27
- package/packages/ui-native/src/input.tsx +0 -27
- package/packages/ui-native/src/label.tsx +0 -29
- package/packages/ui-native/src/lib/render-native.tsx +0 -17
- package/packages/ui-native/src/lib/utils.ts +0 -6
- package/packages/ui-native/src/menubar.tsx +0 -9
- package/packages/ui-native/src/nativewind-env.d.ts +0 -1
- package/packages/ui-native/src/navigation-menu.tsx +0 -9
- package/packages/ui-native/src/pagination.tsx +0 -9
- package/packages/ui-native/src/popover.tsx +0 -9
- package/packages/ui-native/src/progress.tsx +0 -9
- package/packages/ui-native/src/radio-group.test.tsx +0 -77
- package/packages/ui-native/src/radio-group.tsx +0 -42
- package/packages/ui-native/src/resizable.tsx +0 -25
- package/packages/ui-native/src/scroll-area.tsx +0 -9
- package/packages/ui-native/src/search.tsx +0 -17
- package/packages/ui-native/src/select.tsx +0 -229
- package/packages/ui-native/src/separator.tsx +0 -20
- package/packages/ui-native/src/sheet.test.tsx +0 -93
- package/packages/ui-native/src/sheet.tsx +0 -127
- package/packages/ui-native/src/skeleton.test.tsx +0 -29
- package/packages/ui-native/src/skeleton.tsx +0 -31
- package/packages/ui-native/src/slider.tsx +0 -9
- package/packages/ui-native/src/sonner.tsx +0 -9
- package/packages/ui-native/src/switch.tsx +0 -34
- package/packages/ui-native/src/table.tsx +0 -73
- package/packages/ui-native/src/tabs.tsx +0 -74
- package/packages/ui-native/src/text.test.tsx +0 -24
- package/packages/ui-native/src/text.tsx +0 -43
- package/packages/ui-native/src/textarea.test.tsx +0 -27
- package/packages/ui-native/src/textarea.tsx +0 -29
- package/packages/ui-native/src/theme-provider.tsx +0 -6
- package/packages/ui-native/src/theme-toggle.tsx +0 -11
- package/packages/ui-native/src/toast.test.tsx +0 -61
- package/packages/ui-native/src/toast.tsx +0 -88
- package/packages/ui-native/src/toaster.tsx +0 -9
- package/packages/ui-native/src/toggle-group.tsx +0 -78
- package/packages/ui-native/src/toggle.tsx +0 -35
- package/packages/ui-native/src/tooltip.tsx +0 -44
- package/packages/ui-native/tsconfig.json +0 -23
- package/packages/ui-native/vite.config.ts +0 -17
- package/packages/ui-web/CHANGELOG.md +0 -8
- package/packages/ui-web/package.json +0 -84
- package/packages/ui-web/src/accordion.test.tsx +0 -86
- package/packages/ui-web/src/accordion.tsx +0 -58
- package/packages/ui-web/src/alert-dialog.test.tsx +0 -91
- package/packages/ui-web/src/alert-dialog.tsx +0 -121
- package/packages/ui-web/src/alert.test.tsx +0 -47
- package/packages/ui-web/src/alert.tsx +0 -49
- package/packages/ui-web/src/aspect-ratio.test.tsx +0 -34
- package/packages/ui-web/src/aspect-ratio.tsx +0 -7
- package/packages/ui-web/src/avatar.test.tsx +0 -33
- package/packages/ui-web/src/avatar.tsx +0 -40
- package/packages/ui-web/src/badge.test.tsx +0 -24
- package/packages/ui-web/src/badge.tsx +0 -34
- package/packages/ui-web/src/breadcrumb.tsx +0 -105
- package/packages/ui-web/src/button.test.tsx +0 -62
- package/packages/ui-web/src/button.tsx +0 -47
- package/packages/ui-web/src/calendar.test.tsx +0 -23
- package/packages/ui-web/src/calendar.tsx +0 -163
- package/packages/ui-web/src/card.test.tsx +0 -35
- package/packages/ui-web/src/card.tsx +0 -46
- package/packages/ui-web/src/carousel.test.tsx +0 -37
- package/packages/ui-web/src/carousel.tsx +0 -234
- package/packages/ui-web/src/chart.test.tsx +0 -62
- package/packages/ui-web/src/chart.tsx +0 -296
- package/packages/ui-web/src/checkbox.test.tsx +0 -30
- package/packages/ui-web/src/checkbox.tsx +0 -31
- package/packages/ui-web/src/collapsible.test.tsx +0 -51
- package/packages/ui-web/src/collapsible.tsx +0 -15
- package/packages/ui-web/src/command.test.tsx +0 -79
- package/packages/ui-web/src/command.tsx +0 -154
- package/packages/ui-web/src/context-menu.test.tsx +0 -37
- package/packages/ui-web/src/context-menu.tsx +0 -208
- package/packages/ui-web/src/dialog.test.tsx +0 -66
- package/packages/ui-web/src/dialog.tsx +0 -95
- package/packages/ui-web/src/drawer.test.tsx +0 -68
- package/packages/ui-web/src/drawer.tsx +0 -110
- package/packages/ui-web/src/dropdown-menu.test.tsx +0 -93
- package/packages/ui-web/src/dropdown-menu.tsx +0 -212
- package/packages/ui-web/src/form.test.tsx +0 -84
- package/packages/ui-web/src/form.tsx +0 -160
- package/packages/ui-web/src/hooks/use-theme.ts +0 -15
- package/packages/ui-web/src/hooks/use-toast.ts +0 -189
- package/packages/ui-web/src/hover-card.test.tsx +0 -48
- package/packages/ui-web/src/hover-card.tsx +0 -35
- package/packages/ui-web/src/index.ts +0 -474
- package/packages/ui-web/src/input.test.tsx +0 -33
- package/packages/ui-web/src/input.tsx +0 -23
- package/packages/ui-web/src/label.test.tsx +0 -27
- package/packages/ui-web/src/label.tsx +0 -21
- package/packages/ui-web/src/lib/utils.ts +0 -6
- package/packages/ui-web/src/menubar.test.tsx +0 -92
- package/packages/ui-web/src/menubar.tsx +0 -244
- package/packages/ui-web/src/navigation-menu.test.tsx +0 -53
- package/packages/ui-web/src/navigation-menu.tsx +0 -143
- package/packages/ui-web/src/pagination.test.tsx +0 -57
- package/packages/ui-web/src/pagination.tsx +0 -107
- package/packages/ui-web/src/popover.test.tsx +0 -31
- package/packages/ui-web/src/popover.tsx +0 -45
- package/packages/ui-web/src/progress.test.tsx +0 -18
- package/packages/ui-web/src/progress.tsx +0 -28
- package/packages/ui-web/src/radio-group.test.tsx +0 -39
- package/packages/ui-web/src/radio-group.tsx +0 -41
- package/packages/ui-web/src/resizable.test.tsx +0 -23
- package/packages/ui-web/src/resizable.tsx +0 -59
- package/packages/ui-web/src/scroll-area.test.tsx +0 -15
- package/packages/ui-web/src/scroll-area.tsx +0 -42
- package/packages/ui-web/src/search.test.tsx +0 -81
- package/packages/ui-web/src/search.tsx +0 -87
- package/packages/ui-web/src/select.test.tsx +0 -42
- package/packages/ui-web/src/select.tsx +0 -169
- package/packages/ui-web/src/separator.test.tsx +0 -16
- package/packages/ui-web/src/separator.tsx +0 -24
- package/packages/ui-web/src/setupTests.ts +0 -114
- package/packages/ui-web/src/sheet.test.tsx +0 -48
- package/packages/ui-web/src/sheet.tsx +0 -136
- package/packages/ui-web/src/skeleton.test.tsx +0 -13
- package/packages/ui-web/src/skeleton.tsx +0 -10
- package/packages/ui-web/src/slider.test.tsx +0 -18
- package/packages/ui-web/src/slider.tsx +0 -27
- package/packages/ui-web/src/sonner.test.tsx +0 -13
- package/packages/ui-web/src/sonner.tsx +0 -32
- package/packages/ui-web/src/switch.test.tsx +0 -22
- package/packages/ui-web/src/switch.tsx +0 -31
- package/packages/ui-web/src/table.test.tsx +0 -29
- package/packages/ui-web/src/table.tsx +0 -104
- package/packages/ui-web/src/tabs.test.tsx +0 -43
- package/packages/ui-web/src/tabs.tsx +0 -62
- package/packages/ui-web/src/text.test.tsx +0 -34
- package/packages/ui-web/src/text.tsx +0 -55
- package/packages/ui-web/src/textarea.test.tsx +0 -21
- package/packages/ui-web/src/textarea.tsx +0 -25
- package/packages/ui-web/src/theme-provider.tsx +0 -15
- package/packages/ui-web/src/theme-toggle.test.tsx +0 -49
- package/packages/ui-web/src/theme-toggle.tsx +0 -92
- package/packages/ui-web/src/toast.test.tsx +0 -42
- package/packages/ui-web/src/toast.tsx +0 -111
- package/packages/ui-web/src/toaster.tsx +0 -27
- package/packages/ui-web/src/toggle-group.test.tsx +0 -40
- package/packages/ui-web/src/toggle-group.tsx +0 -55
- package/packages/ui-web/src/toggle.test.tsx +0 -21
- package/packages/ui-web/src/toggle.tsx +0 -24
- package/packages/ui-web/src/tooltip.tsx +0 -51
- package/packages/ui-web/tsconfig.json +0 -24
- package/packages/ui-web/vite.config.ts +0 -21
- package/postcss.config.mjs +0 -5
- package/release-please-config.json +0 -60
- package/scripts/build-registry.ts +0 -80
- package/scripts/sync-tokens.ts +0 -86
- package/scripts/validate.ts +0 -74
- package/src/globals.css +0 -146
- package/src/index.ts +0 -4
- package/src/setupTests.ts +0 -47
- package/src/types/nativewind.d.ts +0 -19
- package/tailwind.config.js +0 -48
- package/tsconfig.build.json +0 -22
- package/tsconfig.json +0 -30
- package/tsconfig.node.json +0 -11
- package/vite.config.ts +0 -106
- package/vitest.config.ts +0 -23
- package/wrangler.toml +0 -22
package/scripts/validate.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { spawnSync } from 'child_process';
|
|
2
|
-
|
|
3
|
-
const args = process.argv.slice(2);
|
|
4
|
-
const fix = args.includes('--fix');
|
|
5
|
-
const noCache = args.includes('--no-cache');
|
|
6
|
-
|
|
7
|
-
const nxFlags = noCache ? ' --skipNxCache' : '';
|
|
8
|
-
|
|
9
|
-
const steps = [
|
|
10
|
-
{
|
|
11
|
-
name: 'Sync Tokens',
|
|
12
|
-
cmd: 'yarn tsx scripts/sync-tokens.ts',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: fix ? 'Prettier fix' : 'Prettier check',
|
|
16
|
-
cmd: fix ? 'yarn format' : 'yarn format:ci',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: fix ? 'Lint fix (eslint)' : 'Lint (eslint)',
|
|
20
|
-
cmd: fix ? 'yarn lint:fix' : 'yarn lint',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'TypeScript type check',
|
|
24
|
-
// Using nx run-many for per-project type checking
|
|
25
|
-
cmd: `nx run-many -t typecheck --parallel${nxFlags}`,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'Test (vitest)',
|
|
29
|
-
cmd: `nx run-many -t test --parallel --run --reporter=dot${nxFlags}`,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Build Sub-packages & Apps',
|
|
33
|
-
cmd: `nx run-many -t build --parallel${nxFlags}`,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: 'Build Root Package (Library)',
|
|
37
|
-
cmd: 'yarn build',
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
const SEP = '------------------------------------------------------------';
|
|
42
|
-
const green = (s: string) => `\x1b[32m${s}\x1b[0m`;
|
|
43
|
-
const red = (s: string) => `\x1b[31m${s}\x1b[0m`;
|
|
44
|
-
const yellow = (s: string) => `\x1b[33m${s}\x1b[0m`;
|
|
45
|
-
|
|
46
|
-
console.log(SEP);
|
|
47
|
-
console.log('\x1b[1mRunning validate steps (sequential)\x1b[0m');
|
|
48
|
-
console.log(SEP);
|
|
49
|
-
|
|
50
|
-
for (const step of steps) {
|
|
51
|
-
console.log(yellow(`\n> ${step.name}`));
|
|
52
|
-
console.log(yellow(`> ${step.cmd}\n`));
|
|
53
|
-
|
|
54
|
-
const result = spawnSync(step.cmd, { stdio: 'inherit', shell: true });
|
|
55
|
-
|
|
56
|
-
if (result.error) {
|
|
57
|
-
console.error(red(`\nFailed to run: ${step.cmd}`));
|
|
58
|
-
console.error(red(result.error.message));
|
|
59
|
-
process.exit(1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (result.status !== 0) {
|
|
63
|
-
console.error(red(`\n${step.name} failed with exit code ${result.status}.`));
|
|
64
|
-
console.error(red('Stopping further steps.'));
|
|
65
|
-
process.exit(result.status || 1);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
console.log(green(`\n${step.name} succeeded.`));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
console.log('\n' + SEP);
|
|
72
|
-
console.log(green('All validate steps completed successfully ✅'));
|
|
73
|
-
console.log(SEP + '\n');
|
|
74
|
-
process.exit(0);
|
package/src/globals.css
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
@import 'tailwindcss';
|
|
2
|
-
|
|
3
|
-
@theme {
|
|
4
|
-
/* Border radius */
|
|
5
|
-
--radius-lg: 0.5rem;
|
|
6
|
-
--radius-md: calc(var(--radius-lg) - 2px);
|
|
7
|
-
--radius-sm: calc(var(--radius-lg) - 4px);
|
|
8
|
-
|
|
9
|
-
/* Container */
|
|
10
|
-
--container-2xl: 1400px;
|
|
11
|
-
|
|
12
|
-
/* Animations */
|
|
13
|
-
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
14
|
-
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@keyframes accordion-down {
|
|
18
|
-
from {
|
|
19
|
-
height: 0;
|
|
20
|
-
}
|
|
21
|
-
to {
|
|
22
|
-
height: var(--radix-accordion-content-height);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@keyframes accordion-up {
|
|
27
|
-
from {
|
|
28
|
-
height: var(--radix-accordion-content-height);
|
|
29
|
-
}
|
|
30
|
-
to {
|
|
31
|
-
height: 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@layer base {
|
|
36
|
-
/* @tokens-start */
|
|
37
|
-
:root {
|
|
38
|
-
--background: 0 0% 96%;
|
|
39
|
-
--foreground: 222 47% 11%;
|
|
40
|
-
--card: 0 0% 100%;
|
|
41
|
-
--card-foreground: 222 47% 11%;
|
|
42
|
-
--popover: 0 0% 100%;
|
|
43
|
-
--popover-foreground: 222 47% 11%;
|
|
44
|
-
--primary: 225 73% 57%;
|
|
45
|
-
--primary-foreground: 0 0% 100%;
|
|
46
|
-
--secondary: 93 28% 54%;
|
|
47
|
-
--secondary-foreground: 0 0% 100%;
|
|
48
|
-
--muted: 0 0% 92%;
|
|
49
|
-
--muted-foreground: 215 16% 47%;
|
|
50
|
-
--accent: 0 0% 88%;
|
|
51
|
-
--accent-foreground: 222 47% 11%;
|
|
52
|
-
--destructive: 0 84.2% 60.2%;
|
|
53
|
-
--destructive-foreground: 0 0% 100%;
|
|
54
|
-
--border: 0 0% 89%;
|
|
55
|
-
--input: 0 0% 89%;
|
|
56
|
-
--ring: 222 47% 11%;
|
|
57
|
-
--radius: 0.5rem;
|
|
58
|
-
|
|
59
|
-
/* Brand Tokens */
|
|
60
|
-
--brand-blue: 225 73% 57%;
|
|
61
|
-
--brand-green: 151 66% 27%;
|
|
62
|
-
--brand-floral-white: 40 100% 97%;
|
|
63
|
-
--neutral-white: 0 0% 100%;
|
|
64
|
-
--neutral-black: 0 0% 0%;
|
|
65
|
-
--neutral-gray50: 0 0% 96%;
|
|
66
|
-
--neutral-gray100: 0 0% 92%;
|
|
67
|
-
--neutral-gray200: 0 0% 89%;
|
|
68
|
-
--neutral-gray300: 0 0% 88%;
|
|
69
|
-
--neutral-gray400: 0 0% 70%;
|
|
70
|
-
--neutral-gray500: 215 16% 47%;
|
|
71
|
-
--neutral-gray600: 222 47% 11%;
|
|
72
|
-
--neutral-gray700: 0 0% 18%;
|
|
73
|
-
--neutral-gray800: 0 0% 15%;
|
|
74
|
-
--neutral-gray900: 0 0% 14%;
|
|
75
|
-
--neutral-gray950: 0 0% 11%;
|
|
76
|
-
--neutral-gray975: 0 0% 9%;
|
|
77
|
-
--neutral-gray990: 0 0% 6%;
|
|
78
|
-
--semantic-success: 93 28% 54%;
|
|
79
|
-
--semantic-success-dark: 96 44% 61%;
|
|
80
|
-
--semantic-destructive: 0 84.2% 60.2%;
|
|
81
|
-
--semantic-destructive-dark: 0 62.8% 30.6%;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.dark {
|
|
85
|
-
--background: 0 0% 9%;
|
|
86
|
-
--foreground: 0 0% 100%;
|
|
87
|
-
--card: 0 0% 14%;
|
|
88
|
-
--card-foreground: 0 0% 100%;
|
|
89
|
-
--popover: 0 0% 11%;
|
|
90
|
-
--popover-foreground: 0 0% 100%;
|
|
91
|
-
--primary: 227 96% 71%;
|
|
92
|
-
--primary-foreground: 0 0% 9%;
|
|
93
|
-
--secondary: 96 44% 61%;
|
|
94
|
-
--secondary-foreground: 0 0% 9%;
|
|
95
|
-
--muted: 0 0% 6%;
|
|
96
|
-
--muted-foreground: 0 0% 70%;
|
|
97
|
-
--accent: 0 0% 15%;
|
|
98
|
-
--accent-foreground: 0 0% 100%;
|
|
99
|
-
--destructive: 0 62.8% 30.6%;
|
|
100
|
-
--destructive-foreground: 0 0% 100%;
|
|
101
|
-
--border: 0 0% 18%;
|
|
102
|
-
--input: 0 0% 18%;
|
|
103
|
-
--ring: 0 0% 90%;
|
|
104
|
-
--radius: 0.5rem;
|
|
105
|
-
}
|
|
106
|
-
/* @tokens-end */
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@layer base {
|
|
110
|
-
* {
|
|
111
|
-
@apply border-border;
|
|
112
|
-
}
|
|
113
|
-
body {
|
|
114
|
-
@apply bg-background text-foreground;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Tailwind v4 color utilities - map CSS vars to theme */
|
|
119
|
-
@theme {
|
|
120
|
-
--color-background: hsl(var(--background));
|
|
121
|
-
--color-foreground: hsl(var(--foreground));
|
|
122
|
-
--color-card: hsl(var(--card));
|
|
123
|
-
--color-card-foreground: hsl(var(--card-foreground));
|
|
124
|
-
--color-popover: hsl(var(--popover));
|
|
125
|
-
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
126
|
-
--color-primary: hsl(var(--primary));
|
|
127
|
-
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
128
|
-
--color-secondary: hsl(var(--secondary));
|
|
129
|
-
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
130
|
-
--color-muted: hsl(var(--muted));
|
|
131
|
-
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
132
|
-
--color-accent: hsl(var(--accent));
|
|
133
|
-
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
134
|
-
--color-destructive: hsl(var(--destructive));
|
|
135
|
-
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
136
|
-
--color-border: hsl(var(--border));
|
|
137
|
-
--color-input: hsl(var(--input));
|
|
138
|
-
--color-ring: hsl(var(--ring));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* Sticky footer support for ScrollArea */
|
|
142
|
-
[data-radix-scroll-area-viewport] > div {
|
|
143
|
-
min-height: 100%;
|
|
144
|
-
display: flex !important;
|
|
145
|
-
flex-direction: column;
|
|
146
|
-
}
|
package/src/index.ts
DELETED
package/src/setupTests.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
2
|
-
import * as matchers from '@testing-library/jest-dom/matchers';
|
|
3
|
-
import { expect } from 'vitest';
|
|
4
|
-
|
|
5
|
-
expect.extend(matchers);
|
|
6
|
-
|
|
7
|
-
// Mock window.matchMedia
|
|
8
|
-
Object.defineProperty(window, 'matchMedia', {
|
|
9
|
-
writable: true,
|
|
10
|
-
value: (query: string) => ({
|
|
11
|
-
matches: false,
|
|
12
|
-
media: query,
|
|
13
|
-
onchange: null,
|
|
14
|
-
addListener: () => {}, // Deprecated
|
|
15
|
-
removeListener: () => {}, // Deprecated
|
|
16
|
-
addEventListener: () => {},
|
|
17
|
-
removeEventListener: () => {},
|
|
18
|
-
dispatchEvent: () => {},
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
// Mock ResizeObserver
|
|
23
|
-
class ResizeObserver {
|
|
24
|
-
observe() {}
|
|
25
|
-
unobserve() {}
|
|
26
|
-
disconnect() {}
|
|
27
|
-
}
|
|
28
|
-
window.ResizeObserver = ResizeObserver;
|
|
29
|
-
|
|
30
|
-
// Mock IntersectionObserver
|
|
31
|
-
class IntersectionObserver {
|
|
32
|
-
observe() {}
|
|
33
|
-
unobserve() {}
|
|
34
|
-
disconnect() {}
|
|
35
|
-
}
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
|
-
window.IntersectionObserver = IntersectionObserver as any;
|
|
38
|
-
|
|
39
|
-
// Mock scrollIntoView
|
|
40
|
-
window.HTMLElement.prototype.scrollIntoView = function () {};
|
|
41
|
-
|
|
42
|
-
// Mock Pointer Capture
|
|
43
|
-
window.HTMLElement.prototype.setPointerCapture = function () {};
|
|
44
|
-
window.HTMLElement.prototype.releasePointerCapture = function () {};
|
|
45
|
-
window.HTMLElement.prototype.hasPointerCapture = function () {
|
|
46
|
-
return false;
|
|
47
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="nativewind/types" />
|
|
2
|
-
|
|
3
|
-
import 'react-native';
|
|
4
|
-
|
|
5
|
-
declare module 'react-native' {
|
|
6
|
-
interface ViewProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
interface TextProps {
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
interface PressableProps {
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
interface TextInputProps {
|
|
16
|
-
className?: string;
|
|
17
|
-
placeholderClassName?: string;
|
|
18
|
-
}
|
|
19
|
-
}
|
package/tailwind.config.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
const { theme: designTokens } = require('./packages/design-tokens/src/theme');
|
|
2
|
-
|
|
3
|
-
/** @type {import('tailwindcss').Config} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
// NOTE: NativeWind v4 uses the same content pattern as Tailwind
|
|
6
|
-
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
|
7
|
-
theme: {
|
|
8
|
-
extend: {
|
|
9
|
-
colors: {
|
|
10
|
-
background: 'hsl(var(--background))',
|
|
11
|
-
foreground: 'hsl(var(--foreground))',
|
|
12
|
-
primary: {
|
|
13
|
-
DEFAULT: 'hsl(var(--primary))',
|
|
14
|
-
foreground: 'hsl(var(--primary-foreground))',
|
|
15
|
-
},
|
|
16
|
-
secondary: {
|
|
17
|
-
DEFAULT: 'hsl(var(--secondary))',
|
|
18
|
-
foreground: 'hsl(var(--secondary-foreground))',
|
|
19
|
-
},
|
|
20
|
-
destructive: {
|
|
21
|
-
DEFAULT: 'hsl(var(--destructive))',
|
|
22
|
-
foreground: 'hsl(var(--destructive-foreground))',
|
|
23
|
-
},
|
|
24
|
-
muted: {
|
|
25
|
-
DEFAULT: 'hsl(var(--muted))',
|
|
26
|
-
foreground: 'hsl(var(--muted-foreground))',
|
|
27
|
-
},
|
|
28
|
-
accent: {
|
|
29
|
-
DEFAULT: 'hsl(var(--accent))',
|
|
30
|
-
foreground: 'hsl(var(--accent-foreground))',
|
|
31
|
-
},
|
|
32
|
-
popover: {
|
|
33
|
-
DEFAULT: 'hsl(var(--popover))',
|
|
34
|
-
foreground: 'hsl(var(--popover-foreground))',
|
|
35
|
-
},
|
|
36
|
-
card: {
|
|
37
|
-
DEFAULT: 'hsl(var(--card))',
|
|
38
|
-
foreground: 'hsl(var(--card-foreground))',
|
|
39
|
-
},
|
|
40
|
-
border: 'hsl(var(--border))',
|
|
41
|
-
input: 'hsl(var(--input))',
|
|
42
|
-
ring: 'hsl(var(--ring))',
|
|
43
|
-
},
|
|
44
|
-
borderRadius: designTokens.light.radius,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
plugins: [],
|
|
48
|
-
};
|
package/tsconfig.build.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"emitDeclarationOnly": false,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"outDir": "dist",
|
|
9
|
-
"rootDir": ".",
|
|
10
|
-
"allowImportingTsExtensions": false
|
|
11
|
-
},
|
|
12
|
-
"include": ["src", "packages"],
|
|
13
|
-
"exclude": [
|
|
14
|
-
"src/**/*.test.tsx",
|
|
15
|
-
"src/**/*.test.ts",
|
|
16
|
-
"src/setupTests.ts",
|
|
17
|
-
"packages/**/*.test.tsx",
|
|
18
|
-
"packages/**/*.test.ts",
|
|
19
|
-
"packages/**/vite.config.ts",
|
|
20
|
-
"packages/**/src/setupTests.ts"
|
|
21
|
-
]
|
|
22
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"moduleResolution": "bundler",
|
|
8
|
-
"allowImportingTsExtensions": true,
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"noEmit": true,
|
|
14
|
-
"jsx": "react-jsx",
|
|
15
|
-
"strict": true,
|
|
16
|
-
"noUnusedLocals": true,
|
|
17
|
-
"noUnusedParameters": true,
|
|
18
|
-
"noFallthroughCasesInSwitch": true,
|
|
19
|
-
"baseUrl": ".",
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["./src/*"],
|
|
22
|
-
"@gv-tech/design-tokens": ["./packages/design-tokens/src"],
|
|
23
|
-
"@gv-tech/ui-core": ["./packages/ui-core/src"],
|
|
24
|
-
"@gv-tech/ui-web": ["./packages/ui-web/src"],
|
|
25
|
-
"@gv-tech/ui-native": ["./packages/ui-native/src"]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"include": ["src", "packages"],
|
|
29
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
30
|
-
}
|
package/tsconfig.node.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import react from '@vitejs/plugin-react-swc';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import { resolve } from 'path';
|
|
4
|
-
import { defineConfig } from 'vite';
|
|
5
|
-
|
|
6
|
-
const isLibrary = process.env.VITE_LIB === 'true';
|
|
7
|
-
|
|
8
|
-
// Get all UI components for multi-entry build
|
|
9
|
-
const getEntries = () => {
|
|
10
|
-
const entries: Record<string, string> = {
|
|
11
|
-
index: resolve(__dirname, 'src/index.ts'),
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
if (isLibrary) {
|
|
15
|
-
const uiPath = resolve(__dirname, 'packages/ui-web/src');
|
|
16
|
-
const items = fs.readdirSync(uiPath, { withFileTypes: true });
|
|
17
|
-
|
|
18
|
-
items.forEach((item) => {
|
|
19
|
-
if (item.isDirectory()) {
|
|
20
|
-
if (item.name === 'hooks' || item.name === 'lib') return;
|
|
21
|
-
const entryPath = resolve(uiPath, item.name, 'index.ts');
|
|
22
|
-
if (fs.existsSync(entryPath)) {
|
|
23
|
-
entries[item.name] = entryPath;
|
|
24
|
-
}
|
|
25
|
-
} else if (
|
|
26
|
-
item.isFile() &&
|
|
27
|
-
item.name.endsWith('.tsx') &&
|
|
28
|
-
!item.name.includes('.test.') &&
|
|
29
|
-
!item.name.includes('.stories.')
|
|
30
|
-
) {
|
|
31
|
-
// File component (legacy)
|
|
32
|
-
const name = item.name.replace('.tsx', '');
|
|
33
|
-
entries[name] = resolve(uiPath, item.name);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return entries;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default defineConfig({
|
|
41
|
-
plugins: [react()],
|
|
42
|
-
define: {
|
|
43
|
-
global: 'window',
|
|
44
|
-
__DEV__: JSON.stringify(process.env.NODE_ENV !== 'production'),
|
|
45
|
-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
|
|
46
|
-
},
|
|
47
|
-
resolve: {
|
|
48
|
-
alias: [
|
|
49
|
-
{
|
|
50
|
-
find: /^react-native$/,
|
|
51
|
-
replacement: resolve(__dirname, 'src/lib/react-native-shim.js'),
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
find: /^react-native\/(.*)$/,
|
|
55
|
-
replacement: resolve(__dirname, 'src/lib/react-native-shim.js'),
|
|
56
|
-
},
|
|
57
|
-
{ find: '@', replacement: resolve(__dirname, './src') },
|
|
58
|
-
],
|
|
59
|
-
extensions: ['.web.tsx', '.tsx', '.ts', '.js'],
|
|
60
|
-
},
|
|
61
|
-
optimizeDeps: {
|
|
62
|
-
esbuildOptions: {
|
|
63
|
-
loader: {
|
|
64
|
-
'.js': 'jsx',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
build: {
|
|
69
|
-
sourcemap: true,
|
|
70
|
-
outDir: isLibrary ? 'dist' : 'dist-site',
|
|
71
|
-
// Only empty the directory when building the site.
|
|
72
|
-
// For the library, we want to keep the types generated by tsc.
|
|
73
|
-
emptyOutDir: !isLibrary,
|
|
74
|
-
lib: isLibrary
|
|
75
|
-
? {
|
|
76
|
-
entry: getEntries(),
|
|
77
|
-
name: 'GvtechDesign',
|
|
78
|
-
fileName: (format, entryName) =>
|
|
79
|
-
entryName === 'index'
|
|
80
|
-
? `index.${format === 'es' ? 'es' : 'cjs'}.js`
|
|
81
|
-
: `${entryName}.${format === 'es' ? 'es' : 'cjs'}.js`,
|
|
82
|
-
formats: ['es', 'cjs'],
|
|
83
|
-
}
|
|
84
|
-
: undefined,
|
|
85
|
-
rollupOptions: {
|
|
86
|
-
external: isLibrary ? ['react', 'react-dom', 'prop-types', 'next-themes'] : [],
|
|
87
|
-
output: {
|
|
88
|
-
globals: isLibrary
|
|
89
|
-
? {
|
|
90
|
-
react: 'React',
|
|
91
|
-
'react-dom': 'ReactDOM',
|
|
92
|
-
'prop-types': 'PropTypes',
|
|
93
|
-
'next-themes': 'NextThemes',
|
|
94
|
-
}
|
|
95
|
-
: {},
|
|
96
|
-
manualChunks(id) {
|
|
97
|
-
if (id.includes('node_modules')) {
|
|
98
|
-
if (id.includes('axe-core')) return 'axe';
|
|
99
|
-
if (id.includes('react-docgen')) return 'docgen';
|
|
100
|
-
return 'vendor';
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
});
|
package/vitest.config.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'path';
|
|
2
|
-
import { defineConfig } from 'vitest/config';
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
test: {
|
|
6
|
-
environment: 'jsdom',
|
|
7
|
-
globals: true,
|
|
8
|
-
setupFiles: [resolve(__dirname, './src/setupTests.ts')],
|
|
9
|
-
coverage: {
|
|
10
|
-
provider: 'v8',
|
|
11
|
-
reporter: ['text', 'lcov'],
|
|
12
|
-
},
|
|
13
|
-
alias: {
|
|
14
|
-
'@': resolve(__dirname, './src'),
|
|
15
|
-
'@gv-tech/design-tokens': resolve(__dirname, './packages/design-tokens/src'),
|
|
16
|
-
'@gv-tech/ui-core': resolve(__dirname, './packages/ui-core/src'),
|
|
17
|
-
'@gv-tech/ui-web': resolve(__dirname, './packages/ui-web/src'),
|
|
18
|
-
'@gv-tech/ui-native': resolve(__dirname, './packages/ui-native/src'),
|
|
19
|
-
'react-native': resolve(__dirname, 'apps/playground-web/src/lib/react-native-shim.js'),
|
|
20
|
-
},
|
|
21
|
-
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**', '**/.{idea,git,cache,output,temp}/**'],
|
|
22
|
-
},
|
|
23
|
-
});
|
package/wrangler.toml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name = "gvtech-design"
|
|
2
|
-
compatibility_date = "2024-11-01"
|
|
3
|
-
compatibility_flags = ["nodejs_compat"]
|
|
4
|
-
pages_build_output_dir = "apps/playground-web/dist-site"
|
|
5
|
-
|
|
6
|
-
[vars]
|
|
7
|
-
NODE_VERSION = "24"
|
|
8
|
-
APP_ENV = "production"
|
|
9
|
-
|
|
10
|
-
[env.preview]
|
|
11
|
-
name = "gvtech-design-preview"
|
|
12
|
-
|
|
13
|
-
[env.preview.vars]
|
|
14
|
-
NODE_VERSION = "24"
|
|
15
|
-
APP_ENV = "preview"
|
|
16
|
-
|
|
17
|
-
[env.production]
|
|
18
|
-
name = "gvtech-design"
|
|
19
|
-
|
|
20
|
-
[env.production.vars]
|
|
21
|
-
NODE_VERSION = "24"
|
|
22
|
-
APP_ENV = "production"
|