diff --git a/.changeset/mosaic-icon-stylex.md b/.changeset/mosaic-icon-stylex.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/mosaic-icon-stylex.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.changeset/mosaic-typography-stylex.md b/.changeset/mosaic-typography-stylex.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/mosaic-typography-stylex.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.claude/skills/clerk-monorepo/SKILL.md b/.claude/skills/clerk-monorepo/SKILL.md index 6868bb72cbf..e94e35f3480 100644 --- a/.claude/skills/clerk-monorepo/SKILL.md +++ b/.claude/skills/clerk-monorepo/SKILL.md @@ -157,7 +157,9 @@ Each rule below restates `AGENTS.md`; the parenthetical is how it is enforced. 4. Verify locally: `pnpm build`, `pnpm test` (or the filtered forms above), `pnpm lint`, `pnpm format:check`. 5. Open the PR; the title must be a valid conventional commit (it becomes the squash commit). Fill in - the PR template. + the PR template and add nothing beyond its sections — in particular, never write a "Testing" / + "Test plan" / "How to test" section listing the tests added or the checks run. The Checklist + covers that and reviewers read the diff. Describe the change, not the work done on it. Release _policy_ (when/how things ship, canary, snapshot, backports) is in `docs/PUBLISH.md`. This skill stops at opening the PR. diff --git a/AGENTS.md b/AGENTS.md index 65565c4662b..99e9b9bfbbb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,6 +9,7 @@ Clerk's JavaScript SDK and library monorepo. - Use `pnpm` only. `npm` and `yarn` are blocked by `preinstall`. Node `>=24.15`, pnpm `>=10.33`. - Every PR needs a changeset. `pnpm changeset` for package changes, `pnpm changeset:empty` for tooling/repo-only. Empty changesets are two `---` delimiters with no body. A changeset is a changelog entry for users upgrading the package, not a summary of the work done in the PR. Describe the user-facing change (what changed for someone consuming the library and how it affects them) rather than the implementation details of the diff. If a change has no user-facing impact, use an empty changeset. - Commits must be conventional: `type(scope):` (commitlint enforces, on the PR title). `scope` is the package name without `@clerk/`, or `repo` / `release` / `e2e` / `ci` / `*`. `clerk-js` uses scope `js` (`clerk-js` is also accepted). Scope is mandatory; `docs` is a type, not a scope. +- PR descriptions follow `.github/PULL_REQUEST_TEMPLATE.md` and add no sections of their own. Never add a "Testing" (or "Test plan" / "How to test") section summarizing the tests written or the checks run; the Checklist covers that and reviewers read the diff. Describe the change, not the work done on it. - Keep code comments minimal. Do not add a comment unless it is critical to explain WHY a non-obvious change was made; never restate what the code does. When one is warranted, keep it to a single terse line, not a verbose multi-line block. ## References diff --git a/packages/headless/src/primitives/dialog/dialog.test.tsx b/packages/headless/src/primitives/dialog/dialog.test.tsx index d0c1be1124e..06011b50342 100644 --- a/packages/headless/src/primitives/dialog/dialog.test.tsx +++ b/packages/headless/src/primitives/dialog/dialog.test.tsx @@ -193,6 +193,24 @@ describe('Dialog', () => { expect(screen.getByRole('dialog')).toBeInTheDocument(); expect(screen.getByText('Popup content')).toBeInTheDocument(); }); + + it('renders a part into an element passed to `render`', () => { + function Title({ children, ...props }: { children?: React.ReactNode }) { + return
` by default, forwards a ref to the underlying element, and themes its font-size and color through the `size` and `color` variants. Use the `render` prop when the copy belongs in a different element, such as a `` inline.
## Playground
@@ -38,9 +38,9 @@ Text renders body copy in Mosaic. It renders as a ` ` by default, forwards a r
storyModule={TextStories}
/>
-### Intents
+### Colors