srcdev-nuxt-components 8.0.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -118
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-prompt-core.css +94 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-toast.css +5 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-components/index.css +1 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +67 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +87 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +74 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-with-label.css +14 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-description.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +143 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-toggle-switch.css +68 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/index.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/index.css +2 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_large.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_medium.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_small.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_x-small.css +11 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/index.css +23 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_default.css +62 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_error.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_info.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +64 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_success.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/index.css +7 -0
- package/app/assets/styles/main.css +2 -0
- package/app/assets/styles/setup/01.config/_basic-resets.css +9 -0
- package/app/assets/styles/setup/01.config/_head.css +33 -0
- package/app/assets/styles/setup/01.config/_normalise.css +209 -0
- package/app/assets/styles/setup/01.config/index.css +3 -0
- package/app/assets/styles/setup/02.colours/_amber.css +12 -0
- package/app/assets/styles/setup/02.colours/_blue.css +13 -0
- package/app/assets/styles/setup/02.colours/_green.css +13 -0
- package/app/assets/styles/setup/02.colours/_orange.css +12 -0
- package/app/assets/styles/setup/02.colours/_red.css +13 -0
- package/app/assets/styles/setup/02.colours/_slate.css +13 -0
- package/app/assets/styles/setup/02.colours/_sunset.css +12 -0
- package/app/assets/styles/setup/02.colours/index.css +7 -0
- package/app/assets/styles/setup/03.theming/default/_dark.css +138 -0
- package/app/assets/styles/setup/03.theming/default/_light.css +156 -0
- package/app/assets/styles/setup/03.theming/default/index.css +2 -0
- package/app/assets/styles/setup/03.theming/error/_dark.css +56 -0
- package/app/assets/styles/setup/03.theming/error/_light.css +74 -0
- package/app/assets/styles/setup/03.theming/error/index.css +2 -0
- package/app/assets/styles/setup/03.theming/index.css +4 -0
- package/app/assets/styles/setup/03.theming/success/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/success/_light.css +65 -0
- package/app/assets/styles/setup/03.theming/success/index.css +2 -0
- package/app/assets/styles/setup/03.theming/warning/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/warning/_light.css +64 -0
- package/app/assets/styles/setup/03.theming/warning/index.css +2 -0
- package/app/assets/styles/setup/04.elements/forms/00.element-defaults.css +21 -0
- package/app/assets/styles/setup/04.elements/forms/01.field-layout-container-level.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/02.typography.css +24 -0
- package/app/assets/styles/setup/04.elements/forms/03.generic-input-geometry.css +63 -0
- package/app/assets/styles/setup/04.elements/forms/04.slot-icon-system.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/05.checkbox-radio-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/07.validation-error-block-layout.css +9 -0
- package/app/assets/styles/setup/04.elements/forms/09.animation-motion.css +6 -0
- package/app/assets/styles/setup/04.elements/forms/index.css +9 -0
- package/app/assets/styles/setup/04.elements/index.css +1 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_font-family.css +8 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_reponsive-font-sizes.css +22 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_timing-functions.css +119 -0
- package/app/assets/styles/setup/05.typography/01.tokens/index.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-article.css +30 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-card.css +45 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-body.css +146 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-heading.css +35 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-link.css +116 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-section.css +7 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-classes.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-variation-settings.css +29 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-weights.css +39 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/index.css +9 -0
- package/app/assets/styles/setup/05.typography/index.css +2 -0
- package/app/assets/styles/setup/06.utility-classes/_a11y.css +280 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_auto-rotate.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-exit-blur.css +16 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-slide-in.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-zoom-reveal.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_containers.css +96 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_flexbox.css +196 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_grid.css +266 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_positioning.css +149 -0
- package/app/assets/styles/setup/06.utility-classes/layout/index.css +9 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_fluid-spacing.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_margin.css +334 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_padding.css +308 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/index.css +3 -0
- package/app/assets/styles/setup/a11y/_variables.css +8 -0
- package/app/assets/styles/setup/a11y/index.css +1 -0
- package/app/assets/styles/setup/index.css +10 -0
- package/app/components/01.atoms/animations/entry/EntryAnimation.vue +22 -0
- package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +74 -0
- package/app/components/01.atoms/glass-panel/GlassPanel.vue +52 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +42 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts +67 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/stories/EyebrowText.stories.ts +49 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +196 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/__snapshots__/EyebrowText.spec.ts.snap +17 -0
- package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +101 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts +110 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/stories/HeroText.stories.ts +70 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +148 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/__snapshots__/HeroText.spec.ts.snap +7 -0
- package/app/components/02.molecules/contact-section/stories/ContactSection.stories.ts +197 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.spec.ts +196 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.vue +87 -0
- package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap +119 -0
- package/app/components/02.molecules/price-list/PriceList.vue +119 -0
- package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +103 -0
- package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +192 -0
- package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +73 -0
- package/app/components/02.molecules/profile-section/ProfileSection.vue +154 -0
- package/app/components/02.molecules/profile-section/stories/ProfileSection.stories.ts +154 -0
- package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +147 -0
- package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +29 -0
- package/app/components/02.molecules/stepper-list/StepperList.vue +158 -0
- package/app/components/02.molecules/stepper-list/stories/StepperList.stories.ts +392 -0
- package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +289 -0
- package/app/components/02.molecules/stepper-list/tests/__snapshots__/StepperList.spec.ts.snap +86 -0
- package/app/components/03.organisms/colour-finder/ColourFinder.vue +1519 -0
- package/app/components/03.organisms/services/services-card/ServicesCard.vue +104 -0
- package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +39 -0
- package/app/components/03.organisms/services/services-grids/ServicesSectionGrid.vue +52 -0
- package/app/components/03.organisms/services/services-section/ServicesSection.vue +307 -0
- package/app/components/03.organisms/treatment-consultant/TreatmentConsultant.vue +2221 -0
- package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts +38 -0
- package/app/components/accordian/AccordianCore.vue +26 -21
- package/app/components/accordian/stories/AccordianCore.stories.ts +241 -0
- package/app/components/accordian/tests/AccordianCore.spec.ts +218 -0
- package/app/components/accordian/tests/__snapshots__/AccordianCore.spec.ts.snap +74 -0
- package/app/components/alert-mask/AlertMaskCore.vue +35 -33
- package/app/components/alert-mask/tests/AlertMaskCore.spec.ts +304 -0
- package/app/components/animated-svg-text/AnimatedSvgText.vue +2 -0
- package/app/components/canvas-switcher/CanvasSwitcher.vue +10 -8
- package/app/components/{carousel-basic → carousels}/CarouselBasic.vue +58 -56
- package/app/components/{carousel-basic → carousels}/CarouselFlip.vue +150 -148
- package/app/components/{carousel-basic → carousels}/CarouselInfinite.vue +2 -0
- package/app/components/carousels/stories/CarouselFlip.stories.ts +637 -0
- package/app/components/carousels/tests/CarouselFlip.spec.ts +556 -0
- package/app/components/clip-element/ClipElement.vue +2 -0
- package/app/components/clipped-panels/ClippedPanel.vue +2 -0
- package/app/components/container-glow/ContainerGlowCore.vue +119 -50
- package/app/components/container-glow/stories/ContainerGlowCore.stories.ts +337 -0
- package/app/components/content-columns/TwoColumns.vue +59 -0
- package/app/components/content-columns/stories/TwoColumns.stories.ts +561 -0
- package/app/components/content-containers/ContentContainer.vue +89 -0
- package/app/components/content-containers/stories/ContentContainer.stories.ts +465 -0
- package/app/components/content-grid/ContentGrid.vue +4 -2
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +18 -16
- package/app/components/deep-expanding-menu/DeepExpandingMenuOld.vue +28 -26
- package/app/components/display-avatar/DisplayAvatar.vue +15 -13
- package/app/components/display-avatar/stories/DisplayAvatar.stories.ts +94 -0
- package/app/components/display-banner/DisplayBanner.vue +2 -0
- package/app/components/display-card/DisplayCard.vue +16 -14
- package/app/components/display-chip/DisplayChip.vue +2 -0
- package/app/components/display-chip/stories/DisplayChip.stories.ts +346 -0
- package/app/components/display-details/DisplayDetailsCore.vue +2 -0
- package/app/components/display-dialog/DisplayDialogCore.vue +24 -17
- package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +2 -0
- package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +2 -0
- package/app/components/display-grid/DisplayGridCore.vue +4 -4
- package/app/components/display-prompt/DisplayPromptCore.vue +20 -16
- package/app/components/display-prompt/variants/DisplayPromptError.vue +6 -4
- package/app/components/display-theme-switch/DisplayThemeSwitch.vue +182 -0
- package/app/components/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +154 -0
- package/app/components/display-toast/DisplayToast.vue +63 -61
- package/app/components/display-toast/molecules/DefaultToastContent.vue +21 -45
- package/app/components/display-toast/stories/DisplayToast.stories.ts +380 -0
- package/app/components/display-tooltip/DisplayTooltip.vue +14 -9
- package/app/components/display-tooltip/DisplayTooltipDefined.vue +2 -0
- package/app/components/expanding-panel/ExpandingPanel.vue +28 -41
- package/app/components/forms/c12/prop-validators/index.ts +48 -0
- package/app/components/forms/c12/utils.ts +14 -0
- package/app/components/forms/form-errors/InputError.vue +208 -0
- package/app/components/forms/form-errors/tests/InputError.spec.ts +66 -0
- package/app/components/forms/form-fieldset/FormFieldset.vue +75 -0
- package/app/components/forms/input-button/InputButtonCore.vue +219 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts +113 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/stories/InputButtonCore.stories.ts +304 -0
- package/app/components/forms/input-button/tests/InputButtonCore.spec.ts +269 -0
- package/app/components/forms/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +72 -0
- package/app/components/forms/input-checkbox/MultipleCheckboxes.vue +181 -0
- package/app/components/forms/input-checkbox/SingleCheckbox.vue +144 -0
- package/app/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +101 -0
- package/app/components/forms/input-checkbox/tests/data/tags.json +67 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +174 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +199 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +104 -0
- package/app/components/forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +320 -0
- package/app/components/forms/input-description/InputDescription.vue +55 -0
- package/app/components/forms/input-description/tests/InputDescription.spec.ts +429 -0
- package/app/components/forms/input-label/InputLabel.vue +66 -0
- package/app/components/forms/input-label/tests/InputLabel.spec.ts +431 -0
- package/app/components/forms/input-number/InputNumberCore.vue +163 -0
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +150 -0
- package/app/components/forms/input-radio/MultipleRadiobuttons.vue +180 -0
- package/app/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +90 -0
- package/app/components/forms/input-radio/tests/data/tags.json +67 -0
- package/app/components/forms/input-range/InputRangeCore.vue +233 -0
- package/app/components/forms/input-range/variants/InputRangeDefault.vue +166 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyCore.vue +426 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +94 -0
- package/app/components/forms/input-select/InputSelectCore.vue +171 -0
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +121 -0
- package/app/components/forms/input-text/InputTextCore.vue +222 -0
- package/app/components/forms/input-text/stories/InputPasswordWithLabel.stories.ts +339 -0
- package/app/components/forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +461 -0
- package/app/components/forms/input-text/stories/InputTextCore.stories.ts +241 -0
- package/app/components/forms/input-text/stories/InputTextWithLabel.stories.ts +293 -0
- package/app/components/forms/input-text/variants/InputPasswordWithLabel.vue +86 -0
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +203 -0
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +149 -0
- package/app/components/forms/input-textarea/InputTextareaCore.vue +151 -0
- package/app/components/forms/input-textarea/stories/InputTextareaCore.stories.ts +247 -0
- package/app/components/forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +452 -0
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +150 -0
- package/app/components/forms/pending-effect/PendingEffect.vue +101 -0
- package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +221 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchCore.stories.ts +236 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +253 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +280 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +101 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +84 -0
- package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +290 -0
- package/app/components/forms/ui/FormField.vue +81 -0
- package/app/components/forms/ui/FormWrapper.vue +37 -0
- package/app/components/glowing-border/GlowingBorder.vue +2 -0
- package/app/components/glowing-border/stories/GlowingBorder.stories.ts +141 -0
- package/app/components/image-galleries/SliderGallery.vue +100 -100
- package/app/components/layout-grids/LayoutGridA.vue +2 -0
- package/app/components/layout-grids/LayoutGridB.vue +8 -6
- package/app/components/layout-grids/stories/LayoutGridA.stories.ts +402 -0
- package/app/components/layout-grids/stories/LayoutGridB.stories.ts +420 -0
- package/app/components/layout-grids/tests/LayoutGridA.spec.ts +352 -0
- package/app/components/layout-grids/tests/LayoutGridB.spec.ts +490 -0
- package/app/components/layout-row/LayoutRow.vue +60 -54
- package/app/components/layout-row/stories/LayoutRow.stories.ts +528 -0
- package/app/components/magnetic-navigation/MagneticNavigation.vue +2 -0
- package/app/components/marquee-scroller/MarqueeScroller.vue +35 -33
- package/app/components/masonry-grid/MasonryGrid.vue +8 -6
- package/app/components/masonry-grid-ordered/MasonryGridOrdered.vue +2 -0
- package/app/components/masonry-grid-ordered/MasonryGridOrderedGridExperiment.vue +82 -87
- package/app/components/masonry-grid-ordered/stories/MasonryGridOrdered.stories.ts +354 -0
- package/app/components/masonry-grid-sorted/MasonryGridSorted.vue +2 -0
- package/app/components/parallax/SectionParallax.vue +10 -8
- package/app/components/pop-over/PopOver.vue +2 -0
- package/app/components/qr-code/CaptureQrCode.vue +2 -0
- package/app/components/qr-code/DecodeQrCode.vue +2 -0
- package/app/components/qr-code/DisplayQrCode.vue +7 -5
- package/app/components/qr-code/stories/QrCode.stories.ts +933 -0
- package/app/components/responsive-header/NavigationItems.vue +34 -23
- package/app/components/responsive-header/ResponsiveHeader.vue +163 -157
- package/app/components/rotating-carousel/RotatingCarouselImage.vue +2 -0
- package/app/components/skip-links/SkipLinks.vue +2 -0
- package/app/components/tabs/TabsCore.vue +38 -30
- package/app/components/test-storybook/TestStorybook.vue +49 -0
- package/app/components/test-storybook/stories/TestStorybook.stories.ts +28 -0
- package/app/components/ui-block-decorated/UiBlockDecorated.vue +2 -0
- package/app/components/view-timeline/WipeAwayVertical.vue +2 -0
- package/app/composables/useApiRequest.ts +25 -0
- package/app/composables/useAriaDescribedById.ts +19 -0
- package/app/composables/useColourScheme.ts +18 -0
- package/app/composables/useErrorMessages.ts +62 -0
- package/app/composables/useFormControl.ts +264 -0
- package/app/composables/useMaxChildWidth.ts +30 -0
- package/app/composables/useTabs.ts +207 -117
- package/app/composables/useZodValidation.ts +147 -0
- package/app/layouts/default.vue +605 -0
- package/app/pages/forms/examples/buttons/index.vue +285 -0
- package/app/pages/forms/examples/material/checkbox-radio-panels.vue +244 -0
- package/app/pages/forms/examples/material/cssbattle.vue +60 -0
- package/app/pages/forms/examples/material/text-fields.vue +913 -0
- package/app/pages/index.vue +122 -0
- package/app/pages/typography/hero-text.vue +97 -0
- package/app/pages/typography/index.vue +39 -0
- package/app/pages/typography/page-body.vue +171 -0
- package/app/pages/typography/page-heading.vue +76 -0
- package/app/pages/typography/page-link.vue +103 -0
- package/app/pages/ui/accordian.vue +211 -0
- package/app/pages/ui/animated-svg-text.vue +85 -0
- package/app/pages/ui/block-decorators.vue +142 -0
- package/app/pages/ui/carousel-basic.vue +292 -0
- package/app/pages/ui/carousel-flip.vue +244 -0
- package/app/pages/ui/carousel-infinite.vue +260 -0
- package/app/pages/ui/clipped-panels.vue +101 -0
- package/app/pages/ui/contact-section.vue +323 -0
- package/app/pages/ui/container-glow.vue +107 -0
- package/app/pages/ui/content-container.vue +112 -0
- package/app/pages/ui/display-avatar.vue +253 -0
- package/app/pages/ui/display-banner.vue +78 -0
- package/app/pages/ui/display-card.vue +82 -0
- package/app/pages/ui/display-chip.vue +225 -0
- package/app/pages/ui/display-details.vue +175 -0
- package/app/pages/ui/display-dialog.vue +231 -0
- package/app/pages/ui/display-prompt.vue +81 -0
- package/app/pages/ui/display-toast.vue +332 -0
- package/app/pages/ui/expanding-panel.vue +193 -0
- package/app/pages/ui/glowing-border.vue +111 -0
- package/app/pages/ui/layout-grid-a.vue +149 -0
- package/app/pages/ui/layout-grid-b.vue +132 -0
- package/app/pages/ui/layout-row.vue +139 -0
- package/app/pages/ui/magnetic-navigation.vue +50 -0
- package/app/pages/ui/marquee-scroller.vue +99 -0
- package/app/pages/ui/mask-element.vue +82 -0
- package/app/pages/ui/masonry-columns.vue +55 -0
- package/app/pages/ui/masonry-grid-ordered-experiment.vue +79 -0
- package/app/pages/ui/masonry-grid-ordered.vue +56 -0
- package/app/pages/ui/masonry-grid-sorted.vue +55 -0
- package/app/pages/ui/masonry-grid.vue +55 -0
- package/app/pages/ui/price-list.vue +65 -0
- package/app/pages/ui/profile-section.vue +96 -0
- package/app/pages/ui/qr-code/[componentName].vue +218 -0
- package/app/pages/ui/rotating-carousel.vue +154 -0
- package/app/pages/ui/section-parallax.vue +54 -0
- package/app/pages/ui/services/colour-finder.vue +43 -0
- package/app/pages/ui/services/services-cards.vue +42 -0
- package/app/pages/ui/services/services-section/[slug].vue +59 -0
- package/app/pages/ui/services/services-sections-compact.vue +64 -0
- package/app/pages/ui/services/treatment-consultant.vue +39 -0
- package/app/pages/ui/settings.vue +80 -0
- package/app/pages/ui/simple-grid.vue +66 -0
- package/app/pages/ui/slider-gallery.vue +261 -0
- package/app/pages/ui/tabs-y.vue +108 -0
- package/app/pages/ui/tabs.vue +192 -0
- package/app/pages/ui/tooltips.vue +104 -0
- package/app/pages/ui/wipe-away-vertical.vue +129 -0
- package/app/plugins/css-anchor-positioning-polyfill.client.ts +5 -0
- package/app/stores/useServicesStore.ts +37 -0
- package/app/stores/useSettingsStore.ts +35 -0
- package/app/types/components/hero-text.ts +4 -0
- package/app/types/components/index.ts +1 -0
- package/app/types/forms/types.forms.d.ts +293 -0
- package/app/types/forms/types.zodFormControl.d.ts +29 -0
- package/app/types/types.posts.ts +21 -0
- package/app/types/types.quotes.ts +12 -0
- package/app/types/types.services.ts +20 -0
- package/app/utils/colour-scheme-init.ts +17 -0
- package/nuxt.config.ts +86 -9
- package/package.json +51 -14
- package/types/components/css-anchor-polyfill.d.ts +1 -0
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@nuxtjs/storybook";
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import StorybookComponent from "../CarouselFlip.vue";
|
|
4
|
+
|
|
5
|
+
// Define carousel item interface
|
|
6
|
+
interface CarouselItem {
|
|
7
|
+
id: number | string;
|
|
8
|
+
url: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Custom interface for story args
|
|
13
|
+
interface CarouselFlipStoryArgs {
|
|
14
|
+
carouselDataIds: (string | number)[];
|
|
15
|
+
allowCarouselOverflow: boolean;
|
|
16
|
+
transitionSpeed: number;
|
|
17
|
+
useFlipAnimation: boolean;
|
|
18
|
+
useSpringEffect: boolean;
|
|
19
|
+
styleClassPassthrough: string[];
|
|
20
|
+
// Mock data for stories
|
|
21
|
+
carouselData: CarouselItem[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Sample carousel data for stories
|
|
25
|
+
const sampleCarouselItems: CarouselItem[] = [
|
|
26
|
+
{
|
|
27
|
+
id: 1,
|
|
28
|
+
url: "/images/rotating-carousel/image-1.webp",
|
|
29
|
+
alt: "Sample Carousel Image 1",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 2,
|
|
33
|
+
url: "/images/rotating-carousel/image-2.webp",
|
|
34
|
+
alt: "Sample Carousel Image 2",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 3,
|
|
38
|
+
url: "/images/rotating-carousel/image-4.webp",
|
|
39
|
+
alt: "Sample Carousel Image 3",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 4,
|
|
43
|
+
url: "/images/rotating-carousel/image-5.webp",
|
|
44
|
+
alt: "Sample Carousel Image 4",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 5,
|
|
48
|
+
url: "/images/rotating-carousel/image-6.webp",
|
|
49
|
+
alt: "Sample Carousel Image 5",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 6,
|
|
53
|
+
url: "/images/banners/banner-1.webp",
|
|
54
|
+
alt: "Sample Carousel Image 6",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 7,
|
|
58
|
+
url: "/images/banners/banner-2.webp",
|
|
59
|
+
alt: "Sample Carousel Image 7",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 8,
|
|
63
|
+
url: "/images/banners/banner-3.webp",
|
|
64
|
+
alt: "Sample Carousel Image 8",
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
export default {
|
|
69
|
+
title: "Components/UI/CarouselFlip",
|
|
70
|
+
component: StorybookComponent,
|
|
71
|
+
argTypes: {
|
|
72
|
+
// Carousel Configuration
|
|
73
|
+
carouselDataIds: {
|
|
74
|
+
control: { type: "object" },
|
|
75
|
+
description: "Array of carousel item IDs in display order",
|
|
76
|
+
table: {
|
|
77
|
+
category: "Data",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
allowCarouselOverflow: {
|
|
81
|
+
control: { type: "boolean" },
|
|
82
|
+
description: "Allow carousel items to overflow container",
|
|
83
|
+
table: {
|
|
84
|
+
category: "Layout",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
transitionSpeed: {
|
|
88
|
+
control: { type: "range", min: 100, max: 3000, step: 100 },
|
|
89
|
+
description: "Animation transition speed in milliseconds",
|
|
90
|
+
table: {
|
|
91
|
+
category: "Animation",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
useFlipAnimation: {
|
|
95
|
+
control: { type: "boolean" },
|
|
96
|
+
description: "Enable flip animation effect",
|
|
97
|
+
table: {
|
|
98
|
+
category: "Animation",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
useSpringEffect: {
|
|
102
|
+
control: { type: "boolean" },
|
|
103
|
+
description: "Enable spring physics effect",
|
|
104
|
+
table: {
|
|
105
|
+
category: "Animation",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
styleClassPassthrough: {
|
|
109
|
+
control: { type: "object" },
|
|
110
|
+
description: "Additional CSS classes to pass through",
|
|
111
|
+
table: {
|
|
112
|
+
category: "Layout",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
// Display data for reference
|
|
116
|
+
carouselData: {
|
|
117
|
+
control: { type: "object" },
|
|
118
|
+
description: "Carousel data items (for display reference)",
|
|
119
|
+
table: {
|
|
120
|
+
category: "Data",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
args: {
|
|
125
|
+
carouselDataIds: [1, 2, 3, 4, 5],
|
|
126
|
+
allowCarouselOverflow: true,
|
|
127
|
+
transitionSpeed: 1000,
|
|
128
|
+
useFlipAnimation: true,
|
|
129
|
+
useSpringEffect: false,
|
|
130
|
+
styleClassPassthrough: ["carousel-flip-demo"],
|
|
131
|
+
carouselData: sampleCarouselItems,
|
|
132
|
+
},
|
|
133
|
+
} as Meta<CarouselFlipStoryArgs>;
|
|
134
|
+
|
|
135
|
+
const Template: StoryFn<CarouselFlipStoryArgs> = (args) => ({
|
|
136
|
+
components: {
|
|
137
|
+
StorybookComponent,
|
|
138
|
+
},
|
|
139
|
+
setup() {
|
|
140
|
+
// Filter carousel data based on selected IDs
|
|
141
|
+
const filteredCarouselData = computed(() =>
|
|
142
|
+
args.carouselData.filter((item) => args.carouselDataIds.includes(item.id))
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
// Inject essential CSS styles for proper carousel rendering
|
|
146
|
+
const styleId = "carousel-flip-storybook-styles";
|
|
147
|
+
if (!document.getElementById(styleId)) {
|
|
148
|
+
const style = document.createElement("style");
|
|
149
|
+
style.id = styleId;
|
|
150
|
+
style.textContent = `
|
|
151
|
+
@property --glow-deg {
|
|
152
|
+
syntax: "<angle>";
|
|
153
|
+
inherits: true;
|
|
154
|
+
initial-value: -90deg;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes glow {
|
|
158
|
+
100% {
|
|
159
|
+
--glow-deg: 270deg;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.carousel-flip-demo.carousel-flip {
|
|
164
|
+
--_carousel-item-track-gap: 12px;
|
|
165
|
+
--_carousel-container-max-inline-size: 800px;
|
|
166
|
+
--_carousel-item-edge-preview-width: 12px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@media (width >= 768px) {
|
|
170
|
+
.carousel-flip-demo.carousel-flip {
|
|
171
|
+
--_carousel-item-track-gap: 24px;
|
|
172
|
+
--_carousel-item-edge-preview-width: 80px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.carousel-flip-demo.carousel-flip .item-container {
|
|
177
|
+
max-inline-size: 800px;
|
|
178
|
+
margin-inline: auto;
|
|
179
|
+
outline: 1px solid light-dark(var(--slate-08, #666), var(--slate-01, #f5f5f5));
|
|
180
|
+
padding-block: 6px;
|
|
181
|
+
padding-inline: 6px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (width >= 768px) {
|
|
185
|
+
.carousel-flip-demo.carousel-flip .item-container {
|
|
186
|
+
padding-block: 12px;
|
|
187
|
+
padding-inline: 12px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.carousel-flip-demo.carousel-flip .item {
|
|
192
|
+
background-color: light-dark(var(--slate-05, #e5e5e5), var(--slate-06, #999));
|
|
193
|
+
contain: layout style paint;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.carousel-flip-demo.carousel-flip .item:nth-child(odd) {
|
|
197
|
+
background-color: light-dark(var(--slate-06, #999), var(--slate-05, #e5e5e5));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.custom-carousel-item {
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: center;
|
|
205
|
+
aspect-ratio: 4 / 3;
|
|
206
|
+
inline-size: 100%;
|
|
207
|
+
color: light-dark(#aaa, #333);
|
|
208
|
+
padding-block: 10px;
|
|
209
|
+
padding-inline: 10px;
|
|
210
|
+
border-radius: 4px;
|
|
211
|
+
outline: 1px solid light-dark(#00000090, #ffffff90);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.carousel-flip-demo.carousel-flip .controls-container {
|
|
215
|
+
gap: 20px;
|
|
216
|
+
max-inline-size: 800px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.carousel-flip-demo.carousel-flip .markers-container {
|
|
220
|
+
--marker-height: 12px;
|
|
221
|
+
--marker-width: 12px;
|
|
222
|
+
--marker-border-radius: 100vw;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (width >= 768px) {
|
|
226
|
+
.carousel-flip-demo.carousel-flip .markers-container {
|
|
227
|
+
--marker-height: 22px;
|
|
228
|
+
--marker-width: 22px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.carousel-flip-demo.carousel-flip .markers-item {
|
|
233
|
+
width: var(--marker-width);
|
|
234
|
+
height: var(--marker-height);
|
|
235
|
+
border-radius: var(--marker-border-radius);
|
|
236
|
+
line-height: var(--marker-height);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.carousel-flip-demo.carousel-flip .btn-marker {
|
|
240
|
+
width: var(--marker-width);
|
|
241
|
+
height: var(--marker-height);
|
|
242
|
+
border-radius: var(--marker-border-radius);
|
|
243
|
+
background-color: light-dark(var(--slate-05, #e5e5e5), var(--slate-07, #666));
|
|
244
|
+
line-height: 3px;
|
|
245
|
+
transition: all 0.3s linear;
|
|
246
|
+
border: 1px solid transparent;
|
|
247
|
+
outline: 1px solid transparent;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.carousel-flip-demo.carousel-flip .btn-marker.active {
|
|
251
|
+
background-color: light-dark(var(--slate-012, #000), var(--slate-000, #fff));
|
|
252
|
+
will-change: background-color;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.carousel-flip-demo.carousel-flip .btn-marker:hover,
|
|
256
|
+
.carousel-flip-demo.carousel-flip .btn-marker:focus-visible {
|
|
257
|
+
outline-color: light-dark(#000, #fff);
|
|
258
|
+
will-change: background-color, outline-color;
|
|
259
|
+
}
|
|
260
|
+
`;
|
|
261
|
+
document.head.appendChild(style);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
return { args, filteredCarouselData };
|
|
265
|
+
},
|
|
266
|
+
template: `
|
|
267
|
+
<div style="padding: 20px; max-width: 1200px; margin: 0 auto;">
|
|
268
|
+
<div style="margin-bottom: 20px;">
|
|
269
|
+
<h3 style="margin-bottom: 10px;">CarouselFlip Component</h3>
|
|
270
|
+
<p style="color: #666; margin-bottom: 20px;">
|
|
271
|
+
Displaying {{ args.carouselDataIds.length }} carousel items with {{ args.transitionSpeed }}ms transition speed
|
|
272
|
+
</p>
|
|
273
|
+
<div style="display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;">
|
|
274
|
+
<div style="padding: 4px 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 4px; font-size: 12px; color: light-dark(#333, #ddd);">
|
|
275
|
+
Overflow: {{ args.allowCarouselOverflow ? 'Enabled' : 'Disabled' }}
|
|
276
|
+
</div>
|
|
277
|
+
<div style="padding: 4px 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 4px; font-size: 12px; color: light-dark(#333, #ddd);">
|
|
278
|
+
Flip Animation: {{ args.useFlipAnimation ? 'Enabled' : 'Disabled' }}
|
|
279
|
+
</div>
|
|
280
|
+
<div style="padding: 4px 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 4px; font-size: 12px; color: light-dark(#333, #ddd);">
|
|
281
|
+
Spring Effect: {{ args.useSpringEffect ? 'Enabled' : 'Disabled' }}
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
|
|
286
|
+
<StorybookComponent
|
|
287
|
+
:carousel-data-ids="args.carouselDataIds"
|
|
288
|
+
:allow-carousel-overflow="args.allowCarouselOverflow"
|
|
289
|
+
:transition-speed="args.transitionSpeed"
|
|
290
|
+
:use-flip-animation="args.useFlipAnimation"
|
|
291
|
+
:use-spring-effect="args.useSpringEffect"
|
|
292
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
293
|
+
>
|
|
294
|
+
<template v-for="(item, index) in filteredCarouselData" #[item.id] :key="index">
|
|
295
|
+
<div class="custom-carousel-item">
|
|
296
|
+
<h3>{{ index + 1 }}</h3>
|
|
297
|
+
<p>{{ item.alt }}</p>
|
|
298
|
+
</div>
|
|
299
|
+
</template>
|
|
300
|
+
</StorybookComponent>
|
|
301
|
+
</div>
|
|
302
|
+
`,
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
export const Default = Template.bind({});
|
|
306
|
+
|
|
307
|
+
export const FastTransition = Template.bind({});
|
|
308
|
+
FastTransition.args = {
|
|
309
|
+
carouselDataIds: [1, 2, 3, 4],
|
|
310
|
+
transitionSpeed: 300,
|
|
311
|
+
useFlipAnimation: true,
|
|
312
|
+
useSpringEffect: false,
|
|
313
|
+
allowCarouselOverflow: true,
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export const SlowTransition = Template.bind({});
|
|
317
|
+
SlowTransition.args = {
|
|
318
|
+
carouselDataIds: [1, 2, 3, 4, 5],
|
|
319
|
+
transitionSpeed: 2000,
|
|
320
|
+
useFlipAnimation: true,
|
|
321
|
+
useSpringEffect: false,
|
|
322
|
+
allowCarouselOverflow: true,
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
export const WithSpringEffect = Template.bind({});
|
|
326
|
+
WithSpringEffect.args = {
|
|
327
|
+
carouselDataIds: [1, 2, 3, 4],
|
|
328
|
+
transitionSpeed: 800,
|
|
329
|
+
useFlipAnimation: true,
|
|
330
|
+
useSpringEffect: true,
|
|
331
|
+
allowCarouselOverflow: true,
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export const NoFlipAnimation = Template.bind({});
|
|
335
|
+
NoFlipAnimation.args = {
|
|
336
|
+
carouselDataIds: [1, 2, 3],
|
|
337
|
+
transitionSpeed: 1000,
|
|
338
|
+
useFlipAnimation: false,
|
|
339
|
+
useSpringEffect: false,
|
|
340
|
+
allowCarouselOverflow: true,
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export const NoOverflow = Template.bind({});
|
|
344
|
+
NoOverflow.args = {
|
|
345
|
+
carouselDataIds: [1, 2, 3, 4, 5],
|
|
346
|
+
transitionSpeed: 1000,
|
|
347
|
+
useFlipAnimation: true,
|
|
348
|
+
useSpringEffect: false,
|
|
349
|
+
allowCarouselOverflow: false,
|
|
350
|
+
styleClassPassthrough: ["carousel-flip-demo", "no-overflow"],
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
export const ManyItems = Template.bind({});
|
|
354
|
+
ManyItems.args = {
|
|
355
|
+
carouselDataIds: [1, 2, 3, 4, 5, 6, 7, 8],
|
|
356
|
+
transitionSpeed: 1200,
|
|
357
|
+
useFlipAnimation: true,
|
|
358
|
+
useSpringEffect: false,
|
|
359
|
+
allowCarouselOverflow: true,
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
export const FewItems = Template.bind({});
|
|
363
|
+
FewItems.args = {
|
|
364
|
+
carouselDataIds: [2, 4],
|
|
365
|
+
transitionSpeed: 800,
|
|
366
|
+
useFlipAnimation: true,
|
|
367
|
+
useSpringEffect: true,
|
|
368
|
+
allowCarouselOverflow: true,
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
export const CustomStyling = Template.bind({});
|
|
372
|
+
CustomStyling.args = {
|
|
373
|
+
carouselDataIds: [1, 3, 5, 7],
|
|
374
|
+
transitionSpeed: 1000,
|
|
375
|
+
useFlipAnimation: true,
|
|
376
|
+
useSpringEffect: false,
|
|
377
|
+
allowCarouselOverflow: true,
|
|
378
|
+
styleClassPassthrough: ["carousel-flip-demo", "custom-styling"],
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
// Template with rich content demonstration
|
|
382
|
+
const RichContentTemplate: StoryFn<CarouselFlipStoryArgs> = (args) => ({
|
|
383
|
+
components: {
|
|
384
|
+
StorybookComponent,
|
|
385
|
+
},
|
|
386
|
+
setup() {
|
|
387
|
+
// Filter carousel data based on selected IDs
|
|
388
|
+
const filteredCarouselData = computed(() =>
|
|
389
|
+
args.carouselData.filter((item) => args.carouselDataIds.includes(item.id))
|
|
390
|
+
);
|
|
391
|
+
|
|
392
|
+
// Ensure CSS is injected for proper carousel rendering
|
|
393
|
+
const styleId = "carousel-flip-storybook-styles";
|
|
394
|
+
if (!document.getElementById(styleId)) {
|
|
395
|
+
const style = document.createElement("style");
|
|
396
|
+
style.id = styleId;
|
|
397
|
+
style.textContent = `
|
|
398
|
+
.carousel-flip-demo.carousel-flip {
|
|
399
|
+
--_carousel-item-track-gap: 12px;
|
|
400
|
+
--_carousel-container-max-inline-size: 800px;
|
|
401
|
+
--_carousel-item-edge-preview-width: 12px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@media (width >= 768px) {
|
|
405
|
+
.carousel-flip-demo.carousel-flip {
|
|
406
|
+
--_carousel-item-track-gap: 24px;
|
|
407
|
+
--_carousel-item-edge-preview-width: 80px;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.carousel-flip-demo.carousel-flip .item-container {
|
|
412
|
+
max-inline-size: 800px;
|
|
413
|
+
margin-inline: auto;
|
|
414
|
+
outline: 1px solid light-dark(var(--slate-08, #666), var(--slate-01, #f5f5f5));
|
|
415
|
+
padding-block: 6px;
|
|
416
|
+
padding-inline: 6px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
@media (width >= 768px) {
|
|
420
|
+
.carousel-flip-demo.carousel-flip .item-container {
|
|
421
|
+
padding-block: 12px;
|
|
422
|
+
padding-inline: 12px;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.carousel-flip-demo.carousel-flip .item {
|
|
427
|
+
background-color: light-dark(var(--slate-05, #e5e5e5), var(--slate-06, #999));
|
|
428
|
+
contain: layout style paint;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.carousel-flip-demo.carousel-flip .item:nth-child(odd) {
|
|
432
|
+
background-color: light-dark(var(--slate-06, #999), var(--slate-05, #e5e5e5));
|
|
433
|
+
}
|
|
434
|
+
`;
|
|
435
|
+
document.head.appendChild(style);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
return { args, filteredCarouselData };
|
|
439
|
+
},
|
|
440
|
+
template: `
|
|
441
|
+
<div style="padding: 20px; max-width: 1200px; margin: 0 auto;">
|
|
442
|
+
<div style="margin-bottom: 20px;">
|
|
443
|
+
<h3 style="margin-bottom: 10px;">Rich Content Carousel</h3>
|
|
444
|
+
<p style="color: #666; margin-bottom: 20px;">
|
|
445
|
+
Demonstration of carousel with enhanced visual content
|
|
446
|
+
</p>
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
<StorybookComponent
|
|
450
|
+
:carousel-data-ids="args.carouselDataIds"
|
|
451
|
+
:allow-carousel-overflow="args.allowCarouselOverflow"
|
|
452
|
+
:transition-speed="args.transitionSpeed"
|
|
453
|
+
:use-flip-animation="args.useFlipAnimation"
|
|
454
|
+
:use-spring-effect="args.useSpringEffect"
|
|
455
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
456
|
+
>
|
|
457
|
+
<template v-for="(item, index) in filteredCarouselData" #[item.id] :key="index">
|
|
458
|
+
<div
|
|
459
|
+
class="rich-carousel-item"
|
|
460
|
+
style="
|
|
461
|
+
width: 100%;
|
|
462
|
+
height: 100%;
|
|
463
|
+
min-height: 450px;
|
|
464
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
465
|
+
border-radius: 12px;
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: column;
|
|
468
|
+
align-items: center;
|
|
469
|
+
justify-content: center;
|
|
470
|
+
color: white;
|
|
471
|
+
padding: 20px;
|
|
472
|
+
text-align: center;
|
|
473
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
474
|
+
position: relative;
|
|
475
|
+
overflow: hidden;
|
|
476
|
+
box-sizing: border-box;
|
|
477
|
+
"
|
|
478
|
+
>
|
|
479
|
+
<div
|
|
480
|
+
style="
|
|
481
|
+
position: absolute;
|
|
482
|
+
top: 12px;
|
|
483
|
+
right: 12px;
|
|
484
|
+
background: rgba(255,255,255,0.2);
|
|
485
|
+
backdrop-filter: blur(4px);
|
|
486
|
+
border-radius: 50%;
|
|
487
|
+
width: 32px;
|
|
488
|
+
height: 32px;
|
|
489
|
+
display: flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
justify-content: center;
|
|
492
|
+
font-weight: bold;
|
|
493
|
+
"
|
|
494
|
+
>
|
|
495
|
+
{{ index + 1 }}
|
|
496
|
+
</div>
|
|
497
|
+
<div style="z-index: 2; position: relative;">
|
|
498
|
+
<h3 style="margin: 0 0 8px 0; font-size: 18px; font-weight: 600;">
|
|
499
|
+
Slide {{ index + 1 }}
|
|
500
|
+
</h3>
|
|
501
|
+
<p style="margin: 0; font-size: 14px; opacity: 0.9;">
|
|
502
|
+
{{ item.alt }}
|
|
503
|
+
</p>
|
|
504
|
+
</div>
|
|
505
|
+
<div
|
|
506
|
+
style="
|
|
507
|
+
position: absolute;
|
|
508
|
+
bottom: -20px;
|
|
509
|
+
right: -20px;
|
|
510
|
+
width: 80px;
|
|
511
|
+
height: 80px;
|
|
512
|
+
background: rgba(255,255,255,0.1);
|
|
513
|
+
border-radius: 50%;
|
|
514
|
+
transform: rotate(45deg);
|
|
515
|
+
"
|
|
516
|
+
/>
|
|
517
|
+
</div>
|
|
518
|
+
</template>
|
|
519
|
+
</StorybookComponent>
|
|
520
|
+
</div>
|
|
521
|
+
`,
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
export const RichContent = RichContentTemplate.bind({});
|
|
525
|
+
RichContent.args = {
|
|
526
|
+
carouselDataIds: [1, 2, 3, 4, 5, 6],
|
|
527
|
+
transitionSpeed: 1200,
|
|
528
|
+
useFlipAnimation: true,
|
|
529
|
+
useSpringEffect: true,
|
|
530
|
+
allowCarouselOverflow: true,
|
|
531
|
+
styleClassPassthrough: ["carousel-flip-demo"],
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
// Template showing different animation combinations
|
|
535
|
+
const AnimationShowcaseTemplate: StoryFn<CarouselFlipStoryArgs> = (args) => ({
|
|
536
|
+
components: {
|
|
537
|
+
StorybookComponent,
|
|
538
|
+
},
|
|
539
|
+
setup() {
|
|
540
|
+
const filteredCarouselData = computed(() =>
|
|
541
|
+
args.carouselData.filter((item) => args.carouselDataIds.includes(item.id))
|
|
542
|
+
);
|
|
543
|
+
|
|
544
|
+
// Inject gradient animation styles
|
|
545
|
+
const animationStyleId = "gradient-animation-styles";
|
|
546
|
+
if (!document.getElementById(animationStyleId)) {
|
|
547
|
+
const style = document.createElement("style");
|
|
548
|
+
style.id = animationStyleId;
|
|
549
|
+
style.textContent = `
|
|
550
|
+
@keyframes gradientShift {
|
|
551
|
+
0% { background-position: 0% 50%; }
|
|
552
|
+
50% { background-position: 100% 50%; }
|
|
553
|
+
100% { background-position: 0% 50%; }
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.animation-demo-item {
|
|
557
|
+
animation: gradientShift 4s ease infinite !important;
|
|
558
|
+
background-size: 400% 400% !important;
|
|
559
|
+
}
|
|
560
|
+
`;
|
|
561
|
+
document.head.appendChild(style);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
return { args, filteredCarouselData };
|
|
565
|
+
},
|
|
566
|
+
template: `
|
|
567
|
+
<div style="padding: 20px; max-width: 1200px; margin: 0 auto;">
|
|
568
|
+
<div style="margin-bottom: 20px;">
|
|
569
|
+
<h3 style="margin-bottom: 10px;">Animation Showcase</h3>
|
|
570
|
+
<p style="color: #666; margin-bottom: 20px;">
|
|
571
|
+
Testing different animation combinations and timing
|
|
572
|
+
</p>
|
|
573
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 20px;">
|
|
574
|
+
<div style="padding: 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 6px; text-align: center; font-size: 12px; color: light-dark(#333, #ddd); background: args.useFlipAnimation ? 'light-dark(#e7f5e7, #2d4a2d)' : 'transparent';">
|
|
575
|
+
Flip: {{ args.useFlipAnimation ? '✓' : '✗' }}
|
|
576
|
+
</div>
|
|
577
|
+
<div style="padding: 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 6px; text-align: center; font-size: 12px; color: light-dark(#333, #ddd); background: args.useSpringEffect ? 'light-dark(#e7f5e7, #2d4a2d)' : 'transparent';">
|
|
578
|
+
Spring: {{ args.useSpringEffect ? '✓' : '✗' }}
|
|
579
|
+
</div>
|
|
580
|
+
<div style="padding: 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 6px; text-align: center; font-size: 12px; color: light-dark(#333, #ddd); background: args.allowCarouselOverflow ? 'light-dark(#e7f5e7, #2d4a2d)' : 'transparent';">
|
|
581
|
+
Overflow: {{ args.allowCarouselOverflow ? '✓' : '✗' }}
|
|
582
|
+
</div>
|
|
583
|
+
<div style="padding: 8px; border: 1px solid light-dark(#ccc, #666); border-radius: 6px; text-align: center; font-size: 12px; color: light-dark(#333, #ddd);">
|
|
584
|
+
Speed: {{ args.transitionSpeed }}ms
|
|
585
|
+
</div>
|
|
586
|
+
</div>
|
|
587
|
+
</div>
|
|
588
|
+
|
|
589
|
+
<StorybookComponent
|
|
590
|
+
:carousel-data-ids="args.carouselDataIds"
|
|
591
|
+
:allow-carousel-overflow="args.allowCarouselOverflow"
|
|
592
|
+
:transition-speed="args.transitionSpeed"
|
|
593
|
+
:use-flip-animation="args.useFlipAnimation"
|
|
594
|
+
:use-spring-effect="args.useSpringEffect"
|
|
595
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
596
|
+
>
|
|
597
|
+
<template v-for="(item, index) in filteredCarouselData" #[item.id] :key="index">
|
|
598
|
+
<div
|
|
599
|
+
class="animation-demo-item"
|
|
600
|
+
style="
|
|
601
|
+
width: 100%;
|
|
602
|
+
height: 100%;
|
|
603
|
+
max-width: 400px;
|
|
604
|
+
min-height: 450px;
|
|
605
|
+
background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
|
|
606
|
+
background-size: 400% 400%;
|
|
607
|
+
border-radius: 8px;
|
|
608
|
+
display: flex;
|
|
609
|
+
align-items: center;
|
|
610
|
+
justify-content: center;
|
|
611
|
+
color: white;
|
|
612
|
+
font-weight: bold;
|
|
613
|
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
|
614
|
+
position: relative;
|
|
615
|
+
box-sizing: border-box;
|
|
616
|
+
"
|
|
617
|
+
>
|
|
618
|
+
<div style="text-align: center;">
|
|
619
|
+
<div style="font-size: 24px; margin-bottom: 4px;">{{ index + 1 }}</div>
|
|
620
|
+
<div style="font-size: 12px; opacity: 0.9;">{{ item.alt.split(' ').slice(-2).join(' ') }}</div>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
</template>
|
|
624
|
+
</StorybookComponent>
|
|
625
|
+
</div>
|
|
626
|
+
`,
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
export const AnimationShowcase = AnimationShowcaseTemplate.bind({});
|
|
630
|
+
AnimationShowcase.args = {
|
|
631
|
+
carouselDataIds: [1, 2, 3, 4],
|
|
632
|
+
transitionSpeed: 1500,
|
|
633
|
+
useFlipAnimation: true,
|
|
634
|
+
useSpringEffect: true,
|
|
635
|
+
allowCarouselOverflow: true,
|
|
636
|
+
styleClassPassthrough: ["carousel-flip-demo", "animation-showcase"],
|
|
637
|
+
};
|