srcdev-nuxt-components 8.0.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -118
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-prompt-core.css +94 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-toast.css +5 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-components/index.css +1 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +67 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +87 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +74 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-with-label.css +14 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-description.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +143 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-toggle-switch.css +68 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/index.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/index.css +2 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_large.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_medium.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_small.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_x-small.css +11 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/index.css +23 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_default.css +62 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_error.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_info.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +64 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_success.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/index.css +7 -0
- package/app/assets/styles/main.css +2 -0
- package/app/assets/styles/setup/01.config/_basic-resets.css +9 -0
- package/app/assets/styles/setup/01.config/_head.css +33 -0
- package/app/assets/styles/setup/01.config/_normalise.css +209 -0
- package/app/assets/styles/setup/01.config/index.css +3 -0
- package/app/assets/styles/setup/02.colours/_amber.css +12 -0
- package/app/assets/styles/setup/02.colours/_blue.css +13 -0
- package/app/assets/styles/setup/02.colours/_green.css +13 -0
- package/app/assets/styles/setup/02.colours/_orange.css +12 -0
- package/app/assets/styles/setup/02.colours/_red.css +13 -0
- package/app/assets/styles/setup/02.colours/_slate.css +13 -0
- package/app/assets/styles/setup/02.colours/_sunset.css +12 -0
- package/app/assets/styles/setup/02.colours/index.css +7 -0
- package/app/assets/styles/setup/03.theming/default/_dark.css +138 -0
- package/app/assets/styles/setup/03.theming/default/_light.css +156 -0
- package/app/assets/styles/setup/03.theming/default/index.css +2 -0
- package/app/assets/styles/setup/03.theming/error/_dark.css +56 -0
- package/app/assets/styles/setup/03.theming/error/_light.css +74 -0
- package/app/assets/styles/setup/03.theming/error/index.css +2 -0
- package/app/assets/styles/setup/03.theming/index.css +4 -0
- package/app/assets/styles/setup/03.theming/success/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/success/_light.css +65 -0
- package/app/assets/styles/setup/03.theming/success/index.css +2 -0
- package/app/assets/styles/setup/03.theming/warning/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/warning/_light.css +64 -0
- package/app/assets/styles/setup/03.theming/warning/index.css +2 -0
- package/app/assets/styles/setup/04.elements/forms/00.element-defaults.css +21 -0
- package/app/assets/styles/setup/04.elements/forms/01.field-layout-container-level.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/02.typography.css +24 -0
- package/app/assets/styles/setup/04.elements/forms/03.generic-input-geometry.css +63 -0
- package/app/assets/styles/setup/04.elements/forms/04.slot-icon-system.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/05.checkbox-radio-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/07.validation-error-block-layout.css +9 -0
- package/app/assets/styles/setup/04.elements/forms/09.animation-motion.css +6 -0
- package/app/assets/styles/setup/04.elements/forms/index.css +9 -0
- package/app/assets/styles/setup/04.elements/index.css +1 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_font-family.css +8 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_reponsive-font-sizes.css +22 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_timing-functions.css +119 -0
- package/app/assets/styles/setup/05.typography/01.tokens/index.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-article.css +30 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-card.css +45 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-body.css +146 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-heading.css +35 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-link.css +116 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-section.css +7 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-classes.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-variation-settings.css +29 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-weights.css +39 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/index.css +9 -0
- package/app/assets/styles/setup/05.typography/index.css +2 -0
- package/app/assets/styles/setup/06.utility-classes/_a11y.css +280 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_auto-rotate.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-exit-blur.css +16 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-slide-in.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-zoom-reveal.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_containers.css +96 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_flexbox.css +196 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_grid.css +266 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_positioning.css +149 -0
- package/app/assets/styles/setup/06.utility-classes/layout/index.css +9 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_fluid-spacing.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_margin.css +334 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_padding.css +308 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/index.css +3 -0
- package/app/assets/styles/setup/a11y/_variables.css +8 -0
- package/app/assets/styles/setup/a11y/index.css +1 -0
- package/app/assets/styles/setup/index.css +10 -0
- package/app/components/01.atoms/animations/entry/EntryAnimation.vue +22 -0
- package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +74 -0
- package/app/components/01.atoms/glass-panel/GlassPanel.vue +52 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +42 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts +67 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/stories/EyebrowText.stories.ts +49 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +196 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/__snapshots__/EyebrowText.spec.ts.snap +17 -0
- package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +101 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts +110 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/stories/HeroText.stories.ts +70 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +148 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/__snapshots__/HeroText.spec.ts.snap +7 -0
- package/app/components/02.molecules/contact-section/stories/ContactSection.stories.ts +197 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.spec.ts +196 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.vue +87 -0
- package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap +119 -0
- package/app/components/02.molecules/price-list/PriceList.vue +119 -0
- package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +103 -0
- package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +192 -0
- package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +73 -0
- package/app/components/02.molecules/profile-section/ProfileSection.vue +154 -0
- package/app/components/02.molecules/profile-section/stories/ProfileSection.stories.ts +154 -0
- package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +147 -0
- package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +29 -0
- package/app/components/02.molecules/stepper-list/StepperList.vue +158 -0
- package/app/components/02.molecules/stepper-list/stories/StepperList.stories.ts +392 -0
- package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +289 -0
- package/app/components/02.molecules/stepper-list/tests/__snapshots__/StepperList.spec.ts.snap +86 -0
- package/app/components/03.organisms/colour-finder/ColourFinder.vue +1519 -0
- package/app/components/03.organisms/services/services-card/ServicesCard.vue +104 -0
- package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +39 -0
- package/app/components/03.organisms/services/services-grids/ServicesSectionGrid.vue +52 -0
- package/app/components/03.organisms/services/services-section/ServicesSection.vue +307 -0
- package/app/components/03.organisms/treatment-consultant/TreatmentConsultant.vue +2221 -0
- package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts +38 -0
- package/app/components/accordian/AccordianCore.vue +26 -21
- package/app/components/accordian/stories/AccordianCore.stories.ts +241 -0
- package/app/components/accordian/tests/AccordianCore.spec.ts +218 -0
- package/app/components/accordian/tests/__snapshots__/AccordianCore.spec.ts.snap +74 -0
- package/app/components/alert-mask/AlertMaskCore.vue +35 -33
- package/app/components/alert-mask/tests/AlertMaskCore.spec.ts +304 -0
- package/app/components/animated-svg-text/AnimatedSvgText.vue +2 -0
- package/app/components/canvas-switcher/CanvasSwitcher.vue +10 -8
- package/app/components/{carousel-basic → carousels}/CarouselBasic.vue +58 -56
- package/app/components/{carousel-basic → carousels}/CarouselFlip.vue +150 -148
- package/app/components/{carousel-basic → carousels}/CarouselInfinite.vue +2 -0
- package/app/components/carousels/stories/CarouselFlip.stories.ts +637 -0
- package/app/components/carousels/tests/CarouselFlip.spec.ts +556 -0
- package/app/components/clip-element/ClipElement.vue +2 -0
- package/app/components/clipped-panels/ClippedPanel.vue +2 -0
- package/app/components/container-glow/ContainerGlowCore.vue +119 -50
- package/app/components/container-glow/stories/ContainerGlowCore.stories.ts +337 -0
- package/app/components/content-columns/TwoColumns.vue +59 -0
- package/app/components/content-columns/stories/TwoColumns.stories.ts +561 -0
- package/app/components/content-containers/ContentContainer.vue +89 -0
- package/app/components/content-containers/stories/ContentContainer.stories.ts +465 -0
- package/app/components/content-grid/ContentGrid.vue +4 -2
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +18 -16
- package/app/components/deep-expanding-menu/DeepExpandingMenuOld.vue +28 -26
- package/app/components/display-avatar/DisplayAvatar.vue +15 -13
- package/app/components/display-avatar/stories/DisplayAvatar.stories.ts +94 -0
- package/app/components/display-banner/DisplayBanner.vue +2 -0
- package/app/components/display-card/DisplayCard.vue +16 -14
- package/app/components/display-chip/DisplayChip.vue +2 -0
- package/app/components/display-chip/stories/DisplayChip.stories.ts +346 -0
- package/app/components/display-details/DisplayDetailsCore.vue +2 -0
- package/app/components/display-dialog/DisplayDialogCore.vue +24 -17
- package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +2 -0
- package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +2 -0
- package/app/components/display-grid/DisplayGridCore.vue +4 -4
- package/app/components/display-prompt/DisplayPromptCore.vue +20 -16
- package/app/components/display-prompt/variants/DisplayPromptError.vue +6 -4
- package/app/components/display-theme-switch/DisplayThemeSwitch.vue +182 -0
- package/app/components/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +154 -0
- package/app/components/display-toast/DisplayToast.vue +63 -61
- package/app/components/display-toast/molecules/DefaultToastContent.vue +21 -45
- package/app/components/display-toast/stories/DisplayToast.stories.ts +380 -0
- package/app/components/display-tooltip/DisplayTooltip.vue +14 -9
- package/app/components/display-tooltip/DisplayTooltipDefined.vue +2 -0
- package/app/components/expanding-panel/ExpandingPanel.vue +28 -41
- package/app/components/forms/c12/prop-validators/index.ts +48 -0
- package/app/components/forms/c12/utils.ts +14 -0
- package/app/components/forms/form-errors/InputError.vue +208 -0
- package/app/components/forms/form-errors/tests/InputError.spec.ts +66 -0
- package/app/components/forms/form-fieldset/FormFieldset.vue +75 -0
- package/app/components/forms/input-button/InputButtonCore.vue +219 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts +113 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/stories/InputButtonCore.stories.ts +304 -0
- package/app/components/forms/input-button/tests/InputButtonCore.spec.ts +269 -0
- package/app/components/forms/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +72 -0
- package/app/components/forms/input-checkbox/MultipleCheckboxes.vue +181 -0
- package/app/components/forms/input-checkbox/SingleCheckbox.vue +144 -0
- package/app/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +101 -0
- package/app/components/forms/input-checkbox/tests/data/tags.json +67 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +174 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +199 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +104 -0
- package/app/components/forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +320 -0
- package/app/components/forms/input-description/InputDescription.vue +55 -0
- package/app/components/forms/input-description/tests/InputDescription.spec.ts +429 -0
- package/app/components/forms/input-label/InputLabel.vue +66 -0
- package/app/components/forms/input-label/tests/InputLabel.spec.ts +431 -0
- package/app/components/forms/input-number/InputNumberCore.vue +163 -0
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +150 -0
- package/app/components/forms/input-radio/MultipleRadiobuttons.vue +180 -0
- package/app/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +90 -0
- package/app/components/forms/input-radio/tests/data/tags.json +67 -0
- package/app/components/forms/input-range/InputRangeCore.vue +233 -0
- package/app/components/forms/input-range/variants/InputRangeDefault.vue +166 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyCore.vue +426 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +94 -0
- package/app/components/forms/input-select/InputSelectCore.vue +171 -0
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +121 -0
- package/app/components/forms/input-text/InputTextCore.vue +222 -0
- package/app/components/forms/input-text/stories/InputPasswordWithLabel.stories.ts +339 -0
- package/app/components/forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +461 -0
- package/app/components/forms/input-text/stories/InputTextCore.stories.ts +241 -0
- package/app/components/forms/input-text/stories/InputTextWithLabel.stories.ts +293 -0
- package/app/components/forms/input-text/variants/InputPasswordWithLabel.vue +86 -0
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +203 -0
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +149 -0
- package/app/components/forms/input-textarea/InputTextareaCore.vue +151 -0
- package/app/components/forms/input-textarea/stories/InputTextareaCore.stories.ts +247 -0
- package/app/components/forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +452 -0
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +150 -0
- package/app/components/forms/pending-effect/PendingEffect.vue +101 -0
- package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +221 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchCore.stories.ts +236 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +253 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +280 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +101 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +84 -0
- package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +290 -0
- package/app/components/forms/ui/FormField.vue +81 -0
- package/app/components/forms/ui/FormWrapper.vue +37 -0
- package/app/components/glowing-border/GlowingBorder.vue +2 -0
- package/app/components/glowing-border/stories/GlowingBorder.stories.ts +141 -0
- package/app/components/image-galleries/SliderGallery.vue +100 -100
- package/app/components/layout-grids/LayoutGridA.vue +2 -0
- package/app/components/layout-grids/LayoutGridB.vue +8 -6
- package/app/components/layout-grids/stories/LayoutGridA.stories.ts +402 -0
- package/app/components/layout-grids/stories/LayoutGridB.stories.ts +420 -0
- package/app/components/layout-grids/tests/LayoutGridA.spec.ts +352 -0
- package/app/components/layout-grids/tests/LayoutGridB.spec.ts +490 -0
- package/app/components/layout-row/LayoutRow.vue +60 -54
- package/app/components/layout-row/stories/LayoutRow.stories.ts +528 -0
- package/app/components/magnetic-navigation/MagneticNavigation.vue +2 -0
- package/app/components/marquee-scroller/MarqueeScroller.vue +35 -33
- package/app/components/masonry-grid/MasonryGrid.vue +8 -6
- package/app/components/masonry-grid-ordered/MasonryGridOrdered.vue +2 -0
- package/app/components/masonry-grid-ordered/MasonryGridOrderedGridExperiment.vue +82 -87
- package/app/components/masonry-grid-ordered/stories/MasonryGridOrdered.stories.ts +354 -0
- package/app/components/masonry-grid-sorted/MasonryGridSorted.vue +2 -0
- package/app/components/parallax/SectionParallax.vue +10 -8
- package/app/components/pop-over/PopOver.vue +2 -0
- package/app/components/qr-code/CaptureQrCode.vue +2 -0
- package/app/components/qr-code/DecodeQrCode.vue +2 -0
- package/app/components/qr-code/DisplayQrCode.vue +7 -5
- package/app/components/qr-code/stories/QrCode.stories.ts +933 -0
- package/app/components/responsive-header/NavigationItems.vue +34 -23
- package/app/components/responsive-header/ResponsiveHeader.vue +163 -157
- package/app/components/rotating-carousel/RotatingCarouselImage.vue +2 -0
- package/app/components/skip-links/SkipLinks.vue +2 -0
- package/app/components/tabs/TabsCore.vue +38 -30
- package/app/components/test-storybook/TestStorybook.vue +49 -0
- package/app/components/test-storybook/stories/TestStorybook.stories.ts +28 -0
- package/app/components/ui-block-decorated/UiBlockDecorated.vue +2 -0
- package/app/components/view-timeline/WipeAwayVertical.vue +2 -0
- package/app/composables/useApiRequest.ts +25 -0
- package/app/composables/useAriaDescribedById.ts +19 -0
- package/app/composables/useColourScheme.ts +18 -0
- package/app/composables/useErrorMessages.ts +62 -0
- package/app/composables/useFormControl.ts +264 -0
- package/app/composables/useMaxChildWidth.ts +30 -0
- package/app/composables/useTabs.ts +207 -117
- package/app/composables/useZodValidation.ts +147 -0
- package/app/layouts/default.vue +605 -0
- package/app/pages/forms/examples/buttons/index.vue +285 -0
- package/app/pages/forms/examples/material/checkbox-radio-panels.vue +244 -0
- package/app/pages/forms/examples/material/cssbattle.vue +60 -0
- package/app/pages/forms/examples/material/text-fields.vue +913 -0
- package/app/pages/index.vue +122 -0
- package/app/pages/typography/hero-text.vue +97 -0
- package/app/pages/typography/index.vue +39 -0
- package/app/pages/typography/page-body.vue +171 -0
- package/app/pages/typography/page-heading.vue +76 -0
- package/app/pages/typography/page-link.vue +103 -0
- package/app/pages/ui/accordian.vue +211 -0
- package/app/pages/ui/animated-svg-text.vue +85 -0
- package/app/pages/ui/block-decorators.vue +142 -0
- package/app/pages/ui/carousel-basic.vue +292 -0
- package/app/pages/ui/carousel-flip.vue +244 -0
- package/app/pages/ui/carousel-infinite.vue +260 -0
- package/app/pages/ui/clipped-panels.vue +101 -0
- package/app/pages/ui/contact-section.vue +323 -0
- package/app/pages/ui/container-glow.vue +107 -0
- package/app/pages/ui/content-container.vue +112 -0
- package/app/pages/ui/display-avatar.vue +253 -0
- package/app/pages/ui/display-banner.vue +78 -0
- package/app/pages/ui/display-card.vue +82 -0
- package/app/pages/ui/display-chip.vue +225 -0
- package/app/pages/ui/display-details.vue +175 -0
- package/app/pages/ui/display-dialog.vue +231 -0
- package/app/pages/ui/display-prompt.vue +81 -0
- package/app/pages/ui/display-toast.vue +332 -0
- package/app/pages/ui/expanding-panel.vue +193 -0
- package/app/pages/ui/glowing-border.vue +111 -0
- package/app/pages/ui/layout-grid-a.vue +149 -0
- package/app/pages/ui/layout-grid-b.vue +132 -0
- package/app/pages/ui/layout-row.vue +139 -0
- package/app/pages/ui/magnetic-navigation.vue +50 -0
- package/app/pages/ui/marquee-scroller.vue +99 -0
- package/app/pages/ui/mask-element.vue +82 -0
- package/app/pages/ui/masonry-columns.vue +55 -0
- package/app/pages/ui/masonry-grid-ordered-experiment.vue +79 -0
- package/app/pages/ui/masonry-grid-ordered.vue +56 -0
- package/app/pages/ui/masonry-grid-sorted.vue +55 -0
- package/app/pages/ui/masonry-grid.vue +55 -0
- package/app/pages/ui/price-list.vue +65 -0
- package/app/pages/ui/profile-section.vue +96 -0
- package/app/pages/ui/qr-code/[componentName].vue +218 -0
- package/app/pages/ui/rotating-carousel.vue +154 -0
- package/app/pages/ui/section-parallax.vue +54 -0
- package/app/pages/ui/services/colour-finder.vue +43 -0
- package/app/pages/ui/services/services-cards.vue +42 -0
- package/app/pages/ui/services/services-section/[slug].vue +59 -0
- package/app/pages/ui/services/services-sections-compact.vue +64 -0
- package/app/pages/ui/services/treatment-consultant.vue +39 -0
- package/app/pages/ui/settings.vue +80 -0
- package/app/pages/ui/simple-grid.vue +66 -0
- package/app/pages/ui/slider-gallery.vue +261 -0
- package/app/pages/ui/tabs-y.vue +108 -0
- package/app/pages/ui/tabs.vue +192 -0
- package/app/pages/ui/tooltips.vue +104 -0
- package/app/pages/ui/wipe-away-vertical.vue +129 -0
- package/app/plugins/css-anchor-positioning-polyfill.client.ts +5 -0
- package/app/stores/useServicesStore.ts +37 -0
- package/app/stores/useSettingsStore.ts +35 -0
- package/app/types/components/hero-text.ts +4 -0
- package/app/types/components/index.ts +1 -0
- package/app/types/forms/types.forms.d.ts +293 -0
- package/app/types/forms/types.zodFormControl.d.ts +29 -0
- package/app/types/types.posts.ts +21 -0
- package/app/types/types.quotes.ts +12 -0
- package/app/types/types.services.ts +20 -0
- package/app/utils/colour-scheme-init.ts +17 -0
- package/nuxt.config.ts +86 -9
- package/package.json +51 -14
- package/types/components/css-anchor-polyfill.d.ts +1 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import ContactSection from "../tests/ContactSection.vue";
|
|
2
|
+
import type { Meta, StoryObj } from "@nuxtjs/storybook";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof ContactSection> = {
|
|
5
|
+
title: "Molecules/ContactSection",
|
|
6
|
+
component: ContactSection,
|
|
7
|
+
argTypes: {
|
|
8
|
+
tag: {
|
|
9
|
+
control: { type: "select" },
|
|
10
|
+
options: ["div", "section", "article", "main"],
|
|
11
|
+
description: "HTML element to render as the root",
|
|
12
|
+
},
|
|
13
|
+
styleClassPassthrough: {
|
|
14
|
+
control: "object",
|
|
15
|
+
description: "Additional CSS classes applied to the root element",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
args: {
|
|
19
|
+
tag: "div",
|
|
20
|
+
styleClassPassthrough: [],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof ContactSection>;
|
|
26
|
+
|
|
27
|
+
// ─── Stories ─────────────────────────────────────────────────────────────────
|
|
28
|
+
|
|
29
|
+
/** Default — three info items with default slot fallback content and no form. */
|
|
30
|
+
export const Default: Story = {
|
|
31
|
+
render: (args) => ({
|
|
32
|
+
components: { ContactSection },
|
|
33
|
+
setup() {
|
|
34
|
+
return { args };
|
|
35
|
+
},
|
|
36
|
+
template: `<ContactSection v-bind="args" />`,
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** With form — a contact form in the form slot alongside the info items. */
|
|
41
|
+
export const WithForm: Story = {
|
|
42
|
+
name: "With Contact Form",
|
|
43
|
+
render: (args) => ({
|
|
44
|
+
components: { ContactSection },
|
|
45
|
+
setup() {
|
|
46
|
+
return { args };
|
|
47
|
+
},
|
|
48
|
+
template: `
|
|
49
|
+
<ContactSection v-bind="args">
|
|
50
|
+
<template #item-0>
|
|
51
|
+
<div>
|
|
52
|
+
<strong>Get in touch</strong>
|
|
53
|
+
<p class="page-body-normal">We'd love to hear from you. Fill in the form and we'll get back to you within one business day.</p>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
<template #item-1>
|
|
57
|
+
<div>
|
|
58
|
+
<strong>Email us</strong>
|
|
59
|
+
<p class="page-body-normal"><a href="mailto:hello@example.com">hello@example.com</a></p>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
<template #item-2>
|
|
63
|
+
<div>
|
|
64
|
+
<strong>Call us</strong>
|
|
65
|
+
<p class="page-body-normal"><a href="tel:+441234567890">+44 1234 567 890</a> — Monday to Friday, 9am–5pm</p>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
<template #form>
|
|
69
|
+
<form style="display:flex;flex-direction:column;gap:1rem;">
|
|
70
|
+
<div style="display:flex;flex-direction:column;gap:0.25rem;">
|
|
71
|
+
<label for="name">Name</label>
|
|
72
|
+
<input id="name" type="text" placeholder="Your name" style="padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem;" />
|
|
73
|
+
</div>
|
|
74
|
+
<div style="display:flex;flex-direction:column;gap:0.25rem;">
|
|
75
|
+
<label for="email">Email</label>
|
|
76
|
+
<input id="email" type="email" placeholder="your@email.com" style="padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem;" />
|
|
77
|
+
</div>
|
|
78
|
+
<div style="display:flex;flex-direction:column;gap:0.25rem;">
|
|
79
|
+
<label for="message">Message</label>
|
|
80
|
+
<textarea id="message" rows="5" placeholder="How can we help?" style="padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem;resize:vertical;"></textarea>
|
|
81
|
+
</div>
|
|
82
|
+
<button type="submit" style="padding:0.75rem 1.5rem;background:#111;color:#fff;border:none;border-radius:0.25rem;cursor:pointer;">Send message</button>
|
|
83
|
+
</form>
|
|
84
|
+
</template>
|
|
85
|
+
</ContactSection>
|
|
86
|
+
`,
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/** With custom indicators — icons alongside each info item. */
|
|
91
|
+
export const WithCustomIndicators: Story = {
|
|
92
|
+
name: "With Custom Indicators",
|
|
93
|
+
render: (args) => ({
|
|
94
|
+
components: { ContactSection },
|
|
95
|
+
setup() {
|
|
96
|
+
return { args };
|
|
97
|
+
},
|
|
98
|
+
template: `
|
|
99
|
+
<ContactSection v-bind="args">
|
|
100
|
+
<template #indicator-0>
|
|
101
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20">
|
|
102
|
+
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/>
|
|
103
|
+
</svg>
|
|
104
|
+
</template>
|
|
105
|
+
<template #item-0>
|
|
106
|
+
<div>
|
|
107
|
+
<strong>Location</strong>
|
|
108
|
+
<p class="page-body-normal">123 High Street, Bath, BA1 1AA</p>
|
|
109
|
+
</div>
|
|
110
|
+
</template>
|
|
111
|
+
<template #indicator-1>
|
|
112
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20">
|
|
113
|
+
<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.26h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L7.91 8.6a16 16 0 0 0 6 6l.92-.92a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 15.92z"/>
|
|
114
|
+
</svg>
|
|
115
|
+
</template>
|
|
116
|
+
<template #item-1>
|
|
117
|
+
<div>
|
|
118
|
+
<strong>Phone</strong>
|
|
119
|
+
<p class="page-body-normal"><a href="tel:+441234567890">+44 1234 567 890</a></p>
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
<template #indicator-2>
|
|
123
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20">
|
|
124
|
+
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/>
|
|
125
|
+
</svg>
|
|
126
|
+
</template>
|
|
127
|
+
<template #item-2>
|
|
128
|
+
<div>
|
|
129
|
+
<strong>Email</strong>
|
|
130
|
+
<p class="page-body-normal"><a href="mailto:hello@example.com">hello@example.com</a></p>
|
|
131
|
+
</div>
|
|
132
|
+
</template>
|
|
133
|
+
<template #form>
|
|
134
|
+
<form style="display:flex;flex-direction:column;gap:1rem;">
|
|
135
|
+
<div style="display:flex;flex-direction:column;gap:0.25rem;">
|
|
136
|
+
<label for="name2">Name</label>
|
|
137
|
+
<input id="name2" type="text" placeholder="Your name" style="padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem;" />
|
|
138
|
+
</div>
|
|
139
|
+
<div style="display:flex;flex-direction:column;gap:0.25rem;">
|
|
140
|
+
<label for="message2">Message</label>
|
|
141
|
+
<textarea id="message2" rows="5" placeholder="How can we help?" style="padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem;resize:vertical;"></textarea>
|
|
142
|
+
</div>
|
|
143
|
+
<button type="submit" style="padding:0.75rem 1.5rem;background:#111;color:#fff;border:none;border-radius:0.25rem;cursor:pointer;">Send message</button>
|
|
144
|
+
</form>
|
|
145
|
+
</template>
|
|
146
|
+
</ContactSection>
|
|
147
|
+
`,
|
|
148
|
+
}),
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
/** As section tag — renders the root as a semantic section element. */
|
|
152
|
+
export const AsSectionTag: Story = {
|
|
153
|
+
name: "As section Tag",
|
|
154
|
+
args: {
|
|
155
|
+
tag: "section",
|
|
156
|
+
},
|
|
157
|
+
render: (args) => ({
|
|
158
|
+
components: { ContactSection },
|
|
159
|
+
setup() {
|
|
160
|
+
return { args };
|
|
161
|
+
},
|
|
162
|
+
template: `
|
|
163
|
+
<ContactSection v-bind="args">
|
|
164
|
+
<template #item-0>
|
|
165
|
+
<p class="page-body-normal">Contact info item one.</p>
|
|
166
|
+
</template>
|
|
167
|
+
<template #item-1>
|
|
168
|
+
<p class="page-body-normal">Contact info item two.</p>
|
|
169
|
+
</template>
|
|
170
|
+
<template #item-2>
|
|
171
|
+
<p class="page-body-normal">Contact info item three.</p>
|
|
172
|
+
</template>
|
|
173
|
+
</ContactSection>
|
|
174
|
+
`,
|
|
175
|
+
}),
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/** With styleClassPassthrough — demonstrates custom classes on the root element. */
|
|
179
|
+
export const WithStyleClassPassthrough: Story = {
|
|
180
|
+
name: "With styleClassPassthrough",
|
|
181
|
+
args: {
|
|
182
|
+
styleClassPassthrough: ["custom-class", "another-class"],
|
|
183
|
+
},
|
|
184
|
+
render: (args) => ({
|
|
185
|
+
components: { ContactSection },
|
|
186
|
+
setup() {
|
|
187
|
+
return { args };
|
|
188
|
+
},
|
|
189
|
+
template: `
|
|
190
|
+
<ContactSection v-bind="args">
|
|
191
|
+
<template #item-0><p class="page-body-normal">Item one</p></template>
|
|
192
|
+
<template #item-1><p class="page-body-normal">Item two</p></template>
|
|
193
|
+
<template #item-2><p class="page-body-normal">Item three</p></template>
|
|
194
|
+
</ContactSection>
|
|
195
|
+
`,
|
|
196
|
+
}),
|
|
197
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { mountSuspended } from "@nuxt/test-utils/runtime";
|
|
3
|
+
import ContactSection from "./ContactSection.vue";
|
|
4
|
+
|
|
5
|
+
describe("ContactSection", () => {
|
|
6
|
+
// ─── Mount ───────────────────────────────────────────────────────────────
|
|
7
|
+
|
|
8
|
+
it("mounts without error", async () => {
|
|
9
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
10
|
+
expect(wrapper.vm).toBeTruthy();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// ─── Snapshots ───────────────────────────────────────────────────────────
|
|
14
|
+
|
|
15
|
+
it("renders correct HTML structure with default props", async () => {
|
|
16
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
17
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it("renders correct HTML structure with styleClassPassthrough", async () => {
|
|
21
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
22
|
+
props: { styleClassPassthrough: ["custom-class", "another-class"] },
|
|
23
|
+
});
|
|
24
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("renders correct HTML structure with form slot", async () => {
|
|
28
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
29
|
+
slots: { form: '<form><input type="text" /></form>' },
|
|
30
|
+
});
|
|
31
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// ─── Tag rendering ───────────────────────────────────────────────────────
|
|
35
|
+
|
|
36
|
+
it("renders as <div> by default", async () => {
|
|
37
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
38
|
+
expect(wrapper.element.tagName.toLowerCase()).toBe("div");
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("renders with the correct tag when tag prop is provided", async () => {
|
|
42
|
+
for (const tag of ["section", "article", "main"] as const) {
|
|
43
|
+
const wrapper = await mountSuspended(ContactSection, { props: { tag } });
|
|
44
|
+
expect(wrapper.element.tagName.toLowerCase()).toBe(tag);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// ─── Base classes ────────────────────────────────────────────────────────
|
|
49
|
+
|
|
50
|
+
it("always has the contact-section class", async () => {
|
|
51
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
52
|
+
expect(wrapper.classes()).toContain("contact-section");
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// ─── Structure ───────────────────────────────────────────────────────────
|
|
56
|
+
|
|
57
|
+
it("renders contact-section-inner wrapper", async () => {
|
|
58
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
59
|
+
expect(wrapper.find(".contact-section-inner").exists()).toBe(true);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it("renders contact-section-info wrapper", async () => {
|
|
63
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
64
|
+
expect(wrapper.find(".contact-section-info").exists()).toBe(true);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("renders contact-section-form wrapper", async () => {
|
|
68
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
69
|
+
expect(wrapper.find(".contact-section-form").exists()).toBe(true);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// ─── Default slot content ─────────────────────────────────────────────────
|
|
73
|
+
|
|
74
|
+
it("renders default content for item-0 slot", async () => {
|
|
75
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
76
|
+
expect(wrapper.html()).toContain("Default slot content for item 1");
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("renders default content for item-1 slot", async () => {
|
|
80
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
81
|
+
expect(wrapper.html()).toContain("Default slot content for item 2");
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
it("renders default content for item-2 slot", async () => {
|
|
85
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
86
|
+
expect(wrapper.html()).toContain("Default slot content for item 3");
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// ─── Item slots ───────────────────────────────────────────────────────────
|
|
90
|
+
|
|
91
|
+
it("renders custom item-0 slot content", async () => {
|
|
92
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
93
|
+
slots: { "item-0": "<span>Custom item 1</span>" },
|
|
94
|
+
});
|
|
95
|
+
expect(wrapper.html()).toContain("Custom item 1");
|
|
96
|
+
expect(wrapper.html()).not.toContain("Default slot content for item 1");
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it("renders custom item-1 slot content", async () => {
|
|
100
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
101
|
+
slots: { "item-1": "<span>Custom item 2</span>" },
|
|
102
|
+
});
|
|
103
|
+
expect(wrapper.html()).toContain("Custom item 2");
|
|
104
|
+
expect(wrapper.html()).not.toContain("Default slot content for item 2");
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it("renders custom item-2 slot content", async () => {
|
|
108
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
109
|
+
slots: { "item-2": "<span>Custom item 3</span>" },
|
|
110
|
+
});
|
|
111
|
+
expect(wrapper.html()).toContain("Custom item 3");
|
|
112
|
+
expect(wrapper.html()).not.toContain("Default slot content for item 3");
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// ─── Indicator slots ──────────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
it("renders indicator-0 slot content", async () => {
|
|
118
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
119
|
+
slots: { "indicator-0": '<span class="icon-0">★</span>' },
|
|
120
|
+
});
|
|
121
|
+
expect(wrapper.find(".icon-0").exists()).toBe(true);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it("renders indicator-1 slot content", async () => {
|
|
125
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
126
|
+
slots: { "indicator-1": '<span class="icon-1">★</span>' },
|
|
127
|
+
});
|
|
128
|
+
expect(wrapper.find(".icon-1").exists()).toBe(true);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it("renders indicator-2 slot content", async () => {
|
|
132
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
133
|
+
slots: { "indicator-2": '<span class="icon-2">★</span>' },
|
|
134
|
+
});
|
|
135
|
+
expect(wrapper.find(".icon-2").exists()).toBe(true);
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// ─── Form slot ────────────────────────────────────────────────────────────
|
|
139
|
+
|
|
140
|
+
it("renders form slot content inside contact-section-form", async () => {
|
|
141
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
142
|
+
slots: { form: '<form class="test-form"><button>Submit</button></form>' },
|
|
143
|
+
});
|
|
144
|
+
const formWrapper = wrapper.find(".contact-section-form");
|
|
145
|
+
expect(formWrapper.find(".test-form").exists()).toBe(true);
|
|
146
|
+
expect(formWrapper.html()).toContain("Submit");
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
it("renders contact-section-form as empty when no form slot provided", async () => {
|
|
150
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
151
|
+
const formWrapper = wrapper.find(".contact-section-form");
|
|
152
|
+
expect(formWrapper.find("form").exists()).toBe(false);
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
// ─── styleClassPassthrough ────────────────────────────────────────────────
|
|
156
|
+
|
|
157
|
+
it("applies a single styleClassPassthrough string", async () => {
|
|
158
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
159
|
+
props: { styleClassPassthrough: "my-class" },
|
|
160
|
+
});
|
|
161
|
+
expect(wrapper.classes()).toContain("my-class");
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it("applies multiple styleClassPassthrough classes from an array", async () => {
|
|
165
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
166
|
+
props: { styleClassPassthrough: ["class-a", "class-b"] },
|
|
167
|
+
});
|
|
168
|
+
expect(wrapper.classes()).toContain("class-a");
|
|
169
|
+
expect(wrapper.classes()).toContain("class-b");
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it("renders cleanly with no styleClassPassthrough prop", async () => {
|
|
173
|
+
const wrapper = await mountSuspended(ContactSection);
|
|
174
|
+
expect(wrapper.classes()).toContain("contact-section");
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
// ─── Combined ─────────────────────────────────────────────────────────────
|
|
178
|
+
|
|
179
|
+
it("renders correctly with all props and slots combined", async () => {
|
|
180
|
+
const wrapper = await mountSuspended(ContactSection, {
|
|
181
|
+
props: { tag: "section", styleClassPassthrough: ["combined-class"] },
|
|
182
|
+
slots: {
|
|
183
|
+
"indicator-0": '<span class="icon">✓</span>',
|
|
184
|
+
"item-0": "<span>Step one</span>",
|
|
185
|
+
"item-1": "<span>Step two</span>",
|
|
186
|
+
"item-2": "<span>Step three</span>",
|
|
187
|
+
form: '<form class="contact-form"><button>Send</button></form>',
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
expect(wrapper.element.tagName.toLowerCase()).toBe("section");
|
|
191
|
+
expect(wrapper.classes()).toContain("combined-class");
|
|
192
|
+
expect(wrapper.html()).toContain("Step one");
|
|
193
|
+
expect(wrapper.find(".contact-form").exists()).toBe(true);
|
|
194
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
195
|
+
});
|
|
196
|
+
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="tag" class="contact-section" :class="[elementClasses]">
|
|
3
|
+
<div class="contact-section-inner">
|
|
4
|
+
<div class="contact-section-info">
|
|
5
|
+
<StepperList tag="ul" :connected="false" indicator-alignment="top" :item-count="3">
|
|
6
|
+
<template #indicator-0>
|
|
7
|
+
<slot name="indicator-0"></slot>
|
|
8
|
+
</template>
|
|
9
|
+
<template #item-0>
|
|
10
|
+
<slot name="item-0">
|
|
11
|
+
<p class="page-body-normal">Default slot content for item 1</p>
|
|
12
|
+
</slot>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<template #indicator-1>
|
|
16
|
+
<slot name="indicator-1"></slot>
|
|
17
|
+
</template>
|
|
18
|
+
<template #item-1>
|
|
19
|
+
<slot name="item-1">
|
|
20
|
+
<p class="page-body-normal">Default slot content for item 2</p>
|
|
21
|
+
</slot>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<template #indicator-2>
|
|
25
|
+
<slot name="indicator-2"></slot>
|
|
26
|
+
</template>
|
|
27
|
+
<template #item-2>
|
|
28
|
+
<slot name="item-2">
|
|
29
|
+
<p class="page-body-normal">Default slot content for item 3</p>
|
|
30
|
+
</slot>
|
|
31
|
+
</template>
|
|
32
|
+
</StepperList>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="contact-section-form">
|
|
35
|
+
<slot name="form"></slot>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</component>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script setup lang="ts">
|
|
42
|
+
interface Props {
|
|
43
|
+
tag?: "div" | "section" | "article" | "main";
|
|
44
|
+
styleClassPassthrough?: string | string[];
|
|
45
|
+
}
|
|
46
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
47
|
+
tag: "div",
|
|
48
|
+
styleClassPassthrough: () => [],
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const { elementClasses, resetElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
52
|
+
|
|
53
|
+
watch(
|
|
54
|
+
() => props.styleClassPassthrough,
|
|
55
|
+
() => {
|
|
56
|
+
resetElementClasses(props.styleClassPassthrough);
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style lang="css">
|
|
62
|
+
@layer components {
|
|
63
|
+
.contact-section {
|
|
64
|
+
.contact-section-inner {
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: 1fr;
|
|
67
|
+
gap: 2rem;
|
|
68
|
+
align-items: start;
|
|
69
|
+
|
|
70
|
+
@media (width >= 768px) {
|
|
71
|
+
grid-template-columns: repeat(2, 1fr);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.contact-section-info {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.contact-section-form {
|
|
78
|
+
/* outline: 1px solid green; */
|
|
79
|
+
|
|
80
|
+
form {
|
|
81
|
+
/* outline: 1px solid red; */
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
</style>
|
package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`ContactSection > renders correct HTML structure with default props 1`] = `
|
|
4
|
+
"<div class="contact-section">
|
|
5
|
+
<div class="contact-section-inner">
|
|
6
|
+
<div class="contact-section-info">
|
|
7
|
+
<ul class="stepper-list">
|
|
8
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
9
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
10
|
+
<div>
|
|
11
|
+
<p class="page-body-normal">Default slot content for item 1</p>
|
|
12
|
+
</div>
|
|
13
|
+
</li>
|
|
14
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
15
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
16
|
+
<div>
|
|
17
|
+
<p class="page-body-normal">Default slot content for item 2</p>
|
|
18
|
+
</div>
|
|
19
|
+
</li>
|
|
20
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
21
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
22
|
+
<div>
|
|
23
|
+
<p class="page-body-normal">Default slot content for item 3</p>
|
|
24
|
+
</div>
|
|
25
|
+
</li>
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="contact-section-form"></div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>"
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
exports[`ContactSection > renders correct HTML structure with form slot 1`] = `
|
|
34
|
+
"<div class="contact-section">
|
|
35
|
+
<div class="contact-section-inner">
|
|
36
|
+
<div class="contact-section-info">
|
|
37
|
+
<ul class="stepper-list">
|
|
38
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
39
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
40
|
+
<div>
|
|
41
|
+
<p class="page-body-normal">Default slot content for item 1</p>
|
|
42
|
+
</div>
|
|
43
|
+
</li>
|
|
44
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
45
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
46
|
+
<div>
|
|
47
|
+
<p class="page-body-normal">Default slot content for item 2</p>
|
|
48
|
+
</div>
|
|
49
|
+
</li>
|
|
50
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
51
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
52
|
+
<div>
|
|
53
|
+
<p class="page-body-normal">Default slot content for item 3</p>
|
|
54
|
+
</div>
|
|
55
|
+
</li>
|
|
56
|
+
</ul>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="contact-section-form">
|
|
59
|
+
<form><input type="text"></form>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>"
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
exports[`ContactSection > renders correct HTML structure with styleClassPassthrough 1`] = `
|
|
66
|
+
"<div class="contact-section custom-class another-class">
|
|
67
|
+
<div class="contact-section-inner">
|
|
68
|
+
<div class="contact-section-info">
|
|
69
|
+
<ul class="stepper-list">
|
|
70
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
71
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
72
|
+
<div>
|
|
73
|
+
<p class="page-body-normal">Default slot content for item 1</p>
|
|
74
|
+
</div>
|
|
75
|
+
</li>
|
|
76
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
77
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
78
|
+
<div>
|
|
79
|
+
<p class="page-body-normal">Default slot content for item 2</p>
|
|
80
|
+
</div>
|
|
81
|
+
</li>
|
|
82
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
83
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
84
|
+
<div>
|
|
85
|
+
<p class="page-body-normal">Default slot content for item 3</p>
|
|
86
|
+
</div>
|
|
87
|
+
</li>
|
|
88
|
+
</ul>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="contact-section-form"></div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>"
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`ContactSection > renders correctly with all props and slots combined 1`] = `
|
|
96
|
+
"<section class="contact-section combined-class">
|
|
97
|
+
<div class="contact-section-inner">
|
|
98
|
+
<div class="contact-section-info">
|
|
99
|
+
<ul class="stepper-list">
|
|
100
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
101
|
+
<div class="stepper-list__indicator-custom"><span class="icon">✓</span></div>
|
|
102
|
+
<div><span>Step one</span></div>
|
|
103
|
+
</li>
|
|
104
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
105
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
106
|
+
<div><span>Step two</span></div>
|
|
107
|
+
</li>
|
|
108
|
+
<li class="has-indicator indicator-top indicator-disc">
|
|
109
|
+
<div class="stepper-list__indicator-custom"></div>
|
|
110
|
+
<div><span>Step three</span></div>
|
|
111
|
+
</li>
|
|
112
|
+
</ul>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="contact-section-form">
|
|
115
|
+
<form class="contact-form"><button>Send</button></form>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</section>"
|
|
119
|
+
`;
|