srcdev-nuxt-components 9.4.12 → 9.5.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/skills/component-aria-landmark.md +1 -1
- package/.claude/skills/component-dynamic-slots.md +0 -1
- package/.claude/skills/component-export-types.md +3 -3
- package/.claude/skills/component-inline-action-button.md +7 -7
- package/.claude/skills/component-local-style-override.md +134 -50
- package/.claude/skills/component-naming.md +107 -0
- package/.claude/skills/components/action-menu.md +18 -14
- package/.claude/skills/components/alert-content.md +110 -0
- package/.claude/skills/components/alert-mask-core.md +15 -1
- package/.claude/skills/components/alert-masked-content.md +95 -0
- package/.claude/skills/components/auto-grid.md +21 -13
- package/.claude/skills/components/canvas-switcher.md +3 -3
- package/.claude/skills/components/capture-qr-code.md +19 -9
- package/.claude/skills/components/carousel-flip.md +3 -3
- package/.claude/skills/components/container-glow.md +2 -2
- package/.claude/skills/components/content-docs.md +9 -5
- package/.claude/skills/components/cookie-consent-banner.md +16 -17
- package/.claude/skills/components/dashboard-quad-grid.md +4 -4
- package/.claude/skills/components/decode-qr-code.md +15 -9
- package/.claude/skills/components/display-avatar.md +16 -31
- package/.claude/skills/components/display-chip.md +15 -10
- package/.claude/skills/components/display-dialog.md +3 -1
- package/.claude/skills/components/display-pill.md +17 -75
- package/.claude/skills/components/display-prompt.md +11 -19
- package/.claude/skills/components/display-qr-code.md +5 -0
- package/.claude/skills/components/display-theme-switch.md +7 -6
- package/.claude/skills/components/display-toast.md +5 -6
- package/.claude/skills/components/entry-animation.md +2 -5
- package/.claude/skills/components/eyebrow-text.md +6 -4
- package/.claude/skills/components/form-field.md +79 -0
- package/.claude/skills/components/form-fieldset.md +75 -0
- package/.claude/skills/components/form-wrapper.md +71 -0
- package/.claude/skills/components/glass-panel.md +60 -51
- package/.claude/skills/components/grid-stack.md +8 -2
- package/.claude/skills/components/header-block.md +1 -1
- package/.claude/skills/components/hero-text.md +8 -6
- package/.claude/skills/components/input-button.md +72 -0
- package/.claude/skills/components/input-checkbox-radio.md +149 -0
- package/.claude/skills/components/input-checkbox.md +148 -0
- package/.claude/skills/components/input-description.md +102 -0
- package/.claude/skills/components/input-error.md +105 -0
- package/.claude/skills/components/input-label.md +119 -0
- package/.claude/skills/components/{input-number-core.md → input-number.md} +41 -36
- package/.claude/skills/components/input-radio.md +95 -0
- package/.claude/skills/components/input-range-core.md +4 -4
- package/.claude/skills/components/input-select-core.md +1 -1
- package/.claude/skills/components/input-text-core.md +8 -6
- package/.claude/skills/components/input-textarea-core.md +4 -4
- package/.claude/skills/components/layout-grid-by-cols.md +31 -43
- package/.claude/skills/components/link-text.md +2 -2
- package/.claude/skills/components/opening-hours.md +116 -0
- package/.claude/skills/components/page-hero-highlights.md +35 -35
- package/.claude/skills/components/page-row.md +1 -1
- package/.claude/skills/components/pending-effect.md +63 -0
- package/.claude/skills/components/price-list.md +72 -0
- package/.claude/skills/components/pricing-card.md +3 -3
- package/.claude/skills/components/profile-section.md +6 -4
- package/.claude/skills/components/samaritan-prompt.md +140 -0
- package/.claude/skills/components/scroll-reveal-frame.md +21 -20
- package/.claude/skills/components/scroll-reveal-image.md +31 -21
- package/.claude/skills/components/service-detail.md +2 -2
- package/.claude/skills/components/services-card-grid.md +5 -4
- package/.claude/skills/components/services-card.md +12 -10
- package/.claude/skills/components/site-navigation.md +20 -6
- package/.claude/skills/components/slider-gallery.md +88 -0
- package/.claude/skills/components/social-icons-list.md +12 -6
- package/.claude/skills/components/tab-navigation.md +1 -1
- package/.claude/skills/components/text-block.md +68 -0
- package/.claude/skills/components/toggle-switch-core.md +25 -6
- package/.claude/skills/components/triple-toggle-switch.md +85 -0
- package/.claude/skills/composable-zod-validation.md +1 -1
- package/.claude/skills/consumer-styles-structure.md +153 -0
- package/.claude/skills/icon-sets.md +3 -3
- package/.claude/skills/icon-sizing.md +66 -0
- package/.claude/skills/index.md +36 -17
- package/.claude/skills/new-app-scaffold.md +45 -7
- package/.claude/skills/pull-request-description.md +1 -0
- package/.claude/skills/storybook-add-story.md +53 -5
- package/.claude/skills/testing-add-playwright.md +1 -1
- package/.claude/skills/theming-colour-ramps.md +25 -3
- package/.claude/skills/theming-component-token-pattern.md +16 -16
- package/.claude/skills/theming-override-default.md +7 -0
- package/.claude/skills/theming-partial-override.md +1 -1
- package/.claude/skills/theming-typography-tokens.md +1 -1
- package/.claude/skills/vercel-node-version.md +1 -1
- package/.vscode/srcdev-component-action-menu.code-snippets +42 -0
- package/.vscode/srcdev-component-alert-content.code-snippets +36 -0
- package/.vscode/srcdev-component-alert-masked-content.code-snippets +35 -0
- package/.vscode/srcdev-component-auto-grid.code-snippets +39 -0
- package/.vscode/srcdev-component-capture-decode-qr-code.code-snippets +28 -0
- package/.vscode/srcdev-component-content-docs.code-snippets +4 -4
- package/.vscode/srcdev-component-cookie-consent-banner.code-snippets +33 -0
- package/.vscode/srcdev-component-display-avatar.code-snippets +28 -0
- package/.vscode/srcdev-component-display-chip.code-snippets +27 -0
- package/.vscode/srcdev-component-display-pill.code-snippets +38 -0
- package/.vscode/srcdev-component-display-prompt.code-snippets +10 -54
- package/.vscode/srcdev-component-display-qr-code.code-snippets +22 -0
- package/.vscode/srcdev-component-eyebrow-text.code-snippets +19 -0
- package/.vscode/srcdev-component-form-field.code-snippets +25 -0
- package/.vscode/srcdev-component-form-fieldset.code-snippets +36 -0
- package/.vscode/srcdev-component-form-wrapper.code-snippets +30 -0
- package/.vscode/srcdev-component-glass-panel.code-snippets +38 -0
- package/.vscode/srcdev-component-grid-stack.code-snippets +49 -0
- package/.vscode/srcdev-component-input-button.code-snippets +27 -0
- package/.vscode/srcdev-component-input-checkbox-radio.code-snippets +60 -0
- package/.vscode/srcdev-component-input-checkbox.code-snippets +48 -0
- package/.vscode/srcdev-component-input-description.code-snippets +44 -0
- package/.vscode/srcdev-component-input-error.code-snippets +30 -0
- package/.vscode/srcdev-component-input-label.code-snippets +39 -0
- package/.vscode/srcdev-component-input-number.code-snippets +11 -11
- package/.vscode/srcdev-component-input-radio.code-snippets +58 -0
- package/.vscode/srcdev-component-layout-grid-by-cols.code-snippets +46 -0
- package/.vscode/srcdev-component-link-text.code-snippets +30 -0
- package/.vscode/srcdev-component-opening-hours.code-snippets +40 -0
- package/.vscode/srcdev-component-page-hero-highlights.code-snippets +37 -0
- package/.vscode/srcdev-component-page-row.code-snippets +47 -0
- package/.vscode/srcdev-component-pending-effect.code-snippets +26 -0
- package/.vscode/srcdev-component-price-list.code-snippets +37 -0
- package/.vscode/srcdev-component-pricing-card.code-snippets +2 -2
- package/.vscode/srcdev-component-profile-section.code-snippets +36 -0
- package/.vscode/srcdev-component-samaritan-prompt.code-snippets +60 -0
- package/.vscode/srcdev-component-scroll-reveal-frame.code-snippets +36 -0
- package/.vscode/srcdev-component-scroll-reveal-image.code-snippets +46 -0
- package/.vscode/srcdev-component-services-card.code-snippets +4 -4
- package/.vscode/srcdev-component-services-grids.code-snippets +36 -0
- package/.vscode/srcdev-component-site-navigation.code-snippets +26 -18
- package/.vscode/srcdev-component-slider-gallery.code-snippets +9 -0
- package/.vscode/srcdev-component-social-icons-list.code-snippets +24 -0
- package/.vscode/srcdev-component-stepper-list.code-snippets +39 -0
- package/.vscode/srcdev-component-text-block.code-snippets +31 -0
- package/.vscode/srcdev-component-toggle-switch.code-snippets +3 -1
- package/.vscode/srcdev-component-triple-toggle-switch.code-snippets +30 -0
- package/README.md +2 -2
- package/app/app.config.ts +10 -0
- package/app/assets/styles/setup/02.colours/_orange.css +11 -11
- package/app/assets/styles/setup/02.colours/_theme-params.css +2 -2
- package/app/assets/styles/setup/03.theming/_default.css +1 -22
- package/app/assets/styles/setup/03.theming/_theme-slots.css +1 -1
- package/app/assets/styles/setup/03.theming/_warning.css +8 -10
- package/app/assets/styles/setup/04.elements/forms/02.typography.css +0 -14
- package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +1 -1
- package/app/assets/styles/setup/index.css +1 -1
- package/app/components/01.atoms/alert-mask/AlertMaskCore.vue +23 -5
- package/app/components/01.atoms/alert-mask/CONSUMER-STYLING.md +23 -5
- package/app/components/01.atoms/alert-mask/stories/AlertMaskCore.stories.ts +45 -19
- package/app/components/01.atoms/alert-mask/tests/AlertMaskCore.spec.ts +35 -1
- package/app/components/01.atoms/animations/animated-svg-text/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/animations/clip-element/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/animations/clip-element/ClipElement.vue +2 -2
- package/app/components/01.atoms/animations/container-glow/CONSUMER-STYLING.md +26 -5
- package/app/components/01.atoms/animations/entry/.nuxt/app.config.mjs +21 -0
- package/app/components/01.atoms/animations/entry/.nuxt/components.d.ts +66 -0
- package/app/components/01.atoms/animations/entry/.nuxt/imports.d.ts +30 -0
- package/app/components/01.atoms/animations/entry/.nuxt/manifest/meta/test.json +1 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/app.config.d.ts +35 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/build.d.ts +23 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/builder-env.d.ts +1 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/components.d.ts +71 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/imports.d.ts +386 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/middleware.d.ts +11 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/modules.d.ts +79 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/nitro-layouts.d.ts +17 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/nitro-nuxt.d.ts +64 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/plugins.d.ts +29 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/runtime-config.d.ts +32 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/shared-imports.d.ts +10 -0
- package/app/components/01.atoms/animations/entry/.nuxt/types/vue-shim.d.ts +0 -0
- package/app/components/01.atoms/animations/entry/.nuxtrc +1 -0
- package/app/components/01.atoms/animations/entry/CONSUMER-STYLING.md +65 -0
- package/app/components/01.atoms/animations/entry/EntryAnimation.vue +6 -5
- package/app/components/01.atoms/animations/entry/node_modules/.cache/nuxt/chrome-workspace.json +1 -0
- package/app/components/01.atoms/animations/entry/node_modules/.cache/vite/client/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +1 -1
- package/app/components/01.atoms/animations/entry/tests/EntryAnimation.spec.ts +25 -0
- package/app/components/01.atoms/animations/glowing-border/CONSUMER-STYLING.md +24 -5
- package/app/components/01.atoms/animations/marquee-scroller/CONSUMER-STYLING.md +20 -0
- package/app/components/01.atoms/animations/rotating-carousel-image/CONSUMER-STYLING.md +17 -0
- package/app/components/01.atoms/animations/scroll-reveal-frame/CONSUMER-STYLING.md +77 -0
- package/app/components/01.atoms/animations/scroll-reveal-frame/ScrollRevealFrame.vue +37 -78
- package/app/components/01.atoms/animations/scroll-reveal-frame/stories/ScrollRevealFrame.stories.ts +48 -0
- package/app/components/01.atoms/animations/scroll-reveal-frame/tests/ScrollRevealFrame.spec.ts +40 -33
- package/app/components/01.atoms/animations/scroll-reveal-frame/tests/__snapshots__/ScrollRevealFrame.spec.ts.snap +4 -4
- package/app/components/01.atoms/animations/scroll-reveal-image/CONSUMER-STYLING.md +74 -0
- package/app/components/01.atoms/animations/scroll-reveal-image/ScrollRevealImage.vue +14 -44
- package/app/components/01.atoms/animations/scroll-reveal-image/stories/ScrollRevealImage.stories.ts +50 -1
- package/app/components/01.atoms/animations/scroll-reveal-image/tests/ScrollRevealImage.spec.ts +27 -20
- package/app/components/01.atoms/animations/scroll-reveal-image/tests/__snapshots__/ScrollRevealImage.spec.ts.snap +4 -4
- package/app/components/01.atoms/animations/section-parallax/CONSUMER-STYLING.md +21 -4
- package/app/components/01.atoms/animations/view-timeline/CONSUMER-STYLING.md +25 -0
- package/app/components/01.atoms/banner-video/CONSUMER-STYLING.md +12 -5
- package/app/components/01.atoms/canvas-switcher/CONSUMER-STYLING.md +20 -7
- package/app/components/01.atoms/canvas-switcher/CanvasSwitcher.vue +12 -7
- package/app/components/01.atoms/card/CONSUMER-STYLING.md +47 -42
- package/app/components/01.atoms/card/CardCore.vue +7 -17
- package/app/components/01.atoms/clipped-panel/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/content-wrappers/docs-pages/CONSUMER-STYLING.md +127 -0
- package/app/components/01.atoms/content-wrappers/docs-pages/ContentDocs.vue +44 -77
- package/app/components/01.atoms/content-wrappers/docs-pages/stories/ContentDocs.stories.ts +3 -3
- package/app/components/01.atoms/content-wrappers/layout-grid/dashboard-quad-grid/CONSUMER-STYLING.md +14 -1
- package/app/components/01.atoms/content-wrappers/layout-grid/dashboard-quad-grid/stories/DashboardQuadGrid.stories.ts +2 -0
- package/app/components/01.atoms/content-wrappers/layout-grid/dashboard-stats-grid/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/content-wrappers/layout-grid/dashboard-stats-grid/stories/DashboardStatsGrid.stories.ts +2 -0
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-cols/CONSUMER-STYLING.md +72 -0
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-cols/LayoutGridByCols.vue +26 -25
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-cols/stories/LayoutGridByCols.stories.ts +91 -107
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-cols/tests/LayoutGridByCols.spec.ts +50 -15
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-cols/tests/__snapshots__/LayoutGridByCols.spec.ts.snap +5 -5
- package/app/components/01.atoms/display-banner/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/display-dialog/CONSUMER-STYLING.md +82 -54
- package/app/components/01.atoms/display-dialog/DisplayDialog.vue +38 -45
- package/app/components/01.atoms/display-dialog/stories/DisplayDialog.stories.ts +25 -0
- package/app/components/01.atoms/display-dialog/tests/DisplayDialog.spec.ts +21 -0
- package/app/components/01.atoms/display-pill/CONSUMER-STYLING.md +112 -0
- package/app/components/01.atoms/display-pill/DisplayPill.vue +88 -50
- package/app/components/01.atoms/display-pill/stories/DisplayPill.stories.ts +56 -3
- package/app/components/01.atoms/display-pill/tests/DisplayPill.spec.ts +104 -4
- package/app/components/01.atoms/display-pill/tests/__snapshots__/DisplayPill.spec.ts.snap +3 -3
- package/app/components/01.atoms/display-tooltip/CONSUMER-STYLING.md +22 -2
- package/app/components/01.atoms/display-tooltip/DisplayTooltip.vue +18 -26
- package/app/components/01.atoms/glass-panel/CONSUMER-STYLING.md +91 -0
- package/app/components/01.atoms/glass-panel/GlassPanel.vue +34 -30
- package/app/components/01.atoms/glass-panel/stories/GlassPanel.stories.ts +121 -0
- package/app/components/01.atoms/glass-panel/tests/GlassPanel.spec.ts +61 -0
- package/app/components/01.atoms/grids/auto-grid/AutoGrid.vue +5 -10
- package/app/components/01.atoms/grids/auto-grid/CONSUMER-STYLING.md +76 -0
- package/app/components/01.atoms/grids/auto-grid/stories/AutoGrid.stories.ts +5 -4
- package/app/components/01.atoms/grids/auto-grid/tests/AutoGrid.spec.ts +8 -0
- package/app/components/01.atoms/grids/column-flow-grid/CONSUMER-STYLING.md +11 -2
- package/app/components/01.atoms/grids/grid-stack/CONSUMER-STYLING.md +76 -0
- package/app/components/01.atoms/grids/grid-stack/GridStack.vue +6 -1
- package/app/components/01.atoms/grids/grid-stack/stories/GridStack.stories.ts +1 -1
- package/app/components/01.atoms/grids/grid-stack/tests/GridStack.spec.ts +35 -0
- package/app/components/01.atoms/grids/masonry-grid/CONSUMER-STYLING.md +11 -2
- package/app/components/01.atoms/navigation/breadcrumb/Breadcrumb.vue +5 -10
- package/app/components/01.atoms/navigation/breadcrumb/CONSUMER-STYLING.md +15 -0
- package/app/components/01.atoms/navigation/skip-links/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/navigation/tabs/CONSUMER-STYLING.md +21 -0
- package/app/components/01.atoms/page-row/CONSUMER-STYLING.md +46 -8
- package/app/components/01.atoms/page-row/PageRow.vue +17 -13
- package/app/components/01.atoms/page-row/stories/PageRow.stories.ts +8 -0
- package/app/components/01.atoms/page-row/tests/PageRow.spec.ts +7 -11
- package/app/components/01.atoms/pop-over/CONSUMER-STYLING.md +13 -0
- package/app/components/01.atoms/qr-code/CONSUMER-STYLING.md +48 -0
- package/app/components/01.atoms/qr-code/DisplayQrCode.vue +5 -1
- package/app/components/01.atoms/qr-code/stories/DisplayQrCode.stories.ts +11 -3
- package/app/components/01.atoms/qr-code/tests/DisplayQrCode.spec.ts +15 -0
- package/app/components/01.atoms/text-block/CONSUMER-STYLING.md +49 -0
- package/app/components/01.atoms/text-block/TextBlock.vue +13 -5
- package/app/components/01.atoms/text-block/stories/TextBlock.stories.ts +84 -0
- package/app/components/01.atoms/text-block/tests/TextBlock.spec.ts +78 -0
- package/app/components/01.atoms/text-block/tests/__snapshots__/TextBlock.spec.ts.snap +7 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/CONSUMER-STYLING.md +56 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +10 -5
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +11 -0
- package/app/components/01.atoms/text-blocks/header-block/CONSUMER-STYLING.md +16 -1
- package/app/components/01.atoms/text-blocks/hero-text/CONSUMER-STYLING.md +74 -0
- package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +14 -9
- package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +11 -0
- package/app/components/01.atoms/text-blocks/link-text/CONSUMER-STYLING.md +45 -0
- package/app/components/01.atoms/text-blocks/link-text/LinkText.vue +15 -8
- package/app/components/01.atoms/text-blocks/link-text/tests/LinkText.spec.ts +11 -0
- package/app/components/01.atoms/ui-block-decorated/CONSUMER-STYLING.md +13 -0
- package/app/components/02.molecules/action-menu/ActionMenu.vue +28 -30
- package/app/components/02.molecules/action-menu/{ActionMenuItemCore.vue → ActionMenuItem.vue} +12 -14
- package/app/components/02.molecules/action-menu/CONSUMER-STYLING.md +90 -76
- package/app/components/02.molecules/action-menu/stories/ActionMenu.stories.ts +48 -41
- package/app/components/02.molecules/action-menu/tests/ActionMenu.spec.ts +46 -1
- package/app/components/02.molecules/action-menu/tests/{ActionMenuItemCore.spec.ts → ActionMenuItem.spec.ts} +11 -5
- package/app/components/02.molecules/action-menu/tests/__snapshots__/ActionMenuItem.spec.ts.snap +27 -0
- package/app/components/02.molecules/alert-content/AlertContent.vue +17 -8
- package/app/components/02.molecules/alert-content/AlertContentInner.vue +57 -30
- package/app/components/02.molecules/alert-content/CONSUMER-STYLING.md +84 -0
- package/app/components/02.molecules/alert-content/stories/AlertContent.stories.ts +39 -0
- package/app/components/02.molecules/alert-content/tests/AlertContent.spec.ts +32 -0
- package/app/components/02.molecules/alert-content/tests/AlertContentInner.spec.ts +32 -0
- package/app/components/02.molecules/alert-masked-content/AlertMaskedContent.vue +9 -5
- package/app/components/02.molecules/alert-masked-content/CONSUMER-STYLING.md +73 -0
- package/app/components/02.molecules/alert-masked-content/stories/AlertMaskedContent.stories.ts +91 -10
- package/app/components/02.molecules/alert-masked-content/tests/AlertMaskedContent.spec.ts +52 -0
- package/app/components/02.molecules/cookie-consent-banner/CONSUMER-STYLING.md +95 -0
- package/app/components/02.molecules/cookie-consent-banner/CookieConsentBanner.vue +149 -0
- package/app/components/{01.atoms → 02.molecules}/cookie-consent-banner/stories/CookieConsentBanner.stories.ts +22 -3
- package/app/components/{01.atoms → 02.molecules}/cookie-consent-banner/tests/CookieConsentBanner.spec.ts +81 -4
- package/app/components/02.molecules/display-avatar/CONSUMER-STYLING.md +63 -0
- package/app/components/02.molecules/display-avatar/DisplayAvatar.vue +120 -0
- package/app/components/{01.atoms → 02.molecules}/display-avatar/stories/DisplayAvatar.stories.ts +56 -14
- package/app/components/{01.atoms → 02.molecules}/display-avatar/tests/DisplayAvatar.spec.ts +43 -11
- package/app/components/02.molecules/display-avatar/tests/__snapshots__/DisplayAvatar.spec.ts.snap +11 -0
- package/app/components/02.molecules/display-chip/CONSUMER-STYLING.md +57 -0
- package/app/components/02.molecules/display-chip/DisplayChip.vue +50 -83
- package/app/components/02.molecules/display-chip/tests/DisplayChip.spec.ts +10 -10
- package/app/components/02.molecules/display-chip/tests/__snapshots__/DisplayChip.spec.ts.snap +4 -4
- package/app/components/02.molecules/display-theme-switch/CONSUMER-STYLING.md +25 -4
- package/app/components/02.molecules/display-theme-switch/DisplayThemeSwitch.vue +9 -6
- package/app/components/02.molecules/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +6 -1
- package/app/components/02.molecules/display-theme-switch/tests/DisplayThemeSwitch.spec.ts +10 -1
- package/app/components/02.molecules/display-tooltip-defined/CONSUMER-STYLING.md +11 -0
- package/app/components/02.molecules/expandable/accordian/CONSUMER-STYLING.md +11 -4
- package/app/components/02.molecules/expandable/expanding-panel/CONSUMER-STYLING.md +12 -5
- package/app/components/02.molecules/expandable/expanding-panel-classic/CONSUMER-STYLING.md +12 -5
- package/app/components/02.molecules/input-copy/CONSUMER-STYLING.md +12 -5
- package/app/components/02.molecules/input-copy/InputCopy.vue +12 -25
- package/app/components/02.molecules/input-copy/stories/InputCopy.stories.ts +1 -1
- package/app/components/02.molecules/input-copy/tests/InputCopy.spec.ts +1 -1
- package/app/components/02.molecules/navigation/deep-expanding-menu/CONSUMER-STYLING.md +13 -0
- package/app/components/02.molecules/navigation/deep-expanding-menu-classic/CONSUMER-STYLING.md +11 -0
- package/app/components/02.molecules/navigation/site-navigation/CONSUMER-STYLING.md +109 -0
- package/app/components/02.molecules/navigation/site-navigation/SiteNavigation.vue +37 -55
- package/app/components/02.molecules/navigation/site-navigation/stories/SiteNavigation.stories.ts +22 -1
- package/app/components/02.molecules/navigation/site-navigation/tests/SiteNavigation.spec.ts +41 -6
- package/app/components/02.molecules/navigation/tab-navigation/CONSUMER-STYLING.md +13 -8
- package/app/components/02.molecules/navigation/tab-navigation/TabNavigation.vue +18 -36
- package/app/components/02.molecules/navigation/tab-navigation/stories/TabNavigation.stories.ts +1 -1
- package/app/components/02.molecules/navigation/tab-navigation/tests/TabNavigation.spec.ts +1 -1
- package/app/components/02.molecules/opening-hours/CONSUMER-STYLING.md +134 -0
- package/app/components/02.molecules/opening-hours/OpeningHours.vue +352 -0
- package/app/components/02.molecules/opening-hours/stories/OpeningHours.stories.ts +127 -0
- package/app/components/02.molecules/opening-hours/tests/OpeningHours.spec.ts +228 -0
- package/app/components/02.molecules/opening-hours/tests/OpeningHours.structuredData.spec.ts +45 -0
- package/app/components/02.molecules/opening-hours/tests/__snapshots__/OpeningHours.spec.ts.snap +23 -0
- package/app/components/02.molecules/opening-hours/tests/buildOpeningHoursSpecification.spec.ts +52 -0
- package/app/components/02.molecules/price-list/CONSUMER-STYLING.md +106 -0
- package/app/components/02.molecules/price-list/PriceList.vue +48 -40
- package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +15 -2
- package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +39 -2
- package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +4 -16
- package/app/components/02.molecules/pricing-card/CONSUMER-STYLING.md +12 -5
- package/app/components/02.molecules/pricing-card/PricingCard.vue +28 -60
- package/app/components/02.molecules/pricing-card/tests/PricingCard.spec.ts +1 -1
- package/app/components/02.molecules/profile-section/CONSUMER-STYLING.md +53 -0
- package/app/components/02.molecules/profile-section/ProfileSection.vue +53 -66
- package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +4 -4
- package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +6 -12
- package/app/components/02.molecules/prompt/CONSUMER-STYLING.md +51 -0
- package/app/components/{01.atoms → 02.molecules}/prompt/DisplayPrompt.vue +23 -8
- package/app/components/{01.atoms → 02.molecules}/prompt/stories/DisplayPrompt.stories.ts +18 -1
- package/app/components/{01.atoms → 02.molecules}/prompt/tests/DisplayPrompt.spec.ts +37 -7
- package/app/components/02.molecules/qr-code/CONSUMER-STYLING.md +66 -0
- package/app/components/02.molecules/qr-code/CaptureQrCode.vue +31 -12
- package/app/components/02.molecules/qr-code/DecodeQrCode.vue +55 -19
- package/app/components/02.molecules/qr-code/stories/CaptureQrCode.stories.ts +56 -0
- package/app/components/02.molecules/qr-code/stories/DecodeQrCode.stories.ts +53 -0
- package/app/components/02.molecules/qr-code/tests/CaptureQrCode.spec.ts +68 -20
- package/app/components/02.molecules/qr-code/tests/DecodeQrCode.spec.ts +44 -8
- package/app/components/02.molecules/samaritan-prompt/CONSUMER-STYLING.md +118 -0
- package/app/components/02.molecules/samaritan-prompt/SamaritanPrompt.vue +108 -51
- package/app/components/02.molecules/samaritan-prompt/SamaritanPromptMixed.vue +63 -62
- package/app/components/02.molecules/samaritan-prompt/stories/SamaritanPrompt.stories.ts +129 -0
- package/app/components/02.molecules/samaritan-prompt/stories/SamaritanPromptMixed.stories.ts +124 -0
- package/app/components/02.molecules/samaritan-prompt/tests/SamaritanPrompt.spec.ts +66 -0
- package/app/components/02.molecules/samaritan-prompt/tests/SamaritanPromptMixed.spec.ts +95 -17
- package/app/components/02.molecules/select-menu/CONSUMER-STYLING.md +11 -2
- package/app/components/02.molecules/social-icons-list/CONSUMER-STYLING.md +43 -0
- package/app/components/02.molecules/social-icons-list/SocialIconsList.vue +15 -15
- package/app/components/02.molecules/social-icons-list/stories/SocialIconsList.stories.ts +6 -1
- package/app/components/02.molecules/social-icons-list/tests/SocialIconsList.spec.ts +22 -1
- package/app/components/02.molecules/social-icons-list/tests/__snapshots__/SocialIconsList.spec.ts.snap +3 -3
- package/app/components/02.molecules/stepper-list/CONSUMER-STYLING.md +44 -5
- package/app/components/02.molecules/stepper-list/StepperList.vue +23 -43
- package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +9 -0
- package/app/components/{01.atoms → 02.molecules}/toast/CONSUMER-STYLING.md +14 -0
- package/app/components/{01.atoms → 02.molecules}/toast/DisplayToast.vue +1 -2
- package/app/components/{01.atoms → 02.molecules}/toast/DisplayToastProvider.vue +1 -2
- package/app/components/{01.atoms → 02.molecules}/toast/stories/DisplayToast.stories.ts +1 -1
- package/app/components/{01.atoms → 02.molecules}/toast/stories/DisplayToastProvider.stories.ts +1 -1
- package/app/components/03.organisms/image-galleries/carousel-flip/CONSUMER-STYLING.md +13 -0
- package/app/components/03.organisms/image-galleries/slider-gallery/CONSUMER-STYLING.md +137 -0
- package/app/components/03.organisms/image-galleries/slider-gallery/SliderGallery.vue +378 -343
- package/app/components/03.organisms/image-galleries/slider-gallery/stories/SliderGallery.stories.ts +26 -1
- package/app/components/03.organisms/image-galleries/slider-gallery/tests/SliderGallery.spec.ts +102 -23
- package/app/components/03.organisms/image-galleries/slider-gallery/tests/__snapshots__/SliderGallery.spec.ts.snap +44 -44
- package/app/components/03.organisms/responsive-header/CONSUMER-STYLING.md +12 -1
- package/app/components/03.organisms/responsive-header/ResponsiveHeader.vue +0 -4
- package/app/components/03.organisms/services/service-detail/CONSUMER-STYLING.md +24 -3
- package/app/components/03.organisms/services/service-detail/ServiceDetail.vue +3 -3
- package/app/components/03.organisms/services/service-detail/stories/ServiceDetail.stories.ts +13 -13
- package/app/components/03.organisms/services/service-detail/tests/__snapshots__/ServiceDetail.spec.ts.snap +1 -1
- package/app/components/03.organisms/services/service-summary/CONSUMER-STYLING.md +24 -7
- package/app/components/03.organisms/services/service-summary/ServiceSummary.vue +3 -3
- package/app/components/03.organisms/services/service-summary/stories/ServiceSummary.stories.ts +1 -1
- package/app/components/03.organisms/services/service-summary/tests/__snapshots__/ServiceSummary.spec.ts.snap +1 -1
- package/app/components/03.organisms/services/services-card/CONSUMER-STYLING.md +11 -2
- package/app/components/03.organisms/services/services-card/ServicesCard.vue +17 -26
- package/app/components/03.organisms/services/services-card/tests/ServicesCard.spec.ts +21 -0
- package/app/components/03.organisms/services/services-grids/CONSUMER-STYLING.md +50 -0
- package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +9 -16
- package/app/components/03.organisms/services/services-grids/stories/ServicesCardGrid.stories.ts +6 -0
- package/app/components/03.organisms/services/services-grids/tests/ServicesCardGrid.spec.ts +18 -0
- package/app/components/03.organisms/services/services-grids/tests/__snapshots__/ServiceSummaryGrid.spec.ts.snap +3 -3
- package/app/components/03.organisms/services/services-grids/tests/__snapshots__/ServicesCardGrid.spec.ts.snap +3 -3
- package/app/components/03.organisms/site-header/CONSUMER-STYLING.md +12 -1
- package/app/components/04.templates/page-hero-highlights/CONSUMER-STYLING.md +103 -0
- package/app/components/04.templates/page-hero-highlights/PageHeroHighlights.vue +144 -193
- package/app/components/04.templates/page-hero-highlights/PageHeroHighlightsHeader.vue +27 -37
- package/app/components/04.templates/page-hero-highlights/stories/PageHeroHighlights.stories.ts +56 -60
- package/app/components/04.templates/page-hero-highlights/stories/PageHeroHighlightsHeader.stories.ts +2 -2
- package/app/components/04.templates/page-hero-highlights/tests/PageHeroHighlights.spec.ts +10 -10
- package/app/components/04.templates/page-hero-highlights/tests/PageHeroHighlightsHeader.spec.ts +7 -7
- package/app/components/04.templates/page-hero-highlights/tests/__snapshots__/PageHeroHighlights.spec.ts.snap +6 -6
- package/app/components/05.forms/form-errors/CONSUMER-STYLING.md +112 -0
- package/app/components/05.forms/form-errors/InputError.vue +101 -122
- package/app/components/05.forms/form-errors/stories/InputError.stories.ts +125 -0
- package/app/components/05.forms/form-errors/tests/InputError.spec.ts +82 -31
- package/app/components/05.forms/form-field/CONSUMER-STYLING.md +91 -0
- package/app/components/05.forms/form-field/FormField.vue +26 -35
- package/app/components/05.forms/form-field/stories/FormField.stories.ts +104 -0
- package/app/components/05.forms/form-field/tests/FormField.spec.ts +75 -0
- package/app/components/05.forms/form-fieldset/CONSUMER-STYLING.md +88 -0
- package/app/components/05.forms/form-fieldset/FormFieldset.vue +34 -28
- package/app/components/05.forms/form-fieldset/stories/FormFieldset.stories.ts +84 -0
- package/app/components/05.forms/form-fieldset/tests/FormFieldset.spec.ts +111 -0
- package/app/components/05.forms/form-wrapper/CONSUMER-STYLING.md +101 -0
- package/app/components/05.forms/form-wrapper/FormWrapper.vue +32 -15
- package/app/components/05.forms/form-wrapper/stories/FormWrapper.stories.ts +75 -0
- package/app/components/05.forms/form-wrapper/tests/FormWrapper.spec.ts +57 -0
- package/app/components/05.forms/input-button/CONSUMER-STYLING.md +52 -7
- package/app/components/05.forms/input-button/{InputButtonCore.vue → InputButton.vue} +60 -18
- package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts → input-button.playwright.ts} +5 -5
- package/app/components/05.forms/input-button/stories/{InputButtonCore.stories.ts → InputButton.stories.ts} +8 -10
- package/app/components/05.forms/input-button/tests/{InputButtonCore.spec.ts → InputButton.spec.ts} +75 -19
- package/app/components/05.forms/input-button/tests/__snapshots__/{InputButtonCore.spec.ts.snap → InputButton.spec.ts.snap} +18 -18
- package/app/components/05.forms/input-checkbox/CONSUMER-STYLING.md +93 -0
- package/app/components/05.forms/input-checkbox/MultipleCheckboxes.vue +19 -25
- package/app/components/05.forms/input-checkbox/SingleCheckbox.vue +17 -43
- package/app/components/05.forms/input-checkbox/stories/MultipleCheckboxes.stories.ts +104 -0
- package/app/components/05.forms/input-checkbox/stories/SingleCheckbox.stories.ts +75 -0
- package/app/components/05.forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +91 -53
- package/app/components/05.forms/input-checkbox/tests/SingleCheckbox.spec.ts +112 -0
- package/app/components/05.forms/input-checkbox-radio/CONSUMER-STYLING.md +115 -35
- package/app/components/05.forms/input-checkbox-radio/InputCheckboxRadio.vue +158 -0
- package/app/components/05.forms/input-checkbox-radio/InputCheckboxRadioButton.vue +102 -101
- package/app/components/05.forms/input-checkbox-radio/InputCheckboxRadioField.vue +100 -0
- package/app/components/05.forms/input-checkbox-radio/stories/{InputCheckboxRadioCore.stories.ts → InputCheckboxRadio.stories.ts} +23 -8
- package/app/components/05.forms/input-checkbox-radio/stories/InputCheckboxRadioButton.stories.ts +60 -16
- package/app/components/05.forms/input-checkbox-radio/stories/InputCheckboxRadioField.stories.ts +93 -0
- package/app/components/05.forms/input-checkbox-radio/tests/InputCheckboxRadio.spec.ts +174 -0
- package/app/components/05.forms/input-checkbox-radio/tests/InputCheckboxRadioButton.spec.ts +87 -0
- package/app/components/05.forms/input-checkbox-radio/tests/InputCheckboxRadioField.spec.ts +87 -0
- package/app/components/05.forms/input-description/CONSUMER-STYLING.md +177 -0
- package/app/components/05.forms/input-description/InputDescription.vue +45 -24
- package/app/components/05.forms/input-description/stories/InputDescription.stories.ts +160 -0
- package/app/components/05.forms/input-description/tests/InputDescription.spec.ts +62 -386
- package/app/components/05.forms/input-label/CONSUMER-STYLING.md +134 -0
- package/app/components/05.forms/input-label/InputLabel.vue +99 -38
- package/app/components/05.forms/input-label/stories/InputLabel.stories.ts +236 -0
- package/app/components/05.forms/input-label/tests/InputLabel.spec.ts +113 -342
- package/app/components/05.forms/input-number/CONSUMER-STYLING.md +16 -7
- package/app/components/05.forms/input-number/{InputNumberCore.vue → InputNumber.vue} +6 -6
- package/app/components/05.forms/input-number/{variants/InputNumberDefault.vue → InputNumberField.vue} +12 -15
- package/app/components/05.forms/input-number/stories/{InputNumberCore.stories.ts → InputNumber.stories.ts} +6 -6
- package/app/components/05.forms/input-number/{variants/stories/InputNumberDefault.stories.ts → stories/InputNumberField.stories.ts} +5 -5
- package/app/components/05.forms/input-number/tests/{InputNumberCore.spec.ts → InputNumber.spec.ts} +2 -2
- package/app/components/05.forms/input-number/{variants/tests/InputNumberDefault.spec.ts → tests/InputNumberField.spec.ts} +8 -8
- package/app/components/05.forms/input-radio/CONSUMER-STYLING.md +70 -0
- package/app/components/05.forms/input-radio/MultipleRadiobuttons.vue +19 -30
- package/app/components/05.forms/input-radio/stories/MultipleRadiobuttons.stories.ts +116 -0
- package/app/components/05.forms/input-radio/tests/MultipleRadioButtons.spec.ts +125 -74
- package/app/components/05.forms/input-range/CONSUMER-STYLING.md +13 -0
- package/app/components/05.forms/input-range/InputRangeCore.vue +1 -1
- package/app/components/05.forms/input-range/{variants/InputRangeDefault.vue → InputRangeDefault.vue} +7 -11
- package/app/components/05.forms/input-range/{variants/tests → tests}/InputRangeDefault.spec.ts +1 -1
- package/app/components/05.forms/input-select/CONSUMER-STYLING.md +11 -2
- package/app/components/05.forms/input-select/{variants/InputSelectWithLabel.vue → InputSelectWithLabel.vue} +6 -9
- package/app/components/05.forms/input-select/stories/InputSelectWithLabel.stories.ts +1 -1
- package/app/components/05.forms/input-text/CONSUMER-STYLING.md +12 -3
- package/app/components/05.forms/input-text/{variants/InputPasswordWithLabel.vue → InputPasswordWithLabel.vue} +3 -3
- package/app/components/05.forms/input-text/{variants/InputTextAsNumberWithLabel.vue → InputTextAsNumberWithLabel.vue} +12 -15
- package/app/components/05.forms/input-text/InputTextCore.vue +8 -11
- package/app/components/05.forms/input-text/{variants/InputTextWithLabel.vue → InputTextWithLabel.vue} +9 -10
- package/app/components/05.forms/input-text/stories/InputPasswordWithLabel.stories.ts +1 -1
- package/app/components/05.forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +1 -1
- package/app/components/05.forms/input-text/stories/InputTextWithLabel.stories.ts +1 -1
- package/app/components/05.forms/input-text/tests/InputPasswordWithLabel.spec.ts +2 -1
- package/app/components/05.forms/input-text/tests/InputTextAsNumberWithLabel.spec.ts +1 -1
- package/app/components/05.forms/input-text/tests/InputTextWithLabel.spec.ts +2 -1
- package/app/components/05.forms/input-textarea/CONSUMER-STYLING.md +11 -2
- package/app/components/05.forms/input-textarea/{variants/InputTextareaWithLabel.vue → InputTextareaWithLabel.vue} +3 -7
- package/app/components/05.forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +1 -1
- package/app/components/05.forms/patterns/stories/ContactForm.stories.ts +9 -10
- package/app/components/05.forms/patterns/stories/LoginForm.stories.ts +10 -10
- package/app/components/05.forms/patterns/stories/MigratedFieldsForm.stories.ts +246 -101
- package/app/components/05.forms/pending-effect/CONSUMER-STYLING.md +92 -0
- package/app/components/05.forms/pending-effect/PendingEffect.vue +52 -45
- package/app/components/05.forms/pending-effect/stories/PendingEffect.stories.ts +132 -0
- package/app/components/05.forms/pending-effect/tests/PendingEffect.spec.ts +67 -0
- package/app/components/05.forms/toggle-switch/CONSUMER-STYLING.md +26 -2
- package/app/components/05.forms/toggle-switch/ToggleSwitchCore.vue +10 -29
- package/app/components/05.forms/toggle-switch/{variants/ToggleSwitchWithLabel.vue → ToggleSwitchWithLabel.vue} +25 -12
- package/app/components/05.forms/toggle-switch/{variants/ToggleSwitchWithLabelInline.vue → ToggleSwitchWithLabelInline.vue} +2 -4
- package/app/components/05.forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +2 -4
- package/app/components/05.forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +4 -1
- package/app/components/05.forms/toggle-switch/tests/ToggleSwitchWithLabel.spec.ts +133 -0
- package/app/components/05.forms/triple-toggle-switch/CONSUMER-STYLING.md +75 -62
- package/app/components/05.forms/triple-toggle-switch/TripleToggleSwitch.vue +243 -0
- package/app/components/05.forms/triple-toggle-switch/stories/TripleToggleSwitch.stories.ts +104 -0
- package/app/components/05.forms/triple-toggle-switch/tests/TripleToggleSwitch.spec.ts +138 -0
- package/app/composables/tests/useCancellableTimer.spec.ts +48 -0
- package/app/composables/tests/useMaxChildWidth.spec.ts +67 -0
- package/app/composables/useCancellableTimer.ts +27 -7
- package/app/composables/useMaxChildWidth.ts +4 -6
- package/app/types/app-config.d.ts +10 -0
- package/app/types/components/cookie-consent-banner.d.ts +3 -0
- package/app/types/components/index.ts +6 -1
- package/app/types/components/opening-hours.d.ts +48 -0
- package/app/types/components/price-list.d.ts +11 -0
- package/app/types/components/profile-section.d.ts +6 -0
- package/app/types/components/samaritan-prompt.d.ts +13 -0
- package/app/types/components/services-card.d.ts +9 -0
- package/app/types/components/slider-gallery.d.ts +2 -0
- package/app/types/components/social-icons-list.d.ts +2 -0
- package/app/types/forms/types.forms.d.ts +3 -0
- package/app/types/forms/types.zodFormControl.d.ts +0 -3
- package/app/utils/opening-hours.ts +44 -0
- package/nuxt.config.ts +5 -1
- package/package.json +2 -2
- package/ramps.config.mjs +1 -1
- package/.claude/commands/create-commit-message.md +0 -13
- package/.claude/commands/create-release-notes.md +0 -34
- package/.claude/commands/migrate-component.md +0 -169
- package/.claude/commands/run-commit.md +0 -13
- package/.claude/component-ledger/artifact-url.txt +0 -1
- package/.claude/component-ledger/audit.json +0 -1
- package/.claude/component-ledger/build.mjs +0 -164
- package/.claude/component-ledger/output.html +0 -569
- package/.claude/component-ledger/template.html +0 -569
- package/.claude/hooks/check-component-update.sh +0 -95
- package/.claude/hooks/refresh-component-ledger.sh +0 -32
- package/.claude/settings.json +0 -134
- package/.claude/settings.local.json +0 -38
- package/.claude/skills/components/alert-content-inner.md +0 -60
- package/.claude/skills/components/navigation-horizontal.md +0 -99
- package/.claude/skills/components/samaritan-prompt-mixed.md +0 -139
- package/app/components/01.atoms/content-wrappers/content-columns-2/ContentColumns2.vue +0 -51
- package/app/components/01.atoms/content-wrappers/content-columns-2/stories/ContentColumns2.stories.ts +0 -110
- package/app/components/01.atoms/content-wrappers/content-columns-2/tests/ContentColumns2.spec.ts +0 -105
- package/app/components/01.atoms/content-wrappers/content-columns-2/tests/__snapshots__/ContentColumns2.spec.ts.snap +0 -14
- package/app/components/01.atoms/content-wrappers/content-width/ContentWidth.vue +0 -88
- package/app/components/01.atoms/content-wrappers/content-width/stories/ContentWidth.stories.ts +0 -362
- package/app/components/01.atoms/content-wrappers/content-width/tests/ContentWidth.spec.ts +0 -132
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-cols/tests/__snapshots__/LayoutGrid.spec.ts.snap +0 -36
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-width/LayoutGridByWidth.vue +0 -70
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-width/stories/LayoutGridByWidth.stories.ts +0 -220
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-width/tests/LayoutGridByWidth.spec.ts +0 -174
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-width/tests/__snapshots__/LayoutGrid.spec.ts.snap +0 -36
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-width/tests/__snapshots__/LayoutGridByCols.spec.ts.snap +0 -36
- package/app/components/01.atoms/content-wrappers/layout-grid/layout-grid-by-width/tests/__snapshots__/LayoutGridByWidth.spec.ts.snap +0 -36
- package/app/components/01.atoms/cookie-consent-banner/CookieConsentBanner.vue +0 -148
- package/app/components/01.atoms/display-avatar/DisplayAvatar.vue +0 -130
- package/app/components/01.atoms/display-avatar/tests/__snapshots__/DisplayAvatar.spec.ts.snap +0 -11
- package/app/components/02.molecules/action-menu/tests/__snapshots__/ActionMenuItemCore.spec.ts.snap +0 -27
- package/app/components/02.molecules/navigation/navigation-horizontal/NavigationHorizontal.vue +0 -162
- package/app/components/02.molecules/navigation/navigation-horizontal/stories/NavigationHorizontal.stories.ts +0 -373
- package/app/components/02.molecules/navigation/navigation-horizontal/tests/NavigationHorizontal.spec.ts +0 -152
- package/app/components/02.molecules/navigation/navigation-horizontal/tests/__snapshots__/NavigationHorizontal.spec.ts.snap +0 -17
- package/app/components/02.molecules/qr-code/stories/QrCode.stories.ts +0 -101
- package/app/components/03.organisms/colour-finder/ColourFinder.vue +0 -1519
- package/app/components/05.forms/input-checkbox-radio/InputCheckboxRadioCore.vue +0 -202
- package/app/components/05.forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +0 -105
- package/app/components/05.forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +0 -320
- package/app/components/05.forms/toggle-switch/variants/tests/ToggleSwitchWithLabel.spec.ts +0 -77
- package/app/components/05.forms/triple-toggle-switch/TripleToggleSwitchCore.vue +0 -314
- package/app/components/05.forms/triple-toggle-switch/stories/TripleToggleSwitchCore.stories.ts +0 -63
- package/.vscode/{srcdev-component-dialog.code-snippets → srcdev-component-display-dialog.code-snippets} +0 -0
- package/app/components/{01.atoms → 02.molecules}/toast/tests/DisplayToast.spec.ts +1 -1
- /package/app/components/{01.atoms → 02.molecules}/toast/tests/DisplayToastProvider.spec.ts +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-icons-secondary-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-icons-secondary-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-icons-secondary-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-icons-tertiary-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-icons-tertiary-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-icons-tertiary-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-primary-pending-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-primary-pending-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-primary-pending-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-secondary-pill-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-secondary-pill-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-secondary-pill-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-tertiary-readonly-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-tertiary-readonly-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/combo-tertiary-readonly-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-default-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-default-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-default-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-error-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-error-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-error-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-success-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-success-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-success-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-warning-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-warning-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-theme-warning-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-primary-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-primary-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-primary-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-secondary-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-secondary-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-secondary-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-tertiary-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-tertiary-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-variant-tertiary-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/default-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/nuxt-icon-only-component-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/nuxt-icon-only-component-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/nuxt-icon-only-component-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-pending-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-pending-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-pending-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-pill-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-pill-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-pill-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-readonly-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-readonly-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/state-readonly-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- /package/app/components/05.forms/input-button/playwright/{input-button-core.playwright.ts-snapshots → input-button.playwright.ts-snapshots}/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- /package/app/components/05.forms/input-range/{variants/stories → stories}/InputRangeDefault.stories.ts +0 -0
- /package/app/components/05.forms/input-select/{variants/tests → tests}/InputSelectWithLabel.spec.ts +0 -0
- /package/app/components/05.forms/input-textarea/{variants/tests → tests}/InputTextareaWithLabel.spec.ts +0 -0
- /package/app/components/05.forms/toggle-switch/{variants/tests → tests}/ToggleSwitchWithLabelInline.spec.ts +0 -0
- /package/app/types/components/{navigation-horizontal.d.ts → nav-item.d.ts} +0 -0
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
<title>Component Ledger</title>
|
|
2
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap">
|
|
3
|
-
<style>
|
|
4
|
-
:root{
|
|
5
|
-
--paper:#eef0ea;
|
|
6
|
-
--surface:#ffffff;
|
|
7
|
-
--surface-2:#e4e7de;
|
|
8
|
-
--ink:#1b2420;
|
|
9
|
-
--ink-soft:#51594f;
|
|
10
|
-
--ink-faint:#838a7c;
|
|
11
|
-
--line:#cdd2c4;
|
|
12
|
-
--accent:#2f6f5e;
|
|
13
|
-
--accent-soft:#dce9e2;
|
|
14
|
-
--warn:#9c6a1f;
|
|
15
|
-
--warn-soft:#f3e4c8;
|
|
16
|
-
--bad:#a1423a;
|
|
17
|
-
--bad-soft:#f4dcd8;
|
|
18
|
-
--shadow: 0 1px 2px rgba(27,36,32,0.06), 0 8px 24px -12px rgba(27,36,32,0.18);
|
|
19
|
-
}
|
|
20
|
-
@media (prefers-color-scheme: dark){
|
|
21
|
-
:root:not([data-theme="light"]){
|
|
22
|
-
--paper:#12160f;
|
|
23
|
-
--surface:#191f18;
|
|
24
|
-
--surface-2:#222922;
|
|
25
|
-
--ink:#e7ebe0;
|
|
26
|
-
--ink-soft:#aab2a0;
|
|
27
|
-
--ink-faint:#707868;
|
|
28
|
-
--line:#333c30;
|
|
29
|
-
--accent:#67b79d;
|
|
30
|
-
--accent-soft:#1e3630;
|
|
31
|
-
--warn:#d9a54f;
|
|
32
|
-
--warn-soft:#3a2f18;
|
|
33
|
-
--bad:#e0847b;
|
|
34
|
-
--bad-soft:#3d201d;
|
|
35
|
-
--shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px -12px rgba(0,0,0,0.6);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
:root[data-theme="dark"]{
|
|
39
|
-
--paper:#12160f;
|
|
40
|
-
--surface:#191f18;
|
|
41
|
-
--surface-2:#222922;
|
|
42
|
-
--ink:#e7ebe0;
|
|
43
|
-
--ink-soft:#aab2a0;
|
|
44
|
-
--ink-faint:#707868;
|
|
45
|
-
--line:#333c30;
|
|
46
|
-
--accent:#67b79d;
|
|
47
|
-
--accent-soft:#1e3630;
|
|
48
|
-
--warn:#d9a54f;
|
|
49
|
-
--warn-soft:#3a2f18;
|
|
50
|
-
--bad:#e0847b;
|
|
51
|
-
--bad-soft:#3d201d;
|
|
52
|
-
--shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px -12px rgba(0,0,0,0.6);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
*{box-sizing:border-box;}
|
|
56
|
-
body{
|
|
57
|
-
background:var(--paper);
|
|
58
|
-
color:var(--ink);
|
|
59
|
-
font-family:"IBM Plex Sans", system-ui, sans-serif;
|
|
60
|
-
font-size:1.4rem;
|
|
61
|
-
line-height:1.5;
|
|
62
|
-
}
|
|
63
|
-
.mono{font-family:"IBM Plex Mono","SFMono-Regular",Menlo,monospace;}
|
|
64
|
-
::selection{background:var(--accent-soft); color:var(--ink);}
|
|
65
|
-
|
|
66
|
-
.wrap{
|
|
67
|
-
max-width:112rem;
|
|
68
|
-
margin:0 auto;
|
|
69
|
-
padding:4.8rem 3.2rem 8rem;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* ---------- header ---------- */
|
|
73
|
-
header.top{
|
|
74
|
-
display:flex;
|
|
75
|
-
justify-content:space-between;
|
|
76
|
-
align-items:flex-end;
|
|
77
|
-
gap:3.2rem;
|
|
78
|
-
border-bottom:0.1rem solid var(--line);
|
|
79
|
-
padding-bottom:2.4rem;
|
|
80
|
-
margin-bottom:3.2rem;
|
|
81
|
-
flex-wrap:wrap;
|
|
82
|
-
}
|
|
83
|
-
.title-block .eyebrow{
|
|
84
|
-
font-family:"IBM Plex Mono", monospace;
|
|
85
|
-
font-size:1.1rem;
|
|
86
|
-
letter-spacing:0.14em;
|
|
87
|
-
text-transform:uppercase;
|
|
88
|
-
color:var(--accent);
|
|
89
|
-
margin:0 0 0.8rem;
|
|
90
|
-
}
|
|
91
|
-
h1{
|
|
92
|
-
font-size:3.4rem;
|
|
93
|
-
font-weight:700;
|
|
94
|
-
margin:0 0 0.6rem;
|
|
95
|
-
text-wrap:balance;
|
|
96
|
-
letter-spacing:-0.01em;
|
|
97
|
-
}
|
|
98
|
-
.title-block p{
|
|
99
|
-
margin:0;
|
|
100
|
-
max-width:56rem;
|
|
101
|
-
color:var(--ink-soft);
|
|
102
|
-
font-size:1.5rem;
|
|
103
|
-
}
|
|
104
|
-
.meta-block{
|
|
105
|
-
text-align:right;
|
|
106
|
-
font-family:"IBM Plex Mono", monospace;
|
|
107
|
-
font-size:1.2rem;
|
|
108
|
-
color:var(--ink-faint);
|
|
109
|
-
white-space:nowrap;
|
|
110
|
-
}
|
|
111
|
-
.meta-block strong{color:var(--ink-soft); font-weight:500;}
|
|
112
|
-
|
|
113
|
-
/* ---------- stat strip ---------- */
|
|
114
|
-
.stats{
|
|
115
|
-
display:grid;
|
|
116
|
-
grid-template-columns:repeat(6, 1fr);
|
|
117
|
-
gap:1.2rem;
|
|
118
|
-
margin-bottom:3.6rem;
|
|
119
|
-
}
|
|
120
|
-
.stat{
|
|
121
|
-
background:var(--surface);
|
|
122
|
-
border:0.1rem solid var(--line);
|
|
123
|
-
border-radius:0.6rem;
|
|
124
|
-
padding:1.6rem 1.6rem 1.4rem;
|
|
125
|
-
box-shadow:var(--shadow);
|
|
126
|
-
}
|
|
127
|
-
.stat .num{
|
|
128
|
-
font-family:"IBM Plex Mono", monospace;
|
|
129
|
-
font-variant-numeric:tabular-nums;
|
|
130
|
-
font-size:2.6rem;
|
|
131
|
-
font-weight:600;
|
|
132
|
-
line-height:1;
|
|
133
|
-
}
|
|
134
|
-
.stat .label{
|
|
135
|
-
margin-top:0.6rem;
|
|
136
|
-
font-size:1.15rem;
|
|
137
|
-
color:var(--ink-soft);
|
|
138
|
-
text-transform:uppercase;
|
|
139
|
-
letter-spacing:0.05em;
|
|
140
|
-
}
|
|
141
|
-
.stat .bar{
|
|
142
|
-
margin-top:1rem;
|
|
143
|
-
height:0.4rem;
|
|
144
|
-
border-radius:99rem;
|
|
145
|
-
background:var(--surface-2);
|
|
146
|
-
overflow:hidden;
|
|
147
|
-
}
|
|
148
|
-
.stat .bar > span{
|
|
149
|
-
display:block;
|
|
150
|
-
height:100%;
|
|
151
|
-
background:var(--accent);
|
|
152
|
-
border-radius:99rem;
|
|
153
|
-
}
|
|
154
|
-
.stat.low .bar > span{background:var(--bad);}
|
|
155
|
-
.stat.mid .bar > span{background:var(--warn);}
|
|
156
|
-
|
|
157
|
-
/* ---------- narrative ---------- */
|
|
158
|
-
.finding{
|
|
159
|
-
display:grid;
|
|
160
|
-
grid-template-columns:1.4fr 1fr;
|
|
161
|
-
gap:2.4rem;
|
|
162
|
-
margin-bottom:4rem;
|
|
163
|
-
}
|
|
164
|
-
@media (max-width:820px){ .finding{grid-template-columns:1fr;} }
|
|
165
|
-
.finding h2{
|
|
166
|
-
font-size:1.9rem;
|
|
167
|
-
margin:0 0 1rem;
|
|
168
|
-
}
|
|
169
|
-
.finding p{margin:0 0 1rem; color:var(--ink-soft);}
|
|
170
|
-
.finding p:last-child{margin-bottom:0;}
|
|
171
|
-
.finding .card{
|
|
172
|
-
background:var(--surface);
|
|
173
|
-
border:0.1rem solid var(--line);
|
|
174
|
-
border-radius:0.6rem;
|
|
175
|
-
padding:2rem 2.2rem;
|
|
176
|
-
box-shadow:var(--shadow);
|
|
177
|
-
}
|
|
178
|
-
.card ol, .card ul{margin:0; padding-left:1.8rem;}
|
|
179
|
-
.card li{margin-bottom:0.7rem; color:var(--ink-soft);}
|
|
180
|
-
.card li:last-child{margin-bottom:0;}
|
|
181
|
-
.card li strong{color:var(--ink);}
|
|
182
|
-
|
|
183
|
-
/* ---------- controls ---------- */
|
|
184
|
-
.controls{
|
|
185
|
-
display:flex;
|
|
186
|
-
flex-wrap:wrap;
|
|
187
|
-
align-items:center;
|
|
188
|
-
gap:1rem;
|
|
189
|
-
margin-bottom:1.6rem;
|
|
190
|
-
}
|
|
191
|
-
.chip-group{display:flex; flex-wrap:wrap; gap:0.6rem;}
|
|
192
|
-
.chip{
|
|
193
|
-
font-family:"IBM Plex Mono", monospace;
|
|
194
|
-
font-size:1.15rem;
|
|
195
|
-
padding:0.5rem 1.1rem;
|
|
196
|
-
border-radius:99rem;
|
|
197
|
-
border:0.1rem solid var(--line);
|
|
198
|
-
background:var(--surface);
|
|
199
|
-
color:var(--ink-soft);
|
|
200
|
-
cursor:pointer;
|
|
201
|
-
transition:background .12s, color .12s, border-color .12s;
|
|
202
|
-
}
|
|
203
|
-
.chip:hover{border-color:var(--accent);}
|
|
204
|
-
.chip.active{
|
|
205
|
-
background:var(--ink);
|
|
206
|
-
border-color:var(--ink);
|
|
207
|
-
color:var(--paper);
|
|
208
|
-
}
|
|
209
|
-
.search{
|
|
210
|
-
margin-left:auto;
|
|
211
|
-
display:flex;
|
|
212
|
-
align-items:center;
|
|
213
|
-
gap:0.6rem;
|
|
214
|
-
background:var(--surface);
|
|
215
|
-
border:0.1rem solid var(--line);
|
|
216
|
-
border-radius:0.5rem;
|
|
217
|
-
padding:0.5rem 1rem;
|
|
218
|
-
}
|
|
219
|
-
.search input{
|
|
220
|
-
border:none;
|
|
221
|
-
background:transparent;
|
|
222
|
-
outline:none;
|
|
223
|
-
font-family:"IBM Plex Mono", monospace;
|
|
224
|
-
font-size:1.3rem;
|
|
225
|
-
color:var(--ink);
|
|
226
|
-
width:18rem;
|
|
227
|
-
}
|
|
228
|
-
.search input::placeholder{color:var(--ink-faint);}
|
|
229
|
-
.count-note{
|
|
230
|
-
font-family:"IBM Plex Mono", monospace;
|
|
231
|
-
font-size:1.15rem;
|
|
232
|
-
color:var(--ink-faint);
|
|
233
|
-
margin-bottom:1rem;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/* ---------- table ---------- */
|
|
237
|
-
.table-scroll{
|
|
238
|
-
overflow-x:auto;
|
|
239
|
-
border:0.1rem solid var(--line);
|
|
240
|
-
border-radius:0.6rem;
|
|
241
|
-
box-shadow:var(--shadow);
|
|
242
|
-
}
|
|
243
|
-
table{
|
|
244
|
-
width:100%;
|
|
245
|
-
border-collapse:collapse;
|
|
246
|
-
background:var(--surface);
|
|
247
|
-
min-width:78rem;
|
|
248
|
-
}
|
|
249
|
-
thead th{
|
|
250
|
-
position:sticky;
|
|
251
|
-
top:0;
|
|
252
|
-
background:var(--surface-2);
|
|
253
|
-
z-index:2;
|
|
254
|
-
text-align:left;
|
|
255
|
-
font-size:1.05rem;
|
|
256
|
-
text-transform:uppercase;
|
|
257
|
-
letter-spacing:0.05em;
|
|
258
|
-
color:var(--ink-soft);
|
|
259
|
-
font-weight:600;
|
|
260
|
-
padding:1rem 1rem;
|
|
261
|
-
border-bottom:0.1rem solid var(--line);
|
|
262
|
-
cursor:pointer;
|
|
263
|
-
white-space:nowrap;
|
|
264
|
-
user-select:none;
|
|
265
|
-
}
|
|
266
|
-
thead th:hover{color:var(--ink);}
|
|
267
|
-
thead th.sorted::after{content:" ▾"; color:var(--accent);}
|
|
268
|
-
thead th.sorted.asc::after{content:" ▴";}
|
|
269
|
-
tbody td{
|
|
270
|
-
padding:0.9rem 1rem;
|
|
271
|
-
border-bottom:0.1rem solid var(--line);
|
|
272
|
-
font-size:1.3rem;
|
|
273
|
-
vertical-align:middle;
|
|
274
|
-
}
|
|
275
|
-
tbody tr:last-child td{border-bottom:none;}
|
|
276
|
-
tbody tr:hover td{background:var(--surface-2);}
|
|
277
|
-
td.path{
|
|
278
|
-
font-family:"IBM Plex Mono", monospace;
|
|
279
|
-
font-size:1.2rem;
|
|
280
|
-
color:var(--ink);
|
|
281
|
-
}
|
|
282
|
-
td.path .n{color:var(--ink-faint); font-size:1.05rem; margin-left:0.4rem;}
|
|
283
|
-
.tier-pill{
|
|
284
|
-
font-family:"IBM Plex Mono", monospace;
|
|
285
|
-
font-size:1.05rem;
|
|
286
|
-
padding:0.15rem 0.6rem;
|
|
287
|
-
border-radius:0.3rem;
|
|
288
|
-
background:var(--surface-2);
|
|
289
|
-
color:var(--ink-soft);
|
|
290
|
-
white-space:nowrap;
|
|
291
|
-
}
|
|
292
|
-
.tier-pill.none{background:var(--bad-soft); color:var(--bad);}
|
|
293
|
-
td.check{text-align:center; font-size:1.5rem; line-height:1;}
|
|
294
|
-
.yes{color:var(--accent);}
|
|
295
|
-
.no{color:var(--ink-faint); opacity:0.5;}
|
|
296
|
-
.priv-count{
|
|
297
|
-
font-family:"IBM Plex Mono", monospace;
|
|
298
|
-
font-variant-numeric:tabular-nums;
|
|
299
|
-
font-size:1.2rem;
|
|
300
|
-
}
|
|
301
|
-
.priv-count.zero{color:var(--ink-faint);}
|
|
302
|
-
.priv-count.some{color:var(--ink-soft);}
|
|
303
|
-
.priv-count.many{color:var(--warn); font-weight:600;}
|
|
304
|
-
.score-bar{
|
|
305
|
-
display:inline-flex;
|
|
306
|
-
gap:0.2rem;
|
|
307
|
-
vertical-align:middle;
|
|
308
|
-
}
|
|
309
|
-
.score-bar span{
|
|
310
|
-
width:0.7rem;
|
|
311
|
-
height:0.7rem;
|
|
312
|
-
border-radius:50%;
|
|
313
|
-
background:var(--surface-2);
|
|
314
|
-
border:0.1rem solid var(--line);
|
|
315
|
-
}
|
|
316
|
-
.score-bar span.on{background:var(--accent); border-color:var(--accent);}
|
|
317
|
-
|
|
318
|
-
footer.note{
|
|
319
|
-
margin-top:2.4rem;
|
|
320
|
-
font-size:1.2rem;
|
|
321
|
-
color:var(--ink-faint);
|
|
322
|
-
max-width:80rem;
|
|
323
|
-
}
|
|
324
|
-
footer.note code{
|
|
325
|
-
font-family:"IBM Plex Mono", monospace;
|
|
326
|
-
background:var(--surface-2);
|
|
327
|
-
padding:0.1rem 0.4rem;
|
|
328
|
-
border-radius:0.3rem;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
@media (max-width:900px){
|
|
332
|
-
.stats{grid-template-columns:repeat(3,1fr);}
|
|
333
|
-
}
|
|
334
|
-
@media (max-width:560px){
|
|
335
|
-
.stats{grid-template-columns:repeat(2,1fr);}
|
|
336
|
-
.wrap{padding:3.2rem 1.6rem 6rem;}
|
|
337
|
-
h1{font-size:2.6rem;}
|
|
338
|
-
}
|
|
339
|
-
</style>
|
|
340
|
-
|
|
341
|
-
<div class="wrap">
|
|
342
|
-
|
|
343
|
-
<header class="top">
|
|
344
|
-
<div class="title-block">
|
|
345
|
-
<p class="eyebrow">nuxt-components · definition of done</p>
|
|
346
|
-
<h1>Component Ledger</h1>
|
|
347
|
-
<p>A scripted pass over every component folder against the current standard: tier placement, consumer styling docs, tests, Storybook coverage, public skill docs, and VS Code snippets. Regenerated automatically whenever a component change is staged for commit.</p>
|
|
348
|
-
</div>
|
|
349
|
-
<div class="meta-block">
|
|
350
|
-
last rebuilt <strong id="audited-at">—</strong><br>
|
|
351
|
-
<span id="rowcount">—</span> component groups · <span id="vuecount">—</span> .vue files
|
|
352
|
-
</div>
|
|
353
|
-
</header>
|
|
354
|
-
|
|
355
|
-
<section class="stats" id="stats"></section>
|
|
356
|
-
|
|
357
|
-
<section class="finding">
|
|
358
|
-
<div id="narrative"></div>
|
|
359
|
-
<div class="card">
|
|
360
|
-
<h2 style="margin-top:0;">Reference-quality components</h2>
|
|
361
|
-
<p style="margin-bottom:1rem; color:var(--ink-soft);">Pass every doc/test/story/skill/snippet check, sit in a tier, no stray <code class="mono">variants/</code> folder. Point future work at these when in doubt about the shape of "done":</p>
|
|
362
|
-
<ol id="reference-list"></ol>
|
|
363
|
-
</div>
|
|
364
|
-
</section>
|
|
365
|
-
|
|
366
|
-
<div class="controls">
|
|
367
|
-
<div class="chip-group" id="tier-filters"></div>
|
|
368
|
-
<div class="chip-group">
|
|
369
|
-
<button class="chip" data-gap-filter="0">only incomplete</button>
|
|
370
|
-
</div>
|
|
371
|
-
<div class="search">
|
|
372
|
-
<span class="mono" style="color:var(--ink-faint);">⌕</span>
|
|
373
|
-
<input type="text" id="search" placeholder="filter by path…">
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
<p class="count-note"><span id="visible-count">0</span> shown · click a column heading to sort</p>
|
|
377
|
-
|
|
378
|
-
<div class="table-scroll">
|
|
379
|
-
<table>
|
|
380
|
-
<thead>
|
|
381
|
-
<tr>
|
|
382
|
-
<th data-key="compdir" data-type="str">Component</th>
|
|
383
|
-
<th data-key="tier" data-type="str">Tier</th>
|
|
384
|
-
<th data-key="consumer_styling" data-type="bool" title="CONSUMER-STYLING.md present">Styling doc</th>
|
|
385
|
-
<th data-key="priv_tokens" data-type="num" title="Count of --_ prefixed vars — informational, not a defect count; see footer">--_ vars</th>
|
|
386
|
-
<th data-key="tests" data-type="bool">Tests</th>
|
|
387
|
-
<th data-key="stories" data-type="bool">Story</th>
|
|
388
|
-
<th data-key="skill" data-type="bool">Skill doc</th>
|
|
389
|
-
<th data-key="snippet" data-type="bool">Snippet</th>
|
|
390
|
-
<th data-key="variants" data-type="bool" title="Uses a variants/ subfolder">Variants folder</th>
|
|
391
|
-
<th data-key="legacy_props" data-type="bool" title="Still options-style defineProps({...}), not defineProps<Props>()">Legacy props</th>
|
|
392
|
-
<th data-key="story_args_bug" data-type="bool" title="A story destructures/refs Storybook's reactive args at setup-time, so most Controls-panel changes silently stop updating the rendered story after first render">Story args bug</th>
|
|
393
|
-
<th data-key="eslint_issues" data-type="bool" title="npx eslint reports at least one error or warning on a .vue file in this group">ESLint issues</th>
|
|
394
|
-
<th data-key="score" data-type="num">Score</th>
|
|
395
|
-
</tr>
|
|
396
|
-
</thead>
|
|
397
|
-
<tbody id="tbody"></tbody>
|
|
398
|
-
</table>
|
|
399
|
-
</div>
|
|
400
|
-
|
|
401
|
-
<footer class="note">
|
|
402
|
-
<p><strong>Methodology:</strong> "Styling doc", "Tests", "Story" and "Variants folder" are filesystem checks (<code>CONSUMER-STYLING.md</code>, a <code>tests/</code> dir, a <code>stories/</code> dir or <code>*.stories.ts</code> file, a <code>variants/</code> subfolder). "Skill doc" and "Snippet" match the component's kebab-case name against <code>.claude/skills/components/*.md</code> and <code>.vscode/*.code-snippets</code> — a small number of near-miss names may read as false negatives and are worth a manual glance before acting. "Score" is the count of the five doc/test/story/skill/snippet checks passed, out of 5, and is what "reference-quality" and "only incomplete" are based on. "Legacy props" is a source check for options-style <code>defineProps({...})</code> rather than <code>defineProps<Props>()</code> — like "Variants folder" it is <em>not</em> counted in the 5-point score (deliberately, so it stays visible instead of vanishing into an already-high score), but it does factor into "reference-quality" and "only incomplete", same as "Variants folder".</p>
|
|
403
|
-
<p style="margin-top:0.8rem;"><strong>"Story args bug"</strong> flags a story whose <code>setup()</code> destructures or spreads Storybook's <code>args</code> into local variables/refs at mount time (e.g. <code>const { modelValue, ...otherArgs } = args;</code> then <code>ref(modelValue)</code>). @storybook/vue3 mounts the story component once and mutates the same <code>args</code> object in place on every Controls change — it does not re-run <code>setup()</code> — so a destructured copy freezes at its initial value and most Controls silently stop updating the rendered story after first render. The fix is to bind the template straight to <code>args.x</code> (optionally through a <code>computed()</code> that strips non-prop extra args), never to a value copied out in <code>setup()</code>. Also not counted in the 5-point score, for the same reason as "Legacy props".</p>
|
|
404
|
-
<p style="margin-top:0.8rem;"><strong>"ESLint issues"</strong> runs <code>npx eslint</code> across every <code>.vue</code> file under <code>app/components/</code> once per build and flags a group if any of its files reported an error or a warning. Added 2026-09-21 after fixing a dead <code>const props = withDefaults(...)</code> in <code>InputRangeCore</code> (the assignment's value was never read once its only reference — a since-removed dead computed — was cleaned up) and finding the same pattern live in <code>FormField</code>/<code>FormWrapper</code>. It also currently flags 13 groups for <code>vue/require-default-prop</code> firing on <code>defineModel()</code>-declared props, an eslint-plugin-vue rule with no options to exempt models (it predates <code>defineModel</code>) — the fix there is <code>defineModel<T>({'{'} required: true {'}'})</code> where the native element genuinely can't be meaningfully "empty" (matching what <code>InputRangeCore</code>/<code>InputRangeDefault</code> now do), not a blanket rule disable or an artificial default value. Not counted in the 5-point score, same reasoning as "Legacy props"/"Story args bug".</p>
|
|
405
|
-
<p style="margin-top:0.8rem;"><strong>On <code>--_</code> vars:</strong> the public/private split is decided by consumer relevance, not reuse count — a private var is correct even used once, as long as the value has no plausible consumer override. This column is a raw count of <code>--_</code>-prefixed CSS custom properties per group; it is <em>not</em> scored and doesn't factor into "reference-quality" or "score." A high count is only a prompt to check each one by hand for a value that should have been public (a colour, size, or per-state variant with no override token) — the bug class the <code>ServicesCard</code> fix (CLAUDE.md pitfall #20) caught, not the presence of the prefix itself.</p>
|
|
406
|
-
<p style="margin-top:0.8rem;"><strong>This page regenerates from <code>.claude/component-ledger/build.mjs</code></strong>, triggered whenever a staged commit touches <code>app/components/</code> (see the <code>create-commit-message</code> skill's hook). All numbers on this page, including the narrative above, are computed live from the latest scan — nothing here is hand-written prose that can drift out of date.</p>
|
|
407
|
-
</footer>
|
|
408
|
-
|
|
409
|
-
</div>
|
|
410
|
-
|
|
411
|
-
<script>
|
|
412
|
-
const PAYLOAD = __PAYLOAD__;
|
|
413
|
-
const DATA = PAYLOAD.rows;
|
|
414
|
-
|
|
415
|
-
document.getElementById("audited-at").textContent = PAYLOAD.auditedAt;
|
|
416
|
-
document.getElementById("rowcount").textContent = DATA.length;
|
|
417
|
-
document.getElementById("vuecount").textContent = DATA.reduce((s,d) => s + d.n_vue, 0);
|
|
418
|
-
|
|
419
|
-
// ---- stat strip ----
|
|
420
|
-
const statDefs = [
|
|
421
|
-
{ key:"consumer_styling", label:"Styling doc" },
|
|
422
|
-
{ key:"tests", label:"Tests" },
|
|
423
|
-
{ key:"stories", label:"Story" },
|
|
424
|
-
{ key:"skill", label:"Skill doc" },
|
|
425
|
-
{ key:"snippet", label:"Snippet" },
|
|
426
|
-
{ key:"placed", label:"In a tier", derive:d => d.tier !== "NONE" },
|
|
427
|
-
];
|
|
428
|
-
const statsEl = document.getElementById("stats");
|
|
429
|
-
statDefs.forEach(sd => {
|
|
430
|
-
const count = DATA.filter(d => sd.derive ? sd.derive(d) : d[sd.key]).length;
|
|
431
|
-
const pct = DATA.length ? Math.round((count / DATA.length) * 100) : 0;
|
|
432
|
-
const cls = pct < 40 ? "low" : pct < 70 ? "mid" : "";
|
|
433
|
-
const el = document.createElement("div");
|
|
434
|
-
el.className = "stat " + cls;
|
|
435
|
-
el.innerHTML = `
|
|
436
|
-
<div class="num">${pct}<span style="font-size:1.5rem;">%</span></div>
|
|
437
|
-
<div class="label">${sd.label} · ${count}/${DATA.length}</div>
|
|
438
|
-
<div class="bar"><span style="width:${pct}%"></span></div>
|
|
439
|
-
`;
|
|
440
|
-
statsEl.appendChild(el);
|
|
441
|
-
});
|
|
442
|
-
|
|
443
|
-
// ---- dynamic narrative (every number computed from DATA, nothing hand-written) ----
|
|
444
|
-
const fullyCompliant = DATA.filter(d => d.score === 5 && d.tier !== "NONE" && !d.variants && !d.legacy_props && !d.story_args_bug && !d.eslint_issues);
|
|
445
|
-
const unplaced = DATA.filter(d => d.tier === "NONE");
|
|
446
|
-
const forkedVariants = DATA.filter(d => d.variants);
|
|
447
|
-
const legacyProps = DATA.filter(d => d.legacy_props);
|
|
448
|
-
const storyArgsBug = DATA.filter(d => d.story_args_bug);
|
|
449
|
-
const eslintIssues = DATA.filter(d => d.eslint_issues);
|
|
450
|
-
const noSkillAndUnplaced = unplaced.filter(d => !d.skill).length;
|
|
451
|
-
const topPrivate = DATA.filter(d => d.priv_tokens > 0).sort((a,b) => b.priv_tokens - a.priv_tokens).slice(0, 3);
|
|
452
|
-
|
|
453
|
-
const narrativeEl = document.getElementById("narrative");
|
|
454
|
-
narrativeEl.innerHTML = `
|
|
455
|
-
<h2>What's dragging the average down</h2>
|
|
456
|
-
<p>Only <strong>${fullyCompliant.length} of ${DATA.length}</strong> component groups clear every check. The gaps cluster in a predictable order: the older a component, the less likely it ever got a skill doc or CONSUMER-STYLING.md written for it, because both postdate a lot of what's in this tree.</p>
|
|
457
|
-
<p><strong>${unplaced.length} groups</strong> still sit loose at <code class="mono">app/components/</code> top level rather than inside a numbered tier. ${noSkillAndUnplaced} of those ${unplaced.length} also have no skill doc — an unplaced component tends to also be an undocumented one.</p>
|
|
458
|
-
<p>${forkedVariants.length ? `<strong>${forkedVariants.length} group${forkedVariants.length===1?"":"s"}</strong> still fork${forkedVariants.length===1?"s":""} variants into a <code class="mono">variants/</code> subfolder — deprecated in favour of documenting the variation in the parent skill.md.` : `No component groups currently fork variants into a <code class="mono">variants/</code> subfolder.`}</p>
|
|
459
|
-
<p>${legacyProps.length ? `<strong>${legacyProps.length} group${legacyProps.length===1?"":"s"}</strong> still use${legacyProps.length===1?"s":""} options-style <code class="mono">defineProps({...})</code> instead of <code class="mono">defineProps<Props>()</code> — this doesn't move the 5-point score, so it can hide behind an otherwise-complete-looking group.` : `No component groups currently use options-style defineProps.`}</p>
|
|
460
|
-
<p>${storyArgsBug.length ? `<strong>${storyArgsBug.length} group${storyArgsBug.length===1?"":"s"}</strong> ha${storyArgsBug.length===1?"s":"ve"} a story that destructures/refs Storybook's <code class="mono">args</code> at setup-time (${storyArgsBug.map(d => `<code class="mono">${d.compdir.split("/").pop()}</code>`).join(", ")}) — the Controls panel silently stops updating most props on that story after first render. This doesn't move the 5-point score either, for the same reason as "Legacy props".` : `No component groups currently have this Storybook Controls reactivity bug.`}</p>
|
|
461
|
-
<p>${eslintIssues.length ? `<strong>${eslintIssues.length} group${eslintIssues.length===1?"":"s"}</strong> ha${eslintIssues.length===1?"s":"ve"} at least one live <code class="mono">npx eslint</code> finding (${eslintIssues.map(d => `<code class="mono">${d.compdir.split("/").pop()}</code>`).join(", ")}) — a component can score 5/5 on docs/tests/story/skill/snippet and still carry these. Not counted in the 5-point score, same reasoning as "Legacy props"/"Story args bug".` : `No component groups currently have a live ESLint finding.`}</p>
|
|
462
|
-
<p><strong>${topPrivate.length ? "On --_ vars:" : ""}</strong> ${topPrivate.length
|
|
463
|
-
? `the largest private-token surfaces right now are ${topPrivate.map(d => `<code class="mono">${d.compdir.split("/").pop()}</code> (${d.priv_tokens})`).join(", ")} — worth a manual look for a value that should have been public, per the corrected rule in the footer below. A high count on its own isn't a defect.`
|
|
464
|
-
: ""}</p>
|
|
465
|
-
`;
|
|
466
|
-
|
|
467
|
-
// ---- reference list ----
|
|
468
|
-
const refList = document.getElementById("reference-list");
|
|
469
|
-
fullyCompliant.forEach(d => {
|
|
470
|
-
const li = document.createElement("li");
|
|
471
|
-
li.innerHTML = `<strong>${d.compdir.split("/").pop()}</strong>`;
|
|
472
|
-
refList.appendChild(li);
|
|
473
|
-
});
|
|
474
|
-
if (!refList.children.length) {
|
|
475
|
-
refList.innerHTML = "<li>No component currently clears every check.</li>";
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
// ---- tier filter chips ----
|
|
479
|
-
const tiers = [...new Set(DATA.map(d => d.tier))].sort();
|
|
480
|
-
const tierFilters = document.getElementById("tier-filters");
|
|
481
|
-
let activeTier = "all";
|
|
482
|
-
const allChip = mkChip("all components", "all");
|
|
483
|
-
tierFilters.appendChild(allChip);
|
|
484
|
-
tiers.forEach(t => tierFilters.appendChild(mkChip(t === "NONE" ? "unplaced" : t, t)));
|
|
485
|
-
|
|
486
|
-
function mkChip(label, value){
|
|
487
|
-
const b = document.createElement("button");
|
|
488
|
-
b.className = "chip" + (value === "all" ? " active" : "");
|
|
489
|
-
b.textContent = label;
|
|
490
|
-
b.dataset.tier = value;
|
|
491
|
-
b.addEventListener("click", () => {
|
|
492
|
-
activeTier = value;
|
|
493
|
-
[...tierFilters.children].forEach(c => c.classList.toggle("active", c === b));
|
|
494
|
-
render();
|
|
495
|
-
});
|
|
496
|
-
return b;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
let onlyIncomplete = false;
|
|
500
|
-
document.querySelector("[data-gap-filter]").addEventListener("click", (e) => {
|
|
501
|
-
onlyIncomplete = !onlyIncomplete;
|
|
502
|
-
e.target.classList.toggle("active", onlyIncomplete);
|
|
503
|
-
render();
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
const searchEl = document.getElementById("search");
|
|
507
|
-
searchEl.addEventListener("input", render);
|
|
508
|
-
|
|
509
|
-
let sortKey = "score";
|
|
510
|
-
let sortAsc = true;
|
|
511
|
-
document.querySelectorAll("thead th").forEach(th => {
|
|
512
|
-
th.addEventListener("click", () => {
|
|
513
|
-
const key = th.dataset.key;
|
|
514
|
-
if (sortKey === key) sortAsc = !sortAsc;
|
|
515
|
-
else { sortKey = key; sortAsc = key !== "score"; }
|
|
516
|
-
document.querySelectorAll("thead th").forEach(t => t.classList.remove("sorted","asc"));
|
|
517
|
-
th.classList.add("sorted");
|
|
518
|
-
if (sortAsc) th.classList.add("asc");
|
|
519
|
-
render();
|
|
520
|
-
});
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
function tierLabel(t){ return t === "NONE" ? "unplaced" : t; }
|
|
524
|
-
|
|
525
|
-
function render(){
|
|
526
|
-
let rows = DATA.slice();
|
|
527
|
-
if (activeTier !== "all") rows = rows.filter(d => d.tier === activeTier);
|
|
528
|
-
if (onlyIncomplete) rows = rows.filter(d => d.score < 5 || d.tier === "NONE" || d.variants || d.legacy_props || d.story_args_bug || d.eslint_issues);
|
|
529
|
-
const q = searchEl.value.trim().toLowerCase();
|
|
530
|
-
if (q) rows = rows.filter(d => d.compdir.toLowerCase().includes(q));
|
|
531
|
-
|
|
532
|
-
rows.sort((a,b) => {
|
|
533
|
-
let av = a[sortKey], bv = b[sortKey];
|
|
534
|
-
if (typeof av === "boolean") { av = av ? 1 : 0; bv = bv ? 1 : 0; }
|
|
535
|
-
if (typeof av === "string") return sortAsc ? av.localeCompare(bv) : bv.localeCompare(av);
|
|
536
|
-
return sortAsc ? av - bv : bv - av;
|
|
537
|
-
});
|
|
538
|
-
|
|
539
|
-
document.getElementById("visible-count").textContent = rows.length;
|
|
540
|
-
|
|
541
|
-
const tbody = document.getElementById("tbody");
|
|
542
|
-
tbody.innerHTML = rows.map(d => {
|
|
543
|
-
const privClass = d.priv_tokens === 0 ? "zero" : d.priv_tokens > 15 ? "many" : "some";
|
|
544
|
-
const dots = [d.consumer_styling, d.tests, d.stories, d.skill, d.snippet]
|
|
545
|
-
.map(v => `<span class="${v ? "on" : ""}"></span>`).join("");
|
|
546
|
-
return `<tr>
|
|
547
|
-
<td class="path">${d.compdir}<span class="n">${d.n_vue > 1 ? "×" + d.n_vue : ""}</span></td>
|
|
548
|
-
<td><span class="tier-pill ${d.tier === "NONE" ? "none" : ""} mono">${tierLabel(d.tier)}</span></td>
|
|
549
|
-
<td class="check">${check(d.consumer_styling)}</td>
|
|
550
|
-
<td class="priv-count ${privClass}">${d.priv_tokens}</td>
|
|
551
|
-
<td class="check">${check(d.tests)}</td>
|
|
552
|
-
<td class="check">${check(d.stories)}</td>
|
|
553
|
-
<td class="check">${check(d.skill)}</td>
|
|
554
|
-
<td class="check">${check(d.snippet)}</td>
|
|
555
|
-
<td class="check">${d.variants ? '<span class="no" style="opacity:1;color:var(--warn);">●</span>' : '<span class="no">–</span>'}</td>
|
|
556
|
-
<td class="check">${d.legacy_props ? '<span class="no" style="opacity:1;color:var(--warn);">●</span>' : '<span class="no">–</span>'}</td>
|
|
557
|
-
<td class="check">${d.story_args_bug ? '<span class="no" style="opacity:1;color:var(--warn);">●</span>' : '<span class="no">–</span>'}</td>
|
|
558
|
-
<td class="check">${d.eslint_issues ? '<span class="no" style="opacity:1;color:var(--warn);">●</span>' : '<span class="no">–</span>'}</td>
|
|
559
|
-
<td><span class="score-bar">${dots}</span></td>
|
|
560
|
-
</tr>`;
|
|
561
|
-
}).join("");
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
function check(v){
|
|
565
|
-
return v ? '<span class="yes">●</span>' : '<span class="no">–</span>';
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
render();
|
|
569
|
-
</script>
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# PostToolUse hook (Write|Edit) for app/components/*.vue files. Advisory nudges only
|
|
3
|
-
# (missing != wrong): skill doc, story, test, CONSUMER-STYLING.md, .vscode snippet,
|
|
4
|
-
# legacy tier-folder location, options-style defineProps, single-use private CSS tokens,
|
|
5
|
-
# leftover app/pages/ demo pages (this library is Storybook-only, see Claude.md).
|
|
6
|
-
|
|
7
|
-
root="${CLAUDE_PROJECT_DIR:-$(pwd)}"
|
|
8
|
-
|
|
9
|
-
f=$(jq -r '.tool_input.file_path // empty')
|
|
10
|
-
|
|
11
|
-
case "$f" in
|
|
12
|
-
*/app/components/*.vue) ;;
|
|
13
|
-
*) exit 0 ;;
|
|
14
|
-
esac
|
|
15
|
-
case "$f" in
|
|
16
|
-
*/tests/*|*/stories/*) exit 0 ;;
|
|
17
|
-
esac
|
|
18
|
-
|
|
19
|
-
name=$(basename "$f" .vue)
|
|
20
|
-
skill=$(printf '%s' "$name" | sed -E 's/([a-z0-9])([A-Z])/\1-\2/g; s/([A-Z]+)([A-Z][a-z])/\1-\2/g' | tr '[:upper:]' '[:lower:]')
|
|
21
|
-
dir=$(dirname "$f")
|
|
22
|
-
pdir=$(dirname "$dir")
|
|
23
|
-
|
|
24
|
-
# variants/ files are documented under their parent component, not standalone.
|
|
25
|
-
is_variant=false
|
|
26
|
-
if [[ "$(basename "$dir")" == "variants" ]]; then
|
|
27
|
-
is_variant=true
|
|
28
|
-
parent_name=$(basename "$pdir")
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
if [[ "$is_variant" == true ]]; then
|
|
32
|
-
msg="Component file $f was edited/written. This is a variant of $parent_name — per project convention, document it inside .claude/skills/components/$parent_name.md (e.g. a \"Variants\" section) rather than creating a separate .claude/skills/components/$skill.md for it."
|
|
33
|
-
else
|
|
34
|
-
msg="Component file $f was edited/written. Per Claude.md Development Workflow step 7, check whether .claude/skills/components/$skill.md needs updating to reflect this change (props/slots/models/defaults/behaviour)."
|
|
35
|
-
fi
|
|
36
|
-
|
|
37
|
-
shopt -s nullglob
|
|
38
|
-
stories=("$dir"/stories/*.stories.ts "$pdir"/stories/*.stories.ts)
|
|
39
|
-
tests=("$dir"/tests/*.spec.ts "$pdir"/tests/*.spec.ts)
|
|
40
|
-
shopt -u nullglob
|
|
41
|
-
|
|
42
|
-
if [[ ${#stories[@]} -eq 0 ]]; then
|
|
43
|
-
msg="$msg No Storybook story found for this component (checked $dir/stories and $pdir/stories); create one."
|
|
44
|
-
fi
|
|
45
|
-
|
|
46
|
-
if [[ ${#tests[@]} -eq 0 ]]; then
|
|
47
|
-
msg="$msg No test spec found for this component (checked $dir/tests and $pdir/tests); create one per the Testing Requirements."
|
|
48
|
-
fi
|
|
49
|
-
|
|
50
|
-
if [[ "$is_variant" != true && ! -f "$dir/CONSUMER-STYLING.md" && ! -f "$pdir/CONSUMER-STYLING.md" ]]; then
|
|
51
|
-
msg="$msg No CONSUMER-STYLING.md found for this component; create one if it exposes a real --token API or class override hook (skip it if the component genuinely has neither)."
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
if [[ ! -f "$root/.vscode/srcdev-component-$skill.code-snippets" ]]; then
|
|
55
|
-
msg="$msg No .vscode/srcdev-component-$skill.code-snippets found; create/update it per Development Workflow step 6."
|
|
56
|
-
fi
|
|
57
|
-
|
|
58
|
-
case "$f" in
|
|
59
|
-
*/app/components/01.atoms/*|*/app/components/02.molecules/*|*/app/components/03.organisms/*|*/app/components/04.templates/*|*/app/components/05.forms/*) ;;
|
|
60
|
-
*) msg="$msg This component lives outside the 01-05 tier folders, a legacy location; move it into the matching tier (01.atoms, 02.molecules, 03.organisms, 04.templates, 05.forms) or propose a new tier folder if none fit." ;;
|
|
61
|
-
esac
|
|
62
|
-
|
|
63
|
-
if grep -qE 'defineProps\(\s*\{' "$f" && ! grep -q 'defineProps<' "$f"; then
|
|
64
|
-
msg="$msg This component uses the options-style defineProps({...}) pattern, an outdated-pattern signal; migrate to interface Props + withDefaults(defineProps<Props>(), {...}) per the Props Pattern in Claude.md."
|
|
65
|
-
fi
|
|
66
|
-
|
|
67
|
-
# Private --_x CSS tokens that appear only twice in the file (once declared, once consumed) are
|
|
68
|
-
# likely pure indirection with no reuse/computation/state to justify them — see the "Public
|
|
69
|
-
# token pattern" rule in Claude.md's Styling Methodology and pitfall #20 (ServicesCard).
|
|
70
|
-
private_vars=$(grep -oE -- '--_[a-zA-Z0-9-]+' "$f" | sort -u)
|
|
71
|
-
if [[ -n "$private_vars" ]]; then
|
|
72
|
-
single_use=""
|
|
73
|
-
while IFS= read -r var; do
|
|
74
|
-
[[ -z "$var" ]] && continue
|
|
75
|
-
count=$(grep -oE -- "\\${var}\\b" "$f" | wc -l | tr -d ' ')
|
|
76
|
-
if [[ "$count" -le 2 ]]; then
|
|
77
|
-
single_use="$single_use $var"
|
|
78
|
-
fi
|
|
79
|
-
done <<< "$private_vars"
|
|
80
|
-
if [[ -n "$single_use" ]]; then
|
|
81
|
-
msg="$msg This component declares private CSS token(s) ($(echo "$single_use" | xargs)) that appear to be used only once — check whether each is genuinely reused across multiple declarations/selectors, composed from a v-bind() value, or swapped by a state (:hover, data-theme). If not, inline the public var(--token, default) directly at its point of use instead, per the Public token pattern rule in Claude.md's Styling Methodology (see pitfall #20 for the ServicesCard precedent), and update CONSUMER-STYLING.md/the skill doc if the token's public name or default changes."
|
|
82
|
-
fi
|
|
83
|
-
fi
|
|
84
|
-
|
|
85
|
-
# This library ships no demo pages — Storybook stories are the only demo surface (see Claude.md's
|
|
86
|
-
# "Storybook is the only demo surface"). Flag any app/pages/ file that mentions this component,
|
|
87
|
-
# whether a pre-existing leftover or a newly (re)added one.
|
|
88
|
-
if [[ -d "$root/app/pages" ]]; then
|
|
89
|
-
demo_pages=$(grep -rlE "\\b${name}\\b" "$root/app/pages" 2>/dev/null | xargs)
|
|
90
|
-
if [[ -n "$demo_pages" ]]; then
|
|
91
|
-
msg="$msg Found file(s) under app/pages/ referencing $name ($demo_pages); this library has no demo pages (Storybook only) — delete them and move any demo-worthy content into the Storybook story instead."
|
|
92
|
-
fi
|
|
93
|
-
fi
|
|
94
|
-
|
|
95
|
-
jq -n --arg msg "$msg" '{hookSpecificOutput:{hookEventName:"PostToolUse",additionalContext:$msg}}'
|