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
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
'--insetBlockEnd': (props.config?.borderBottom ?? 0) + 'px',
|
|
22
22
|
}"
|
|
23
23
|
>
|
|
24
|
-
<div class="alert-mask-content-slot"
|
|
24
|
+
<div ref="alertContentRef" class="alert-mask-content-slot">
|
|
25
25
|
<slot name="default"></slot>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script setup lang="ts">
|
|
32
|
-
import type { AlertMaskConfig } from "
|
|
32
|
+
import type { AlertMaskConfig } from "~/types/components";
|
|
33
33
|
|
|
34
34
|
const props = defineProps({
|
|
35
35
|
config: {
|
|
@@ -40,57 +40,57 @@ const props = defineProps({
|
|
|
40
40
|
type: [String, Array] as PropType<string | string[]>,
|
|
41
41
|
default: () => [],
|
|
42
42
|
},
|
|
43
|
-
})
|
|
43
|
+
});
|
|
44
44
|
|
|
45
|
-
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
45
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
46
46
|
|
|
47
|
-
const alertContentRef = useTemplateRef<HTMLElement | null>("alertContentRef")
|
|
48
|
-
const svgWidth = ref(0)
|
|
49
|
-
const svgHeight = ref(0)
|
|
47
|
+
const alertContentRef = useTemplateRef<HTMLElement | null>("alertContentRef");
|
|
48
|
+
const svgWidth = ref(0);
|
|
49
|
+
const svgHeight = ref(0);
|
|
50
50
|
|
|
51
51
|
// Update dimensions based on content
|
|
52
52
|
onMounted(() => {
|
|
53
53
|
const updateDimensions = () => {
|
|
54
|
-
const contentEl = alertContentRef.value
|
|
55
|
-
if (!contentEl) return
|
|
54
|
+
const contentEl = alertContentRef.value;
|
|
55
|
+
if (!contentEl) return;
|
|
56
56
|
|
|
57
|
-
const rect = contentEl.getBoundingClientRect()
|
|
58
|
-
const { borderLeft, borderTop, borderRight, borderBottom } = cfg.value
|
|
57
|
+
const rect = contentEl.getBoundingClientRect();
|
|
58
|
+
const { borderLeft, borderTop, borderRight, borderBottom } = cfg.value;
|
|
59
59
|
|
|
60
60
|
// Calculate total dimensions including borders
|
|
61
|
-
svgWidth.value = rect.width + borderLeft + borderRight
|
|
62
|
-
svgHeight.value = rect.height + borderTop + borderBottom
|
|
63
|
-
}
|
|
61
|
+
svgWidth.value = rect.width + borderLeft + borderRight;
|
|
62
|
+
svgHeight.value = rect.height + borderTop + borderBottom;
|
|
63
|
+
};
|
|
64
64
|
|
|
65
65
|
// Initial measurement
|
|
66
|
-
nextTick(updateDimensions)
|
|
66
|
+
nextTick(updateDimensions);
|
|
67
67
|
|
|
68
68
|
// Observe content changes
|
|
69
|
-
const contentEl = alertContentRef.value
|
|
69
|
+
const contentEl = alertContentRef.value;
|
|
70
70
|
if (contentEl) {
|
|
71
|
-
const resizeObserver = new ResizeObserver(updateDimensions)
|
|
72
|
-
resizeObserver.observe(contentEl)
|
|
71
|
+
const resizeObserver = new ResizeObserver(updateDimensions);
|
|
72
|
+
resizeObserver.observe(contentEl);
|
|
73
73
|
}
|
|
74
|
-
})
|
|
74
|
+
});
|
|
75
75
|
|
|
76
76
|
const cfg = computed(() => ({
|
|
77
77
|
backgroundColour: props.config?.backgroundColour ?? "rgba(0,0,0,0.25)",
|
|
78
|
-
borderColour: props.config?.borderColour ?? "var(--orange-
|
|
78
|
+
borderColour: props.config?.borderColour ?? "var(--orange-08)",
|
|
79
79
|
radiusLeft: props.config?.radiusLeft ?? 12,
|
|
80
80
|
radiusRight: props.config?.radiusRight ?? 12,
|
|
81
81
|
borderLeft: props.config?.borderLeft ?? 8,
|
|
82
82
|
borderTop: props.config?.borderTop ?? 8,
|
|
83
83
|
borderRight: props.config?.borderRight ?? 8,
|
|
84
84
|
borderBottom: props.config?.borderBottom ?? 8,
|
|
85
|
-
}))
|
|
85
|
+
}));
|
|
86
86
|
|
|
87
87
|
// Outer border path (fixed radii)
|
|
88
88
|
const outerPath = computed(() => {
|
|
89
|
-
const width = svgWidth.value
|
|
90
|
-
const height = svgHeight.value
|
|
91
|
-
const { radiusLeft, radiusRight } = cfg.value
|
|
89
|
+
const width = svgWidth.value;
|
|
90
|
+
const height = svgHeight.value;
|
|
91
|
+
const { radiusLeft, radiusRight } = cfg.value;
|
|
92
92
|
|
|
93
|
-
if (!width || !height) return ""
|
|
93
|
+
if (!width || !height) return "";
|
|
94
94
|
|
|
95
95
|
return `
|
|
96
96
|
M ${radiusLeft} 0
|
|
@@ -102,16 +102,16 @@ const outerPath = computed(() => {
|
|
|
102
102
|
Q 0 ${height} 0 ${height - radiusLeft}
|
|
103
103
|
L 0 ${radiusLeft}
|
|
104
104
|
Q 0 0 ${radiusLeft} 0 Z
|
|
105
|
-
|
|
106
|
-
})
|
|
105
|
+
`;
|
|
106
|
+
});
|
|
107
107
|
|
|
108
108
|
// Inner cutout (based on fixed pixel border thickness)
|
|
109
109
|
const innerPath = computed(() => {
|
|
110
|
-
const width = svgWidth.value
|
|
111
|
-
const height = svgHeight.value
|
|
112
|
-
const { radiusLeft, radiusRight, borderLeft, borderTop, borderRight, borderBottom: borderBottom } = cfg.value
|
|
110
|
+
const width = svgWidth.value;
|
|
111
|
+
const height = svgHeight.value;
|
|
112
|
+
const { radiusLeft, radiusRight, borderLeft, borderTop, borderRight, borderBottom: borderBottom } = cfg.value;
|
|
113
113
|
|
|
114
|
-
if (!width || !height) return ""
|
|
114
|
+
if (!width || !height) return "";
|
|
115
115
|
|
|
116
116
|
return `
|
|
117
117
|
M ${radiusLeft + borderLeft} ${borderTop}
|
|
@@ -123,11 +123,12 @@ const innerPath = computed(() => {
|
|
|
123
123
|
Q ${borderLeft} ${height - borderBottom} ${borderLeft} ${height - radiusLeft - borderBottom}
|
|
124
124
|
L ${borderLeft} ${radiusLeft + borderTop}
|
|
125
125
|
Q ${borderLeft} ${borderTop} ${radiusLeft + borderLeft} ${borderTop} Z
|
|
126
|
-
|
|
127
|
-
})
|
|
126
|
+
`;
|
|
127
|
+
});
|
|
128
128
|
</script>
|
|
129
129
|
|
|
130
130
|
<style lang="css">
|
|
131
|
+
@layer components {
|
|
131
132
|
.alert-mask-core {
|
|
132
133
|
display: grid;
|
|
133
134
|
grid-template-areas: "mask";
|
|
@@ -144,4 +145,5 @@ const innerPath = computed(() => {
|
|
|
144
145
|
margin-inline: var(--insetInlineStart) var(--insetInlineEnd);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
}
|
|
147
149
|
</style>
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
2
|
+
import { mountSuspended } from "@nuxt/test-utils/runtime";
|
|
3
|
+
import AlertMaskCore from "../AlertMaskCore.vue";
|
|
4
|
+
import type { AlertMaskConfig } from "../../../types/components/alert-mask-core.d";
|
|
5
|
+
|
|
6
|
+
// Type interface for AlertMaskCore component instance
|
|
7
|
+
interface AlertMaskCoreInstance {
|
|
8
|
+
cfg: {
|
|
9
|
+
backgroundColour: string;
|
|
10
|
+
borderColour: string;
|
|
11
|
+
radiusLeft: number;
|
|
12
|
+
radiusRight: number;
|
|
13
|
+
borderLeft: number;
|
|
14
|
+
borderTop: number;
|
|
15
|
+
borderRight: number;
|
|
16
|
+
borderBottom: number;
|
|
17
|
+
};
|
|
18
|
+
alertContentRef: HTMLElement | null;
|
|
19
|
+
svgWidth: number;
|
|
20
|
+
svgHeight: number;
|
|
21
|
+
outerPath: string;
|
|
22
|
+
innerPath: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Mock ResizeObserver
|
|
26
|
+
const mockResizeObserver = vi.fn(() => ({
|
|
27
|
+
observe: vi.fn(),
|
|
28
|
+
unobserve: vi.fn(),
|
|
29
|
+
disconnect: vi.fn(),
|
|
30
|
+
}));
|
|
31
|
+
|
|
32
|
+
vi.stubGlobal("ResizeObserver", mockResizeObserver);
|
|
33
|
+
|
|
34
|
+
describe("AlertMaskCore", () => {
|
|
35
|
+
beforeEach(() => {
|
|
36
|
+
vi.clearAllMocks();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
afterEach(() => {
|
|
40
|
+
vi.restoreAllMocks();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it("mounts without error", async () => {
|
|
44
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
45
|
+
expect(wrapper.vm).toBeTruthy();
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it("renders base structure correctly", async () => {
|
|
49
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
50
|
+
|
|
51
|
+
expect(wrapper.find(".alert-mask-core").exists()).toBe(true);
|
|
52
|
+
expect(wrapper.find(".alert-mask-decorator").exists()).toBe(true);
|
|
53
|
+
expect(wrapper.find(".alert-mask-content").exists()).toBe(true);
|
|
54
|
+
expect(wrapper.find(".alert-mask-content-slot").exists()).toBe(true);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("renders default slot content", async () => {
|
|
58
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
59
|
+
slots: {
|
|
60
|
+
default: "<p>Test alert content</p>",
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
expect(wrapper.find(".alert-mask-content-slot p").text()).toBe("Test alert content");
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("applies style class passthrough correctly", async () => {
|
|
68
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
69
|
+
props: {
|
|
70
|
+
styleClassPassthrough: ["custom-class", "another-class"],
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const alertMask = wrapper.find(".alert-mask-core");
|
|
75
|
+
expect(alertMask.classes()).toContain("custom-class");
|
|
76
|
+
expect(alertMask.classes()).toContain("another-class");
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("applies style class passthrough as string", async () => {
|
|
80
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
81
|
+
props: {
|
|
82
|
+
styleClassPassthrough: "single-class",
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
const alertMask = wrapper.find(".alert-mask-core");
|
|
87
|
+
expect(alertMask.classes()).toContain("single-class");
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it("uses default configuration when no config provided", async () => {
|
|
91
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
92
|
+
|
|
93
|
+
// Check that computed config uses defaults
|
|
94
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
95
|
+
expect(vm.cfg.backgroundColour).toBe("rgba(0,0,0,0.25)");
|
|
96
|
+
expect(vm.cfg.borderColour).toBe("var(--orange-08)");
|
|
97
|
+
expect(vm.cfg.radiusLeft).toBe(12);
|
|
98
|
+
expect(vm.cfg.radiusRight).toBe(12);
|
|
99
|
+
expect(vm.cfg.borderLeft).toBe(8);
|
|
100
|
+
expect(vm.cfg.borderTop).toBe(8);
|
|
101
|
+
expect(vm.cfg.borderRight).toBe(8);
|
|
102
|
+
expect(vm.cfg.borderBottom).toBe(8);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it("applies custom configuration correctly", async () => {
|
|
106
|
+
const config: AlertMaskConfig = {
|
|
107
|
+
backgroundColour: "rgba(255,0,0,0.5)",
|
|
108
|
+
borderColour: "#ff0000",
|
|
109
|
+
radiusLeft: 20,
|
|
110
|
+
radiusRight: 15,
|
|
111
|
+
borderLeft: 12,
|
|
112
|
+
borderTop: 10,
|
|
113
|
+
borderRight: 8,
|
|
114
|
+
borderBottom: 6,
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
118
|
+
props: { config },
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
122
|
+
expect(vm.cfg.backgroundColour).toBe("rgba(255,0,0,0.5)");
|
|
123
|
+
expect(vm.cfg.borderColour).toBe("#ff0000");
|
|
124
|
+
expect(vm.cfg.radiusLeft).toBe(20);
|
|
125
|
+
expect(vm.cfg.radiusRight).toBe(15);
|
|
126
|
+
expect(vm.cfg.borderLeft).toBe(12);
|
|
127
|
+
expect(vm.cfg.borderTop).toBe(10);
|
|
128
|
+
expect(vm.cfg.borderRight).toBe(8);
|
|
129
|
+
expect(vm.cfg.borderBottom).toBe(6);
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
it("applies partial configuration with defaults", async () => {
|
|
133
|
+
const config: AlertMaskConfig = {
|
|
134
|
+
backgroundColour: "blue",
|
|
135
|
+
radiusLeft: 25,
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
139
|
+
props: { config },
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
143
|
+
expect(vm.cfg.backgroundColour).toBe("blue");
|
|
144
|
+
expect(vm.cfg.radiusLeft).toBe(25);
|
|
145
|
+
// Check defaults are maintained for other values
|
|
146
|
+
expect(vm.cfg.borderColour).toBe("var(--orange-08)");
|
|
147
|
+
expect(vm.cfg.radiusRight).toBe(12);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
it("sets up template ref for content element", async () => {
|
|
151
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
152
|
+
slots: {
|
|
153
|
+
default: "<div>Content</div>",
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
await nextTick();
|
|
158
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
159
|
+
expect(vm.alertContentRef).toBeTruthy();
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
it("creates SVG with proper structure", async () => {
|
|
163
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
164
|
+
|
|
165
|
+
const svg = wrapper.find(".alert-mask-decorator");
|
|
166
|
+
expect(svg.element.tagName).toBe("svg");
|
|
167
|
+
|
|
168
|
+
// Check for defs and mask
|
|
169
|
+
expect(wrapper.find("defs").exists()).toBe(true);
|
|
170
|
+
expect(wrapper.find("mask#borderMask").exists()).toBe(true);
|
|
171
|
+
|
|
172
|
+
// Check for paths
|
|
173
|
+
const paths = wrapper.findAll("path");
|
|
174
|
+
expect(paths.length).toBe(4); // 2 in mask, 2 visible paths
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
it("applies CSS custom properties for content positioning", async () => {
|
|
178
|
+
const config: AlertMaskConfig = {
|
|
179
|
+
borderLeft: 15,
|
|
180
|
+
borderTop: 20,
|
|
181
|
+
borderRight: 25,
|
|
182
|
+
borderBottom: 30,
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
186
|
+
props: { config },
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
const contentEl = wrapper.find(".alert-mask-content");
|
|
190
|
+
const style = (contentEl.element as HTMLElement).style;
|
|
191
|
+
|
|
192
|
+
expect(style.getPropertyValue("--insetInlineStart")).toBe("15px");
|
|
193
|
+
expect(style.getPropertyValue("--insetBlockStart")).toBe("20px");
|
|
194
|
+
expect(style.getPropertyValue("--insetInlineEnd")).toBe("25px");
|
|
195
|
+
expect(style.getPropertyValue("--insetBlockEnd")).toBe("30px");
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
it("handles zero border values correctly", async () => {
|
|
199
|
+
const config: AlertMaskConfig = {
|
|
200
|
+
borderLeft: 0,
|
|
201
|
+
borderTop: 0,
|
|
202
|
+
borderRight: 0,
|
|
203
|
+
borderBottom: 0,
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
207
|
+
props: { config },
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
const contentEl = wrapper.find(".alert-mask-content");
|
|
211
|
+
const style = (contentEl.element as HTMLElement).style;
|
|
212
|
+
|
|
213
|
+
expect(style.getPropertyValue("--insetInlineStart")).toBe("0px");
|
|
214
|
+
expect(style.getPropertyValue("--insetBlockStart")).toBe("0px");
|
|
215
|
+
expect(style.getPropertyValue("--insetInlineEnd")).toBe("0px");
|
|
216
|
+
expect(style.getPropertyValue("--insetBlockEnd")).toBe("0px");
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
it("sets up ResizeObserver on mount", async () => {
|
|
220
|
+
await mountSuspended(AlertMaskCore, {
|
|
221
|
+
slots: {
|
|
222
|
+
default: "<div>Content to observe</div>",
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// ResizeObserver should be instantiated
|
|
227
|
+
expect(mockResizeObserver).toHaveBeenCalled();
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
it("generates SVG paths when dimensions are available", async () => {
|
|
231
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
232
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
233
|
+
|
|
234
|
+
// Set dimensions
|
|
235
|
+
vm.svgWidth = 200;
|
|
236
|
+
vm.svgHeight = 100;
|
|
237
|
+
|
|
238
|
+
await nextTick();
|
|
239
|
+
|
|
240
|
+
// Check that paths are generated (not empty)
|
|
241
|
+
expect(vm.outerPath).toBeTruthy();
|
|
242
|
+
expect(vm.innerPath).toBeTruthy();
|
|
243
|
+
expect(vm.outerPath.length).toBeGreaterThan(0);
|
|
244
|
+
expect(vm.innerPath.length).toBeGreaterThan(0);
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
it("returns empty paths when dimensions are zero", async () => {
|
|
248
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
249
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
250
|
+
|
|
251
|
+
// Explicitly set dimensions to zero to test the condition
|
|
252
|
+
vm.svgWidth = 0;
|
|
253
|
+
vm.svgHeight = 0;
|
|
254
|
+
|
|
255
|
+
await nextTick();
|
|
256
|
+
|
|
257
|
+
expect(vm.outerPath).toBe("");
|
|
258
|
+
expect(vm.innerPath).toBe("");
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
it("updates SVG height CSS custom property", async () => {
|
|
262
|
+
const wrapper = await mountSuspended(AlertMaskCore);
|
|
263
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
264
|
+
|
|
265
|
+
vm.svgHeight = 150;
|
|
266
|
+
await nextTick();
|
|
267
|
+
|
|
268
|
+
const svg = wrapper.find(".alert-mask-decorator");
|
|
269
|
+
const style = (svg.element as HTMLElement).style;
|
|
270
|
+
expect(style.getPropertyValue("--alertHeight")).toBe("150px");
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
it("handles empty configuration object", async () => {
|
|
274
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
275
|
+
props: {
|
|
276
|
+
config: {},
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
// Should use all defaults when empty config provided
|
|
281
|
+
const vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
282
|
+
expect(vm.cfg.backgroundColour).toBe("rgba(0,0,0,0.25)");
|
|
283
|
+
expect(vm.cfg.borderColour).toBe("var(--orange-08)");
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
it("maintains reactivity with config changes", async () => {
|
|
287
|
+
const wrapper = await mountSuspended(AlertMaskCore, {
|
|
288
|
+
props: {
|
|
289
|
+
config: { backgroundColour: "red" },
|
|
290
|
+
},
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
let vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
294
|
+
expect(vm.cfg.backgroundColour).toBe("red");
|
|
295
|
+
|
|
296
|
+
// Update props
|
|
297
|
+
await wrapper.setProps({
|
|
298
|
+
config: { backgroundColour: "blue" },
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
vm = wrapper.vm as unknown as AlertMaskCoreInstance;
|
|
302
|
+
expect(vm.cfg.backgroundColour).toBe("blue");
|
|
303
|
+
});
|
|
304
|
+
});
|
|
@@ -36,16 +36,17 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup lang="ts">
|
|
39
|
-
import type { MediaCanvas } from "../../types/components"
|
|
39
|
+
import type { MediaCanvas } from "../../types/components";
|
|
40
40
|
|
|
41
|
-
const canvasName = defineModel<MediaCanvas>("canvasName")
|
|
41
|
+
const canvasName = defineModel<MediaCanvas>("canvasName");
|
|
42
42
|
|
|
43
43
|
const updateCanvas = (setCanvas: MediaCanvas) => {
|
|
44
|
-
canvasName.value = setCanvas
|
|
45
|
-
}
|
|
44
|
+
canvasName.value = setCanvas;
|
|
45
|
+
};
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<style lang="css">
|
|
49
|
+
@layer components {
|
|
49
50
|
.canvas-switcher {
|
|
50
51
|
display: flex;
|
|
51
52
|
align-items: center;
|
|
@@ -65,18 +66,18 @@ const updateCanvas = (setCanvas: MediaCanvas) => {
|
|
|
65
66
|
align-items: center;
|
|
66
67
|
justify-content: center;
|
|
67
68
|
padding: 5px;
|
|
68
|
-
border: 0px solid light-dark(var(--
|
|
69
|
+
border: 0px solid light-dark(var(--slate-10), var(--slate-02));
|
|
69
70
|
border-radius: 4px;
|
|
70
71
|
cursor: pointer;
|
|
71
72
|
|
|
72
73
|
.icon {
|
|
73
|
-
color: light-dark(var(--
|
|
74
|
+
color: light-dark(var(--slate-10), var(--slate-02));
|
|
74
75
|
|
|
75
76
|
width: 24px;
|
|
76
77
|
height: 24px;
|
|
77
78
|
|
|
78
79
|
&.current {
|
|
79
|
-
color: light-dark(var(--green-10), var(--green-
|
|
80
|
+
color: light-dark(var(--green-10), var(--green-04));
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
}
|
|
@@ -91,7 +92,7 @@ const updateCanvas = (setCanvas: MediaCanvas) => {
|
|
|
91
92
|
max-width: 768px;
|
|
92
93
|
}
|
|
93
94
|
.laptopCanvas {
|
|
94
|
-
max-width:
|
|
95
|
+
max-width: 1064px;
|
|
95
96
|
}
|
|
96
97
|
.desktopCanvas {
|
|
97
98
|
max-width: 1280px;
|
|
@@ -99,4 +100,5 @@ const updateCanvas = (setCanvas: MediaCanvas) => {
|
|
|
99
100
|
.fullWidthCanvas {
|
|
100
101
|
max-width: unset;
|
|
101
102
|
}
|
|
103
|
+
}
|
|
102
104
|
</style>
|