@usesketchbook/cli 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/add.md +15 -0
- package/.claude/commands/check.md +5 -0
- package/.claude/commands/explain.md +6 -0
- package/.claude/commands/foundations.md +11 -0
- package/.claude/commands/import-tokens.md +15 -0
- package/.claude/commands/init.md +10 -0
- package/.claude/commands/kits.md +6 -0
- package/.claude/commands/roast-foundations.md +10 -0
- package/.claude/commands/start.md +6 -0
- package/.claude/commands/swap.md +6 -0
- package/.claude/commands/sync.md +6 -0
- package/.claude/commands/tour.md +5 -0
- package/.claude/hooks/guard-decisions.mjs +51 -0
- package/.claude/hooks/guard-generated.mjs +63 -0
- package/.claude/hooks/page-outline.mjs +41 -0
- package/.claude/hooks/run.mjs +36 -0
- package/.claude/rules/comment-minimalism.md +7 -0
- package/.claude/rules/contract-first.md +29 -0
- package/.claude/rules/figma-fidelity.md +42 -0
- package/.claude/rules/form-associated-controls.md +87 -0
- package/.claude/rules/no-ai-attribution.md +3 -0
- package/.claude/rules/planning-gate.md +13 -0
- package/.claude/rules/spec-is-source.md +6 -0
- package/.claude/rules/test-first.md +16 -0
- package/.claude/rules/tokens-through-the-harness.md +8 -0
- package/.claude/skills/a11y-checker/SKILL.md +301 -0
- package/.claude/skills/a11y-checker/agents/a11y-auditor.md +18 -0
- package/.claude/skills/a11y-checker/references/self-validation-checklist.md +180 -0
- package/.claude/skills/a11y-checker/references/wcag-checklist.md +141 -0
- package/.claude/skills/component-builder/SKILL.md +124 -0
- package/.claude/skills/component-builder/agents/parity-auditor.md +50 -0
- package/.claude/skills/contract-author/SKILL.md +156 -0
- package/.claude/skills/contract-author/agents/drafter.md +80 -0
- package/.claude/skills/contract-author/agents/extractor.md +62 -0
- package/.claude/skills/contract-author/agents/validator.md +50 -0
- package/.claude/skills/design-figma/SKILL.md +120 -0
- package/.claude/skills/design-figma/references/screenshots/01-guide.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/02-foundations.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/03-icons.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/04-components-actions.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/05-components-toggles-and-selection.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/06-components-text-controls.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/07-components-surfaces.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/08-components-feedback-and-display.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/09-components-navigation-and-disclosure.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/10-components-data-and-layout.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/11-library.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/12-theme-matrix.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/13-patterns.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/README.md +34 -0
- package/.claude/skills/design-figma/references/screenshots/detail/doc-accessibility.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/detail/doc-anatomy-tree.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/detail/doc-header.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/detail/doc-states-grid.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/detail/doc-tokens.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/detail/doc-variants-grid.png +0 -0
- package/.claude/skills/design-figma/references/screenshots/detail/foundation-color.png +0 -0
- package/.claude/skills/design-figma/references/working-method.md +94 -0
- package/.claude/skills/forge-me-a-skill/SKILL.md +178 -0
- package/.claude/skills/forge-me-a-skill/assets/SKILL-TEMPLATE.md +56 -0
- package/.claude/skills/foundations/SKILL.md +216 -0
- package/.claude/skills/foundations/agents/foundations-critic.md +37 -0
- package/.claude/skills/foundations/agents/token-mapper.md +40 -0
- package/.claude/skills/foundations/references/border-width.md +49 -0
- package/.claude/skills/foundations/references/color.md +86 -0
- package/.claude/skills/foundations/references/contrast.md +49 -0
- package/.claude/skills/foundations/references/density.md +44 -0
- package/.claude/skills/foundations/references/elevation.md +44 -0
- package/.claude/skills/foundations/references/iconography.md +44 -0
- package/.claude/skills/foundations/references/layout-grid.md +49 -0
- package/.claude/skills/foundations/references/motion.md +62 -0
- package/.claude/skills/foundations/references/opacity.md +48 -0
- package/.claude/skills/foundations/references/radius.md +48 -0
- package/.claude/skills/foundations/references/semantic-naming.md +58 -0
- package/.claude/skills/foundations/references/spacing-grid.md +64 -0
- package/.claude/skills/foundations/references/typography.md +74 -0
- package/.claude/skills/foundations/references/z-index.md +43 -0
- package/.claude/skills/hammock/SKILL.md +261 -0
- package/.claude/skills/hammock/assets/DEBT-LOG-TEMPLATE.md +11 -0
- package/.claude/skills/hammock/assets/DECISION-LADDER.md +27 -0
- package/.claude/skills/hammock/hooks/hammock-activate.mjs +33 -0
- package/.claude/skills/hammock/hooks/hammock-audit-runner.mjs +38 -0
- package/.claude/skills/hammock/hooks/hammock-config.mjs +78 -0
- package/.claude/skills/hammock/hooks/hammock-gate.mjs +43 -0
- package/.claude/skills/hammock/hooks/hammock-instructions.mjs +37 -0
- package/.claude/skills/hammock/hooks/hammock-mode-tracker.mjs +66 -0
- package/.claude/skills/hammock/hooks/hammock-runtime.mjs +59 -0
- package/.claude/skills/hammock/hooks/hammock-stop-gate.mjs +20 -0
- package/.claude/skills/hammock/hooks/hammock-subagent.mjs +23 -0
- package/.claude/skills/hammock/scripts/audit-simplicity.sh +91 -0
- package/.claude/skills/kits/SKILL.md +120 -0
- package/.claude/skills/onboarding/SKILL.md +171 -0
- package/.claude/skills/playwright-worker/SKILL.md +266 -0
- package/.claude/skills/review-rangers/SKILL.md +343 -0
- package/.claude/skills/review-rangers/assets/committee-member-template.md +44 -0
- package/.claude/skills/review-rangers/assets/mender-template.md +78 -0
- package/.claude/skills/review-rangers/assets/safety-guard-template.md +43 -0
- package/.claude/skills/security-guardian/SKILL.md +215 -0
- package/.claude/skills/security-guardian/assets/SECURE-CONTRIBUTING-CHECKLIST.md +67 -0
- package/.claude/skills/security-guardian/scripts/security-scan.sh +126 -0
- package/.claude/skills/web-components-best-practices/SKILL.md +154 -0
- package/.claude/skills/web-components-best-practices/references/api-and-interop-conventions.md +137 -0
- package/.claude/skills/web-components-best-practices/references/composition-patterns.md +178 -0
- package/.claude/skills/web-components-best-practices/references/performance-rules.md +196 -0
- package/.claude/skills/web-components-best-practices/references/platform-fundamentals.md +308 -0
- package/.githooks/commit-msg +9 -0
- package/.githooks/pre-commit +23 -0
- package/.githooks/pre-push +25 -0
- package/LICENSE +21 -0
- package/README.md +205 -2
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/brand/sketchbook-icon.png +0 -0
- package/brand/sketchbook-icon.svg +2839 -0
- package/dist/index.d.ts +2226 -0
- package/dist/index.js +10589 -0
- package/dist/sketchbook.js +4798 -0
- package/docs/agent-compatibility.md +142 -0
- package/docs/cli.md +715 -0
- package/generated/css/fonts.css +2 -0
- package/generated/css/tokens.css +1245 -0
- package/generated/types/api.d.ts +138 -0
- package/generated/types/brand-config.d.ts +254 -0
- package/generated/types/contract.d.ts +197 -0
- package/generated/types/figma-practices.d.ts +26 -0
- package/generated/types/harness-config.d.ts +104 -0
- package/generated/types/registry.d.ts +16 -0
- package/harness/adapters/design/figma/compare.d.mts +1 -0
- package/harness/adapters/design/figma/compare.mjs +42 -0
- package/harness/adapters/design/figma/docs.d.mts +62 -0
- package/harness/adapters/design/figma/docs.mjs +679 -0
- package/harness/adapters/design/figma/icons.d.mts +3 -0
- package/harness/adapters/design/figma/icons.mjs +92 -0
- package/harness/adapters/design/figma/library.d.mts +51 -0
- package/harness/adapters/design/figma/library.mjs +595 -0
- package/harness/adapters/design/figma/patterns.d.mts +2 -0
- package/harness/adapters/design/figma/patterns.mjs +351 -0
- package/harness/adapters/design/figma/sync.d.mts +24 -0
- package/harness/adapters/design/figma/sync.mjs +216 -0
- package/harness/adapters/design/figma/variables.d.mts +136 -0
- package/harness/adapters/design/figma/variables.mjs +532 -0
- package/harness/adapters/design/figma/verify-runtime.mjs +19 -0
- package/harness/adapters/design/figma/zero.d.mts +9 -0
- package/harness/adapters/design/figma/zero.mjs +37 -0
- package/harness/agent/gemini-guard.d.mts +2 -0
- package/harness/agent/gemini-guard.mjs +95 -0
- package/harness/build/fonts.d.mts +14 -0
- package/harness/build/fonts.mjs +69 -0
- package/harness/build/index.d.mts +11 -0
- package/harness/build/index.mjs +35 -0
- package/harness/build/tokens-plain.d.mts +9 -0
- package/harness/build/tokens-plain.mjs +59 -0
- package/harness/build/tokens.d.mts +9 -0
- package/harness/build/tokens.mjs +76 -0
- package/harness/catalog/accordion/files/3386f68432b4c28277bb +8 -0
- package/harness/catalog/accordion/files/458f73bbdb2280a93792 +280 -0
- package/harness/catalog/accordion/files/4d7c5147b9926261b70a +41 -0
- package/harness/catalog/accordion/files/592212fb5c728cb562af +6 -0
- package/harness/catalog/accordion/files/5ae431f76cae09a91d25 +4 -0
- package/harness/catalog/accordion/files/5bbb11e9f8095ed054ff +96 -0
- package/harness/catalog/accordion/files/5fab7a341aef28356da3 +6 -0
- package/harness/catalog/accordion/files/736c8824f1022b4df6c8 +69 -0
- package/harness/catalog/accordion/files/76b5f3980a78fedb3311 +59 -0
- package/harness/catalog/accordion/files/76c16a81d99e363e956b +22 -0
- package/harness/catalog/accordion/files/7c3465ac910eaf16830a +6 -0
- package/harness/catalog/accordion/files/a025a789d6e548428b3b +47 -0
- package/harness/catalog/accordion/files/a632d819d1fa6422ca28 +108 -0
- package/harness/catalog/accordion/files/af4fe412342068d19100 +96 -0
- package/harness/catalog/accordion/files/b5152e94f69d686f66d4 +464 -0
- package/harness/catalog/accordion/files/c27cf9f1ab09bec315aa +8 -0
- package/harness/catalog/accordion/files/d404485af0224293b2d6 +69 -0
- package/harness/catalog/accordion/files/ec36cfafc8906915188a +8 -0
- package/harness/catalog/accordion/files/fe2916946450260c403a +23 -0
- package/harness/catalog/accordion/files/fe37ab65a9323b9b828b +10 -0
- package/harness/catalog/accordion/manifest.json +93 -0
- package/harness/catalog/alert/files/16a43bc5189d44e14292 +299 -0
- package/harness/catalog/alert/files/16eb63459233148e6a59 +42 -0
- package/harness/catalog/alert/files/47cebb310b907f59b96f +2 -0
- package/harness/catalog/alert/files/52150c86b71449888f16 +3 -0
- package/harness/catalog/alert/files/52cc35ea0d55324a9212 +4 -0
- package/harness/catalog/alert/files/5c30877339f63c1098e7 +3 -0
- package/harness/catalog/alert/files/67630242c9c940463652 +4 -0
- package/harness/catalog/alert/files/6ae7cb35ae4d69883a3b +79 -0
- package/harness/catalog/alert/files/6b631857d33e60b3b59e +177 -0
- package/harness/catalog/alert/files/919ddd492eb1fa90aadc +21 -0
- package/harness/catalog/alert/files/9cf980ba345db73d493b +41 -0
- package/harness/catalog/alert/files/a24ca0bc70f381d50059 +8 -0
- package/harness/catalog/alert/files/acbff53556d78aa71c4a +17 -0
- package/harness/catalog/alert/files/b1f8249847af028c520e +49 -0
- package/harness/catalog/alert/files/be66155fe522eb0f75e4 +80 -0
- package/harness/catalog/alert/files/d9376dbfc0c412d43f02 +21 -0
- package/harness/catalog/alert/files/e392d4a74e9d1b717ee1 +21 -0
- package/harness/catalog/alert/manifest.json +91 -0
- package/harness/catalog/aspect-ratio/files/19788b65a76cdaec18bf +1 -0
- package/harness/catalog/aspect-ratio/files/209c5411dde91bdcc849 +40 -0
- package/harness/catalog/aspect-ratio/files/2591d39bae9388ba807b +74 -0
- package/harness/catalog/aspect-ratio/files/4402c050863e9c25c737 +1 -0
- package/harness/catalog/aspect-ratio/files/836f9ffafb34278fe961 +73 -0
- package/harness/catalog/aspect-ratio/files/9078421b339ea5791f40 +32 -0
- package/harness/catalog/aspect-ratio/files/9f8655de70ea15e3229d +1 -0
- package/harness/catalog/aspect-ratio/files/b1beccd5cb1056d38428 +33 -0
- package/harness/catalog/aspect-ratio/files/d6fdd5d41eb32b1d9fd3 +159 -0
- package/harness/catalog/aspect-ratio/files/de9fd92e0ba9ea351caf +11 -0
- package/harness/catalog/aspect-ratio/files/fdf6f2d2beefd1d1dbe3 +19 -0
- package/harness/catalog/aspect-ratio/manifest.json +65 -0
- package/harness/catalog/avatar/files/014a11e7ae821825d703 +136 -0
- package/harness/catalog/avatar/files/0790f7bde37e48018f0c +6 -0
- package/harness/catalog/avatar/files/31b79bb9dfa043d497be +47 -0
- package/harness/catalog/avatar/files/51b9201acb088b52f64e +36 -0
- package/harness/catalog/avatar/files/539b1f887a74e5bcf719 +425 -0
- package/harness/catalog/avatar/files/5715cc2214da4f2d82aa +2 -0
- package/harness/catalog/avatar/files/5d1303dddb9208b8a106 +275 -0
- package/harness/catalog/avatar/files/65cc7536672c4026ea82 +10 -0
- package/harness/catalog/avatar/files/7054042709566df6d007 +46 -0
- package/harness/catalog/avatar/files/7384dd119b51fe23c6b6 +40 -0
- package/harness/catalog/avatar/files/89469dcd24022d7663b5 +18 -0
- package/harness/catalog/avatar/files/9029ce733b07f6335348 +61 -0
- package/harness/catalog/avatar/files/9d2ba42e187abe3a8145 +3 -0
- package/harness/catalog/avatar/files/9f6b4305e38cec8b8e14 +7 -0
- package/harness/catalog/avatar/files/a0bb48cb59aeb92c3810 +39 -0
- package/harness/catalog/avatar/files/a451ea354f9f77d8987d +8 -0
- package/harness/catalog/avatar/files/a9379bafbdd4b5b5d695 +67 -0
- package/harness/catalog/avatar/files/bff4bf72e38de7673f8e +1 -0
- package/harness/catalog/avatar/files/d3f78e882bc36f721115 +2 -0
- package/harness/catalog/avatar/files/d7e47a33b128e0e03ab7 +41 -0
- package/harness/catalog/avatar/files/e40b957b14019e761505 +80 -0
- package/harness/catalog/avatar/manifest.json +97 -0
- package/harness/catalog/badge/files/0018ed707d23b776b3b9 +346 -0
- package/harness/catalog/badge/files/28005cb14bde099080db +101 -0
- package/harness/catalog/badge/files/2a11f46e7524cfc8099b +38 -0
- package/harness/catalog/badge/files/2d62b3998a30444f4ebe +6 -0
- package/harness/catalog/badge/files/36c7e1d9da83aff58801 +1 -0
- package/harness/catalog/badge/files/58f7c66681cbe255fe9f +188 -0
- package/harness/catalog/badge/files/67b07d31508de5e0bb09 +6 -0
- package/harness/catalog/badge/files/8c4e02e4ba38e936bcc9 +1 -0
- package/harness/catalog/badge/files/920ec5021787522eafbb +1 -0
- package/harness/catalog/badge/files/9a8a242933ea67a605c2 +1 -0
- package/harness/catalog/badge/files/ae17c9db8f67fddf17e4 +92 -0
- package/harness/catalog/badge/files/b4fd13485d1010240f16 +43 -0
- package/harness/catalog/badge/files/cf52421cee4f018981d3 +37 -0
- package/harness/catalog/badge/files/ddac5819e1ed88cb2e03 +12 -0
- package/harness/catalog/badge/manifest.json +69 -0
- package/harness/catalog/breadcrumb/files/10c965db958092f69cca +26 -0
- package/harness/catalog/breadcrumb/files/17521ad2cbc3514221af +7 -0
- package/harness/catalog/breadcrumb/files/24012e0492e093ddee3f +21 -0
- package/harness/catalog/breadcrumb/files/269b4f59060369e2689d +10 -0
- package/harness/catalog/breadcrumb/files/2991c2998d868bde74af +50 -0
- package/harness/catalog/breadcrumb/files/551a25d7280214170b8c +93 -0
- package/harness/catalog/breadcrumb/files/78f75efba91a8ad5f90f +24 -0
- package/harness/catalog/breadcrumb/files/8083e6bfcb1cebb4f9af +26 -0
- package/harness/catalog/breadcrumb/files/810adc630d7d7d41f42d +8 -0
- package/harness/catalog/breadcrumb/files/90712a337d693eacb94d +415 -0
- package/harness/catalog/breadcrumb/files/9bdd89a2adc4b6878b6f +27 -0
- package/harness/catalog/breadcrumb/files/a8692cf836f911223481 +79 -0
- package/harness/catalog/breadcrumb/files/ae82c56d4144711f9ab5 +207 -0
- package/harness/catalog/breadcrumb/files/b5c54c838715e9cd134a +6 -0
- package/harness/catalog/breadcrumb/files/b8b4c12d89f8ab647b5e +30 -0
- package/harness/catalog/breadcrumb/files/c2e3f8f6e4cb9fc735a8 +21 -0
- package/harness/catalog/breadcrumb/files/d713aa4dccbb037a0e12 +26 -0
- package/harness/catalog/breadcrumb/files/f47fc1574cfce8f9448b +66 -0
- package/harness/catalog/breadcrumb/files/f5cc0c4e34882f901b1a +8 -0
- package/harness/catalog/breadcrumb/manifest.json +89 -0
- package/harness/catalog/button/files/0cff7f90b517fc2c5a87 +5 -0
- package/harness/catalog/button/files/0d1f72f94e7ce318e921 +76 -0
- package/harness/catalog/button/files/1a21ad2c3bcaad6b4114 +1 -0
- package/harness/catalog/button/files/1b6ed7bb8c564c65bbaa +107 -0
- package/harness/catalog/button/files/23017794095f7b922f0b +1 -0
- package/harness/catalog/button/files/2460af04d1ef41c23154 +246 -0
- package/harness/catalog/button/files/284457fc8187e1fdbf44 +40 -0
- package/harness/catalog/button/files/506cb8a95609ba0d2d3a +1 -0
- package/harness/catalog/button/files/5803b77577535ac55a89 +44 -0
- package/harness/catalog/button/files/5854b02c74605818b042 +1 -0
- package/harness/catalog/button/files/5e1469fe306037cd9573 +1 -0
- package/harness/catalog/button/files/609be73e1c7a8bcdc550 +1 -0
- package/harness/catalog/button/files/66bb1fb61fe6aad35c1c +1 -0
- package/harness/catalog/button/files/6b986f514e833629d08a +56 -0
- package/harness/catalog/button/files/962687149a672a920383 +197 -0
- package/harness/catalog/button/files/d61eff9f7bd5360fe661 +1 -0
- package/harness/catalog/button/files/d6888f505d4934c73e87 +573 -0
- package/harness/catalog/button/files/e6f6ca2db758ab78f21d +1 -0
- package/harness/catalog/button/files/f328806fe07f25cdd07a +177 -0
- package/harness/catalog/button/manifest.json +93 -0
- package/harness/catalog/button-group/files/0044c16e6d6408d70f97 +21 -0
- package/harness/catalog/button-group/files/322bb11b902b9b5e38f4 +3 -0
- package/harness/catalog/button-group/files/47d4b9403faec8dec952 +78 -0
- package/harness/catalog/button-group/files/4bda2f3cc2a97b49bf59 +51 -0
- package/harness/catalog/button-group/files/6afe96e91fc22fd70152 +4 -0
- package/harness/catalog/button-group/files/7474213871cfec7877de +61 -0
- package/harness/catalog/button-group/files/7c7ad2130eddf9a1513b +16 -0
- package/harness/catalog/button-group/files/80dc20a145bf1531dba0 +270 -0
- package/harness/catalog/button-group/files/91da6c854f746349f833 +4 -0
- package/harness/catalog/button-group/files/a33602cbe19396ffaeed +4 -0
- package/harness/catalog/button-group/files/b8999a731d121b733b2a +21 -0
- package/harness/catalog/button-group/files/c3af09f47753a0346516 +2 -0
- package/harness/catalog/button-group/files/d27c685fdbf67bd48901 +118 -0
- package/harness/catalog/button-group/files/d7e1964ea5ad56231d79 +155 -0
- package/harness/catalog/button-group/files/f01251791f5d7d6c788f +59 -0
- package/harness/catalog/button-group/manifest.json +85 -0
- package/harness/catalog/card/files/06ad3458251f83352e77 +5 -0
- package/harness/catalog/card/files/18fbc68e099aee86c684 +10 -0
- package/harness/catalog/card/files/216f192af043ae2ff617 +12 -0
- package/harness/catalog/card/files/3017f6933cd6283eb287 +27 -0
- package/harness/catalog/card/files/34e2673bc64b4a8ff39b +21 -0
- package/harness/catalog/card/files/3a96ab06d75a85124b5c +26 -0
- package/harness/catalog/card/files/3e54fb5eea171a3ceaad +21 -0
- package/harness/catalog/card/files/4aa88fa70afaceb9a9c7 +129 -0
- package/harness/catalog/card/files/51aab65ffd59c813f578 +1 -0
- package/harness/catalog/card/files/54df6b8d56bd1617895c +21 -0
- package/harness/catalog/card/files/58d44e64ec398d29b56f +7 -0
- package/harness/catalog/card/files/5ef69696b5505bcb1141 +4 -0
- package/harness/catalog/card/files/6d671f1ec19ae75aa88c +73 -0
- package/harness/catalog/card/files/96d54fab0818dfa63590 +21 -0
- package/harness/catalog/card/files/9e14107badcfb8170367 +40 -0
- package/harness/catalog/card/files/a2d5bf1b906370fca975 +21 -0
- package/harness/catalog/card/files/d1ac11b32e7096b3a30c +77 -0
- package/harness/catalog/card/files/d6e226f85f6fc54b0843 +280 -0
- package/harness/catalog/card/files/f31279c9c4b076d443e4 +45 -0
- package/harness/catalog/card/manifest.json +95 -0
- package/harness/catalog/checkbox/files/0283c841689d3ff22707 +2 -0
- package/harness/catalog/checkbox/files/032a72d3b72243fb1727 +131 -0
- package/harness/catalog/checkbox/files/081ef8a0412aab604edd +200 -0
- package/harness/catalog/checkbox/files/094fcc1fb431fef1a872 +2 -0
- package/harness/catalog/checkbox/files/0bf1d698bdc46c1d48d7 +3 -0
- package/harness/catalog/checkbox/files/1c5b1af093b60c82b66f +128 -0
- package/harness/catalog/checkbox/files/3c6f39c5e3fb569afef1 +1 -0
- package/harness/catalog/checkbox/files/46d2afe4c15499ae96e9 +449 -0
- package/harness/catalog/checkbox/files/544c5ff7f9890dad205e +4 -0
- package/harness/catalog/checkbox/files/61cfac6c6dc653b57285 +2 -0
- package/harness/catalog/checkbox/files/6b5bfa718a15d2057b59 +4 -0
- package/harness/catalog/checkbox/files/6cbd9776d028f943b331 +4 -0
- package/harness/catalog/checkbox/files/73a07a998134dacd7693 +19 -0
- package/harness/catalog/checkbox/files/7d229530ecebdd879488 +60 -0
- package/harness/catalog/checkbox/files/865113d4527ee380dd0e +3 -0
- package/harness/catalog/checkbox/files/8a74f72a3a84af71476b +92 -0
- package/harness/catalog/checkbox/files/8b37e9d23015ab5cfe0d +2 -0
- package/harness/catalog/checkbox/files/95c5c2505dd092c9f742 +2 -0
- package/harness/catalog/checkbox/files/b86afb2a41ded28f69cb +62 -0
- package/harness/catalog/checkbox/files/d08b3c8bc03cafe6db78 +2 -0
- package/harness/catalog/checkbox/manifest.json +97 -0
- package/harness/catalog/collapsible/files/0ef860186a5d77f0a02c +19 -0
- package/harness/catalog/collapsible/files/10acfcd2eebb1f54921e +62 -0
- package/harness/catalog/collapsible/files/1ecfe2f1f1d99815477f +7 -0
- package/harness/catalog/collapsible/files/30c5ce1473315a1690d8 +154 -0
- package/harness/catalog/collapsible/files/4d256e6719507cfe8374 +4 -0
- package/harness/catalog/collapsible/files/563ee7ce5fce1f77ee5f +4 -0
- package/harness/catalog/collapsible/files/80a66bc01fbd7557bc5c +7 -0
- package/harness/catalog/collapsible/files/902584654862eec8d0f0 +56 -0
- package/harness/catalog/collapsible/files/90fb6b218f5837e2b9af +4 -0
- package/harness/catalog/collapsible/files/91d5114689dc3d3813fc +31 -0
- package/harness/catalog/collapsible/files/93f866f818a699d0d579 +88 -0
- package/harness/catalog/collapsible/files/996628c9381baa5dd9a2 +42 -0
- package/harness/catalog/collapsible/files/a38a70b8f5bd307fb7ec +3 -0
- package/harness/catalog/collapsible/files/b1d517e0bb72963d6efe +63 -0
- package/harness/catalog/collapsible/files/bc6adfb746c3e16ed828 +1 -0
- package/harness/catalog/collapsible/files/e8da0cd63c0b7de97808 +50 -0
- package/harness/catalog/collapsible/files/ea39495978fcf333dbc3 +10 -0
- package/harness/catalog/collapsible/files/f26dc650128b402e1f3e +308 -0
- package/harness/catalog/collapsible/manifest.json +85 -0
- package/harness/catalog/command/files/0045480291f5bcda1ed0 +134 -0
- package/harness/catalog/command/files/0921b5a7161362e4aa0b +8 -0
- package/harness/catalog/command/files/1760a0a4a6d9b15611fb +27 -0
- package/harness/catalog/command/files/388b9f83faadc3d8a362 +27 -0
- package/harness/catalog/command/files/38d604b586eb1cbe1097 +11 -0
- package/harness/catalog/command/files/3a0c6f69905ab1130fdf +11 -0
- package/harness/catalog/command/files/456e5a0414963d6ad66c +599 -0
- package/harness/catalog/command/files/64edd35c308b3381280b +30 -0
- package/harness/catalog/command/files/6c02d111b386d13fb42a +81 -0
- package/harness/catalog/command/files/732b73ef77332148d537 +11 -0
- package/harness/catalog/command/files/78882bb1d7f63990f8f3 +34 -0
- package/harness/catalog/command/files/7919eff639d8d4a7a256 +11 -0
- package/harness/catalog/command/files/7b73f21bcb5aeebb9d03 +1 -0
- package/harness/catalog/command/files/7b947271b77c5c2e6cbe +60 -0
- package/harness/catalog/command/files/7e6923a2a26e59263a69 +131 -0
- package/harness/catalog/command/files/7f21e62085004b5eb6c9 +161 -0
- package/harness/catalog/command/files/81ccfcb263444082e797 +716 -0
- package/harness/catalog/command/files/825c406546cdca148c9e +177 -0
- package/harness/catalog/command/files/92c96df2ebb179f5316c +29 -0
- package/harness/catalog/command/files/95ffd3cdb86f53120c3a +63 -0
- package/harness/catalog/command/files/a193dbe4cee5f63a29b7 +33 -0
- package/harness/catalog/command/files/b932ab68d82bce66de9c +56 -0
- package/harness/catalog/command/files/d301eb28bc3eb9808c69 +7 -0
- package/harness/catalog/command/files/e2f22dbe376ac580dd4f +11 -0
- package/harness/catalog/command/files/ff05f6bdc626c33bff6d +3 -0
- package/harness/catalog/command/manifest.json +121 -0
- package/harness/catalog/dialog/files/033143a3f05a03f9f557 +21 -0
- package/harness/catalog/dialog/files/0ba6cb9c741f4d6cc29f +1 -0
- package/harness/catalog/dialog/files/14e66fa2f397d81a4b5a +6 -0
- package/harness/catalog/dialog/files/15288bbad2fe7f0623e6 +557 -0
- package/harness/catalog/dialog/files/1607fa09941fa5b61b53 +1 -0
- package/harness/catalog/dialog/files/1ed1da7f60f54af79479 +21 -0
- package/harness/catalog/dialog/files/225b9e06f0defd4497a0 +151 -0
- package/harness/catalog/dialog/files/2eeaa795a0cfde395eb0 +30 -0
- package/harness/catalog/dialog/files/308156c5a7b6cfd183c7 +12 -0
- package/harness/catalog/dialog/files/3d71ca97986f4a6aa575 +29 -0
- package/harness/catalog/dialog/files/52461a94deafc1ddbb9e +1 -0
- package/harness/catalog/dialog/files/6595bcd27d3f2570d8fe +8 -0
- package/harness/catalog/dialog/files/6d2764adad162ecaf567 +1 -0
- package/harness/catalog/dialog/files/6f633326e4a606394eb9 +1 -0
- package/harness/catalog/dialog/files/73841e4e2d52a9ce1739 +99 -0
- package/harness/catalog/dialog/files/95a098053c36283f35ba +706 -0
- package/harness/catalog/dialog/files/96b143a067ceb693bbc2 +1 -0
- package/harness/catalog/dialog/files/a7247129c0b4c3f2809a +10 -0
- package/harness/catalog/dialog/files/ae31f52c79fac0a4a415 +21 -0
- package/harness/catalog/dialog/files/b0df9c2c22c03da30f17 +12 -0
- package/harness/catalog/dialog/files/bb1d44dcb521ae95d625 +30 -0
- package/harness/catalog/dialog/files/be32860a4c355d40cba1 +169 -0
- package/harness/catalog/dialog/files/beb1ca0148c74df4adae +79 -0
- package/harness/catalog/dialog/files/c14b3ca0336a4dfd750c +53 -0
- package/harness/catalog/dialog/files/d1612776ba9473008a59 +1 -0
- package/harness/catalog/dialog/files/ea2b7035753857ef50b3 +88 -0
- package/harness/catalog/dialog/files/f844b44e34e2bbd10ce8 +148 -0
- package/harness/catalog/dialog/manifest.json +127 -0
- package/harness/catalog/direction/files/02506a3763c0825c1b2e +4 -0
- package/harness/catalog/direction/files/02cfc0e8be9401edca36 +76 -0
- package/harness/catalog/direction/files/103e6063fccaaf929d1b +26 -0
- package/harness/catalog/direction/files/255fe8b7f16e99e2b8dd +91 -0
- package/harness/catalog/direction/files/75f8f89d2292a8284167 +1 -0
- package/harness/catalog/direction/files/8b99e167ec2c974cc2a9 +7 -0
- package/harness/catalog/direction/files/8fca474498a374fe7da7 +18 -0
- package/harness/catalog/direction/files/c69ce45deb5ff6ef0953 +155 -0
- package/harness/catalog/direction/files/e953ad5071ef37e0b922 +16 -0
- package/harness/catalog/direction/files/ee8a89015d44a06d8310 +51 -0
- package/harness/catalog/direction/files/f4dcc74509fba14c2f9b +32 -0
- package/harness/catalog/direction/manifest.json +64 -0
- package/harness/catalog/empty/files/12d5b75e9a7e69f7ebf3 +21 -0
- package/harness/catalog/empty/files/26c34047865703e941ae +21 -0
- package/harness/catalog/empty/files/584ac0d314cc5b04bd28 +75 -0
- package/harness/catalog/empty/files/61ec4e1f6bf74d4ea2e1 +3 -0
- package/harness/catalog/empty/files/69428ce8fd6924fe5c93 +4 -0
- package/harness/catalog/empty/files/6adc280f5247c6c59c04 +21 -0
- package/harness/catalog/empty/files/8bfb9f9a62a0adc52b29 +35 -0
- package/harness/catalog/empty/files/93bd9aa2a51cd2be900a +128 -0
- package/harness/catalog/empty/files/94eb6f0ebcb67e5ff82e +12 -0
- package/harness/catalog/empty/files/97c8f20352efd114453f +6 -0
- package/harness/catalog/empty/files/a36428ac1e039fa1ac08 +3 -0
- package/harness/catalog/empty/files/ad3c27417ff9f17d29c5 +21 -0
- package/harness/catalog/empty/files/b26b9b829d659c172afa +21 -0
- package/harness/catalog/empty/files/b531aec20772267bb1f0 +1 -0
- package/harness/catalog/empty/files/bf9f7c6d54893538934d +26 -0
- package/harness/catalog/empty/files/cc3b7ef917a187686d23 +92 -0
- package/harness/catalog/empty/files/efeb91d03e24e277c4a1 +299 -0
- package/harness/catalog/empty/files/f27a2ed4bc56de043dbd +55 -0
- package/harness/catalog/empty/manifest.json +87 -0
- package/harness/catalog/field/files/14f219e6b80e72e5c3bb +34 -0
- package/harness/catalog/field/files/1b59c2405c87e7172caa +4 -0
- package/harness/catalog/field/files/1de85848606fad492a52 +534 -0
- package/harness/catalog/field/files/245f94156a26a4f69b7d +9 -0
- package/harness/catalog/field/files/2b3cd42da8f154db221c +4 -0
- package/harness/catalog/field/files/35b3f29fc98483b4c80f +38 -0
- package/harness/catalog/field/files/475a598be605bbadb769 +4 -0
- package/harness/catalog/field/files/4a38ec4400cf7d298644 +21 -0
- package/harness/catalog/field/files/4ff10d27a916182c1738 +9 -0
- package/harness/catalog/field/files/652049b91be028101cf9 +21 -0
- package/harness/catalog/field/files/6adeae4eb58d78ea9f30 +95 -0
- package/harness/catalog/field/files/6e692b7158a826bbb947 +4 -0
- package/harness/catalog/field/files/7d6b6a3ab1daebba7cb8 +97 -0
- package/harness/catalog/field/files/98f5ffd7c690677bb092 +5 -0
- package/harness/catalog/field/files/ab27c00164159d57b0dd +30 -0
- package/harness/catalog/field/files/afa021fa0a297ad1fe23 +21 -0
- package/harness/catalog/field/files/aff6e70b48d33ce18356 +58 -0
- package/harness/catalog/field/files/b17a1e6ee355f3a6196f +21 -0
- package/harness/catalog/field/files/b4cce9970056872f98aa +39 -0
- package/harness/catalog/field/files/bb70812c4e051c4d318c +101 -0
- package/harness/catalog/field/files/cf526a36ce845c550978 +6 -0
- package/harness/catalog/field/files/d413eed2b0a4706d87dd +9 -0
- package/harness/catalog/field/files/d55783ea6832f7a48404 +183 -0
- package/harness/catalog/field/files/de723d33b8f3cc3a1ae6 +17 -0
- package/harness/catalog/field/files/f386f1400a0c1d04e219 +125 -0
- package/harness/catalog/field/manifest.json +115 -0
- package/harness/catalog/index.json +54 -0
- package/harness/catalog/input/files/01c8e9c337c9d9ec3b56 +157 -0
- package/harness/catalog/input/files/0374ecc1c70cfbeb5477 +94 -0
- package/harness/catalog/input/files/130029580ebe2410854d +62 -0
- package/harness/catalog/input/files/2e4f4f932ac53b3ed0f8 +92 -0
- package/harness/catalog/input/files/3928022bc657cfd275c8 +473 -0
- package/harness/catalog/input/files/45aea55aede567795da6 +38 -0
- package/harness/catalog/input/files/5d05203ba89dfffc5672 +5 -0
- package/harness/catalog/input/files/63785352f2e1083afad0 +3 -0
- package/harness/catalog/input/files/74013a390a4a820194f2 +56 -0
- package/harness/catalog/input/files/7f39502d3fb907d14714 +3 -0
- package/harness/catalog/input/files/9a072aedd4835d8302d0 +3 -0
- package/harness/catalog/input/files/a310eb8a50ef91f63464 +5 -0
- package/harness/catalog/input/files/ab7eccdc1ed0cf9e8d2a +3 -0
- package/harness/catalog/input/files/b8f3934a052b4cb749da +1 -0
- package/harness/catalog/input/files/bfe480c8577cbf45dd5e +142 -0
- package/harness/catalog/input/files/c7482318af88664d7dcc +4 -0
- package/harness/catalog/input/files/f3896b6e9d2f4b53cc9c +3 -0
- package/harness/catalog/input/manifest.json +85 -0
- package/harness/catalog/input-group/files/00e50817aba414d9cd26 +3 -0
- package/harness/catalog/input-group/files/076784d5a4d149a44604 +3 -0
- package/harness/catalog/input-group/files/1d30879d1a4a72c33976 +3 -0
- package/harness/catalog/input-group/files/25d5b296213c3ac34b13 +2 -0
- package/harness/catalog/input-group/files/2da272dd920815dd5684 +447 -0
- package/harness/catalog/input-group/files/2e421f3362b888bab4d0 +5 -0
- package/harness/catalog/input-group/files/31c747b37bb6426dbbb7 +5 -0
- package/harness/catalog/input-group/files/41ec212906edd2e8e5f6 +98 -0
- package/harness/catalog/input-group/files/4f58492af1ce660b817b +34 -0
- package/harness/catalog/input-group/files/50448668b22389f37e97 +3 -0
- package/harness/catalog/input-group/files/6dbdcc0f9ff4528070b8 +97 -0
- package/harness/catalog/input-group/files/736d8c18cf1f33b5a7d5 +2 -0
- package/harness/catalog/input-group/files/7a3f6facbfe0d6195355 +3 -0
- package/harness/catalog/input-group/files/89ff063e7666df8098d8 +83 -0
- package/harness/catalog/input-group/files/ac985a386a91e19f9bbd +2 -0
- package/harness/catalog/input-group/files/b28e3e20d39324fd7f46 +93 -0
- package/harness/catalog/input-group/files/d5410b5113479f8b7f5a +21 -0
- package/harness/catalog/input-group/files/d99f61d638ee95464394 +186 -0
- package/harness/catalog/input-group/files/dbcb5f1aaac679c86a53 +173 -0
- package/harness/catalog/input-group/files/e6305cb8959817cf07fc +18 -0
- package/harness/catalog/input-group/files/ee589db1ea581d588e63 +4 -0
- package/harness/catalog/input-group/files/f83225fa83f2339011cb +64 -0
- package/harness/catalog/input-group/manifest.json +109 -0
- package/harness/catalog/item/files/04bdde2b5e1615d12955 +322 -0
- package/harness/catalog/item/files/09e2e736a8375f63fcf0 +19 -0
- package/harness/catalog/item/files/0dcc0cfc1e2a47e99544 +26 -0
- package/harness/catalog/item/files/21166b7276e7422f4972 +163 -0
- package/harness/catalog/item/files/35c23f28a6a9400e68c6 +26 -0
- package/harness/catalog/item/files/3e55d032c524ad0b1754 +12 -0
- package/harness/catalog/item/files/46382bf1b58c54e07592 +6 -0
- package/harness/catalog/item/files/491e8d8a0c271e52640e +80 -0
- package/harness/catalog/item/files/4d77cb5e587c6a028b13 +521 -0
- package/harness/catalog/item/files/4f2a05a2ac90709e7ff7 +10 -0
- package/harness/catalog/item/files/56ba8284f9cb60bb1053 +21 -0
- package/harness/catalog/item/files/6b6cd3a9537fdf1354ea +3 -0
- package/harness/catalog/item/files/6c7bf2dfbdd32fe8f83a +21 -0
- package/harness/catalog/item/files/708ec3155d305b04654b +21 -0
- package/harness/catalog/item/files/79290f32b79c661a51d9 +26 -0
- package/harness/catalog/item/files/7d2530628a9e032f8bd6 +3 -0
- package/harness/catalog/item/files/a08b24c7c2fb10cad015 +46 -0
- package/harness/catalog/item/files/a47cfe69078455a32fbe +21 -0
- package/harness/catalog/item/files/a710a25ff17451cbdd00 +21 -0
- package/harness/catalog/item/files/b017a0cb71b5d5e73ab4 +11 -0
- package/harness/catalog/item/files/bcafcd71b96bae09e7e5 +21 -0
- package/harness/catalog/item/files/bf28d448b752a46831a0 +2 -0
- package/harness/catalog/item/files/c15f9be937068f7e1304 +1 -0
- package/harness/catalog/item/files/cb016b0cef50fdd305b1 +74 -0
- package/harness/catalog/item/files/cc7eec49d7f8f8c405b9 +3 -0
- package/harness/catalog/item/files/f5a8ad3f67b72a12fc48 +89 -0
- package/harness/catalog/item/manifest.json +119 -0
- package/harness/catalog/kbd/files/0ac105576d98be3d9e38 +3 -0
- package/harness/catalog/kbd/files/16d922c45b58989ddc86 +209 -0
- package/harness/catalog/kbd/files/1961ef478e61504f5c56 +1 -0
- package/harness/catalog/kbd/files/1a00b9bc0991be4b3318 +42 -0
- package/harness/catalog/kbd/files/255034504e8b67636ac2 +3 -0
- package/harness/catalog/kbd/files/268b00d6dcba45995ab3 +73 -0
- package/harness/catalog/kbd/files/2e7b2a85ecc2605cfe09 +16 -0
- package/harness/catalog/kbd/files/4d3887237a475f16d9f4 +22 -0
- package/harness/catalog/kbd/files/6f02f0895e7dd3bb032d +1 -0
- package/harness/catalog/kbd/files/8c47d035d84342a21cc4 +7 -0
- package/harness/catalog/kbd/files/97e104896e092af6b35b +22 -0
- package/harness/catalog/kbd/files/9b4ed30c2c7457a659b5 +2 -0
- package/harness/catalog/kbd/files/ba6e45ce6b38bf9c70e8 +40 -0
- package/harness/catalog/kbd/files/bf22ec90d5d876dffc8c +123 -0
- package/harness/catalog/kbd/files/cc42ed656bc00ebb6c52 +35 -0
- package/harness/catalog/kbd/manifest.json +73 -0
- package/harness/catalog/kits/dashboard/files/11a5797c4c9189b59fbe +134 -0
- package/harness/catalog/kits/dashboard/files/1aef0eaaad65d944a99f +98 -0
- package/harness/catalog/kits/dashboard/files/63cde4f28d1c141c401d +840 -0
- package/harness/catalog/kits/dashboard/files/864acc7ce20f541cf67c +17 -0
- package/harness/catalog/kits/dashboard/files/9cf4417e1eb89438b975 +49 -0
- package/harness/catalog/kits/dashboard/files/f84f0cf6a41afc21b64f +49 -0
- package/harness/catalog/kits/dashboard/files/ff7f571bbb2487b3ec23 +77 -0
- package/harness/catalog/kits/dashboard/manifest.json +52 -0
- package/harness/catalog/kits/data-table/files/1786ba4d3e0dba1d6a1f +19 -0
- package/harness/catalog/kits/data-table/files/36bac8f8e53119768b2e +154 -0
- package/harness/catalog/kits/data-table/files/460135fc626b5c2e7c33 +21 -0
- package/harness/catalog/kits/data-table/files/4cb7b4e9113b8414562f +106 -0
- package/harness/catalog/kits/data-table/files/5bafa7b36216f575d9cd +61 -0
- package/harness/catalog/kits/data-table/files/9cbb532f9f52b5b1b1cb +128 -0
- package/harness/catalog/kits/data-table/files/b5d5d7f18347734138e0 +607 -0
- package/harness/catalog/kits/data-table/files/d5dd11475a87206462f1 +95 -0
- package/harness/catalog/kits/data-table/manifest.json +56 -0
- package/harness/catalog/kits/docs-article/files/4cc9189b0d6a2bd7f59a +67 -0
- package/harness/catalog/kits/docs-article/files/642e7bd0b80a4a207c44 +73 -0
- package/harness/catalog/kits/docs-article/files/7f36cb5f0d4f5e103bde +18 -0
- package/harness/catalog/kits/docs-article/files/be0fb62d1c30dee65c74 +86 -0
- package/harness/catalog/kits/docs-article/files/c2018b502a8094818d8f +113 -0
- package/harness/catalog/kits/docs-article/files/dbc2840f315f672e1d74 +594 -0
- package/harness/catalog/kits/docs-article/manifest.json +50 -0
- package/harness/catalog/kits/form-states/files/0ef2ffae9d6f232f45e9 +124 -0
- package/harness/catalog/kits/form-states/files/437cb4c87ea365713cdd +68 -0
- package/harness/catalog/kits/form-states/files/88252259f19ed675a0dc +2099 -0
- package/harness/catalog/kits/form-states/files/96f75e622f16e97f3ea4 +62 -0
- package/harness/catalog/kits/form-states/files/b0b51ebf587b21fd89a1 +137 -0
- package/harness/catalog/kits/form-states/files/b52fb2fc480f0c6352bd +14 -0
- package/harness/catalog/kits/form-states/manifest.json +52 -0
- package/harness/catalog/kits/onboarding/files/322cf4dfc2ee0a035d85 +18 -0
- package/harness/catalog/kits/onboarding/files/3468d9690d9a781191ec +20 -0
- package/harness/catalog/kits/onboarding/files/6b468153260c66cd0413 +16 -0
- package/harness/catalog/kits/onboarding/files/7921743050eaf6de1a3d +73 -0
- package/harness/catalog/kits/onboarding/files/ae75e02daf70b4c8592f +105 -0
- package/harness/catalog/kits/onboarding/files/ce466020247ecf1ff5fe +119 -0
- package/harness/catalog/kits/onboarding/files/e669d75a65f4d15d8289 +352 -0
- package/harness/catalog/kits/onboarding/files/ea5a042d41c4a9418b24 +4 -0
- package/harness/catalog/kits/onboarding/manifest.json +53 -0
- package/harness/catalog/kits/profile/files/0fdd3c14afbdadcf1969 +16 -0
- package/harness/catalog/kits/profile/files/4a3c9a0031274cf07290 +43 -0
- package/harness/catalog/kits/profile/files/4aeca453e4792abf29de +520 -0
- package/harness/catalog/kits/profile/files/5b58bb5f93ecf12d69ff +96 -0
- package/harness/catalog/kits/profile/files/75b211244911b7cc480a +49 -0
- package/harness/catalog/kits/profile/files/881ef28864ed23ed93c8 +64 -0
- package/harness/catalog/kits/profile/files/cefb8073e21695cbf74b +42 -0
- package/harness/catalog/kits/profile/manifest.json +48 -0
- package/harness/catalog/kits/settings/files/0383a2564061dcf126a5 +70 -0
- package/harness/catalog/kits/settings/files/1a5d639c6803e7d03acc +119 -0
- package/harness/catalog/kits/settings/files/4344224a795d1beca0e8 +36 -0
- package/harness/catalog/kits/settings/files/6d38306218413c650752 +45 -0
- package/harness/catalog/kits/settings/files/9c61262f2fcf7346afce +43 -0
- package/harness/catalog/kits/settings/files/b4a7a4ccdc59465b8de5 +486 -0
- package/harness/catalog/kits/settings/files/d2ebbd6e94570b2c6434 +17 -0
- package/harness/catalog/kits/settings/files/ec7bce34a9f863882799 +33 -0
- package/harness/catalog/kits/settings/manifest.json +55 -0
- package/harness/catalog/kits/sign-in/files/0457945d67f57a0956b0 +22 -0
- package/harness/catalog/kits/sign-in/files/1778d506d6768426a33a +22 -0
- package/harness/catalog/kits/sign-in/files/276055c567cb979af600 +19 -0
- package/harness/catalog/kits/sign-in/files/361745a3ed43c753c615 +444 -0
- package/harness/catalog/kits/sign-in/files/552bdad5ce7559849e81 +17 -0
- package/harness/catalog/kits/sign-in/files/5ccdff5683e7c3fc7b66 +110 -0
- package/harness/catalog/kits/sign-in/files/5f8c4d12ea47ece52a44 +38 -0
- package/harness/catalog/kits/sign-in/files/ca224349b746c530f922 +110 -0
- package/harness/catalog/kits/sign-in/files/e50f092f7e5fa4ef4c22 +19 -0
- package/harness/catalog/kits/sign-in/manifest.json +55 -0
- package/harness/catalog/label/files/0d724d49f7d1d2ec7efc +1 -0
- package/harness/catalog/label/files/178c6bba6c9e90425d21 +2 -0
- package/harness/catalog/label/files/18342988a5792fb0bcad +170 -0
- package/harness/catalog/label/files/211d54defefbe5e94796 +37 -0
- package/harness/catalog/label/files/5340c9b911a7a4a11c69 +28 -0
- package/harness/catalog/label/files/59f0a37653f1e78ed28b +1 -0
- package/harness/catalog/label/files/6121a0a7157378c0fa2d +104 -0
- package/harness/catalog/label/files/905f249fb255abf67c32 +2 -0
- package/harness/catalog/label/files/92ba7e766a8e1b5a3cf0 +64 -0
- package/harness/catalog/label/files/977a534f8794467a47f2 +219 -0
- package/harness/catalog/label/files/aab49456f22f22d12017 +85 -0
- package/harness/catalog/label/files/c54411858ebf34a8cb54 +2 -0
- package/harness/catalog/label/files/c77857f888aab7f682af +3 -0
- package/harness/catalog/label/files/edf861c1fdb33efb3d2d +2 -0
- package/harness/catalog/label/files/eeafe176d4d778cc9380 +2 -0
- package/harness/catalog/label/files/f422c1d852b88024b703 +14 -0
- package/harness/catalog/label/manifest.json +79 -0
- package/harness/catalog/native-select/files/04dd3d3b7e52db816e7a +94 -0
- package/harness/catalog/native-select/files/0d1a9ad329393ddab564 +121 -0
- package/harness/catalog/native-select/files/13dbbc7bf43082986000 +10 -0
- package/harness/catalog/native-select/files/1da077d928618138c4b8 +200 -0
- package/harness/catalog/native-select/files/2113975ac7413cb45a61 +47 -0
- package/harness/catalog/native-select/files/744dbce3cb9ffb538c60 +83 -0
- package/harness/catalog/native-select/files/77300579b27d8b8dbfb8 +10 -0
- package/harness/catalog/native-select/files/9974bd4a983ce6e468ec +12 -0
- package/harness/catalog/native-select/files/c0626646c03aeb3ad93c +189 -0
- package/harness/catalog/native-select/files/c16f89dd4efac798101b +10 -0
- package/harness/catalog/native-select/files/c4b2e491bc54d6525edd +10 -0
- package/harness/catalog/native-select/files/cc71e265ac8c728163a0 +10 -0
- package/harness/catalog/native-select/files/ccc07dd1b217b5f634f0 +472 -0
- package/harness/catalog/native-select/files/d2f8e83f878359d164ec +10 -0
- package/harness/catalog/native-select/files/d6d4ee4692af5da60764 +19 -0
- package/harness/catalog/native-select/files/dafc51f382ef061a8113 +1 -0
- package/harness/catalog/native-select/files/ed3efff65cc3a8fb38e5 +12 -0
- package/harness/catalog/native-select/files/efb122a6a12da738c520 +10 -0
- package/harness/catalog/native-select/files/f3ce547f443bdf09f4ba +10 -0
- package/harness/catalog/native-select/files/fd1ad0d903b8ef4bacf7 +11 -0
- package/harness/catalog/native-select/manifest.json +97 -0
- package/harness/catalog/pagination/files/04910095041172b5656d +25 -0
- package/harness/catalog/pagination/files/13f03f9f29240862e939 +56 -0
- package/harness/catalog/pagination/files/18d235614c5082754f87 +90 -0
- package/harness/catalog/pagination/files/2772d7dca5a9b736fa27 +129 -0
- package/harness/catalog/pagination/files/2d6272cfbd3cd586ab9a +41 -0
- package/harness/catalog/pagination/files/393ce6151781df4f73b1 +7 -0
- package/harness/catalog/pagination/files/4178ae22ed24b8b0b2e3 +61 -0
- package/harness/catalog/pagination/files/60027b10f4f6405b078b +14 -0
- package/harness/catalog/pagination/files/60e0a8630f1f1b0c9860 +14 -0
- package/harness/catalog/pagination/files/636bdc45e5b52eb2fc36 +45 -0
- package/harness/catalog/pagination/files/73cef46d42733ef6d11b +41 -0
- package/harness/catalog/pagination/files/932e0ff1f3e4e70c7664 +19 -0
- package/harness/catalog/pagination/files/95f794d2b6a64320b411 +196 -0
- package/harness/catalog/pagination/files/a7618526ce3fc0595aa8 +46 -0
- package/harness/catalog/pagination/files/af2f75c1c60f40148e41 +30 -0
- package/harness/catalog/pagination/files/dc3354029b3743fa4607 +34 -0
- package/harness/catalog/pagination/files/f737799eba73ede286c6 +505 -0
- package/harness/catalog/pagination/manifest.json +81 -0
- package/harness/catalog/progress/files/06cd5195c1465d18cf67 +1 -0
- package/harness/catalog/progress/files/124314b4921167293987 +1 -0
- package/harness/catalog/progress/files/3f37f1d3cb4dfc6c6fe2 +1 -0
- package/harness/catalog/progress/files/46b8ec7859c9c59094a8 +1 -0
- package/harness/catalog/progress/files/52bb3ada2f1d1325d95a +43 -0
- package/harness/catalog/progress/files/683d8646b127ec5dd66e +2 -0
- package/harness/catalog/progress/files/98f3165379840778060d +129 -0
- package/harness/catalog/progress/files/9d3d72f2c3df4816a72f +38 -0
- package/harness/catalog/progress/files/ac4c4532f20085614826 +220 -0
- package/harness/catalog/progress/files/b1cf02fc7ecba00d0a5d +57 -0
- package/harness/catalog/progress/files/b9d67aae522deb2f2874 +82 -0
- package/harness/catalog/progress/files/ba1f86715e56b9d87904 +1 -0
- package/harness/catalog/progress/files/c0f9aa5c1b828ae95458 +21 -0
- package/harness/catalog/progress/files/cce615b40b94edc2bd0a +75 -0
- package/harness/catalog/progress/files/fbdbab9c99c0e52e7e93 +1 -0
- package/harness/catalog/progress/manifest.json +73 -0
- package/harness/catalog/radio-group/files/0524023470cd6e82adc8 +79 -0
- package/harness/catalog/radio-group/files/105409e5b8bba6c04d90 +9 -0
- package/harness/catalog/radio-group/files/15d87655c6fce7cbdd87 +7 -0
- package/harness/catalog/radio-group/files/1ab7aeaf41bd11881118 +8 -0
- package/harness/catalog/radio-group/files/1ac26e4aaaf55d172a29 +140 -0
- package/harness/catalog/radio-group/files/1f92eedd59d862a251bc +89 -0
- package/harness/catalog/radio-group/files/2e172c357c5ad16851b0 +7 -0
- package/harness/catalog/radio-group/files/2f70078682b30a266fdb +279 -0
- package/harness/catalog/radio-group/files/3ba2bc3ba6f029b80ca0 +7 -0
- package/harness/catalog/radio-group/files/6a5408af78fb93544257 +11 -0
- package/harness/catalog/radio-group/files/6d46f6c13443b681492a +87 -0
- package/harness/catalog/radio-group/files/85a4b3266a6a1d28e98e +17 -0
- package/harness/catalog/radio-group/files/8bc1af58d460a1f08417 +7 -0
- package/harness/catalog/radio-group/files/924c3130eda5e6a89b8c +85 -0
- package/harness/catalog/radio-group/files/965cd8ee2804c8db885f +2 -0
- package/harness/catalog/radio-group/files/9aed7c5fa69a16e32877 +7 -0
- package/harness/catalog/radio-group/files/b517f83f11efd06cecc6 +9 -0
- package/harness/catalog/radio-group/files/b5794de89d7617056bd7 +7 -0
- package/harness/catalog/radio-group/files/cf90166db3ba9acc2194 +52 -0
- package/harness/catalog/radio-group/files/df1cd5a2eb01d19cbecf +394 -0
- package/harness/catalog/radio-group/files/f0716924e08378be93db +7 -0
- package/harness/catalog/radio-group/manifest.json +101 -0
- package/harness/catalog/scroll-area/files/0609007de03faf1c3d0f +46 -0
- package/harness/catalog/scroll-area/files/1908a334d6f3a4dbf6c0 +21 -0
- package/harness/catalog/scroll-area/files/1e8f68bf069a5f387c34 +83 -0
- package/harness/catalog/scroll-area/files/41b80c94f170ea511175 +44 -0
- package/harness/catalog/scroll-area/files/4a42e479847375dcc3f9 +25 -0
- package/harness/catalog/scroll-area/files/4ca03842475a792cb0c1 +40 -0
- package/harness/catalog/scroll-area/files/55e014a395adc19f6cef +265 -0
- package/harness/catalog/scroll-area/files/60bc5ea08ee21de46d13 +123 -0
- package/harness/catalog/scroll-area/files/85a4352c5d2fceab3803 +19 -0
- package/harness/catalog/scroll-area/files/a3cd2f01d235d82495fb +2 -0
- package/harness/catalog/scroll-area/files/ade2527a8f6accd9b730 +6 -0
- package/harness/catalog/scroll-area/files/b2e8b1702898b8ca3833 +93 -0
- package/harness/catalog/scroll-area/files/da73cf074c32dc1be5f1 +61 -0
- package/harness/catalog/scroll-area/files/ebca80ece3c535585b1d +41 -0
- package/harness/catalog/scroll-area/files/f6fc569d113d49be8d9b +61 -0
- package/harness/catalog/scroll-area/manifest.json +73 -0
- package/harness/catalog/separator/files/374b9df00179421eddf2 +3 -0
- package/harness/catalog/separator/files/4e8122ded69b8f101fb2 +43 -0
- package/harness/catalog/separator/files/6d7eafd5d259b4a18d8c +168 -0
- package/harness/catalog/separator/files/84cb34e3692a988ae594 +27 -0
- package/harness/catalog/separator/files/9290cde82ff35a18d670 +3 -0
- package/harness/catalog/separator/files/a9afc792add2b428f1e8 +3 -0
- package/harness/catalog/separator/files/b35a57ea93c2a3cb70f8 +77 -0
- package/harness/catalog/separator/files/cf582f7054769bcef6eb +5 -0
- package/harness/catalog/separator/files/d1d489b25ae8086dd004 +11 -0
- package/harness/catalog/separator/files/d8a31d391f75f3a61fb3 +37 -0
- package/harness/catalog/separator/files/dd83a998ab6abc4d4a62 +1 -0
- package/harness/catalog/separator/files/eb2517d531a9906643d7 +47 -0
- package/harness/catalog/separator/files/f9759af59a3ba93dae9b +127 -0
- package/harness/catalog/separator/manifest.json +65 -0
- package/harness/catalog/sidebar/files/02c393cb36580af098d9 +23 -0
- package/harness/catalog/sidebar/files/0baeb5c4c8b7893d5fcf +756 -0
- package/harness/catalog/sidebar/files/1703dc3e2ad661ccbf64 +744 -0
- package/harness/catalog/sidebar/files/184473a92ca8fb31600e +29 -0
- package/harness/catalog/sidebar/files/1a887b38be934ce59719 +55 -0
- package/harness/catalog/sidebar/files/33842af58a18280c36aa +57 -0
- package/harness/catalog/sidebar/files/3e189ffc0c2682c10cf2 +187 -0
- package/harness/catalog/sidebar/files/42912dae260a1877fca7 +7 -0
- package/harness/catalog/sidebar/files/4e5ba4ef0af42f6a7adb +249 -0
- package/harness/catalog/sidebar/files/4ecc4d8ff1bf3d164a8b +21 -0
- package/harness/catalog/sidebar/files/508f864b7864c8394ca3 +27 -0
- package/harness/catalog/sidebar/files/5e75aef8fec95baad132 +90 -0
- package/harness/catalog/sidebar/files/68079b1aea589468b91b +21 -0
- package/harness/catalog/sidebar/files/7fc791d49df7f259257b +155 -0
- package/harness/catalog/sidebar/files/88cc94ff5db8b8216376 +7 -0
- package/harness/catalog/sidebar/files/91d221fdce2c9e43bd8c +16 -0
- package/harness/catalog/sidebar/files/a80295e689cbd36a473f +84 -0
- package/harness/catalog/sidebar/files/a84bff2047ae8764783d +29 -0
- package/harness/catalog/sidebar/files/b82a3010959395a48e1a +49 -0
- package/harness/catalog/sidebar/files/bc1e527aadf296b8d0ff +21 -0
- package/harness/catalog/sidebar/files/bcbd1ae5b1fd97c72c53 +11 -0
- package/harness/catalog/sidebar/files/c964f937cad048b84944 +92 -0
- package/harness/catalog/sidebar/files/daaaa332bc0d9d13ed98 +21 -0
- package/harness/catalog/sidebar/files/e4218aaf235e989cbd53 +21 -0
- package/harness/catalog/sidebar/files/ee8db7c1694c46686557 +26 -0
- package/harness/catalog/sidebar/files/f673ab38a8d4ae19f321 +31 -0
- package/harness/catalog/sidebar/manifest.json +129 -0
- package/harness/catalog/skeleton/files/01ba4719c80b6fe911b0 +1 -0
- package/harness/catalog/skeleton/files/0e6d882ff78e3beba2d6 +30 -0
- package/harness/catalog/skeleton/files/376c8cba27f74bac0cb9 +39 -0
- package/harness/catalog/skeleton/files/4612f603a58593ca55e0 +11 -0
- package/harness/catalog/skeleton/files/4d046332fd9d8d606983 +163 -0
- package/harness/catalog/skeleton/files/96d701044834f6a5836a +111 -0
- package/harness/catalog/skeleton/files/a634338190d8728efc1c +1 -0
- package/harness/catalog/skeleton/files/bbaabfa0b8dc2e8ea11a +74 -0
- package/harness/catalog/skeleton/files/c67fd2e5aaaba5a9d580 +28 -0
- package/harness/catalog/skeleton/files/cbccb00a131579632ae9 +27 -0
- package/harness/catalog/skeleton/manifest.json +57 -0
- package/harness/catalog/slider/files/055538028b3345e43a11 +214 -0
- package/harness/catalog/slider/files/0cb5c203dad3b98de5e0 +1 -0
- package/harness/catalog/slider/files/1ae10a01eb873280ce12 +4 -0
- package/harness/catalog/slider/files/1f79672390fd6db74fee +21 -0
- package/harness/catalog/slider/files/25dc6781375bc2c2df6d +482 -0
- package/harness/catalog/slider/files/393ec10fdb971be991de +72 -0
- package/harness/catalog/slider/files/424492d24591aef531e6 +4 -0
- package/harness/catalog/slider/files/42e0ad202b32731e7a02 +3 -0
- package/harness/catalog/slider/files/4cb5517efb58b1879afd +59 -0
- package/harness/catalog/slider/files/659100cf11a1d05b2c89 +3 -0
- package/harness/catalog/slider/files/668e93dad3504e8ef610 +95 -0
- package/harness/catalog/slider/files/71e517cb9c92a75885f5 +3 -0
- package/harness/catalog/slider/files/7657bd9ab41538c35120 +3 -0
- package/harness/catalog/slider/files/81017d93f3ad7c324811 +5 -0
- package/harness/catalog/slider/files/8b0655afa86f8d9dc2bc +177 -0
- package/harness/catalog/slider/files/a7488bb1ada74ac621e6 +3 -0
- package/harness/catalog/slider/files/b45d4e5cb309bcc465a5 +285 -0
- package/harness/catalog/slider/files/c9a088fbd66f42f4564d +4 -0
- package/harness/catalog/slider/files/ce3046c912906d11badf +6 -0
- package/harness/catalog/slider/files/d5508e45254809067beb +3 -0
- package/harness/catalog/slider/files/ee1caf9ef1db1c4f926e +3 -0
- package/harness/catalog/slider/files/f764bc666d741a7bf39f +3 -0
- package/harness/catalog/slider/manifest.json +101 -0
- package/harness/catalog/spinner/files/01ba4719c80b6fe911b0 +1 -0
- package/harness/catalog/spinner/files/0fee74c552acfcd09b79 +77 -0
- package/harness/catalog/spinner/files/2a5417a598cfa5c61d41 +77 -0
- package/harness/catalog/spinner/files/38ff39afe202b65ee51b +32 -0
- package/harness/catalog/spinner/files/56c45ae3c12de700ab2e +30 -0
- package/harness/catalog/spinner/files/6df67fa7b71cc2d5a264 +1 -0
- package/harness/catalog/spinner/files/6f49277820d19b30bf3e +30 -0
- package/harness/catalog/spinner/files/72eebb972f647017cb66 +161 -0
- package/harness/catalog/spinner/files/a21c624000065c68760a +1 -0
- package/harness/catalog/spinner/files/bf8438f942deebfd1eb1 +59 -0
- package/harness/catalog/spinner/files/c8addaaad7e52c7db0ae +34 -0
- package/harness/catalog/spinner/files/e445cd25a2db6a2e2a8b +1 -0
- package/harness/catalog/spinner/manifest.json +65 -0
- package/harness/catalog/switch/files/00386133e411f7f9f2b6 +4 -0
- package/harness/catalog/switch/files/0c1c3cb6e26d717784fc +2 -0
- package/harness/catalog/switch/files/3fc789ad053403f6c0a9 +20 -0
- package/harness/catalog/switch/files/44df1872eb49ea4e1e08 +483 -0
- package/harness/catalog/switch/files/49d0024b39574e56612f +3 -0
- package/harness/catalog/switch/files/592404eea89d590aca7a +2 -0
- package/harness/catalog/switch/files/6805184e8897c82550c4 +65 -0
- package/harness/catalog/switch/files/7a9c672629fef0bd0dec +2 -0
- package/harness/catalog/switch/files/8733d3a60ffcb6ade494 +210 -0
- package/harness/catalog/switch/files/910ca4e571bb756e4687 +4 -0
- package/harness/catalog/switch/files/92d0e744cb47aecc36bc +126 -0
- package/harness/catalog/switch/files/a195aa181ef4d92ffe20 +47 -0
- package/harness/catalog/switch/files/a6b8c28ba62b79ec987d +2 -0
- package/harness/catalog/switch/files/c365a534cf1a1122900d +2 -0
- package/harness/catalog/switch/files/df46601cb34ccf35b908 +1 -0
- package/harness/catalog/switch/files/e65b2ec11fa9a263d727 +153 -0
- package/harness/catalog/switch/files/ea1e13f86f2d9ea47d84 +93 -0
- package/harness/catalog/switch/files/eff1c0d843da2d594748 +4 -0
- package/harness/catalog/switch/files/f7eb67e0d31b393f05ae +3 -0
- package/harness/catalog/switch/files/fa365adda5b6c224f55f +4 -0
- package/harness/catalog/switch/manifest.json +101 -0
- package/harness/catalog/table/files/06a72c7ea0badb1cdb70 +83 -0
- package/harness/catalog/table/files/0c9127bfdbcb6b684d41 +9 -0
- package/harness/catalog/table/files/11aa2b5da6eff1bc677e +481 -0
- package/harness/catalog/table/files/218ac7260a0b3b039f4a +26 -0
- package/harness/catalog/table/files/4a4cf995bf282ff92770 +26 -0
- package/harness/catalog/table/files/4eb3d1edab7042aa14fe +36 -0
- package/harness/catalog/table/files/63d442facdfea1c86c66 +8 -0
- package/harness/catalog/table/files/7793bcf9af64c209d082 +59 -0
- package/harness/catalog/table/files/847886ae5dea29b33a82 +159 -0
- package/harness/catalog/table/files/9256f0a7cd82969c9563 +26 -0
- package/harness/catalog/table/files/a2c392393c5570977487 +98 -0
- package/harness/catalog/table/files/c3c72c2b5b63f99435d6 +32 -0
- package/harness/catalog/table/files/c7052cd9cf1d37957359 +26 -0
- package/harness/catalog/table/files/cf536589682b899cbbc8 +36 -0
- package/harness/catalog/table/files/e066a67b247e4ff773ed +72 -0
- package/harness/catalog/table/files/e64bfc90653d920c40cf +26 -0
- package/harness/catalog/table/files/ee2c6aa6812c21964fc3 +37 -0
- package/harness/catalog/table/files/efc084da8f3e1ca4bb1e +20 -0
- package/harness/catalog/table/files/f63191bea2943e7e8646 +26 -0
- package/harness/catalog/table/manifest.json +95 -0
- package/harness/catalog/tabs/files/07313e4500aa9db5bea9 +295 -0
- package/harness/catalog/tabs/files/0e09bb234c2d987563c5 +44 -0
- package/harness/catalog/tabs/files/21d28a1591efd7f95f0c +7 -0
- package/harness/catalog/tabs/files/3af8b9df88190e5769e3 +179 -0
- package/harness/catalog/tabs/files/417c2aab1ac8fc02bea8 +97 -0
- package/harness/catalog/tabs/files/5a911ebff6c576edf6e2 +7 -0
- package/harness/catalog/tabs/files/648e7828551135a79fe0 +506 -0
- package/harness/catalog/tabs/files/695a8dbd85e48a6df664 +7 -0
- package/harness/catalog/tabs/files/6baa7760f7e987f3ef6a +21 -0
- package/harness/catalog/tabs/files/73e91381aa7e8daf88a7 +49 -0
- package/harness/catalog/tabs/files/7aae2037e305f96b0b32 +12 -0
- package/harness/catalog/tabs/files/84a3fabd049bcd7acfdc +7 -0
- package/harness/catalog/tabs/files/a5164ae6a24abaec4ac6 +57 -0
- package/harness/catalog/tabs/files/a6bbaee4752f6c2390e2 +82 -0
- package/harness/catalog/tabs/files/ba5b8143d45ad81e1c60 +55 -0
- package/harness/catalog/tabs/files/bf00a8f1a90c35508882 +7 -0
- package/harness/catalog/tabs/files/c0984c7ad455c6b0cc4c +7 -0
- package/harness/catalog/tabs/files/ccdbaeb3df0390b93d29 +6 -0
- package/harness/catalog/tabs/files/cdea93ffff588335d13f +7 -0
- package/harness/catalog/tabs/files/edec052d6f4e11eb127b +4 -0
- package/harness/catalog/tabs/files/f3d876e31487d62c6b73 +72 -0
- package/harness/catalog/tabs/manifest.json +101 -0
- package/harness/catalog/textarea/files/0a144b3a4ff8b760723f +3 -0
- package/harness/catalog/textarea/files/1179ca65c96f2c4c7a62 +20 -0
- package/harness/catalog/textarea/files/3823c388f816fde1b42a +4 -0
- package/harness/catalog/textarea/files/3a82f5bd2f742c0e128c +1 -0
- package/harness/catalog/textarea/files/3b4902e2330b9e9e9cab +3 -0
- package/harness/catalog/textarea/files/43436aab74885a39c202 +5 -0
- package/harness/catalog/textarea/files/4d71c9cadff18e09886a +91 -0
- package/harness/catalog/textarea/files/62d0c969f21365d6b1b1 +5 -0
- package/harness/catalog/textarea/files/669e6acaa0b92e26f625 +3 -0
- package/harness/catalog/textarea/files/7045c50006094d7fc509 +60 -0
- package/harness/catalog/textarea/files/7077fee35ef05f1bbe4a +94 -0
- package/harness/catalog/textarea/files/814e737b0611c5065988 +445 -0
- package/harness/catalog/textarea/files/bc3570e5272f5184ad9e +3 -0
- package/harness/catalog/textarea/files/ce80d7e5afc76abd4959 +59 -0
- package/harness/catalog/textarea/files/cf73481c223c131e6c11 +3 -0
- package/harness/catalog/textarea/files/ece8fd9c92b58896f533 +187 -0
- package/harness/catalog/textarea/files/fa6d6b7547b43d802c91 +149 -0
- package/harness/catalog/textarea/manifest.json +85 -0
- package/harness/catalog/toggle/files/06e728076ff3708d9731 +1 -0
- package/harness/catalog/toggle/files/101275fbf8e9a92f05bd +350 -0
- package/harness/catalog/toggle/files/25c5c34ba3643df243fe +1 -0
- package/harness/catalog/toggle/files/4ff925b4bd7f7a54adbf +53 -0
- package/harness/catalog/toggle/files/552756c181edbe2ea36e +1 -0
- package/harness/catalog/toggle/files/7ca72db6ef05e84c818d +2 -0
- package/harness/catalog/toggle/files/86a49ecdda597c2abc1f +96 -0
- package/harness/catalog/toggle/files/c69429348ba9b2349c41 +1 -0
- package/harness/catalog/toggle/files/caa7211387429abff9ad +1 -0
- package/harness/catalog/toggle/files/cc3e62779d904733edbb +18 -0
- package/harness/catalog/toggle/files/d29935b92deece7918e8 +1 -0
- package/harness/catalog/toggle/files/dc0582c85be71895b397 +102 -0
- package/harness/catalog/toggle/files/e1dd7f07ac462c85e350 +1 -0
- package/harness/catalog/toggle/files/e50481803ad0d9f7c606 +1 -0
- package/harness/catalog/toggle/files/e5de72e6307749961d2b +50 -0
- package/harness/catalog/toggle/files/e98252325970f8f0de47 +6 -0
- package/harness/catalog/toggle/files/ebd668effb5c2ec9b74f +85 -0
- package/harness/catalog/toggle/files/ecd68b4d77b8b659e0cd +192 -0
- package/harness/catalog/toggle/manifest.json +89 -0
- package/harness/catalog/toggle-group/files/0fa34763f042c43ce73b +4 -0
- package/harness/catalog/toggle-group/files/190b8f8c8a7ae50ab17d +88 -0
- package/harness/catalog/toggle-group/files/19433a77dc520968adc7 +82 -0
- package/harness/catalog/toggle-group/files/2962515e0df1a6578234 +2 -0
- package/harness/catalog/toggle-group/files/599a5a04bc484ca3b63a +4 -0
- package/harness/catalog/toggle-group/files/5a8079fac7a37e9643e4 +3 -0
- package/harness/catalog/toggle-group/files/65b5cdec43bfefa463f5 +5 -0
- package/harness/catalog/toggle-group/files/6f6c143c8a199c913076 +4 -0
- package/harness/catalog/toggle-group/files/838108eb3fe1ef7caf97 +172 -0
- package/harness/catalog/toggle-group/files/9871546bf65ecfd8194e +85 -0
- package/harness/catalog/toggle-group/files/a43866348a36242e2b4e +17 -0
- package/harness/catalog/toggle-group/files/b39b752eca28b0def9f6 +4 -0
- package/harness/catalog/toggle-group/files/bd424f103ce11b4028bf +24 -0
- package/harness/catalog/toggle-group/files/c6d49c47cbca3721c6e0 +14 -0
- package/harness/catalog/toggle-group/files/cb207321ae902ad2316b +4 -0
- package/harness/catalog/toggle-group/files/d0677f0dfb61de88dd9e +278 -0
- package/harness/catalog/toggle-group/files/e1c72518f6c3a4cb47f6 +130 -0
- package/harness/catalog/toggle-group/files/ebcee45fa104cfa89d4f +55 -0
- package/harness/catalog/toggle-group/files/ed9cb4818db1e6341ad9 +565 -0
- package/harness/catalog/toggle-group/files/f846b21b23d9e132fded +4 -0
- package/harness/catalog/toggle-group/manifest.json +111 -0
- package/harness/catalog/typography/files/0a4d3686784349f2a671 +2 -0
- package/harness/catalog/typography/files/1004765ed611a2862d32 +1 -0
- package/harness/catalog/typography/files/2db24ae6bcb2f89eb7b6 +99 -0
- package/harness/catalog/typography/files/4b963f90bb762c552cf8 +2 -0
- package/harness/catalog/typography/files/4fb45c7c4e74d67c5bf5 +38 -0
- package/harness/catalog/typography/files/677a3d8e4ce6c2ac5f7f +28 -0
- package/harness/catalog/typography/files/6eb835a9f4bcf45c33f1 +2 -0
- package/harness/catalog/typography/files/70c577bc4141d2234973 +23 -0
- package/harness/catalog/typography/files/71af48bf10a9799ce540 +2 -0
- package/harness/catalog/typography/files/7dbdb256dedc6d4e8c42 +56 -0
- package/harness/catalog/typography/files/abe12ca3a7a166b0b4fb +222 -0
- package/harness/catalog/typography/files/b3b312ffd5ecb243853a +13 -0
- package/harness/catalog/typography/files/c47ff3172fe052fda28f +134 -0
- package/harness/catalog/typography/files/ea5ccd6abd4866523ab5 +335 -0
- package/harness/catalog/typography/files/ebb2f1791031cad5c2fc +70 -0
- package/harness/catalog/typography/manifest.json +73 -0
- package/harness/checks/a1-api.d.mts +4 -0
- package/harness/checks/a1-api.mjs +97 -0
- package/harness/checks/c1-contracts.d.mts +4 -0
- package/harness/checks/c1-contracts.mjs +92 -0
- package/harness/checks/c2-contract-tokens.d.mts +4 -0
- package/harness/checks/c2-contract-tokens.mjs +28 -0
- package/harness/checks/c3-parity.d.mts +4 -0
- package/harness/checks/c3-parity.mjs +68 -0
- package/harness/checks/d1-design-drift.d.mts +4 -0
- package/harness/checks/d1-design-drift.mjs +51 -0
- package/harness/checks/d3-design-docs.d.mts +4 -0
- package/harness/checks/d3-design-docs.mjs +66 -0
- package/harness/checks/d4-design-realization.d.mts +4 -0
- package/harness/checks/d4-design-realization.mjs +38 -0
- package/harness/checks/data/reference-phrases.json +35 -0
- package/harness/checks/f1-foundations.d.mts +4 -0
- package/harness/checks/f1-foundations.mjs +70 -0
- package/harness/checks/g1-generated.d.mts +4 -0
- package/harness/checks/g1-generated.mjs +156 -0
- package/harness/checks/h1-claude-layer.d.mts +4 -0
- package/harness/checks/h1-claude-layer.mjs +40 -0
- package/harness/checks/h2-typescript-sources.d.mts +5 -0
- package/harness/checks/h2-typescript-sources.mjs +33 -0
- package/harness/checks/k1-patterns.d.mts +4 -0
- package/harness/checks/k1-patterns.mjs +183 -0
- package/harness/checks/m1-docs-coverage.d.mts +4 -0
- package/harness/checks/m1-docs-coverage.mjs +63 -0
- package/harness/checks/o1-propagation.d.mts +4 -0
- package/harness/checks/o1-propagation.mjs +34 -0
- package/harness/checks/p1-prefix.d.mts +4 -0
- package/harness/checks/p1-prefix.mjs +55 -0
- package/harness/checks/r1-registry.d.mts +4 -0
- package/harness/checks/r1-registry.mjs +54 -0
- package/harness/checks/run.d.mts +10 -0
- package/harness/checks/run.mjs +122 -0
- package/harness/checks/s1-screen-reader.d.mts +4 -0
- package/harness/checks/s1-screen-reader.mjs +44 -0
- package/harness/checks/t1-tokens-valid.d.mts +9 -0
- package/harness/checks/t1-tokens-valid.mjs +77 -0
- package/harness/checks/t2-aliases.d.mts +4 -0
- package/harness/checks/t2-aliases.mjs +39 -0
- package/harness/checks/t3-modes.d.mts +4 -0
- package/harness/checks/t3-modes.mjs +21 -0
- package/harness/checks/t4-usage.d.mts +4 -0
- package/harness/checks/t4-usage.mjs +51 -0
- package/harness/checks/t5-literals.d.mts +4 -0
- package/harness/checks/t5-literals.mjs +24 -0
- package/harness/checks/t6-contrast.d.mts +14 -0
- package/harness/checks/t6-contrast.mjs +110 -0
- package/harness/checks/t7-interface.d.mts +4 -0
- package/harness/checks/t7-interface.mjs +96 -0
- package/harness/checks/types.d.mts +61 -0
- package/harness/checks/types.mjs +6 -0
- package/harness/checks/w1-white-label.d.mts +4 -0
- package/harness/checks/w1-white-label.mjs +143 -0
- package/harness/checks/x1-decisions.d.mts +15 -0
- package/harness/checks/x1-decisions.mjs +63 -0
- package/harness/cli/commands/add.d.mts +134 -0
- package/harness/cli/commands/add.mjs +53 -0
- package/harness/cli/commands/api.d.mts +87 -0
- package/harness/cli/commands/api.mjs +110 -0
- package/harness/cli/commands/audit-css.d.mts +108 -0
- package/harness/cli/commands/audit-css.mjs +23 -0
- package/harness/cli/commands/audit-decisions.d.mts +49 -0
- package/harness/cli/commands/audit-decisions.mjs +71 -0
- package/harness/cli/commands/audit-page.d.mts +34 -0
- package/harness/cli/commands/audit-page.mjs +28 -0
- package/harness/cli/commands/brand.d.mts +124 -0
- package/harness/cli/commands/brand.mjs +65 -0
- package/harness/cli/commands/check.d.mts +81 -0
- package/harness/cli/commands/check.mjs +36 -0
- package/harness/cli/commands/docs.d.mts +20 -0
- package/harness/cli/commands/docs.mjs +24 -0
- package/harness/cli/commands/doctor.d.mts +73 -0
- package/harness/cli/commands/doctor.mjs +113 -0
- package/harness/cli/commands/explain.d.mts +21 -0
- package/harness/cli/commands/explain.mjs +16 -0
- package/harness/cli/commands/generate.d.mts +16 -0
- package/harness/cli/commands/generate.mjs +17 -0
- package/harness/cli/commands/help.d.mts +50 -0
- package/harness/cli/commands/help.mjs +54 -0
- package/harness/cli/commands/icons.d.mts +61 -0
- package/harness/cli/commands/icons.mjs +45 -0
- package/harness/cli/commands/init.d.mts +236 -0
- package/harness/cli/commands/init.mjs +184 -0
- package/harness/cli/commands/kits.d.mts +91 -0
- package/harness/cli/commands/kits.mjs +65 -0
- package/harness/cli/commands/list.d.mts +48 -0
- package/harness/cli/commands/list.mjs +38 -0
- package/harness/cli/commands/prefix.d.mts +32 -0
- package/harness/cli/commands/prefix.mjs +24 -0
- package/harness/cli/commands/presets.d.mts +49 -0
- package/harness/cli/commands/presets.mjs +30 -0
- package/harness/cli/commands/propagate.d.mts +25 -0
- package/harness/cli/commands/propagate.mjs +66 -0
- package/harness/cli/commands/remove.d.mts +66 -0
- package/harness/cli/commands/remove.mjs +32 -0
- package/harness/cli/commands/selftest.d.mts +20 -0
- package/harness/cli/commands/selftest.mjs +21 -0
- package/harness/cli/commands/status.d.mts +51 -0
- package/harness/cli/commands/status.mjs +70 -0
- package/harness/cli/commands/swap.d.mts +40 -0
- package/harness/cli/commands/swap.mjs +29 -0
- package/harness/cli/commands/sync.d.mts +280 -0
- package/harness/cli/commands/sync.mjs +194 -0
- package/harness/cli/commands/tokens.d.mts +270 -0
- package/harness/cli/commands/tokens.mjs +342 -0
- package/harness/cli/commands/upgrade.d.mts +99 -0
- package/harness/cli/commands/upgrade.mjs +78 -0
- package/harness/cli/docs.d.mts +1 -0
- package/harness/cli/docs.mjs +53 -0
- package/harness/cli/interactive.d.mts +22 -0
- package/harness/cli/interactive.mjs +125 -0
- package/harness/cli/known-commands.json +150 -0
- package/harness/cli/known.d.mts +9 -0
- package/harness/cli/known.mjs +31 -0
- package/harness/cli/planned-commands.json +20 -0
- package/harness/cli/registry.d.mts +5 -0
- package/harness/cli/registry.mjs +34 -0
- package/harness/cli/run.d.mts +22 -0
- package/harness/cli/run.mjs +108 -0
- package/harness/cli/types.d.mts +88 -0
- package/harness/cli/types.mjs +1 -0
- package/harness/cli.d.mts +2 -0
- package/harness/cli.mjs +22 -0
- package/harness/commands/add.d.mts +11 -0
- package/harness/commands/add.mjs +71 -0
- package/harness/commands/audit-css.d.mts +70 -0
- package/harness/commands/audit-css.mjs +171 -0
- package/harness/commands/bootstrap.d.mts +163 -0
- package/harness/commands/bootstrap.mjs +517 -0
- package/harness/commands/brand.d.mts +70 -0
- package/harness/commands/brand.mjs +220 -0
- package/harness/commands/catalog.d.mts +149 -0
- package/harness/commands/catalog.mjs +521 -0
- package/harness/commands/explain.d.mts +1 -0
- package/harness/commands/explain.mjs +76 -0
- package/harness/commands/init.d.mts +44 -0
- package/harness/commands/init.mjs +77 -0
- package/harness/commands/prefix.d.mts +19 -0
- package/harness/commands/prefix.mjs +139 -0
- package/harness/commands/start.d.mts +75 -0
- package/harness/commands/start.mjs +154 -0
- package/harness/commands/swap.d.mts +23 -0
- package/harness/commands/swap.mjs +30 -0
- package/harness/commands/tokens-import.d.mts +105 -0
- package/harness/commands/tokens-import.mjs +598 -0
- package/harness/commands/tokens.d.mts +175 -0
- package/harness/commands/tokens.mjs +989 -0
- package/harness/commands/upgrade.d.mts +45 -0
- package/harness/commands/upgrade.mjs +181 -0
- package/harness/generators/foundation.d.mts +52 -0
- package/harness/generators/foundation.mjs +275 -0
- package/harness/generators/links.d.mts +42 -0
- package/harness/generators/links.mjs +203 -0
- package/harness/generators/overrides.d.mts +10 -0
- package/harness/generators/overrides.mjs +40 -0
- package/harness/kits/index.json +158 -0
- package/harness/lib/agent-config.d.mts +23 -0
- package/harness/lib/agent-config.mjs +109 -0
- package/harness/lib/agent-diagnostics.d.mts +25 -0
- package/harness/lib/agent-diagnostics.mjs +139 -0
- package/harness/lib/api.d.mts +166 -0
- package/harness/lib/api.mjs +222 -0
- package/harness/lib/audits.d.mts +3 -0
- package/harness/lib/audits.mjs +14 -0
- package/harness/lib/claude-layer.d.mts +59 -0
- package/harness/lib/claude-layer.mjs +312 -0
- package/harness/lib/color.d.mts +17 -0
- package/harness/lib/color.mjs +89 -0
- package/harness/lib/css.d.mts +25 -0
- package/harness/lib/css.mjs +64 -0
- package/harness/lib/decisions.d.mts +14 -0
- package/harness/lib/decisions.mjs +65 -0
- package/harness/lib/design/compare-runtime.mjs +58 -0
- package/harness/lib/design/compare.d.mts +57 -0
- package/harness/lib/design/compare.mjs +153 -0
- package/harness/lib/design/components.d.mts +29 -0
- package/harness/lib/design/components.mjs +52 -0
- package/harness/lib/design/description.d.mts +25 -0
- package/harness/lib/design/description.mjs +57 -0
- package/harness/lib/design/doc-text.d.mts +137 -0
- package/harness/lib/design/doc-text.mjs +63 -0
- package/harness/lib/design/docs.d.mts +80 -0
- package/harness/lib/design/docs.mjs +343 -0
- package/harness/lib/design/library.d.mts +91 -0
- package/harness/lib/design/library.mjs +248 -0
- package/harness/lib/design/parity.d.mts +8 -0
- package/harness/lib/design/parity.mjs +42 -0
- package/harness/lib/design/patterns.d.mts +48 -0
- package/harness/lib/design/patterns.mjs +90 -0
- package/harness/lib/design/plan.d.mts +20 -0
- package/harness/lib/design/plan.mjs +120 -0
- package/harness/lib/design/realize.d.mts +51 -0
- package/harness/lib/design/realize.mjs +86 -0
- package/harness/lib/design/recipes-more.d.mts +2 -0
- package/harness/lib/design/recipes-more.mjs +461 -0
- package/harness/lib/design/recipes.d.mts +12 -0
- package/harness/lib/design/recipes.mjs +285 -0
- package/harness/lib/design/sync.d.mts +80 -0
- package/harness/lib/design/sync.mjs +163 -0
- package/harness/lib/design/tokens.d.mts +55 -0
- package/harness/lib/design/tokens.mjs +243 -0
- package/harness/lib/design/verify.d.mts +84 -0
- package/harness/lib/design/verify.mjs +158 -0
- package/harness/lib/design-docs.d.mts +73 -0
- package/harness/lib/design-docs.mjs +38 -0
- package/harness/lib/files.d.mts +21 -0
- package/harness/lib/files.mjs +99 -0
- package/harness/lib/icons.d.mts +24 -0
- package/harness/lib/icons.mjs +67 -0
- package/harness/lib/installed.d.mts +16 -0
- package/harness/lib/installed.mjs +121 -0
- package/harness/lib/interface.d.mts +62 -0
- package/harness/lib/interface.mjs +201 -0
- package/harness/lib/page-outline.d.mts +2 -0
- package/harness/lib/page-outline.mjs +19 -0
- package/harness/lib/propagation.d.mts +20 -0
- package/harness/lib/propagation.mjs +91 -0
- package/harness/lib/renames.d.mts +22 -0
- package/harness/lib/renames.mjs +78 -0
- package/harness/lib/schema.d.mts +16 -0
- package/harness/lib/schema.mjs +63 -0
- package/harness/lib/tokens.d.mts +56 -0
- package/harness/lib/tokens.mjs +136 -0
- package/harness/manifest.json +65 -0
- package/harness/standards/borderWidth.json +20 -0
- package/harness/standards/breakpoints.json +36 -0
- package/harness/standards/contrast.json +53 -0
- package/harness/standards/density.json +85 -0
- package/harness/standards/elevation.json +118 -0
- package/harness/standards/iconSizes.json +33 -0
- package/harness/standards/layoutGrid.json +31 -0
- package/harness/standards/letterSpacing.json +35 -0
- package/harness/standards/lineHeight.json +39 -0
- package/harness/standards/motion.json +281 -0
- package/harness/standards/neutrals.json +62 -0
- package/harness/standards/opacity.json +24 -0
- package/harness/standards/radius.json +50 -0
- package/harness/standards/rampMethods.json +126 -0
- package/harness/standards/resolve.d.mts +154 -0
- package/harness/standards/resolve.mjs +209 -0
- package/harness/standards/semanticRoles.json +76 -0
- package/harness/standards/spacing.json +141 -0
- package/harness/standards/typeScale.json +119 -0
- package/harness/standards/weights.json +39 -0
- package/harness/standards/zIndex.json +58 -0
- package/harness/starters/blank.json +9 -0
- package/harness/starters/foundations.json +9 -0
- package/harness/starters/from-codebase.json +12 -0
- package/harness/starters/import.json +11 -0
- package/harness/starters/library+kits.json +9 -0
- package/harness/starters/library.json +9 -0
- package/harness/starters/pick.json +9 -0
- package/harness/templates/CLAUDE.md +30 -0
- package/harness/templates/brand-links.json +234 -0
- package/harness/templates/move-to-claude-INSTALL.md +43 -0
- package/harness/templates/project/.agents/skills/sketchbook/SKILL.md +10 -0
- package/harness/templates/project/.aiassistant/rules/sketchbook.md +7 -0
- package/harness/templates/project/.claude/settings.json +104 -0
- package/harness/templates/project/.codex/hooks.json +19 -0
- package/harness/templates/project/.codex/sketchbook-guard.mjs +57 -0
- package/harness/templates/project/.gemini/settings.json +16 -0
- package/harness/templates/project/.gemini/sketchbook-guard.mjs +15 -0
- package/harness/templates/project/.github/copilot-instructions.md +3 -0
- package/harness/templates/project/.github/hooks/sketchbook-guard.mjs +68 -0
- package/harness/templates/project/.github/hooks/sketchbook.json +12 -0
- package/harness/templates/project/.storybook/main.ts +12 -0
- package/harness/templates/project/.storybook/preview.ts +38 -0
- package/harness/templates/project/.trae/rules/sketchbook.md +7 -0
- package/harness/templates/project/AGENT-WORKFLOWS.md +53 -0
- package/harness/templates/project/AGENTS.md +10 -0
- package/harness/templates/project/GEMINI.md +3 -0
- package/harness/templates/project/THIRD_PARTY_NOTICES.md +28 -0
- package/harness/templates/project/docs/getting-started.md +64 -0
- package/harness/templates/project/eslint-plugins.d.ts +7 -0
- package/harness/templates/project/eslint.config.js +44 -0
- package/harness/templates/project/gitignore +47 -0
- package/harness/templates/project/harness.config.json +50 -0
- package/harness/templates/project/package-lock.json +8400 -0
- package/harness/templates/project/playwright/fixtures.ts +2 -0
- package/harness/templates/project/playwright/helpers/a11y.ts +165 -0
- package/harness/templates/project/playwright/helpers/elements.ts +1 -0
- package/harness/templates/project/playwright/helpers/events.ts +51 -0
- package/harness/templates/project/playwright/helpers/forms.ts +53 -0
- package/harness/templates/project/playwright/helpers/foundations.ts +36 -0
- package/harness/templates/project/playwright/helpers/patterns.ts +89 -0
- package/harness/templates/project/playwright/helpers/storybook.ts +24 -0
- package/harness/templates/project/playwright/helpers/styles.ts +18 -0
- package/harness/templates/project/playwright/helpers/tokens.ts +70 -0
- package/harness/templates/project/playwright/playwright.config.ts +28 -0
- package/harness/templates/project/playwright/tests/foundations/color.behavior.spec.ts +59 -0
- package/harness/templates/project/playwright/tests/foundations/families.behavior.spec.ts +28 -0
- package/harness/templates/project/playwright/tests/foundations/motion.behavior.spec.ts +32 -0
- package/harness/templates/project/playwright/tests/foundations/pages.behavior.spec.ts +54 -0
- package/harness/templates/project/playwright/tests/foundations/samples.behavior.spec.ts +36 -0
- package/harness/templates/project/playwright/tests/screen-reader/stories.spec.ts +95 -0
- package/harness/templates/project/prettier.config.ts +16 -0
- package/harness/templates/project/spec/api.json +319 -0
- package/harness/templates/project/spec/decisions/DECISIONS.md +854 -0
- package/harness/templates/project/spec/registry.json +272 -0
- package/harness/templates/project/spec/schemas/api.schema.json +158 -0
- package/harness/templates/project/spec/schemas/brand-config.schema.json +753 -0
- package/harness/templates/project/spec/schemas/contract.schema.json +678 -0
- package/harness/templates/project/spec/schemas/figma-practices.schema.json +49 -0
- package/harness/templates/project/spec/schemas/harness-config.schema.json +89 -0
- package/harness/templates/project/spec/schemas/registry.schema.json +29 -0
- package/harness/templates/project/spec/tokens/contrast.json +90 -0
- package/harness/templates/project/spec/tokens/overrides.json +4 -0
- package/harness/templates/project/src/controllers/labelled-by.ts +56 -0
- package/harness/templates/project/src/controllers/name-warning.ts +28 -0
- package/harness/templates/project/src/controllers/relink.ts +46 -0
- package/harness/templates/project/src/controllers/roving-focus.ts +88 -0
- package/harness/templates/project/src/mixins/form-associated.ts +117 -0
- package/harness/templates/project/src/mixins/native-control.ts +111 -0
- package/harness/templates/project/src/stories/contract.ts +61 -0
- package/harness/templates/project/src/stories/foundations/BorderWidth.stories.ts +19 -0
- package/harness/templates/project/src/stories/foundations/Color.stories.ts +126 -0
- package/harness/templates/project/src/stories/foundations/Density.stories.ts +35 -0
- package/harness/templates/project/src/stories/foundations/Elevation.stories.ts +19 -0
- package/harness/templates/project/src/stories/foundations/IconSizes.stories.ts +28 -0
- package/harness/templates/project/src/stories/foundations/LayoutGrid.stories.ts +52 -0
- package/harness/templates/project/src/stories/foundations/Motion.stories.ts +105 -0
- package/harness/templates/project/src/stories/foundations/Opacity.stories.ts +19 -0
- package/harness/templates/project/src/stories/foundations/Radius.stories.ts +21 -0
- package/harness/templates/project/src/stories/foundations/Spacing.stories.ts +66 -0
- package/harness/templates/project/src/stories/foundations/Typography.stories.ts +94 -0
- package/harness/templates/project/src/stories/foundations/ZIndex.stories.ts +40 -0
- package/harness/templates/project/src/stories/foundations/families.ts +35 -0
- package/harness/templates/project/src/stories/foundations/page.ts +150 -0
- package/harness/templates/project/src/stories/foundations/tokens.ts +126 -0
- package/harness/templates/project/src/stories/glob.d.ts +6 -0
- package/harness/templates/project/src/stories/raw.d.ts +4 -0
- package/harness/templates/project/src/styles/_a11y.scss +33 -0
- package/harness/templates/project/src/utils/focus-wrap.ts +33 -0
- package/harness/templates/project/src/utils/safe-href.ts +16 -0
- package/harness/templates/project/tsconfig.json +24 -0
- package/harness/templates/project/tsconfig.stories.json +6 -0
- package/harness/templates/project/tsconfig.tools.json +12 -0
- package/harness/templates/project/tsup.config.ts +22 -0
- package/harness/templates/semantic/base.tokens.json +570 -0
- package/harness/templates/semantic/dark.tokens.json +98 -0
- package/harness/templates/semantic/light.tokens.json +99 -0
- package/harness/test/TEST.md +256 -0
- package/harness/test/agent-config.test.d.mts +1 -0
- package/harness/test/agent-config.test.mjs +80 -0
- package/harness/test/agent-diagnostics.test.d.mts +1 -0
- package/harness/test/agent-diagnostics.test.mjs +86 -0
- package/harness/test/agent-guidance.test.d.mts +1 -0
- package/harness/test/agent-guidance.test.mjs +25 -0
- package/harness/test/bootstrap.test.d.mts +1 -0
- package/harness/test/bootstrap.test.mjs +835 -0
- package/harness/test/build.test.d.mts +1 -0
- package/harness/test/build.test.mjs +217 -0
- package/harness/test/checks.test.d.mts +1 -0
- package/harness/test/checks.test.mjs +711 -0
- package/harness/test/claude-layer.test.d.mts +1 -0
- package/harness/test/claude-layer.test.mjs +125 -0
- package/harness/test/claude-live.test.d.mts +1 -0
- package/harness/test/claude-live.test.mjs +160 -0
- package/harness/test/cli.test.d.mts +1 -0
- package/harness/test/cli.test.mjs +236 -0
- package/harness/test/codex-guard.test.d.mts +1 -0
- package/harness/test/codex-guard.test.mjs +111 -0
- package/harness/test/codex-instructions.test.d.mts +1 -0
- package/harness/test/codex-instructions.test.mjs +43 -0
- package/harness/test/codex-live.test.d.mts +1 -0
- package/harness/test/codex-live.test.mjs +90 -0
- package/harness/test/copilot-guard.test.d.mts +1 -0
- package/harness/test/copilot-guard.test.mjs +117 -0
- package/harness/test/copilot-live.test.d.mts +1 -0
- package/harness/test/copilot-live.test.mjs +113 -0
- package/harness/test/design.test.d.mts +1 -0
- package/harness/test/design.test.mjs +1023 -0
- package/harness/test/docs-reference.test.d.mts +1 -0
- package/harness/test/docs-reference.test.mjs +83 -0
- package/harness/test/fixtures/import/shadcn-theme.css +51 -0
- package/harness/test/fixtures/import/tokens-studio.json +83 -0
- package/harness/test/fonts.test.d.mts +1 -0
- package/harness/test/fonts.test.mjs +48 -0
- package/harness/test/foundations.test.d.mts +1 -0
- package/harness/test/foundations.test.mjs +238 -0
- package/harness/test/gemini-guard.test.d.mts +1 -0
- package/harness/test/gemini-guard.test.mjs +124 -0
- package/harness/test/gemini-live.test.d.mts +1 -0
- package/harness/test/gemini-live.test.mjs +116 -0
- package/harness/test/golden/brand.default.json +18 -0
- package/harness/test/golden/tokens.default.css +407 -0
- package/harness/test/helpers.d.mts +28 -0
- package/harness/test/helpers.mjs +43 -0
- package/harness/test/hooks.test.d.mts +1 -0
- package/harness/test/hooks.test.mjs +192 -0
- package/harness/test/opencode-live.test.d.mts +1 -0
- package/harness/test/opencode-live.test.mjs +93 -0
- package/harness/test/package-lifecycle.test.d.mts +1 -0
- package/harness/test/package-lifecycle.test.mjs +73 -0
- package/harness/test/package.test.d.mts +1 -0
- package/harness/test/package.test.mjs +69 -0
- package/harness/test/portable-decisions.test.d.mts +1 -0
- package/harness/test/portable-decisions.test.mjs +99 -0
- package/harness/test/portable-outline.test.d.mts +1 -0
- package/harness/test/portable-outline.test.mjs +39 -0
- package/harness/test/prefix.test.d.mts +1 -0
- package/harness/test/prefix.test.mjs +66 -0
- package/harness/test/preset-docs.test.d.mts +8 -0
- package/harness/test/preset-docs.test.mjs +217 -0
- package/harness/test/propagate.test.d.mts +1 -0
- package/harness/test/propagate.test.mjs +108 -0
- package/harness/test/reference.d.mts +6 -0
- package/harness/test/reference.mjs +62 -0
- package/harness/test/safety.test.d.mts +1 -0
- package/harness/test/safety.test.mjs +479 -0
- package/harness/test/starters.test.d.mts +1 -0
- package/harness/test/starters.test.mjs +504 -0
- package/harness/test/sync-reference.d.mts +9 -0
- package/harness/test/sync-reference.mjs +50 -0
- package/harness/test/tokens.test.d.mts +1 -0
- package/harness/test/tokens.test.mjs +549 -0
- package/harness/test/wall.d.mts +1 -0
- package/harness/test/wall.mjs +57 -0
- package/package.json +150 -4
- package/scripts/audit.mjs +25 -0
- package/scripts/build-barrel.mjs +16 -0
- package/scripts/build-catalog.mjs +7 -0
- package/scripts/build-harness.mjs +107 -0
- package/scripts/build-schema-types.mjs +21 -0
- package/scripts/build-styles.mjs +61 -0
- package/scripts/discover-components.mjs +63 -0
- package/spec/schemas/api.schema.json +158 -0
- package/spec/schemas/brand-config.schema.json +753 -0
- package/spec/schemas/contract.schema.json +678 -0
- package/spec/schemas/figma-practices.schema.json +49 -0
- package/spec/schemas/harness-config.schema.json +89 -0
- package/spec/schemas/registry.schema.json +29 -0
|
@@ -0,0 +1,1023 @@
|
|
|
1
|
+
// Design file adapter (Figma), cases FG1–FG7 in TEST.md: the variables model, a push and read-back round trip against a
|
|
2
|
+
// minimal mock of figma.variables, value comparison, the verify CLI that D1 reads, the generic planner and the
|
|
3
|
+
// progress register. The real Figma file is not needed.
|
|
4
|
+
import { test } from 'node:test';
|
|
5
|
+
import assert from 'node:assert/strict';
|
|
6
|
+
import { cp, readdir, readFile, rm, writeFile } from 'node:fs/promises';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
import { spawnSync } from 'node:child_process';
|
|
9
|
+
import { fixture, must, reference, ROOT, sourceRepoOnly } from './helpers.mjs';
|
|
10
|
+
import { parseJson } from '../lib/files.mjs';
|
|
11
|
+
import { resolvedValue } from '../lib/design/tokens.mjs';
|
|
12
|
+
import { comboMap, tokenPayload } from '../lib/design/tokens.mjs';
|
|
13
|
+
import { compareReadback, comboList, sameValue } from '../lib/design/verify.mjs';
|
|
14
|
+
import { genericPlan } from '../lib/design/plan.mjs';
|
|
15
|
+
import { contractOf, libraryVariants } from '../lib/design/components.mjs';
|
|
16
|
+
import { COLLECTION_ORDER, compareDigests, coverage, figmaModel, resolveModel, snapshotOf, variableParts, variablesScript, verifyScript } from '../adapters/design/figma/variables.mjs';
|
|
17
|
+
import { loadAll, resolve } from '../lib/tokens.mjs';
|
|
18
|
+
import { diffInventories } from '../lib/design/compare.mjs';
|
|
19
|
+
import { patternIds } from '../lib/design/patterns.mjs';
|
|
20
|
+
import { runChecks } from '../checks/run.mjs';
|
|
21
|
+
const AsyncFunction = Object.getPrototypeOf(async () => { }).constructor;
|
|
22
|
+
const REF = await reference();
|
|
23
|
+
// Narrows a doc card to the kind the test reads; another kind throws by name, where the untyped test failed on the missing field.
|
|
24
|
+
function matrixCard(c) { if (c?.type !== 'matrix')
|
|
25
|
+
throw new Error(`expected a matrix card, got ${c?.type}`); return c; }
|
|
26
|
+
function tableCard(c) { if (c?.type !== 'table')
|
|
27
|
+
throw new Error(`expected a table card, got ${c?.type}`); return c; }
|
|
28
|
+
function codeCard(c) { if (c?.type !== 'code')
|
|
29
|
+
throw new Error(`expected a code card, got ${c?.type}`); return c; }
|
|
30
|
+
function screenCard(c) { if (c?.type !== 'screen')
|
|
31
|
+
throw new Error(`expected a screen card, got ${c?.type}`); return c; }
|
|
32
|
+
function componentNode(n) { if (n?.kind !== 'component')
|
|
33
|
+
throw new Error(`expected a component node, got ${n?.kind}`); return n; }
|
|
34
|
+
// Minimal stand-in for figma.variables: collections with modes, typed variables, values per mode, aliases.
|
|
35
|
+
function mockFigma() {
|
|
36
|
+
let n = 0;
|
|
37
|
+
const cols = [];
|
|
38
|
+
const vars = [];
|
|
39
|
+
const variables = {
|
|
40
|
+
getLocalVariableCollectionsAsync: () => Promise.resolve([...cols]),
|
|
41
|
+
getLocalVariablesAsync: () => Promise.resolve([...vars]),
|
|
42
|
+
createVariableCollection(name) {
|
|
43
|
+
const c = {
|
|
44
|
+
id: `c${++n}`, name, hiddenFromPublishing: false, modes: [{ modeId: `m${++n}`, name: 'Mode 1' }],
|
|
45
|
+
renameMode(id, to) { must(this.modes.find((m) => m.modeId === id), `mode ${id}`).name = to; },
|
|
46
|
+
addMode(to) { const modeId = `m${++n}`; this.modes.push({ modeId, name: to }); return modeId; },
|
|
47
|
+
};
|
|
48
|
+
cols.push(c);
|
|
49
|
+
return c;
|
|
50
|
+
},
|
|
51
|
+
createVariable(name, col, resolvedType) {
|
|
52
|
+
const v = {
|
|
53
|
+
id: `v${++n}`, name, variableCollectionId: col.id, resolvedType, valuesByMode: {}, scopes: [], codeSyntax: {},
|
|
54
|
+
setValueForMode(m, value) { this.valuesByMode[m] = value; },
|
|
55
|
+
setVariableCodeSyntax(platform, code) { this.codeSyntax[platform] = code; },
|
|
56
|
+
};
|
|
57
|
+
vars.push(v);
|
|
58
|
+
return v;
|
|
59
|
+
},
|
|
60
|
+
createVariableAlias: (v) => ({ type: 'VARIABLE_ALIAS', id: v.id }),
|
|
61
|
+
};
|
|
62
|
+
return { figma: { variables, fileKey: 'file-1' }, cols, vars };
|
|
63
|
+
}
|
|
64
|
+
function run(script, mock) { return new AsyncFunction('figma', script)(mock.figma); }
|
|
65
|
+
async function readAll(model, mock, detail) {
|
|
66
|
+
const r = await run(verifyScript(model, { detail }), mock);
|
|
67
|
+
assert.ok(Buffer.byteLength(JSON.stringify(r)) < 48000, 'verify fits the use_figma return limit (48,000 bytes)');
|
|
68
|
+
return r;
|
|
69
|
+
}
|
|
70
|
+
async function pushAll(model, mock) {
|
|
71
|
+
const reports = [];
|
|
72
|
+
for (const part of variableParts(model))
|
|
73
|
+
reports.push(await run(variablesScript(part, model.hash), mock));
|
|
74
|
+
return reports;
|
|
75
|
+
}
|
|
76
|
+
test('FG1 variables model: one collection per theme axis (default mode first) plus foundation, semantic, component; every token once', async () => {
|
|
77
|
+
const model = await figmaModel(REF);
|
|
78
|
+
const names = model.collections.map((c) => c.name);
|
|
79
|
+
for (const n of ['Primitives - Color', 'Primitives - Global', 'Semantic - Color', 'Semantic - Global', 'Semantic - Typography', 'Components'])
|
|
80
|
+
assert.ok(names.includes(n), n);
|
|
81
|
+
assert.deepEqual(names, COLLECTION_ORDER.filter((n) => names.includes(n)), 'collections in Layer - Domain order');
|
|
82
|
+
assert.deepEqual(must(model.collections.find((c) => c.name === 'Semantic - Color'), 'Semantic - Color').modes, ['Light', 'Dark']);
|
|
83
|
+
for (const c of model.collections)
|
|
84
|
+
assert.equal(c.hidden, c.name.startsWith('Primitives'), `${c.name}: only primitives are hidden`);
|
|
85
|
+
for (const c of model.collections) {
|
|
86
|
+
const n = c.variables.map((v) => v.name);
|
|
87
|
+
assert.equal(new Set(n).size, n.length, `${c.name}: names are unique`);
|
|
88
|
+
}
|
|
89
|
+
for (const v of must(model.collections.find((c) => c.name === 'Semantic - Color'), 'Semantic - Color').variables)
|
|
90
|
+
assert.match(v.name, /^Color\/(Background|Text|Stroke)\//, v.name);
|
|
91
|
+
const seen = new Map();
|
|
92
|
+
const keys = new Set(model.collections.flatMap((c) => c.variables.map((v) => `${c.name}::${v.name}`)));
|
|
93
|
+
for (const c of model.collections)
|
|
94
|
+
for (const v of c.variables) {
|
|
95
|
+
assert.ok(!seen.has(v.token), `${v.token} in ${seen.get(v.token)} and ${c.name}`);
|
|
96
|
+
seen.set(v.token, c.name);
|
|
97
|
+
assert.match(v.code, v.token.startsWith('text-style.') ? /^(var\(--[a-z0-9-]+\)|calc\(.+\)|-?[\d.]+px)$/ : /^var\(--[a-z0-9]+-[a-z0-9-]+\)$/, v.token);
|
|
98
|
+
assert.ok(!v.scopes.includes('ALL_SCOPES'), v.token);
|
|
99
|
+
assert.deepEqual(Object.keys(v.values).sort(), [...c.modes].sort(), `${v.token} has a value for every mode`);
|
|
100
|
+
for (const val of Object.values(v.values))
|
|
101
|
+
if (typeof val === 'object' && val !== null && 'alias' in val && val.alias)
|
|
102
|
+
assert.ok(keys.has(`${val.alias.collection}::${val.alias.name}`), `${v.token} -> ${val.alias.collection}/${val.alias.name}`);
|
|
103
|
+
}
|
|
104
|
+
assert.ok(model.styles.text.length > 0 && model.styles.effect.length > 0);
|
|
105
|
+
assert.deepEqual(model.skipped, [], 'no token is left out');
|
|
106
|
+
assert.deepEqual((await coverage(REF, model)).missing, [], 'every spec token reaches the file: a variable, a text style or an effect style');
|
|
107
|
+
for (const e of model.styles.effect)
|
|
108
|
+
for (const l of e.layers)
|
|
109
|
+
for (const n of Object.values(l.bind))
|
|
110
|
+
assert.ok(keys.has(n), `${e.name}: ${n}`);
|
|
111
|
+
for (const t of model.styles.text) {
|
|
112
|
+
assert.deepEqual(Object.keys(t.bind).sort(), ['fontFamily', 'fontSize', 'fontWeight', 'letterSpacing', 'lineHeight'], `${t.name} binds every field`);
|
|
113
|
+
for (const n of Object.values(t.bind))
|
|
114
|
+
assert.ok(keys.has(n), `${t.name}: ${n} is a variable`);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
test('FG2 round trip: push every part into a mock file, read it back for every combination, compare with the spec', sourceRepoOnly, async () => {
|
|
118
|
+
const model = await figmaModel(ROOT);
|
|
119
|
+
const mock = mockFigma();
|
|
120
|
+
const first = await pushAll(model, mock);
|
|
121
|
+
assert.deepEqual(first.flatMap((r) => r.errors), []);
|
|
122
|
+
assert.equal(first.reduce((n, r) => n + r.created, 0), model.collections.reduce((n, c) => n + c.variables.length, 0));
|
|
123
|
+
const again = await pushAll(model, mock);
|
|
124
|
+
assert.equal(again.reduce((n, r) => n + r.created, 0), 0, 'a second push creates nothing (upsert by name)');
|
|
125
|
+
const snap = snapshotOf(model);
|
|
126
|
+
assert.deepEqual(variableParts(model, snap), [], 'nothing changed since the snapshot: no parts');
|
|
127
|
+
const changed = structuredClone(snap);
|
|
128
|
+
must(changed.Components, 'Components snapshot').vars['Button/radius'] = 'old';
|
|
129
|
+
assert.deepEqual(variableParts(model, changed).flatMap((p) => p.variables.map((v) => v[0])), ['Button/radius'], 'only the changed variable is written');
|
|
130
|
+
assert.equal(must(mock.cols.find((c) => c.name === 'Semantic - Shape'), 'Semantic - Shape in the file').modes.length, must(model.collections.find((c) => c.name === 'Semantic - Shape'), 'Semantic - Shape').modes.length);
|
|
131
|
+
// The model equals the spec for every combination (same engine as the code build) ...
|
|
132
|
+
const byKey = new Map(model.collections.flatMap((c) => c.variables.map((v) => [`${c.name}::${v.name}`, v])));
|
|
133
|
+
const themes = Object.fromEntries(model.combos.map((c) => [c.key, Object.fromEntries([...resolveModel(model, c.modes)].map(([k, v]) => [must(byKey.get(k), k).token, must(byKey.get(k), k).percent ? Number(v) / 100 : v]))]));
|
|
134
|
+
const spec = await compareReadback(ROOT, { hash: model.hash, themes });
|
|
135
|
+
assert.deepEqual(spec.mismatches, []);
|
|
136
|
+
assert.ok(spec.compared > 10000, `compared ${spec.compared}`);
|
|
137
|
+
// ... and the file equals the model: one digest per combination.
|
|
138
|
+
assert.deepEqual(compareDigests(model, await readAll(model, mock)).mismatches, []);
|
|
139
|
+
const shape = must(mock.cols.find((c) => c.name === 'Semantic - Shape'), 'Semantic - Shape in the file');
|
|
140
|
+
const round = must(shape.modes.find((m) => m.name === 'Round'), 'Round mode').modeId;
|
|
141
|
+
must(mock.vars.find((v) => v.name === 'Radius/control' && v.variableCollectionId === shape.id), 'Radius/control').valuesByMode[round] = 3;
|
|
142
|
+
const drift = compareDigests(model, await readAll(model, mock));
|
|
143
|
+
assert.ok(drift.mismatches.length > 0 && drift.mismatches.every((m) => m.token === '(combination)' && m.mode.includes('Round')), 'only Round combinations differ');
|
|
144
|
+
const detail = compareDigests(model, await readAll(model, mock, 'Dark | Round | Compact'));
|
|
145
|
+
const hit = detail.mismatches.filter((m) => m.mode === 'Dark | Round | Compact').map((m) => m.token);
|
|
146
|
+
assert.ok(hit.includes('Semantic - Shape/Radius/control') && hit.includes('Components/Button/radius'), `the drift reaches the component alias: ${hit.join(', ')}`);
|
|
147
|
+
});
|
|
148
|
+
test('FG3 value comparison normalizes colors and numbers', () => {
|
|
149
|
+
assert.equal(sameValue('color', '#FFF', '#ffffff'), true);
|
|
150
|
+
assert.equal(sameValue('color', '#000000ff', '#000000'), true);
|
|
151
|
+
assert.equal(sameValue('color', 'rgb(255, 0, 0)', '#FF0000'), true);
|
|
152
|
+
assert.equal(sameValue('color', '#FFFFFF', '#FAFAFA'), false);
|
|
153
|
+
assert.equal(sameValue('spacing', 16, '16px'), true);
|
|
154
|
+
assert.equal(sameValue('number', '1.5', 1.5), true);
|
|
155
|
+
assert.equal(sameValue('sizing', '15', '16px'), false);
|
|
156
|
+
assert.equal(sameValue('fontFamilies', ['Inter', 'sans-serif'], "'Inter', sans-serif"), true);
|
|
157
|
+
assert.equal(sameValue('shadow', 'x', 'y'), null);
|
|
158
|
+
assert.equal(sameValue('color', null, '#fff'), false);
|
|
159
|
+
});
|
|
160
|
+
test('FG4 CLI: sync verify writes verify.js; --ingest writes verify.json that D1 reads', async () => {
|
|
161
|
+
const dir = await fixture();
|
|
162
|
+
const run = (env, args) => spawnSync('node', [join(ROOT, 'harness/cli.mjs'), ...args, '--json'], { cwd: dir, encoding: 'utf8', env });
|
|
163
|
+
const { SKETCHBOOK_FIGMA_FILE: _ignored, ...noKey } = process.env;
|
|
164
|
+
for (const args of [['verify'], ['tokens']]) {
|
|
165
|
+
const r = run(noKey, ['sync', ...args]);
|
|
166
|
+
assert.equal(r.status, 1, `sync ${args.join(' ')} with no file key`);
|
|
167
|
+
assert.match(r.stdout + r.stderr, /Sketchbook\.fig/, 'points to the example file');
|
|
168
|
+
}
|
|
169
|
+
const cli = (...args) => { const r = run({ ...noKey, SKETCHBOOK_FIGMA_FILE: 'file-1' }, args); return { code: r.status, json: parseJson(r.stdout) }; };
|
|
170
|
+
for (const args of [['verify'], ['--verify']]) {
|
|
171
|
+
const v = cli('sync', ...args);
|
|
172
|
+
assert.equal(v.code, 0, args.join(' '));
|
|
173
|
+
assert.deepEqual(v.json.changed, ['generated/design/figma/verify.js']);
|
|
174
|
+
}
|
|
175
|
+
assert.equal(cli('sync', 'tokens', '--verify').code, 1);
|
|
176
|
+
assert.equal(cli('sync', 'verify', '--ingest', 'nope.json').code, 1);
|
|
177
|
+
assert.equal(cli('sync', 'stamp', 'tokens').code, 0);
|
|
178
|
+
const model = await figmaModel(dir);
|
|
179
|
+
const mock = mockFigma();
|
|
180
|
+
await pushAll(model, mock);
|
|
181
|
+
const light = must(must(mock.cols.find((c) => c.name === 'Semantic - Color'), 'Semantic - Color in the file').modes.find((m) => m.name === 'Light'), 'Light mode').modeId;
|
|
182
|
+
must(mock.vars.find((v) => v.name === 'Color/Background/background'), 'Color/Background/background').valuesByMode[light] = { r: 0, g: 0, b: 0, a: 1 };
|
|
183
|
+
const mode0 = must(model.combos[0], 'first combination').key;
|
|
184
|
+
await writeFile(join(dir, 'readback.json'), JSON.stringify(await readAll(model, mock, mode0)));
|
|
185
|
+
const verifyFile = () => readFile(join(dir, 'generated/design/verify.json'), 'utf8').catch(() => null);
|
|
186
|
+
const before = await verifyFile();
|
|
187
|
+
const dry = cli('sync', 'verify', '--ingest', 'readback.json', '--dry-run');
|
|
188
|
+
assert.ok(dry.json.data.mismatches.length > 0);
|
|
189
|
+
assert.equal(await verifyFile(), before, 'dry run writes nothing');
|
|
190
|
+
assert.equal(cli('sync', 'verify', '--ingest', 'readback.json').code, 0);
|
|
191
|
+
const written = parseJson(await readFile(join(dir, 'generated/design/verify.json'), 'utf8'));
|
|
192
|
+
assert.ok(written.mismatches.some((m) => m.token === 'Semantic - Color/Color/Background/background' && m.mode === mode0 && m.design === '#000000' && m.spec === '#FFFFFF'), JSON.stringify(written.mismatches.slice(0, 3)));
|
|
193
|
+
const d1 = must((await runChecks(dir, { only: ['D1'] })).results.find((x) => x.id === 'D1'), 'D1 result');
|
|
194
|
+
assert.ok(d1.errors.some((e) => e.token === 'Semantic - Color/Color/Background/background'), 'D1 fails on the mismatch');
|
|
195
|
+
must(mock.vars.find((v) => v.name === 'Color/Background/background'), 'Color/Background/background').valuesByMode[light] = { type: 'VARIABLE_ALIAS', id: must(mock.vars.find((v) => v.name === 'Color/white'), 'Color/white').id };
|
|
196
|
+
await writeFile(join(dir, 'readback.json'), JSON.stringify(await readAll(model, mock)));
|
|
197
|
+
assert.equal(cli('sync', 'verify', '--ingest', 'readback.json').json.data.mismatches.length, 0);
|
|
198
|
+
assert.equal(must((await runChecks(dir, { only: ['D1'] })).results.find((x) => x.id === 'D1'), 'D1 result').errors.length, 0);
|
|
199
|
+
await rm(dir, { recursive: true });
|
|
200
|
+
});
|
|
201
|
+
test('FG5 generic planner: every contract gets a plan, and each binding is one of its own tokens', sourceRepoOnly, async () => {
|
|
202
|
+
const names = (await readdir(join(ROOT, 'spec/components'), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
203
|
+
assert.ok(names.length >= 35);
|
|
204
|
+
const walk = (n) => [n, ...n.children.flatMap(walk)];
|
|
205
|
+
for (const name of names) {
|
|
206
|
+
const c = await contractOf(ROOT, name);
|
|
207
|
+
const plan = genericPlan(c, name);
|
|
208
|
+
assert.equal(plan.length, libraryVariants(c, name).length || 1, `${name}: one plan per variant`);
|
|
209
|
+
for (const { tree } of plan)
|
|
210
|
+
for (const n of walk(tree))
|
|
211
|
+
for (const b of n.bindings)
|
|
212
|
+
assert.ok(b.token in (c.tokens ?? {}), `${name}: ${b.token} is a token of its contract`);
|
|
213
|
+
}
|
|
214
|
+
const checkbox = must(genericPlan(await contractOf(ROOT, 'checkbox'), 'checkbox')[0], 'checkbox plan').tree;
|
|
215
|
+
const label = must([checkbox, ...checkbox.children].find((n) => n.part === 'label'), 'checkbox label');
|
|
216
|
+
assert.equal(label.kind, 'text');
|
|
217
|
+
assert.ok(label.bindings.some((b) => b.props.includes('fills')), 'the label text takes its foreground token');
|
|
218
|
+
});
|
|
219
|
+
test('FG9 library model: every component yields its grid, each binding is a token of its contract, recipes keep their counts', async () => {
|
|
220
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
221
|
+
const { SCALE_BINDINGS } = await import('../lib/design/recipes.mjs');
|
|
222
|
+
const names = (await readdir(join(REF, 'spec/components'), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
223
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
224
|
+
const counts = {};
|
|
225
|
+
for (const name of names) {
|
|
226
|
+
const c = await contractOf(REF, name);
|
|
227
|
+
const L = await libraryModel(REF, name);
|
|
228
|
+
counts[name] = L.variants.length;
|
|
229
|
+
assert.ok(L.variants.length >= 1, `${name}: at least one variant`);
|
|
230
|
+
for (const { tree } of L.variants)
|
|
231
|
+
for (const n of walk(tree))
|
|
232
|
+
for (const [bound] of n.b) {
|
|
233
|
+
const token = must(bound, `${name} ${n.p} binding`);
|
|
234
|
+
assert.ok(token in (c.tokens ?? {}) || token.startsWith('text-style.') || (SCALE_BINDINGS[name] ?? []).includes(token), `${name}: ${token} is a token of its contract`);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
assert.deepEqual([counts.button, counts.input, counts.checkbox, counts.switch, counts.toggle, counts['toggle-group'], counts['radio-group'], counts.spinner, counts.textarea, counts['native-select'], counts.field, counts['input-group'], counts.label, counts.slider], [220, 6, 18, 24, 48, 48, 6, 1, 6, 12, 4, 4, 2, 12]);
|
|
238
|
+
const axes = (await libraryModel(REF, 'button')).axes.map((a) => a.name);
|
|
239
|
+
assert.deepEqual(axes, ['Variant', 'Size', 'State', 'Disabled'], 'axis names come from the registry');
|
|
240
|
+
});
|
|
241
|
+
test('FG10 descriptions: every component gets a sectioned, bounded, deterministic description built from its source files, and its Behavior text is part of the stamp hash', sourceRepoOnly, async () => {
|
|
242
|
+
const { describeComponent } = await import('../lib/design/description.mjs');
|
|
243
|
+
const { contractHash, mdOf } = await import('../lib/design/components.mjs');
|
|
244
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
245
|
+
const names = (await readdir(join(ROOT, 'spec/components'), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
246
|
+
for (const name of names) {
|
|
247
|
+
const contract = await contractOf(ROOT, name);
|
|
248
|
+
const md = await mdOf(ROOT, name);
|
|
249
|
+
const L = await libraryModel(ROOT, name);
|
|
250
|
+
const make = () => describeComponent({ contract, md, name, title: L.title, axes: L.axes });
|
|
251
|
+
const text = make();
|
|
252
|
+
assert.equal(text, make(), `${name}: deterministic`);
|
|
253
|
+
assert.ok(text.startsWith(`**${L.title}**`) && text.includes(contract.summary.replace(/<([^>]+)>/g, '$1').replace(/\s+/g, ' ').trim()), `${name}: title and summary`);
|
|
254
|
+
assert.ok(text.includes('**In the design file.**') && text.includes(`spec/components/${name}/contract.json`), `${name}: design and source sections`);
|
|
255
|
+
assert.ok(text.length < 3200, `${name}: bounded (${text.length})`);
|
|
256
|
+
assert.doesNotMatch(text, /[<>]/, `${name}: no angle brackets`);
|
|
257
|
+
assert.doesNotMatch(text.replace(/\*\*/g, ''), /\*/, `${name}: no lone asterisk (Figma escapes it, so the read-back would differ)`);
|
|
258
|
+
}
|
|
259
|
+
const contract = await contractOf(ROOT, 'slider');
|
|
260
|
+
const md = await mdOf(ROOT, 'slider');
|
|
261
|
+
assert.notEqual(contractHash(contract, md), contractHash(contract, md.replace(/^### Behavior\s*\n/m, '### Behavior\nChanged. ')), 'a Behavior edit makes the stamp stale');
|
|
262
|
+
assert.equal(contractHash(contract, md), contractHash(contract, `${md}\n## Other\nunrelated`), 'other prose does not');
|
|
263
|
+
});
|
|
264
|
+
test('FG11 library verify: every variant has well-formed expected node lines, a matching page passes, and a drifted binding is named by node and field', sourceRepoOnly, async () => {
|
|
265
|
+
const { libraryScripts, LINE_FIELDS } = await import('../adapters/design/figma/library.mjs');
|
|
266
|
+
const names = (await readdir(join(ROOT, 'spec/components'), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
267
|
+
for (const name of names) {
|
|
268
|
+
const r = await libraryScripts(ROOT, name);
|
|
269
|
+
for (const [variant, lines] of r.lineSets) {
|
|
270
|
+
assert.ok(lines[0]?.startsWith('@|COMPONENT|'), `${name}/${variant}: starts at the component`);
|
|
271
|
+
for (const l of lines)
|
|
272
|
+
assert.equal(l.split('|').length, LINE_FIELDS.length, `${name}/${variant}: ${l}`);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
const scriptOf = async (opts) => must((await libraryScripts(ROOT, 'label', opts)).scripts.find((s) => s.file === 'label.verify.js'), 'label.verify.js').script;
|
|
276
|
+
const node = (type, name, extra = {}) => ({ type, name, visible: true, opacity: 1, fills: [], strokes: [], boundVariables: {}, effectStyleId: '', componentPropertyReferences: {}, ...extra });
|
|
277
|
+
const comp = (name, fillVar, dimVar) => node('COMPONENT', name, {
|
|
278
|
+
boundVariables: dimVar ? { opacity: { id: dimVar } } : {},
|
|
279
|
+
children: [node('TEXT', 'label-text', { fills: [{ boundVariables: { color: { id: fillVar } } }], textStyleId: 's1' })],
|
|
280
|
+
});
|
|
281
|
+
const page = (fillVar) => {
|
|
282
|
+
const set = node('COMPONENT_SET', 'Label', { descriptionMarkdown: null, children: [comp('Disabled=False', fillVar, null), comp('Disabled=True', fillVar, 'v3')], componentPropertyDefinitions: { Disabled: { type: 'VARIANT', variantOptions: ['False', 'True'] } } });
|
|
283
|
+
return { name: 'Library', children: [set], set };
|
|
284
|
+
};
|
|
285
|
+
const run = async (lib, script) => {
|
|
286
|
+
const figma = {
|
|
287
|
+
root: { children: [lib] },
|
|
288
|
+
setCurrentPageAsync: async () => { },
|
|
289
|
+
variables: { getLocalVariableCollectionsAsync: () => Promise.resolve([{ id: 'c1', name: 'Components' }]), getLocalVariablesAsync: () => Promise.resolve([{ id: 'v1', name: 'Label/fg', variableCollectionId: 'c1' }, { id: 'v2', name: 'Label/other', variableCollectionId: 'c1' }, { id: 'v3', name: 'Label/disabled-opacity', variableCollectionId: 'c1' }]) },
|
|
290
|
+
getLocalTextStylesAsync: () => Promise.resolve([{ id: 's1', name: 'Text/Control' }]),
|
|
291
|
+
getLocalEffectStylesAsync: () => Promise.resolve([]),
|
|
292
|
+
};
|
|
293
|
+
return new AsyncFunction('figma', script)(figma);
|
|
294
|
+
};
|
|
295
|
+
const good = page('v1');
|
|
296
|
+
const description = must(/"description":"((?:[^"\\]|\\.)*)"/.exec(await scriptOf()), 'description in label.verify.js');
|
|
297
|
+
good.set.descriptionMarkdown = parseJson(`"${description[1]}"`);
|
|
298
|
+
const ok = await run(good, await scriptOf());
|
|
299
|
+
assert.equal(ok.ok, true, JSON.stringify(ok.problems));
|
|
300
|
+
const drifted = page('v2');
|
|
301
|
+
drifted.set.descriptionMarkdown = good.set.descriptionMarkdown;
|
|
302
|
+
const bad = await run(drifted, await scriptOf({ detail: 'Disabled=False' }));
|
|
303
|
+
assert.equal(bad.ok, false);
|
|
304
|
+
assert.match(bad.problems.join(' '), /2 of 2 variant\(s\) differ from the contract tokens/);
|
|
305
|
+
assert.deepEqual(bad.detail, ['label-text fill: expected Components::Label/fg, actual Components::Label/other']);
|
|
306
|
+
const { verifyAllScript } = await import('../adapters/design/figma/library.mjs');
|
|
307
|
+
const all = await verifyAllScript(ROOT, ['label']);
|
|
308
|
+
assert.deepEqual(await run(good, all), [{ title: 'Label', ok: true, checked: 2, problems: [] }]);
|
|
309
|
+
const drift = await run(drifted, all);
|
|
310
|
+
assert.equal(must(drift[0], 'Label read-back').ok, false);
|
|
311
|
+
assert.match(must(drift[0], 'Label read-back').problems.join(' '), /differ from the contract tokens/);
|
|
312
|
+
});
|
|
313
|
+
test('FG12 Figma/code parity: every token the library model binds is a CSS variable the component styles use', sourceRepoOnly, async () => {
|
|
314
|
+
const { parityOf } = await import('../lib/design/parity.mjs');
|
|
315
|
+
const names = (await readdir(join(ROOT, 'spec/components'), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
316
|
+
for (const name of names) {
|
|
317
|
+
const p = await parityOf(ROOT, name);
|
|
318
|
+
if (!p)
|
|
319
|
+
continue;
|
|
320
|
+
assert.deepEqual(p.notInCss, [], `${name}: drawn in the design file but not styled by the component`);
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
test('FG13 repeating parts: the Slider draws a hidden second thumb and track that the Range property shows, and no other component gets one', sourceRepoOnly, async () => {
|
|
324
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
325
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
326
|
+
const slider = await libraryModel(ROOT, 'slider');
|
|
327
|
+
assert.equal(slider.variants.length, 12, 'Range is a property, not an axis');
|
|
328
|
+
for (const { tree } of slider.variants) {
|
|
329
|
+
const extra = walk(tree).filter((n) => n.sh === 'Range');
|
|
330
|
+
assert.deepEqual(extra.map((n) => [n.p, n.v]), [['track-start', 0], ['thumb-start', 0]]);
|
|
331
|
+
}
|
|
332
|
+
const switchModel = await libraryModel(ROOT, 'switch');
|
|
333
|
+
assert.equal(switchModel.variants.flatMap((v) => walk(v.tree)).filter((n) => n.sh === 'Range').length, 0);
|
|
334
|
+
});
|
|
335
|
+
test('FG14 generated scripts pass their own checksum guards (finish, describe, verify) for every component', sourceRepoOnly, async () => {
|
|
336
|
+
const { libraryScripts, describeScripts } = await import('../adapters/design/figma/library.mjs');
|
|
337
|
+
const names = (await readdir(join(ROOT, 'spec/components'), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
338
|
+
const run = async (script) => {
|
|
339
|
+
const page = { name: 'Library', children: [] };
|
|
340
|
+
const figma = { root: { children: [page] }, setCurrentPageAsync: async () => { }, variables: { getLocalVariableCollectionsAsync: () => Promise.resolve([]), getLocalVariablesAsync: () => Promise.resolve([]) }, getLocalTextStylesAsync: () => Promise.resolve([]), getLocalEffectStylesAsync: () => Promise.resolve([]) };
|
|
341
|
+
return new AsyncFunction('figma', script)(figma);
|
|
342
|
+
};
|
|
343
|
+
const guard = (e) => /checksum mismatch/.test(String(typeof e === 'object' && e !== null && 'message' in e ? e.message : undefined));
|
|
344
|
+
for (const name of names) {
|
|
345
|
+
const r = await libraryScripts(ROOT, name);
|
|
346
|
+
for (const s of r.scripts.filter((x) => /\.(finish|verify)\.js$/.test(x.file))) {
|
|
347
|
+
let failed = null;
|
|
348
|
+
try {
|
|
349
|
+
await run(s.script);
|
|
350
|
+
}
|
|
351
|
+
catch (e) {
|
|
352
|
+
failed = e;
|
|
353
|
+
}
|
|
354
|
+
assert.ok(!guard(failed), `${name}: ${s.file} fails its own checksum guard`);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
for (const s of await describeScripts(ROOT, names)) {
|
|
358
|
+
let failed = null;
|
|
359
|
+
try {
|
|
360
|
+
await run(s.script);
|
|
361
|
+
}
|
|
362
|
+
catch (e) {
|
|
363
|
+
failed = e;
|
|
364
|
+
}
|
|
365
|
+
assert.ok(!guard(failed), `${s.file} fails its own checksum guard`);
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
test('FG15 Checkbox and Switch follow the anatomy and the styles: control wraps the input, and disabled dims the box, thumb and label but not the description or error', sourceRepoOnly, async () => {
|
|
369
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
370
|
+
const { parityOf } = await import('../lib/design/parity.mjs');
|
|
371
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
372
|
+
const dimmed = (n) => n.b.some(([, f]) => f === 'opacity');
|
|
373
|
+
for (const name of ['checkbox', 'switch']) {
|
|
374
|
+
const L = await libraryModel(ROOT, name);
|
|
375
|
+
for (const { props, tree } of L.variants) {
|
|
376
|
+
const kids = must(tree.kids, `${name} layers`);
|
|
377
|
+
const control = must(kids[0], `${name} control`), content = must(kids[1], `${name} content`);
|
|
378
|
+
assert.equal(control.p, 'control', `${name}: control first`);
|
|
379
|
+
assert.deepEqual(must(control.kids, `${name} control layers`).map((k) => k.p), ['input'], `${name}: control holds the input`);
|
|
380
|
+
const off = walk(tree).filter(dimmed).map((n) => n.p).sort();
|
|
381
|
+
assert.deepEqual(off, props.Disabled === 'True' ? ['input', 'label'] : [], `${name} ${JSON.stringify(props)}: what disabled dims`);
|
|
382
|
+
assert.ok(!dimmed(tree) && !must(content.kids, `${name} content layers`).filter((k) => k.p !== 'label').some(dimmed), `${name}: field, description and error stay`);
|
|
383
|
+
}
|
|
384
|
+
const p = must(await parityOf(ROOT, name), `${name} parity`);
|
|
385
|
+
assert.deepEqual([p.layersNotInAnatomy, p.anatomyNotDrawn], [[], []], `${name}: every layer is an anatomy part or registered in layers`);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
test('FG16 RadioGroup and ToggleGroup follow the styles: a focus state on the selected radio, items dimmed one by one, and a joined toggle bar with no group gap and square inner corners', sourceRepoOnly, async () => {
|
|
389
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
390
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
391
|
+
const radio = await libraryModel(ROOT, 'radio-group');
|
|
392
|
+
assert.deepEqual(radio.axes.map((a) => a.name), ['Orientation', 'State', 'Disabled']);
|
|
393
|
+
const focus = must(radio.variants.find((v) => v.props.State === 'Focus'), 'radio Focus variant');
|
|
394
|
+
const rings = walk(focus.tree).filter((n) => n.ring);
|
|
395
|
+
assert.deepEqual(rings.map((n) => n.p), ['focus-ring'], 'one focus ring layer');
|
|
396
|
+
assert.ok(walk(must(must(focus.tree.kids, 'radio items')[0], 'first radio item')).some((n) => n.p === 'control' && must(n.kids, 'control layers').some((k) => k.p === 'focus-ring')), 'on the first item control');
|
|
397
|
+
const off = must(radio.variants.find((v) => v.props.Disabled === 'True'), 'radio disabled variant');
|
|
398
|
+
assert.deepEqual(walk(off.tree).filter((n) => n.b.some(([, f]) => f === 'opacity')).map((n) => n.p), ['item', 'item', 'item'], 'each item is dimmed, not the group');
|
|
399
|
+
const bar = await libraryModel(ROOT, 'toggle-group');
|
|
400
|
+
for (const { props, tree } of bar.variants) {
|
|
401
|
+
if (props.Spacing === '2') {
|
|
402
|
+
assert.deepEqual(tree.b.filter(([, f]) => f === 'gap'), [['space.2', 'gap']], `${JSON.stringify(props)}: the gap is the scale's step 2 (SB-0121)`);
|
|
403
|
+
assert.ok(must(tree.kids, 'toggle items').every((k) => !k.sq?.length), `${JSON.stringify(props)}: separate items keep every corner and border`);
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
assert.ok(!tree.b.some(([, f]) => f === 'gap'), `${JSON.stringify(props)}: no group gap (spacing 0 joins the items)`);
|
|
407
|
+
const row = props.Orientation === 'Horizontal';
|
|
408
|
+
const [first, middle, last] = must(tree.kids, 'toggle items').map((k) => k.sq);
|
|
409
|
+
const radii = (list) => must(list, 'item corners').filter((f) => /Radius$/.test(f));
|
|
410
|
+
const edge = row ? 'strokeLeftWeight' : 'strokeTopWeight';
|
|
411
|
+
assert.deepEqual(first, row ? ['topRightRadius', 'bottomRightRadius'] : ['bottomLeftRadius', 'bottomRightRadius']);
|
|
412
|
+
assert.equal(radii(middle).length, 4);
|
|
413
|
+
assert.deepEqual(radii(last), row ? ['topLeftRadius', 'bottomLeftRadius'] : ['topLeftRadius', 'topRightRadius']);
|
|
414
|
+
const bordered = props.Variant === 'Tertiary';
|
|
415
|
+
assert.equal(must(middle, 'middle corners').includes(edge), bordered, `${JSON.stringify(props)}: a bordered item drops the edge it shares with the previous one`);
|
|
416
|
+
assert.equal(must(last, 'last corners').includes(edge), bordered);
|
|
417
|
+
assert.ok(!must(first, 'first corners').includes(edge), 'the first item keeps all its borders');
|
|
418
|
+
}
|
|
419
|
+
const group = await libraryModel(ROOT, 'button-group');
|
|
420
|
+
for (const { props, tree } of group.variants) {
|
|
421
|
+
const edge = props.Orientation === 'Horizontal' ? 'strokeLeftWeight' : 'strokeTopWeight';
|
|
422
|
+
assert.deepEqual(must(tree.kids, 'group buttons').map((k) => must(k.sq, `${k.p} corners`).includes(edge)), [false, true, true], `${JSON.stringify(props)}: joined buttons share one border line`);
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
test('FG40 a transparent border (strokeTr) is a hidden paint, not opacity 0: a stroke bound to a color variable resets its opacity to 1', sourceRepoOnly, async () => {
|
|
426
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
427
|
+
const build = must((await libraryScripts(ROOT, 'item')).scripts.find((s) => /\.build-\d+\.js$/.test(s.file)), 'item build script').script;
|
|
428
|
+
const line = must(build.split('\n').find((l) => l.includes("field === 'strokeTr'")), 'the strokeTr branch');
|
|
429
|
+
assert.ok(line.includes('visible: false') && !line.includes('opacity: 0'), line.trim());
|
|
430
|
+
});
|
|
431
|
+
test('FG39 Typography follows its display: block kinds are a column that fills and wraps its text, inline code and small hug', sourceRepoOnly, async () => {
|
|
432
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
433
|
+
const inline = new Set(['Inline code', 'Small']);
|
|
434
|
+
for (const { props, tree } of (await libraryModel(ROOT, 'typography')).variants) {
|
|
435
|
+
const kind = String(props.Kind);
|
|
436
|
+
if (inline.has(kind))
|
|
437
|
+
assert.ok(tree.d === 'r' && tree.hug, `${kind}: inline, hugs its text`);
|
|
438
|
+
else
|
|
439
|
+
assert.ok(tree.d === 'c' && !tree.hug, `${kind}: display block, so the text fills the width and wraps`);
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
test('FG17 disabled dims what the styles dim: the control of a field (Input, Textarea, NativeSelect, Slider), the label of a Label', sourceRepoOnly, async () => {
|
|
443
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
444
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
445
|
+
const dimmed = (n) => n.b.some(([, f]) => f === 'opacity');
|
|
446
|
+
const expected = { input: ['input'], textarea: ['textarea'], 'native-select': ['select'], slider: ['control'], label: ['label'] };
|
|
447
|
+
for (const [name, layers] of Object.entries(expected)) {
|
|
448
|
+
const L = await libraryModel(ROOT, name);
|
|
449
|
+
for (const { props, tree } of L.variants)
|
|
450
|
+
assert.deepEqual(walk(tree).filter(dimmed).map((n) => n.p), props.Disabled === 'True' ? layers : [], `${name} ${JSON.stringify(props)}`);
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
test('FG18 focus ring: one ring layer per focused variant, built from the ring tokens, replacing the shadow; a field takes the ring color as its border, an invalid one mixes the error color to 20%', sourceRepoOnly, async () => {
|
|
454
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
455
|
+
const { INVALID_RING_ALPHA } = await import('../lib/design/recipes.mjs');
|
|
456
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
457
|
+
const borderRing = new Set(['input', 'textarea', 'native-select', 'input-group', 'checkbox', 'switch']);
|
|
458
|
+
const names = ['button', 'toggle', 'radio-group', 'slider', ...borderRing];
|
|
459
|
+
for (const name of names) {
|
|
460
|
+
const L = await libraryModel(ROOT, name);
|
|
461
|
+
for (const { props, tree } of L.variants) {
|
|
462
|
+
const nodes = walk(tree);
|
|
463
|
+
const rings = nodes.filter((n) => n.p === 'focus-ring');
|
|
464
|
+
const focused = props.State === 'Focus';
|
|
465
|
+
assert.equal(rings.length, focused ? 1 : 0, `${name} ${JSON.stringify(props)}: ring layers`);
|
|
466
|
+
if (!focused)
|
|
467
|
+
continue;
|
|
468
|
+
const ring = must(rings[0], `${name} ring`);
|
|
469
|
+
const invalid = props.Validation === 'Error' && borderRing.has(name);
|
|
470
|
+
const tokens = ring.b.map(([t]) => must(t, `${name} ring token`).split('.').slice(1).join('.'));
|
|
471
|
+
assert.deepEqual(tokens.sort(), [invalid ? 'border-invalid' : 'focus-ring.color', 'focus-ring.width', 'radius', 'track.radius'].filter((t) => tokens.includes(t)).sort(), `${name}: ring tokens`);
|
|
472
|
+
assert.ok(ring.abs && ring.ring, `${name}: absolute, outside stroke`);
|
|
473
|
+
assert.equal(ring.op, invalid ? INVALID_RING_ALPHA : undefined, `${name}: 20% only when invalid`);
|
|
474
|
+
const control = must(nodes.find((n) => n.kids?.includes(ring)), `${name} ring parent`);
|
|
475
|
+
assert.ok(!control.b.some(([, f]) => f === 'effect'), `${name}: the ring replaces the shadow`);
|
|
476
|
+
const stroke = control.b.find(([, f]) => f === 'stroke')?.[0];
|
|
477
|
+
if (borderRing.has(name) && !invalid)
|
|
478
|
+
assert.ok(/focus-ring\.color$/.test(String(stroke)), `${name}: border takes the ring color`);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
test('FG19 element sets: a component is followed by the elements it draws, each bound only to its component\'s tokens; the Field family leaves no styled token undrawn', sourceRepoOnly, async () => {
|
|
483
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
484
|
+
const { parityOf } = await import('../lib/design/parity.mjs');
|
|
485
|
+
const { loadApi, withSets } = await import('../lib/api.mjs');
|
|
486
|
+
const api = must(loadApi(ROOT), 'spec/api.json');
|
|
487
|
+
assert.deepEqual(withSets(api, ['field', 'button']), ['field', 'field/field-set', 'field/field-group', 'field/field-separator', 'field/field-title', 'button']);
|
|
488
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
489
|
+
for (const key of Object.keys(must(api.sets, 'api sets'))) {
|
|
490
|
+
const name = key.replace('.', '/');
|
|
491
|
+
const [folder] = name.split('/');
|
|
492
|
+
const tokens = (await contractOf(ROOT, must(folder, key))).tokens;
|
|
493
|
+
const L = await libraryModel(ROOT, name);
|
|
494
|
+
assert.ok(L.variants.length >= 1, `${name}: drawn`);
|
|
495
|
+
for (const { tree } of L.variants)
|
|
496
|
+
for (const n of walk(tree))
|
|
497
|
+
for (const [bound] of n.b) {
|
|
498
|
+
const t = must(bound, `${name} ${n.p} binding`);
|
|
499
|
+
assert.ok(t in tokens || t.startsWith('text-style.'), `${name}: ${t} is a token of ${folder}`);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
assert.equal((await libraryModel(ROOT, 'field/field-set')).title, 'FieldSet', 'an element set is named after its element');
|
|
503
|
+
assert.deepEqual((await libraryModel(ROOT, 'tabs/tabs-list')).axes, [{ name: 'Variant', values: ['Primary', 'Line'] }, { name: 'Active', values: ['1', '2', '3'] }]);
|
|
504
|
+
assert.deepEqual(must(await parityOf(ROOT, 'field'), 'field parity').notDrawn, [], 'set, group, legend, separator and title are drawn');
|
|
505
|
+
await assert.rejects(contractOf(ROOT, 'field/field-nowhere'), /has no element "field-nowhere"/);
|
|
506
|
+
});
|
|
507
|
+
test('FG22 generated scripts fit one use_figma call: every foundation part stays under 50,000 characters, and the Color ramps (brand included) are drawn in a part of their own', sourceRepoOnly, async () => {
|
|
508
|
+
const { foundationScripts } = await import('../adapters/design/figma/docs.mjs');
|
|
509
|
+
const { FOUNDATION_PAGES } = await import('../lib/design/verify.mjs');
|
|
510
|
+
const parts = await foundationScripts(ROOT, FOUNDATION_PAGES);
|
|
511
|
+
for (const part of parts)
|
|
512
|
+
assert.ok(part.script.length < 50000, `part of ${part.names.join(', ')} is ${part.script.length} characters`);
|
|
513
|
+
assert.ok(parts.some((x) => x.names.includes('Color: ramps')), 'the Color ramps are their own part');
|
|
514
|
+
});
|
|
515
|
+
test('FG21 zero steps: the semantic layer has a zero per kind; every generated script (library, docs, icons, layout) binds the zero paddings, gaps, corners and unused stroke sides it drew, and verify reports a zero left unbound', sourceRepoOnly, async () => {
|
|
516
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
517
|
+
const all = await loadAll(ROOT);
|
|
518
|
+
for (const t of ['space.none', 'radius.square', 'border-width.none', 'opacity.none'])
|
|
519
|
+
assert.equal(parseFloat(String(resolvedValue(resolve(all.map ?? new Map(all.sets.flatMap((s) => s.tokens.map((x) => [x.path, x]))), t)))), 0, `${t} resolves to 0`);
|
|
520
|
+
const tg = await libraryScripts(ROOT, 'toggle-group');
|
|
521
|
+
const build = must(tg.scripts.find((x) => /build-1/.test(x.file)), 'toggle-group build-1').script;
|
|
522
|
+
const Z = parseJson(must(/"Z":(\{[^}]*\})/.exec(build)?.[1], 'Z in build-1'));
|
|
523
|
+
assert.deepEqual(Object.keys(Z), ['radius', 'border', 'space']);
|
|
524
|
+
for (const v of Object.values(Z))
|
|
525
|
+
assert.ok(v && v.includes('::'), `zero variable ${v} reaches the file`);
|
|
526
|
+
const { layoutScript } = await import('../adapters/design/figma/library.mjs');
|
|
527
|
+
const { guideScript, foundationScripts } = await import('../adapters/design/figma/docs.mjs');
|
|
528
|
+
const { iconScripts } = await import('../adapters/design/figma/icons.mjs');
|
|
529
|
+
const { FOUNDATION_PAGES } = await import('../lib/design/verify.mjs');
|
|
530
|
+
const generated = {
|
|
531
|
+
build, finish: must(tg.scripts.find((x) => /finish/.test(x.file)), 'toggle-group finish').script, layout: await layoutScript(ROOT, ['button']),
|
|
532
|
+
guide: await guideScript(ROOT), foundations: must((await foundationScripts(ROOT, FOUNDATION_PAGES))[0], 'first foundation part').script, icons: must((await iconScripts(ROOT))[0], 'first icon script'),
|
|
533
|
+
};
|
|
534
|
+
for (const [kind, script] of Object.entries(generated)) {
|
|
535
|
+
assert.match(script, /const bindZeros = async/, `${kind}: carries the zero runtime`);
|
|
536
|
+
assert.match(script, /await bindZeros\(/, `${kind}: binds the zeros it drew`);
|
|
537
|
+
for (const v of Object.values(Z))
|
|
538
|
+
assert.ok(script.includes(v), `${kind}: names ${v}`);
|
|
539
|
+
}
|
|
540
|
+
const r = await libraryScripts(ROOT, 'separator');
|
|
541
|
+
const script = must(r.scripts.find((x) => x.file === 'separator.verify.js'), 'separator.verify.js').script;
|
|
542
|
+
const zeroVar = must(r.expected.zero[0], 'separator zero').split('::');
|
|
543
|
+
const corner = (bound) => ({ type: 'FRAME', name: 'probe', layoutMode: 'HORIZONTAL', visible: true, opacity: 1, fills: [], strokes: [], effectStyleId: '', componentPropertyReferences: {}, children: [],
|
|
544
|
+
topLeftRadius: 6, topRightRadius: 0, bottomRightRadius: 0, bottomLeftRadius: 6,
|
|
545
|
+
boundVariables: { topLeftRadius: { id: 'v1' }, bottomLeftRadius: { id: 'v1' }, ...(bound ? { topRightRadius: { id: 'vz' }, bottomRightRadius: { id: 'vz' } } : {}) } });
|
|
546
|
+
const run = async (bound) => {
|
|
547
|
+
const comp = (name) => ({ type: 'COMPONENT', name, visible: true, opacity: 1, fills: [], strokes: [], boundVariables: {}, effectStyleId: '', componentPropertyReferences: {}, children: [corner(bound)] });
|
|
548
|
+
const set = { type: 'COMPONENT_SET', name: 'Separator', visible: true, children: [comp('Orientation=Horizontal'), comp('Orientation=Vertical')], componentPropertyDefinitions: { Orientation: { type: 'VARIANT', variantOptions: ['Horizontal', 'Vertical'] } }, descriptionMarkdown: '' };
|
|
549
|
+
const figma = {
|
|
550
|
+
root: { children: [{ name: 'Library', children: [set] }] }, setCurrentPageAsync: async () => { },
|
|
551
|
+
variables: { getLocalVariableCollectionsAsync: () => Promise.resolve([{ id: 'c1', name: 'Components' }, { id: 'c2', name: zeroVar[0] }]), getLocalVariablesAsync: () => Promise.resolve([{ id: 'v1', name: 'Separator/color', variableCollectionId: 'c1' }, { id: 'vz', name: zeroVar[1], variableCollectionId: 'c2' }]) },
|
|
552
|
+
getLocalTextStylesAsync: () => Promise.resolve([]), getLocalEffectStylesAsync: () => Promise.resolve([]),
|
|
553
|
+
};
|
|
554
|
+
return new AsyncFunction('figma', script)(figma);
|
|
555
|
+
};
|
|
556
|
+
assert.match((await run(false)).problems.join(' '), /4 zero value\(s\) not bound to a zero token, e\.g\. Orientation=Horizontal: probe topRightRadius/);
|
|
557
|
+
assert.doesNotMatch((await run(true)).problems.join(' '), /zero value/);
|
|
558
|
+
});
|
|
559
|
+
test('FG22 underlined text: every text role has an underlined twin style; a variant with its own underline offset draws a second label on it, with its own text property, shown on hover', sourceRepoOnly, async () => {
|
|
560
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
561
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
562
|
+
const { stylesScript } = await import('../adapters/design/figma/variables.mjs');
|
|
563
|
+
const m = await figmaModel(ROOT);
|
|
564
|
+
const base = m.styles.text.filter((t) => !t.token.endsWith('-underline'));
|
|
565
|
+
assert.ok(base.length > 0);
|
|
566
|
+
for (const t of base) {
|
|
567
|
+
const twin = m.styles.text.find((x) => x.token === `${t.token}-underline`);
|
|
568
|
+
assert.ok(twin, `${t.token} has an underlined twin`);
|
|
569
|
+
assert.equal(twin.decoration, 'UNDERLINE');
|
|
570
|
+
assert.equal(t.decoration, 'NONE');
|
|
571
|
+
assert.deepEqual(Object.keys(twin.bind), Object.keys(t.bind), `${twin.name} binds the same fields to its own variables`);
|
|
572
|
+
}
|
|
573
|
+
assert.match(stylesScript(m), /s\.textDecoration = t\.decoration/);
|
|
574
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
575
|
+
for (const name of ['button', 'badge']) {
|
|
576
|
+
const L = await libraryModel(ROOT, name);
|
|
577
|
+
const labels = (match) => walk(must(L.variants.find((v) => match(v.props)), `${name} variant`).tree).filter((n) => /^label/.test(n.p));
|
|
578
|
+
const hover = labels((p) => p.Variant === 'Link' && p.State === 'Hover' && (p.Size ?? 'Medium') === 'Medium');
|
|
579
|
+
assert.deepEqual(hover.map((n) => [n.p, n.v, n.tp, Boolean(n.ul)]), [['label', 0, 'Label text', false], ['label-underline', 1, 'Underlined label text', true]], `${name}: link hover shows the underlined label`);
|
|
580
|
+
const rest = labels((p) => p.Variant === 'Link' && p.State === 'Rest' && (p.Size ?? 'Medium') === 'Medium');
|
|
581
|
+
assert.deepEqual(rest.map((n) => [n.p, n.v]), [['label', 1], ['label-underline', 0]]);
|
|
582
|
+
assert.ok(!must(hover.find((n) => n.p === 'label'), `${name} hover label`).sh, `${name}: a hidden label is not bound to a visibility property (it would show)`);
|
|
583
|
+
assert.ok(!must(rest.find((n) => n.p === 'label-underline'), `${name} rest underline`).sh, `${name}: the hidden twin is not bound to a visibility property`);
|
|
584
|
+
assert.deepEqual(labels((p) => p.Variant === 'Primary' && p.State === 'Rest' && (p.Size ?? 'Medium') === 'Medium').map((n) => n.p), ['label'], `${name}: a variant without an underline offset has one label`);
|
|
585
|
+
}
|
|
586
|
+
const r = await libraryScripts(ROOT, 'badge');
|
|
587
|
+
const line = must(must(r.lineSets.get('Variant=Link, State=Hover'), 'badge Link Hover lines').find((l) => l.startsWith('label-underline|')), 'label-underline line');
|
|
588
|
+
assert.match(line, /\|Text\/Caption-underline\|underline\|characters=Underlined label text,visible=Label$/);
|
|
589
|
+
});
|
|
590
|
+
test('FG23 exposed nested instances: a nested library instance whose component has properties is exposed and named after it with an index; one without properties is not', sourceRepoOnly, async () => {
|
|
591
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
592
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
593
|
+
const { parityOf } = await import('../lib/design/parity.mjs');
|
|
594
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
595
|
+
const nestedOf = async (name) => walk(must((await libraryModel(ROOT, name)).variants[0], `${name} first variant`).tree).filter((n) => n.k === 'c');
|
|
596
|
+
assert.deepEqual((await nestedOf('toggle-group')).map((n) => [n.p, n.ex]), [['Toggle 1', 1], ['Toggle 2', 1], ['Toggle 3', 1]]);
|
|
597
|
+
assert.deepEqual((await nestedOf('button-group/button-group-separator')).map((n) => [n.p, n.ex]), [['Button 1', 1], ['Button 2', 1]]);
|
|
598
|
+
assert.deepEqual((await nestedOf('button')).map((n) => [n.p, Boolean(n.ex)]), [['spinner', false]], 'Spinner has no properties: not exposed, name kept');
|
|
599
|
+
const r = await libraryScripts(ROOT, 'toggle-group');
|
|
600
|
+
const build = must(r.scripts.find((s) => /\.build-1\.js$/.test(s.file)), 'toggle-group build-1').script;
|
|
601
|
+
assert.match(build, /if \(n\.ex\) node\.isExposedInstance = true/);
|
|
602
|
+
assert.match(build, /"p":"Toggle 1","k":"c","c":"toggle","pr":\{[^}]*\},"sq":\[[^\]]*\],"ex":1/, 'the packed build data carries the exposure');
|
|
603
|
+
assert.ok(must([...r.lineSets.values()][0], 'first line set').some((l) => l.startsWith('Toggle 1|INSTANCE|') && l.endsWith(';exposed')), 'verify expects the exposure');
|
|
604
|
+
assert.deepEqual(must(await parityOf(ROOT, 'toggle-group'), 'toggle-group parity').layersNotInAnatomy, [], 'an exposed instance needs no layer registry entry');
|
|
605
|
+
});
|
|
606
|
+
test('FG25 theme matrix: a Live column plus the corner combinations (each axis at its ends), one row per drawn set with its representative variants; the scripts pin every axis collection per cell, stay under the paste limit, bind zeros and are checksum-guarded', sourceRepoOnly, async () => {
|
|
607
|
+
const { themeMatrixDoc } = await import('../lib/design/docs.mjs');
|
|
608
|
+
const { themeMatrixScripts } = await import('../adapters/design/figma/docs.mjs');
|
|
609
|
+
const { drawnSets } = await import('../adapters/design/figma/sync.mjs');
|
|
610
|
+
const payload = await tokenPayload(ROOT);
|
|
611
|
+
const groups = [...new Set(payload.themes.map((t) => t.group))];
|
|
612
|
+
const names = await drawnSets(ROOT);
|
|
613
|
+
const d = await themeMatrixDoc(ROOT, names);
|
|
614
|
+
assert.deepEqual(d.columns[0], { name: 'Live', modes: {} });
|
|
615
|
+
const corners = d.columns.slice(1);
|
|
616
|
+
assert.equal(corners.length, 2 ** groups.length);
|
|
617
|
+
for (const g of groups) {
|
|
618
|
+
const values = payload.themes.filter((t) => t.group === g).map((t) => t.name);
|
|
619
|
+
assert.deepEqual([...new Set(corners.map((c) => c.modes[g]))].sort(), [values[0], values.at(-1)].sort(), `${g}: its two ends`);
|
|
620
|
+
}
|
|
621
|
+
assert.equal(new Set(corners.map((c) => JSON.stringify(c.modes))).size, corners.length, 'every corner once');
|
|
622
|
+
assert.equal(d.rows.length, names.length, 'one row per drawn set');
|
|
623
|
+
const row = (t) => must(d.rows.find((r) => r.title === t), t);
|
|
624
|
+
assert.deepEqual(row('Button').cells, ['Primary', 'Destructive', 'Tertiary', 'Secondary', 'Ghost', 'Link'].map((v) => `Variant=${v}, Size=Medium, State=Rest, Disabled=False`));
|
|
625
|
+
assert.deepEqual(row('Input').cells, ['State=Rest, Validation=None, Disabled=False']);
|
|
626
|
+
assert.deepEqual(row('Checkbox').cells, ['State=Rest, Selected=False, Indeterminate=False, Validation=None, Disabled=False', 'State=Rest, Selected=True, Indeterminate=False, Validation=None, Disabled=False']);
|
|
627
|
+
assert.deepEqual(row('Kbd').cells, ['Kbd']);
|
|
628
|
+
assert.ok(d.rows.every((r) => r.cells.length >= 1 && r.cells.length <= 6));
|
|
629
|
+
const scripts = await themeMatrixScripts(ROOT, names);
|
|
630
|
+
assert.ok(scripts.length > 1, 'rows are split over several pastes');
|
|
631
|
+
assert.deepEqual(scripts.flatMap((s) => s.rows), d.rows.map((r) => r.title), 'every row once, in order');
|
|
632
|
+
for (const s of scripts) {
|
|
633
|
+
assert.ok(s.script.length < 50000, `${s.file} fits one paste`);
|
|
634
|
+
assert.match(s.script, /checksum mismatch/);
|
|
635
|
+
if (!s.rows.length)
|
|
636
|
+
continue;
|
|
637
|
+
assert.match(s.script, /setExplicitVariableModeForCollection/);
|
|
638
|
+
assert.match(s.script, /bindZeros\(/);
|
|
639
|
+
}
|
|
640
|
+
const verify = scripts.find((s) => s.file === 'theme-matrix-verify.js');
|
|
641
|
+
assert.ok(verify, 'a read-only read-back');
|
|
642
|
+
assert.match(verify.script, /explicitVariableModes/);
|
|
643
|
+
});
|
|
644
|
+
test('FG24 native slots: a registered content region is drawn as a slot named after it, never the top layer, with no property bound inside; finish adds one SLOT property per set with its preferred components and verify expects the wiring', sourceRepoOnly, async () => {
|
|
645
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
646
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
647
|
+
const { parityOf } = await import('../lib/design/parity.mjs');
|
|
648
|
+
const api = parseJson(await readFile(join(ROOT, 'spec/api.json'), 'utf8'));
|
|
649
|
+
const walk = (n) => [n, ...(n.kids ?? []).flatMap(walk)];
|
|
650
|
+
assert.ok(Object.keys(api.regions ?? {}).length >= 9, 'regions are registered');
|
|
651
|
+
for (const [key, region] of Object.entries(must(api.regions, 'api regions'))) {
|
|
652
|
+
const [component, layer] = key.split('.');
|
|
653
|
+
const L = await libraryModel(ROOT, must(component, key));
|
|
654
|
+
const slots = L.variants.flatMap((v) => walk(v.tree).filter((n) => n.slot === region.name));
|
|
655
|
+
assert.ok(slots.length > 0, `${key} is drawn as a slot`);
|
|
656
|
+
assert.ok(L.variants.every((v) => !v.tree.slot), `${key}: a slot is never the top layer`);
|
|
657
|
+
for (const s of slots) {
|
|
658
|
+
assert.equal(s.p, region.name, `${key}: the layer carries the slot's name (Figma ties them)`);
|
|
659
|
+
assert.equal(s.part, layer);
|
|
660
|
+
assert.ok(walk(s).every((n) => !n.tp && !n.sh && !n.sw && !n.ex), `${key}: nothing inside a slot is bound to a property`);
|
|
661
|
+
}
|
|
662
|
+
assert.deepEqual(L.slots.find((x) => x.name === region.name)?.preferred ?? [], (region.preferred ?? []).map((c) => must(c[0], `${key} preferred`).toUpperCase() + c.slice(1)));
|
|
663
|
+
}
|
|
664
|
+
const r = await libraryScripts(ROOT, 'card');
|
|
665
|
+
const finish = must(r.scripts.find((s) => s.file.endsWith('.finish.js')), 'card finish').script;
|
|
666
|
+
assert.match(finish, /addComponentProperty\(name, 'SLOT', ''/);
|
|
667
|
+
assert.match(finish, /c\.layoutPositioning === 'ABSOLUTE' && \(c\.relativeTransform\[0\]\[0\] < 0 \|\| c\.relativeTransform\[1\]\[1\] < 0\)\) \{ c\.relativeTransform = \[\[1, 0, 0\], \[0, 1, 0\]\]/, 'finish puts a flipped absolute layer back over its variant');
|
|
668
|
+
assert.match(must(r.scripts.find((s) => s.file.endsWith('.verify.js')), 'card verify').script, /with a flipped absolute layer/, 'verify reports a flipped absolute layer');
|
|
669
|
+
assert.match(finish, /"slot":\[\["Content","[^"]+",\[\]\],\["Footer","[^"]+",\["Button"\]\],\["Action","[^"]+",\["Button"\]\]\]/);
|
|
670
|
+
assert.ok(must([...r.lineSets.values()][0], 'first line set').some((l) => l.startsWith('Footer|SLOT|') && l.includes('slotContentId=Footer')), 'verify expects the slot wiring');
|
|
671
|
+
assert.ok(r.expected.props.some(([n, t]) => n === 'Footer' && t === 'SLOT'));
|
|
672
|
+
assert.match(r.description, /Slots: Content, Footer \(prefers Button\)/);
|
|
673
|
+
for (const c of ['card', 'item', 'aspect-ratio', 'direction', 'collapsible'])
|
|
674
|
+
assert.deepEqual(must(await parityOf(ROOT, c), `${c} parity`).layersNotInAnatomy, [], `${c}: a slot layer is explained by its region`);
|
|
675
|
+
});
|
|
676
|
+
test('FG6 verify compares every combination: a read-back built from the spec is clean, one drifted value is named by its combination', sourceRepoOnly, async () => {
|
|
677
|
+
const payload = await tokenPayload(ROOT);
|
|
678
|
+
const all = await loadAll(ROOT);
|
|
679
|
+
const brand = parseJson(await readFile(join(ROOT, 'brand.config.json'), 'utf8'));
|
|
680
|
+
const combos = comboList(payload);
|
|
681
|
+
assert.equal(combos.length, 24, 'Mode x Shape x Density');
|
|
682
|
+
const themes = {};
|
|
683
|
+
for (const combo of combos) {
|
|
684
|
+
const mode = must(combo.themes.find((t) => t.group === 'Mode'), 'Mode theme').name.toLowerCase();
|
|
685
|
+
const map = comboMap(ROOT, all, brand, combo.themes, mode);
|
|
686
|
+
const sets = new Set(combo.themes.flatMap((t) => t.sets));
|
|
687
|
+
const values = {};
|
|
688
|
+
for (const s of payload.sets.filter((x) => sets.has(x.name))) {
|
|
689
|
+
for (const t of s.tokens) {
|
|
690
|
+
const r = resolve(map, t.name);
|
|
691
|
+
if (r.error || t.type === 'typography')
|
|
692
|
+
continue;
|
|
693
|
+
values[t.name] = typeof r.value === 'object' ? JSON.stringify(r.value) : typeof r.value === 'string' && /^-?\d*\.?\d+px$/.test(r.value) ? String(parseFloat(r.value)) : String(resolvedValue(r));
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
themes[combo.key] = values;
|
|
697
|
+
}
|
|
698
|
+
const clean = await compareReadback(ROOT, { hash: payload.hash, themes });
|
|
699
|
+
assert.deepEqual(clean.mismatches, []);
|
|
700
|
+
must(themes['Dark | Round | Compact'], 'Dark | Round | Compact')['radius.control'] = '3';
|
|
701
|
+
const drift = await compareReadback(ROOT, { hash: payload.hash, themes });
|
|
702
|
+
assert.deepEqual([...new Set(drift.mismatches.map((m) => `${m.token} @ ${m.mode}`))], ['radius.control @ Dark | Round | Compact']);
|
|
703
|
+
delete themes['Light | Soft | Spacious'];
|
|
704
|
+
assert.ok((await compareReadback(ROOT, { hash: payload.hash, themes })).mismatches.some((m) => m.token === '(theme)' && m.mode === 'Light | Soft | Spacious'), 'a combination that was not read back is reported');
|
|
705
|
+
});
|
|
706
|
+
test('FG7 progress register: stages move one step at a time, unknown names are refused, notes clear on check, the list is deterministic', sourceRepoOnly, async () => {
|
|
707
|
+
const dir = await fixture();
|
|
708
|
+
await cp(join(ROOT, 'spec/design-docs.json'), join(dir, 'spec/design-docs.json'));
|
|
709
|
+
const cli = (...args) => { const r = spawnSync('node', [join(ROOT, 'harness/cli.mjs'), ...args, '--json'], { cwd: dir, encoding: 'utf8' }); return { code: r.status, json: parseJson(r.stdout) }; };
|
|
710
|
+
assert.equal(cli('sync', 'stamp', 'doc', 'button').code, 1, 'planned -> doc skips library');
|
|
711
|
+
assert.equal(cli('sync', 'stamp', 'library', 'button').code, 0);
|
|
712
|
+
assert.equal(cli('sync', 'stamp', 'checked', 'button').code, 1, 'library -> checked skips doc');
|
|
713
|
+
assert.equal(cli('sync', 'stamp', 'doc', 'button').code, 0);
|
|
714
|
+
assert.equal(cli('sync', 'stamp', 'library', 'nope').code, 1, 'unknown component');
|
|
715
|
+
assert.equal(cli('sync', 'stamp', 'note', 'button', 'Matrix is too wide').code, 0);
|
|
716
|
+
const view = () => readFile(join(dir, 'docs/design-docs/progress.md'), 'utf8');
|
|
717
|
+
assert.equal(cli('sync', 'progress').code, 0);
|
|
718
|
+
const text = await view();
|
|
719
|
+
assert.match(text, /\| 0 \| button \| \[x\] \| \[x\] \| \[ \] \| Matrix is too wide \|/);
|
|
720
|
+
assert.match(text, /\| A \| checkbox \| \[ \] \| \[ \] \| \[ \] \| {2}\|/);
|
|
721
|
+
assert.equal(cli('sync', 'progress').code, 0);
|
|
722
|
+
assert.equal(await view(), text, 'same register, same list');
|
|
723
|
+
assert.equal(cli('sync', 'stamp', 'checked', 'button').code, 0);
|
|
724
|
+
cli('sync', 'progress');
|
|
725
|
+
assert.match(await view(), /\| 0 \| button \| \[x\] \| \[x\] \| \[x\] \| {2}\|/, 'checking clears the note');
|
|
726
|
+
assert.equal(cli('sync', 'stamp', 'note', 'button', 'Again').code, 0);
|
|
727
|
+
assert.equal(cli('sync', 'stamp', 'clear', 'button').code, 0, 'clear removes a note');
|
|
728
|
+
const cleared = parseJson(await readFile(join(dir, 'generated/design/progress.json'), 'utf8')).components.button;
|
|
729
|
+
assert.deepEqual([cleared.needsFix, cleared.note, cleared.stage], [false, '', 'checked'], 'and keeps the stage');
|
|
730
|
+
assert.equal(cli('sync', 'stamp', 'library', 'button').code, 0, 'a rebuild is always allowed');
|
|
731
|
+
assert.equal(parseJson(await readFile(join(dir, 'generated/design/progress.json'), 'utf8')).components.button.stage, 'library', 'and resets the later stages');
|
|
732
|
+
await rm(dir, { recursive: true });
|
|
733
|
+
});
|
|
734
|
+
test('FG8 docs: every token the drawn shell and the foundation docs name is a Figma variable or style', sourceRepoOnly, async () => {
|
|
735
|
+
const { foundationScripts, guideScript } = await import('../adapters/design/figma/docs.mjs');
|
|
736
|
+
const { docTokenPaths } = await import('../lib/design-docs.mjs');
|
|
737
|
+
const scripts = [await guideScript(ROOT), ...(await foundationScripts(ROOT, ['color', 'typography', 'spacing', 'radius', 'elevation', 'other'])).map((g) => g.script)];
|
|
738
|
+
for (const script of scripts) {
|
|
739
|
+
assert.ok(script.length < 50000, 'a doc script fits the use_figma code limit');
|
|
740
|
+
const cfg = parseJson(must(/const cfg = (.*);\n/.exec(script)?.[1], 'cfg in the doc script'));
|
|
741
|
+
const missing = docTokenPaths({ shell: cfg.shell, docs: cfg.docs ?? [cfg.doc] }).filter((t) => !cfg.vars[t] && !t.startsWith('font.size.') && !t.startsWith('elevation.') && !(t in (cfg.effects ?? {})));
|
|
742
|
+
assert.deepEqual(missing, [], 'tokens without a variable');
|
|
743
|
+
for (const name of [...Object.values(cfg.styles), ...Object.values(cfg.textByToken)])
|
|
744
|
+
assert.match(name, /^Text\//);
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
test('FG26 component docs: Variants and States grids from the library set with cells that are its variant names, element sets in their component doc, a frameless anatomy tree, accessibility as contract rules plus the real source, checksum-guarded pastes under the limit', sourceRepoOnly, async () => {
|
|
748
|
+
const { componentDoc, a11ySource } = await import('../lib/design/docs.mjs');
|
|
749
|
+
const { componentScripts } = await import('../adapters/design/figma/docs.mjs');
|
|
750
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
751
|
+
const grid = (d, title) => matrixCard(d.sections.find((s) => s.title === title)?.cards[0]);
|
|
752
|
+
const button = await componentDoc(ROOT, 'button');
|
|
753
|
+
const variants = grid(button, 'Variants');
|
|
754
|
+
assert.equal(variants.rows.length, 6);
|
|
755
|
+
assert.equal(variants.cols.length, 8);
|
|
756
|
+
assert.ok(variants.rows.flatMap((r) => r.cells).filter(Boolean).every((n) => /State=Rest, Disabled=False$/.test(String(n))), 'variants at rest');
|
|
757
|
+
assert.equal(must(variants.rows.at(-1), 'last variant row').cells.filter((c) => c === null).length, 4, 'Link has no icon sizes');
|
|
758
|
+
assert.deepEqual(grid(button, 'States').cols, ['Rest', 'Hover', 'Focus', 'Loading', 'Disabled']);
|
|
759
|
+
const L = await libraryModel(ROOT, 'button');
|
|
760
|
+
const names = new Set(L.axes.reduce((acc, a) => acc.flatMap((c) => a.values.map((v) => c.concat(`${a.name}=${v}`))), [[]]).map((c) => c.join(', ')));
|
|
761
|
+
for (const g of [variants, grid(button, 'States')])
|
|
762
|
+
for (const n of g.rows.flatMap((r) => r.cells).filter(Boolean))
|
|
763
|
+
assert.ok(names.has(String(n)), `${String(n)} is a Button variant`);
|
|
764
|
+
const input = await componentDoc(ROOT, 'input');
|
|
765
|
+
assert.equal(must(input.sections[0], 'first input section').title, 'States', 'no look axis: only the States grid');
|
|
766
|
+
const field = await componentDoc(ROOT, 'field');
|
|
767
|
+
assert.deepEqual(must(field.sections.find((s) => s.title === 'Elements'), 'Elements section').cards.map((c) => ('set' in c ? c.set : undefined)), ['FieldSet', 'FieldGroup', 'FieldSeparator', 'FieldTitle']);
|
|
768
|
+
const a11y = must(button.sections.find((s) => s.title === 'Accessibility'), 'Accessibility section').cards;
|
|
769
|
+
assert.deepEqual(a11y.map((c) => c.type), ['table', 'code']);
|
|
770
|
+
assert.ok(codeCard(a11y[1]).source.some((l) => l.includes('aria-busy')), 'the real render() lines');
|
|
771
|
+
assert.ok(!codeCard(a11y[1]).source.some((l) => /variant: ButtonVariant|#handleClick = /.test(l)), 'only members that set accessibility');
|
|
772
|
+
assert.deepEqual(await a11ySource(ROOT, 'card'), [], 'a component that sets no accessibility has no code');
|
|
773
|
+
const scripts = await componentScripts(ROOT, '0');
|
|
774
|
+
assert.deepEqual(scripts.map((s) => s.file), ['components-0-1.js', 'components-0-2.js', 'components-0-verify.js']);
|
|
775
|
+
for (const s of scripts) {
|
|
776
|
+
assert.ok(s.script.length < 50000, `${s.file} fits one paste`);
|
|
777
|
+
assert.match(s.script, /checksum mismatch/);
|
|
778
|
+
}
|
|
779
|
+
assert.match(must(scripts[0], 'components-0-1.js').script, /"codeFamilies":\["Roboto Mono"\]/, 'the code family is a design font');
|
|
780
|
+
assert.match(must(scripts[0], 'components-0-1.js').script, /box\('Tree', \{ gap: S\.tree\.node\.gap, width \}\)/, 'the tree has no card frame');
|
|
781
|
+
assert.match(must(scripts[0], 'components-0-1.js').script, /bind\(p, T\.padX, \['paddingLeft', 'paddingRight'\]\)/);
|
|
782
|
+
});
|
|
783
|
+
test('FG27 component docs highlight accessibility in the blueprint (rule accent, source marks) and read as text from the CLI, with the same grids', sourceRepoOnly, async () => {
|
|
784
|
+
const { componentDoc, a11yMarks } = await import('../lib/design/docs.mjs');
|
|
785
|
+
const { docText } = await import('../lib/design/doc-text.mjs');
|
|
786
|
+
const doc = await componentDoc(ROOT, 'button');
|
|
787
|
+
const [rulesCard, codeCardOf] = must(doc.sections.find((s) => s.title === 'Accessibility'), 'Accessibility section').cards;
|
|
788
|
+
const rules = tableCard(rulesCard), code = codeCard(codeCardOf);
|
|
789
|
+
assert.ok(rules.rows.every((r) => r[0].accent && !must(r[1], 'rule value').accent), 'the Rule column is highlighted');
|
|
790
|
+
const marked = must(code.marks, 'source marks').map(([l, a, b]) => must(code.source[must(l, 'mark line')], 'marked line').slice(a, b));
|
|
791
|
+
assert.ok(marked.includes('aria-busy') && marked.includes('role'), 'aria attributes and role are marked');
|
|
792
|
+
assert.deepEqual(a11yMarks(["const aria = (name) => x;", "variant = 'a';"]), [], 'a variable named aria and the word variant are not attributes');
|
|
793
|
+
const text = docText(doc, { highlight: (s) => `<${s}>` });
|
|
794
|
+
assert.match(text, /== Variants ==/);
|
|
795
|
+
assert.match(text, /\| Link +\| \[x\] .*\| n\/a /, 'excluded cells read n/a');
|
|
796
|
+
assert.match(text, /<aria-busy>=/, 'source highlight');
|
|
797
|
+
assert.match(text, /<role +> +button/, 'rule highlight');
|
|
798
|
+
const r = spawnSync('node', [join(ROOT, 'harness/cli.mjs'), 'docs', 'button', '--json'], { cwd: ROOT, encoding: 'utf8' });
|
|
799
|
+
assert.equal(r.status, 0, r.stderr);
|
|
800
|
+
assert.deepEqual(parseJson(r.stdout).data.doc.sections.map((s) => s.title), doc.sections.map((s) => s.title), 'the CLI serves the same blueprint');
|
|
801
|
+
});
|
|
802
|
+
test('FG29 doc shell: the Doc radius is the Header radius plus the inset between them; the header line names no repo path; the Guide is static: no sync date, no hash', sourceRepoOnly, async () => {
|
|
803
|
+
const spec = parseJson(await readFile(join(ROOT, 'spec/design-docs.json'), 'utf8'));
|
|
804
|
+
const all = await loadAll(ROOT);
|
|
805
|
+
const map = all.map ?? new Map(all.sets.flatMap((s) => s.tokens.map((x) => [x.path, x])));
|
|
806
|
+
const px = (t) => parseFloat(String(resolvedValue(resolve(map, t))));
|
|
807
|
+
const { doc, header } = spec.shell;
|
|
808
|
+
assert.equal(px(doc.radius), px(header.radius) + px(doc.pad), `${doc.radius} = ${header.radius} + ${doc.pad}`);
|
|
809
|
+
const tree = spec.shell.tree.node.radius.map(px);
|
|
810
|
+
assert.ok(tree.every((r, i) => i === 0 || r < must(tree[i - 1], 'parent radius')), 'each nested anatomy node has a smaller radius than its parent');
|
|
811
|
+
assert.equal(spec.shell.tag.radius, 'radius.pill', 'pills are not containers: the nested rule leaves them alone');
|
|
812
|
+
assert.ok(!/[\\/]|\.(md|json)\b/.test(header.link.label), 'the header line is not a path');
|
|
813
|
+
const { guideDoc } = await import('../lib/design/docs.mjs');
|
|
814
|
+
assert.ok(!(await guideDoc(ROOT)).sections.some((s) => /sync/i.test(s.title ?? '')), 'the Guide has no sync status section');
|
|
815
|
+
const { componentScripts } = await import('../adapters/design/figma/docs.mjs');
|
|
816
|
+
const script = must((await componentScripts(ROOT, '0'))[0], 'components-0-1.js').script;
|
|
817
|
+
assert.ok(!script.includes('text(d.link'), 'the design file draws the shell label, not the blueprint path');
|
|
818
|
+
});
|
|
819
|
+
test('FG28 no cropped examples: verify reports content larger than its variant; Pagination hugs its links and the ScrollArea slot fills its viewport', sourceRepoOnly, async () => {
|
|
820
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
821
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
822
|
+
const r = await libraryScripts(ROOT, 'pagination');
|
|
823
|
+
assert.match(must(r.scripts.find((s) => s.file.endsWith('.verify.js')), 'pagination verify').script, /content overflows the variant frame/);
|
|
824
|
+
const pagination = must((await libraryModel(ROOT, 'pagination')).variants[0], 'pagination variant').tree;
|
|
825
|
+
assert.ok(!pagination.fw, 'a fixed 320 root cut the 338 wide links');
|
|
826
|
+
for (const v of (await libraryModel(ROOT, 'scroll-area')).variants) {
|
|
827
|
+
const content = must(must(v.tree.kids, 'scroll-area layers').find((k) => k.slot === 'Content'), 'Content slot');
|
|
828
|
+
assert.ok(content.grow && content.st, 'the empty slot spilled out of the 64 high viewport');
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
test('FG30 pattern docs: one screen per state from pattern.json, components resolved to library variants, a checksum-guarded paste under the limit, and a read-back that counts slot content', sourceRepoOnly, async () => {
|
|
832
|
+
const { patternDoc, patternIds, variantOf } = await import('../lib/design/patterns.mjs');
|
|
833
|
+
const { patternScripts } = await import('../adapters/design/figma/patterns.mjs');
|
|
834
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
835
|
+
const doc = await patternDoc(ROOT, 'sign-in');
|
|
836
|
+
assert.deepEqual(doc.sections.map((s) => s.title), ['Default', 'With error', 'Loading', 'Sign up', 'Components', 'Landmarks', 'Accessibility']);
|
|
837
|
+
const card = componentNode(screenCard(must(doc.sections[0], 'first section').cards[0]).children[0]);
|
|
838
|
+
assert.equal(card.set, 'Card');
|
|
839
|
+
assert.equal(card.variant, 'Size=Medium');
|
|
840
|
+
assert.ok(card.slots.Content?.length && card.slots.Footer?.length, 'the card slots hold the form and the footer');
|
|
841
|
+
assert.throws(() => variantOf({ title: 'Button', axes: [{ name: 'Variant', values: ['Primary'] }] }, { colour: 'x' }), /no axis for colour/);
|
|
842
|
+
assert.throws(() => variantOf({ title: 'Button', axes: [{ name: 'Variant', values: ['Primary'] }] }, { variant: 'loud' }), /no value loud/);
|
|
843
|
+
assert.equal(variantOf(await libraryModel(ROOT, 'button'), { variant: 'tertiary', state: 'loading' }), 'Variant=Tertiary, Size=Medium, State=Loading, Disabled=False');
|
|
844
|
+
assert.ok((await patternIds(ROOT)).includes('sign-in'));
|
|
845
|
+
const scripts = await patternScripts(ROOT, ['sign-in']);
|
|
846
|
+
const draw = must(scripts.find((s) => s.file === 'patterns-sign-in-1.js'), 'patterns-sign-in-1.js').script;
|
|
847
|
+
assert.ok(draw.length < 50000, 'one paste fits the use_figma limit');
|
|
848
|
+
assert.match(draw, /checksum mismatch/);
|
|
849
|
+
assert.match(must(scripts.find((s) => s.file === 'patterns-runtime.js'), 'patterns-runtime.js').script, /scope\.setProperties/, 'a layout key such as Button 2/Variant sets a nested instance property');
|
|
850
|
+
assert.match(must(scripts.find((s) => s.file === 'patterns-verify.js'), 'patterns-verify.js').script, /p\.type === 'SLOT'\) return true/);
|
|
851
|
+
});
|
|
852
|
+
test('FG31 parity diff: texts missing or extra, the edge that matches the alignment, duplicates paired by position, order only across rows', () => {
|
|
853
|
+
const t = (text, x, y, w = 40, a) => ({ t: text, x, y, w, h: 17, ...(a ? { a } : {}) });
|
|
854
|
+
const sb = { texts: [t('Title', 20, 10), t('Install', 20, 60), t('Install', 20, 300), t('Done', 20, 400)] };
|
|
855
|
+
const same = diffInventories(sb, { texts: [t('Title', 22, 14), t('Install', 22, 70), t('Install', 22, 310), t('Done', 22, 410)] });
|
|
856
|
+
assert.equal(same.ok, true);
|
|
857
|
+
const gap = diffInventories(sb, { texts: [t('Title', 22, 14), t('Install', 22, 70), t('Install', 22, 310)] });
|
|
858
|
+
assert.deepEqual(gap.missing, ['Done']);
|
|
859
|
+
const wide = diffInventories({ texts: [t('Hi', 20, 10, 20)] }, { texts: [t('Hi', 20, 10, 600, 'LEFT')] });
|
|
860
|
+
assert.equal(wide.ok, true, 'a fill-width left-aligned box is judged by its left edge');
|
|
861
|
+
const centered = diffInventories({ texts: [t('Hi', 600, 10, 40)] }, { texts: [t('Hi', 100, 10, 1040, 'CENTER')] });
|
|
862
|
+
assert.equal(centered.moved.length, 0, 'a centered box is judged by its center');
|
|
863
|
+
const swapped = diffInventories(sb, { texts: [t('Done', 20, 10), t('Install', 20, 70), t('Install', 20, 310), t('Title', 20, 410)] });
|
|
864
|
+
assert.ok(swapped.order > 0);
|
|
865
|
+
const stars = (dy) => [t('Full name', 435, 263 - dy), t('*', 498, 263 - dy), t('Email', 435, 349 - dy), t('*', 470, 349 - dy), t('Agree', 463, 565 - dy), t('*', 661, 565 - dy)];
|
|
866
|
+
assert.equal(diffInventories({ texts: stars(0) }, { texts: stars(145) }).order, 0, 'repeated texts are paired in reading order, whatever the vertical offset');
|
|
867
|
+
const jitter = diffInventories({ texts: [t('Native select', 20, 450), t('Choose one', 67, 500), t('Choose one', 376, 500), t('Choose one', 684, 500)] }, { texts: [t('Native select', 20, 470), t('Choose one', 696, 508), t('Choose one', 69, 520), t('Choose one', 383, 520)] });
|
|
868
|
+
assert.equal(jitter.moved.length, 0, 'repeated texts are paired by position after the shift of their nearest unique neighbour, so a few pixels of row jitter do not swap columns');
|
|
869
|
+
assert.equal(jitter.order, 0);
|
|
870
|
+
const row = diffInventories({ texts: [t('a', 0, 100), t('b', 100, 103)] }, { texts: [t('b', 100, 100), t('a', 0, 108)] });
|
|
871
|
+
assert.equal(row.order, 0, 'items on one row may differ by a few pixels');
|
|
872
|
+
});
|
|
873
|
+
test('FG32 pattern runtime: joined groups re-round their outer corners, mirrored under Direction, percentages and rules are drawn', async () => {
|
|
874
|
+
const { readFile } = await import('node:fs/promises');
|
|
875
|
+
const src = await readFile(join(ROOT, 'harness/adapters/design/figma/patterns.mjs'), 'utf8');
|
|
876
|
+
for (const needle of ['async function closeGroup', 'function mirror', "n.rule", 'later.push', "a === 'center-x'", "a === 'end'", "node.height === 'fill'", "x.layoutMode === 'HORIZONTAL' && x.primaryAxisAlignItems === 'MIN'"])
|
|
877
|
+
assert.ok(src.includes(needle), needle);
|
|
878
|
+
assert.ok((await patternIds(await reference())).length >= 8);
|
|
879
|
+
});
|
|
880
|
+
test('FG33 pattern layouts: a component with a ratio is drawn at that width-to-height ratio once its width is known', async () => {
|
|
881
|
+
const { readFile } = await import('node:fs/promises');
|
|
882
|
+
const { patternDoc } = await import('../lib/design/patterns.mjs');
|
|
883
|
+
const found = [];
|
|
884
|
+
const walk = (n) => { if (n?.kind === 'component' && n.ratio)
|
|
885
|
+
found.push(n); for (const k of [...(n?.children ?? []), ...Object.values(n?.slots ?? {}).flat()])
|
|
886
|
+
walk(k); };
|
|
887
|
+
for (const sec of (await patternDoc(await reference(), 'dashboard')).sections)
|
|
888
|
+
for (const c of sec.cards)
|
|
889
|
+
for (const k of ('children' in c ? c.children : []))
|
|
890
|
+
walk(k);
|
|
891
|
+
assert.ok(found.length >= 1 && Math.abs(Number(found[0]?.ratio) - 16 / 9) < 1e-9, 'the dashboard chart is 16/9');
|
|
892
|
+
const src = await readFile(join(ROOT, 'harness/adapters/design/figma/patterns.mjs'), 'utf8');
|
|
893
|
+
assert.ok(src.includes('n.ratio'));
|
|
894
|
+
});
|
|
895
|
+
test('FG41 pattern layouts: icons swap a nested icon layer to a registered icon (Profile shows calendar and hard-drive)', sourceRepoOnly, async () => {
|
|
896
|
+
const { readFile } = await import('node:fs/promises');
|
|
897
|
+
const { patternDoc } = await import('../lib/design/patterns.mjs');
|
|
898
|
+
const icons = [];
|
|
899
|
+
const walk = (n) => { if (n?.kind === 'component' && n.icons)
|
|
900
|
+
icons.push(...Object.entries(n.icons).map(([k, v]) => `${k}=${v}`)); for (const k of [...(n?.children ?? []), ...Object.values(n?.slots ?? {}).flat()])
|
|
901
|
+
walk(k); };
|
|
902
|
+
for (const sec of (await patternDoc(ROOT, 'profile')).sections)
|
|
903
|
+
for (const c of sec.cards)
|
|
904
|
+
for (const k of ('children' in c ? c.children : []))
|
|
905
|
+
walk(k);
|
|
906
|
+
assert.deepEqual([...new Set(icons)].sort(), ['media/icon=content / calendar', 'media/icon=data / hard-drive'], 'resolved to the drawn icon sets');
|
|
907
|
+
const src = await readFile(join(ROOT, 'harness/adapters/design/figma/patterns.mjs'), 'utf8');
|
|
908
|
+
assert.ok(src.includes('n.icons') && src.includes('swapComponent(target)'), 'the runtime swaps the layer');
|
|
909
|
+
});
|
|
910
|
+
test('FG34 pattern layouts: an axis the library has is never named twice in a variant, and the expected texts leave out percentages and variant values', sourceRepoOnly, async () => {
|
|
911
|
+
const { patternDoc } = await import('../lib/design/patterns.mjs');
|
|
912
|
+
const variants = [];
|
|
913
|
+
const walk = (n) => { if (n?.kind === 'component')
|
|
914
|
+
variants.push(must(n.variant, 'component variant')); for (const k of [...(n?.children ?? []), ...Object.values(n?.slots ?? {}).flat()])
|
|
915
|
+
walk(k); };
|
|
916
|
+
for (const id of ['dashboard', 'settings'])
|
|
917
|
+
for (const sec of (await patternDoc(ROOT, id)).sections)
|
|
918
|
+
for (const c of sec.cards)
|
|
919
|
+
for (const k of ('children' in c ? c.children : []))
|
|
920
|
+
walk(k);
|
|
921
|
+
const names = variants.flatMap((v) => v.split(', ').map((x) => x.split('=')[0]));
|
|
922
|
+
assert.ok(variants.some((v) => /Active=2/.test(v)), 'settings selects the second tab');
|
|
923
|
+
for (const v of variants) {
|
|
924
|
+
const axes = v.split(', ').map((x) => x.split('=')[0]);
|
|
925
|
+
assert.equal(new Set(axes).size, axes.length, v);
|
|
926
|
+
}
|
|
927
|
+
assert.ok(names.length > 0);
|
|
928
|
+
const { patternScripts } = await import('../adapters/design/figma/patterns.mjs');
|
|
929
|
+
const verify = must((await patternScripts(ROOT, ['dashboard'])).find((x) => x.file === 'patterns-verify.js'), 'patterns-verify.js').script;
|
|
930
|
+
assert.ok(!/"68%"|"Tertiary"/.test(verify.slice(0, verify.indexOf('const SUM'))), 'a percentage and a variant value are not expected as shown text');
|
|
931
|
+
});
|
|
932
|
+
test('FG35 pattern scripts: the runtime is pasted once, kept in the file as hidden text, checked, and removed; each part carries only its data', sourceRepoOnly, async () => {
|
|
933
|
+
const { patternScripts } = await import('../adapters/design/figma/patterns.mjs');
|
|
934
|
+
const scripts = await patternScripts(ROOT, ['form-states', 'sign-in']);
|
|
935
|
+
const files = scripts.map((x) => x.file);
|
|
936
|
+
assert.equal(files[0], 'patterns-runtime.js');
|
|
937
|
+
assert.equal(files.at(-1), 'patterns-runtime-remove.js');
|
|
938
|
+
assert.ok(files.includes('patterns-verify.js'));
|
|
939
|
+
const parts = scripts.filter((x) => /^patterns-(form-states|sign-in)-\d+\.js$/.test(x.file));
|
|
940
|
+
assert.ok(parts.length >= 2);
|
|
941
|
+
for (const p of parts) {
|
|
942
|
+
assert.ok(p.script.length < 26000, `${p.file} is ${p.script.length} characters`);
|
|
943
|
+
assert.ok(!p.script.includes('function mirror'), `${p.file} carries no runtime`);
|
|
944
|
+
assert.match(p.script, /stored pattern runtime/);
|
|
945
|
+
}
|
|
946
|
+
const install = must(scripts[0], 'patterns-runtime.js').script;
|
|
947
|
+
assert.ok(install.length < 40000, `the runtime script is ${install.length} characters`);
|
|
948
|
+
const chunks = parseJson(must(/const CHUNKS = (\[[\s\S]*?\]);\n/.exec(install)?.[1], 'CHUNKS in the runtime script'));
|
|
949
|
+
assert.ok(chunks.every((c) => c.length <= 8000));
|
|
950
|
+
const src = chunks.join('');
|
|
951
|
+
assert.ok(src.includes('function mirror') && src.includes('async function draw'));
|
|
952
|
+
assert.doesNotThrow(() => new AsyncFunction('cfg', src), 'the stored text is valid code');
|
|
953
|
+
const rsum = must(/"rsum":(-?\d+)/.exec(must(parts[0], 'first part').script), 'rsum in the first part')[1];
|
|
954
|
+
assert.ok(install.includes(`RSUM = ${rsum}`), 'the runtime script and every part name the same checksum');
|
|
955
|
+
assert.match(must(scripts.at(-1), 'patterns-runtime-remove.js').script, /Pattern runtime/);
|
|
956
|
+
});
|
|
957
|
+
test('FG36 table rows and pattern tables: only the selected sample row has the selected fill, and a layout can clear it inside an instance', async () => {
|
|
958
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
959
|
+
const { patternDoc } = await import('../lib/design/patterns.mjs');
|
|
960
|
+
const { readFile } = await import('node:fs/promises');
|
|
961
|
+
const flat = (n) => [n, ...(n.kids ?? []).flatMap(flat)];
|
|
962
|
+
const rows = flat(must((await libraryModel(await reference(), 'table')).variants[0], 'table variant').tree).filter((n) => /^row-\d$/.test(n.p));
|
|
963
|
+
assert.equal(rows.length, 6);
|
|
964
|
+
assert.deepEqual(rows.filter((n) => n.b.some(([, f]) => f === 'fill')).map((n) => n.p), ['row-2'], 'only row 2 is drawn selected');
|
|
965
|
+
const tables = [];
|
|
966
|
+
const walk = (n) => { if (n?.kind === 'component' && n.set === 'Table')
|
|
967
|
+
tables.push(n); for (const k of [...(n?.children ?? []), ...Object.values(n?.slots ?? {}).flat()])
|
|
968
|
+
walk(k); };
|
|
969
|
+
for (const id of ['data-table', 'dashboard'])
|
|
970
|
+
for (const sec of (await patternDoc(await reference(), id)).sections)
|
|
971
|
+
for (const c of sec.cards)
|
|
972
|
+
for (const k of ('children' in c ? c.children : []))
|
|
973
|
+
walk(k);
|
|
974
|
+
const withRows = tables.filter((t) => !(t.hide ?? []).includes('row-1'));
|
|
975
|
+
assert.ok(withRows.length >= 2, 'the data table and the orders table show body rows');
|
|
976
|
+
for (const t of withRows)
|
|
977
|
+
assert.deepEqual(t.clear, ['row-2'], 'a story table has no selected row');
|
|
978
|
+
const src = await readFile(join(ROOT, 'harness/adapters/design/figma/patterns.mjs'), 'utf8');
|
|
979
|
+
assert.ok(src.includes('n.clear'));
|
|
980
|
+
});
|
|
981
|
+
test('FG37 no cropped doc grid: a variant wider than its cell wraps the grid into bands of fewer columns (Dialog Open alone, Sidebar three by two), each with its head; the verify reads the cells in band order; a grid that fits keeps one band', sourceRepoOnly, async () => {
|
|
982
|
+
const { componentDoc, drawnWidth } = await import('../lib/design/docs.mjs');
|
|
983
|
+
const { componentScripts } = await import('../adapters/design/figma/docs.mjs');
|
|
984
|
+
const { libraryModel } = await import('../lib/design/library.mjs');
|
|
985
|
+
const cfgOf = (s) => parseJson(must(/^const cfg = (.*);$/m.exec(s.script)?.[1], 'cfg in the doc script'));
|
|
986
|
+
const scripts = await componentScripts(ROOT, 'G');
|
|
987
|
+
const parts = scripts.filter((s) => s.names.length).map((s) => cfgOf(s));
|
|
988
|
+
const px = must(parts[0], 'first doc part').px;
|
|
989
|
+
const w = px.width - 2 * px.docPad - 2 * px.cardPad, labelW = Math.round(w / 6);
|
|
990
|
+
const room = (k) => Math.floor((w - labelW - k * px.line) / k) - 2 * px.matrixPad;
|
|
991
|
+
const states = (name) => must(must(must(parts.flatMap((p) => p.docs).find((d) => d.name === name), name).sections.find((s) => s.title === 'States'), `${name} States`).cards[0], `${name} States grid`);
|
|
992
|
+
const open = must((await libraryModel(ROOT, 'dialog')).variants.find((v) => v.props.Open === 'True'), 'dialog Open variant');
|
|
993
|
+
const dialogPx = { 'dialog.max-width': 512, 'dialog.viewport-margin': 16 };
|
|
994
|
+
assert.equal(drawnWidth(open.tree, (t) => dialogPx[String(t)] ?? 0), 544, 'the surface plus the backdrop margin on both sides');
|
|
995
|
+
assert.equal(matrixCard(must((await componentDoc(ROOT, 'sidebar')).sections.find((s) => s.title === 'States'), 'sidebar States').cards[0]).minWidth, 288, 'panel plus trigger');
|
|
996
|
+
for (const [name, per, minWidth] of [['Dialog', 1, 544], ['Sidebar', 3, 288]]) {
|
|
997
|
+
const c = states(name);
|
|
998
|
+
assert.equal(c.per, per, `${name} wraps to ${per} column(s) per band`);
|
|
999
|
+
assert.ok(room(must(c.per, `${name} columns per band`)) >= minWidth, `${name}: every cell holds its widest variant`);
|
|
1000
|
+
}
|
|
1001
|
+
const sidebar = states('Sidebar');
|
|
1002
|
+
const cells = must(must(cfgOf(must(scripts.at(-1), 'components-G-verify.js')).docs.find((d) => d.name === 'Sidebar'), 'Sidebar in verify').cards.find((c) => c.section === 'States'), 'Sidebar States in verify').cells;
|
|
1003
|
+
assert.deepEqual(cells, [...sidebar.rows.flatMap((r) => r.cells.slice(0, 3)), ...sidebar.rows.flatMap((r) => r.cells.slice(3))], 'verify expects the cells band by band');
|
|
1004
|
+
assert.match(must(scripts[0], 'components-G-1.js').script, /for \(let s = 0; s < c\.cols\.length; s \+= per\)/, 'the runtime draws one head row per band');
|
|
1005
|
+
assert.ok(!('per' in states('Command')), 'Command fits in one band');
|
|
1006
|
+
for (const s of (await componentScripts(ROOT, '0')).filter((x) => x.names.length))
|
|
1007
|
+
for (const d of cfgOf(s).docs)
|
|
1008
|
+
for (const sec of d.sections)
|
|
1009
|
+
for (const c of sec.cards)
|
|
1010
|
+
assert.ok(!('per' in c), `${d.name} ${sec.title} keeps one band`);
|
|
1011
|
+
});
|
|
1012
|
+
test('FG38 icon on a nested instance: the Dialog close button swaps Button\'s icon to the registry "x" by name; build resolves it on the Icons page and verify reads it back by icon set name', sourceRepoOnly, async () => {
|
|
1013
|
+
const { libraryScripts } = await import('../adapters/design/figma/library.mjs');
|
|
1014
|
+
const r = await libraryScripts(ROOT, 'dialog');
|
|
1015
|
+
const close = must(r.lineSets.get('Open=True'), 'dialog Open lines').find((l) => /\/header-row\/Button \d\|INSTANCE\|/.test(l) && l.includes('Size=Icon small'));
|
|
1016
|
+
assert.ok(close, 'the close button is a nested Button');
|
|
1017
|
+
assert.match(close, /Left icon swap=action \/ x/, 'the close button shows the x icon');
|
|
1018
|
+
assert.ok(Object.entries(r.expected.nested).some(([p, keys]) => p.includes('/header-row/') && keys.includes('Left icon swap')), 'verify reads the swap property');
|
|
1019
|
+
const build = r.scripts.find((s) => /\.build-\d+\.js$/.test(s.file) && s.script.includes('"Left icon swap":"action / x"'));
|
|
1020
|
+
assert.ok(build, 'the build data carries the icon by set name');
|
|
1021
|
+
assert.match(build.script, /componentProperties\[key\]\.type !== 'INSTANCE_SWAP'/, 'build resolves a swap to the icon component');
|
|
1022
|
+
assert.match(must(r.scripts.find((s) => s.file.endsWith('.verify.js')), 'dialog verify').script, /p\.type === 'INSTANCE_SWAP' \? iconOf\.get\(p\.value\)/, 'verify names the swapped icon');
|
|
1023
|
+
});
|