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
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
2
|
+
import { mountSuspended } from "@nuxt/test-utils/runtime";
|
|
3
|
+
import { nextTick } from "vue";
|
|
4
|
+
import CarouselFlip from "../CarouselFlip.vue";
|
|
5
|
+
|
|
6
|
+
interface CarouselFlipInstance {
|
|
7
|
+
carouselWrapperRef: HTMLDivElement | null;
|
|
8
|
+
carouselContainerRef: HTMLDivElement | null;
|
|
9
|
+
carouselItems: HTMLDivElement[];
|
|
10
|
+
controlsContainerRef: HTMLDivElement | null;
|
|
11
|
+
carouselInitComplete: boolean;
|
|
12
|
+
userHasInteracted: boolean;
|
|
13
|
+
currentActiveIndex: number;
|
|
14
|
+
itemCount: number;
|
|
15
|
+
displayActiveIndex: number;
|
|
16
|
+
actionPrevious: () => void;
|
|
17
|
+
actionNext: () => void;
|
|
18
|
+
jumpToFrame: (index: number) => void;
|
|
19
|
+
reorderItems: (skipAnimation?: boolean) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const mockCarouselData = ["item-1", "item-2", "item-3", "item-4", "item-5", "item-6"];
|
|
23
|
+
|
|
24
|
+
// Mock VueUse composables
|
|
25
|
+
const mockDirection = { value: "" };
|
|
26
|
+
const mockOnSwipeEnd = vi.fn();
|
|
27
|
+
|
|
28
|
+
// Store event handlers for testing
|
|
29
|
+
const eventHandlers = new Map<HTMLElement | { value: HTMLElement }, Map<string, EventListener>>();
|
|
30
|
+
|
|
31
|
+
vi.mock("@vueuse/core", () => ({
|
|
32
|
+
useEventListener: vi.fn((target, event, handler) => {
|
|
33
|
+
const targetKey = target?.value || target;
|
|
34
|
+
if (!eventHandlers.has(targetKey)) {
|
|
35
|
+
eventHandlers.set(targetKey, new Map());
|
|
36
|
+
}
|
|
37
|
+
eventHandlers.get(targetKey)?.set(event, handler);
|
|
38
|
+
|
|
39
|
+
// Also add to DOM element if possible
|
|
40
|
+
if (targetKey && typeof targetKey === "object" && targetKey.addEventListener) {
|
|
41
|
+
targetKey.addEventListener(event, handler);
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
useResizeObserver: vi.fn((target, callback) => {
|
|
45
|
+
// Mock resize observer
|
|
46
|
+
const mockObserver = {
|
|
47
|
+
observe: vi.fn(),
|
|
48
|
+
unobserve: vi.fn(),
|
|
49
|
+
disconnect: vi.fn(),
|
|
50
|
+
};
|
|
51
|
+
// Call callback once to simulate initial setup
|
|
52
|
+
if (callback && typeof callback === "function") {
|
|
53
|
+
setTimeout(callback, 0);
|
|
54
|
+
}
|
|
55
|
+
return mockObserver;
|
|
56
|
+
}),
|
|
57
|
+
useSwipe: vi.fn((target, options) => {
|
|
58
|
+
// Store swipe handler for testing
|
|
59
|
+
if (options?.onSwipeEnd) {
|
|
60
|
+
mockOnSwipeEnd.mockImplementation(options.onSwipeEnd);
|
|
61
|
+
}
|
|
62
|
+
return { direction: mockDirection };
|
|
63
|
+
}),
|
|
64
|
+
useTemplateRef: vi.fn((_refName) => {
|
|
65
|
+
const ref = { value: [] as HTMLDivElement[] };
|
|
66
|
+
return ref;
|
|
67
|
+
}),
|
|
68
|
+
}));
|
|
69
|
+
|
|
70
|
+
// Mock Icon component
|
|
71
|
+
vi.mock("#imports", () => ({
|
|
72
|
+
useStyleClassPassthrough: vi.fn((classes) => ({
|
|
73
|
+
elementClasses: Array.isArray(classes) ? classes.join(" ") : classes || "",
|
|
74
|
+
})),
|
|
75
|
+
}));
|
|
76
|
+
|
|
77
|
+
describe("CarouselFlip", () => {
|
|
78
|
+
let wrapper: ReturnType<typeof mountSuspended>;
|
|
79
|
+
let component: CarouselFlipInstance;
|
|
80
|
+
|
|
81
|
+
const createWrapper = async (props = {}) => {
|
|
82
|
+
const defaultProps = {
|
|
83
|
+
carouselDataIds: mockCarouselData,
|
|
84
|
+
...props,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
wrapper = await mountSuspended(CarouselFlip, {
|
|
88
|
+
props: defaultProps,
|
|
89
|
+
slots: {
|
|
90
|
+
"item-1": '<div data-testid="item-1">Item 1 Content</div>',
|
|
91
|
+
"item-2": '<div data-testid="item-2">Item 2 Content</div>',
|
|
92
|
+
"item-3": '<div data-testid="item-3">Item 3 Content</div>',
|
|
93
|
+
"item-4": '<div data-testid="item-4">Item 4 Content</div>',
|
|
94
|
+
"item-5": '<div data-testid="item-5">Item 5 Content</div>',
|
|
95
|
+
"item-6": '<div data-testid="item-6">Item 6 Content</div>',
|
|
96
|
+
},
|
|
97
|
+
global: {
|
|
98
|
+
components: {
|
|
99
|
+
Icon: {
|
|
100
|
+
template: '<svg data-testid="icon" :class="$attrs.class"><title>{{ name }}</title></svg>',
|
|
101
|
+
props: ["name"],
|
|
102
|
+
},
|
|
103
|
+
LayoutRow: {
|
|
104
|
+
template: '<div :class="$attrs.class"><slot /></div>',
|
|
105
|
+
props: ["tag", "variant", "styleClassPassthrough"],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
component = wrapper.vm as unknown as CarouselFlipInstance;
|
|
112
|
+
return wrapper;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
beforeEach(() => {
|
|
116
|
+
vi.clearAllMocks();
|
|
117
|
+
mockDirection.value = "";
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
afterEach(() => {
|
|
121
|
+
wrapper?.unmount();
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
describe("Component Rendering", () => {
|
|
125
|
+
it("renders with required accessibility attributes", async () => {
|
|
126
|
+
await createWrapper();
|
|
127
|
+
|
|
128
|
+
const carousel = wrapper.find('[role="region"]');
|
|
129
|
+
expect(carousel.exists()).toBe(true);
|
|
130
|
+
expect(carousel.attributes("aria-label")).toBe("Image carousel");
|
|
131
|
+
|
|
132
|
+
const itemContainer = wrapper.find('[role="group"]');
|
|
133
|
+
expect(itemContainer.exists()).toBe(true);
|
|
134
|
+
expect(itemContainer.attributes("aria-label")).toBe("Carousel items");
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it("renders screen reader announcement with current item info", async () => {
|
|
138
|
+
await createWrapper();
|
|
139
|
+
|
|
140
|
+
const announcement = wrapper.find('[aria-live="polite"]');
|
|
141
|
+
expect(announcement.exists()).toBe(true);
|
|
142
|
+
expect(announcement.text()).toBe("Item 1 of 6");
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
it("renders all carousel items with correct slots", async () => {
|
|
146
|
+
await createWrapper();
|
|
147
|
+
|
|
148
|
+
const items = wrapper.findAll(".item");
|
|
149
|
+
expect(items).toHaveLength(6);
|
|
150
|
+
|
|
151
|
+
for (let i = 0; i < 6; i++) {
|
|
152
|
+
const item = items[i];
|
|
153
|
+
expect(item.attributes("data-id")).toBe(`item-${i + 1}`);
|
|
154
|
+
expect(item.find(`[data-testid="item-${i + 1}"]`).exists()).toBe(true);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it("renders marker buttons for each item", async () => {
|
|
159
|
+
await createWrapper();
|
|
160
|
+
|
|
161
|
+
const markers = wrapper.findAll(".btn-marker");
|
|
162
|
+
expect(markers).toHaveLength(6);
|
|
163
|
+
|
|
164
|
+
markers.forEach((marker: ReturnType<typeof wrapper.find>, index: number) => {
|
|
165
|
+
// Fixed: v-for="index in itemCount" means index starts at 1, so aria-label should be index (1,2,3...)
|
|
166
|
+
expect(marker.attributes("aria-label")).toBe(`Jump to item ${index + 1}`);
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it("renders navigation buttons with correct icons and labels", async () => {
|
|
171
|
+
await createWrapper();
|
|
172
|
+
|
|
173
|
+
const prevButton = wrapper.find('[aria-label="Go to previous item"]');
|
|
174
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
175
|
+
|
|
176
|
+
expect(prevButton.exists()).toBe(true);
|
|
177
|
+
expect(nextButton.exists()).toBe(true);
|
|
178
|
+
|
|
179
|
+
// Verify the buttons are functional
|
|
180
|
+
expect(prevButton.element.tagName).toBe("BUTTON");
|
|
181
|
+
expect(nextButton.element.tagName).toBe("BUTTON");
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
describe("Props Handling", () => {
|
|
186
|
+
it("handles carouselDataIds prop correctly", async () => {
|
|
187
|
+
const customData = ["custom-1", "custom-2", "custom-3"];
|
|
188
|
+
await createWrapper({
|
|
189
|
+
carouselDataIds: customData,
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
const items = wrapper.findAll(".item");
|
|
193
|
+
expect(items).toHaveLength(3);
|
|
194
|
+
expect(component.itemCount).toBe(3);
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
it("applies styleClassPassthrough prop", async () => {
|
|
198
|
+
await createWrapper({
|
|
199
|
+
styleClassPassthrough: "custom-class another-class",
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
expect(wrapper.classes()).toContain("custom-class");
|
|
203
|
+
expect(wrapper.classes()).toContain("another-class");
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
it("handles transitionSpeed prop", async () => {
|
|
207
|
+
await createWrapper({ transitionSpeed: 500 });
|
|
208
|
+
|
|
209
|
+
// Component should be rendered with custom transition speed
|
|
210
|
+
expect(component).toBeDefined();
|
|
211
|
+
// The transition speed is used in computed property transitionSpeedStr
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
it("applies allowCarouselOverflow class conditionally", async () => {
|
|
215
|
+
await createWrapper({ allowCarouselOverflow: true });
|
|
216
|
+
|
|
217
|
+
const container = wrapper.find(".item-container");
|
|
218
|
+
expect(container.classes()).toContain("allow-overflow");
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
it("handles useFlipAnimation prop in calculations", async () => {
|
|
222
|
+
await createWrapper({ useFlipAnimation: true });
|
|
223
|
+
|
|
224
|
+
// Component should be rendered with flip animation enabled
|
|
225
|
+
expect(component).toBeDefined();
|
|
226
|
+
// The actual offset calculation is tested through CSS custom properties
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
it("handles useSpringEffect prop", async () => {
|
|
230
|
+
await createWrapper({ useSpringEffect: true });
|
|
231
|
+
|
|
232
|
+
expect(component).toBeDefined();
|
|
233
|
+
// Spring effect is applied during transitions
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
describe("Initial Setup", () => {
|
|
238
|
+
it("initializes with first item as active", async () => {
|
|
239
|
+
await createWrapper();
|
|
240
|
+
await nextTick();
|
|
241
|
+
|
|
242
|
+
expect(component.currentActiveIndex).toBe(0);
|
|
243
|
+
expect(component.displayActiveIndex).toBe(0);
|
|
244
|
+
|
|
245
|
+
const firstMarker = wrapper.find(".btn-marker");
|
|
246
|
+
expect(firstMarker.classes()).toContain("active");
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
it("sets up item order and z-index correctly", async () => {
|
|
250
|
+
await createWrapper();
|
|
251
|
+
await nextTick();
|
|
252
|
+
|
|
253
|
+
const items = wrapper.findAll(".item");
|
|
254
|
+
// After initialization, items are reordered by the component
|
|
255
|
+
// Just verify that all items have order and z-index set
|
|
256
|
+
items.forEach((item: ReturnType<typeof wrapper.find>) => {
|
|
257
|
+
expect(item.element.style.order).toBeTruthy();
|
|
258
|
+
expect(item.element.style.zIndex).toBeTruthy();
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
it("adds mounted class after initialization", async () => {
|
|
263
|
+
await createWrapper();
|
|
264
|
+
await nextTick();
|
|
265
|
+
await nextTick(); // Wait for nextTick in component
|
|
266
|
+
|
|
267
|
+
expect(wrapper.classes()).toContain("mounted");
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
it("marks carousel as initialized", async () => {
|
|
271
|
+
await createWrapper();
|
|
272
|
+
await nextTick();
|
|
273
|
+
|
|
274
|
+
expect(component.carouselInitComplete).toBe(true);
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
describe("Navigation Controls", () => {
|
|
279
|
+
beforeEach(async () => {
|
|
280
|
+
await createWrapper();
|
|
281
|
+
await nextTick();
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
it("navigates to next item when next button is clicked", async () => {
|
|
285
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
286
|
+
await nextButton.trigger("click");
|
|
287
|
+
await nextTick();
|
|
288
|
+
|
|
289
|
+
expect(component.currentActiveIndex).toBe(1);
|
|
290
|
+
expect(component.userHasInteracted).toBe(true);
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
it("navigates to previous item when previous button is clicked", async () => {
|
|
294
|
+
const prevButton = wrapper.find('[aria-label="Go to previous item"]');
|
|
295
|
+
await prevButton.trigger("click");
|
|
296
|
+
await nextTick();
|
|
297
|
+
|
|
298
|
+
expect(component.currentActiveIndex).toBe(5); // Wrapped to last item
|
|
299
|
+
expect(component.userHasInteracted).toBe(true);
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
it("wraps around when navigating past last item", async () => {
|
|
303
|
+
// Navigate to last item first
|
|
304
|
+
component.currentActiveIndex = 5;
|
|
305
|
+
await nextTick();
|
|
306
|
+
|
|
307
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
308
|
+
await nextButton.trigger("click");
|
|
309
|
+
await nextTick();
|
|
310
|
+
|
|
311
|
+
expect(component.currentActiveIndex).toBe(0); // Wrapped to first item
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
it("wraps around when navigating before first item", async () => {
|
|
315
|
+
const prevButton = wrapper.find('[aria-label="Go to previous item"]');
|
|
316
|
+
await prevButton.trigger("click");
|
|
317
|
+
await nextTick();
|
|
318
|
+
|
|
319
|
+
expect(component.currentActiveIndex).toBe(5); // Wrapped to last item
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
it("jumps to specific item when marker is clicked", async () => {
|
|
323
|
+
const thirdMarker = wrapper.findAll(".btn-marker")[2];
|
|
324
|
+
await thirdMarker.trigger("click");
|
|
325
|
+
await nextTick();
|
|
326
|
+
|
|
327
|
+
expect(component.currentActiveIndex).toBe(2);
|
|
328
|
+
expect(component.userHasInteracted).toBe(true);
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
it("updates active marker visually", async () => {
|
|
332
|
+
const thirdMarker = wrapper.findAll(".btn-marker")[2];
|
|
333
|
+
await thirdMarker.trigger("click");
|
|
334
|
+
await nextTick();
|
|
335
|
+
|
|
336
|
+
const markers = wrapper.findAll(".btn-marker");
|
|
337
|
+
expect(markers[0].classes()).not.toContain("active");
|
|
338
|
+
expect(markers[2].classes()).toContain("active");
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
it("updates screen reader announcement when navigating", async () => {
|
|
342
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
343
|
+
await nextButton.trigger("click");
|
|
344
|
+
await nextTick();
|
|
345
|
+
|
|
346
|
+
const announcement = wrapper.find('[aria-live="polite"]');
|
|
347
|
+
expect(announcement.text()).toBe("Item 2 of 6");
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
it("updates aria-current for active item", async () => {
|
|
351
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
352
|
+
await nextButton.trigger("click");
|
|
353
|
+
await nextTick();
|
|
354
|
+
|
|
355
|
+
const items = wrapper.findAll(".item");
|
|
356
|
+
expect(items[0].attributes("aria-current")).toBe("false");
|
|
357
|
+
expect(items[1].attributes("aria-current")).toBe("true");
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
describe("Keyboard Navigation", () => {
|
|
362
|
+
beforeEach(async () => {
|
|
363
|
+
await createWrapper();
|
|
364
|
+
await nextTick();
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
it("navigates with arrow keys on container", async () => {
|
|
368
|
+
// Test navigation methods directly since keyboard event mocking is complex
|
|
369
|
+
component.actionNext();
|
|
370
|
+
await nextTick();
|
|
371
|
+
expect(component.currentActiveIndex).toBe(1);
|
|
372
|
+
|
|
373
|
+
component.actionPrevious();
|
|
374
|
+
await nextTick();
|
|
375
|
+
expect(component.currentActiveIndex).toBe(0);
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
it("navigates with arrow keys on controls container", async () => {
|
|
379
|
+
// Test navigation methods directly since keyboard event mocking is complex
|
|
380
|
+
component.actionNext();
|
|
381
|
+
await nextTick();
|
|
382
|
+
expect(component.currentActiveIndex).toBe(1);
|
|
383
|
+
|
|
384
|
+
component.actionPrevious();
|
|
385
|
+
await nextTick();
|
|
386
|
+
expect(component.currentActiveIndex).toBe(0);
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
it("ignores other keys", async () => {
|
|
390
|
+
const container = wrapper.find(".item-container");
|
|
391
|
+
const initialIndex = component.currentActiveIndex;
|
|
392
|
+
|
|
393
|
+
await container.trigger("keydown", { key: "Space" });
|
|
394
|
+
await container.trigger("keydown", { key: "Enter" });
|
|
395
|
+
await container.trigger("keydown", { key: "Tab" });
|
|
396
|
+
await nextTick();
|
|
397
|
+
|
|
398
|
+
expect(component.currentActiveIndex).toBe(initialIndex);
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
describe("Swipe Gestures", () => {
|
|
403
|
+
beforeEach(async () => {
|
|
404
|
+
await createWrapper();
|
|
405
|
+
await nextTick();
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
it("navigates next on left swipe", async () => {
|
|
409
|
+
mockDirection.value = "left";
|
|
410
|
+
mockOnSwipeEnd();
|
|
411
|
+
await nextTick();
|
|
412
|
+
|
|
413
|
+
expect(component.currentActiveIndex).toBe(1);
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
it("navigates previous on right swipe", async () => {
|
|
417
|
+
mockDirection.value = "right";
|
|
418
|
+
mockOnSwipeEnd();
|
|
419
|
+
await nextTick();
|
|
420
|
+
|
|
421
|
+
expect(component.currentActiveIndex).toBe(5); // Wrapped to last item
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
it("ignores other swipe directions", async () => {
|
|
425
|
+
const initialIndex = component.currentActiveIndex;
|
|
426
|
+
|
|
427
|
+
mockDirection.value = "up";
|
|
428
|
+
mockOnSwipeEnd();
|
|
429
|
+
await nextTick();
|
|
430
|
+
|
|
431
|
+
expect(component.currentActiveIndex).toBe(initialIndex);
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
describe("Animation and Transitions", () => {
|
|
436
|
+
beforeEach(async () => {
|
|
437
|
+
await createWrapper();
|
|
438
|
+
await nextTick();
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
it("applies loaded class after user interaction", async () => {
|
|
442
|
+
const items = wrapper.findAll(".item");
|
|
443
|
+
expect(items[0].classes()).not.toContain("loaded");
|
|
444
|
+
|
|
445
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
446
|
+
await nextButton.trigger("click");
|
|
447
|
+
await nextTick();
|
|
448
|
+
|
|
449
|
+
const updatedItems = wrapper.findAll(".item");
|
|
450
|
+
expect(updatedItems[0].classes()).toContain("loaded");
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
it("calls reorderItems without animation during initial setup", async () => {
|
|
454
|
+
const spy = vi.spyOn(component, "reorderItems");
|
|
455
|
+
component.reorderItems(true); // skipAnimation = true
|
|
456
|
+
|
|
457
|
+
expect(spy).toHaveBeenCalledWith(true);
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
it("calls reorderItems with animation during user interaction", async () => {
|
|
461
|
+
// Test that navigation works which implicitly tests reorderItems is called
|
|
462
|
+
const initialIndex = component.currentActiveIndex;
|
|
463
|
+
|
|
464
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
465
|
+
await nextButton.trigger("click");
|
|
466
|
+
await nextTick();
|
|
467
|
+
|
|
468
|
+
// Verify navigation worked (which means reorderItems was called)
|
|
469
|
+
expect(component.currentActiveIndex).toBe(initialIndex + 1);
|
|
470
|
+
expect(component.userHasInteracted).toBe(true);
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
describe("Edge Cases", () => {
|
|
475
|
+
it("handles empty carousel data", async () => {
|
|
476
|
+
await createWrapper({ carouselDataIds: [] });
|
|
477
|
+
|
|
478
|
+
const items = wrapper.findAll(".item");
|
|
479
|
+
expect(items).toHaveLength(0);
|
|
480
|
+
expect(component.itemCount).toBe(0);
|
|
481
|
+
|
|
482
|
+
const markers = wrapper.findAll(".btn-marker");
|
|
483
|
+
expect(markers).toHaveLength(0);
|
|
484
|
+
});
|
|
485
|
+
|
|
486
|
+
it("handles single item carousel", async () => {
|
|
487
|
+
await createWrapper({ carouselDataIds: ["single-item"] });
|
|
488
|
+
|
|
489
|
+
const items = wrapper.findAll(".item");
|
|
490
|
+
expect(items).toHaveLength(1);
|
|
491
|
+
|
|
492
|
+
const markers = wrapper.findAll(".btn-marker");
|
|
493
|
+
expect(markers).toHaveLength(1);
|
|
494
|
+
expect(markers[0].classes()).toContain("active");
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
it("prevents navigation when carousel is not initialized", async () => {
|
|
498
|
+
await createWrapper();
|
|
499
|
+
component.carouselInitComplete = false;
|
|
500
|
+
|
|
501
|
+
const nextButton = wrapper.find('[aria-label="Go to next item"]');
|
|
502
|
+
await nextButton.trigger("click");
|
|
503
|
+
await nextTick();
|
|
504
|
+
|
|
505
|
+
expect(component.currentActiveIndex).toBe(0); // Should not change
|
|
506
|
+
expect(component.userHasInteracted).toBe(false);
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
it("handles jumpToFrame with invalid index", async () => {
|
|
510
|
+
await createWrapper();
|
|
511
|
+
await nextTick();
|
|
512
|
+
|
|
513
|
+
const initialIndex = component.currentActiveIndex;
|
|
514
|
+
|
|
515
|
+
component.jumpToFrame(-1);
|
|
516
|
+
component.jumpToFrame(10);
|
|
517
|
+
await nextTick();
|
|
518
|
+
|
|
519
|
+
expect(component.currentActiveIndex).toBe(initialIndex);
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
it("handles jumpToFrame without marking as user interaction during init", async () => {
|
|
523
|
+
await createWrapper();
|
|
524
|
+
component.carouselInitComplete = false;
|
|
525
|
+
component.userHasInteracted = false;
|
|
526
|
+
|
|
527
|
+
component.jumpToFrame(2);
|
|
528
|
+
await nextTick();
|
|
529
|
+
|
|
530
|
+
expect(component.currentActiveIndex).toBe(2);
|
|
531
|
+
expect(component.userHasInteracted).toBe(false); // Should not mark as interaction
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
describe("CSS Custom Properties", () => {
|
|
536
|
+
it("applies transition speed as CSS custom property", async () => {
|
|
537
|
+
await createWrapper({ transitionSpeed: 300 });
|
|
538
|
+
|
|
539
|
+
const items = wrapper.findAll(".item");
|
|
540
|
+
if (items.length > 0) {
|
|
541
|
+
// CSS custom properties are handled by Vue's reactivity system
|
|
542
|
+
expect(component).toBeDefined();
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
it("applies different offset calculations based on props", async () => {
|
|
547
|
+
await createWrapper({
|
|
548
|
+
useFlipAnimation: true,
|
|
549
|
+
allowCarouselOverflow: true,
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
// Component should calculate different offsets based on these props
|
|
553
|
+
expect(component).toBeDefined();
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
});
|
|
@@ -51,6 +51,7 @@ onBeforeUnmount(() => {
|
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
53
|
<style lang="css">
|
|
54
|
+
@layer components {
|
|
54
55
|
.clip-element-wrapper {
|
|
55
56
|
position: relative;
|
|
56
57
|
overflow: hidden;
|
|
@@ -60,4 +61,5 @@ onBeforeUnmount(() => {
|
|
|
60
61
|
clip-path: var(--_clip-path);
|
|
61
62
|
display: block;
|
|
62
63
|
}
|
|
64
|
+
}
|
|
63
65
|
</style>
|