srcdev-nuxt-components 8.0.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -118
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-prompt-core.css +94 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-toast.css +5 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-components/index.css +1 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +67 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +87 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +74 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-with-label.css +14 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-description.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +143 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-toggle-switch.css +68 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/index.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/index.css +2 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_large.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_medium.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_small.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_x-small.css +11 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/index.css +23 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_default.css +62 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_error.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_info.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +64 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_success.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/index.css +7 -0
- package/app/assets/styles/main.css +2 -0
- package/app/assets/styles/setup/01.config/_basic-resets.css +9 -0
- package/app/assets/styles/setup/01.config/_head.css +33 -0
- package/app/assets/styles/setup/01.config/_normalise.css +209 -0
- package/app/assets/styles/setup/01.config/index.css +3 -0
- package/app/assets/styles/setup/02.colours/_amber.css +12 -0
- package/app/assets/styles/setup/02.colours/_blue.css +13 -0
- package/app/assets/styles/setup/02.colours/_green.css +13 -0
- package/app/assets/styles/setup/02.colours/_orange.css +12 -0
- package/app/assets/styles/setup/02.colours/_red.css +13 -0
- package/app/assets/styles/setup/02.colours/_slate.css +13 -0
- package/app/assets/styles/setup/02.colours/_sunset.css +12 -0
- package/app/assets/styles/setup/02.colours/index.css +7 -0
- package/app/assets/styles/setup/03.theming/default/_dark.css +138 -0
- package/app/assets/styles/setup/03.theming/default/_light.css +156 -0
- package/app/assets/styles/setup/03.theming/default/index.css +2 -0
- package/app/assets/styles/setup/03.theming/error/_dark.css +56 -0
- package/app/assets/styles/setup/03.theming/error/_light.css +74 -0
- package/app/assets/styles/setup/03.theming/error/index.css +2 -0
- package/app/assets/styles/setup/03.theming/index.css +4 -0
- package/app/assets/styles/setup/03.theming/success/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/success/_light.css +65 -0
- package/app/assets/styles/setup/03.theming/success/index.css +2 -0
- package/app/assets/styles/setup/03.theming/warning/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/warning/_light.css +64 -0
- package/app/assets/styles/setup/03.theming/warning/index.css +2 -0
- package/app/assets/styles/setup/04.elements/forms/00.element-defaults.css +21 -0
- package/app/assets/styles/setup/04.elements/forms/01.field-layout-container-level.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/02.typography.css +24 -0
- package/app/assets/styles/setup/04.elements/forms/03.generic-input-geometry.css +63 -0
- package/app/assets/styles/setup/04.elements/forms/04.slot-icon-system.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/05.checkbox-radio-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/07.validation-error-block-layout.css +9 -0
- package/app/assets/styles/setup/04.elements/forms/09.animation-motion.css +6 -0
- package/app/assets/styles/setup/04.elements/forms/index.css +9 -0
- package/app/assets/styles/setup/04.elements/index.css +1 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_font-family.css +8 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_reponsive-font-sizes.css +22 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_timing-functions.css +119 -0
- package/app/assets/styles/setup/05.typography/01.tokens/index.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-article.css +30 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-card.css +45 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-body.css +146 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-heading.css +35 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-link.css +116 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-section.css +7 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-classes.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-variation-settings.css +29 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-weights.css +39 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/index.css +9 -0
- package/app/assets/styles/setup/05.typography/index.css +2 -0
- package/app/assets/styles/setup/06.utility-classes/_a11y.css +280 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_auto-rotate.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-exit-blur.css +16 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-slide-in.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-zoom-reveal.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_containers.css +96 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_flexbox.css +196 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_grid.css +266 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_positioning.css +149 -0
- package/app/assets/styles/setup/06.utility-classes/layout/index.css +9 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_fluid-spacing.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_margin.css +334 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_padding.css +308 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/index.css +3 -0
- package/app/assets/styles/setup/a11y/_variables.css +8 -0
- package/app/assets/styles/setup/a11y/index.css +1 -0
- package/app/assets/styles/setup/index.css +10 -0
- package/app/components/01.atoms/animations/entry/EntryAnimation.vue +22 -0
- package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +74 -0
- package/app/components/01.atoms/glass-panel/GlassPanel.vue +52 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +42 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts +67 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/stories/EyebrowText.stories.ts +49 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +196 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/__snapshots__/EyebrowText.spec.ts.snap +17 -0
- package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +101 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts +110 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/stories/HeroText.stories.ts +70 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +148 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/__snapshots__/HeroText.spec.ts.snap +7 -0
- package/app/components/02.molecules/contact-section/stories/ContactSection.stories.ts +197 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.spec.ts +196 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.vue +87 -0
- package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap +119 -0
- package/app/components/02.molecules/price-list/PriceList.vue +119 -0
- package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +103 -0
- package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +192 -0
- package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +73 -0
- package/app/components/02.molecules/profile-section/ProfileSection.vue +154 -0
- package/app/components/02.molecules/profile-section/stories/ProfileSection.stories.ts +154 -0
- package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +147 -0
- package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +29 -0
- package/app/components/02.molecules/stepper-list/StepperList.vue +158 -0
- package/app/components/02.molecules/stepper-list/stories/StepperList.stories.ts +392 -0
- package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +289 -0
- package/app/components/02.molecules/stepper-list/tests/__snapshots__/StepperList.spec.ts.snap +86 -0
- package/app/components/03.organisms/colour-finder/ColourFinder.vue +1519 -0
- package/app/components/03.organisms/services/services-card/ServicesCard.vue +104 -0
- package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +39 -0
- package/app/components/03.organisms/services/services-grids/ServicesSectionGrid.vue +52 -0
- package/app/components/03.organisms/services/services-section/ServicesSection.vue +307 -0
- package/app/components/03.organisms/treatment-consultant/TreatmentConsultant.vue +2221 -0
- package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts +38 -0
- package/app/components/accordian/AccordianCore.vue +26 -21
- package/app/components/accordian/stories/AccordianCore.stories.ts +241 -0
- package/app/components/accordian/tests/AccordianCore.spec.ts +218 -0
- package/app/components/accordian/tests/__snapshots__/AccordianCore.spec.ts.snap +74 -0
- package/app/components/alert-mask/AlertMaskCore.vue +35 -33
- package/app/components/alert-mask/tests/AlertMaskCore.spec.ts +304 -0
- package/app/components/animated-svg-text/AnimatedSvgText.vue +2 -0
- package/app/components/canvas-switcher/CanvasSwitcher.vue +10 -8
- package/app/components/{carousel-basic → carousels}/CarouselBasic.vue +58 -56
- package/app/components/{carousel-basic → carousels}/CarouselFlip.vue +150 -148
- package/app/components/{carousel-basic → carousels}/CarouselInfinite.vue +2 -0
- package/app/components/carousels/stories/CarouselFlip.stories.ts +637 -0
- package/app/components/carousels/tests/CarouselFlip.spec.ts +556 -0
- package/app/components/clip-element/ClipElement.vue +2 -0
- package/app/components/clipped-panels/ClippedPanel.vue +2 -0
- package/app/components/container-glow/ContainerGlowCore.vue +119 -50
- package/app/components/container-glow/stories/ContainerGlowCore.stories.ts +337 -0
- package/app/components/content-columns/TwoColumns.vue +59 -0
- package/app/components/content-columns/stories/TwoColumns.stories.ts +561 -0
- package/app/components/content-containers/ContentContainer.vue +89 -0
- package/app/components/content-containers/stories/ContentContainer.stories.ts +465 -0
- package/app/components/content-grid/ContentGrid.vue +4 -2
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +18 -16
- package/app/components/deep-expanding-menu/DeepExpandingMenuOld.vue +28 -26
- package/app/components/display-avatar/DisplayAvatar.vue +15 -13
- package/app/components/display-avatar/stories/DisplayAvatar.stories.ts +94 -0
- package/app/components/display-banner/DisplayBanner.vue +2 -0
- package/app/components/display-card/DisplayCard.vue +16 -14
- package/app/components/display-chip/DisplayChip.vue +2 -0
- package/app/components/display-chip/stories/DisplayChip.stories.ts +346 -0
- package/app/components/display-details/DisplayDetailsCore.vue +2 -0
- package/app/components/display-dialog/DisplayDialogCore.vue +24 -17
- package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +2 -0
- package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +2 -0
- package/app/components/display-grid/DisplayGridCore.vue +4 -4
- package/app/components/display-prompt/DisplayPromptCore.vue +20 -16
- package/app/components/display-prompt/variants/DisplayPromptError.vue +6 -4
- package/app/components/display-theme-switch/DisplayThemeSwitch.vue +182 -0
- package/app/components/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +154 -0
- package/app/components/display-toast/DisplayToast.vue +63 -61
- package/app/components/display-toast/molecules/DefaultToastContent.vue +21 -45
- package/app/components/display-toast/stories/DisplayToast.stories.ts +380 -0
- package/app/components/display-tooltip/DisplayTooltip.vue +14 -9
- package/app/components/display-tooltip/DisplayTooltipDefined.vue +2 -0
- package/app/components/expanding-panel/ExpandingPanel.vue +28 -41
- package/app/components/forms/c12/prop-validators/index.ts +48 -0
- package/app/components/forms/c12/utils.ts +14 -0
- package/app/components/forms/form-errors/InputError.vue +208 -0
- package/app/components/forms/form-errors/tests/InputError.spec.ts +66 -0
- package/app/components/forms/form-fieldset/FormFieldset.vue +75 -0
- package/app/components/forms/input-button/InputButtonCore.vue +219 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts +113 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/stories/InputButtonCore.stories.ts +304 -0
- package/app/components/forms/input-button/tests/InputButtonCore.spec.ts +269 -0
- package/app/components/forms/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +72 -0
- package/app/components/forms/input-checkbox/MultipleCheckboxes.vue +181 -0
- package/app/components/forms/input-checkbox/SingleCheckbox.vue +144 -0
- package/app/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +101 -0
- package/app/components/forms/input-checkbox/tests/data/tags.json +67 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +174 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +199 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +104 -0
- package/app/components/forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +320 -0
- package/app/components/forms/input-description/InputDescription.vue +55 -0
- package/app/components/forms/input-description/tests/InputDescription.spec.ts +429 -0
- package/app/components/forms/input-label/InputLabel.vue +66 -0
- package/app/components/forms/input-label/tests/InputLabel.spec.ts +431 -0
- package/app/components/forms/input-number/InputNumberCore.vue +163 -0
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +150 -0
- package/app/components/forms/input-radio/MultipleRadiobuttons.vue +180 -0
- package/app/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +90 -0
- package/app/components/forms/input-radio/tests/data/tags.json +67 -0
- package/app/components/forms/input-range/InputRangeCore.vue +233 -0
- package/app/components/forms/input-range/variants/InputRangeDefault.vue +166 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyCore.vue +426 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +94 -0
- package/app/components/forms/input-select/InputSelectCore.vue +171 -0
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +121 -0
- package/app/components/forms/input-text/InputTextCore.vue +222 -0
- package/app/components/forms/input-text/stories/InputPasswordWithLabel.stories.ts +339 -0
- package/app/components/forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +461 -0
- package/app/components/forms/input-text/stories/InputTextCore.stories.ts +241 -0
- package/app/components/forms/input-text/stories/InputTextWithLabel.stories.ts +293 -0
- package/app/components/forms/input-text/variants/InputPasswordWithLabel.vue +86 -0
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +203 -0
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +149 -0
- package/app/components/forms/input-textarea/InputTextareaCore.vue +151 -0
- package/app/components/forms/input-textarea/stories/InputTextareaCore.stories.ts +247 -0
- package/app/components/forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +452 -0
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +150 -0
- package/app/components/forms/pending-effect/PendingEffect.vue +101 -0
- package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +221 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchCore.stories.ts +236 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +253 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +280 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +101 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +84 -0
- package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +290 -0
- package/app/components/forms/ui/FormField.vue +81 -0
- package/app/components/forms/ui/FormWrapper.vue +37 -0
- package/app/components/glowing-border/GlowingBorder.vue +2 -0
- package/app/components/glowing-border/stories/GlowingBorder.stories.ts +141 -0
- package/app/components/image-galleries/SliderGallery.vue +100 -100
- package/app/components/layout-grids/LayoutGridA.vue +2 -0
- package/app/components/layout-grids/LayoutGridB.vue +8 -6
- package/app/components/layout-grids/stories/LayoutGridA.stories.ts +402 -0
- package/app/components/layout-grids/stories/LayoutGridB.stories.ts +420 -0
- package/app/components/layout-grids/tests/LayoutGridA.spec.ts +352 -0
- package/app/components/layout-grids/tests/LayoutGridB.spec.ts +490 -0
- package/app/components/layout-row/LayoutRow.vue +60 -54
- package/app/components/layout-row/stories/LayoutRow.stories.ts +528 -0
- package/app/components/magnetic-navigation/MagneticNavigation.vue +2 -0
- package/app/components/marquee-scroller/MarqueeScroller.vue +35 -33
- package/app/components/masonry-grid/MasonryGrid.vue +8 -6
- package/app/components/masonry-grid-ordered/MasonryGridOrdered.vue +2 -0
- package/app/components/masonry-grid-ordered/MasonryGridOrderedGridExperiment.vue +82 -87
- package/app/components/masonry-grid-ordered/stories/MasonryGridOrdered.stories.ts +354 -0
- package/app/components/masonry-grid-sorted/MasonryGridSorted.vue +2 -0
- package/app/components/parallax/SectionParallax.vue +10 -8
- package/app/components/pop-over/PopOver.vue +2 -0
- package/app/components/qr-code/CaptureQrCode.vue +2 -0
- package/app/components/qr-code/DecodeQrCode.vue +2 -0
- package/app/components/qr-code/DisplayQrCode.vue +7 -5
- package/app/components/qr-code/stories/QrCode.stories.ts +933 -0
- package/app/components/responsive-header/NavigationItems.vue +34 -23
- package/app/components/responsive-header/ResponsiveHeader.vue +163 -157
- package/app/components/rotating-carousel/RotatingCarouselImage.vue +2 -0
- package/app/components/skip-links/SkipLinks.vue +2 -0
- package/app/components/tabs/TabsCore.vue +38 -30
- package/app/components/test-storybook/TestStorybook.vue +49 -0
- package/app/components/test-storybook/stories/TestStorybook.stories.ts +28 -0
- package/app/components/ui-block-decorated/UiBlockDecorated.vue +2 -0
- package/app/components/view-timeline/WipeAwayVertical.vue +2 -0
- package/app/composables/useApiRequest.ts +25 -0
- package/app/composables/useAriaDescribedById.ts +19 -0
- package/app/composables/useColourScheme.ts +18 -0
- package/app/composables/useErrorMessages.ts +62 -0
- package/app/composables/useFormControl.ts +264 -0
- package/app/composables/useMaxChildWidth.ts +30 -0
- package/app/composables/useTabs.ts +207 -117
- package/app/composables/useZodValidation.ts +147 -0
- package/app/layouts/default.vue +605 -0
- package/app/pages/forms/examples/buttons/index.vue +285 -0
- package/app/pages/forms/examples/material/checkbox-radio-panels.vue +244 -0
- package/app/pages/forms/examples/material/cssbattle.vue +60 -0
- package/app/pages/forms/examples/material/text-fields.vue +913 -0
- package/app/pages/index.vue +122 -0
- package/app/pages/typography/hero-text.vue +97 -0
- package/app/pages/typography/index.vue +39 -0
- package/app/pages/typography/page-body.vue +171 -0
- package/app/pages/typography/page-heading.vue +76 -0
- package/app/pages/typography/page-link.vue +103 -0
- package/app/pages/ui/accordian.vue +211 -0
- package/app/pages/ui/animated-svg-text.vue +85 -0
- package/app/pages/ui/block-decorators.vue +142 -0
- package/app/pages/ui/carousel-basic.vue +292 -0
- package/app/pages/ui/carousel-flip.vue +244 -0
- package/app/pages/ui/carousel-infinite.vue +260 -0
- package/app/pages/ui/clipped-panels.vue +101 -0
- package/app/pages/ui/contact-section.vue +323 -0
- package/app/pages/ui/container-glow.vue +107 -0
- package/app/pages/ui/content-container.vue +112 -0
- package/app/pages/ui/display-avatar.vue +253 -0
- package/app/pages/ui/display-banner.vue +78 -0
- package/app/pages/ui/display-card.vue +82 -0
- package/app/pages/ui/display-chip.vue +225 -0
- package/app/pages/ui/display-details.vue +175 -0
- package/app/pages/ui/display-dialog.vue +231 -0
- package/app/pages/ui/display-prompt.vue +81 -0
- package/app/pages/ui/display-toast.vue +332 -0
- package/app/pages/ui/expanding-panel.vue +193 -0
- package/app/pages/ui/glowing-border.vue +111 -0
- package/app/pages/ui/layout-grid-a.vue +149 -0
- package/app/pages/ui/layout-grid-b.vue +132 -0
- package/app/pages/ui/layout-row.vue +139 -0
- package/app/pages/ui/magnetic-navigation.vue +50 -0
- package/app/pages/ui/marquee-scroller.vue +99 -0
- package/app/pages/ui/mask-element.vue +82 -0
- package/app/pages/ui/masonry-columns.vue +55 -0
- package/app/pages/ui/masonry-grid-ordered-experiment.vue +79 -0
- package/app/pages/ui/masonry-grid-ordered.vue +56 -0
- package/app/pages/ui/masonry-grid-sorted.vue +55 -0
- package/app/pages/ui/masonry-grid.vue +55 -0
- package/app/pages/ui/price-list.vue +65 -0
- package/app/pages/ui/profile-section.vue +96 -0
- package/app/pages/ui/qr-code/[componentName].vue +218 -0
- package/app/pages/ui/rotating-carousel.vue +154 -0
- package/app/pages/ui/section-parallax.vue +54 -0
- package/app/pages/ui/services/colour-finder.vue +43 -0
- package/app/pages/ui/services/services-cards.vue +42 -0
- package/app/pages/ui/services/services-section/[slug].vue +59 -0
- package/app/pages/ui/services/services-sections-compact.vue +64 -0
- package/app/pages/ui/services/treatment-consultant.vue +39 -0
- package/app/pages/ui/settings.vue +80 -0
- package/app/pages/ui/simple-grid.vue +66 -0
- package/app/pages/ui/slider-gallery.vue +261 -0
- package/app/pages/ui/tabs-y.vue +108 -0
- package/app/pages/ui/tabs.vue +192 -0
- package/app/pages/ui/tooltips.vue +104 -0
- package/app/pages/ui/wipe-away-vertical.vue +129 -0
- package/app/plugins/css-anchor-positioning-polyfill.client.ts +5 -0
- package/app/stores/useServicesStore.ts +37 -0
- package/app/stores/useSettingsStore.ts +35 -0
- package/app/types/components/hero-text.ts +4 -0
- package/app/types/components/index.ts +1 -0
- package/app/types/forms/types.forms.d.ts +293 -0
- package/app/types/forms/types.zodFormControl.d.ts +29 -0
- package/app/types/types.posts.ts +21 -0
- package/app/types/types.quotes.ts +12 -0
- package/app/types/types.services.ts +20 -0
- package/app/utils/colour-scheme-init.ts +17 -0
- package/nuxt.config.ts +86 -6
- package/package.json +51 -14
- package/types/components/css-anchor-polyfill.d.ts +1 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import StepperList from "../StepperList.vue";
|
|
2
|
+
import type { Meta, StoryObj } from "@nuxtjs/storybook";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof StepperList> = {
|
|
5
|
+
title: "Molecules/Lists/StepperList",
|
|
6
|
+
component: StepperList,
|
|
7
|
+
argTypes: {
|
|
8
|
+
tag: {
|
|
9
|
+
control: { type: "select" },
|
|
10
|
+
options: ["ul", "ol"],
|
|
11
|
+
description: "HTML list element to render — use ol for ordered/sequential content",
|
|
12
|
+
},
|
|
13
|
+
itemCount: {
|
|
14
|
+
control: { type: "number", min: 0, step: 1 },
|
|
15
|
+
description: "Number of list items to render",
|
|
16
|
+
},
|
|
17
|
+
indicatorAlignment: {
|
|
18
|
+
control: { type: "select" },
|
|
19
|
+
options: ["top", "center"],
|
|
20
|
+
description: "Vertical alignment of the indicator relative to the list item content",
|
|
21
|
+
},
|
|
22
|
+
indicatorVariant: {
|
|
23
|
+
control: { type: "select" },
|
|
24
|
+
options: ["disc", "circle", "square"],
|
|
25
|
+
description: "Visual style of the counter indicator",
|
|
26
|
+
},
|
|
27
|
+
connected: {
|
|
28
|
+
control: "boolean",
|
|
29
|
+
description: "Whether to show connectors between indicators (only visible in supported browsers)",
|
|
30
|
+
},
|
|
31
|
+
styleClassPassthrough: {
|
|
32
|
+
control: "object",
|
|
33
|
+
description: "Additional CSS classes applied to the root element",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
args: {
|
|
37
|
+
tag: "ul",
|
|
38
|
+
itemCount: 3,
|
|
39
|
+
indicatorAlignment: "top",
|
|
40
|
+
indicatorVariant: "disc",
|
|
41
|
+
connected: false,
|
|
42
|
+
styleClassPassthrough: [],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default meta;
|
|
47
|
+
type Story = StoryObj<typeof StepperList>;
|
|
48
|
+
|
|
49
|
+
// ─── Stories ─────────────────────────────────────────────────────────────────
|
|
50
|
+
|
|
51
|
+
/** Default — counter bubbles are rendered via CSS, no indicator slots needed. */
|
|
52
|
+
export const Default: Story = {
|
|
53
|
+
args: {
|
|
54
|
+
tag: "ul",
|
|
55
|
+
itemCount: 5,
|
|
56
|
+
connected: false,
|
|
57
|
+
},
|
|
58
|
+
render: (args) => ({
|
|
59
|
+
components: { StepperList },
|
|
60
|
+
setup() {
|
|
61
|
+
return { args };
|
|
62
|
+
},
|
|
63
|
+
template: `
|
|
64
|
+
<StepperList v-bind="args">
|
|
65
|
+
<template #item-0><p class="page-body-normal">Plan your project goals and define what success looks like</p></template>
|
|
66
|
+
<template #item-1><p class="page-body-normal">Set up your development environment</p></template>
|
|
67
|
+
<template #item-2><p class="page-body-normal">Build core features following the sprint backlog, reviewing progress at the end of each week with the full team</p></template>
|
|
68
|
+
<template #item-3><p class="page-body-normal">Write tests and review code with your team</p></template>
|
|
69
|
+
<template #item-4><p class="page-body-normal">Deploy to staging, gather feedback, and iterate</p></template>
|
|
70
|
+
</StepperList>
|
|
71
|
+
`,
|
|
72
|
+
}),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** Ordered list — demonstrates the ol tag for sequentially meaningful content. */
|
|
76
|
+
export const OrderedList: Story = {
|
|
77
|
+
name: "Ordered List (ol)",
|
|
78
|
+
args: {
|
|
79
|
+
tag: "ol",
|
|
80
|
+
itemCount: 6,
|
|
81
|
+
},
|
|
82
|
+
render: (args) => ({
|
|
83
|
+
components: { StepperList },
|
|
84
|
+
setup() {
|
|
85
|
+
return { args };
|
|
86
|
+
},
|
|
87
|
+
template: `
|
|
88
|
+
<StepperList v-bind="args">
|
|
89
|
+
<template #item-0><p class="page-body-normal">Preheat the oven to 180°C</p></template>
|
|
90
|
+
<template #item-1><p class="page-body-normal">Sift together the flour, baking powder, and a pinch of salt into a large bowl</p></template>
|
|
91
|
+
<template #item-2><p class="page-body-normal">Cream the butter and sugar until pale and fluffy, about 3–4 minutes with an electric mixer</p></template>
|
|
92
|
+
<template #item-3><p class="page-body-normal">Beat in the eggs one at a time, adding a spoonful of flour with each egg to prevent the mixture from curdling</p></template>
|
|
93
|
+
<template #item-4><p class="page-body-normal">Fold in the wet ingredients until just combined — do not overmix</p></template>
|
|
94
|
+
<template #item-5><p class="page-body-normal">Bake for 25–30 minutes until a skewer inserted into the centre comes out clean</p></template>
|
|
95
|
+
</StepperList>
|
|
96
|
+
`,
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** Custom indicators — icon slots replace the default CSS counter bubbles. */
|
|
101
|
+
export const WithCustomIndicators: Story = {
|
|
102
|
+
name: "With Custom Indicator Icons",
|
|
103
|
+
args: {
|
|
104
|
+
tag: "ul",
|
|
105
|
+
itemCount: 5,
|
|
106
|
+
},
|
|
107
|
+
render: (args) => ({
|
|
108
|
+
components: { StepperList },
|
|
109
|
+
setup() {
|
|
110
|
+
return { args };
|
|
111
|
+
},
|
|
112
|
+
template: `
|
|
113
|
+
<StepperList v-bind="args">
|
|
114
|
+
<template #indicator-0>
|
|
115
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
116
|
+
<polyline points="20 6 9 17 4 12" />
|
|
117
|
+
</svg>
|
|
118
|
+
</template>
|
|
119
|
+
<template #item-0><p class="page-body-normal">Identity verified successfully</p></template>
|
|
120
|
+
|
|
121
|
+
<template #indicator-1>
|
|
122
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
123
|
+
<polyline points="20 6 9 17 4 12" />
|
|
124
|
+
</svg>
|
|
125
|
+
</template>
|
|
126
|
+
<template #item-1><p class="page-body-normal">Payment method confirmed — your card ending in 4242 is saved securely</p></template>
|
|
127
|
+
|
|
128
|
+
<template #indicator-2>
|
|
129
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
130
|
+
<polyline points="20 6 9 17 4 12" />
|
|
131
|
+
</svg>
|
|
132
|
+
</template>
|
|
133
|
+
<template #item-2><p class="page-body-normal">Billing address saved</p></template>
|
|
134
|
+
|
|
135
|
+
<template #indicator-3>
|
|
136
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
137
|
+
<circle cx="12" cy="12" r="10" /><line x1="12" y1="8" x2="12" y2="12" /><line x1="12" y1="16" x2="12.01" y2="16" />
|
|
138
|
+
</svg>
|
|
139
|
+
</template>
|
|
140
|
+
<template #item-3><p class="page-body-normal">Awaiting email confirmation — check your inbox and click the link we sent you to continue</p></template>
|
|
141
|
+
|
|
142
|
+
<template #indicator-4>
|
|
143
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
144
|
+
<circle cx="12" cy="12" r="10" /><line x1="12" y1="8" x2="12" y2="12" /><line x1="12" y1="16" x2="12.01" y2="16" />
|
|
145
|
+
</svg>
|
|
146
|
+
</template>
|
|
147
|
+
<template #item-4><p class="page-body-normal">Awaiting address confirmation</p></template>
|
|
148
|
+
</StepperList>
|
|
149
|
+
`,
|
|
150
|
+
}),
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/** Mixed — some items use custom indicator slots, others fall back to CSS counters. */
|
|
154
|
+
export const MixedIndicators: Story = {
|
|
155
|
+
name: "Mixed — Icons and Counters",
|
|
156
|
+
args: {
|
|
157
|
+
tag: "ul",
|
|
158
|
+
itemCount: 5,
|
|
159
|
+
connected: true
|
|
160
|
+
},
|
|
161
|
+
render: (args) => ({
|
|
162
|
+
components: { StepperList },
|
|
163
|
+
setup() {
|
|
164
|
+
return { args };
|
|
165
|
+
},
|
|
166
|
+
template: `
|
|
167
|
+
<StepperList v-bind="args">
|
|
168
|
+
<template #indicator-0>
|
|
169
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
170
|
+
<polyline points="20 6 9 17 4 12" />
|
|
171
|
+
</svg>
|
|
172
|
+
</template>
|
|
173
|
+
<template #item-0><p class="page-body-normal">Account created and email verified</p></template>
|
|
174
|
+
|
|
175
|
+
<template #indicator-1>
|
|
176
|
+
<svg class="indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
177
|
+
<polyline points="20 6 9 17 4 12" />
|
|
178
|
+
</svg>
|
|
179
|
+
</template>
|
|
180
|
+
<template #item-1><p class="page-body-normal">Payment method saved — your subscription will renew automatically on the 1st of each month</p></template>
|
|
181
|
+
|
|
182
|
+
<template #item-2><p class="page-body-normal">Awaiting profile completion</p></template>
|
|
183
|
+
|
|
184
|
+
<template #item-3><p class="page-body-normal">Pending team invite acceptance — you invited 3 colleagues and are waiting for them to join</p></template>
|
|
185
|
+
|
|
186
|
+
<template #item-4><p class="page-body-normal">Pending plan selection</p></template>
|
|
187
|
+
</StepperList>
|
|
188
|
+
`,
|
|
189
|
+
}),
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/** Indicator alignment — center alignment works well for single-line items. */
|
|
193
|
+
export const AlignmentCenter: Story = {
|
|
194
|
+
name: "Alignment — Center",
|
|
195
|
+
args: {
|
|
196
|
+
tag: "ul",
|
|
197
|
+
itemCount: 5,
|
|
198
|
+
indicatorAlignment: "center",
|
|
199
|
+
},
|
|
200
|
+
render: (args) => ({
|
|
201
|
+
components: { StepperList },
|
|
202
|
+
setup() {
|
|
203
|
+
return { args };
|
|
204
|
+
},
|
|
205
|
+
template: `
|
|
206
|
+
<StepperList v-bind="args">
|
|
207
|
+
<template #item-0><p class="page-body-normal">Connect your data source</p></template>
|
|
208
|
+
<template #item-1><p class="page-body-normal">Configure sync settings</p></template>
|
|
209
|
+
<template #item-2><p class="page-body-normal">Map your fields</p></template>
|
|
210
|
+
<template #item-3><p class="page-body-normal">Run a test import to check everything looks right</p></template>
|
|
211
|
+
<template #item-4><p class="page-body-normal">Publish</p></template>
|
|
212
|
+
</StepperList>
|
|
213
|
+
`,
|
|
214
|
+
}),
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
/** Disc variant — filled circle with solid background (default). */
|
|
218
|
+
export const VariantDisc: Story = {
|
|
219
|
+
name: "Variant — Disc",
|
|
220
|
+
args: {
|
|
221
|
+
tag: "ul",
|
|
222
|
+
itemCount: 5,
|
|
223
|
+
indicatorVariant: "disc",
|
|
224
|
+
},
|
|
225
|
+
render: (args) => ({
|
|
226
|
+
components: { StepperList },
|
|
227
|
+
setup() {
|
|
228
|
+
return { args };
|
|
229
|
+
},
|
|
230
|
+
template: `
|
|
231
|
+
<StepperList v-bind="args">
|
|
232
|
+
<template #item-0><p class="page-body-normal">Research and define requirements with stakeholders</p></template>
|
|
233
|
+
<template #item-1><p class="page-body-normal">Wireframe key user journeys</p></template>
|
|
234
|
+
<template #item-2><p class="page-body-normal">Build interactive prototypes and gather early feedback from a representative sample of users before committing to full development</p></template>
|
|
235
|
+
<template #item-3><p class="page-body-normal">Implement and test</p></template>
|
|
236
|
+
<template #item-4><p class="page-body-normal">Ship and monitor</p></template>
|
|
237
|
+
</StepperList>
|
|
238
|
+
`,
|
|
239
|
+
}),
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/** Circle variant — transparent background with a circular border. */
|
|
243
|
+
export const VariantCircle: Story = {
|
|
244
|
+
name: "Variant — Circle",
|
|
245
|
+
args: {
|
|
246
|
+
tag: "ul",
|
|
247
|
+
itemCount: 5,
|
|
248
|
+
indicatorVariant: "circle",
|
|
249
|
+
},
|
|
250
|
+
render: (args) => ({
|
|
251
|
+
components: { StepperList },
|
|
252
|
+
setup() {
|
|
253
|
+
return { args };
|
|
254
|
+
},
|
|
255
|
+
template: `
|
|
256
|
+
<StepperList v-bind="args">
|
|
257
|
+
<template #item-0><p class="page-body-normal">Research and define requirements with stakeholders</p></template>
|
|
258
|
+
<template #item-1><p class="page-body-normal">Wireframe key user journeys</p></template>
|
|
259
|
+
<template #item-2><p class="page-body-normal">Build interactive prototypes and gather early feedback from a representative sample of users before committing to full development</p></template>
|
|
260
|
+
<template #item-3><p class="page-body-normal">Implement and test</p></template>
|
|
261
|
+
<template #item-4><p class="page-body-normal">Ship and monitor</p></template>
|
|
262
|
+
</StepperList>
|
|
263
|
+
`,
|
|
264
|
+
}),
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** Square variant — number with a square border and rounded corners. */
|
|
268
|
+
export const VariantSquare: Story = {
|
|
269
|
+
name: "Variant — Square",
|
|
270
|
+
args: {
|
|
271
|
+
tag: "ul",
|
|
272
|
+
itemCount: 5,
|
|
273
|
+
indicatorVariant: "square",
|
|
274
|
+
},
|
|
275
|
+
render: (args) => ({
|
|
276
|
+
components: { StepperList },
|
|
277
|
+
setup() {
|
|
278
|
+
return { args };
|
|
279
|
+
},
|
|
280
|
+
template: `
|
|
281
|
+
<StepperList v-bind="args">
|
|
282
|
+
<template #item-0><p class="page-body-normal">Research and define requirements with stakeholders</p></template>
|
|
283
|
+
<template #item-1><p class="page-body-normal">Wireframe key user journeys</p></template>
|
|
284
|
+
<template #item-2><p class="page-body-normal">Build interactive prototypes and gather early feedback from a representative sample of users before committing to full development</p></template>
|
|
285
|
+
<template #item-3><p class="page-body-normal">Implement and test</p></template>
|
|
286
|
+
<template #item-4><p class="page-body-normal">Ship and monitor</p></template>
|
|
287
|
+
</StepperList>
|
|
288
|
+
`,
|
|
289
|
+
}),
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/** Rich content — items contain a mix of heading + body, varying in length. */
|
|
293
|
+
export const RichContent: Story = {
|
|
294
|
+
name: "Rich Item Content",
|
|
295
|
+
args: {
|
|
296
|
+
tag: "ol",
|
|
297
|
+
itemCount: 5,
|
|
298
|
+
},
|
|
299
|
+
render: (args) => ({
|
|
300
|
+
components: { StepperList },
|
|
301
|
+
setup() {
|
|
302
|
+
return { args };
|
|
303
|
+
},
|
|
304
|
+
template: `
|
|
305
|
+
<StepperList v-bind="args">
|
|
306
|
+
<template #item-0>
|
|
307
|
+
<div>
|
|
308
|
+
<strong>Create your account</strong>
|
|
309
|
+
<p class="page-body-normal" style="margin:0.25rem 0 0">Enter your email and choose a password to get started.</p>
|
|
310
|
+
</div>
|
|
311
|
+
</template>
|
|
312
|
+
<template #item-1>
|
|
313
|
+
<div>
|
|
314
|
+
<strong>Verify your email</strong>
|
|
315
|
+
<p class="page-body-normal" style="margin:0.25rem 0 0">Click the link we sent to your inbox. If you don't see it, check your spam folder — it should arrive within a few minutes.</p>
|
|
316
|
+
</div>
|
|
317
|
+
</template>
|
|
318
|
+
<template #item-2>
|
|
319
|
+
<div>
|
|
320
|
+
<strong>Choose a plan</strong>
|
|
321
|
+
<p class="page-body-normal" style="margin:0.25rem 0 0">Select from Starter, Pro, or Enterprise depending on your needs.</p>
|
|
322
|
+
</div>
|
|
323
|
+
</template>
|
|
324
|
+
<template #item-3>
|
|
325
|
+
<div>
|
|
326
|
+
<strong>Invite your team</strong>
|
|
327
|
+
<p class="page-body-normal" style="margin:0.25rem 0 0">Add colleagues by email so they can collaborate on your workspace.</p>
|
|
328
|
+
</div>
|
|
329
|
+
</template>
|
|
330
|
+
<template #item-4>
|
|
331
|
+
<div>
|
|
332
|
+
<strong>Start building</strong>
|
|
333
|
+
<p class="page-body-normal" style="margin:0.25rem 0 0">You're all set — dive into the dashboard and start your first project.</p>
|
|
334
|
+
</div>
|
|
335
|
+
</template>
|
|
336
|
+
</StepperList>
|
|
337
|
+
`,
|
|
338
|
+
}),
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export const SingleItem: Story = {
|
|
342
|
+
name: "Single Item",
|
|
343
|
+
args: {
|
|
344
|
+
tag: "ul",
|
|
345
|
+
itemCount: 1,
|
|
346
|
+
},
|
|
347
|
+
render: (args) => ({
|
|
348
|
+
components: { StepperList },
|
|
349
|
+
setup() {
|
|
350
|
+
return { args };
|
|
351
|
+
},
|
|
352
|
+
template: `
|
|
353
|
+
<StepperList v-bind="args">
|
|
354
|
+
<template #item-0><p class="page-body-normal">The only item</p></template>
|
|
355
|
+
</StepperList>
|
|
356
|
+
`,
|
|
357
|
+
}),
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export const Empty: Story = {
|
|
361
|
+
name: "Zero Items",
|
|
362
|
+
args: {
|
|
363
|
+
itemCount: 0,
|
|
364
|
+
},
|
|
365
|
+
render: (args) => ({
|
|
366
|
+
components: { StepperList },
|
|
367
|
+
setup() {
|
|
368
|
+
return { args };
|
|
369
|
+
},
|
|
370
|
+
template: `<StepperList v-bind="args" />`,
|
|
371
|
+
}),
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
export const WithStyleClassPassthrough: Story = {
|
|
375
|
+
name: "With styleClassPassthrough",
|
|
376
|
+
args: {
|
|
377
|
+
itemCount: 2,
|
|
378
|
+
styleClassPassthrough: ["custom-class", "another-class"],
|
|
379
|
+
},
|
|
380
|
+
render: (args) => ({
|
|
381
|
+
components: { StepperList },
|
|
382
|
+
setup() {
|
|
383
|
+
return { args };
|
|
384
|
+
},
|
|
385
|
+
template: `
|
|
386
|
+
<StepperList v-bind="args">
|
|
387
|
+
<template #item-0><p class="page-body-normal">First item</p></template>
|
|
388
|
+
<template #item-1><p class="page-body-normal">Second item</p></template>
|
|
389
|
+
</StepperList>
|
|
390
|
+
`,
|
|
391
|
+
}),
|
|
392
|
+
};
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { mountSuspended } from "@nuxt/test-utils/runtime";
|
|
3
|
+
import StepperList from "../StepperList.vue";
|
|
4
|
+
|
|
5
|
+
describe("StepperList", () => {
|
|
6
|
+
// ─── Mount ───────────────────────────────────────────────────────────────
|
|
7
|
+
|
|
8
|
+
it("mounts without error", async () => {
|
|
9
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
10
|
+
props: { itemCount: 3 },
|
|
11
|
+
});
|
|
12
|
+
expect(wrapper.vm).toBeTruthy();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// ─── Snapshots ───────────────────────────────────────────────────────────
|
|
16
|
+
|
|
17
|
+
it("renders correct HTML structure (ul, 3 items)", async () => {
|
|
18
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
19
|
+
props: { tag: "ul", itemCount: 3 },
|
|
20
|
+
});
|
|
21
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("renders correct HTML structure (ol, 5 items)", async () => {
|
|
25
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
26
|
+
props: { tag: "ol", itemCount: 5 },
|
|
27
|
+
});
|
|
28
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it("renders correct HTML structure with styleClassPassthrough", async () => {
|
|
32
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
33
|
+
props: {
|
|
34
|
+
itemCount: 2,
|
|
35
|
+
styleClassPassthrough: ["custom-class", "another-class"],
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("renders correct HTML structure with indicator slots", async () => {
|
|
42
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
43
|
+
props: { itemCount: 2 },
|
|
44
|
+
slots: {
|
|
45
|
+
"indicator-0": '<span class="indicator-icon">✓</span>',
|
|
46
|
+
"item-0": "<span>First item</span>",
|
|
47
|
+
"item-1": "<span>Second item</span>",
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// ─── Tag rendering ───────────────────────────────────────────────────────
|
|
54
|
+
|
|
55
|
+
it("renders as <ul> by default", async () => {
|
|
56
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
57
|
+
props: { itemCount: 1 },
|
|
58
|
+
});
|
|
59
|
+
expect(wrapper.element.tagName).toBe("UL");
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it("renders as <ul> when tag='ul'", async () => {
|
|
63
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
64
|
+
props: { tag: "ul", itemCount: 1 },
|
|
65
|
+
});
|
|
66
|
+
expect(wrapper.element.tagName).toBe("UL");
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("renders as <ol> when tag='ol'", async () => {
|
|
70
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
71
|
+
props: { tag: "ol", itemCount: 1 },
|
|
72
|
+
});
|
|
73
|
+
expect(wrapper.element.tagName).toBe("OL");
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
// ─── Item count ──────────────────────────────────────────────────────────
|
|
77
|
+
|
|
78
|
+
it("renders the correct number of <li> elements", async () => {
|
|
79
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
80
|
+
props: { itemCount: 4 },
|
|
81
|
+
});
|
|
82
|
+
expect(wrapper.findAll("li").length).toBe(4);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it("renders zero <li> elements when itemCount is 0", async () => {
|
|
86
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
87
|
+
props: { itemCount: 0 },
|
|
88
|
+
});
|
|
89
|
+
expect(wrapper.findAll("li").length).toBe(0);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// ─── Base classes ────────────────────────────────────────────────────────
|
|
93
|
+
|
|
94
|
+
it("always has the indicator-list class", async () => {
|
|
95
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
96
|
+
props: { itemCount: 1 },
|
|
97
|
+
});
|
|
98
|
+
expect(wrapper.classes()).toContain("stepper-list");
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// ─── styleClassPassthrough ───────────────────────────────────────────────
|
|
102
|
+
|
|
103
|
+
it("applies a single styleClassPassthrough string", async () => {
|
|
104
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
105
|
+
props: { itemCount: 1, styleClassPassthrough: "my-class" },
|
|
106
|
+
});
|
|
107
|
+
expect(wrapper.classes()).toContain("my-class");
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it("applies multiple styleClassPassthrough classes from an array", async () => {
|
|
111
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
112
|
+
props: {
|
|
113
|
+
itemCount: 1,
|
|
114
|
+
styleClassPassthrough: ["class-a", "class-b"],
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
expect(wrapper.classes()).toContain("class-a");
|
|
118
|
+
expect(wrapper.classes()).toContain("class-b");
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it("renders cleanly with no styleClassPassthrough prop", async () => {
|
|
122
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
123
|
+
props: { itemCount: 1 },
|
|
124
|
+
});
|
|
125
|
+
// Only the base class should be present (and any passthrough-derived ones)
|
|
126
|
+
expect(wrapper.classes()).toContain("stepper-list");
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
// ─── Slot: item-N ────────────────────────────────────────────────────────
|
|
130
|
+
|
|
131
|
+
it("renders item slot content inside each <li>", async () => {
|
|
132
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
133
|
+
props: { itemCount: 2 },
|
|
134
|
+
slots: {
|
|
135
|
+
"item-0": "<span>First</span>",
|
|
136
|
+
"item-1": "<span>Second</span>",
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
const items = wrapper.findAll("li");
|
|
140
|
+
expect(items[0]?.text()).toContain("First");
|
|
141
|
+
expect(items[1]?.text()).toContain("Second");
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
// ─── Slot: indicator-N ───────────────────────────────────────────────────
|
|
145
|
+
|
|
146
|
+
it("adds has-indicator class to <li> when indicator slot is provided", async () => {
|
|
147
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
148
|
+
props: { itemCount: 3 },
|
|
149
|
+
slots: {
|
|
150
|
+
"indicator-1": '<span class="indicator-icon">★</span>',
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
const items = wrapper.findAll("li");
|
|
154
|
+
expect(items[0]?.classes()).not.toContain("has-indicator");
|
|
155
|
+
expect(items[1]?.classes()).toContain("has-indicator");
|
|
156
|
+
expect(items[2]?.classes()).not.toContain("has-indicator");
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
it("renders the custom indicator wrapper when indicator slot is provided", async () => {
|
|
160
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
161
|
+
props: { itemCount: 2 },
|
|
162
|
+
slots: {
|
|
163
|
+
"indicator-0": '<span class="indicator-icon">✓</span>',
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
const firstItem = wrapper.findAll("li")[0];
|
|
167
|
+
expect(firstItem?.find(".stepper-list__indicator-custom").exists()).toBe(true);
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it("renders the counter wrapper when no indicator slot is provided", async () => {
|
|
171
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
172
|
+
props: { itemCount: 2 },
|
|
173
|
+
});
|
|
174
|
+
const items = wrapper.findAll("li");
|
|
175
|
+
expect(items[0]?.find(".stepper-list__indicator-counter").exists()).toBe(true);
|
|
176
|
+
expect(items[0]?.find(".stepper-list__indicator-custom").exists()).toBe(false);
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
it("renders indicator slot content inside the custom indicator wrapper", async () => {
|
|
180
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
181
|
+
props: { itemCount: 1 },
|
|
182
|
+
slots: {
|
|
183
|
+
"indicator-0": '<span class="indicator-icon">✓</span>',
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
const indicator = wrapper.find(".stepper-list__indicator-custom");
|
|
187
|
+
expect(indicator.find(".indicator-icon").exists()).toBe(true);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it("only items with indicator slots receive has-indicator; others do not", async () => {
|
|
191
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
192
|
+
props: { itemCount: 4 },
|
|
193
|
+
slots: {
|
|
194
|
+
"indicator-0": "<span>A</span>",
|
|
195
|
+
"indicator-3": "<span>D</span>",
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
const items = wrapper.findAll("li");
|
|
199
|
+
expect(items[0]?.classes()).toContain("has-indicator");
|
|
200
|
+
expect(items[1]?.classes()).not.toContain("has-indicator");
|
|
201
|
+
expect(items[2]?.classes()).not.toContain("has-indicator");
|
|
202
|
+
expect(items[3]?.classes()).toContain("has-indicator");
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
// ─── connected ──────────────────────────────────────────────────────
|
|
206
|
+
|
|
207
|
+
it("has has-connectors class by default", async () => {
|
|
208
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
209
|
+
props: { itemCount: 1 },
|
|
210
|
+
});
|
|
211
|
+
expect(wrapper.classes()).toContain("has-connectors");
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
it("has has-connectors class when connected is true", async () => {
|
|
215
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
216
|
+
props: { itemCount: 1, connected: true },
|
|
217
|
+
});
|
|
218
|
+
expect(wrapper.classes()).toContain("has-connectors");
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
it("does not have has-connectors class when connected is false", async () => {
|
|
222
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
223
|
+
props: { itemCount: 1, connected: false },
|
|
224
|
+
});
|
|
225
|
+
expect(wrapper.classes()).not.toContain("has-connectors");
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
// ─── indicatorAlignment ───────────────────────────────────────────────────
|
|
229
|
+
|
|
230
|
+
it("applies indicator-top class by default", async () => {
|
|
231
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
232
|
+
props: { itemCount: 1 },
|
|
233
|
+
});
|
|
234
|
+
expect(wrapper.find("li")?.classes()).toContain("indicator-top");
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
it("applies indicator-center class when indicatorAlignment is center", async () => {
|
|
238
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
239
|
+
props: { itemCount: 1, indicatorAlignment: "center" },
|
|
240
|
+
});
|
|
241
|
+
expect(wrapper.find("li")?.classes()).toContain("indicator-center");
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
// ─── indicatorVariant ─────────────────────────────────────────────────────
|
|
245
|
+
|
|
246
|
+
it("applies indicator-disc class by default", async () => {
|
|
247
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
248
|
+
props: { itemCount: 1 },
|
|
249
|
+
});
|
|
250
|
+
expect(wrapper.find("li")?.classes()).toContain("indicator-disc");
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
it("applies indicator-circle class when indicatorVariant is circle", async () => {
|
|
254
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
255
|
+
props: { itemCount: 1, indicatorVariant: "circle" },
|
|
256
|
+
});
|
|
257
|
+
expect(wrapper.find("li")?.classes()).toContain("indicator-circle");
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
it("applies indicator-square class when indicatorVariant is square", async () => {
|
|
261
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
262
|
+
props: { itemCount: 1, indicatorVariant: "square" },
|
|
263
|
+
});
|
|
264
|
+
expect(wrapper.find("li")?.classes()).toContain("indicator-square");
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
// ─── Combined props ───────────────────────────────────────────────────────
|
|
268
|
+
|
|
269
|
+
it("renders correctly with all props and slots combined", async () => {
|
|
270
|
+
const wrapper = await mountSuspended(StepperList, {
|
|
271
|
+
props: {
|
|
272
|
+
tag: "ol",
|
|
273
|
+
itemCount: 3,
|
|
274
|
+
styleClassPassthrough: ["combined-class"],
|
|
275
|
+
},
|
|
276
|
+
slots: {
|
|
277
|
+
"indicator-0": '<span class="indicator-icon">1</span>',
|
|
278
|
+
"item-0": "<span>Step one</span>",
|
|
279
|
+
"item-1": "<span>Step two</span>",
|
|
280
|
+
"item-2": "<span>Step three</span>",
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
expect(wrapper.element.tagName).toBe("OL");
|
|
284
|
+
expect(wrapper.classes()).toContain("combined-class");
|
|
285
|
+
expect(wrapper.findAll("li").length).toBe(3);
|
|
286
|
+
expect(wrapper.findAll("li")[0]?.classes()).toContain("has-indicator");
|
|
287
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
288
|
+
});
|
|
289
|
+
});
|