noecosystem-design 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +12 -0
- package/.github/CODEOWNERS +10 -0
- package/.github/dependabot.yml +12 -0
- package/.github/pull_request_template.md +17 -0
- package/.github/workflows/ci.yml +173 -0
- package/.github/workflows/security.yml +40 -0
- package/.mcp.json +8 -0
- package/.node-version +1 -0
- package/AGENTS.md +62 -0
- package/CONTRIBUTING.md +9 -0
- package/README.md +48 -0
- package/SECURITY.md +7 -0
- package/apps/showcase/index.html +28 -0
- package/apps/showcase/package.json +30 -0
- package/apps/showcase/src/app.css +8 -0
- package/apps/showcase/src/app.tsx +10 -0
- package/apps/showcase/src/catalog/agent-composer-preview.tsx +17 -0
- package/apps/showcase/src/catalog/catalog-index.tsx +2676 -0
- package/apps/showcase/src/catalog/catalog-shell.browser.test.tsx +73 -0
- package/apps/showcase/src/catalog/catalog-shell.tsx +506 -0
- package/apps/showcase/src/main.tsx +17 -0
- package/apps/showcase/tsconfig.json +11 -0
- package/apps/showcase/vite.config.ts +15 -0
- package/apps/storybook/.storybook/main.ts +21 -0
- package/apps/storybook/.storybook/preview.tsx +87 -0
- package/apps/storybook/.storybook/vitest.setup.ts +26 -0
- package/apps/storybook/README.md +5 -0
- package/apps/storybook/package.json +31 -0
- package/apps/storybook/stories/AgentStates.stories.tsx +72 -0
- package/apps/storybook/stories/Bidi.stories.tsx +31 -0
- package/apps/storybook/stories/Button.stories.tsx +19 -0
- package/apps/storybook/stories/Surfaces.stories.tsx +28 -0
- package/apps/storybook/stories/catalog/about-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/activity-feed.stories.tsx +50 -0
- package/apps/storybook/stories/catalog/activity-gauge.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/agent-composer.stories.tsx +49 -0
- package/apps/storybook/stories/catalog/agent-message.stories.tsx +37 -0
- package/apps/storybook/stories/catalog/agent-plan.stories.tsx +35 -0
- package/apps/storybook/stories/catalog/agent-workspace.stories.tsx +60 -0
- package/apps/storybook/stories/catalog/alert.stories.tsx +41 -0
- package/apps/storybook/stories/catalog/app-frame.stories.tsx +47 -0
- package/apps/storybook/stories/catalog/approval-request.stories.tsx +30 -0
- package/apps/storybook/stories/catalog/avatar.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/badge-group.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/badge.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/banner.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/bidi-text.stories.tsx +47 -0
- package/apps/storybook/stories/catalog/blog-index-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/blog-post-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/blog-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/bottom-navigation.stories.tsx +27 -0
- package/apps/storybook/stories/catalog/button-group.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/button.stories.tsx +27 -0
- package/apps/storybook/stories/catalog/calendar.stories.tsx +47 -0
- package/apps/storybook/stories/catalog/card.stories.tsx +40 -0
- package/apps/storybook/stories/catalog/careers-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/carousel.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/chart-frame.stories.tsx +34 -0
- package/apps/storybook/stories/catalog/chart.stories.tsx +43 -0
- package/apps/storybook/stories/catalog/checkbox.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/code-and-terminal.stories.tsx +39 -0
- package/apps/storybook/stories/catalog/color-picker.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/command-menu.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/contact-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/contact-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/content-divider.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/content-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/context-menu.stories.tsx +66 -0
- package/apps/storybook/stories/catalog/credit-card.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/cta-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/dashboard-01.stories.tsx +28 -0
- package/apps/storybook/stories/catalog/dashboard-02.stories.tsx +28 -0
- package/apps/storybook/stories/catalog/dashboard-shell.stories.tsx +65 -0
- package/apps/storybook/stories/catalog/data-list.stories.tsx +37 -0
- package/apps/storybook/stories/catalog/data-table.stories.tsx +51 -0
- package/apps/storybook/stories/catalog/date-picker.stories.tsx +31 -0
- package/apps/storybook/stories/catalog/dialog.stories.tsx +68 -0
- package/apps/storybook/stories/catalog/direction-provider.stories.tsx +36 -0
- package/apps/storybook/stories/catalog/drawer.stories.tsx +58 -0
- package/apps/storybook/stories/catalog/dropdown.stories.tsx +67 -0
- package/apps/storybook/stories/catalog/email-template.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/empty-state.stories.tsx +19 -0
- package/apps/storybook/stories/catalog/error-state.stories.tsx +19 -0
- package/apps/storybook/stories/catalog/fab.stories.tsx +22 -0
- package/apps/storybook/stories/catalog/faq-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/faq-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/feature-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/featured-icon.stories.tsx +45 -0
- package/apps/storybook/stories/catalog/field.stories.tsx +35 -0
- package/apps/storybook/stories/catalog/file-uploader.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/filter-bar.stories.tsx +33 -0
- package/apps/storybook/stories/catalog/footer.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/forgot-password-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/gradient-picker.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/header-navigation.stories.tsx +46 -0
- package/apps/storybook/stories/catalog/hero-header.stories.tsx +36 -0
- package/apps/storybook/stories/catalog/icon-system.stories.tsx +48 -0
- package/apps/storybook/stories/catalog/illustration.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/image-picker.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/informational-page-01.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/informational-page-02.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/inline-cta.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/input.stories.tsx +21 -0
- package/apps/storybook/stories/catalog/landing-page.stories.tsx +28 -0
- package/apps/storybook/stories/catalog/legal-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/login-page.stories.tsx +42 -0
- package/apps/storybook/stories/catalog/marketing-404-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/marketing-header.stories.tsx +35 -0
- package/apps/storybook/stories/catalog/menu.stories.tsx +46 -0
- package/apps/storybook/stories/catalog/messaging.stories.tsx +33 -0
- package/apps/storybook/stories/catalog/metric-card.stories.tsx +20 -0
- package/apps/storybook/stories/catalog/metrics-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/mobile-screen.stories.tsx +56 -0
- package/apps/storybook/stories/catalog/multi-select.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/newsletter.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/not-found.stories.tsx +30 -0
- package/apps/storybook/stories/catalog/notification.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/page-header.stories.tsx +37 -0
- package/apps/storybook/stories/catalog/pagination.stories.tsx +27 -0
- package/apps/storybook/stories/catalog/pie-chart.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/pricing-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/pricing-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/progress-indicator.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/progress-steps.stories.tsx +33 -0
- package/apps/storybook/stories/catalog/qr-code.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/radar-chart.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/radio-group.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/rating.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/rich-text-editor.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/run-inspector.stories.tsx +23 -0
- package/apps/storybook/stories/catalog/section-footer.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/section-header.stories.tsx +31 -0
- package/apps/storybook/stories/catalog/select.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/settings-01.stories.tsx +24 -0
- package/apps/storybook/stories/catalog/settings-02.stories.tsx +24 -0
- package/apps/storybook/stories/catalog/settings-page.stories.tsx +48 -0
- package/apps/storybook/stories/catalog/sidebar-navigation.stories.tsx +40 -0
- package/apps/storybook/stories/catalog/sign-in-form.stories.tsx +28 -0
- package/apps/storybook/stories/catalog/sign-up-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/skeleton.stories.tsx +21 -0
- package/apps/storybook/stories/catalog/slider.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/social-button.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/social-proof.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/spinner.stories.tsx +15 -0
- package/apps/storybook/stories/catalog/store-button.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/tabs.stories.tsx +38 -0
- package/apps/storybook/stories/catalog/tags.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/team-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/team-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/testimonial-section.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/textarea.stories.tsx +22 -0
- package/apps/storybook/stories/catalog/toggle.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/tool-call.stories.tsx +40 -0
- package/apps/storybook/stories/catalog/tooltip.stories.tsx +30 -0
- package/apps/storybook/stories/catalog/tree-view.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/utility-button.stories.tsx +60 -0
- package/apps/storybook/stories/catalog/verification-code.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/verification-page.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/video-player.stories.tsx +18 -0
- package/apps/storybook/stories/catalog/workflow-canvas.stories.tsx +45 -0
- package/apps/storybook/stories/catalog/workflow-node.stories.tsx +24 -0
- package/apps/storybook/vitest.config.ts +39 -0
- package/apps/web/README.md +13 -0
- package/apps/web/app.js +483 -0
- package/apps/web/favicon.svg +6 -0
- package/apps/web/index.html +205 -0
- package/apps/web/styles.css +1823 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/README-FIRST.txt +20 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/SHA256SUMS.txt +11 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-delivery-metadata.json +25 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-design-system-evidence.zip +0 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-design-system-execution-report.md +60 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-design-system-manifest.json +106 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-design-system-source.tar.gz +0 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-design-system-source.zip +0 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-design-system.bundle +0 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-evidence-index.html +38 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-verification-status.txt +15 -0
- package/artifacts/original-delivery/NOE-Design-System-Delivery/noe-visual-contact-sheet.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/README.txt +13 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/browser-console.json +4 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/layout-audit.json +4 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/review/contact-sheet.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-dark-1024.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-dark-1280.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-dark-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-dark-390.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-dark-768.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-light-1024.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-light-1280.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-light-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-light-390.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-en-light-768.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-dark-1024.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-dark-1280.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-dark-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-dark-390.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-dark-768.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-light-1024.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-light-1280.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-light-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-light-390.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-fa-light-768.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-pseudo-ltr-1024.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/agent-pseudo-rtl-1024.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/consumer-en-light-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/consumer-fa-dark-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/dashboard-en-light-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/dashboard-fa-dark-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/workflow-en-light-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots/workflow-fa-dark-1440.png +0 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/screenshots-manifest.json +203 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/verification-result.json +165 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/verification-result.txt +32 -0
- package/artifacts/original-delivery/noe-design-system-evidence/evidence/visual-index.html +1 -0
- package/artifacts/original-delivery/noe-design-system-evidence/noe-delivery-metadata.json +25 -0
- package/artifacts/original-delivery/noe-design-system-evidence/noe-design-system-execution-report.md +60 -0
- package/artifacts/original-delivery/noe-design-system-evidence/noe-design-system-manifest.json +106 -0
- package/artifacts/original-delivery/noe-design-system-evidence/noe-verification-status.txt +15 -0
- package/artifacts/original-delivery/noe-design-system.bundle +0 -0
- package/artifacts/original-delivery/source-evidence/verification-result.json +165 -0
- package/artifacts/original-delivery/source-evidence/verification-result.txt +32 -0
- package/artifacts/registry-consumer-report.json +153 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Black.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Bold.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-DemiBold.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-ExtraBlack.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-ExtraBold.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Heavy.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Light.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Medium.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Regular.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-Thin.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff/IRANYekanXFaNum-UltraLight.woff +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Black.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Bold.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-DemiBold.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-ExtraBlack.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-ExtraBold.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Heavy.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Light.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Medium.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Regular.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-Thin.woff2 +0 -0
- package/artifacts/source-inputs/persian-fonts/Woff2/IRANYekanXFaNum-UltraLight.woff2 +0 -0
- package/biome.json +170 -0
- package/components.json +23 -0
- package/docs/adr/0001-semantic-foundation.md +5 -0
- package/docs/adr/0002-locale-direction.md +5 -0
- package/docs/adr/0003-registry-mcp.md +5 -0
- package/docs/adr/0004-testing-evidence.md +5 -0
- package/docs/adr/0005-noe-package-namespace.md +9 -0
- package/docs/adr/0006-icons8-icon-policy.md +9 -0
- package/docs/adr/0007-registry-publication-contract.md +9 -0
- package/docs/adr/0008-capability-library-adapter-boundaries.md +16 -0
- package/docs/adr/0009-calendar-system-jalali.md +29 -0
- package/docs/adr/0010-canonical-manifest-ownership.md +29 -0
- package/docs/adr/0011-palette-graphite-governance.md +27 -0
- package/docs/adr/0012-persian-font-gating.md +25 -0
- package/docs/adr/0013-cinematic-token-exception.md +32 -0
- package/docs/design-system/README.md +16 -0
- package/docs/design-system/accessibility.md +20 -0
- package/docs/design-system/agent-guide.md +11 -0
- package/docs/design-system/agentic-ui.md +21 -0
- package/docs/design-system/architecture.md +40 -0
- package/docs/design-system/brand.md +59 -0
- package/docs/design-system/ci-cd.md +46 -0
- package/docs/design-system/components.md +88 -0
- package/docs/design-system/contributing.md +7 -0
- package/docs/design-system/foundations.md +40 -0
- package/docs/design-system/i18n.md +24 -0
- package/docs/design-system/inventory.md +389 -0
- package/docs/design-system/mcp.md +7 -0
- package/docs/design-system/motion.md +7 -0
- package/docs/design-system/noe-brand-audit.md +33 -0
- package/docs/design-system/registry.md +16 -0
- package/docs/design-system/rtl.md +27 -0
- package/docs/design-system/security.md +16 -0
- package/docs/design-system/testing.md +39 -0
- package/docs/design-system/tokens.md +38 -0
- package/docs/design-system/visual-qa.md +10 -0
- package/docs/superpowers/plans/2026-08-25-noe-design-system-development-ready.md +833 -0
- package/docs/superpowers/plans/2026-08-26-noe-complete-catalog.md +422 -0
- package/docs/superpowers/specs/2026-08-25-noe-design-system-development-ready-design.md +260 -0
- package/docs/superpowers/specs/2026-08-26-noe-complete-catalog-design.md +187 -0
- package/llms.txt +20 -0
- package/package.json +68 -0
- package/packages/ai-ui/package.json +15 -0
- package/packages/ai-ui/src/activity-feed.tsx +60 -0
- package/packages/ai-ui/src/agent-composer.tsx +54 -0
- package/packages/ai-ui/src/agent-message.tsx +50 -0
- package/packages/ai-ui/src/agent-plan.tsx +69 -0
- package/packages/ai-ui/src/agent-workspace.tsx +63 -0
- package/packages/ai-ui/src/approval-request.tsx +93 -0
- package/packages/ai-ui/src/index.ts +8 -0
- package/packages/ai-ui/src/run-inspector.tsx +54 -0
- package/packages/ai-ui/src/tool-call.tsx +71 -0
- package/packages/data-ui/package.json +16 -0
- package/packages/data-ui/src/activity-gauge.tsx +38 -0
- package/packages/data-ui/src/chart-frame.tsx +41 -0
- package/packages/data-ui/src/chart.tsx +131 -0
- package/packages/data-ui/src/dashboard-01.tsx +39 -0
- package/packages/data-ui/src/dashboard-02.tsx +33 -0
- package/packages/data-ui/src/dashboard-shell.tsx +56 -0
- package/packages/data-ui/src/data-table.tsx +99 -0
- package/packages/data-ui/src/filter-bar.tsx +28 -0
- package/packages/data-ui/src/index.ts +12 -0
- package/packages/data-ui/src/metric-card.tsx +43 -0
- package/packages/data-ui/src/pagination.tsx +67 -0
- package/packages/data-ui/src/pie-chart.tsx +38 -0
- package/packages/data-ui/src/radar-chart.tsx +38 -0
- package/packages/design-tokens/package.json +23 -0
- package/packages/design-tokens/src/base.css +255 -0
- package/packages/design-tokens/src/fonts/IRANYekanXFaNum-Bold.woff2 +0 -0
- package/packages/design-tokens/src/fonts/IRANYekanXFaNum-DemiBold.woff2 +0 -0
- package/packages/design-tokens/src/fonts/IRANYekanXFaNum-Medium.woff2 +0 -0
- package/packages/design-tokens/src/fonts/IRANYekanXFaNum-Regular.woff2 +0 -0
- package/packages/design-tokens/src/fonts/IRANYekanXVF.ttf +0 -0
- package/packages/design-tokens/src/fonts/README.md +13 -0
- package/packages/design-tokens/src/fonts.css +49 -0
- package/packages/design-tokens/src/index.test.ts +36 -0
- package/packages/design-tokens/src/index.ts +5 -0
- package/packages/design-tokens/src/palette.ts +27 -0
- package/packages/design-tokens/src/tailwind.css +3 -0
- package/packages/design-tokens/src/theme.css +67 -0
- package/packages/design-tokens/src/tokens.css +251 -0
- package/packages/design-tokens/src/tokens.json +275 -0
- package/packages/design-tokens/src/tokens.mjs +276 -0
- package/packages/i18n/package.json +13 -0
- package/packages/i18n/src/index.ts +17 -0
- package/packages/i18n/src/messages/en.json +116 -0
- package/packages/i18n/src/messages/fa.json +116 -0
- package/packages/i18n/src/runtime.d.mts +42 -0
- package/packages/i18n/src/runtime.mjs +113 -0
- package/packages/i18n/src/translate.test.ts +50 -0
- package/packages/i18n/src/translate.ts +29 -0
- package/packages/icons/package.json +12 -0
- package/packages/icons/src/adapters.tsx +167 -0
- package/packages/icons/src/index.tsx +103 -0
- package/packages/registry/README.md +7 -0
- package/packages/registry/catalog-index.json +1345 -0
- package/packages/registry/component-audit.json +1038 -0
- package/packages/registry/coss-adoption.json +281 -0
- package/packages/registry/docs-index.json +1881 -0
- package/packages/registry/manifest.json +11081 -0
- package/packages/registry/manifest.schema.json +135 -0
- package/packages/registry/package.json +10 -0
- package/packages/registry/r/activity-feed.json +67 -0
- package/packages/registry/r/agent-composer.json +79 -0
- package/packages/registry/r/agent-message.json +72 -0
- package/packages/registry/r/agent-plan.json +67 -0
- package/packages/registry/r/agent-workspace.json +67 -0
- package/packages/registry/r/alert.json +68 -0
- package/packages/registry/r/app-frame.json +67 -0
- package/packages/registry/r/approval-request.json +84 -0
- package/packages/registry/r/badge.json +68 -0
- package/packages/registry/r/bidi-text.json +70 -0
- package/packages/registry/r/bottom-navigation.json +67 -0
- package/packages/registry/r/button.json +83 -0
- package/packages/registry/r/calendar.json +97 -0
- package/packages/registry/r/card.json +67 -0
- package/packages/registry/r/chart-frame.json +67 -0
- package/packages/registry/r/chart.json +67 -0
- package/packages/registry/r/code-block.json +67 -0
- package/packages/registry/r/context-menu.json +81 -0
- package/packages/registry/r/dashboard-01.json +86 -0
- package/packages/registry/r/dashboard-02.json +84 -0
- package/packages/registry/r/dashboard-shell.json +67 -0
- package/packages/registry/r/data-list.json +67 -0
- package/packages/registry/r/data-table.json +72 -0
- package/packages/registry/r/date-picker.json +117 -0
- package/packages/registry/r/dialog.json +84 -0
- package/packages/registry/r/direction-provider.json +54 -0
- package/packages/registry/r/drawer.json +80 -0
- package/packages/registry/r/dropdown.json +78 -0
- package/packages/registry/r/empty-state.json +67 -0
- package/packages/registry/r/error-state.json +67 -0
- package/packages/registry/r/fab.json +80 -0
- package/packages/registry/r/featured-icon.json +71 -0
- package/packages/registry/r/filter-bar.json +69 -0
- package/packages/registry/r/gradient-picker.json +62 -0
- package/packages/registry/r/header-navigation.json +67 -0
- package/packages/registry/r/hero-header.json +63 -0
- package/packages/registry/r/icon-system.json +59 -0
- package/packages/registry/r/image-picker.json +62 -0
- package/packages/registry/r/inline-cta.json +73 -0
- package/packages/registry/r/input.json +73 -0
- package/packages/registry/r/landing-page.json +70 -0
- package/packages/registry/r/login-page.json +71 -0
- package/packages/registry/r/marketing-header.json +63 -0
- package/packages/registry/r/menu.json +74 -0
- package/packages/registry/r/messaging.json +69 -0
- package/packages/registry/r/metric-card.json +67 -0
- package/packages/registry/r/mobile-screen.json +67 -0
- package/packages/registry/r/not-found.json +63 -0
- package/packages/registry/r/page-header.json +67 -0
- package/packages/registry/r/pagination.json +91 -0
- package/packages/registry/r/progress-steps.json +69 -0
- package/packages/registry/r/run-inspector.json +72 -0
- package/packages/registry/r/section-header.json +67 -0
- package/packages/registry/r/settings-01.json +94 -0
- package/packages/registry/r/settings-02.json +99 -0
- package/packages/registry/r/settings-page.json +67 -0
- package/packages/registry/r/sidebar-navigation.json +67 -0
- package/packages/registry/r/sign-in-form.json +89 -0
- package/packages/registry/r/skeleton.json +67 -0
- package/packages/registry/r/spinner.json +67 -0
- package/packages/registry/r/tabs.json +69 -0
- package/packages/registry/r/textarea.json +73 -0
- package/packages/registry/r/tool-call.json +72 -0
- package/packages/registry/r/tooltip.json +73 -0
- package/packages/registry/r/utility-button.json +83 -0
- package/packages/registry/r/workflow-canvas.json +67 -0
- package/packages/registry/r/workflow-node.json +72 -0
- package/packages/registry/r-planned-backup/about-page.json +14 -0
- package/packages/registry/r-planned-backup/activity-gauge.json +14 -0
- package/packages/registry/r-planned-backup/avatar.json +14 -0
- package/packages/registry/r-planned-backup/badge-group.json +14 -0
- package/packages/registry/r-planned-backup/banner.json +14 -0
- package/packages/registry/r-planned-backup/blog-index-page.json +14 -0
- package/packages/registry/r-planned-backup/blog-post-page.json +14 -0
- package/packages/registry/r-planned-backup/blog-section.json +14 -0
- package/packages/registry/r-planned-backup/button-group.json +14 -0
- package/packages/registry/r-planned-backup/careers-section.json +14 -0
- package/packages/registry/r-planned-backup/carousel.json +14 -0
- package/packages/registry/r-planned-backup/checkbox.json +14 -0
- package/packages/registry/r-planned-backup/color-picker.json +14 -0
- package/packages/registry/r-planned-backup/command-menu.json +14 -0
- package/packages/registry/r-planned-backup/contact-page.json +14 -0
- package/packages/registry/r-planned-backup/contact-section.json +14 -0
- package/packages/registry/r-planned-backup/content-divider.json +14 -0
- package/packages/registry/r-planned-backup/content-section.json +14 -0
- package/packages/registry/r-planned-backup/credit-card.json +14 -0
- package/packages/registry/r-planned-backup/cta-section.json +14 -0
- package/packages/registry/r-planned-backup/email-template.json +14 -0
- package/packages/registry/r-planned-backup/faq-page.json +14 -0
- package/packages/registry/r-planned-backup/faq-section.json +14 -0
- package/packages/registry/r-planned-backup/feature-section.json +14 -0
- package/packages/registry/r-planned-backup/file-uploader.json +14 -0
- package/packages/registry/r-planned-backup/footer.json +14 -0
- package/packages/registry/r-planned-backup/forgot-password-page.json +14 -0
- package/packages/registry/r-planned-backup/illustration.json +14 -0
- package/packages/registry/r-planned-backup/informational-page-01.json +14 -0
- package/packages/registry/r-planned-backup/informational-page-02.json +14 -0
- package/packages/registry/r-planned-backup/legal-page.json +14 -0
- package/packages/registry/r-planned-backup/marketing-404-page.json +14 -0
- package/packages/registry/r-planned-backup/metrics-section.json +14 -0
- package/packages/registry/r-planned-backup/multi-select.json +14 -0
- package/packages/registry/r-planned-backup/newsletter.json +14 -0
- package/packages/registry/r-planned-backup/notification.json +14 -0
- package/packages/registry/r-planned-backup/pie-chart.json +14 -0
- package/packages/registry/r-planned-backup/pricing-page.json +14 -0
- package/packages/registry/r-planned-backup/pricing-section.json +14 -0
- package/packages/registry/r-planned-backup/progress-indicator.json +14 -0
- package/packages/registry/r-planned-backup/qr-code.json +14 -0
- package/packages/registry/r-planned-backup/radar-chart.json +14 -0
- package/packages/registry/r-planned-backup/radio-group.json +14 -0
- package/packages/registry/r-planned-backup/rating.json +14 -0
- package/packages/registry/r-planned-backup/rich-text-editor.json +14 -0
- package/packages/registry/r-planned-backup/section-footer.json +14 -0
- package/packages/registry/r-planned-backup/select.json +14 -0
- package/packages/registry/r-planned-backup/sign-up-page.json +14 -0
- package/packages/registry/r-planned-backup/slider.json +14 -0
- package/packages/registry/r-planned-backup/social-button.json +14 -0
- package/packages/registry/r-planned-backup/social-proof.json +14 -0
- package/packages/registry/r-planned-backup/store-button.json +14 -0
- package/packages/registry/r-planned-backup/tags.json +14 -0
- package/packages/registry/r-planned-backup/team-page.json +14 -0
- package/packages/registry/r-planned-backup/team-section.json +14 -0
- package/packages/registry/r-planned-backup/testimonial-section.json +14 -0
- package/packages/registry/r-planned-backup/toggle.json +14 -0
- package/packages/registry/r-planned-backup/tree-view.json +14 -0
- package/packages/registry/r-planned-backup/verification-code.json +14 -0
- package/packages/registry/r-planned-backup/verification-page.json +14 -0
- package/packages/registry/r-planned-backup/video-player.json +14 -0
- package/packages/registry/registry.json +1997 -0
- package/packages/registry/search-index.json +3942 -0
- package/packages/testing/package.json +9 -0
- package/packages/testing/src/index.mjs +10 -0
- package/packages/ui/package.json +26 -0
- package/packages/ui/src/about-page.tsx +19 -0
- package/packages/ui/src/alert.tsx +67 -0
- package/packages/ui/src/app-frame.tsx +63 -0
- package/packages/ui/src/avatar.tsx +19 -0
- package/packages/ui/src/badge-group.tsx +19 -0
- package/packages/ui/src/badge.tsx +35 -0
- package/packages/ui/src/banner.tsx +19 -0
- package/packages/ui/src/bidi.tsx +80 -0
- package/packages/ui/src/blog-index-page.tsx +19 -0
- package/packages/ui/src/blog-post-page.tsx +19 -0
- package/packages/ui/src/blog-section.tsx +19 -0
- package/packages/ui/src/bottom-navigation.tsx +60 -0
- package/packages/ui/src/button-group.tsx +19 -0
- package/packages/ui/src/button.browser.test.tsx +38 -0
- package/packages/ui/src/button.tsx +81 -0
- package/packages/ui/src/calendar-system.test.ts +103 -0
- package/packages/ui/src/calendar-system.ts +120 -0
- package/packages/ui/src/calendar.browser.test.tsx +52 -0
- package/packages/ui/src/calendar.tsx +339 -0
- package/packages/ui/src/card.tsx +63 -0
- package/packages/ui/src/careers-section.tsx +19 -0
- package/packages/ui/src/carousel.tsx +19 -0
- package/packages/ui/src/checkbox.tsx +17 -0
- package/packages/ui/src/cinematic/cinematic.css +2020 -0
- package/packages/ui/src/cinematic/ecosystem-motion-showcase.tsx +265 -0
- package/packages/ui/src/cinematic/ecosystem-sphere.tsx +627 -0
- package/packages/ui/src/cinematic/index.ts +5 -0
- package/packages/ui/src/cinematic/kinetic-experience.tsx +207 -0
- package/packages/ui/src/cinematic/portfolio.ts +132 -0
- package/packages/ui/src/cinematic/system-anatomy.tsx +173 -0
- package/packages/ui/src/code.tsx +119 -0
- package/packages/ui/src/color-picker.tsx +22 -0
- package/packages/ui/src/command-menu.tsx +19 -0
- package/packages/ui/src/contact-page.tsx +19 -0
- package/packages/ui/src/contact-section.tsx +19 -0
- package/packages/ui/src/content-divider.tsx +19 -0
- package/packages/ui/src/content-section.tsx +19 -0
- package/packages/ui/src/context-menu.tsx +208 -0
- package/packages/ui/src/credit-card.tsx +19 -0
- package/packages/ui/src/cta-section.tsx +19 -0
- package/packages/ui/src/data-list.tsx +81 -0
- package/packages/ui/src/date-picker.browser.test.tsx +48 -0
- package/packages/ui/src/date-picker.tsx +248 -0
- package/packages/ui/src/dialog.browser.test.tsx +32 -0
- package/packages/ui/src/dialog.tsx +144 -0
- package/packages/ui/src/direction.tsx +46 -0
- package/packages/ui/src/drawer.tsx +179 -0
- package/packages/ui/src/dropdown.tsx +200 -0
- package/packages/ui/src/email-template.tsx +19 -0
- package/packages/ui/src/empty-state.tsx +43 -0
- package/packages/ui/src/error-state.tsx +44 -0
- package/packages/ui/src/fab.tsx +32 -0
- package/packages/ui/src/faq-page.tsx +19 -0
- package/packages/ui/src/faq-section.tsx +19 -0
- package/packages/ui/src/feature-section.tsx +19 -0
- package/packages/ui/src/featured-icon.tsx +63 -0
- package/packages/ui/src/field.browser.test.tsx +33 -0
- package/packages/ui/src/field.tsx +117 -0
- package/packages/ui/src/file-uploader.tsx +19 -0
- package/packages/ui/src/footer.tsx +19 -0
- package/packages/ui/src/forgot-password-page.tsx +19 -0
- package/packages/ui/src/gradient-picker.tsx +65 -0
- package/packages/ui/src/header-navigation.tsx +71 -0
- package/packages/ui/src/hero-header.tsx +57 -0
- package/packages/ui/src/illustration.tsx +19 -0
- package/packages/ui/src/image-picker.tsx +56 -0
- package/packages/ui/src/index.ts +110 -0
- package/packages/ui/src/informational-page-01.tsx +19 -0
- package/packages/ui/src/informational-page-02.tsx +19 -0
- package/packages/ui/src/inline-cta.tsx +29 -0
- package/packages/ui/src/input.tsx +44 -0
- package/packages/ui/src/landing-page.tsx +56 -0
- package/packages/ui/src/legal-page.tsx +19 -0
- package/packages/ui/src/lib/cn.ts +6 -0
- package/packages/ui/src/lib/i18n-messages.ts +40 -0
- package/packages/ui/src/login-page.tsx +78 -0
- package/packages/ui/src/marketing-404-page.tsx +19 -0
- package/packages/ui/src/marketing-header.tsx +53 -0
- package/packages/ui/src/menu.tsx +220 -0
- package/packages/ui/src/messaging.tsx +62 -0
- package/packages/ui/src/metrics-section.tsx +19 -0
- package/packages/ui/src/mobile-screen.tsx +37 -0
- package/packages/ui/src/multi-select.tsx +16 -0
- package/packages/ui/src/newsletter.tsx +19 -0
- package/packages/ui/src/not-found.tsx +60 -0
- package/packages/ui/src/notification.tsx +19 -0
- package/packages/ui/src/page-header.tsx +80 -0
- package/packages/ui/src/pricing-page.tsx +19 -0
- package/packages/ui/src/pricing-section.tsx +19 -0
- package/packages/ui/src/progress-indicator.tsx +19 -0
- package/packages/ui/src/progress-steps.tsx +85 -0
- package/packages/ui/src/qr-code.tsx +19 -0
- package/packages/ui/src/radio-group.tsx +26 -0
- package/packages/ui/src/rating.tsx +19 -0
- package/packages/ui/src/rich-text-editor.tsx +18 -0
- package/packages/ui/src/section-footer.tsx +19 -0
- package/packages/ui/src/section-header.tsx +37 -0
- package/packages/ui/src/select.tsx +27 -0
- package/packages/ui/src/settings-01.tsx +49 -0
- package/packages/ui/src/settings-02.tsx +58 -0
- package/packages/ui/src/settings-page.tsx +62 -0
- package/packages/ui/src/sidebar-navigation.tsx +77 -0
- package/packages/ui/src/sign-in-form.tsx +60 -0
- package/packages/ui/src/sign-up-page.tsx +19 -0
- package/packages/ui/src/skeleton.tsx +14 -0
- package/packages/ui/src/slider.tsx +13 -0
- package/packages/ui/src/social-button.tsx +19 -0
- package/packages/ui/src/social-proof.tsx +19 -0
- package/packages/ui/src/spinner.tsx +26 -0
- package/packages/ui/src/store-button.tsx +19 -0
- package/packages/ui/src/tabs.browser.test.tsx +33 -0
- package/packages/ui/src/tabs.tsx +175 -0
- package/packages/ui/src/tags.tsx +11 -0
- package/packages/ui/src/team-page.tsx +19 -0
- package/packages/ui/src/team-section.tsx +19 -0
- package/packages/ui/src/testimonial-section.tsx +19 -0
- package/packages/ui/src/textarea.tsx +45 -0
- package/packages/ui/src/theme-provider.browser.test.tsx +90 -0
- package/packages/ui/src/theme-provider.tsx +417 -0
- package/packages/ui/src/theme-toggle.tsx +107 -0
- package/packages/ui/src/toggle.tsx +34 -0
- package/packages/ui/src/tooltip.tsx +50 -0
- package/packages/ui/src/tree-view.tsx +19 -0
- package/packages/ui/src/utility-button.tsx +33 -0
- package/packages/ui/src/utils.ts +13 -0
- package/packages/ui/src/verification-code.tsx +27 -0
- package/packages/ui/src/verification-page.tsx +19 -0
- package/packages/ui/src/video-player.tsx +19 -0
- package/packages/workflow-ui/package.json +15 -0
- package/packages/workflow-ui/src/index.ts +2 -0
- package/packages/workflow-ui/src/workflow-canvas.tsx +51 -0
- package/packages/workflow-ui/src/workflow-node.tsx +61 -0
- package/playwright.config.ts +58 -0
- package/pnpm-workspace.yaml +5 -0
- package/registry.json +216 -0
- package/scripts/build-static.mjs +68 -0
- package/scripts/capture-visuals.py +106 -0
- package/scripts/capture-visuals.sh +10 -0
- package/scripts/create-visual-index.mjs +16 -0
- package/scripts/enrich-registry-payloads.mjs +83 -0
- package/scripts/fix-noe-imports.mjs +134 -0
- package/scripts/fix-registry-closure.mjs +110 -0
- package/scripts/fix-registry-deps-cleanup.mjs +149 -0
- package/scripts/fix-relative-for-registry.mjs +103 -0
- package/scripts/generate-design-tokens.mjs +134 -0
- package/scripts/generate-inventory.mjs +62 -0
- package/scripts/generate-manifest.mjs +1149 -0
- package/scripts/generate-phase4.mjs +875 -0
- package/scripts/validate-manifest.mjs +477 -0
- package/scripts/validate-pngs.mjs +31 -0
- package/scripts/verify-registry-consumer.mjs +319 -0
- package/scripts/verify-registry-dependencies.mjs +162 -0
- package/scripts/verify.mjs +316 -0
- package/tests/catalog-audit.test.mjs +156 -0
- package/tests/e2e/capture-visuals.mjs +34 -0
- package/tests/e2e/catalog-typography.spec.ts +110 -0
- package/tests/e2e/catalog.spec.ts +68 -0
- package/tests/e2e/direction.spec.ts +60 -0
- package/tests/e2e/responsive.spec.ts +30 -0
- package/tests/e2e/surfaces.spec.ts +51 -0
- package/tests/i18n.test.mjs +36 -0
- package/tests/icons.test.mjs +21 -0
- package/tests/registry-publication.test.mjs +88 -0
- package/tests/registry.test.mjs +51 -0
- package/tests/rtl.test.mjs +21 -0
- package/tests/static-app.test.mjs +49 -0
- package/tests/tokens.test.mjs +24 -0
- package/tests/workspace.test.mjs +25 -0
- package/tsconfig.base.json +69 -0
- package/tsconfig.json +27 -0
- package/tsconfig.verify.json +19 -0
- package/types/offline-react.d.ts +73 -0
- package/vitest.config.ts +91 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { cn } from './lib/cn';
|
|
3
|
+
export function VerificationCode({
|
|
4
|
+
className,
|
|
5
|
+
length = 6,
|
|
6
|
+
...props
|
|
7
|
+
}: React.ComponentProps<'fieldset'> & { length?: number }) {
|
|
8
|
+
return (
|
|
9
|
+
<fieldset
|
|
10
|
+
aria-label="Verification code"
|
|
11
|
+
className={cn('flex gap-1.5 border-0 p-0', className)}
|
|
12
|
+
data-slot="verification-code"
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<legend className="sr-only">Verification code</legend>
|
|
16
|
+
{Array.from({ length }).map((_, i) => (
|
|
17
|
+
<input
|
|
18
|
+
key={`digit-${i}`}
|
|
19
|
+
aria-label={`Digit ${i + 1}`}
|
|
20
|
+
maxLength={1}
|
|
21
|
+
className="size-10 rounded-md border border-border bg-background text-center text-sm"
|
|
22
|
+
dir="ltr"
|
|
23
|
+
/>
|
|
24
|
+
))}
|
|
25
|
+
</fieldset>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { cn } from './lib/cn';
|
|
3
|
+
export interface VerificationPageProps extends React.ComponentProps<'div'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export function VerificationPage({ className, children, ...props }: VerificationPageProps) {
|
|
7
|
+
return (
|
|
8
|
+
<div
|
|
9
|
+
className={cn(
|
|
10
|
+
'rounded-md border border-border bg-surface-raised p-4 text-sm text-foreground',
|
|
11
|
+
className,
|
|
12
|
+
)}
|
|
13
|
+
data-slot="verification-page"
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
{children ?? 'Verification Page'}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { cn } from './lib/cn';
|
|
3
|
+
export interface VideoPlayerProps extends React.ComponentProps<'div'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export function VideoPlayer({ className, children, ...props }: VideoPlayerProps) {
|
|
7
|
+
return (
|
|
8
|
+
<div
|
|
9
|
+
className={cn(
|
|
10
|
+
'rounded-md border border-border bg-surface-raised p-4 text-sm text-foreground',
|
|
11
|
+
className,
|
|
12
|
+
)}
|
|
13
|
+
data-slot="video-player"
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
{children ?? 'Video Player'}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { cn } from '@noe/ui/lib/cn';
|
|
3
|
+
|
|
4
|
+
export function WorkflowCanvas({
|
|
5
|
+
label,
|
|
6
|
+
toolbar,
|
|
7
|
+
children,
|
|
8
|
+
inspector,
|
|
9
|
+
className,
|
|
10
|
+
}: {
|
|
11
|
+
label: string;
|
|
12
|
+
toolbar?: React.ReactNode;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
inspector?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}) {
|
|
17
|
+
return (
|
|
18
|
+
<section
|
|
19
|
+
aria-label={label}
|
|
20
|
+
className={cn(
|
|
21
|
+
'grid min-h-96 grid-rows-[auto_1fr] overflow-hidden rounded-lg border border-border bg-surface-raised',
|
|
22
|
+
inspector && 'md:grid-cols-[1fr_18rem]',
|
|
23
|
+
className,
|
|
24
|
+
)}
|
|
25
|
+
data-slot="workflow-canvas-shell"
|
|
26
|
+
>
|
|
27
|
+
{toolbar ? (
|
|
28
|
+
<div
|
|
29
|
+
className="flex items-center gap-2 border-b border-border bg-surface-sunken/60 px-4 py-2.5 md:col-span-2"
|
|
30
|
+
data-slot="workflow-toolbar"
|
|
31
|
+
>
|
|
32
|
+
{toolbar}
|
|
33
|
+
</div>
|
|
34
|
+
) : null}
|
|
35
|
+
<div
|
|
36
|
+
className="relative min-h-0 overflow-auto bg-[radial-gradient(var(--noe-color-border)_1px,transparent_1px)] [background-size:20px_20px] p-6"
|
|
37
|
+
data-slot="workflow-canvas"
|
|
38
|
+
>
|
|
39
|
+
{children}
|
|
40
|
+
</div>
|
|
41
|
+
{inspector ? (
|
|
42
|
+
<aside
|
|
43
|
+
className="flex min-h-0 flex-col gap-3 overflow-auto border-border border-t p-4 md:border-s md:border-t-0"
|
|
44
|
+
data-slot="workflow-inspector"
|
|
45
|
+
>
|
|
46
|
+
{inspector}
|
|
47
|
+
</aside>
|
|
48
|
+
) : null}
|
|
49
|
+
</section>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { TechnicalValue } from '@noe/ui/bidi';
|
|
3
|
+
import { cn } from '@noe/ui/lib/cn';
|
|
4
|
+
|
|
5
|
+
export type WorkflowNodeKind = 'trigger' | 'agent' | 'tool' | 'condition' | 'output';
|
|
6
|
+
|
|
7
|
+
const kindAccent: Record<WorkflowNodeKind, string> = {
|
|
8
|
+
trigger: 'bg-info',
|
|
9
|
+
agent: 'bg-accent',
|
|
10
|
+
tool: 'bg-success',
|
|
11
|
+
condition: 'bg-warning',
|
|
12
|
+
output: 'bg-muted-foreground',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export function WorkflowNode({
|
|
16
|
+
kind,
|
|
17
|
+
title,
|
|
18
|
+
subtitle,
|
|
19
|
+
selected,
|
|
20
|
+
technicalId,
|
|
21
|
+
className,
|
|
22
|
+
}: {
|
|
23
|
+
kind: WorkflowNodeKind;
|
|
24
|
+
title: React.ReactNode;
|
|
25
|
+
subtitle?: React.ReactNode;
|
|
26
|
+
selected?: boolean;
|
|
27
|
+
technicalId?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
}) {
|
|
30
|
+
return (
|
|
31
|
+
<article
|
|
32
|
+
className={cn(
|
|
33
|
+
'inline-flex w-56 items-start gap-2.5 rounded-md border bg-surface-raised p-3 shadow-raised transition-[border-color,box-shadow] duration-(--noe-motion-duration-fast)',
|
|
34
|
+
selected
|
|
35
|
+
? 'border-accent ring-2 ring-focus-ring'
|
|
36
|
+
: 'border-border hover:border-border-strong',
|
|
37
|
+
className,
|
|
38
|
+
)}
|
|
39
|
+
data-kind={kind}
|
|
40
|
+
data-selected={selected || undefined}
|
|
41
|
+
data-slot="workflow-node"
|
|
42
|
+
>
|
|
43
|
+
<span
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
className={cn('mt-1 size-2.5 shrink-0 rounded-pill', kindAccent[kind])}
|
|
46
|
+
data-slot="workflow-node-icon"
|
|
47
|
+
/>
|
|
48
|
+
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
|
|
49
|
+
<strong className="truncate text-sm font-medium leading-snug text-foreground">
|
|
50
|
+
{title}
|
|
51
|
+
</strong>
|
|
52
|
+
{subtitle ? (
|
|
53
|
+
<small className="truncate text-xs text-muted-foreground">{subtitle}</small>
|
|
54
|
+
) : null}
|
|
55
|
+
{technicalId ? (
|
|
56
|
+
<TechnicalValue className="mt-0.5 block w-fit">{technicalId}</TechnicalValue>
|
|
57
|
+
) : null}
|
|
58
|
+
</div>
|
|
59
|
+
</article>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
const PORT = 4173;
|
|
4
|
+
const BASE_URL = `http://127.0.0.1:${PORT}/apps/web/`;
|
|
5
|
+
const CATALOG_PORT = 4174;
|
|
6
|
+
export const CATALOG_URL = `http://127.0.0.1:${CATALOG_PORT}/`;
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
testDir: 'tests/e2e',
|
|
10
|
+
fullyParallel: false,
|
|
11
|
+
workers: 1,
|
|
12
|
+
forbidOnly: true,
|
|
13
|
+
retries: process.env.CI ? 1 : 0,
|
|
14
|
+
reporter: [['list'], ['html', { open: 'never', outputFolder: 'playwright-report' }]],
|
|
15
|
+
use: {
|
|
16
|
+
baseURL: BASE_URL,
|
|
17
|
+
trace: 'retain-on-failure',
|
|
18
|
+
screenshot: 'only-on-failure',
|
|
19
|
+
},
|
|
20
|
+
projects: [
|
|
21
|
+
{
|
|
22
|
+
name: 'chromium-en-ltr',
|
|
23
|
+
use: { ...devices['Desktop Chrome'] },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'chromium-fa-rtl',
|
|
27
|
+
use: { ...devices['Desktop Chrome'] },
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'chromium-pseudo',
|
|
31
|
+
use: { ...devices['Desktop Chrome'] },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'firefox-en-smoke',
|
|
35
|
+
use: { ...devices['Desktop Firefox'] },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'webkit-en-smoke',
|
|
39
|
+
use: { ...devices['Desktop iPhone 13'] },
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
webServer: [
|
|
43
|
+
{
|
|
44
|
+
command: `python3 -m http.server ${PORT} --directory .`,
|
|
45
|
+
url: `${BASE_URL}index.html`,
|
|
46
|
+
reuseExistingServer: false,
|
|
47
|
+
timeout: 60_000,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
// Serves the real @noe/showcase catalog (tests/e2e/catalog.spec.ts) — the
|
|
51
|
+
// static apps/web reference above cannot run the React/TSX catalog source.
|
|
52
|
+
command: `pnpm --filter @noe/showcase exec vite --host 127.0.0.1 --port ${CATALOG_PORT} --strictPort`,
|
|
53
|
+
url: CATALOG_URL,
|
|
54
|
+
reuseExistingServer: false,
|
|
55
|
+
timeout: 60_000,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
});
|
package/registry.json
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry.json",
|
|
3
|
+
"name": "noe",
|
|
4
|
+
"homepage": "https://noecosystem.com/",
|
|
5
|
+
"_status": "legacy — canonical registry is packages/registry/registry.json and packages/registry/manifest.json; this file is shadcn compat and will be removed",
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"name": "button",
|
|
9
|
+
"type": "registry:ui",
|
|
10
|
+
"title": "Button",
|
|
11
|
+
"description": "Primary action primitive with semantic variants, focus visibility, loading state and bidirectional layout.",
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "packages/ui/src/button.tsx",
|
|
15
|
+
"type": "registry:component",
|
|
16
|
+
"target": "packages/ui/src/button.tsx"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "input",
|
|
22
|
+
"type": "registry:ui",
|
|
23
|
+
"title": "Input and Field",
|
|
24
|
+
"description": "Accessible form field composition with localized labels, errors, descriptions and technical-input direction policy.",
|
|
25
|
+
"files": [
|
|
26
|
+
{
|
|
27
|
+
"path": "packages/ui/src/field.tsx",
|
|
28
|
+
"type": "registry:component",
|
|
29
|
+
"target": "packages/ui/src/field.tsx"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "dialog",
|
|
35
|
+
"type": "registry:ui",
|
|
36
|
+
"title": "Dialog",
|
|
37
|
+
"description": "Direction-preserving modal primitive with native focus semantics and portal propagation.",
|
|
38
|
+
"files": [
|
|
39
|
+
{
|
|
40
|
+
"path": "packages/ui/src/dialog.tsx",
|
|
41
|
+
"type": "registry:component",
|
|
42
|
+
"target": "packages/ui/src/dialog.tsx"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "drawer",
|
|
48
|
+
"type": "registry:ui",
|
|
49
|
+
"title": "Drawer",
|
|
50
|
+
"description": "Logical start/end drawer that resolves against active writing direction and keeps DOM order stable.",
|
|
51
|
+
"files": [
|
|
52
|
+
{
|
|
53
|
+
"path": "packages/ui/src/drawer.tsx",
|
|
54
|
+
"type": "registry:component",
|
|
55
|
+
"target": "packages/ui/src/drawer.tsx"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "bidi-text",
|
|
61
|
+
"type": "registry:ui",
|
|
62
|
+
"title": "Bidi Text",
|
|
63
|
+
"description": "Mixed-direction content primitives for user text, URLs, hashes, commands and technical identifiers.",
|
|
64
|
+
"files": [
|
|
65
|
+
{
|
|
66
|
+
"path": "packages/ui/src/bidi.tsx",
|
|
67
|
+
"type": "registry:component",
|
|
68
|
+
"target": "packages/ui/src/bidi.tsx"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "code-block",
|
|
74
|
+
"type": "registry:ui",
|
|
75
|
+
"title": "Code and Terminal",
|
|
76
|
+
"description": "LTR-isolated code, command, terminal and log presentation inside RTL or LTR application chrome.",
|
|
77
|
+
"files": [
|
|
78
|
+
{
|
|
79
|
+
"path": "packages/ui/src/code.tsx",
|
|
80
|
+
"type": "registry:component",
|
|
81
|
+
"target": "packages/ui/src/code.tsx"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "data-table",
|
|
87
|
+
"type": "registry:ui",
|
|
88
|
+
"title": "Data Table",
|
|
89
|
+
"description": "Direction-safe semantic table contract prepared for TanStack Table state adapters.",
|
|
90
|
+
"files": [
|
|
91
|
+
{
|
|
92
|
+
"path": "packages/data-ui/src/data-table.tsx",
|
|
93
|
+
"type": "registry:component",
|
|
94
|
+
"target": "packages/data-ui/src/data-table.tsx"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "metric-card",
|
|
100
|
+
"type": "registry:ui",
|
|
101
|
+
"title": "Metric Card",
|
|
102
|
+
"description": "Quiet operational metric composition with semantic status treatment and localized values.",
|
|
103
|
+
"files": [
|
|
104
|
+
{
|
|
105
|
+
"path": "packages/data-ui/src/metric-card.tsx",
|
|
106
|
+
"type": "registry:component",
|
|
107
|
+
"target": "packages/data-ui/src/metric-card.tsx"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "agent-message",
|
|
113
|
+
"type": "registry:ui",
|
|
114
|
+
"title": "Agent Message",
|
|
115
|
+
"description": "Agent and human message composition with auto-direction runtime content and model identifier isolation.",
|
|
116
|
+
"files": [
|
|
117
|
+
{
|
|
118
|
+
"path": "packages/ai-ui/src/agent-message.tsx",
|
|
119
|
+
"type": "registry:component",
|
|
120
|
+
"target": "packages/ai-ui/src/agent-message.tsx"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "agent-composer",
|
|
126
|
+
"type": "registry:ui",
|
|
127
|
+
"title": "Agent Composer",
|
|
128
|
+
"description": "Accessible multiline agent input with localized placeholder and explicit submit behavior.",
|
|
129
|
+
"files": [
|
|
130
|
+
{
|
|
131
|
+
"path": "packages/ai-ui/src/agent-composer.tsx",
|
|
132
|
+
"type": "registry:component",
|
|
133
|
+
"target": "packages/ai-ui/src/agent-composer.tsx"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "agent-plan",
|
|
139
|
+
"type": "registry:ui",
|
|
140
|
+
"title": "Agent Plan",
|
|
141
|
+
"description": "Queued, running, completed and failed execution-plan steps with progressive disclosure.",
|
|
142
|
+
"files": [
|
|
143
|
+
{
|
|
144
|
+
"path": "packages/ai-ui/src/agent-plan.tsx",
|
|
145
|
+
"type": "registry:component",
|
|
146
|
+
"target": "packages/ai-ui/src/agent-plan.tsx"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "tool-call",
|
|
152
|
+
"type": "registry:ui",
|
|
153
|
+
"title": "Tool Call",
|
|
154
|
+
"description": "Human-readable tool state, scope and result summary with expandable technical detail.",
|
|
155
|
+
"files": [
|
|
156
|
+
{
|
|
157
|
+
"path": "packages/ai-ui/src/tool-call.tsx",
|
|
158
|
+
"type": "registry:component",
|
|
159
|
+
"target": "packages/ai-ui/src/tool-call.tsx"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "approval-request",
|
|
165
|
+
"type": "registry:ui",
|
|
166
|
+
"title": "Approval Request",
|
|
167
|
+
"description": "Human-in-the-loop decision pattern showing target, parameters, consequence and scoped choices.",
|
|
168
|
+
"files": [
|
|
169
|
+
{
|
|
170
|
+
"path": "packages/ai-ui/src/approval-request.tsx",
|
|
171
|
+
"type": "registry:component",
|
|
172
|
+
"target": "packages/ai-ui/src/approval-request.tsx"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "run-inspector",
|
|
178
|
+
"type": "registry:ui",
|
|
179
|
+
"title": "Run Inspector",
|
|
180
|
+
"description": "Compact run status, identifiers, latency, token use and trace details.",
|
|
181
|
+
"files": [
|
|
182
|
+
{
|
|
183
|
+
"path": "packages/ai-ui/src/run-inspector.tsx",
|
|
184
|
+
"type": "registry:component",
|
|
185
|
+
"target": "packages/ai-ui/src/run-inspector.tsx"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "workflow-node",
|
|
191
|
+
"type": "registry:ui",
|
|
192
|
+
"title": "Workflow Node",
|
|
193
|
+
"description": "Agent, tool, trigger, condition and output node visual contract with keyboard focus.",
|
|
194
|
+
"files": [
|
|
195
|
+
{
|
|
196
|
+
"path": "packages/workflow-ui/src/workflow-node.tsx",
|
|
197
|
+
"type": "registry:component",
|
|
198
|
+
"target": "packages/workflow-ui/src/workflow-node.tsx"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "workflow-canvas",
|
|
204
|
+
"type": "registry:block",
|
|
205
|
+
"title": "Workflow Canvas",
|
|
206
|
+
"description": "Accessible workflow canvas shell, toolbar and inspector regions suitable for a React Flow adapter.",
|
|
207
|
+
"files": [
|
|
208
|
+
{
|
|
209
|
+
"path": "packages/workflow-ui/src/workflow-canvas.tsx",
|
|
210
|
+
"type": "registry:component",
|
|
211
|
+
"target": "packages/workflow-ui/src/workflow-canvas.tsx"
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { cp, mkdir, readdir, readFile, rm, writeFile } from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
7
|
+
const requestedOutput = process.env.NOE_STATIC_OUTPUT_DIR;
|
|
8
|
+
const dist = requestedOutput ? path.resolve(root, requestedOutput) : path.join(root, 'dist');
|
|
9
|
+
|
|
10
|
+
if (dist === root || !dist.startsWith(`${root}${path.sep}`)) {
|
|
11
|
+
throw new Error('NOE_STATIC_OUTPUT_DIR must resolve to a directory inside the repository.');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
await rm(dist, { recursive: true, force: true });
|
|
15
|
+
await mkdir(dist, { recursive: true });
|
|
16
|
+
for (const relative of ['apps/web', 'packages/design-tokens/src', 'packages/i18n/src']) {
|
|
17
|
+
await cp(path.join(root, relative), path.join(dist, relative), { recursive: true });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// The registry is published at the same paths declared by components.json:
|
|
21
|
+
// /r/registry.json and /r/{name}.json. Keep package metadata out of this
|
|
22
|
+
// public surface so a static host can serve it without route rewriting.
|
|
23
|
+
const registrySource = path.join(root, 'packages/registry');
|
|
24
|
+
const registryOutput = path.join(dist, 'r');
|
|
25
|
+
await mkdir(registryOutput, { recursive: true });
|
|
26
|
+
await cp(path.join(registrySource, 'registry.json'), path.join(registryOutput, 'registry.json'));
|
|
27
|
+
for (const entry of await readdir(path.join(registrySource, 'r'), { withFileTypes: true })) {
|
|
28
|
+
if (!entry.isFile() || path.extname(entry.name) !== '.json') continue;
|
|
29
|
+
|
|
30
|
+
const sourceItem = JSON.parse(await readFile(path.join(registrySource, 'r', entry.name), 'utf8'));
|
|
31
|
+
const publishedItem = {
|
|
32
|
+
...sourceItem,
|
|
33
|
+
files: await Promise.all(
|
|
34
|
+
sourceItem.files.map(async (file) => ({
|
|
35
|
+
...file,
|
|
36
|
+
content: await readFile(path.join(root, file.path), 'utf8'),
|
|
37
|
+
})),
|
|
38
|
+
),
|
|
39
|
+
};
|
|
40
|
+
await writeFile(
|
|
41
|
+
path.join(registryOutput, entry.name),
|
|
42
|
+
`${JSON.stringify(publishedItem, null, 2)}\n`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
async function walk(directory) {
|
|
46
|
+
const output = [];
|
|
47
|
+
for (const entry of await readdir(directory, { withFileTypes: true })) {
|
|
48
|
+
const absolute = path.join(directory, entry.name);
|
|
49
|
+
if (entry.isDirectory()) output.push(...(await walk(absolute)));
|
|
50
|
+
else output.push(absolute);
|
|
51
|
+
}
|
|
52
|
+
return output;
|
|
53
|
+
}
|
|
54
|
+
const files = await walk(dist);
|
|
55
|
+
const manifest = [];
|
|
56
|
+
for (const file of files) {
|
|
57
|
+
const data = await readFile(file);
|
|
58
|
+
manifest.push({
|
|
59
|
+
path: path.relative(dist, file),
|
|
60
|
+
bytes: data.length,
|
|
61
|
+
sha256: createHash('sha256').update(data).digest('hex'),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
await writeFile(
|
|
65
|
+
path.join(dist, 'build-manifest.json'),
|
|
66
|
+
`${JSON.stringify({ generatedAt: new Date().toISOString(), files: manifest }, null, 2)}\n`,
|
|
67
|
+
);
|
|
68
|
+
console.log(`Built ${manifest.length} files in ${dist}`);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
import re
|
|
7
|
+
import shutil
|
|
8
|
+
import time
|
|
9
|
+
|
|
10
|
+
from playwright.sync_api import sync_playwright
|
|
11
|
+
|
|
12
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
13
|
+
OUT = ROOT / 'evidence' / 'screenshots'
|
|
14
|
+
OUT.mkdir(parents=True, exist_ok=True)
|
|
15
|
+
for image in OUT.glob('*.png'):
|
|
16
|
+
image.unlink()
|
|
17
|
+
|
|
18
|
+
base_html = (ROOT / 'apps/web/index.html').read_text(encoding='utf-8')
|
|
19
|
+
tokens_css = (ROOT / 'packages/design-tokens/src/tokens.css').read_text(encoding='utf-8')
|
|
20
|
+
app_css = (ROOT / 'apps/web/styles.css').read_text(encoding='utf-8')
|
|
21
|
+
app_js = (ROOT / 'apps/web/app.js').read_text(encoding='utf-8')
|
|
22
|
+
base_html = re.sub(r'<link[^>]+tokens\.css[^>]*>', '', base_html)
|
|
23
|
+
base_html = re.sub(r'<link[^>]+styles\.css[^>]*>', '', base_html)
|
|
24
|
+
base_html = re.sub(r'<script[^>]+app\.js[^>]*></script>', '', base_html)
|
|
25
|
+
|
|
26
|
+
captures: list[dict[str, object]] = []
|
|
27
|
+
for width in (390, 768, 1024, 1280, 1440):
|
|
28
|
+
height = 844 if width == 390 else 900
|
|
29
|
+
for locale in ('en', 'fa'):
|
|
30
|
+
for theme in ('light', 'dark'):
|
|
31
|
+
captures.append({'name': f'agent-{locale}-{theme}-{width}', 'width': width, 'height': height, 'surface': 'agent', 'locale': locale, 'theme': theme})
|
|
32
|
+
for surface in ('consumer', 'dashboard', 'agent', 'workflow'):
|
|
33
|
+
captures.append({'name': f'{surface}-en-light-1440', 'width': 1440, 'height': 900, 'surface': surface, 'locale': 'en', 'theme': 'light'})
|
|
34
|
+
captures.append({'name': f'{surface}-fa-dark-1440', 'width': 1440, 'height': 900, 'surface': surface, 'locale': 'fa', 'theme': 'dark'})
|
|
35
|
+
captures.extend([
|
|
36
|
+
{'name': 'agent-pseudo-ltr-1024', 'width': 1024, 'height': 900, 'surface': 'agent', 'locale': 'en-XA', 'theme': 'light'},
|
|
37
|
+
{'name': 'agent-pseudo-rtl-1024', 'width': 1024, 'height': 900, 'surface': 'agent', 'locale': 'ar-XB', 'theme': 'light'},
|
|
38
|
+
])
|
|
39
|
+
|
|
40
|
+
errors: list[dict[str, str]] = []
|
|
41
|
+
layout_issues: list[dict[str, object]] = []
|
|
42
|
+
try:
|
|
43
|
+
with sync_playwright() as playwright:
|
|
44
|
+
executable = os.environ.get('NOE_CHROMIUM_PATH') or shutil.which('chromium')
|
|
45
|
+
launch_options = {'headless': True, 'args': ['--no-sandbox', '--disable-dev-shm-usage', '--disable-gpu']}
|
|
46
|
+
if executable:
|
|
47
|
+
launch_options['executable_path'] = executable
|
|
48
|
+
browser = playwright.chromium.launch(**launch_options)
|
|
49
|
+
context = browser.new_context(device_scale_factor=1, reduced_motion='reduce')
|
|
50
|
+
for capture in captures:
|
|
51
|
+
page = context.new_page()
|
|
52
|
+
page.on('pageerror', lambda exception: errors.append({'type': 'pageerror', 'message': str(exception)}))
|
|
53
|
+
page.on('console', lambda message: errors.append({'type': 'console', 'message': message.text}) if message.type == 'error' else None)
|
|
54
|
+
page.set_viewport_size({'width': int(capture['width']), 'height': int(capture['height'])})
|
|
55
|
+
injected = json.dumps({'surface': capture['surface'], 'locale': capture['locale'], 'theme': capture['theme']}, ensure_ascii=False)
|
|
56
|
+
inline = f'<style>{tokens_css}\n{app_css}</style><script>window.__NOE_CAPTURE__={injected};</script><script>{app_js}</script>'
|
|
57
|
+
html = base_html.replace('</head>', inline + '</head>')
|
|
58
|
+
page.set_content(html, wait_until='load', timeout=20_000)
|
|
59
|
+
page.wait_for_function("document.body.dataset.surface && document.documentElement.dataset.theme", timeout=5_000)
|
|
60
|
+
audit = page.evaluate("""(expected) => {
|
|
61
|
+
const tolerance = 1;
|
|
62
|
+
const problems = [];
|
|
63
|
+
const root = document.documentElement;
|
|
64
|
+
if (root.dir !== expected.direction) problems.push({ kind: 'direction', expected: expected.direction, actual: root.dir });
|
|
65
|
+
if (root.lang !== expected.locale) problems.push({ kind: 'language', expected: expected.locale, actual: root.lang });
|
|
66
|
+
if (root.scrollWidth > window.innerWidth + tolerance) problems.push({ kind: 'page-horizontal-overflow', scrollWidth: root.scrollWidth, viewportWidth: window.innerWidth });
|
|
67
|
+
const controls = document.querySelector('.reference-controls');
|
|
68
|
+
if (controls) {
|
|
69
|
+
const rect = controls.getBoundingClientRect();
|
|
70
|
+
if (rect.left < -tolerance || rect.right > window.innerWidth + tolerance) problems.push({ kind: 'reference-controls-outside-viewport', rect: { left: rect.left, right: rect.right, width: rect.width }, viewportWidth: window.innerWidth });
|
|
71
|
+
const selects = [...controls.querySelectorAll('select')];
|
|
72
|
+
if (selects.some((element) => { const item = element.getBoundingClientRect(); return item.left < -tolerance || item.right > window.innerWidth + tolerance || item.width < 32; })) problems.push({ kind: 'reference-control-select-unreachable' });
|
|
73
|
+
}
|
|
74
|
+
const visibleSurfaces = [...document.querySelectorAll('.surface[data-surface]')].filter((element) => !element.hidden);
|
|
75
|
+
if (visibleSurfaces.length !== 1 || visibleSurfaces[0]?.dataset.surface !== expected.surface) problems.push({ kind: 'surface-selection', visible: visibleSurfaces.map((element) => element.dataset.surface) });
|
|
76
|
+
if (expected.surface === 'workflow' && window.innerWidth >= 1024) {
|
|
77
|
+
const canvas = document.querySelector('.canvas');
|
|
78
|
+
if (canvas) {
|
|
79
|
+
const canvasRect = canvas.getBoundingClientRect();
|
|
80
|
+
for (const node of canvas.querySelectorAll('.canvas-node')) {
|
|
81
|
+
const rect = node.getBoundingClientRect();
|
|
82
|
+
if (rect.left < canvasRect.left - tolerance || rect.right > canvasRect.right + tolerance || rect.top < canvasRect.top - tolerance || rect.bottom > canvasRect.bottom + tolerance) {
|
|
83
|
+
problems.push({ kind: 'workflow-node-clipped', node: node.className, rect: { left: rect.left, right: rect.right, top: rect.top, bottom: rect.bottom }, canvas: { left: canvasRect.left, right: canvasRect.right, top: canvasRect.top, bottom: canvasRect.bottom } });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return problems;
|
|
89
|
+
}""", { 'surface': capture['surface'], 'locale': capture['locale'], 'direction': 'rtl' if capture['locale'] in ('fa', 'ar-XB') else 'ltr' })
|
|
90
|
+
for problem in audit:
|
|
91
|
+
layout_issues.append({'capture': capture['name'], **problem})
|
|
92
|
+
page.screenshot(path=str(OUT / f"{capture['name']}.png"), full_page=False, animations='disabled')
|
|
93
|
+
page.close()
|
|
94
|
+
context.close()
|
|
95
|
+
browser.close()
|
|
96
|
+
finally:
|
|
97
|
+
pass
|
|
98
|
+
|
|
99
|
+
generated_at = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())
|
|
100
|
+
(ROOT / 'evidence' / 'browser-console.json').write_text(json.dumps({'generatedAt': generated_at, 'errors': errors}, indent=2) + '\n', encoding='utf-8')
|
|
101
|
+
(ROOT / 'evidence' / 'layout-audit.json').write_text(json.dumps({'generatedAt': generated_at, 'issues': layout_issues}, indent=2) + '\n', encoding='utf-8')
|
|
102
|
+
if errors:
|
|
103
|
+
raise SystemExit(f'Browser reported {len(errors)} console/page errors')
|
|
104
|
+
if layout_issues:
|
|
105
|
+
raise SystemExit(f'Layout audit reported {len(layout_issues)} issues')
|
|
106
|
+
print(f"Captured {len(captures)} screenshots with zero console or layout issues")
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -Eeuo pipefail
|
|
3
|
+
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
4
|
+
cd "$ROOT"
|
|
5
|
+
node scripts/build-static.mjs
|
|
6
|
+
PYTHON_BIN="${NOE_PLAYWRIGHT_PYTHON:-python3}"
|
|
7
|
+
if [ -x /opt/pyvenv/bin/python ]; then PYTHON_BIN=/opt/pyvenv/bin/python; fi
|
|
8
|
+
"$PYTHON_BIN" scripts/capture-visuals.py
|
|
9
|
+
node scripts/validate-pngs.mjs
|
|
10
|
+
node scripts/create-visual-index.mjs
|