hoja-cli 0.21.4__tar.gz
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.
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/SKILL.md +173 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/class-mapping.md +62 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/consumer-props.md +58 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/disclosure.md +353 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/display-misc.md +410 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/form-controls.md +390 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/menus.md +409 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/overlays.md +459 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/universal-patterns.md +286 -0
- hoja_cli-0.21.4/.agents/skills/migrate-radix-to-base/wrapper-shapes.md +110 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/SKILL.md +277 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/agents/openai.yml +5 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/assets/shadcn-small.png +0 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/assets/shadcn.png +0 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/cli.md +290 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/customization.md +209 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/evals/evals.json +77 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/mcp.md +105 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/registry.md +277 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/rules/base-vs-radix.md +306 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/rules/chat.md +250 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/rules/composition.md +213 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/rules/forms.md +192 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/rules/icons.md +101 -0
- hoja_cli-0.21.4/.agents/skills/shadcn/rules/styling.md +185 -0
- hoja_cli-0.21.4/.dockerignore +30 -0
- hoja_cli-0.21.4/.github/dependabot.yml +36 -0
- hoja_cli-0.21.4/.github/workflows/documentation.yml +28 -0
- hoja_cli-0.21.4/.github/workflows/publish.yml +100 -0
- hoja_cli-0.21.4/.github/workflows/security-audit.yml +48 -0
- hoja_cli-0.21.4/.gitignore +65 -0
- hoja_cli-0.21.4/.python-version +1 -0
- hoja_cli-0.21.4/AGENTS.md +188 -0
- hoja_cli-0.21.4/CHANGELOG.md +705 -0
- hoja_cli-0.21.4/Dockerfile +21 -0
- hoja_cli-0.21.4/LICENSE +21 -0
- hoja_cli-0.21.4/PKG-INFO +279 -0
- hoja_cli-0.21.4/README.md +224 -0
- hoja_cli-0.21.4/VERSION +1 -0
- hoja_cli-0.21.4/artifacts/activity-after/activity-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/activity-after/activity-320.png +0 -0
- hoja_cli-0.21.4/artifacts/activity-after/activity-390.png +0 -0
- hoja_cli-0.21.4/artifacts/markdown/activity-390.png +0 -0
- hoja_cli-0.21.4/artifacts/markdown/issue-390.png +0 -0
- hoja_cli-0.21.4/artifacts/markdown/overview-390.png +0 -0
- hoja_cli-0.21.4/artifacts/markdown/pulse-390.png +0 -0
- hoja_cli-0.21.4/artifacts/overview-after/overview-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/overview-after/overview-320.png +0 -0
- hoja_cli-0.21.4/artifacts/overview-after/overview-390.png +0 -0
- hoja_cli-0.21.4/artifacts/overview-before/overview-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/overview-before/overview-320.png +0 -0
- hoja_cli-0.21.4/artifacts/overview-before/overview-390.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-after/my-board-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-after/my-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-after/project-board-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-after/project-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-after/team-board-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-after/team-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-before/my-board-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-before/my-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-before/project-board-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-before/project-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-before/team-board-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-before/team-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-mobile/my-board-390.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-mobile/my-list-390.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-mobile/project-board-390.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-mobile/project-list-390.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-mobile/team-board-390.png +0 -0
- hoja_cli-0.21.4/artifacts/parity-mobile/team-list-390.png +0 -0
- hoja_cli-0.21.4/artifacts/progress-after/overview-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/progress-after/overview-320.png +0 -0
- hoja_cli-0.21.4/artifacts/progress-after/overview-390.png +0 -0
- hoja_cli-0.21.4/artifacts/progress-after/projects-list-1440.png +0 -0
- hoja_cli-0.21.4/artifacts/tern-browser/capture-20620137988101-1793138861382.png +0 -0
- hoja_cli-0.21.4/artifacts/tern-browser/capture-20620137988101-1793138883547.png +0 -0
- hoja_cli-0.21.4/artifacts/tern-browser/capture-20620137988101-1793138926661.png +0 -0
- hoja_cli-0.21.4/artifacts/tern-browser/capture-20620137988101-1793139073786.png +0 -0
- hoja_cli-0.21.4/connectors/google_workspace/README.md +32 -0
- hoja_cli-0.21.4/connectors/google_workspace/pyproject.toml +16 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/__init__.py +19 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/client.py +253 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/config.py +39 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/errors.py +19 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/mcp_server.py +100 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/oauth.py +131 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/principal.py +83 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/py.typed +0 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/tools.py +64 -0
- hoja_cli-0.21.4/connectors/google_workspace/src/google_workspace/writes.py +44 -0
- hoja_cli-0.21.4/docker-compose.yml +32 -0
- hoja_cli-0.21.4/docs/DEPLOYMENT.md +205 -0
- hoja_cli-0.21.4/docs/DESIGN.md +449 -0
- hoja_cli-0.21.4/docs/cycle-metrics.md +92 -0
- hoja_cli-0.21.4/docs/dependency-security.md +43 -0
- hoja_cli-0.21.4/docs/email-adapter.md +48 -0
- hoja_cli-0.21.4/docs/hoja-mcp.md +51 -0
- hoja_cli-0.21.4/docs/meetings.md +156 -0
- hoja_cli-0.21.4/frontend/eslint-rules/index.mjs +9 -0
- hoja_cli-0.21.4/frontend/eslint-rules/no-dead-button.mjs +46 -0
- hoja_cli-0.21.4/frontend/eslint-rules/no-native-dialog.mjs +37 -0
- hoja_cli-0.21.4/frontend/eslint.config.mjs +42 -0
- hoja_cli-0.21.4/frontend/index.html +2 -0
- hoja_cli-0.21.4/frontend/package-lock.json +9755 -0
- hoja_cli-0.21.4/frontend/package.json +56 -0
- hoja_cli-0.21.4/frontend/public/hoja-clover.8371400e.svg +10 -0
- hoja_cli-0.21.4/frontend/src/AgentChatPage.tsx +307 -0
- hoja_cli-0.21.4/frontend/src/AgentConversationsSettings.tsx +86 -0
- hoja_cli-0.21.4/frontend/src/ApiKeysSettings.tsx +180 -0
- hoja_cli-0.21.4/frontend/src/ConnectorsSettings.tsx +139 -0
- hoja_cli-0.21.4/frontend/src/ModelProvidersSettings.tsx +160 -0
- hoja_cli-0.21.4/frontend/src/Popover.tsx +59 -0
- hoja_cli-0.21.4/frontend/src/ProjectActivity.tsx +244 -0
- hoja_cli-0.21.4/frontend/src/SettingsSelect.tsx +187 -0
- hoja_cli-0.21.4/frontend/src/dev/ReactGrabDev.tsx +26 -0
- hoja_cli-0.21.4/frontend/src/dialogs.tsx +74 -0
- hoja_cli-0.21.4/frontend/src/linear/cycleMetrics.ts +109 -0
- hoja_cli-0.21.4/frontend/src/linear/cycleSelection.ts +13 -0
- hoja_cli-0.21.4/frontend/src/linear/cycles.tsx +1211 -0
- hoja_cli-0.21.4/frontend/src/linear/issueStore.ts +177 -0
- hoja_cli-0.21.4/frontend/src/linear/issues.tsx +1795 -0
- hoja_cli-0.21.4/frontend/src/linear/shared.tsx +329 -0
- hoja_cli-0.21.4/frontend/src/linear/statusAge.ts +47 -0
- hoja_cli-0.21.4/frontend/src/linear/styles.css +396 -0
- hoja_cli-0.21.4/frontend/src/localFirst.ts +152 -0
- hoja_cli-0.21.4/frontend/src/main.tsx +847 -0
- hoja_cli-0.21.4/frontend/src/markdown.tsx +210 -0
- hoja_cli-0.21.4/frontend/src/meetings/Calendar.tsx +211 -0
- hoja_cli-0.21.4/frontend/src/meetings/MeetRoom.tsx +796 -0
- hoja_cli-0.21.4/frontend/src/meetings/MeetingDrawer.tsx +256 -0
- hoja_cli-0.21.4/frontend/src/meetings/MeetingsPage.tsx +228 -0
- hoja_cli-0.21.4/frontend/src/meetings/Notifier.tsx +144 -0
- hoja_cli-0.21.4/frontend/src/meetings/ScheduleDialog.tsx +244 -0
- hoja_cli-0.21.4/frontend/src/meetings/api.ts +183 -0
- hoja_cli-0.21.4/frontend/src/meetings/inbox.ts +152 -0
- hoja_cli-0.21.4/frontend/src/meetings/meet-room.css +179 -0
- hoja_cli-0.21.4/frontend/src/meetings/meetings-page.css +283 -0
- hoja_cli-0.21.4/frontend/src/meetings/ringtone.ts +38 -0
- hoja_cli-0.21.4/frontend/src/meetings/rtc.ts +273 -0
- hoja_cli-0.21.4/frontend/src/meetings/useRoom.ts +351 -0
- hoja_cli-0.21.4/frontend/src/mobile-touch.css +11 -0
- hoja_cli-0.21.4/frontend/src/onboarding.css +240 -0
- hoja_cli-0.21.4/frontend/src/projectStore.ts +340 -0
- hoja_cli-0.21.4/frontend/src/realtime.ts +123 -0
- hoja_cli-0.21.4/frontend/src/settings.css +747 -0
- hoja_cli-0.21.4/frontend/src/signup/SignupPage.tsx +487 -0
- hoja_cli-0.21.4/frontend/src/signup/reasonCopy.ts +140 -0
- hoja_cli-0.21.4/frontend/src/signup/signup.css +368 -0
- hoja_cli-0.21.4/frontend/src/signup/slugPolicy.generated.ts +44 -0
- hoja_cli-0.21.4/frontend/src/signup/slugValidation.ts +50 -0
- hoja_cli-0.21.4/frontend/src/signup/submitSignup.ts +123 -0
- hoja_cli-0.21.4/frontend/src/signup/turnstile.ts +72 -0
- hoja_cli-0.21.4/frontend/src/signup/workspaceStatus.ts +87 -0
- hoja_cli-0.21.4/frontend/src/styles.css +1243 -0
- hoja_cli-0.21.4/frontend/src/sync.ts +580 -0
- hoja_cli-0.21.4/frontend/src/vite-env.d.ts +1 -0
- hoja_cli-0.21.4/frontend/stylelint-plugins/no-light-text-without-dark-ground.mjs +65 -0
- hoja_cli-0.21.4/frontend/stylelint-plugins/no-small-field-font.mjs +54 -0
- hoja_cli-0.21.4/frontend/stylelint-plugins/no-unstretched-chrome-wrapper.mjs +89 -0
- hoja_cli-0.21.4/frontend/stylelint-plugins/no-viewport-height-units.mjs +40 -0
- hoja_cli-0.21.4/frontend/stylelint.config.mjs +26 -0
- hoja_cli-0.21.4/frontend/tsconfig.json +1 -0
- hoja_cli-0.21.4/frontend/vite.config.ts +36 -0
- hoja_cli-0.21.4/hoja/__init__.py +29 -0
- hoja_cli-0.21.4/hoja/__main__.py +6 -0
- hoja_cli-0.21.4/hoja/auth.py +42 -0
- hoja_cli-0.21.4/hoja/cli.py +161 -0
- hoja_cli-0.21.4/hoja/cli_state.py +55 -0
- hoja_cli-0.21.4/hoja/client.py +268 -0
- hoja_cli-0.21.4/hoja/commands/__init__.py +4 -0
- hoja_cli-0.21.4/hoja/commands/auth_cmd.py +271 -0
- hoja_cli-0.21.4/hoja/commands/comment.py +149 -0
- hoja_cli-0.21.4/hoja/commands/cycle.py +75 -0
- hoja_cli-0.21.4/hoja/commands/init.py +108 -0
- hoja_cli-0.21.4/hoja/commands/issue.py +398 -0
- hoja_cli-0.21.4/hoja/commands/label.py +163 -0
- hoja_cli-0.21.4/hoja/commands/memory.py +240 -0
- hoja_cli-0.21.4/hoja/commands/project.py +56 -0
- hoja_cli-0.21.4/hoja/commands/raw.py +50 -0
- hoja_cli-0.21.4/hoja/commands/team.py +102 -0
- hoja_cli-0.21.4/hoja/commands/update.py +162 -0
- hoja_cli-0.21.4/hoja/config.py +362 -0
- hoja_cli-0.21.4/hoja/errors.py +107 -0
- hoja_cli-0.21.4/hoja/filters.py +150 -0
- hoja_cli-0.21.4/hoja/graphql/__init__.py +5 -0
- hoja_cli-0.21.4/hoja/graphql/fragments.py +138 -0
- hoja_cli-0.21.4/hoja/graphql/mutations.py +160 -0
- hoja_cli-0.21.4/hoja/graphql/queries.py +245 -0
- hoja_cli-0.21.4/hoja/mcp/__init__.py +27 -0
- hoja_cli-0.21.4/hoja/mcp/content.py +151 -0
- hoja_cli-0.21.4/hoja/mcp/prompts.py +298 -0
- hoja_cli-0.21.4/hoja/mcp/resources.py +213 -0
- hoja_cli-0.21.4/hoja/mcp/server.py +189 -0
- hoja_cli-0.21.4/hoja/memory_board.py +370 -0
- hoja_cli-0.21.4/hoja/models/__init__.py +37 -0
- hoja_cli-0.21.4/hoja/models/base.py +64 -0
- hoja_cli-0.21.4/hoja/models/cycle.py +32 -0
- hoja_cli-0.21.4/hoja/models/enums.py +62 -0
- hoja_cli-0.21.4/hoja/models/issue.py +99 -0
- hoja_cli-0.21.4/hoja/models/label.py +17 -0
- hoja_cli-0.21.4/hoja/models/project.py +60 -0
- hoja_cli-0.21.4/hoja/models/team.py +31 -0
- hoja_cli-0.21.4/hoja/models/user.py +32 -0
- hoja_cli-0.21.4/hoja/models/workflow.py +65 -0
- hoja_cli-0.21.4/hoja/output.py +410 -0
- hoja_cli-0.21.4/hoja/skill_content/commands.md +222 -0
- hoja_cli-0.21.4/hoja/skill_content/examples.md +193 -0
- hoja_cli-0.21.4/hoja/skill_content/filters.md +101 -0
- hoja_cli-0.21.4/hoja/skill_content/output-formats.md +92 -0
- hoja_cli-0.21.4/hoja/skill_content/overview.md +123 -0
- hoja_cli-0.21.4/hoja/skill_content/workflows.md +174 -0
- hoja_cli-0.21.4/hoja_server/README.md +135 -0
- hoja_cli-0.21.4/hoja_server/__init__.py +11 -0
- hoja_cli-0.21.4/hoja_server/abac.py +116 -0
- hoja_cli-0.21.4/hoja_server/agent_chat.py +280 -0
- hoja_cli-0.21.4/hoja_server/agent_conversations.py +91 -0
- hoja_cli-0.21.4/hoja_server/agent_durable.py +332 -0
- hoja_cli-0.21.4/hoja_server/agent_prompt.py +117 -0
- hoja_cli-0.21.4/hoja_server/agent_threads.py +96 -0
- hoja_cli-0.21.4/hoja_server/agent_uploads.py +60 -0
- hoja_cli-0.21.4/hoja_server/app.py +2189 -0
- hoja_cli-0.21.4/hoja_server/cadence.py +231 -0
- hoja_cli-0.21.4/hoja_server/cli.py +191 -0
- hoja_cli-0.21.4/hoja_server/cloudflare_realtime.py +110 -0
- hoja_cli-0.21.4/hoja_server/comment_policy.py +70 -0
- hoja_cli-0.21.4/hoja_server/connector_actions.py +119 -0
- hoja_cli-0.21.4/hoja_server/connectors_api.py +375 -0
- hoja_cli-0.21.4/hoja_server/db.py +1816 -0
- hoja_cli-0.21.4/hoja_server/denials.py +18 -0
- hoja_cli-0.21.4/hoja_server/deployment.py +28 -0
- hoja_cli-0.21.4/hoja_server/email_adapter.py +94 -0
- hoja_cli-0.21.4/hoja_server/google_login.py +217 -0
- hoja_cli-0.21.4/hoja_server/google_oidc.py +342 -0
- hoja_cli-0.21.4/hoja_server/identity_transfer.py +210 -0
- hoja_cli-0.21.4/hoja_server/mcp_oauth.py +623 -0
- hoja_cli-0.21.4/hoja_server/mcp_tools.py +579 -0
- hoja_cli-0.21.4/hoja_server/meeting_policy.py +179 -0
- hoja_cli-0.21.4/hoja_server/meetings.py +1332 -0
- hoja_cli-0.21.4/hoja_server/meetings_api.py +909 -0
- hoja_cli-0.21.4/hoja_server/model_providers.py +205 -0
- hoja_cli-0.21.4/hoja_server/realtime.py +690 -0
- hoja_cli-0.21.4/hoja_server/resolvers.py +1281 -0
- hoja_cli-0.21.4/hoja_server/schema.graphql +477 -0
- hoja_cli-0.21.4/hoja_server/schema_sdl.py +8 -0
- hoja_cli-0.21.4/hoja_server/secrets_box.py +39 -0
- hoja_cli-0.21.4/hoja_server/signup_config.py +292 -0
- hoja_cli-0.21.4/hoja_server/signup_gate.py +393 -0
- hoja_cli-0.21.4/hoja_server/signup_policy.py +97 -0
- hoja_cli-0.21.4/hoja_server/signup_store.py +577 -0
- hoja_cli-0.21.4/hoja_server/store.py +2179 -0
- hoja_cli-0.21.4/hoja_server/sync.py +249 -0
- hoja_cli-0.21.4/hoja_server/tenant_context.py +131 -0
- hoja_cli-0.21.4/hoja_server/turnstile.py +81 -0
- hoja_cli-0.21.4/hoja_server/writer.py +1262 -0
- hoja_cli-0.21.4/pyproject.toml +112 -0
- hoja_cli-0.21.4/schema/schema-summary.json +1498 -0
- hoja_cli-0.21.4/scripts/bench_sync.py +660 -0
- hoja_cli-0.21.4/scripts/check-cycle-metrics-live.mjs +62 -0
- hoja_cli-0.21.4/scripts/check_docs.py +244 -0
- hoja_cli-0.21.4/scripts/dev-tailscale.sh +325 -0
- hoja_cli-0.21.4/scripts/e2e-local-backend.sh +74 -0
- hoja_cli-0.21.4/scripts/e2e-test.sh +167 -0
- hoja_cli-0.21.4/scripts/fixtures/commonmark-spec-0.31.2.json +5218 -0
- hoja_cli-0.21.4/scripts/generate-signup-slug-policy.py +77 -0
- hoja_cli-0.21.4/scripts/install-hooks.sh +16 -0
- hoja_cli-0.21.4/scripts/mobile-audit-report.cjs +92 -0
- hoja_cli-0.21.4/scripts/mobile-audit.cjs +201 -0
- hoja_cli-0.21.4/scripts/mobile-click-through.cjs +120 -0
- hoja_cli-0.21.4/scripts/mobile-row-check.cjs +189 -0
- hoja_cli-0.21.4/scripts/pre-commit.sh +139 -0
- hoja_cli-0.21.4/scripts/ship.sh +76 -0
- hoja_cli-0.21.4/scripts/test-agent-chat-layout.cjs +26 -0
- hoja_cli-0.21.4/scripts/test-agent-reply-layout.cjs +33 -0
- hoja_cli-0.21.4/scripts/test-brand-and-welcome-composer.cjs +32 -0
- hoja_cli-0.21.4/scripts/test-brand-route.cjs +41 -0
- hoja_cli-0.21.4/scripts/test-comment-permissions.cjs +162 -0
- hoja_cli-0.21.4/scripts/test-cycle-metrics.mjs +117 -0
- hoja_cli-0.21.4/scripts/test-cycle-selection.mjs +25 -0
- hoja_cli-0.21.4/scripts/test-issue-layout.cjs +35 -0
- hoja_cli-0.21.4/scripts/test-issue-modal-polish.cjs +269 -0
- hoja_cli-0.21.4/scripts/test-issue-surface-parity.cjs +100 -0
- hoja_cli-0.21.4/scripts/test-list-scroll-layout.cjs +35 -0
- hoja_cli-0.21.4/scripts/test-markdown-conformance.cjs +301 -0
- hoja_cli-0.21.4/scripts/test-markdown-surfaces.cjs +239 -0
- hoja_cli-0.21.4/scripts/test-my-issues-completed.cjs +130 -0
- hoja_cli-0.21.4/scripts/test-overflow-layout.cjs +34 -0
- hoja_cli-0.21.4/scripts/test-page-invariants.cjs +113 -0
- hoja_cli-0.21.4/scripts/test-project-activity.cjs +157 -0
- hoja_cli-0.21.4/scripts/test-project-layout.cjs +59 -0
- hoja_cli-0.21.4/scripts/test-project-overview.cjs +126 -0
- hoja_cli-0.21.4/scripts/test-settings-browser.mjs +301 -0
- hoja_cli-0.21.4/scripts/test-settings-layout.cjs +96 -0
- hoja_cli-0.21.4/scripts/test-signup-page.cjs +255 -0
- hoja_cli-0.21.4/scripts/test-status-age.mjs +55 -0
- hoja_cli-0.21.4/scripts/test-team-status-age.cjs +99 -0
- hoja_cli-0.21.4/scripts/test-work-surface-layout.cjs +97 -0
- hoja_cli-0.21.4/scripts/ui-probes/agent-shot.cjs +26 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-hit-test.cjs +29 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-inbox-pulse-agent-deep-probe.cjs +33 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-inbox-pulse-agent-icon-probe.cjs +18 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-inbox-pulse-agent-probe.cjs +67 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-inbox-pulse-agent-send-probe.cjs +20 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-inbox-pulse-agent-state-probe.cjs +46 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-inbox-pulse-agent-tabs-probe.cjs +48 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-lane-scroll.cjs +36 -0
- hoja_cli-0.21.4/scripts/ui-probes/board-rect.cjs +24 -0
- hoja_cli-0.21.4/scripts/ui-probes/chrome-geometry.cjs +33 -0
- hoja_cli-0.21.4/scripts/ui-probes/clip-chain.cjs +29 -0
- hoja_cli-0.21.4/scripts/ui-probes/constrained-scroll.cjs +43 -0
- hoja_cli-0.21.4/scripts/ui-probes/contrast-audit.cjs +46 -0
- hoja_cli-0.21.4/scripts/ui-probes/dark-contrast.cjs +50 -0
- hoja_cli-0.21.4/scripts/ui-probes/hit-at-list.cjs +33 -0
- hoja_cli-0.21.4/scripts/ui-probes/issue-detail-contrast-probe.cjs +54 -0
- hoja_cli-0.21.4/scripts/ui-probes/kanban-measure.cjs +64 -0
- hoja_cli-0.21.4/scripts/ui-probes/list-dropdown-scroll.cjs +37 -0
- hoja_cli-0.21.4/scripts/ui-probes/list-owner.cjs +30 -0
- hoja_cli-0.21.4/scripts/ui-probes/list-scroll.cjs +41 -0
- hoja_cli-0.21.4/scripts/ui-probes/live-smoke.cjs +18 -0
- hoja_cli-0.21.4/scripts/ui-probes/my-issue-tabs.cjs +23 -0
- hoja_cli-0.21.4/scripts/ui-probes/my-issues-contrast-probe.cjs +79 -0
- hoja_cli-0.21.4/scripts/ui-probes/overlays-contrast-probe.cjs +60 -0
- hoja_cli-0.21.4/scripts/ui-probes/page-scroll.cjs +26 -0
- hoja_cli-0.21.4/scripts/ui-probes/projects-probe.cjs +59 -0
- hoja_cli-0.21.4/scripts/ui-probes/repeat-wheel.cjs +28 -0
- hoja_cli-0.21.4/scripts/ui-probes/seed-many-issues.py +20 -0
- hoja_cli-0.21.4/scripts/ui-probes/seed-states.py +24 -0
- hoja_cli-0.21.4/scripts/ui-probes/settings-contrast-probe.cjs +58 -0
- hoja_cli-0.21.4/scripts/ui-probes/sidebar-topbar-detail-probe.cjs +50 -0
- hoja_cli-0.21.4/scripts/ui-probes/sidebar-topbar-menu-probe.cjs +24 -0
- hoja_cli-0.21.4/scripts/ui-probes/sidebar-topbar-probe.cjs +74 -0
- hoja_cli-0.21.4/scripts/ui-probes/tabs.cjs +16 -0
- hoja_cli-0.21.4/scripts/ui-probes/team-icons.cjs +23 -0
- hoja_cli-0.21.4/scripts/ui-probes/team-row-inspect.cjs +22 -0
- hoja_cli-0.21.4/scripts/ui-probes/topbar-boxes.cjs +31 -0
- hoja_cli-0.21.4/scripts/ui-probes/topbar.cjs +13 -0
- hoja_cli-0.21.4/scripts/ui-probes/touch-pan.cjs +29 -0
- hoja_cli-0.21.4/scripts/ui-probes/view-dump.cjs +26 -0
- hoja_cli-0.21.4/scripts/ui-probes/which-rule.cjs +27 -0
- hoja_cli-0.21.4/scripts/verify-web-production.py +65 -0
- hoja_cli-0.21.4/skills/hoja/SKILL.md +428 -0
- hoja_cli-0.21.4/skills/hoja/references/commands.md +1 -0
- hoja_cli-0.21.4/skills/hoja/references/examples.md +1 -0
- hoja_cli-0.21.4/skills/hoja/references/filters.md +1 -0
- hoja_cli-0.21.4/skills/hoja/references/output-formats.md +1 -0
- hoja_cli-0.21.4/skills/hoja/references/overview.md +1 -0
- hoja_cli-0.21.4/skills/hoja/references/workflows.md +1 -0
- hoja_cli-0.21.4/skills/install.sh +92 -0
- hoja_cli-0.21.4/skills-lock.json +17 -0
- hoja_cli-0.21.4/tests/__init__.py +0 -0
- hoja_cli-0.21.4/tests/agent/__init__.py +0 -0
- hoja_cli-0.21.4/tests/agent/test_dbos_crash_recovery.py +85 -0
- hoja_cli-0.21.4/tests/conftest.py +20 -0
- hoja_cli-0.21.4/tests/connectors/__init__.py +1 -0
- hoja_cli-0.21.4/tests/connectors/test_connector_action_routes.py +122 -0
- hoja_cli-0.21.4/tests/connectors/test_connector_actions.py +169 -0
- hoja_cli-0.21.4/tests/connectors/test_connector_agent_route.py +90 -0
- hoja_cli-0.21.4/tests/connectors/test_connector_routes.py +292 -0
- hoja_cli-0.21.4/tests/connectors/test_connector_tables.py +108 -0
- hoja_cli-0.21.4/tests/connectors/test_connector_wiring.py +117 -0
- hoja_cli-0.21.4/tests/connectors/test_google_workspace.py +261 -0
- hoja_cli-0.21.4/tests/connectors/test_mcp_server.py +123 -0
- hoja_cli-0.21.4/tests/connectors/test_principal_and_tools.py +90 -0
- hoja_cli-0.21.4/tests/connectors/test_writes.py +111 -0
- hoja_cli-0.21.4/tests/durable_crash_worker.py +83 -0
- hoja_cli-0.21.4/tests/e2e/__init__.py +0 -0
- hoja_cli-0.21.4/tests/e2e/conftest.py +163 -0
- hoja_cli-0.21.4/tests/e2e/test_content_controls.py +40 -0
- hoja_cli-0.21.4/tests/e2e/test_fuzz_routes.py +36 -0
- hoja_cli-0.21.4/tests/e2e/test_realtime_sync.py +136 -0
- hoja_cli-0.21.4/tests/e2e/test_view_freshness.py +106 -0
- hoja_cli-0.21.4/tests/rls_mode.py +151 -0
- hoja_cli-0.21.4/tests/test_account_resolution.py +215 -0
- hoja_cli-0.21.4/tests/test_agent_chat.py +289 -0
- hoja_cli-0.21.4/tests/test_agent_durable.py +102 -0
- hoja_cli-0.21.4/tests/test_agent_prompt.py +154 -0
- hoja_cli-0.21.4/tests/test_check_docs.py +76 -0
- hoja_cli-0.21.4/tests/test_content_permissions.py +237 -0
- hoja_cli-0.21.4/tests/test_db_pool_sizing.py +52 -0
- hoja_cli-0.21.4/tests/test_google_app_login.py +216 -0
- hoja_cli-0.21.4/tests/test_google_handoff_routes.py +107 -0
- hoja_cli-0.21.4/tests/test_issue_subissues.py +169 -0
- hoja_cli-0.21.4/tests/test_label_management.py +67 -0
- hoja_cli-0.21.4/tests/test_mcp_agent_tools.py +227 -0
- hoja_cli-0.21.4/tests/test_mcp_tools.py +29 -0
- hoja_cli-0.21.4/tests/test_meetings.py +456 -0
- hoja_cli-0.21.4/tests/test_meetings_social.py +353 -0
- hoja_cli-0.21.4/tests/test_member_management.py +106 -0
- hoja_cli-0.21.4/tests/test_model_providers.py +110 -0
- hoja_cli-0.21.4/tests/test_project_activity.py +67 -0
- hoja_cli-0.21.4/tests/test_project_progress.py +62 -0
- hoja_cli-0.21.4/tests/test_project_visibility.py +141 -0
- hoja_cli-0.21.4/tests/test_rate_limits.py +139 -0
- hoja_cli-0.21.4/tests/test_realtime.py +217 -0
- hoja_cli-0.21.4/tests/test_security_lane_a.py +457 -0
- hoja_cli-0.21.4/tests/test_security_lane_c.py +247 -0
- hoja_cli-0.21.4/tests/test_security_lane_v.py +257 -0
- hoja_cli-0.21.4/tests/test_server_backend.py +2077 -0
- hoja_cli-0.21.4/tests/test_server_postgres.py +339 -0
- hoja_cli-0.21.4/tests/test_signup_gate.py +1188 -0
- hoja_cli-0.21.4/tests/test_signup_page.py +434 -0
- hoja_cli-0.21.4/tests/test_sync.py +146 -0
- hoja_cli-0.21.4/tests/test_team_hierarchy.py +425 -0
- hoja_cli-0.21.4/tests/test_team_management.py +219 -0
- hoja_cli-0.21.4/tests/test_team_visibility_audit.py +148 -0
- hoja_cli-0.21.4/tests/test_tenant_context.py +212 -0
- hoja_cli-0.21.4/tests/test_tenant_key_derivation.py +33 -0
- hoja_cli-0.21.4/uv.lock +3683 -0
- hoja_cli-0.21.4/vendor/README.md +11 -0
- hoja_cli-0.21.4/web/app.js +54 -0
- hoja_cli-0.21.4/web/index.html +55 -0
- hoja_cli-0.21.4/web/style.css +5 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate-radix-to-base
|
|
3
|
+
description: Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Radix UI -> Base UI migration
|
|
7
|
+
|
|
8
|
+
You migrate shadcn wrappers, hand-rolled radix compositions, and their
|
|
9
|
+
consumers to `@base-ui/react`, keeping the project buildable at every step.
|
|
10
|
+
Be precise; never guess a mapping. When a prop or part is not in these
|
|
11
|
+
reference files, check `node_modules/@base-ui/react/**/*.d.ts` before
|
|
12
|
+
transforming, and record gaps in the report.
|
|
13
|
+
|
|
14
|
+
## Preflight (always)
|
|
15
|
+
|
|
16
|
+
1. `npx shadcn@latest info --json` (or the project's runner): gives the
|
|
17
|
+
current base, STYLE (e.g. `radix-lyra`), tailwind version, aliases,
|
|
18
|
+
installed components, and package manager. Trust it over inference.
|
|
19
|
+
2. Detect the package manager (packageManager field / lockfile:
|
|
20
|
+
pnpm-lock.yaml, bun.lock, yarn.lock, package-lock.json) and use IT for
|
|
21
|
+
every install. Never leave a stale lockfile.
|
|
22
|
+
3. Require a clean git tree; work on a branch; one commit per component.
|
|
23
|
+
4. Baseline check BEFORE touching dependencies: run the project's
|
|
24
|
+
typecheck/build so pre-existing failures are never attributed to you.
|
|
25
|
+
5. Install `@base-ui/react` alongside radix. Radix packages are removed only
|
|
26
|
+
after the LAST component is migrated (both coexist fine).
|
|
27
|
+
|
|
28
|
+
## Strategy: golden pair first, transformation engine second
|
|
29
|
+
|
|
30
|
+
- **Golden pair via the CLI (preferred).** If the project is shadcn with a
|
|
31
|
+
known style (`radix-<style>`), the shadcn CLI itself is the golden-pair
|
|
32
|
+
executor:
|
|
33
|
+
1. Classify each ui wrapper FIRST: diff the user's file against its stock
|
|
34
|
+
origin, using the components.json style VERBATIM in the URL
|
|
35
|
+
(`https://ui.shadcn.com/r/styles/<style>/<component>.json`,
|
|
36
|
+
files[0].content). This works for prefixed styles (radix-nova) AND
|
|
37
|
+
legacy unprefixed ones (new-york, new-york-v4, default), which are all
|
|
38
|
+
still served.
|
|
39
|
+
2. WHOLE-PROJECT mode: flip `components.json` style `radix-<style>` ->
|
|
40
|
+
`base-<style>` now. PROGRESSIVE mode: do NOT flip yet (the project is
|
|
41
|
+
still mostly radix; the flip happens once, after the last component);
|
|
42
|
+
fetch base variants directly by URL instead
|
|
43
|
+
(`https://ui.shadcn.com/r/styles/base-<style>/<component>.json`).
|
|
44
|
+
3. PRISTINE wrappers, whole-project mode: `shadcn add <component>
|
|
45
|
+
--overwrite` delivers the base variant with the project's exact
|
|
46
|
+
icon/font/preset resolution. Never bulk `--all --overwrite`; go
|
|
47
|
+
component by component, or you drown in unrelated registry version
|
|
48
|
+
drift. PROGRESSIVE mode: never use `--overwrite` (it destroys the
|
|
49
|
+
original that consumers still import); write the fetched base variant
|
|
50
|
+
content to `<component>-base.tsx` instead.
|
|
51
|
+
4. CUSTOMIZED wrappers: fetch the base variant and replay the user's diff
|
|
52
|
+
onto it (their customizations must SURVIVE; `--overwrite` would destroy
|
|
53
|
+
them). Mechanical implementation that works at scale:
|
|
54
|
+
`git merge-file user.tsx radix-golden.tsx base-golden.tsx` (three-way
|
|
55
|
+
merge, radix golden as ancestor) auto-resolves most files; hand-resolve
|
|
56
|
+
conflicts with the reference tables.
|
|
57
|
+
5. MANDATORY leftover sweep on EVERY golden-pair file, including ones that
|
|
58
|
+
merged "clean": `grep -n "radix-ui\|@radix-ui\|IconPlaceholder"` per
|
|
59
|
+
file. The registry sometimes reorders functions between variants, which
|
|
60
|
+
makes three-way merges report zero conflicts while leaving stale radix
|
|
61
|
+
hunks in place. A clean merge is NOT proof of a clean file.
|
|
62
|
+
This is more reliable than reconstructing transforms; use it whenever the
|
|
63
|
+
pair exists. Consumer/app code has no CLI mechanism: always hand-migrate it
|
|
64
|
+
against `consumer-props.md`.
|
|
65
|
+
- **Legacy styles (new-york, new-york-v4, default): classification only, no
|
|
66
|
+
replay.** These have no base counterpart (there is no base-new-york), and
|
|
67
|
+
retargeting onto a base-<style> variant would restyle the user's app. Use
|
|
68
|
+
the radix golden ONLY to detect customizations, then run the transformation
|
|
69
|
+
engine on the user's OWN file: rewire primitives, keep their exact classes,
|
|
70
|
+
apply class-mapping renames. Their look stays theirs. At the end of a
|
|
71
|
+
legacy whole-project migration, FLAG (do not fix): the style name still
|
|
72
|
+
reads as radix to the CLI, so future `shadcn add` will deliver radix
|
|
73
|
+
variants; the user decides whether to switch style or add manually.
|
|
74
|
+
- **Transformation engine (fallback).** Hand-rolled radix code, non-shadcn
|
|
75
|
+
projects, unknown styles: transform using `universal-patterns.md` (imports
|
|
76
|
+
in BOTH forms: `radix-ui` and `@radix-ui/react-*`; asChild->render with the
|
|
77
|
+
worked example; Portal>Positioner>Popup; the positioner FORWARD rule; part
|
|
78
|
+
renames), the per-family props tables (`overlays.md`, `menus.md`,
|
|
79
|
+
`form-controls.md`, `disclosure.md`, `display-misc.md`), `class-mapping.md`
|
|
80
|
+
for data-attribute/CSS-var rewrites, and `wrapper-shapes.md` for exact
|
|
81
|
+
target shapes (tooltip arrow, SubContent defaults, select anatomy).
|
|
82
|
+
|
|
83
|
+
## Modes
|
|
84
|
+
|
|
85
|
+
**Progressive (default).** "Migrate accordion" = one component, strangler-fig:
|
|
86
|
+
1. Detect in-progress state first: an existing `<component>-base.tsx`,
|
|
87
|
+
consumers split between old/new imports. The files ARE the state; resume,
|
|
88
|
+
never restart.
|
|
89
|
+
2. If the component imports other ui wrappers still on radix (select ->
|
|
90
|
+
button), STOP and recommend migrating those first, bottom-up.
|
|
91
|
+
3. Write the migrated version to `<component>-base.tsx` (original untouched;
|
|
92
|
+
golden-pair content fetched by URL, or transformed by hand, per the
|
|
93
|
+
strategy above); typecheck. Repoint consumers ONE AT A TIME (imports + the
|
|
94
|
+
call-site props in `consumer-props.md`); typecheck each. When no consumer
|
|
95
|
+
imports the original: delete it, rename `-base` -> original, flip imports
|
|
96
|
+
back, final check, commit. When the LAST radix wrapper in the project is
|
|
97
|
+
finalized, flip `components.json` to `base-<style>` and remove radix deps.
|
|
98
|
+
|
|
99
|
+
**Whole project** (only when explicitly asked): same per-component work in
|
|
100
|
+
dependency order (leaf/shared wrappers like button and label first). After
|
|
101
|
+
wrappers, sweep ALL app code against `consumer-props.md` — the call-site
|
|
102
|
+
break surface is much larger than asChild. Then remove radix deps, install,
|
|
103
|
+
full build.
|
|
104
|
+
|
|
105
|
+
## Hard rules
|
|
106
|
+
|
|
107
|
+
- NEVER touch non-radix libraries or their wrappers: cmdk (command), vaul
|
|
108
|
+
(drawer), sonner, input-otp, react-day-picker (calendar), recharts (chart).
|
|
109
|
+
Report them as intentionally untouched.
|
|
110
|
+
- No Base UI counterpart: AspectRatio -> CSS aspect-ratio div; Label ->
|
|
111
|
+
native `<label>`; VisuallyHidden -> `sr-only`; Direction -> Direction
|
|
112
|
+
Provider (`direction` prop, not `dir`). Popover Anchor and NavigationMenu
|
|
113
|
+
Indicator have no equivalent: inert passthrough + flag.
|
|
114
|
+
- `button.tsx` migrates to the REAL `@base-ui/react/button` primitive, never
|
|
115
|
+
a hand-rolled useRender wrapper.
|
|
116
|
+
- Behavior deltas are FLAGGED, never silently patched (tabs manual
|
|
117
|
+
activation, menu items not closing on click, nav-menu 50ms delay). The
|
|
118
|
+
target is idiomatic Base UI matching the shadcn base registry.
|
|
119
|
+
- Honest reporting: skipped/reverted files are listed as flagged, never as
|
|
120
|
+
migrated. Pre-existing failures are named as pre-existing.
|
|
121
|
+
|
|
122
|
+
## Verify and report
|
|
123
|
+
|
|
124
|
+
Typecheck per file, build per batch, full build at the end vs the baseline.
|
|
125
|
+
|
|
126
|
+
Reports live in a `.migration/` directory at the project root, ONE FILE PER
|
|
127
|
+
COMPONENT: `.migration/<component>.md` (e.g. `.migration/accordion.md`).
|
|
128
|
+
Rules:
|
|
129
|
+
- Each run writes (or fully overwrites) the file for each component it
|
|
130
|
+
migrated. Re-running a component replaces its report; never touch other
|
|
131
|
+
components' files.
|
|
132
|
+
- A multi-component run ("migrate alert-dialog and dropdown-menu") writes one
|
|
133
|
+
file per component, each self-contained; shared consumer-sweep notes are
|
|
134
|
+
repeated in every affected file.
|
|
135
|
+
- Whole-project mode writes the per-component files plus
|
|
136
|
+
`.migration/project.md` (dependency swap, app-code sweep summary, final
|
|
137
|
+
build result).
|
|
138
|
+
- There is NO index file. Migration status is derived from disk, not
|
|
139
|
+
maintained: scan the project's ui directory (the `ui` alias from shadcn
|
|
140
|
+
info, e.g. components/ui or src/components/ui) for remaining radix imports
|
|
141
|
+
when asked "what's left". End every run's summary with that derived count
|
|
142
|
+
("N wrappers remain on Radix").
|
|
143
|
+
|
|
144
|
+
Each `.migration/<component>.md` uses EXACTLY this structure (it is
|
|
145
|
+
documented publicly; reports must match it):
|
|
146
|
+
|
|
147
|
+
```md
|
|
148
|
+
# <component>
|
|
149
|
+
|
|
150
|
+
<date, strategy used (golden pair via CLI / merge / engine), one-line verdict>
|
|
151
|
+
|
|
152
|
+
## Changed
|
|
153
|
+
|
|
154
|
+
<every file touched, with what changed and why; include file:line for
|
|
155
|
+
anything notable. Confirm the leftover scan is clean:
|
|
156
|
+
grep -n "radix-ui\|@radix-ui" on this component's files>
|
|
157
|
+
|
|
158
|
+
## Left alone
|
|
159
|
+
|
|
160
|
+
<files that look related but were intentionally not touched, with the reason
|
|
161
|
+
(cmdk/vaul/sonner are not radix; unrelated drift; etc.)>
|
|
162
|
+
|
|
163
|
+
## Behavior changes
|
|
164
|
+
|
|
165
|
+
<differences that compile fine but act differently; flagged, never patched
|
|
166
|
+
(tabs activation, menu close-on-click, delays...). Empty section if none>
|
|
167
|
+
|
|
168
|
+
## Verify by hand
|
|
169
|
+
|
|
170
|
+
<short manual QA checklist for this primitive family: focus return on
|
|
171
|
+
dialogs, keyboard nav + typeahead on menus/select, tooltip delay feel,
|
|
172
|
+
slider commit events. Concrete steps, one minute of clicking>
|
|
173
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Class-string rewrites (layer 2)
|
|
2
|
+
|
|
3
|
+
Apply these across ALL class strings (className, cva definitions, cn calls),
|
|
4
|
+
including app code. They are safe, mechanical rewrites.
|
|
5
|
+
|
|
6
|
+
## Data-attribute selectors
|
|
7
|
+
|
|
8
|
+
| Radix pattern | Base UI pattern |
|
|
9
|
+
|---|---|
|
|
10
|
+
| `data-[state=open]:` | `data-open:` |
|
|
11
|
+
| `data-[state=closed]:` | `data-closed:` |
|
|
12
|
+
| `data-[state=checked]:` | `data-checked:` |
|
|
13
|
+
| `data-[state=unchecked]:` | `data-unchecked:` |
|
|
14
|
+
| `data-[state=active]:` (tabs) | `data-active:` |
|
|
15
|
+
| `data-[state=on]:` (toggle) | `data-pressed:` |
|
|
16
|
+
| `data-[highlighted]:` | `data-highlighted:` (unchanged) |
|
|
17
|
+
| `data-[disabled]:` | `data-disabled:` (unchanged) |
|
|
18
|
+
| `data-[side=...]:` | `data-[side=...]:` (unchanged, still parameterized) |
|
|
19
|
+
| `group-data-[state=open]` / `peer-data-[state=open]` | `group-data-open` / `peer-data-open` |
|
|
20
|
+
| submenu trigger open marker `data-[state=open]:` | `data-popup-open:` |
|
|
21
|
+
|
|
22
|
+
## Animation idiom
|
|
23
|
+
|
|
24
|
+
Radix (tw-animate/keyframes):
|
|
25
|
+
`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0`
|
|
26
|
+
|
|
27
|
+
Base UI (transition + starting/ending styles):
|
|
28
|
+
`transition-[opacity,transform] data-starting-style:opacity-0 data-ending-style:opacity-0` (plus translate/scale equivalents).
|
|
29
|
+
|
|
30
|
+
Do not translate animate-in/out utilities 1:1; restate the intent with
|
|
31
|
+
`data-starting-style:` / `data-ending-style:` transitions. When the original
|
|
32
|
+
uses per-side slide classes, keep the `data-[side=...]` or
|
|
33
|
+
`data-[swipe-direction=...]` parameterization.
|
|
34
|
+
|
|
35
|
+
## CSS variables
|
|
36
|
+
|
|
37
|
+
| Radix var | Base UI var |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `--radix-<comp>-content-transform-origin` | `--transform-origin` |
|
|
40
|
+
| `--radix-<comp>-content-available-height` | `--available-height` |
|
|
41
|
+
| `--radix-<comp>-content-available-width` | `--available-width` |
|
|
42
|
+
| `--radix-<comp>-trigger-width` | `--anchor-width` |
|
|
43
|
+
| `--radix-<comp>-trigger-height` | `--anchor-height` |
|
|
44
|
+
| `--radix-accordion-content-height` | `--accordion-panel-height` |
|
|
45
|
+
| `--radix-collapsible-content-height` | `--collapsible-panel-height` |
|
|
46
|
+
| `--radix-navigation-menu-viewport-height/width` | `--positioner-height` / `--positioner-width` |
|
|
47
|
+
|
|
48
|
+
## Element changes kill pseudo-class variants
|
|
49
|
+
|
|
50
|
+
When a part's rendered element changes from a form control to a generic
|
|
51
|
+
element (checkbox/switch/radio Roots render `<span>` in Base UI), `disabled:`
|
|
52
|
+
and `:disabled` Tailwind variants become dead code. Replace them with
|
|
53
|
+
`data-disabled:` equivalents. (Note: the shadcn base registry's checkbox
|
|
54
|
+
still carries the dead `disabled:*` classes; treat that as an upstream quirk,
|
|
55
|
+
not a pattern to copy.)
|
|
56
|
+
|
|
57
|
+
## Disabled-state hooks
|
|
58
|
+
|
|
59
|
+
Some Base UI triggers surface disabled state as `aria-disabled` rather than
|
|
60
|
+
the `disabled` attribute (accordion trigger, tabs tab). Where the radix code
|
|
61
|
+
used `disabled:opacity-50`, add or substitute `aria-disabled:opacity-50`
|
|
62
|
+
according to the wrapper's reference file.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Consumer-side prop changes (call sites, not wrappers)
|
|
2
|
+
|
|
3
|
+
The shadcn wrapper NAMES survive a radix -> base-ui migration, but these props
|
|
4
|
+
change or disappear at CALL SITES in app code. Sweep every consumer for this
|
|
5
|
+
list after migrating the wrappers. All entries verified against
|
|
6
|
+
@base-ui/react@1.6.0 type definitions during real migrations; when in doubt,
|
|
7
|
+
check node_modules/@base-ui/react/**/*.d.ts, never guess.
|
|
8
|
+
|
|
9
|
+
## Universal
|
|
10
|
+
|
|
11
|
+
| Radix | Base UI | Call-site action |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `asChild` (any wrapper) | `render` prop | `<Trigger asChild><Button/></Trigger>` -> `<Trigger render={<Button/>}>...` |
|
|
14
|
+
|
|
15
|
+
## Per component
|
|
16
|
+
|
|
17
|
+
| Component | Radix prop | Base UI fate | Call-site action |
|
|
18
|
+
|---|---|---|---|
|
|
19
|
+
| Accordion | `type="single"\|"multiple"` + `collapsible` | dropped; `value`/`defaultValue` are ALWAYS arrays; multiple-open via `multiple` | `type="single" collapsible` -> remove both; wrap values in arrays; `type="multiple"` -> `multiple` |
|
|
20
|
+
| Tabs | `activationMode="manual"` | dropped; Base UI defaults to MANUAL activation | remove prop; near-equivalent opt-in is `Tabs.List activateOnFocus` (behavior delta: flag, do not auto-add) |
|
|
21
|
+
| Select | `position="popper"\|"item-aligned"` | `alignItemWithTrigger` boolean (on Positioner; wrappers expose it) | `position="popper"` -> `alignItemWithTrigger={false}`; `item-aligned` -> `alignItemWithTrigger` (default) |
|
|
22
|
+
| TooltipProvider | `delayDuration`, `skipDelayDuration` | `delay`; skip-delay concept dropped | rename / remove |
|
|
23
|
+
| Tooltip | `disableHoverableContent` | NO equivalent | remove; FLAG the behavior change in the report |
|
|
24
|
+
| Avatar.Image | `delayMs` | `delay` | rename |
|
|
25
|
+
| ScrollArea | `type="always"\|"scroll"\|...` | dropped | remove |
|
|
26
|
+
| Separator | `decorative` | dropped | remove |
|
|
27
|
+
| Checkbox | `checked="indeterminate"` | `indeterminate` is a SEPARATE boolean prop | `checked="indeterminate"` -> `indeterminate` + boolean `checked` |
|
|
28
|
+
| Slider | `onValueChange(value)` | signature gains event details; also `inverted` REMOVED | check handler arity; remove `inverted` (flag vertical-inverted usage) |
|
|
29
|
+
| Select | `onValueChange(value: string)` | widens to `(value: Value \| null, eventDetails)` | `useState<string>` + `onValueChange={setState}` breaks: widen state to `string \| null` or wrap the setter |
|
|
30
|
+
| Slider | `onValueCommit` | `onValueCommitted` | rename |
|
|
31
|
+
| ToggleGroup | `type="single"\|"multiple"` | `multiple` boolean; value shape arrays | same treatment as Accordion |
|
|
32
|
+
| ToggleGroup / Toolbar | `rovingFocus={false}` | dropped (roving focus always on); `loop` -> `loopFocus` | remove / rename |
|
|
33
|
+
| Menubar | `value`/`onValueChange` (active menu) | dropped; control per Menu.Root `open` | restructure if used; usually unused |
|
|
34
|
+
| Menubar | `loop` | `loopFocus` | rename |
|
|
35
|
+
| ContextMenu.Root | `modal` | REMOVED | remove |
|
|
36
|
+
| ContextMenu.Trigger | `disabled` | REMOVED | remove; gate the trigger yourself |
|
|
37
|
+
| DropdownMenu/ContextMenu items | (Radix closed menu on select) | `closeOnClick` defaults FALSE on CheckboxItem/RadioItem | behavior delta: flag; add `closeOnClick` only if the user asks |
|
|
38
|
+
| NavigationMenu | `delayDuration`(200), `skipDelayDuration`, `viewport` | `delay`(50) + `closeDelay`; viewport prop gone (Positioner handles it) | rename/remove; flag the 200->50 hover-delay feel change |
|
|
39
|
+
| Popover / HoverCard | `openDelay`/`closeDelay` on Root | move to TRIGGER as `delay`/`closeDelay` | relocate props Root -> Trigger |
|
|
40
|
+
| Dialog / AlertDialog | `onOpenAutoFocus` | `initialFocus` (element/ref-based, not event-based) | restructure: pass target instead of preventDefault handler |
|
|
41
|
+
| Dialog / AlertDialog | `onCloseAutoFocus` | `finalFocus` | same restructure |
|
|
42
|
+
| Dialog family | `onEscapeKeyDown`, `onPointerDownOutside`, `onInteractOutside` | consolidated; see the overlays reference for exact per-part signatures | consult overlays.md; do not guess |
|
|
43
|
+
| DirectionProvider | `dir` | `direction` | rename |
|
|
44
|
+
|
|
45
|
+
## Callback signature rule
|
|
46
|
+
|
|
47
|
+
Base UI callbacks commonly gain an event-details argument:
|
|
48
|
+
`onOpenChange(open, eventDetails)`, `onValueChange(value, eventDetails)`.
|
|
49
|
+
Passing an existing single-arg handler stays type-safe; handlers that USED
|
|
50
|
+
Radix's event parameter need review against the family reference file.
|
|
51
|
+
|
|
52
|
+
## Sweep procedure
|
|
53
|
+
|
|
54
|
+
1. grep app code (outside components/ui) for each LHS token above plus
|
|
55
|
+
`asChild`.
|
|
56
|
+
2. Fix call sites file by file; typecheck after each file.
|
|
57
|
+
3. Anything on this list marked FLAG goes into the migration report as a
|
|
58
|
+
behavior delta, never silently patched.
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
# Radix → Base UI props mapping: disclosure + toggle family
|
|
2
|
+
|
|
3
|
+
Scope: accordion, collapsible, tabs, toggle, toggle-group, toolbar.
|
|
4
|
+
Sources: radix-ui.com primitives docs + base-ui.com `.md` docs, cross-checked against installed `@base-ui/react@1.6.0` `.d.ts` files (the published docs page for accordion lagged; types are authoritative here).
|
|
5
|
+
|
|
6
|
+
Conventions that apply to every component below:
|
|
7
|
+
|
|
8
|
+
- `asChild` (boolean, default `false`) → `render` (`ReactElement | (props: HTMLProps, state) => ReactElement`). Signature changed: instead of a lone child element, pass the element to `render`; Base UI merges props onto it. Button-rendering parts additionally accept `nativeButton` (default `true`), set it to `false` when `render` produces a non-`<button>` element.
|
|
9
|
+
- Base UI `className` and `style` also accept a `(state) => value` function form.
|
|
10
|
+
- Radix `data-[state=...]` value attributes become Base UI presence attributes (`data-open`, `data-closed`, `data-pressed`, `data-active`).
|
|
11
|
+
- Base UI change callbacks all gained a second `eventDetails` argument (`{ reason, event, cancel(), ... }`).
|
|
12
|
+
- Radix `dir` props are dropped everywhere; Base UI reads direction from the DOM `dir` attribute / `DirectionProvider`.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# accordion
|
|
17
|
+
|
|
18
|
+
Part mapping: `Root → Root`, `Item → Item`, `Header → Header`, `Trigger → Trigger`, `Content → Panel`.
|
|
19
|
+
|
|
20
|
+
## Accordion.Root → Accordion.Root
|
|
21
|
+
|
|
22
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
23
|
+
|---|---|---|---|
|
|
24
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. Pass element to `render` instead of wrapping a child. |
|
|
25
|
+
| `type` (required) | `"single" \| "multiple"` / — | `multiple` | Signature changed. `type="multiple"` → `multiple` (boolean, default `false`); `type="single"` → omit. |
|
|
26
|
+
| `value` | `string` (single) or `string[]` (multiple) / — | `value` | Signature changed. Base UI is ALWAYS an array (`Value[]`, `Value = any`), even in single mode: `value="a"` → `value={["a"]}`. |
|
|
27
|
+
| `defaultValue` | `string` or `string[]` / — | `defaultValue` | Same array caveat as `value`. |
|
|
28
|
+
| `onValueChange` | `(value: string) => void` or `(value: string[]) => void` / — | `onValueChange` | Signature changed: `(value: Value[], eventDetails: Accordion.Root.ChangeEventDetails) => void`. Always receives an array; unwrap `value[0]` for single mode. |
|
|
29
|
+
| `collapsible` | `boolean` / `false` | — dropped | Base UI single mode is always collapsible. To forbid closing the last open item (Radix `collapsible={false}` default), control `value` and ignore updates where the array is empty, or call `eventDetails.cancel()` when `value.length === 0`. |
|
|
30
|
+
| `disabled` | `boolean` / `false` | `disabled` (default `false`) | Same. |
|
|
31
|
+
| `dir` | `"ltr" \| "rtl"` / `"ltr"` | — dropped | Use DOM `dir` attribute / `DirectionProvider`. |
|
|
32
|
+
| `orientation` | `"vertical" \| "horizontal"` / `"vertical"` | — dropped (prop exists but deprecated no-op) | Base UI removed roving arrow-key focus per the APG guidance update, so `orientation` (and `loopFocus`) no longer affect keyboard behavior. Do not carry it over. |
|
|
33
|
+
|
|
34
|
+
## Accordion.Item → Accordion.Item
|
|
35
|
+
|
|
36
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
37
|
+
|---|---|---|---|
|
|
38
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
39
|
+
| `value` (required) | `string` / — | `value` | Renamed constraint: Base UI `value` is `any` and OPTIONAL (auto-generated from index when omitted). Keep passing strings for parity. |
|
|
40
|
+
| `disabled` | `boolean` / `false` | `disabled` (default `false`) | Same. |
|
|
41
|
+
|
|
42
|
+
## Accordion.Header → Accordion.Header
|
|
43
|
+
|
|
44
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
45
|
+
|---|---|---|---|
|
|
46
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. Both render `<h3>` by default. |
|
|
47
|
+
|
|
48
|
+
## Accordion.Trigger → Accordion.Trigger
|
|
49
|
+
|
|
50
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
51
|
+
|---|---|---|---|
|
|
52
|
+
| `asChild` | `boolean` / `false` | `render` (+ `nativeButton`, default `true`) | Signature changed. |
|
|
53
|
+
|
|
54
|
+
## Accordion.Content → Accordion.Panel
|
|
55
|
+
|
|
56
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
57
|
+
|---|---|---|---|
|
|
58
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
59
|
+
| `forceMount` | `true \| undefined` / — | `keepMounted` (boolean, default `false`) | Renamed. `forceMount` → `keepMounted` (closed panel stays in DOM, hidden). Also available on `Root` to apply to all panels. |
|
|
60
|
+
|
|
61
|
+
## Base UI only props worth knowing
|
|
62
|
+
|
|
63
|
+
- `Root.hiddenUntilFound` / `Panel.hiddenUntilFound` (default `false`): uses `hidden="until-found"` so browser find-in-page can expand panels; overrides `keepMounted`. No Radix equivalent.
|
|
64
|
+
- `Root.keepMounted`: root-level version of the per-panel prop.
|
|
65
|
+
- `Item.onOpenChange`: `(open: boolean, eventDetails: Accordion.Item.ChangeEventDetails) => void`, per-item open callback. No Radix equivalent.
|
|
66
|
+
- `Trigger.nativeButton` (default `true`).
|
|
67
|
+
- `className` / `style` state-function forms on every part.
|
|
68
|
+
|
|
69
|
+
## Data-attribute mapping
|
|
70
|
+
|
|
71
|
+
| Radix | Base UI | Note |
|
|
72
|
+
|---|---|---|
|
|
73
|
+
| `Item/Header/Content [data-state="open" \| "closed"]` | `Item`, `Header`: `data-open` (presence); `Panel`: `data-open` (presence) | No `data-closed` on accordion parts (unlike collapsible); style closed state as the absence of `data-open`. |
|
|
74
|
+
| `Trigger [data-state="open"]` | `Trigger [data-panel-open]` | Renamed. Trigger specifically uses `data-panel-open`, NOT `data-open`. |
|
|
75
|
+
| `[data-disabled]` | `[data-disabled]` | Same (Root, Item, Header, Trigger, Panel). |
|
|
76
|
+
| `[data-orientation]` (all parts) | `Root`, `Panel`: `data-orientation` | Deprecated along with orientation; avoid relying on it. |
|
|
77
|
+
| — | `Item/Header/Panel [data-index]` | Base UI only: numeric item index. |
|
|
78
|
+
| — | `Panel [data-starting-style]`, `[data-ending-style]` | Base UI only: CSS-transition animation hooks (replace Radix mount/unmount animation pattern). |
|
|
79
|
+
|
|
80
|
+
## CSS var mapping
|
|
81
|
+
|
|
82
|
+
| Radix | Base UI |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `--radix-accordion-content-height` | `--accordion-panel-height` |
|
|
85
|
+
| `--radix-accordion-content-width` | `--accordion-panel-width` |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
# collapsible
|
|
90
|
+
|
|
91
|
+
Part mapping: `Root → Root`, `Trigger → Trigger`, `Content → Panel`.
|
|
92
|
+
|
|
93
|
+
## Collapsible.Root → Collapsible.Root
|
|
94
|
+
|
|
95
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
96
|
+
|---|---|---|---|
|
|
97
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
98
|
+
| `defaultOpen` | `boolean` / — | `defaultOpen` (default `false`) | Same. |
|
|
99
|
+
| `open` | `boolean` / — | `open` | Same. |
|
|
100
|
+
| `onOpenChange` | `(open: boolean) => void` / — | `onOpenChange` | Signature changed: `(open: boolean, eventDetails: Collapsible.Root.ChangeEventDetails) => void`. |
|
|
101
|
+
| `disabled` | `boolean` / — | `disabled` (default `false`) | Same. |
|
|
102
|
+
|
|
103
|
+
## Collapsible.Trigger → Collapsible.Trigger
|
|
104
|
+
|
|
105
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
106
|
+
|---|---|---|---|
|
|
107
|
+
| `asChild` | `boolean` / `false` | `render` (+ `nativeButton`, default `true`) | Signature changed. |
|
|
108
|
+
|
|
109
|
+
## Collapsible.Content → Collapsible.Panel
|
|
110
|
+
|
|
111
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
112
|
+
|---|---|---|---|
|
|
113
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
114
|
+
| `forceMount` | `true \| undefined` / — | `keepMounted` (boolean, default `false`) | Renamed. |
|
|
115
|
+
|
|
116
|
+
## Base UI only props worth knowing
|
|
117
|
+
|
|
118
|
+
- `Panel.hiddenUntilFound` (default `false`): find-in-page support via `hidden="until-found"`; overrides `keepMounted`.
|
|
119
|
+
- `Trigger.nativeButton` (default `true`).
|
|
120
|
+
- `className` / `style` state-function forms.
|
|
121
|
+
|
|
122
|
+
## Data-attribute mapping
|
|
123
|
+
|
|
124
|
+
| Radix | Base UI | Note |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| `Root/Content [data-state="open" \| "closed"]` | `Panel [data-open]` / `[data-closed]` | Renamed to presence attributes. Base UI Root renders a plain `<div>`; state attrs live on Panel/Trigger. |
|
|
127
|
+
| `Trigger [data-state="open"]` | `Trigger [data-panel-open]` | Renamed; trigger-specific name. |
|
|
128
|
+
| `[data-disabled]` | — (not emitted on collapsible parts) | Gate styles on the `disabled` prop / `:disabled` on the trigger instead. |
|
|
129
|
+
| — | `Panel [data-starting-style]`, `[data-ending-style]` | Base UI only: animation hooks. |
|
|
130
|
+
|
|
131
|
+
## CSS var mapping
|
|
132
|
+
|
|
133
|
+
| Radix | Base UI |
|
|
134
|
+
|---|---|
|
|
135
|
+
| `--radix-collapsible-content-height` | `--collapsible-panel-height` |
|
|
136
|
+
| `--radix-collapsible-content-width` | `--collapsible-panel-width` |
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
# tabs
|
|
141
|
+
|
|
142
|
+
Part mapping: `Root → Root`, `List → List`, `Trigger → Tab`, `Content → Panel`. Base UI adds an `Indicator` part with no Radix equivalent.
|
|
143
|
+
|
|
144
|
+
## Tabs.Root → Tabs.Root
|
|
145
|
+
|
|
146
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
147
|
+
|---|---|---|---|
|
|
148
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
149
|
+
| `defaultValue` | `string` / — | `defaultValue` | Signature changed: Base UI value type is `Tabs.Tab.Value` (`any`), default `0` (first tab active by default; Radix has no default active tab). Strings still work unchanged. |
|
|
150
|
+
| `value` | `string` / — | `value` | Same shape for string values; type widened to `any`. |
|
|
151
|
+
| `onValueChange` | `(value: string) => void` / — | `onValueChange` | Signature changed: `(value: Tabs.Tab.Value, eventDetails: Tabs.Root.ChangeEventDetails) => void`. |
|
|
152
|
+
| `orientation` | `"horizontal" \| "vertical"` / `"horizontal"` | `orientation` (default `'horizontal'`) | Same. |
|
|
153
|
+
| `dir` | `"ltr" \| "rtl"` / — | — dropped | Use DOM `dir` / `DirectionProvider`. |
|
|
154
|
+
| `activationMode` | `"automatic" \| "manual"` / `"automatic"` | moved + renamed: `List.activateOnFocus` (boolean, default `false`) | Moved from Root to List and inverted DEFAULT: Radix defaults to automatic, Base UI 1.6.0 defaults to `false` (manual). To preserve Radix default behavior set `<Tabs.List activateOnFocus>`; `activationMode="manual"` → omit. |
|
|
155
|
+
|
|
156
|
+
## Tabs.List → Tabs.List
|
|
157
|
+
|
|
158
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
159
|
+
|---|---|---|---|
|
|
160
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
161
|
+
| `loop` | `boolean` / `true` | `loopFocus` (default `true`) | Renamed. |
|
|
162
|
+
|
|
163
|
+
## Tabs.Trigger → Tabs.Tab
|
|
164
|
+
|
|
165
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
166
|
+
|---|---|---|---|
|
|
167
|
+
| `asChild` | `boolean` / `false` | `render` (+ `nativeButton`, default `true`) | Signature changed. |
|
|
168
|
+
| `value` (required) | `string` / — | `value` (required) | Type widened to `Tabs.Tab.Value` (`any`); strings unchanged. |
|
|
169
|
+
| `disabled` | `boolean` / `false` | `disabled` | Same. |
|
|
170
|
+
|
|
171
|
+
## Tabs.Content → Tabs.Panel
|
|
172
|
+
|
|
173
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
174
|
+
|---|---|---|---|
|
|
175
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
176
|
+
| `value` (required) | `string` / — | `value` (required) | Type widened; strings unchanged. |
|
|
177
|
+
| `forceMount` | `true \| undefined` / — | `keepMounted` (boolean, default `false`) | Renamed. Hidden panels stay in DOM with `data-hidden`. |
|
|
178
|
+
|
|
179
|
+
## Base UI only props worth knowing
|
|
180
|
+
|
|
181
|
+
- `Tabs.Indicator`: new part, a `<span>` that tracks the active tab for sliding-highlight UIs; `renderBeforeHydration` (default `false`) for SSR-flash avoidance. Exposes the `--active-tab-*` CSS vars below.
|
|
182
|
+
- `List.activateOnFocus` (see above).
|
|
183
|
+
- `Tab.nativeButton`, state-function `className`/`style` on all parts.
|
|
184
|
+
|
|
185
|
+
## Data-attribute mapping
|
|
186
|
+
|
|
187
|
+
| Radix | Base UI | Note |
|
|
188
|
+
|---|---|---|
|
|
189
|
+
| `Trigger [data-state="active" \| "inactive"]` | `Tab [data-active]` (presence) | Renamed. Inactive = absence of `data-active`. |
|
|
190
|
+
| `Content [data-state="active" \| "inactive"]` | `Panel [data-hidden]` (presence when hidden) | Inverted polarity: Radix marks the active state, Base UI marks the hidden state. |
|
|
191
|
+
| `[data-orientation]` (all parts) | `[data-orientation]` (Root, List, Tab, Panel, Indicator) | Same. |
|
|
192
|
+
| `Trigger [data-disabled]` | `Tab [data-disabled]` | Same. |
|
|
193
|
+
| — | `[data-activation-direction]` (`'left' \| 'right' \| 'up' \| 'down' \| 'none'`, all parts) | Base UI only: direction of the last tab change, useful for directional animations. |
|
|
194
|
+
| — | `Panel [data-index]`, `[data-starting-style]`, `[data-ending-style]` | Base UI only. |
|
|
195
|
+
|
|
196
|
+
## CSS var mapping
|
|
197
|
+
|
|
198
|
+
Radix Tabs exposes no CSS variables. Base UI only (on `Indicator`): `--active-tab-left`, `--active-tab-right`, `--active-tab-top`, `--active-tab-bottom`, `--active-tab-width`, `--active-tab-height`.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
# toggle
|
|
203
|
+
|
|
204
|
+
Part mapping: `Toggle.Root → Toggle` (single-part; Base UI export is directly callable, no `.Root`).
|
|
205
|
+
|
|
206
|
+
## Toggle.Root → Toggle
|
|
207
|
+
|
|
208
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
209
|
+
|---|---|---|---|
|
|
210
|
+
| `asChild` | `boolean` / `false` | `render` (+ `nativeButton`, default `true`) | Signature changed. |
|
|
211
|
+
| `defaultPressed` | `boolean` / — | `defaultPressed` (default `false`) | Same. |
|
|
212
|
+
| `pressed` | `boolean` / — | `pressed` | Same. |
|
|
213
|
+
| `onPressedChange` | `(pressed: boolean) => void` / — | `onPressedChange` | Signature changed: `(pressed: boolean, eventDetails: Toggle.ChangeEventDetails) => void`. |
|
|
214
|
+
| `disabled` | `boolean` / — | `disabled` (default `false`) | Same. |
|
|
215
|
+
|
|
216
|
+
## Base UI only props worth knowing
|
|
217
|
+
|
|
218
|
+
- `value?: string`: identifies the toggle inside a Base UI `ToggleGroup` (this replaces Radix `ToggleGroup.Item`'s `value`, see toggle-group below).
|
|
219
|
+
- `nativeButton` (default `true`), state-function `className`/`style`.
|
|
220
|
+
|
|
221
|
+
## Data-attribute mapping
|
|
222
|
+
|
|
223
|
+
| Radix | Base UI | Note |
|
|
224
|
+
|---|---|---|
|
|
225
|
+
| `[data-state="on" \| "off"]` | `[data-pressed]` (presence) | Renamed. Off = absence of `data-pressed`. |
|
|
226
|
+
| `[data-disabled]` | `[data-disabled]` | Same. |
|
|
227
|
+
|
|
228
|
+
## CSS var mapping
|
|
229
|
+
|
|
230
|
+
None on either side.
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
# toggle-group
|
|
235
|
+
|
|
236
|
+
Part mapping: `ToggleGroup.Root → ToggleGroup` (callable single export), `ToggleGroup.Item → Toggle` (Base UI reuses the Toggle primitive as group items).
|
|
237
|
+
|
|
238
|
+
## ToggleGroup.Root → ToggleGroup
|
|
239
|
+
|
|
240
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
241
|
+
|---|---|---|---|
|
|
242
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
243
|
+
| `type` (required) | `"single" \| "multiple"` / — | `multiple` (boolean, default `false`) | Signature changed, same pattern as accordion. |
|
|
244
|
+
| `value` | `string` (single) or `string[]` (multiple) / — | `value` | Signature changed: always `readonly Value[]` (array), even single mode. `value="bold"` → `value={["bold"]}`. |
|
|
245
|
+
| `defaultValue` | `string` or `string[]` / — | `defaultValue` | Same array caveat. |
|
|
246
|
+
| `onValueChange` | `(value: string) => void` or `(value: string[]) => void` / — | `onValueChange` | Signature changed: `(groupValue: Value[], eventDetails: ToggleGroup.ChangeEventDetails) => void`. Always an array; single mode with nothing pressed = `[]` (Radix single mode signals this as `""`). |
|
|
247
|
+
| `disabled` | `boolean` / `false` | `disabled` (default `false`) | Same. |
|
|
248
|
+
| `rovingFocus` | `boolean` / `true` | — dropped | Roving focus is always on in Base UI; no opt-out. If you relied on `rovingFocus={false}` (every item tabbable), there is no direct workaround. |
|
|
249
|
+
| `orientation` | `"horizontal" \| "vertical"` / `undefined` | `orientation` (default `'horizontal'`) | Same name; Base UI has an explicit default. |
|
|
250
|
+
| `dir` | `"ltr" \| "rtl"` / — | — dropped | Use DOM `dir` / `DirectionProvider`. |
|
|
251
|
+
| `loop` | `boolean` / `true` | `loopFocus` (default `true`) | Renamed. |
|
|
252
|
+
|
|
253
|
+
## ToggleGroup.Item → Toggle
|
|
254
|
+
|
|
255
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
256
|
+
|---|---|---|---|
|
|
257
|
+
| `asChild` | `boolean` / `false` | `render` (+ `nativeButton`, default `true`) | Signature changed. |
|
|
258
|
+
| `value` (required) | `string` / — | `value` | Same meaning; on Base UI's `Toggle` it is optional in the type but required in practice for group membership. |
|
|
259
|
+
| `disabled` | `boolean` / — | `disabled` (default `false`) | Same. |
|
|
260
|
+
|
|
261
|
+
Note: the item also gains the full standalone `Toggle` API (`pressed`, `defaultPressed`, `onPressedChange` with `eventDetails`) since it IS the Toggle primitive; inside a group the group value normally drives pressed state.
|
|
262
|
+
|
|
263
|
+
## Base UI only props worth knowing
|
|
264
|
+
|
|
265
|
+
- `multiple` (covered above) and the always-array value model.
|
|
266
|
+
- Items are plain `Toggle`s, so per-item `onPressedChange` is available.
|
|
267
|
+
- State-function `className`/`style`.
|
|
268
|
+
|
|
269
|
+
## Data-attribute mapping
|
|
270
|
+
|
|
271
|
+
| Radix | Base UI | Note |
|
|
272
|
+
|---|---|---|
|
|
273
|
+
| `Item [data-state="on" \| "off"]` | `Toggle [data-pressed]` (presence) | Renamed. |
|
|
274
|
+
| `Item [data-disabled]` | `Toggle [data-disabled]` | Same. |
|
|
275
|
+
| `Root/Item [data-orientation]` | `ToggleGroup [data-orientation]` | On the group only; items (Toggles) do not emit it. |
|
|
276
|
+
| — | `ToggleGroup [data-disabled]`, `[data-multiple]` | Base UI only. |
|
|
277
|
+
|
|
278
|
+
## CSS var mapping
|
|
279
|
+
|
|
280
|
+
None on either side.
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
# toolbar
|
|
285
|
+
|
|
286
|
+
Part mapping: `Root → Root`, `Button → Button`, `Link → Link`, `Separator → Separator`. `Toolbar.ToggleGroup`/`Toolbar.ToggleItem` are DROPPED as dedicated parts: compose the standalone `ToggleGroup` with `<Toolbar.Button render={<Toggle />} value="...">` as items (Base UI docs pattern). Base UI adds `Group` and `Input` parts with no Radix equivalent.
|
|
287
|
+
|
|
288
|
+
## Toolbar.Root → Toolbar.Root
|
|
289
|
+
|
|
290
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
291
|
+
|---|---|---|---|
|
|
292
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
293
|
+
| `orientation` | `"horizontal" \| "vertical"` / `"horizontal"` | `orientation` (default `'horizontal'`) | Same. |
|
|
294
|
+
| `dir` | `"ltr" \| "rtl"` / — | — dropped | Use DOM `dir` / `DirectionProvider`. |
|
|
295
|
+
| `loop` | `boolean` / `true` | `loopFocus` (default `true`) | Renamed. |
|
|
296
|
+
|
|
297
|
+
## Toolbar.Button → Toolbar.Button
|
|
298
|
+
|
|
299
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
300
|
+
|---|---|---|---|
|
|
301
|
+
| `asChild` | `boolean` / `false` | `render` (+ `nativeButton`, default `true`) | Signature changed. |
|
|
302
|
+
|
|
303
|
+
## Toolbar.Link → Toolbar.Link
|
|
304
|
+
|
|
305
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
306
|
+
|---|---|---|---|
|
|
307
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. Both render `<a>`. |
|
|
308
|
+
|
|
309
|
+
## Toolbar.ToggleGroup → ToggleGroup (standalone, composed)
|
|
310
|
+
|
|
311
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
312
|
+
|---|---|---|---|
|
|
313
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
314
|
+
| `type` (required) | `"single" \| "multiple"` / — | `multiple` (boolean, default `false`) | Moved: use the standalone `ToggleGroup` component inside `Toolbar.Root`; same mapping as toggle-group above. |
|
|
315
|
+
| `value` / `defaultValue` | `string` or `string[]` / — | `value` / `defaultValue` on `ToggleGroup` | Always an array (see toggle-group). |
|
|
316
|
+
| `onValueChange` | `(value: string \| string[]) => void` / — | `onValueChange` on `ToggleGroup` | `(groupValue: Value[], eventDetails) => void`. |
|
|
317
|
+
| `disabled` | `boolean` / `false` | `disabled` on `ToggleGroup` | Same. |
|
|
318
|
+
|
|
319
|
+
## Toolbar.ToggleItem → Toolbar.Button render={<Toggle />}
|
|
320
|
+
|
|
321
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
322
|
+
|---|---|---|---|
|
|
323
|
+
| `asChild` | `boolean` / `false` | — | Moved: the composition IS the render prop: `<Toolbar.Button render={<Toggle />} value="bold" />`. Toolbar.Button supplies toolbar focus behavior, Toggle supplies pressed state. |
|
|
324
|
+
| `value` (required) | `string` / — | `value` (on the composed element) | Same. |
|
|
325
|
+
| `disabled` | `boolean` / — | `disabled` (on `Toolbar.Button`, default `false`) | Same; note `focusableWhenDisabled` defaults to `true` (disabled items stay focusable, Radix disabled items are not). |
|
|
326
|
+
|
|
327
|
+
## Toolbar.Separator → Toolbar.Separator
|
|
328
|
+
|
|
329
|
+
| Radix prop | Type / default | Base UI equivalent | Migration note |
|
|
330
|
+
|---|---|---|---|
|
|
331
|
+
| `asChild` | `boolean` / `false` | `render` | Signature changed. |
|
|
332
|
+
| — | — | `orientation` | Base UI only: defaults to the OPPOSITE of the toolbar's orientation (horizontal toolbar → vertical separator), which matches Radix's automatic behavior; usually omit. |
|
|
333
|
+
|
|
334
|
+
## Base UI only props worth knowing
|
|
335
|
+
|
|
336
|
+
- `Root.disabled`: disables the entire toolbar (no Radix equivalent).
|
|
337
|
+
- `Toolbar.Group` (new part): groups related items, with a group-level `disabled` (default `false`).
|
|
338
|
+
- `Toolbar.Input` (new part): `<input>` wired into toolbar arrow-key navigation; `defaultValue`, `disabled` (default `false`), `focusableWhenDisabled` (default `true`).
|
|
339
|
+
- `Button.disabled` (default `false`) + `Button.focusableWhenDisabled` (default `true`): disabled buttons remain focusable for discoverability; set `focusableWhenDisabled={false}` for Radix-like behavior.
|
|
340
|
+
- `Button.nativeButton` (default `true`), state-function `className`/`style` on all parts.
|
|
341
|
+
|
|
342
|
+
## Data-attribute mapping
|
|
343
|
+
|
|
344
|
+
| Radix | Base UI | Note |
|
|
345
|
+
|---|---|---|
|
|
346
|
+
| `[data-orientation]` (Root, Button, ToggleGroup, ToggleItem, Separator) | `[data-orientation]` (Root, Button, Link, Input, Group, Separator) | Same; Separator's value is perpendicular to the toolbar. |
|
|
347
|
+
| `ToggleItem [data-state="on" \| "off"]` | `[data-pressed]` (presence, from the composed `Toggle`) | Renamed. |
|
|
348
|
+
| `ToggleItem [data-disabled]` | `[data-disabled]` (Root, Button, Input, Group) | Same. |
|
|
349
|
+
| — | `Button/Input [data-focusable]` | Base UI only: present when focusable-while-disabled. |
|
|
350
|
+
|
|
351
|
+
## CSS var mapping
|
|
352
|
+
|
|
353
|
+
None on either side.
|