From 107c3a12afdadd779f45237de02e743092d571cc Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Fri, 27 Nov 2026 13:42:41 +0530 Subject: [PATCH 1/5] Use SaaS Maker UI throughout the RolePatch web app --- e2e/history.spec.ts | 2 +- e2e/resume-builder.spec.ts | 23 + package.json | 14 +- pnpm-lock.yaml | 574 +++++--------- scripts/check-ui-library.mjs | 83 ++ src/__tests__/workspace-theme.test.tsx | 22 +- src/app/application-theme.css | 1 + src/app/application-utilities.css | 3 +- src/app/cover-letter/[jobId]/error.tsx | 9 +- src/app/dashboard/error.tsx | 9 +- src/app/editor/[id]/error.tsx | 9 +- src/app/error.tsx | 14 +- src/app/global-error.tsx | 6 +- src/app/globals.css | 2 +- src/app/interview-prep/[jobId]/error.tsx | 9 +- src/app/tailor/[jobId]/error.tsx | 9 +- src/app/tools/ats-check/page-view.tsx | 3 +- src/app/tools/bullet-check/page-view.tsx | 3 +- src/app/tools/diff/page-view.tsx | 25 +- src/app/tools/keywords/page-view.tsx | 20 +- src/app/tools/snippets/page-view.tsx | 32 +- src/app/tools/word-count/page-view.tsx | 3 +- src/components/achievement-evidence-bank.tsx | 55 +- src/components/achievement-inputs.tsx | 6 +- src/components/ai-settings.tsx | 41 +- src/components/application-analytics.tsx | 15 +- .../application-campaign-tracker.tsx | 6 +- src/components/application-tracker-fields.tsx | 14 +- src/components/application-tracker.tsx | 94 ++- src/components/apply-agent-command-center.tsx | 213 ++--- src/components/archived-career-profiles.tsx | 9 +- src/components/ats-score-badge.tsx | 12 +- src/components/career-profile-panel.tsx | 59 +- src/components/career-record-editor.tsx | 48 +- src/components/career-resume-studio.tsx | 75 +- src/components/cover-letter-editor.tsx | 76 +- src/components/create-resume-button.tsx | 16 +- src/components/dashboard.tsx | 21 +- src/components/fit-score-card.tsx | 9 +- src/components/interview-prep.tsx | 14 +- src/components/job-details-modal.tsx | 48 +- src/components/job-discovery.tsx | 136 ++-- src/components/job-resume-history.tsx | 15 +- src/components/job-search-tips.tsx | 29 +- src/components/local-resume-correction.tsx | 15 +- src/components/local-resume-export.tsx | 15 +- src/components/master-resume-fields.tsx | 15 +- src/components/master-resume-guide.tsx | 32 +- src/components/migration-banner.tsx | 16 +- src/components/new-job-button.tsx | 33 +- src/components/outreach-panel.tsx | 31 +- src/components/pricing-cards-view.tsx | 11 +- src/components/proof-packet-preview-view.tsx | 6 +- .../recruiter-reply-routing-card.tsx | 22 +- src/components/resume-api-access.tsx | 38 +- src/components/resume-builder.tsx | 43 +- src/components/resume-content-block.tsx | 8 +- src/components/resume-diff.tsx | 29 +- src/components/resume-editor.tsx | 97 ++- src/components/resume-import-button.tsx | 3 +- src/components/resume-name-editor.tsx | 9 +- src/components/resume-oauth-consent.tsx | 16 +- src/components/resume-refinement.tsx | 50 +- src/components/saasmaker-feedback.tsx | 5 +- src/components/share-score-button.tsx | 16 +- src/components/signed-in-user-menu.tsx | 33 +- src/components/site-nav.tsx | 6 +- src/components/skills-roadmap.tsx | 14 +- src/components/stash-list.tsx | 261 +++--- src/components/tailor-flow.tsx | 67 +- .../truehire-proof-preview-view.tsx | 22 +- src/components/ui/LICENSE.md | 21 - src/components/ui/avatar.tsx | 47 -- src/components/ui/breadcrumb.tsx | 99 --- src/components/ui/button.tsx | 50 -- src/components/ui/dropdown-menu.tsx | 193 ----- src/components/ui/input.tsx | 22 - src/components/ui/label.tsx | 21 - src/components/ui/separator.tsx | 26 - src/components/ui/sheet.tsx | 130 --- src/components/ui/sidebar.tsx | 747 ------------------ src/components/ui/skeleton.tsx | 7 - src/components/ui/tabs.tsx | 55 -- src/components/ui/textarea.tsx | 21 - src/components/ui/tooltip.tsx | 37 - src/components/user-menu.tsx | 9 +- src/components/workspace-interior.tsx | 384 +++++---- src/lib/react-source-markdown.ts | 24 +- 88 files changed, 1804 insertions(+), 2888 deletions(-) create mode 100644 scripts/check-ui-library.mjs delete mode 100644 src/components/ui/LICENSE.md delete mode 100644 src/components/ui/avatar.tsx delete mode 100644 src/components/ui/breadcrumb.tsx delete mode 100644 src/components/ui/button.tsx delete mode 100644 src/components/ui/dropdown-menu.tsx delete mode 100644 src/components/ui/input.tsx delete mode 100644 src/components/ui/label.tsx delete mode 100644 src/components/ui/separator.tsx delete mode 100644 src/components/ui/sheet.tsx delete mode 100644 src/components/ui/sidebar.tsx delete mode 100644 src/components/ui/skeleton.tsx delete mode 100644 src/components/ui/tabs.tsx delete mode 100644 src/components/ui/textarea.tsx delete mode 100644 src/components/ui/tooltip.tsx diff --git a/e2e/history.spec.ts b/e2e/history.spec.ts index a5c7836..f62bab3 100644 --- a/e2e/history.spec.ts +++ b/e2e/history.spec.ts @@ -138,7 +138,7 @@ test('history filters applied jobs and reopens the exact old resume after reload await history.getByRole('textbox', { name: 'Search jobs' }).fill(''); await expect(history).toBeVisible(); - await history.getByRole('button', { name: 'Applied and later (1)' }).click(); + await history.getByRole('button', { name: 'Applied jobs (1)' }).click(); await expect(history.getByRole('button', { name: 'Agents Engineer', exact: true })).toBeVisible(); await expect(history.getByRole('button', { name: 'Frontend Engineer', exact: true })).toHaveCount( 0 diff --git a/e2e/resume-builder.spec.ts b/e2e/resume-builder.spec.ts index f8a53cb..2102743 100644 --- a/e2e/resume-builder.spec.ts +++ b/e2e/resume-builder.spec.ts @@ -1,5 +1,28 @@ import { expect, test } from '@playwright/test'; +test('the experience form is reachable by keyboard and restores focus when closed', async ({ + page, +}) => { + await page.goto('/resume-builder/evidence'); + const add = page.getByRole('button', { name: /add experience/i }); + await add.focus(); + await page.keyboard.press('Enter'); + const form = page.getByRole('dialog', { name: 'Add experience' }); + await expect(form).toBeVisible(); + await page.keyboard.press('Escape'); + await expect(form).toBeHidden(); + await expect(add).toBeFocused(); + + await page.keyboard.press('Enter'); + await form.getByLabel('Title', { exact: true }).fill('Launch checklist'); + await form + .getByLabel('Your contribution and result') + .fill('Organized launch reviews for the product team.'); + await form.getByRole('button', { name: 'Save', exact: true }).click(); + await expect(page.getByRole('button', { name: /launch checklist/i })).toBeVisible(); + await expect(add).toBeFocused(); +}); + test('Outline edits, pins and added projects survive reload and legacy links open the same workspace', async ({ page, }, testInfo) => { diff --git a/package.json b/package.json index 322fd9b..5414988 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "docs:check": "node scripts/check-docs.mjs", "knip": "knip --no-exit-code --reporter symbols", "knip:strict": "knip --reporter symbols", + "check:ui-library": "node scripts/check-ui-library.mjs", "quality:unused": "node scripts/check-code-health.mjs unused", "quality:complexity": "node scripts/check-code-health.mjs complexity", "quality:duplication": "node scripts/check-code-health.mjs duplication", @@ -68,12 +69,11 @@ "quality:dependencies": "node scripts/check-code-health.mjs dependencies", "quality:suppressions": "node scripts/check-code-health.mjs suppressions", "quality:hygiene": "node scripts/check-code-health.mjs hygiene", - "quality": "pnpm quality:cache-security && pnpm check && pnpm typecheck && pnpm test:coverage && pnpm docs:check && pnpm --filter @rolepatch/extension typecheck && pnpm quality:unused && pnpm quality:complexity && pnpm quality:duplication && pnpm quality:cycles && pnpm quality:dependencies && pnpm quality:suppressions && pnpm quality:hygiene", + "quality": "pnpm quality:cache-security && pnpm check && pnpm check:ui-library && pnpm typecheck && pnpm test:coverage && pnpm docs:check && pnpm --filter @rolepatch/extension typecheck && pnpm quality:unused && pnpm quality:complexity && pnpm quality:duplication && pnpm quality:cycles && pnpm quality:dependencies && pnpm quality:suppressions && pnpm quality:hygiene", "resume:mcp": "node scripts/resume-mcp.mjs", "quality:cache-security": "node scripts/check-http-cache-security.mjs && node --test scripts/http-cache-security.test.mjs" }, "dependencies": { - "@saas-maker/ui": "github:sass-maker/ui-library#v0.1.18&path:/packages/ui", "@ai-sdk/openai-compatible": "2.0.41", "@better-auth/mcp": "1.7.7", "@cloudflare/puppeteer": "^1.1.0", @@ -82,20 +82,12 @@ "@codemirror/theme-one-dark": "^6.1.3", "@codemirror/view": "^6.43.6", "@mozilla/readability": "^0.6.0", - "@radix-ui/react-avatar": "1.2.7", - "@radix-ui/react-dialog": "1.2.0", - "@radix-ui/react-dropdown-menu": "2.1.25", - "@radix-ui/react-label": "2.1.16", - "@radix-ui/react-separator": "1.1.16", - "@radix-ui/react-slot": "1.4.0", - "@radix-ui/react-tabs": "1.1.22", - "@radix-ui/react-tooltip": "1.3.0", "@saas-maker/app-health": "https://github.com/sass-maker/app-health/releases/download/node-v0.4.0/saas-maker-app-health-0.4.0.tgz", "@saas-maker/feedback": "^0.4.0", + "@saas-maker/ui": "github:sass-maker/ui-library#v0.1.36&path:/packages/ui", "@sparticuz/chromium": "^147.0.2", "ai": "6.0.168", "better-auth": "1.7.7", - "class-variance-authority": "0.7.1", "clsx": "2.1.1", "codemirror": "^6.0.2", "dodopayments": "^2.43.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62e4a41..5634d42 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,30 +66,6 @@ importers: '@mozilla/readability': specifier: ^0.6.0 version: 0.6.0 - '@radix-ui/react-avatar': - specifier: 1.2.7 - version: 1.2.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-dialog': - specifier: 1.2.0 - version: 1.2.0(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-dropdown-menu': - specifier: 2.1.25 - version: 2.1.25(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-label': - specifier: 2.1.16 - version: 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-separator': - specifier: 1.1.16 - version: 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-slot': - specifier: 1.4.0 - version: 1.4.0(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-tabs': - specifier: 1.1.22 - version: 1.1.22(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-tooltip': - specifier: 1.3.0 - version: 1.3.0(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) '@saas-maker/app-health': specifier: https://github.com/sass-maker/app-health/releases/download/node-v0.4.0/saas-maker-app-health-0.4.0.tgz version: https://github.com/sass-maker/app-health/releases/download/node-v0.4.0/saas-maker-app-health-0.4.0.tgz(express@5.2.1) @@ -97,8 +73,8 @@ importers: specifier: ^0.4.0 version: 0.4.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) '@saas-maker/ui': - specifier: github:sass-maker/ui-library#v0.1.18&path:/packages/ui - version: https://codeload.github.com/sass-maker/ui-library/tar.gz/f61aad320ba3bed99c48df40fc16a7f55f508ba5#path:/packages/ui(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.3.3) + specifier: github:sass-maker/ui-library#v0.1.36&path:/packages/ui + version: https://codeload.github.com/sass-maker/ui-library/tar.gz/5233bd8bbd3bf1b1fcd91218a479eff290a4cb3c#path:/packages/ui(@date-fns/tz@1.5.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(date-fns@4.4.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.3.3) '@sparticuz/chromium': specifier: ^147.0.2 version: 147.0.2 @@ -108,9 +84,6 @@ importers: better-auth: specifier: 1.7.7 version: 1.7.7(@opentelemetry/api@1.9.0)(next@16.4.1(@opentelemetry/api@1.9.0)(@playwright/test@1.62.0)(@types/node@20.19.33)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vitest@4.1.11) - class-variance-authority: - specifier: 0.7.1 - version: 0.7.1 clsx: specifier: 2.1.1 version: 2.1.1 @@ -774,6 +747,33 @@ packages: resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} engines: {node: '>=6.9.0'} + '@base-ui/react@1.9.0': + resolution: {integrity: sha512-S8CSYosASBKtpL8SWUfS78rFElfLijiCgA7oHOK22jCJ95FULsYyKwBNFOgudt0RA+/7yNc7F81bOvQnRgbBiQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + '@date-fns/tz': ^1.2.0 + '@types/react': ^17 || ^18 || ^19 + date-fns: ^4.0.0 + react: ^17 || ^18 || ^19 + react-dom: ^17 || ^18 || ^19 + peerDependenciesMeta: + '@date-fns/tz': + optional: true + '@types/react': + optional: true + date-fns: + optional: true + + '@base-ui/utils@0.5.0': + resolution: {integrity: sha512-dYGGcEttjkYiMoa5nHm8vLaJ2UcuTWxo3BFAwOYXeRg/q7UVVvA6cacEIXEs3FgBfK1CGtW1ptElqs7wsx+t9A==} + peerDependencies: + '@types/react': ^17 || ^18 || ^19 + react: ^17 || ^18 || ^19 + react-dom: ^17 || ^18 || ^19 + peerDependenciesMeta: + '@types/react': + optional: true + '@bcoe/v8-coverage@1.0.2': resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} @@ -1174,6 +1174,9 @@ packages: resolution: {integrity: sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==} engines: {node: '>=20.19.0'} + '@date-fns/tz@1.5.0': + resolution: {integrity: sha512-lwYN/vDPeNRULcepoE/LO2Pgx+7/RV+S9ARfbc9lr2DtGkOD7pAiruHvbR1RX3Qyf6ja47EWJDMsNK5vK08DJg==} + '@dotenvx/dotenvx@2.38.2': resolution: {integrity: sha512-+tjy8o//H+ZkRfRWLh08UkLHCw/e74uIV27QOZ3RxKwXvGrxjEcQMfUvQJzkvK/qNTk/OsE1MlGiDB6iL+1X0g==} hasBin: true @@ -2486,19 +2489,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-arrow@1.1.16': - resolution: {integrity: sha512-nXPI1tzJsnQw8oXvB2r49rO9TIbbJ8VFeaWDiBsqY8+iwO5xb7WjUsrXDagjAgPKTdhW8WODQnAltUhBx8I+sg==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-aspect-ratio@1.1.15': resolution: {integrity: sha512-fy+dyVR+90nelK8rqIznFlxzx7uPcGbhxH8Nfr2bHb4UfSe+e3hklOC0luK0hDwVwnRX7xTRySpsrQVeW+/oNQ==} peerDependencies: @@ -2525,19 +2515,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-avatar@1.2.7': - resolution: {integrity: sha512-6AizCpbU3Zngojp9vQak8Lt4AXwdKJ2lkRYAfpoETraT+qKVNeRqytiADzneHetFEB0Wu4+qeSfmZEq0PiVDmQ==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-checkbox@1.3.11': resolution: {integrity: sha512-Gnptr9pDDQxD3hgq2dtPbtrp/c2qH1mBwIzw3X/ivrMb2e1t0jMTi606fVEqFPaQR1ggXIVQWKj3P2WW9v7zGQ==} peerDependencies: @@ -2577,19 +2554,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-collection@1.1.16': - resolution: {integrity: sha512-yEQrjfI5eBbeYEJXOASpm+gs9eNHY8+UjkZ81GzcuwdLrSMOlEM8jnGoGdeGo92oiBMkuwZUhHTsnsrDiJLcyA==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-compose-refs@1.1.5': resolution: {integrity: sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==} peerDependencies: @@ -2656,15 +2620,6 @@ packages: '@types/react': optional: true - '@radix-ui/react-direction@1.1.5': - resolution: {integrity: sha512-/NlO/rOqQabmg+GGr86vCmbJVhqTv85NfM9g6Gknf/JVygXeZ6e6HM/RW1omerW9HsFtecwNqgEAKV6UqDsvpA==} - peerDependencies: - '@types/react': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@radix-ui/react-dismissable-layer@1.1.19': resolution: {integrity: sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==} peerDependencies: @@ -2704,19 +2659,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-dropdown-menu@2.1.25': - resolution: {integrity: sha512-45QO76jn/a+cRl6OPgZKCKnIMdfYZaOa6SuAJeKHFiM3orX6bnscuFQJDx3qS4Agp/RE+eKv+9gmUL8t3Ma7bw==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-focus-guards@1.1.6': resolution: {integrity: sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==} peerDependencies: @@ -2800,19 +2742,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-label@2.1.16': - resolution: {integrity: sha512-2vTQj72YFmeoTxWKJEMbO/9uQt6zzLgbzi0+nWBffq49oo6KhIDP/D+fA2im0wsxBCAX7QfaF3xgsYBVdDbNFQ==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-menu@2.1.24': resolution: {integrity: sha512-uW7RVuU6Lp/ZtfeY4b3kL32zccgEWvPv1+cf17ubYzHa9cL8AHokmk36cG/XEiH/smbQvumnieXX9j/e9RqJWA==} peerDependencies: @@ -2826,19 +2755,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-menu@2.1.25': - resolution: {integrity: sha512-e8JaQc0ijBbTx37YVI09Nfq8ThUWJ4L1rvZ3Hvaufehco9/ug9+U3PHz9ue6w3gKd91UcKf9fgDWejeSO+VSKQ==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-menubar@1.1.24': resolution: {integrity: sha512-eeVs0vf7cuqXaM0qLQCPcufImiJNVBXdJDLu7ZGYl2732UH23Qat/foNGrr6vYV3/DdTsBqASoggUFgH14OcZA==} peerDependencies: @@ -2917,19 +2833,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-popper@1.3.8': - resolution: {integrity: sha512-y92/9iIdG1FyNvow0Y0qP5WJZ7oRTAKDVKCy9kJnhZfItwIKYtt0KKQeOhBKfXz0ETizduKwDRbrQHrTQScs5A==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-portal@1.1.17': resolution: {integrity: sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==} peerDependencies: @@ -3047,19 +2950,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-roving-focus@1.1.20': - resolution: {integrity: sha512-+ZjbkU21fTSJdn4nq/IFKUdKS+JSZHORBZ8ma1f6YpOMNzRt0xf3sVAWVK/+ktHCajPy4HYDsyHXZIZmOMxzIA==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-scroll-area@1.2.18': resolution: {integrity: sha512-Zn5Cd171wxsO3Dfg8HaW6RifTb9CYTKQJHs/G4+LN1GfmJpaQMZQyQxMprVPHpaz7QY4l9BxK2JwQuzHsXC8nA==} peerDependencies: @@ -3099,19 +2989,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-separator@1.1.16': - resolution: {integrity: sha512-vugPjGQBXbJVVkftKqv/BVeZ108SyRGT3FR1oa14az6qyLgX8jPhnZYHgdSB7Gw8UJusqwb9eaK6mluOnsn/Vg==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-slider@1.4.7': resolution: {integrity: sha512-mTSLf1GC/C0moWjTbvCM6Qn/gBjvlFt1azuWF2v7MN5C3Zq2U2J2lN3ZEYkpujuOU5Ro7A28wkviSxaKnG0BYg==} peerDependencies: @@ -3169,19 +3046,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-tabs@1.1.22': - resolution: {integrity: sha512-GmVH+P3wx1ZPMuH7WajQzygZIbqgnsb5h8z4Ow3sQMuDqgcqISSBNom6MLVNJvfrkuJTtqfXc3ZolHjX+w0CHg==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-toast@1.2.23': resolution: {integrity: sha512-ofhyAsYaocRGOs/n0XWdUOSVzEAG6BfrMVM8z0c0kLEWY38w/0WuMFPTJP/HVaZPYkMvHZoKIIhNcjbTCBILPg==} peerDependencies: @@ -3247,19 +3111,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-tooltip@1.3.0': - resolution: {integrity: sha512-4HM4b1Cft1CBXCGDRDG3S/fh8GedBuVOMNh145wMIfTbVqcuv+tyj03nZqYgFevWJMYo58H0s+8P6s6NaUHWtA==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-use-callback-ref@1.1.4': resolution: {integrity: sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==} peerDependencies: @@ -3341,15 +3192,6 @@ packages: '@types/react': optional: true - '@radix-ui/react-use-size@1.1.5': - resolution: {integrity: sha512-V1McDQkMGzgivwqdu7u96APs7oi0Jvj9LTzgq3WWrDZqxWdAqU9yZnZQqk5OizGFR8badUQwZsrlao7MOlWYOA==} - peerDependencies: - '@types/react': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@radix-ui/react-visually-hidden@1.2.11': resolution: {integrity: sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ==} peerDependencies: @@ -3363,19 +3205,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-visually-hidden@1.2.12': - resolution: {integrity: sha512-/iPLVHRBzKWvekN+5xaDmXw80f+nleYYceomVORrGjuJe0LF2SCbSH4f/LG4hu32q92QSuPZx4hmSACYBVBfzQ==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/rect@1.1.3': resolution: {integrity: sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==} @@ -3509,6 +3338,14 @@ packages: astro: '>=7' react: '>=19' + '@saas-maker/ui@https://codeload.github.com/sass-maker/ui-library/tar.gz/5233bd8bbd3bf1b1fcd91218a479eff290a4cb3c#path:/packages/ui': + resolution: {path: /packages/ui, tarball: https://codeload.github.com/sass-maker/ui-library/tar.gz/5233bd8bbd3bf1b1fcd91218a479eff290a4cb3c} + version: 0.1.35 + peerDependencies: + react: '>=19' + react-dom: '>=19' + tailwindcss: '>=4.3' + '@saas-maker/ui@https://codeload.github.com/sass-maker/ui-library/tar.gz/f61aad320ba3bed99c48df40fc16a7f55f508ba5#path:/packages/ui': resolution: {path: /packages/ui, tarball: https://codeload.github.com/sass-maker/ui-library/tar.gz/f61aad320ba3bed99c48df40fc16a7f55f508ba5} version: 0.1.18 @@ -4437,6 +4274,9 @@ packages: react: ^18 || ^19 || ^19.0.0-rc react-dom: ^18 || ^19 || ^19.0.0-rc + cobe@2.0.1: + resolution: {integrity: sha512-aaa6vcIlaC8C1SF50LDH0Anybo/EAXnrxqe+bwvr4+YUtZydqjeBjTTD7ziCCkbRrRGSns3I3F6cZsf3W+L+ag==} + codemirror@6.0.2: resolution: {integrity: sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==} @@ -4577,6 +4417,9 @@ packages: resolution: {integrity: sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + date-fns@4.4.0: + resolution: {integrity: sha512-+1UMbeh68lH1SegH83CGWwpb6OHHbpSgr3+s5Eww5M4CAgswBpoWS0AjTOfEJ33HiYKz1hdj/KTFprzXHmq/6w==} + debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -5101,6 +4944,12 @@ packages: inline-style-parser@0.2.7: resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==} + input-otp@1.5.0: + resolution: {integrity: sha512-3AcfdW1sNG0FmSA5hHMBXG7jNW5CdcdKs8ln8JOmn6S2SRkoXoJx+2UwC+ZvjflfnOdHJx0SfQ9/YjlxVYLtGQ==} + peerDependencies: + react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc + ipaddr.js@1.9.1: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} @@ -6018,6 +5867,16 @@ packages: resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} engines: {node: '>= 0.10'} + react-day-picker@10.0.2: + resolution: {integrity: sha512-QetiKtZWE9Uaw/pM/SYNv6WPYOTRnSJ2puL0GgwkmUFMIwiY0dtjH1W4B7DOVXVNQM0ZOClGpH/heOfBSzWeiA==} + engines: {node: '>=18'} + peerDependencies: + '@types/react': '>=16.8.0' + react: '>=16.8.0' + peerDependenciesMeta: + '@types/react': + optional: true + react-diff-viewer-continued@4.4.0: resolution: {integrity: sha512-ezDte5YNLLLfTuaGaF2mV/8i4FRX7GdxnuA5zt7x1QjwVQHtBY0+NYzHJBwEPboOQNSx9sDU9apH2GfKoDYsyQ==} engines: {node: '>= 16'} @@ -6067,6 +5926,12 @@ packages: '@types/react': optional: true + react-resizable-panels@4.14.8: + resolution: {integrity: sha512-kVot7JCIZct85ZY87vww95R7tI25VSTjHpEAIIy2YcsOtbtwG6l1+vDD6TCYgmgE/JSp0ADqNooHn97Y6dMOFw==} + peerDependencies: + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + react-style-singleton@2.2.3: resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==} engines: {node: '>=10'} @@ -6077,6 +5942,15 @@ packages: '@types/react': optional: true + react-use-measure@2.1.7: + resolution: {integrity: sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==} + peerDependencies: + react: '>=16.13' + react-dom: '>=16.13' + peerDependenciesMeta: + react-dom: + optional: true + react@19.2.8: resolution: {integrity: sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==} engines: {node: '>=0.10.0'} @@ -6118,6 +5992,9 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} + reselect@5.3.0: + resolution: {integrity: sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==} + resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -6673,6 +6550,12 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + vaul@1.1.2: + resolution: {integrity: sha512-ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==} + peerDependencies: + react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc + vfile-message@4.0.3: resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} @@ -7862,6 +7745,31 @@ snapshots: '@babel/helper-string-parser': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 + '@base-ui/react@1.9.0(@date-fns/tz@1.5.0)(@types/react@19.2.17)(date-fns@4.4.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@babel/runtime': 7.29.7 + '@base-ui/utils': 0.5.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@floating-ui/react-dom': 2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@floating-ui/utils': 0.2.12 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + use-sync-external-store: 1.7.0(react@19.2.8) + optionalDependencies: + '@date-fns/tz': 1.5.0 + '@types/react': 19.2.17 + date-fns: 4.4.0 + + '@base-ui/utils@0.5.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@babel/runtime': 7.29.7 + '@floating-ui/utils': 0.2.12 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + reselect: 5.3.0 + use-sync-external-store: 1.7.0(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@bcoe/v8-coverage@1.0.2': {} '@better-auth/core@1.7.7(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.0)(better-call@1.4.0(zod@4.6.6))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)': @@ -8240,6 +8148,8 @@ snapshots: '@csstools/css-tokenizer@4.0.0': {} + '@date-fns/tz@1.5.0': {} + '@dotenvx/dotenvx@2.38.2': dependencies: '@dotenvx/primitives': 3.3.1 @@ -9234,15 +9144,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-arrow@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-aspect-ratio@1.1.15(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) @@ -9289,20 +9190,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-avatar@1.2.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-use-callback-ref': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-is-hydrated': 0.1.3(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-checkbox@1.3.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/primitive': 1.1.7 @@ -9389,18 +9276,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-collection@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-slot': 1.4.0(@types/react@19.2.17)(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-compose-refs@1.1.5(@types/react@19.2.17)(react@19.2.8)': dependencies: react: 19.2.8 @@ -9555,12 +9430,6 @@ snapshots: optionalDependencies: '@types/react': 19.3.0 - '@radix-ui/react-direction@1.1.5(@types/react@19.2.17)(react@19.2.8)': - dependencies: - react: 19.2.8 - optionalDependencies: - '@types/react': 19.2.17 - '@radix-ui/react-dismissable-layer@1.1.19(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/primitive': 1.1.7 @@ -9643,21 +9512,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-dropdown-menu@2.1.25(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-menu': 2.1.25(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-use-controllable-state': 1.2.6(@types/react@19.2.17)(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-focus-guards@1.1.6(@types/react@19.2.17)(react@19.2.8)': dependencies: react: 19.2.8 @@ -9808,15 +9662,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-label@2.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-menu@2.1.24(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/primitive': 1.1.7 @@ -9869,32 +9714,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-menu@2.1.25(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-collection': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-direction': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-dismissable-layer': 1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-focus-guards': 1.1.6(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-focus-scope': 1.2.0(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-popper': 1.3.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-portal': 1.1.18(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-presence': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-roving-focus': 1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-slot': 1.4.0(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-callback-ref': 1.1.4(@types/react@19.2.17)(react@19.2.8) - aria-hidden: 1.2.6 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - react-remove-scroll: 2.7.2(@types/react@19.2.17)(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-menubar@1.1.24(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/primitive': 1.1.7 @@ -10129,24 +9948,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-popper@1.3.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@floating-ui/react-dom': 2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-arrow': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-use-callback-ref': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-rect': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-size': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/rect': 1.1.3 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-portal@1.1.17(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) @@ -10351,25 +10152,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-roving-focus@1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-collection': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-direction': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-use-callback-ref': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-controllable-state': 1.2.6(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-is-hydrated': 0.1.3(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-scroll-area@1.2.18(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/number': 1.1.3 @@ -10482,15 +10264,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-separator@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-slider@1.4.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/number': 1.1.3 @@ -10617,22 +10390,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-tabs@1.1.22(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-direction': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-presence': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-roving-focus': 1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-use-controllable-state': 1.2.6(@types/react@19.2.17)(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-toast@1.2.23(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/primitive': 1.1.7 @@ -10797,27 +10554,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-tooltip@1.3.0(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-dismissable-layer': 1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-popper': 1.3.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-portal': 1.1.18(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-presence': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-slot': 1.4.0(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-controllable-state': 1.2.6(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) - '@radix-ui/react-visually-hidden': 1.2.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-use-callback-ref@1.1.4(@types/react@19.2.17)(react@19.2.8)': dependencies: react: 19.2.8 @@ -10940,13 +10676,6 @@ snapshots: optionalDependencies: '@types/react': 19.3.0 - '@radix-ui/react-use-size@1.1.5(@types/react@19.2.17)(react@19.2.8)': - dependencies: - '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) - react: 19.2.8 - optionalDependencies: - '@types/react': 19.2.17 - '@radix-ui/react-visually-hidden@1.2.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) @@ -10965,15 +10694,6 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@radix-ui/react-visually-hidden@1.2.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/react-primitive': 2.1.11(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/rect@1.1.3': {} '@rolldown/binding-android-arm-eabi@1.2.13': @@ -11047,23 +10767,33 @@ snapshots: lucide-react: 1.48.0(react@19.3.0) react: 19.3.0 - '@saas-maker/ui@https://codeload.github.com/sass-maker/ui-library/tar.gz/f61aad320ba3bed99c48df40fc16a7f55f508ba5#path:/packages/ui(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.3.3)': + '@saas-maker/ui@https://codeload.github.com/sass-maker/ui-library/tar.gz/5233bd8bbd3bf1b1fcd91218a479eff290a4cb3c#path:/packages/ui(@date-fns/tz@1.5.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(date-fns@4.4.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.3.3)': dependencies: + '@base-ui/react': 1.9.0(@date-fns/tz@1.5.0)(@types/react@19.2.17)(date-fns@4.4.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) '@tanstack/react-table': 9.2.4(react-dom@19.2.8(react@19.2.8))(react@19.2.8) class-variance-authority: 0.7.1 clsx: 2.1.1 cmdk: 1.1.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + cobe: 2.0.1 + input-otp: 1.5.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) lucide-react: 1.48.0(react@19.2.8) + motion: 13.4.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8) radix-ui: 1.6.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) react: 19.2.8 + react-day-picker: 10.0.2(@types/react@19.2.17)(react@19.2.8) react-dom: 19.2.8(react@19.2.8) + react-resizable-panels: 4.14.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + react-use-measure: 2.1.7(react-dom@19.2.8(react@19.2.8))(react@19.2.8) sonner: 2.0.8(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) tailwind-merge: 3.7.0 tailwindcss: 4.3.3 tw-animate-css: 1.4.0 + vaul: 1.1.2(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) transitivePeerDependencies: + - '@date-fns/tz' - '@types/react' - '@types/react-dom' + - date-fns '@saas-maker/ui@https://codeload.github.com/sass-maker/ui-library/tar.gz/f61aad320ba3bed99c48df40fc16a7f55f508ba5#path:/packages/ui(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(tailwindcss@4.3.3)': dependencies: @@ -12101,6 +11831,8 @@ snapshots: - '@types/react' - '@types/react-dom' + cobe@2.0.1: {} + codemirror@6.0.2: dependencies: '@codemirror/autocomplete': 6.20.1 @@ -12231,6 +11963,8 @@ snapshots: transitivePeerDependencies: - '@noble/hashes' + date-fns@4.4.0: {} + debug@4.4.3: dependencies: ms: 2.1.3 @@ -12634,6 +12368,15 @@ snapshots: forwarded@0.2.0: {} + framer-motion@13.5.1(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + motion-dom: 13.5.1 + motion-utils: 13.5.0 + tslib: 2.8.1 + optionalDependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + framer-motion@13.5.1(react-dom@19.3.0(react@19.3.0))(react@19.3.0): dependencies: motion-dom: 13.5.1 @@ -12852,6 +12595,11 @@ snapshots: inline-style-parser@0.2.7: {} + input-otp@1.5.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + ipaddr.js@1.9.1: {} iron-webcrypto@1.2.1: {} @@ -13491,6 +13239,14 @@ snapshots: motion-utils@13.5.0: {} + motion@13.4.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + framer-motion: 13.5.1(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + tslib: 2.8.1 + optionalDependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + motion@13.4.3(react-dom@19.3.0(react@19.3.0))(react@19.3.0): dependencies: framer-motion: 13.5.1(react-dom@19.3.0(react@19.3.0))(react@19.3.0) @@ -13982,6 +13738,14 @@ snapshots: iconv-lite: 0.7.3 unpipe: 1.0.0 + react-day-picker@10.0.2(@types/react@19.2.17)(react@19.2.8): + dependencies: + '@date-fns/tz': 1.5.0 + date-fns: 4.4.0 + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + react-diff-viewer-continued@4.4.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8): dependencies: '@emotion/css': 11.13.5 @@ -14067,6 +13831,11 @@ snapshots: optionalDependencies: '@types/react': 19.3.0 + react-resizable-panels@4.14.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + react-style-singleton@2.2.3(@types/react@19.2.17)(react@19.2.8): dependencies: get-nonce: 1.0.1 @@ -14083,6 +13852,12 @@ snapshots: optionalDependencies: '@types/react': 19.3.0 + react-use-measure@2.1.7(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + react: 19.2.8 + optionalDependencies: + react-dom: 19.2.8(react@19.2.8) + react@19.2.8: {} react@19.3.0: {} @@ -14140,6 +13915,8 @@ snapshots: require-from-string@2.0.2: {} + reselect@5.3.0: {} + resolve-from@4.0.0: {} resolve-pkg-maps@1.0.0: {} @@ -14767,6 +14544,15 @@ snapshots: vary@1.1.2: {} + vaul@1.1.2(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + '@radix-ui/react-dialog': 1.2.0(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + transitivePeerDependencies: + - '@types/react' + - '@types/react-dom' + vfile-message@4.0.3: dependencies: '@types/unist': 3.0.3 diff --git a/scripts/check-ui-library.mjs b/scripts/check-ui-library.mjs new file mode 100644 index 0000000..213d297 --- /dev/null +++ b/scripts/check-ui-library.mjs @@ -0,0 +1,83 @@ +import { readdirSync, readFileSync } from 'node:fs'; +import { extname, join } from 'node:path'; +import ts from 'typescript'; + +const nativeControls = new Set([ + 'button', + 'input', + 'label', + 'select', + 'textarea', + 'details', + 'summary', + 'dialog', + 'progress', + 'table', + 'thead', + 'tbody', + 'tfoot', + 'th', + 'tr', + 'td', + 'caption', +]); +const interactiveRoles = new Set([ + 'button', + 'dialog', + 'alertdialog', + 'combobox', + 'radio', + 'checkbox', + 'switch', +]); +const failures = []; +let files = 0; + +for (const root of ['src/app', 'src/components']) { + for (const relativePath of readdirSync(root, { recursive: true })) { + if (extname(relativePath) !== '.tsx') continue; + const path = join(root, relativePath); + const source = ts.createSourceFile( + path, + readFileSync(path, 'utf8'), + ts.ScriptTarget.Latest, + true + ); + files++; + + function report(node, message) { + const { line } = source.getLineAndCharacterOfPosition(node.getStart(source)); + failures.push(`${path}:${line + 1} ${message}`); + } + + function visit(node) { + if (ts.isImportDeclaration(node) && ts.isStringLiteral(node.moduleSpecifier)) { + const module = node.moduleSpecifier.text; + if (module.startsWith('@/components/ui/') || module.startsWith('@radix-ui/')) { + report(node, `Use the SaaS Maker UI export in place of ${module}`); + } + } + if (ts.isJsxOpeningElement(node) || ts.isJsxSelfClosingElement(node)) { + const tag = node.tagName.getText(source); + if (nativeControls.has(tag)) report(node, `Use a shared component for ${tag}`); + if (/^[a-z]/.test(tag)) { + const role = node.attributes.properties.find( + (attribute) => ts.isJsxAttribute(attribute) && attribute.name.getText(source) === 'role' + )?.initializer; + if (role && ts.isStringLiteral(role) && interactiveRoles.has(role.text)) { + report(node, `Use the shared ${role.text} component`); + } + } + } + ts.forEachChild(node, visit); + } + visit(source); + } +} + +if (failures.length) { + console.error(failures.join('\n')); + process.exitCode = 1; +} else { + console.log(`SaaS Maker UI controls verified across ${files} React files.`); +} diff --git a/src/__tests__/workspace-theme.test.tsx b/src/__tests__/workspace-theme.test.tsx index 37e4cae..ca2bfbb 100644 --- a/src/__tests__/workspace-theme.test.tsx +++ b/src/__tests__/workspace-theme.test.tsx @@ -1,9 +1,9 @@ import { cleanup, render, screen, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { afterEach, beforeEach, expect, it, vi } from 'vitest'; -import { WorkspaceThemeProvider } from '@/components/workspace-theme'; +import { WorkspaceThemeProvider, useWorkspaceTheme } from '@/components/workspace-theme'; import { ThemeToggle } from '@/components/theme-toggle'; -import { Sheet, SheetContent, SheetTitle, SheetTrigger } from '@/components/ui/sheet'; +import { Sheet, SheetContent, SheetTitle, SheetTrigger } from '@saas-maker/ui/components/sheet'; let mediaListener: (() => void) | undefined; let mediaDark = false; @@ -27,16 +27,22 @@ afterEach(() => { cleanup(); vi.unstubAllGlobals(); }); +function FormSheet() { + const theme = useWorkspaceTheme(); + return ( + + Open form + + Resume details + + + ); +} function fixture() { return ( - - Open form - - Resume details - - + ); } diff --git a/src/app/application-theme.css b/src/app/application-theme.css index b9a0cc9..e9e7478 100644 --- a/src/app/application-theme.css +++ b/src/app/application-theme.css @@ -19,6 +19,7 @@ --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); + --color-scrim: rgb(0 0 0 / 0.55); --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); diff --git a/src/app/application-utilities.css b/src/app/application-utilities.css index 7158566..424af30 100644 --- a/src/app/application-utilities.css +++ b/src/app/application-utilities.css @@ -7,4 +7,5 @@ } @source "../"; -@source "../../node_modules/@saas-maker/ui/src/components/{badge,button,card,checkbox,input,label,skeleton,table,tabs,textarea,toggle,toggle-group}.tsx"; +@source "../../node_modules/@saas-maker/ui/src/components/{accordion,alert,avatar,badge,breadcrumb,button,card,checkbox,dialog,dropdown-menu,input,label,native-controls,radio-group,separator,sheet,skeleton,table,tabs,textarea,toggle,toggle-group,tooltip}.tsx"; +@source "../../node_modules/@saas-maker/ui/src/lib/{native-control-styles,native-primitives,surface-motion}.ts"; diff --git a/src/app/cover-letter/[jobId]/error.tsx b/src/app/cover-letter/[jobId]/error.tsx index fdf67cd..23a8244 100644 --- a/src/app/cover-letter/[jobId]/error.tsx +++ b/src/app/cover-letter/[jobId]/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import Link from 'next/link'; import { useEffect } from 'react'; @@ -25,9 +26,13 @@ export default function CoverLetterError({ Something went wrong while preparing this page. Any saved drafts are safe — try again.

- + Dashboard diff --git a/src/app/dashboard/error.tsx b/src/app/dashboard/error.tsx index eccb2f3..bb5845c 100644 --- a/src/app/dashboard/error.tsx +++ b/src/app/dashboard/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import { useEffect } from 'react'; import { captureError } from '@/lib/foundry-monitoring'; @@ -23,9 +24,13 @@ export default function DashboardError({

Something went wrong while loading your resumes and jobs. Your data is safe — try again.

- + {error.digest ?

Reference: {error.digest}

: null}
diff --git a/src/app/editor/[id]/error.tsx b/src/app/editor/[id]/error.tsx index b3b692a..79af103 100644 --- a/src/app/editor/[id]/error.tsx +++ b/src/app/editor/[id]/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import Link from 'next/link'; import { useEffect } from 'react'; @@ -25,9 +26,13 @@ export default function EditorError({ Something went wrong while loading this resume. Your saved content is safe — try again.

- + Dashboard diff --git a/src/app/error.tsx b/src/app/error.tsx index 18f69a9..7f211f9 100644 --- a/src/app/error.tsx +++ b/src/app/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import { useEffect } from 'react'; import { captureError } from '@/lib/foundry-monitoring'; @@ -26,15 +27,20 @@ export default function Error({ happening, come back in a few minutes.

- - +
{error.digest ?

Reference: {error.digest}

: null}
diff --git a/src/app/global-error.tsx b/src/app/global-error.tsx index c83eef7..d7749ea 100644 --- a/src/app/global-error.tsx +++ b/src/app/global-error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import { useEffect } from 'react'; import { captureError } from '@/lib/foundry-monitoring'; @@ -43,7 +44,8 @@ export default function GlobalError({ The app failed to load. Please reload the page — if it keeps happening, try again in a few minutes.

- + {error.digest ? (

Reference: {error.digest} diff --git a/src/app/globals.css b/src/app/globals.css index e574f22..bb71c82 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -16,7 +16,7 @@ @source "../components/pricing-cards-view.tsx"; @source "../components/saasmaker-feedback.tsx"; @source "../components/saasmaker-feedback-widget.tsx"; -@source "../components/ui/button.tsx"; +@source "../../node_modules/@saas-maker/ui/src/lib/native-primitives.ts"; :root { color-scheme: dark; diff --git a/src/app/interview-prep/[jobId]/error.tsx b/src/app/interview-prep/[jobId]/error.tsx index bd20d72..310515d 100644 --- a/src/app/interview-prep/[jobId]/error.tsx +++ b/src/app/interview-prep/[jobId]/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import Link from 'next/link'; import { useEffect } from 'react'; @@ -25,9 +26,13 @@ export default function InterviewPrepError({ Something went wrong while preparing this page. Your saved stories are safe — try again.

- + Dashboard diff --git a/src/app/tailor/[jobId]/error.tsx b/src/app/tailor/[jobId]/error.tsx index 9c7f2ef..3baf141 100644 --- a/src/app/tailor/[jobId]/error.tsx +++ b/src/app/tailor/[jobId]/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@saas-maker/ui/components/button'; import Link from 'next/link'; import { useEffect } from 'react'; @@ -26,9 +27,13 @@ export default function TailorError({ again.

- + Dashboard diff --git a/src/app/tools/ats-check/page-view.tsx b/src/app/tools/ats-check/page-view.tsx index 6611249..f4311bc 100644 --- a/src/app/tools/ats-check/page-view.tsx +++ b/src/app/tools/ats-check/page-view.tsx @@ -1,3 +1,4 @@ +import { Textarea } from '@saas-maker/ui/components/textarea'; import Link from 'next/link'; import type { useAtsCheckPageSourceState } from './page-state'; @@ -16,7 +17,7 @@ export function AtsCheckPageView(view: ReturnType -