srcdev-nuxt-components 8.0.3 → 9.0.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/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 +94 -9
- package/package.json +53 -16
- package/types/components/css-anchor-polyfill.d.ts +1 -0
package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@nuxtjs/storybook";
|
|
2
|
+
import TreatmentConsultant from "../TreatmentConsultant.vue";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof TreatmentConsultant> = {
|
|
5
|
+
title: "Organisms/TreatmentConsultant",
|
|
6
|
+
component: TreatmentConsultant,
|
|
7
|
+
argTypes: {
|
|
8
|
+
autoAdvance: {
|
|
9
|
+
control: "boolean",
|
|
10
|
+
description: "Automatically advance to the next step after selection",
|
|
11
|
+
},
|
|
12
|
+
allowMultipleTreatments: {
|
|
13
|
+
control: "boolean",
|
|
14
|
+
description: "Allow users to select multiple treatments",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof TreatmentConsultant>;
|
|
21
|
+
|
|
22
|
+
// ─── Stories ─────────────────────────────────────────────────────────────────
|
|
23
|
+
|
|
24
|
+
export const Default: Story = {
|
|
25
|
+
args: {
|
|
26
|
+
autoAdvance: true,
|
|
27
|
+
allowMultipleTreatments: true,
|
|
28
|
+
},
|
|
29
|
+
render: (args) => ({
|
|
30
|
+
components: { TreatmentConsultant },
|
|
31
|
+
setup() {
|
|
32
|
+
return { args };
|
|
33
|
+
},
|
|
34
|
+
template: `
|
|
35
|
+
<TreatmentConsultant v-bind="args" />
|
|
36
|
+
`,
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-for="(item, key) in itemCount"
|
|
5
5
|
:key="key"
|
|
6
6
|
:name
|
|
7
|
-
:animation-duration="
|
|
7
|
+
:animation-duration="animationDuration"
|
|
8
8
|
icon-size="medium"
|
|
9
9
|
:style-class-passthrough="['accordian-item']"
|
|
10
10
|
>
|
|
@@ -22,32 +22,37 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script setup lang="ts">
|
|
25
|
-
|
|
26
|
-
name
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
styleClassPassthrough: {
|
|
39
|
-
type: [String, Array] as PropType<string | string[]>,
|
|
40
|
-
default: () => [],
|
|
41
|
-
},
|
|
42
|
-
})
|
|
25
|
+
interface Props {
|
|
26
|
+
name?: string;
|
|
27
|
+
itemCount?: number;
|
|
28
|
+
animationDuration?: number;
|
|
29
|
+
styleClassPassthrough?: string | string[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
33
|
+
name: undefined,
|
|
34
|
+
itemCount: 0,
|
|
35
|
+
animationDuration: 300,
|
|
36
|
+
styleClassPassthrough: () => [],
|
|
37
|
+
});
|
|
43
38
|
|
|
44
|
-
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
45
|
-
const animationDurationStr = computed(() => `${props.animationDuration}ms`)
|
|
39
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
40
|
+
const animationDurationStr = computed(() => `${props.animationDuration}ms`);
|
|
46
41
|
</script>
|
|
47
42
|
|
|
48
43
|
<style lang="css">
|
|
44
|
+
@layer components {
|
|
49
45
|
.display-accordian {
|
|
50
46
|
max-width: 600px;
|
|
51
47
|
margin: 0 auto;
|
|
48
|
+
|
|
49
|
+
.accordian-item {
|
|
50
|
+
&.expanding-panel {
|
|
51
|
+
transition:
|
|
52
|
+
margin-block-end v-bind(animationDurationStr) ease-in-out,
|
|
53
|
+
border-radius v-bind(animationDurationStr) ease-in-out;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
</style>
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import AccordianCore from "../AccordianCore.vue";
|
|
2
|
+
import type { Meta, StoryObj } from "@nuxtjs/storybook";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof AccordianCore> = {
|
|
5
|
+
title: "Molecules/Accordian/AccordianCore",
|
|
6
|
+
component: AccordianCore,
|
|
7
|
+
argTypes: {
|
|
8
|
+
name: {
|
|
9
|
+
control: { type: "text" },
|
|
10
|
+
description:
|
|
11
|
+
"Shared name attribute passed to each ExpandingPanel — used to group panels so only one can be open at a time (native <details> behaviour)",
|
|
12
|
+
},
|
|
13
|
+
itemCount: {
|
|
14
|
+
control: { type: "number", min: 0, step: 1 },
|
|
15
|
+
description: "Number of accordion panels to render",
|
|
16
|
+
},
|
|
17
|
+
animationDuration: {
|
|
18
|
+
control: { type: "number", min: 0, step: 50 },
|
|
19
|
+
description: "Expand/collapse animation duration in milliseconds",
|
|
20
|
+
},
|
|
21
|
+
styleClassPassthrough: {
|
|
22
|
+
control: "object",
|
|
23
|
+
description: "Additional CSS classes applied to the root element",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
args: {
|
|
27
|
+
name: undefined,
|
|
28
|
+
itemCount: 3,
|
|
29
|
+
animationDuration: 300,
|
|
30
|
+
styleClassPassthrough: [],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default meta;
|
|
35
|
+
type Story = StoryObj<typeof AccordianCore>;
|
|
36
|
+
|
|
37
|
+
// ─── Helpers ──────────────────────────────────────────────────────────────────
|
|
38
|
+
|
|
39
|
+
/** Builds a slot object for N items with generic placeholder content. */
|
|
40
|
+
function buildGenericSlots(count: number): Record<string, string> {
|
|
41
|
+
const slots: Record<string, string> = {};
|
|
42
|
+
for (let i = 0; i < count; i++) {
|
|
43
|
+
slots[`accordian-${i}-summary`] = `<span>Panel ${i + 1} — Summary</span>`;
|
|
44
|
+
slots[`accordian-${i}-icon`] = `<span>▸</span>`;
|
|
45
|
+
slots[`accordian-${i}-content`] =
|
|
46
|
+
`<p style="margin:0;padding:0.5rem 0">This is the content for panel ${i + 1}. ` +
|
|
47
|
+
`Add whatever you need here — text, images, components.</p>`;
|
|
48
|
+
}
|
|
49
|
+
return slots;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ─── Stories ─────────────────────────────────────────────────────────────────
|
|
53
|
+
|
|
54
|
+
export const Default: Story = {
|
|
55
|
+
args: {
|
|
56
|
+
itemCount: 3,
|
|
57
|
+
animationDuration: 300,
|
|
58
|
+
},
|
|
59
|
+
render: (args) => ({
|
|
60
|
+
components: { AccordianCore },
|
|
61
|
+
setup() {
|
|
62
|
+
return { args, slots: buildGenericSlots(args.itemCount ?? 3) };
|
|
63
|
+
},
|
|
64
|
+
template: `
|
|
65
|
+
<AccordianCore v-bind="args">
|
|
66
|
+
<template v-for="(content, name) in slots" #[name] :key="name">
|
|
67
|
+
<span v-html="content" />
|
|
68
|
+
</template>
|
|
69
|
+
</AccordianCore>
|
|
70
|
+
`,
|
|
71
|
+
}),
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const SinglePanel: Story = {
|
|
75
|
+
args: {
|
|
76
|
+
itemCount: 1,
|
|
77
|
+
animationDuration: 300,
|
|
78
|
+
},
|
|
79
|
+
render: (args) => ({
|
|
80
|
+
components: { AccordianCore },
|
|
81
|
+
setup() {
|
|
82
|
+
return { args };
|
|
83
|
+
},
|
|
84
|
+
template: `
|
|
85
|
+
<AccordianCore v-bind="args">
|
|
86
|
+
<template #accordian-0-summary>
|
|
87
|
+
<span>The only panel</span>
|
|
88
|
+
</template>
|
|
89
|
+
<template #accordian-0-content>
|
|
90
|
+
<p style="margin:0;padding:0.5rem 0">Content for the single panel.</p>
|
|
91
|
+
</template>
|
|
92
|
+
</AccordianCore>
|
|
93
|
+
`,
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** Panels share a name so the browser enforces only one open at a time. */
|
|
98
|
+
export const ExclusiveOpen: Story = {
|
|
99
|
+
name: "Exclusive Open (name grouped)",
|
|
100
|
+
args: {
|
|
101
|
+
itemCount: 4,
|
|
102
|
+
name: "exclusive-group",
|
|
103
|
+
animationDuration: 300,
|
|
104
|
+
},
|
|
105
|
+
render: (args) => ({
|
|
106
|
+
components: { AccordianCore },
|
|
107
|
+
setup() {
|
|
108
|
+
return { args, slots: buildGenericSlots(args.itemCount ?? 4) };
|
|
109
|
+
},
|
|
110
|
+
template: `
|
|
111
|
+
<AccordianCore v-bind="args">
|
|
112
|
+
<template v-for="(content, name) in slots" #[name] :key="name">
|
|
113
|
+
<span v-html="content" />
|
|
114
|
+
</template>
|
|
115
|
+
</AccordianCore>
|
|
116
|
+
`,
|
|
117
|
+
}),
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const SlowAnimation: Story = {
|
|
121
|
+
name: "Slow Animation (800ms)",
|
|
122
|
+
args: {
|
|
123
|
+
itemCount: 3,
|
|
124
|
+
animationDuration: 800,
|
|
125
|
+
},
|
|
126
|
+
render: (args) => ({
|
|
127
|
+
components: { AccordianCore },
|
|
128
|
+
setup() {
|
|
129
|
+
return { args, slots: buildGenericSlots(args.itemCount ?? 3) };
|
|
130
|
+
},
|
|
131
|
+
template: `
|
|
132
|
+
<AccordianCore v-bind="args">
|
|
133
|
+
<template v-for="(content, name) in slots" #[name] :key="name">
|
|
134
|
+
<span v-html="content" />
|
|
135
|
+
</template>
|
|
136
|
+
</AccordianCore>
|
|
137
|
+
`,
|
|
138
|
+
}),
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export const NoAnimation: Story = {
|
|
142
|
+
name: "No Animation (0ms)",
|
|
143
|
+
args: {
|
|
144
|
+
itemCount: 3,
|
|
145
|
+
animationDuration: 0,
|
|
146
|
+
},
|
|
147
|
+
render: (args) => ({
|
|
148
|
+
components: { AccordianCore },
|
|
149
|
+
setup() {
|
|
150
|
+
return { args, slots: buildGenericSlots(args.itemCount ?? 3) };
|
|
151
|
+
},
|
|
152
|
+
template: `
|
|
153
|
+
<AccordianCore v-bind="args">
|
|
154
|
+
<template v-for="(content, name) in slots" #[name] :key="name">
|
|
155
|
+
<span v-html="content" />
|
|
156
|
+
</template>
|
|
157
|
+
</AccordianCore>
|
|
158
|
+
`,
|
|
159
|
+
}),
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export const WithStyleClassPassthrough: Story = {
|
|
163
|
+
name: "With styleClassPassthrough",
|
|
164
|
+
args: {
|
|
165
|
+
itemCount: 2,
|
|
166
|
+
styleClassPassthrough: ["custom-class", "another-class"],
|
|
167
|
+
},
|
|
168
|
+
render: (args) => ({
|
|
169
|
+
components: { AccordianCore },
|
|
170
|
+
setup() {
|
|
171
|
+
return { args, slots: buildGenericSlots(args.itemCount ?? 2) };
|
|
172
|
+
},
|
|
173
|
+
template: `
|
|
174
|
+
<AccordianCore v-bind="args">
|
|
175
|
+
<template v-for="(content, name) in slots" #[name] :key="name">
|
|
176
|
+
<span v-html="content" />
|
|
177
|
+
</template>
|
|
178
|
+
</AccordianCore>
|
|
179
|
+
`,
|
|
180
|
+
}),
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const RichContent: Story = {
|
|
184
|
+
name: "Rich Slot Content",
|
|
185
|
+
args: {
|
|
186
|
+
itemCount: 3,
|
|
187
|
+
animationDuration: 300,
|
|
188
|
+
},
|
|
189
|
+
render: (args) => ({
|
|
190
|
+
components: { AccordianCore },
|
|
191
|
+
setup() {
|
|
192
|
+
return { args };
|
|
193
|
+
},
|
|
194
|
+
template: `
|
|
195
|
+
<AccordianCore v-bind="args">
|
|
196
|
+
<template #accordian-0-summary>
|
|
197
|
+
<strong>Delivery & Returns</strong>
|
|
198
|
+
</template>
|
|
199
|
+
<template #accordian-0-content>
|
|
200
|
+
<p style="margin:0;padding:0.5rem 0">
|
|
201
|
+
Free standard delivery on orders over £50. Returns accepted within 30 days.
|
|
202
|
+
</p>
|
|
203
|
+
</template>
|
|
204
|
+
|
|
205
|
+
<template #accordian-1-summary>
|
|
206
|
+
<strong>Materials & Care</strong>
|
|
207
|
+
</template>
|
|
208
|
+
<template #accordian-1-content>
|
|
209
|
+
<ul style="margin:0;padding:0.5rem 0 0.5rem 1.2rem">
|
|
210
|
+
<li>100% organic cotton</li>
|
|
211
|
+
<li>Machine wash at 30°C</li>
|
|
212
|
+
<li>Do not tumble dry</li>
|
|
213
|
+
</ul>
|
|
214
|
+
</template>
|
|
215
|
+
|
|
216
|
+
<template #accordian-2-summary>
|
|
217
|
+
<strong>Sizing Guide</strong>
|
|
218
|
+
</template>
|
|
219
|
+
<template #accordian-2-content>
|
|
220
|
+
<p style="margin:0;padding:0.5rem 0">
|
|
221
|
+
Our pieces run true to size. If you're between sizes, we recommend sizing up.
|
|
222
|
+
</p>
|
|
223
|
+
</template>
|
|
224
|
+
</AccordianCore>
|
|
225
|
+
`,
|
|
226
|
+
}),
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export const Empty: Story = {
|
|
230
|
+
name: "Zero Items",
|
|
231
|
+
args: {
|
|
232
|
+
itemCount: 0,
|
|
233
|
+
},
|
|
234
|
+
render: (args) => ({
|
|
235
|
+
components: { AccordianCore },
|
|
236
|
+
setup() {
|
|
237
|
+
return { args };
|
|
238
|
+
},
|
|
239
|
+
template: `<AccordianCore v-bind="args" />`,
|
|
240
|
+
}),
|
|
241
|
+
};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { mountSuspended } from "@nuxt/test-utils/runtime";
|
|
3
|
+
import AccordianCore from "../AccordianCore.vue";
|
|
4
|
+
import type { ComponentPublicInstance } from "vue";
|
|
5
|
+
|
|
6
|
+
interface AccordianCoreInstance extends ComponentPublicInstance {
|
|
7
|
+
animationDurationStr: string;
|
|
8
|
+
name: string | undefined;
|
|
9
|
+
itemCount: number;
|
|
10
|
+
animationDuration: number;
|
|
11
|
+
styleClassPassthrough: string | string[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
describe("AccordianCore", () => {
|
|
15
|
+
// ─── Mount ───────────────────────────────────────────────────────────────
|
|
16
|
+
|
|
17
|
+
it("mounts without error", async () => {
|
|
18
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
19
|
+
props: { itemCount: 3 },
|
|
20
|
+
});
|
|
21
|
+
expect(wrapper.vm).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// ─── Snapshots ───────────────────────────────────────────────────────────
|
|
25
|
+
|
|
26
|
+
it("renders correct HTML structure with default props", async () => {
|
|
27
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
28
|
+
props: { itemCount: 2 },
|
|
29
|
+
});
|
|
30
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it("renders correct HTML structure with all props set", async () => {
|
|
34
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
35
|
+
props: {
|
|
36
|
+
itemCount: 3,
|
|
37
|
+
name: "snapshot-accordian",
|
|
38
|
+
animationDuration: 500,
|
|
39
|
+
styleClassPassthrough: ["extra-class"],
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("renders correct HTML structure with populated slots", async () => {
|
|
46
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
47
|
+
props: { itemCount: 2 },
|
|
48
|
+
slots: {
|
|
49
|
+
"accordian-0-summary": "<span>Summary 0</span>",
|
|
50
|
+
"accordian-0-icon": "<span>Icon 0</span>",
|
|
51
|
+
"accordian-0-content": "<span>Content 0</span>",
|
|
52
|
+
"accordian-1-summary": "<span>Summary 1</span>",
|
|
53
|
+
"accordian-1-icon": "<span>Icon 1</span>",
|
|
54
|
+
"accordian-1-content": "<span>Content 1</span>",
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("renders correctly with zero items", async () => {
|
|
61
|
+
const wrapper = await mountSuspended(AccordianCore);
|
|
62
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// ─── Root element ─────────────────────────────────────────────────────────
|
|
66
|
+
|
|
67
|
+
it("renders the root .display-accordian element", async () => {
|
|
68
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
69
|
+
props: { itemCount: 1 },
|
|
70
|
+
});
|
|
71
|
+
expect(wrapper.find(".display-accordian").exists()).toBe(true);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// ─── Item count ───────────────────────────────────────────────────────────
|
|
75
|
+
|
|
76
|
+
it("renders the correct number of ExpandingPanel components", async () => {
|
|
77
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
78
|
+
props: { itemCount: 4 },
|
|
79
|
+
});
|
|
80
|
+
expect(wrapper.findAll(".expanding-panel")).toHaveLength(4);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it("renders no ExpandingPanel components when itemCount is 0", async () => {
|
|
84
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
85
|
+
props: { itemCount: 0 },
|
|
86
|
+
});
|
|
87
|
+
expect(wrapper.findAllComponents({ name: "ExpandingPanel" })).toHaveLength(0);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it("renders no ExpandingPanel components when itemCount is omitted", async () => {
|
|
91
|
+
const wrapper = await mountSuspended(AccordianCore);
|
|
92
|
+
expect(wrapper.findAllComponents({ name: "ExpandingPanel" })).toHaveLength(0);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
// ─── Props forwarded to ExpandingPanel ───────────────────────────────────
|
|
96
|
+
|
|
97
|
+
it("forwards animationDuration to every ExpandingPanel", async () => {
|
|
98
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
99
|
+
props: { itemCount: 3, animationDuration: 500 },
|
|
100
|
+
});
|
|
101
|
+
wrapper.findAllComponents({ name: "ExpandingPanel" }).forEach((panel) => {
|
|
102
|
+
expect(panel.props("animationDuration")).toBe(500);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it("forwards name to every ExpandingPanel", async () => {
|
|
107
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
108
|
+
props: { itemCount: 2, name: "test-accordian" },
|
|
109
|
+
});
|
|
110
|
+
wrapper.findAllComponents({ name: "ExpandingPanel" }).forEach((panel) => {
|
|
111
|
+
expect(panel.props("name")).toBe("test-accordian");
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it("passes accordian-item styleClassPassthrough to every ExpandingPanel", async () => {
|
|
116
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
117
|
+
props: { itemCount: 2 },
|
|
118
|
+
});
|
|
119
|
+
wrapper.findAllComponents({ name: "ExpandingPanel" }).forEach((panel) => {
|
|
120
|
+
expect(panel.props("styleClassPassthrough")).toEqual(["accordian-item"]);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
// ─── Default prop values ──────────────────────────────────────────────────
|
|
125
|
+
|
|
126
|
+
it("defaults animationDuration to 300 on ExpandingPanel when not provided", async () => {
|
|
127
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
128
|
+
props: { itemCount: 1 },
|
|
129
|
+
});
|
|
130
|
+
const panel = wrapper.findComponent({ name: "ExpandingPanel" });
|
|
131
|
+
expect(panel.props("animationDuration")).toBe(300);
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
it("uses correct default prop values on the component instance", async () => {
|
|
135
|
+
const wrapper = await mountSuspended(AccordianCore);
|
|
136
|
+
const vm = wrapper.vm as AccordianCoreInstance;
|
|
137
|
+
expect(vm.name).toBeUndefined();
|
|
138
|
+
expect(vm.itemCount).toBe(0);
|
|
139
|
+
expect(vm.animationDuration).toBe(300);
|
|
140
|
+
expect(vm.styleClassPassthrough).toEqual([]);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// ─── Computed ─────────────────────────────────────────────────────────────
|
|
144
|
+
|
|
145
|
+
it("computes animationDurationStr as '<value>ms'", async () => {
|
|
146
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
147
|
+
props: { itemCount: 1, animationDuration: 750 },
|
|
148
|
+
});
|
|
149
|
+
const vm = wrapper.vm as AccordianCoreInstance;
|
|
150
|
+
expect(vm.animationDurationStr).toBe("750ms");
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
it("computes animationDurationStr using the default duration", async () => {
|
|
154
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
155
|
+
props: { itemCount: 1 },
|
|
156
|
+
});
|
|
157
|
+
const vm = wrapper.vm as AccordianCoreInstance;
|
|
158
|
+
expect(vm.animationDurationStr).toBe("300ms");
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// ─── styleClassPassthrough ────────────────────────────────────────────────
|
|
162
|
+
|
|
163
|
+
it("applies a styleClassPassthrough array to the root element", async () => {
|
|
164
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
165
|
+
props: {
|
|
166
|
+
itemCount: 1,
|
|
167
|
+
styleClassPassthrough: ["custom-class", "another-class"],
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
const root = wrapper.find(".display-accordian");
|
|
171
|
+
expect(root.classes()).toContain("custom-class");
|
|
172
|
+
expect(root.classes()).toContain("another-class");
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it("applies a single styleClassPassthrough string to the root element", async () => {
|
|
176
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
177
|
+
props: { itemCount: 1, styleClassPassthrough: "single-class" },
|
|
178
|
+
});
|
|
179
|
+
expect(wrapper.find(".display-accordian").classes()).toContain("single-class");
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
// ─── Slots ────────────────────────────────────────────────────────────────
|
|
183
|
+
|
|
184
|
+
it("renders summary, icon, and content slot content for each item", async () => {
|
|
185
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
186
|
+
props: { itemCount: 2 },
|
|
187
|
+
slots: {
|
|
188
|
+
"accordian-0-summary": '<div data-testid="summary-0">Summary 0</div>',
|
|
189
|
+
"accordian-0-icon": '<div data-testid="icon-0">Icon 0</div>',
|
|
190
|
+
"accordian-0-content": '<div data-testid="content-0">Content 0</div>',
|
|
191
|
+
"accordian-1-summary": '<div data-testid="summary-1">Summary 1</div>',
|
|
192
|
+
"accordian-1-icon": '<div data-testid="icon-1">Icon 1</div>',
|
|
193
|
+
"accordian-1-content": '<div data-testid="content-1">Content 1</div>',
|
|
194
|
+
},
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
for (let i = 0; i < 2; i++) {
|
|
198
|
+
expect(wrapper.find(`[data-testid="summary-${i}"]`).text()).toBe(`Summary ${i}`);
|
|
199
|
+
expect(wrapper.find(`[data-testid="icon-${i}"]`).text()).toBe(`Icon ${i}`);
|
|
200
|
+
expect(wrapper.find(`[data-testid="content-${i}"]`).text()).toBe(`Content ${i}`);
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
it("renders slot content in the correct panel (slots are not mixed up)", async () => {
|
|
205
|
+
const wrapper = await mountSuspended(AccordianCore, {
|
|
206
|
+
props: { itemCount: 3 },
|
|
207
|
+
slots: {
|
|
208
|
+
"accordian-0-summary": "<span>Alpha</span>",
|
|
209
|
+
"accordian-1-summary": "<span>Beta</span>",
|
|
210
|
+
"accordian-2-summary": "<span>Gamma</span>",
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
const panels = wrapper.findAllComponents({ name: "ExpandingPanel" });
|
|
214
|
+
expect(panels[0]?.text()).toContain("Alpha");
|
|
215
|
+
expect(panels[1]?.text()).toContain("Beta");
|
|
216
|
+
expect(panels[2]?.text()).toContain("Gamma");
|
|
217
|
+
});
|
|
218
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`AccordianCore > renders correct HTML structure with all props set 1`] = `
|
|
4
|
+
"<div class="display-accordian extra-class">
|
|
5
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
6
|
+
<details class="expanding-panel-details" name="snapshot-accordian">
|
|
7
|
+
<summary id="id-snapshot-accordian-trigger" class="expanding-panel-summary" aria-controls="id-snapshot-accordian-content" aria-expanded="false"><span class="label-wrapper"></span><span class="icon-wrapper"><span class="iconify i-bi:caret-down-fill icon mi-12" aria-hidden="true"></span></span></summary>
|
|
8
|
+
</details>
|
|
9
|
+
<div id="id-snapshot-accordian-content" class="expanding-panel-content" aria-labelledby="id-snapshot-accordian-trigger" role="region">
|
|
10
|
+
<div class="inner"></div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
14
|
+
<details class="expanding-panel-details" name="snapshot-accordian">
|
|
15
|
+
<summary id="id-snapshot-accordian-trigger" class="expanding-panel-summary" aria-controls="id-snapshot-accordian-content" aria-expanded="false"><span class="label-wrapper"></span><span class="icon-wrapper"><span class="iconify i-bi:caret-down-fill icon mi-12" aria-hidden="true"></span></span></summary>
|
|
16
|
+
</details>
|
|
17
|
+
<div id="id-snapshot-accordian-content" class="expanding-panel-content" aria-labelledby="id-snapshot-accordian-trigger" role="region">
|
|
18
|
+
<div class="inner"></div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
22
|
+
<details class="expanding-panel-details" name="snapshot-accordian">
|
|
23
|
+
<summary id="id-snapshot-accordian-trigger" class="expanding-panel-summary" aria-controls="id-snapshot-accordian-content" aria-expanded="false"><span class="label-wrapper"></span><span class="icon-wrapper"><span class="iconify i-bi:caret-down-fill icon mi-12" aria-hidden="true"></span></span></summary>
|
|
24
|
+
</details>
|
|
25
|
+
<div id="id-snapshot-accordian-content" class="expanding-panel-content" aria-labelledby="id-snapshot-accordian-trigger" role="region">
|
|
26
|
+
<div class="inner"></div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>"
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
exports[`AccordianCore > renders correct HTML structure with default props 1`] = `
|
|
33
|
+
"<div class="display-accordian">
|
|
34
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
35
|
+
<details class="expanding-panel-details" name="v-0-0-0">
|
|
36
|
+
<summary id="id-v-0-0-0-trigger" class="expanding-panel-summary" aria-controls="id-v-0-0-0-content" aria-expanded="false"><span class="label-wrapper"></span><span class="icon-wrapper"><span class="iconify i-bi:caret-down-fill icon mi-12" aria-hidden="true"></span></span></summary>
|
|
37
|
+
</details>
|
|
38
|
+
<div id="id-v-0-0-0-content" class="expanding-panel-content" aria-labelledby="id-v-0-0-0-trigger" role="region">
|
|
39
|
+
<div class="inner"></div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
43
|
+
<details class="expanding-panel-details" name="v-0-0-1">
|
|
44
|
+
<summary id="id-v-0-0-1-trigger" class="expanding-panel-summary" aria-controls="id-v-0-0-1-content" aria-expanded="false"><span class="label-wrapper"></span><span class="icon-wrapper"><span class="iconify i-bi:caret-down-fill icon mi-12" aria-hidden="true"></span></span></summary>
|
|
45
|
+
</details>
|
|
46
|
+
<div id="id-v-0-0-1-content" class="expanding-panel-content" aria-labelledby="id-v-0-0-1-trigger" role="region">
|
|
47
|
+
<div class="inner"></div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>"
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
exports[`AccordianCore > renders correct HTML structure with populated slots 1`] = `
|
|
54
|
+
"<div class="display-accordian">
|
|
55
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
56
|
+
<details class="expanding-panel-details" name="v-0-0-0">
|
|
57
|
+
<summary id="id-v-0-0-0-trigger" class="expanding-panel-summary" aria-controls="id-v-0-0-0-content" aria-expanded="false"><span class="label-wrapper"><span>Summary 0</span></span><span class="icon-wrapper"><span>Icon 0</span></span></summary>
|
|
58
|
+
</details>
|
|
59
|
+
<div id="id-v-0-0-0-content" class="expanding-panel-content" aria-labelledby="id-v-0-0-0-trigger" role="region">
|
|
60
|
+
<div class="inner"><span>Content 0</span></div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="expanding-panel accordian-item" icon-size="medium">
|
|
64
|
+
<details class="expanding-panel-details" name="v-0-0-1">
|
|
65
|
+
<summary id="id-v-0-0-1-trigger" class="expanding-panel-summary" aria-controls="id-v-0-0-1-content" aria-expanded="false"><span class="label-wrapper"><span>Summary 1</span></span><span class="icon-wrapper"><span>Icon 1</span></span></summary>
|
|
66
|
+
</details>
|
|
67
|
+
<div id="id-v-0-0-1-content" class="expanding-panel-content" aria-labelledby="id-v-0-0-1-trigger" role="region">
|
|
68
|
+
<div class="inner"><span>Content 1</span></div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>"
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`AccordianCore > renders correctly with zero items 1`] = `"<div class="display-accordian"></div>"`;
|