srcdev-nuxt-components 8.0.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -118
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-prompt-core.css +94 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-toast.css +5 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-components/index.css +1 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +67 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +87 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +74 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-with-label.css +14 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-description.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +143 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-toggle-switch.css +68 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/index.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/index.css +2 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_large.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_medium.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_small.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_x-small.css +11 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/index.css +23 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_default.css +62 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_error.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_info.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +64 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_success.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/index.css +7 -0
- package/app/assets/styles/main.css +2 -0
- package/app/assets/styles/setup/01.config/_basic-resets.css +9 -0
- package/app/assets/styles/setup/01.config/_head.css +33 -0
- package/app/assets/styles/setup/01.config/_normalise.css +209 -0
- package/app/assets/styles/setup/01.config/index.css +3 -0
- package/app/assets/styles/setup/02.colours/_amber.css +12 -0
- package/app/assets/styles/setup/02.colours/_blue.css +13 -0
- package/app/assets/styles/setup/02.colours/_green.css +13 -0
- package/app/assets/styles/setup/02.colours/_orange.css +12 -0
- package/app/assets/styles/setup/02.colours/_red.css +13 -0
- package/app/assets/styles/setup/02.colours/_slate.css +13 -0
- package/app/assets/styles/setup/02.colours/_sunset.css +12 -0
- package/app/assets/styles/setup/02.colours/index.css +7 -0
- package/app/assets/styles/setup/03.theming/default/_dark.css +138 -0
- package/app/assets/styles/setup/03.theming/default/_light.css +156 -0
- package/app/assets/styles/setup/03.theming/default/index.css +2 -0
- package/app/assets/styles/setup/03.theming/error/_dark.css +56 -0
- package/app/assets/styles/setup/03.theming/error/_light.css +74 -0
- package/app/assets/styles/setup/03.theming/error/index.css +2 -0
- package/app/assets/styles/setup/03.theming/index.css +4 -0
- package/app/assets/styles/setup/03.theming/success/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/success/_light.css +65 -0
- package/app/assets/styles/setup/03.theming/success/index.css +2 -0
- package/app/assets/styles/setup/03.theming/warning/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/warning/_light.css +64 -0
- package/app/assets/styles/setup/03.theming/warning/index.css +2 -0
- package/app/assets/styles/setup/04.elements/forms/00.element-defaults.css +21 -0
- package/app/assets/styles/setup/04.elements/forms/01.field-layout-container-level.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/02.typography.css +24 -0
- package/app/assets/styles/setup/04.elements/forms/03.generic-input-geometry.css +63 -0
- package/app/assets/styles/setup/04.elements/forms/04.slot-icon-system.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/05.checkbox-radio-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/07.validation-error-block-layout.css +9 -0
- package/app/assets/styles/setup/04.elements/forms/09.animation-motion.css +6 -0
- package/app/assets/styles/setup/04.elements/forms/index.css +9 -0
- package/app/assets/styles/setup/04.elements/index.css +1 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_font-family.css +8 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_reponsive-font-sizes.css +22 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_timing-functions.css +119 -0
- package/app/assets/styles/setup/05.typography/01.tokens/index.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-article.css +30 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-card.css +45 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-body.css +146 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-heading.css +35 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-link.css +116 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-section.css +7 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-classes.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-variation-settings.css +29 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-weights.css +39 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/index.css +9 -0
- package/app/assets/styles/setup/05.typography/index.css +2 -0
- package/app/assets/styles/setup/06.utility-classes/_a11y.css +280 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_auto-rotate.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-exit-blur.css +16 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-slide-in.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-zoom-reveal.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_containers.css +96 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_flexbox.css +196 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_grid.css +266 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_positioning.css +149 -0
- package/app/assets/styles/setup/06.utility-classes/layout/index.css +9 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_fluid-spacing.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_margin.css +334 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_padding.css +308 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/index.css +3 -0
- package/app/assets/styles/setup/a11y/_variables.css +8 -0
- package/app/assets/styles/setup/a11y/index.css +1 -0
- package/app/assets/styles/setup/index.css +10 -0
- package/app/components/01.atoms/animations/entry/EntryAnimation.vue +22 -0
- package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +74 -0
- package/app/components/01.atoms/glass-panel/GlassPanel.vue +52 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +42 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts +67 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/stories/EyebrowText.stories.ts +49 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +196 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/__snapshots__/EyebrowText.spec.ts.snap +17 -0
- package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +101 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts +110 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/stories/HeroText.stories.ts +70 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +148 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/__snapshots__/HeroText.spec.ts.snap +7 -0
- package/app/components/02.molecules/contact-section/stories/ContactSection.stories.ts +197 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.spec.ts +196 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.vue +87 -0
- package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap +119 -0
- package/app/components/02.molecules/price-list/PriceList.vue +119 -0
- package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +103 -0
- package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +192 -0
- package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +73 -0
- package/app/components/02.molecules/profile-section/ProfileSection.vue +154 -0
- package/app/components/02.molecules/profile-section/stories/ProfileSection.stories.ts +154 -0
- package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +147 -0
- package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +29 -0
- package/app/components/02.molecules/stepper-list/StepperList.vue +158 -0
- package/app/components/02.molecules/stepper-list/stories/StepperList.stories.ts +392 -0
- package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +289 -0
- package/app/components/02.molecules/stepper-list/tests/__snapshots__/StepperList.spec.ts.snap +86 -0
- package/app/components/03.organisms/colour-finder/ColourFinder.vue +1519 -0
- package/app/components/03.organisms/services/services-card/ServicesCard.vue +104 -0
- package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +39 -0
- package/app/components/03.organisms/services/services-grids/ServicesSectionGrid.vue +52 -0
- package/app/components/03.organisms/services/services-section/ServicesSection.vue +307 -0
- package/app/components/03.organisms/treatment-consultant/TreatmentConsultant.vue +2221 -0
- package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts +38 -0
- package/app/components/accordian/AccordianCore.vue +26 -21
- package/app/components/accordian/stories/AccordianCore.stories.ts +241 -0
- package/app/components/accordian/tests/AccordianCore.spec.ts +218 -0
- package/app/components/accordian/tests/__snapshots__/AccordianCore.spec.ts.snap +74 -0
- package/app/components/alert-mask/AlertMaskCore.vue +35 -33
- package/app/components/alert-mask/tests/AlertMaskCore.spec.ts +304 -0
- package/app/components/animated-svg-text/AnimatedSvgText.vue +2 -0
- package/app/components/canvas-switcher/CanvasSwitcher.vue +10 -8
- package/app/components/{carousel-basic → carousels}/CarouselBasic.vue +58 -56
- package/app/components/{carousel-basic → carousels}/CarouselFlip.vue +150 -148
- package/app/components/{carousel-basic → carousels}/CarouselInfinite.vue +2 -0
- package/app/components/carousels/stories/CarouselFlip.stories.ts +637 -0
- package/app/components/carousels/tests/CarouselFlip.spec.ts +556 -0
- package/app/components/clip-element/ClipElement.vue +2 -0
- package/app/components/clipped-panels/ClippedPanel.vue +2 -0
- package/app/components/container-glow/ContainerGlowCore.vue +119 -50
- package/app/components/container-glow/stories/ContainerGlowCore.stories.ts +337 -0
- package/app/components/content-columns/TwoColumns.vue +59 -0
- package/app/components/content-columns/stories/TwoColumns.stories.ts +561 -0
- package/app/components/content-containers/ContentContainer.vue +89 -0
- package/app/components/content-containers/stories/ContentContainer.stories.ts +465 -0
- package/app/components/content-grid/ContentGrid.vue +4 -2
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +18 -16
- package/app/components/deep-expanding-menu/DeepExpandingMenuOld.vue +28 -26
- package/app/components/display-avatar/DisplayAvatar.vue +15 -13
- package/app/components/display-avatar/stories/DisplayAvatar.stories.ts +94 -0
- package/app/components/display-banner/DisplayBanner.vue +2 -0
- package/app/components/display-card/DisplayCard.vue +16 -14
- package/app/components/display-chip/DisplayChip.vue +2 -0
- package/app/components/display-chip/stories/DisplayChip.stories.ts +346 -0
- package/app/components/display-details/DisplayDetailsCore.vue +2 -0
- package/app/components/display-dialog/DisplayDialogCore.vue +24 -17
- package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +2 -0
- package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +2 -0
- package/app/components/display-grid/DisplayGridCore.vue +4 -4
- package/app/components/display-prompt/DisplayPromptCore.vue +20 -16
- package/app/components/display-prompt/variants/DisplayPromptError.vue +6 -4
- package/app/components/display-theme-switch/DisplayThemeSwitch.vue +182 -0
- package/app/components/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +154 -0
- package/app/components/display-toast/DisplayToast.vue +63 -61
- package/app/components/display-toast/molecules/DefaultToastContent.vue +21 -45
- package/app/components/display-toast/stories/DisplayToast.stories.ts +380 -0
- package/app/components/display-tooltip/DisplayTooltip.vue +14 -9
- package/app/components/display-tooltip/DisplayTooltipDefined.vue +2 -0
- package/app/components/expanding-panel/ExpandingPanel.vue +28 -41
- package/app/components/forms/c12/prop-validators/index.ts +48 -0
- package/app/components/forms/c12/utils.ts +14 -0
- package/app/components/forms/form-errors/InputError.vue +208 -0
- package/app/components/forms/form-errors/tests/InputError.spec.ts +66 -0
- package/app/components/forms/form-fieldset/FormFieldset.vue +75 -0
- package/app/components/forms/input-button/InputButtonCore.vue +219 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts +113 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/stories/InputButtonCore.stories.ts +304 -0
- package/app/components/forms/input-button/tests/InputButtonCore.spec.ts +269 -0
- package/app/components/forms/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +72 -0
- package/app/components/forms/input-checkbox/MultipleCheckboxes.vue +181 -0
- package/app/components/forms/input-checkbox/SingleCheckbox.vue +144 -0
- package/app/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +101 -0
- package/app/components/forms/input-checkbox/tests/data/tags.json +67 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +174 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +199 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +104 -0
- package/app/components/forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +320 -0
- package/app/components/forms/input-description/InputDescription.vue +55 -0
- package/app/components/forms/input-description/tests/InputDescription.spec.ts +429 -0
- package/app/components/forms/input-label/InputLabel.vue +66 -0
- package/app/components/forms/input-label/tests/InputLabel.spec.ts +431 -0
- package/app/components/forms/input-number/InputNumberCore.vue +163 -0
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +150 -0
- package/app/components/forms/input-radio/MultipleRadiobuttons.vue +180 -0
- package/app/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +90 -0
- package/app/components/forms/input-radio/tests/data/tags.json +67 -0
- package/app/components/forms/input-range/InputRangeCore.vue +233 -0
- package/app/components/forms/input-range/variants/InputRangeDefault.vue +166 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyCore.vue +426 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +94 -0
- package/app/components/forms/input-select/InputSelectCore.vue +171 -0
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +121 -0
- package/app/components/forms/input-text/InputTextCore.vue +222 -0
- package/app/components/forms/input-text/stories/InputPasswordWithLabel.stories.ts +339 -0
- package/app/components/forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +461 -0
- package/app/components/forms/input-text/stories/InputTextCore.stories.ts +241 -0
- package/app/components/forms/input-text/stories/InputTextWithLabel.stories.ts +293 -0
- package/app/components/forms/input-text/variants/InputPasswordWithLabel.vue +86 -0
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +203 -0
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +149 -0
- package/app/components/forms/input-textarea/InputTextareaCore.vue +151 -0
- package/app/components/forms/input-textarea/stories/InputTextareaCore.stories.ts +247 -0
- package/app/components/forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +452 -0
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +150 -0
- package/app/components/forms/pending-effect/PendingEffect.vue +101 -0
- package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +221 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchCore.stories.ts +236 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +253 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +280 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +101 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +84 -0
- package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +290 -0
- package/app/components/forms/ui/FormField.vue +81 -0
- package/app/components/forms/ui/FormWrapper.vue +37 -0
- package/app/components/glowing-border/GlowingBorder.vue +2 -0
- package/app/components/glowing-border/stories/GlowingBorder.stories.ts +141 -0
- package/app/components/image-galleries/SliderGallery.vue +100 -100
- package/app/components/layout-grids/LayoutGridA.vue +2 -0
- package/app/components/layout-grids/LayoutGridB.vue +8 -6
- package/app/components/layout-grids/stories/LayoutGridA.stories.ts +402 -0
- package/app/components/layout-grids/stories/LayoutGridB.stories.ts +420 -0
- package/app/components/layout-grids/tests/LayoutGridA.spec.ts +352 -0
- package/app/components/layout-grids/tests/LayoutGridB.spec.ts +490 -0
- package/app/components/layout-row/LayoutRow.vue +60 -54
- package/app/components/layout-row/stories/LayoutRow.stories.ts +528 -0
- package/app/components/magnetic-navigation/MagneticNavigation.vue +2 -0
- package/app/components/marquee-scroller/MarqueeScroller.vue +35 -33
- package/app/components/masonry-grid/MasonryGrid.vue +8 -6
- package/app/components/masonry-grid-ordered/MasonryGridOrdered.vue +2 -0
- package/app/components/masonry-grid-ordered/MasonryGridOrderedGridExperiment.vue +82 -87
- package/app/components/masonry-grid-ordered/stories/MasonryGridOrdered.stories.ts +354 -0
- package/app/components/masonry-grid-sorted/MasonryGridSorted.vue +2 -0
- package/app/components/parallax/SectionParallax.vue +10 -8
- package/app/components/pop-over/PopOver.vue +2 -0
- package/app/components/qr-code/CaptureQrCode.vue +2 -0
- package/app/components/qr-code/DecodeQrCode.vue +2 -0
- package/app/components/qr-code/DisplayQrCode.vue +7 -5
- package/app/components/qr-code/stories/QrCode.stories.ts +933 -0
- package/app/components/responsive-header/NavigationItems.vue +34 -23
- package/app/components/responsive-header/ResponsiveHeader.vue +163 -157
- package/app/components/rotating-carousel/RotatingCarouselImage.vue +2 -0
- package/app/components/skip-links/SkipLinks.vue +2 -0
- package/app/components/tabs/TabsCore.vue +38 -30
- package/app/components/test-storybook/TestStorybook.vue +49 -0
- package/app/components/test-storybook/stories/TestStorybook.stories.ts +28 -0
- package/app/components/ui-block-decorated/UiBlockDecorated.vue +2 -0
- package/app/components/view-timeline/WipeAwayVertical.vue +2 -0
- package/app/composables/useApiRequest.ts +25 -0
- package/app/composables/useAriaDescribedById.ts +19 -0
- package/app/composables/useColourScheme.ts +18 -0
- package/app/composables/useErrorMessages.ts +62 -0
- package/app/composables/useFormControl.ts +264 -0
- package/app/composables/useMaxChildWidth.ts +30 -0
- package/app/composables/useTabs.ts +207 -117
- package/app/composables/useZodValidation.ts +147 -0
- package/app/layouts/default.vue +605 -0
- package/app/pages/forms/examples/buttons/index.vue +285 -0
- package/app/pages/forms/examples/material/checkbox-radio-panels.vue +244 -0
- package/app/pages/forms/examples/material/cssbattle.vue +60 -0
- package/app/pages/forms/examples/material/text-fields.vue +913 -0
- package/app/pages/index.vue +122 -0
- package/app/pages/typography/hero-text.vue +97 -0
- package/app/pages/typography/index.vue +39 -0
- package/app/pages/typography/page-body.vue +171 -0
- package/app/pages/typography/page-heading.vue +76 -0
- package/app/pages/typography/page-link.vue +103 -0
- package/app/pages/ui/accordian.vue +211 -0
- package/app/pages/ui/animated-svg-text.vue +85 -0
- package/app/pages/ui/block-decorators.vue +142 -0
- package/app/pages/ui/carousel-basic.vue +292 -0
- package/app/pages/ui/carousel-flip.vue +244 -0
- package/app/pages/ui/carousel-infinite.vue +260 -0
- package/app/pages/ui/clipped-panels.vue +101 -0
- package/app/pages/ui/contact-section.vue +323 -0
- package/app/pages/ui/container-glow.vue +107 -0
- package/app/pages/ui/content-container.vue +112 -0
- package/app/pages/ui/display-avatar.vue +253 -0
- package/app/pages/ui/display-banner.vue +78 -0
- package/app/pages/ui/display-card.vue +82 -0
- package/app/pages/ui/display-chip.vue +225 -0
- package/app/pages/ui/display-details.vue +175 -0
- package/app/pages/ui/display-dialog.vue +231 -0
- package/app/pages/ui/display-prompt.vue +81 -0
- package/app/pages/ui/display-toast.vue +332 -0
- package/app/pages/ui/expanding-panel.vue +193 -0
- package/app/pages/ui/glowing-border.vue +111 -0
- package/app/pages/ui/layout-grid-a.vue +149 -0
- package/app/pages/ui/layout-grid-b.vue +132 -0
- package/app/pages/ui/layout-row.vue +139 -0
- package/app/pages/ui/magnetic-navigation.vue +50 -0
- package/app/pages/ui/marquee-scroller.vue +99 -0
- package/app/pages/ui/mask-element.vue +82 -0
- package/app/pages/ui/masonry-columns.vue +55 -0
- package/app/pages/ui/masonry-grid-ordered-experiment.vue +79 -0
- package/app/pages/ui/masonry-grid-ordered.vue +56 -0
- package/app/pages/ui/masonry-grid-sorted.vue +55 -0
- package/app/pages/ui/masonry-grid.vue +55 -0
- package/app/pages/ui/price-list.vue +65 -0
- package/app/pages/ui/profile-section.vue +96 -0
- package/app/pages/ui/qr-code/[componentName].vue +218 -0
- package/app/pages/ui/rotating-carousel.vue +154 -0
- package/app/pages/ui/section-parallax.vue +54 -0
- package/app/pages/ui/services/colour-finder.vue +43 -0
- package/app/pages/ui/services/services-cards.vue +42 -0
- package/app/pages/ui/services/services-section/[slug].vue +59 -0
- package/app/pages/ui/services/services-sections-compact.vue +64 -0
- package/app/pages/ui/services/treatment-consultant.vue +39 -0
- package/app/pages/ui/settings.vue +80 -0
- package/app/pages/ui/simple-grid.vue +66 -0
- package/app/pages/ui/slider-gallery.vue +261 -0
- package/app/pages/ui/tabs-y.vue +108 -0
- package/app/pages/ui/tabs.vue +192 -0
- package/app/pages/ui/tooltips.vue +104 -0
- package/app/pages/ui/wipe-away-vertical.vue +129 -0
- package/app/plugins/css-anchor-positioning-polyfill.client.ts +5 -0
- package/app/stores/useServicesStore.ts +37 -0
- package/app/stores/useSettingsStore.ts +35 -0
- package/app/types/components/hero-text.ts +4 -0
- package/app/types/components/index.ts +1 -0
- package/app/types/forms/types.forms.d.ts +293 -0
- package/app/types/forms/types.zodFormControl.d.ts +29 -0
- package/app/types/types.posts.ts +21 -0
- package/app/types/types.quotes.ts +12 -0
- package/app/types/types.services.ts +20 -0
- package/app/utils/colour-scheme-init.ts +17 -0
- package/nuxt.config.ts +86 -6
- package/package.json +51 -14
- package/types/components/css-anchor-polyfill.d.ts +1 -0
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@nuxtjs/storybook";
|
|
2
|
+
import TwoColumnsComponent from "../TwoColumns.vue";
|
|
3
|
+
|
|
4
|
+
// Define the args interface
|
|
5
|
+
interface TwoColumnsArgs {
|
|
6
|
+
dataTestid: string;
|
|
7
|
+
tag: string;
|
|
8
|
+
styleClassPassthrough: string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
title: "Components/Layouts/TwoColumns",
|
|
13
|
+
component: TwoColumnsComponent,
|
|
14
|
+
argTypes: {
|
|
15
|
+
// Semantic
|
|
16
|
+
tag: {
|
|
17
|
+
control: { type: "select" },
|
|
18
|
+
options: ["div", "section", "article", "aside", "header", "footer", "main", "nav"],
|
|
19
|
+
description: "HTML tag to render as",
|
|
20
|
+
table: {
|
|
21
|
+
category: "Semantic",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
// Content
|
|
25
|
+
dataTestid: {
|
|
26
|
+
control: { type: "text" },
|
|
27
|
+
description: "Test ID for the component",
|
|
28
|
+
table: {
|
|
29
|
+
category: "Testing",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
// Hide complex props
|
|
33
|
+
styleClassPassthrough: {
|
|
34
|
+
table: {
|
|
35
|
+
disable: true,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
args: {
|
|
40
|
+
tag: "div",
|
|
41
|
+
dataTestid: "two-column-layout",
|
|
42
|
+
styleClassPassthrough: [],
|
|
43
|
+
},
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
description: {
|
|
47
|
+
component:
|
|
48
|
+
"A responsive two-column layout component that uses CSS Container Queries. Displays content in a single column on smaller containers (< 1064px) and switches to a two-column grid layout on larger containers (≥ 1064px).",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
} as Meta<TwoColumnsArgs>;
|
|
53
|
+
|
|
54
|
+
const Template: StoryFn<TwoColumnsArgs> = (args) => ({
|
|
55
|
+
components: { TwoColumnsComponent },
|
|
56
|
+
setup() {
|
|
57
|
+
return { args };
|
|
58
|
+
},
|
|
59
|
+
template: `
|
|
60
|
+
<div style="background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); padding: 40px 20px; min-height: 60vh;">
|
|
61
|
+
<TwoColumnsComponent
|
|
62
|
+
:data-testid="args.dataTestid"
|
|
63
|
+
:tag="args.tag"
|
|
64
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
65
|
+
>
|
|
66
|
+
<template #col1>
|
|
67
|
+
<div style="padding: 24px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); height: 100%;">
|
|
68
|
+
<h3 style="margin: 0 0 16px 0; color: #1e40af; font-size: 20px; font-weight: 600;">
|
|
69
|
+
🏠 Left Column
|
|
70
|
+
</h3>
|
|
71
|
+
<p style="margin: 0 0 16px 0; color: #374151; line-height: 1.6;">
|
|
72
|
+
This is the first column content. On smaller containers (< 1064px), this will appear above the second column in a single-column layout.
|
|
73
|
+
</p>
|
|
74
|
+
<div style="padding: 16px; background: #dbeafe; border-radius: 8px; border-left: 4px solid #3b82f6;">
|
|
75
|
+
<p style="margin: 0; color: #1e40af; font-size: 14px; font-weight: 500;">
|
|
76
|
+
💡 Container Query: This layout responds to the container width, not the viewport width.
|
|
77
|
+
</p>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</template>
|
|
81
|
+
<template #col2>
|
|
82
|
+
<div style="padding: 24px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); height: 100%;">
|
|
83
|
+
<h3 style="margin: 0 0 16px 0; color: #dc2626; font-size: 20px; font-weight: 600;">
|
|
84
|
+
🎯 Right Column
|
|
85
|
+
</h3>
|
|
86
|
+
<p style="margin: 0 0 16px 0; color: #374151; line-height: 1.6;">
|
|
87
|
+
This is the second column content. When the container reaches 1064px or wider, both columns will display side by side with equal widths.
|
|
88
|
+
</p>
|
|
89
|
+
<div style="padding: 16px; background: #fecaca; border-radius: 8px; border-left: 4px solid #ef4444;">
|
|
90
|
+
<p style="margin: 0; color: #dc2626; font-size: 14px; font-weight: 500;">
|
|
91
|
+
🚀 Responsive: Automatic mobile-first responsive behavior without media queries.
|
|
92
|
+
</p>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</template>
|
|
96
|
+
</TwoColumnsComponent>
|
|
97
|
+
</div>
|
|
98
|
+
`,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// ===== BASIC STORIES =====
|
|
102
|
+
|
|
103
|
+
export const Default = Template.bind({});
|
|
104
|
+
Default.args = {};
|
|
105
|
+
|
|
106
|
+
// ===== SEMANTIC TAG STORIES =====
|
|
107
|
+
|
|
108
|
+
const SemanticTemplate: StoryFn<TwoColumnsArgs> = (args) => ({
|
|
109
|
+
components: { TwoColumnsComponent },
|
|
110
|
+
setup() {
|
|
111
|
+
const getTagInfo = (tag: string) => {
|
|
112
|
+
const tagInfo = {
|
|
113
|
+
div: { description: "Generic container", use: "Default wrapper for general content" },
|
|
114
|
+
section: { description: "Thematic grouping", use: "Related content sections" },
|
|
115
|
+
article: { description: "Self-contained content", use: "Blog posts, news articles" },
|
|
116
|
+
aside: { description: "Tangentially related", use: "Sidebars, supplementary content" },
|
|
117
|
+
header: { description: "Introductory content", use: "Page headers, section headers" },
|
|
118
|
+
footer: { description: "Footer information", use: "Page footers, credits" },
|
|
119
|
+
main: { description: "Main content", use: "Primary page content" },
|
|
120
|
+
nav: { description: "Navigation links", use: "Navigation menus, site structure" },
|
|
121
|
+
};
|
|
122
|
+
return tagInfo[tag as keyof typeof tagInfo] || { description: "Generic container", use: "Default usage" };
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
return { args, getTagInfo };
|
|
126
|
+
},
|
|
127
|
+
template: `
|
|
128
|
+
<div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 40px 20px;">
|
|
129
|
+
<TwoColumnsComponent
|
|
130
|
+
:data-testid="args.dataTestid"
|
|
131
|
+
:tag="args.tag"
|
|
132
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
133
|
+
>
|
|
134
|
+
<template #col1>
|
|
135
|
+
<div style="padding: 30px; background: white; border-radius: 12px; text-align: center;">
|
|
136
|
+
<div style="display: inline-block; padding: 8px 16px; background: #667eea; color: white; border-radius: 6px; font-family: monospace; font-size: 16px; margin-bottom: 20px;">
|
|
137
|
+
<{{ args.tag }}>
|
|
138
|
+
</div>
|
|
139
|
+
<h3 style="margin: 0 0 12px 0; color: #374151; font-size: 20px;">
|
|
140
|
+
{{ getTagInfo(args.tag).description }}
|
|
141
|
+
</h3>
|
|
142
|
+
<p style="margin: 0; color: #6b7280; line-height: 1.5;">
|
|
143
|
+
{{ getTagInfo(args.tag).use }}
|
|
144
|
+
</p>
|
|
145
|
+
</div>
|
|
146
|
+
</template>
|
|
147
|
+
<template #col2>
|
|
148
|
+
<div style="padding: 30px; background: rgba(255, 255, 255, 0.95); border-radius: 12px;">
|
|
149
|
+
<h4 style="margin: 0 0 16px 0; color: #374151; font-size: 18px;">Semantic Benefits</h4>
|
|
150
|
+
<ul style="margin: 0; color: #6b7280; line-height: 1.6; padding-left: 20px;">
|
|
151
|
+
<li>Better accessibility for screen readers</li>
|
|
152
|
+
<li>Improved SEO and document structure</li>
|
|
153
|
+
<li>Clearer code intent and maintainability</li>
|
|
154
|
+
<li>Enhanced landmark navigation</li>
|
|
155
|
+
</ul>
|
|
156
|
+
<div style="padding: 16px; background: #f0f9ff; border-radius: 8px; margin-top: 16px;">
|
|
157
|
+
<p style="margin: 0; color: #3730a3; font-size: 14px; font-weight: 500;">
|
|
158
|
+
Choose semantic tags that match your content's purpose and structure.
|
|
159
|
+
</p>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</template>
|
|
163
|
+
</TwoColumnsComponent>
|
|
164
|
+
</div>
|
|
165
|
+
`,
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
export const SemanticSection = SemanticTemplate.bind({});
|
|
169
|
+
SemanticSection.args = {
|
|
170
|
+
tag: "section",
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const SemanticArticle = SemanticTemplate.bind({});
|
|
174
|
+
SemanticArticle.args = {
|
|
175
|
+
tag: "article",
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export const SemanticAside = SemanticTemplate.bind({});
|
|
179
|
+
SemanticAside.args = {
|
|
180
|
+
tag: "aside",
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
// ===== CONTENT EXAMPLES =====
|
|
184
|
+
|
|
185
|
+
const ContentExampleTemplate: StoryFn<TwoColumnsArgs> = (args) => ({
|
|
186
|
+
components: { TwoColumnsComponent },
|
|
187
|
+
setup() {
|
|
188
|
+
return { args };
|
|
189
|
+
},
|
|
190
|
+
template: `
|
|
191
|
+
<div style="background: #f9fafb; padding: 20px;">
|
|
192
|
+
<TwoColumnsComponent
|
|
193
|
+
:data-testid="args.dataTestid"
|
|
194
|
+
:tag="args.tag"
|
|
195
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
196
|
+
>
|
|
197
|
+
<template #col1>
|
|
198
|
+
<article style="padding: 32px; background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
|
|
199
|
+
<h2 style="margin: 0 0 24px 0; color: #1f2937; font-size: 28px; font-weight: 700;">
|
|
200
|
+
Understanding Container Queries
|
|
201
|
+
</h2>
|
|
202
|
+
<p style="margin: 0 0 20px 0; color: #374151; line-height: 1.7; font-size: 16px;">
|
|
203
|
+
Container queries allow components to respond to their own size rather than the viewport size.
|
|
204
|
+
This two-column layout demonstrates this concept perfectly.
|
|
205
|
+
</p>
|
|
206
|
+
<p style="margin: 0 0 20px 0; color: #374151; line-height: 1.7;">
|
|
207
|
+
When the container is narrower than 1064px, content flows in a single column. Once it reaches
|
|
208
|
+
that threshold, it switches to the two-column grid layout automatically.
|
|
209
|
+
</p>
|
|
210
|
+
<div style="padding: 20px; background: #f0f9ff; border-radius: 8px; border-left: 4px solid #3b82f6;">
|
|
211
|
+
<h3 style="margin: 0 0 12px 0; color: #1e40af; font-size: 16px;">Key Advantages</h3>
|
|
212
|
+
<ul style="margin: 0; color: #1e40af; line-height: 1.6;">
|
|
213
|
+
<li>Component-based responsive design</li>
|
|
214
|
+
<li>No dependency on viewport size</li>
|
|
215
|
+
<li>Truly reusable across contexts</li>
|
|
216
|
+
</ul>
|
|
217
|
+
</div>
|
|
218
|
+
</article>
|
|
219
|
+
</template>
|
|
220
|
+
<template #col2>
|
|
221
|
+
<div style="padding: 32px; background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); height: fit-content;">
|
|
222
|
+
<h3 style="margin: 0 0 20px 0; color: #1f2937; font-size: 22px; font-weight: 600;">
|
|
223
|
+
Technical Implementation
|
|
224
|
+
</h3>
|
|
225
|
+
|
|
226
|
+
<div style="margin-bottom: 24px;">
|
|
227
|
+
<h4 style="margin: 0 0 8px 0; color: #059669; font-size: 16px; font-weight: 600;">Container Setup</h4>
|
|
228
|
+
<pre style="background: #1f2937; color: #e5e7eb; padding: 16px; border-radius: 6px; font-size: 12px; overflow-x: auto; margin: 0;"><code>container-type: inline-size;
|
|
229
|
+
container-name: two-column-layout;</code></pre>
|
|
230
|
+
</div>
|
|
231
|
+
|
|
232
|
+
<div style="margin-bottom: 24px;">
|
|
233
|
+
<h4 style="margin: 0 0 8px 0; color: #7c3aed; font-size: 16px; font-weight: 600;">Responsive Grid</h4>
|
|
234
|
+
<pre style="background: #1f2937; color: #e5e7eb; padding: 16px; border-radius: 6px; font-size: 12px; overflow-x: auto; margin: 0;"><code>@container two-column-layout (width >= 1064px) {
|
|
235
|
+
grid-template-columns: repeat(2, 1fr);
|
|
236
|
+
}</code></pre>
|
|
237
|
+
</div>
|
|
238
|
+
|
|
239
|
+
<div style="padding: 16px; background: #f3f4f6; border-radius: 8px; border-left: 4px solid #6b7280;">
|
|
240
|
+
<p style="margin: 0; color: #374151; font-size: 14px; line-height: 1.5;">
|
|
241
|
+
This approach ensures consistent behavior regardless of where the component is placed
|
|
242
|
+
in your application layout.
|
|
243
|
+
</p>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</template>
|
|
247
|
+
</TwoColumnsComponent>
|
|
248
|
+
</div>
|
|
249
|
+
`,
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
export const TechnicalArticle = ContentExampleTemplate.bind({});
|
|
253
|
+
TechnicalArticle.args = {
|
|
254
|
+
tag: "article",
|
|
255
|
+
};
|
|
256
|
+
TechnicalArticle.parameters = {
|
|
257
|
+
docs: {
|
|
258
|
+
description: {
|
|
259
|
+
story:
|
|
260
|
+
"Example of a technical article layout showing how content flows between the two columns with detailed implementation information.",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
// ===== FEATURE SHOWCASE STORIES =====
|
|
266
|
+
|
|
267
|
+
const FeatureTemplate: StoryFn<TwoColumnsArgs> = (args) => ({
|
|
268
|
+
components: { TwoColumnsComponent },
|
|
269
|
+
setup() {
|
|
270
|
+
return { args };
|
|
271
|
+
},
|
|
272
|
+
template: `
|
|
273
|
+
<div style="background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%); padding: 40px 20px;">
|
|
274
|
+
<TwoColumnsComponent
|
|
275
|
+
:data-testid="args.dataTestid"
|
|
276
|
+
:tag="args.tag"
|
|
277
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
278
|
+
>
|
|
279
|
+
<template #col1>
|
|
280
|
+
<div style="padding: 32px; background: white; border-radius: 16px; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);">
|
|
281
|
+
<div style="text-align: center; margin-bottom: 24px;">
|
|
282
|
+
<div style="width: 80px; height: 80px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-radius: 50%; margin: 0 auto 16px auto; display: flex; align-items: center; justify-content: center; font-size: 32px;">
|
|
283
|
+
⚡
|
|
284
|
+
</div>
|
|
285
|
+
<h3 style="margin: 0 0 8px 0; color: #1f2937; font-size: 24px; font-weight: 700;">
|
|
286
|
+
Premium Features
|
|
287
|
+
</h3>
|
|
288
|
+
<p style="margin: 0; color: #6b7280; font-size: 16px;">
|
|
289
|
+
Everything you need to succeed
|
|
290
|
+
</p>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
<div style="space-y: 16px;">
|
|
294
|
+
<div style="display: flex; align-items: start; gap: 12px; margin-bottom: 16px;">
|
|
295
|
+
<div style="width: 24px; height: 24px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;">
|
|
296
|
+
<span style="color: white; font-size: 12px; font-weight: bold;">✓</span>
|
|
297
|
+
</div>
|
|
298
|
+
<div>
|
|
299
|
+
<h4 style="margin: 0 0 4px 0; color: #374151; font-size: 16px; font-weight: 600;">Container Query Responsive</h4>
|
|
300
|
+
<p style="margin: 0; color: #6b7280; font-size: 14px; line-height: 1.5;">Adapts to container size, not viewport</p>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<div style="display: flex; align-items: start; gap: 12px; margin-bottom: 16px;">
|
|
305
|
+
<div style="width: 24px; height: 24px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;">
|
|
306
|
+
<span style="color: white; font-size: 12px; font-weight: bold;">✓</span>
|
|
307
|
+
</div>
|
|
308
|
+
<div>
|
|
309
|
+
<h4 style="margin: 0 0 4px 0; color: #374151; font-size: 16px; font-weight: 600;">Semantic HTML Support</h4>
|
|
310
|
+
<p style="margin: 0; color: #6b7280; font-size: 14px; line-height: 1.5;">Choose from 8 semantic HTML tags</p>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div style="display: flex; align-items: start; gap: 12px;">
|
|
315
|
+
<div style="width: 24px; height: 24px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;">
|
|
316
|
+
<span style="color: white; font-size: 12px; font-weight: bold;">✓</span>
|
|
317
|
+
</div>
|
|
318
|
+
<div>
|
|
319
|
+
<h4 style="margin: 0 0 4px 0; color: #374151; font-size: 16px; font-weight: 600;">Flexible Content Slots</h4>
|
|
320
|
+
<p style="margin: 0; color: #6b7280; font-size: 14px; line-height: 1.5;">Named slots for organized content</p>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
</template>
|
|
326
|
+
<template #col2>
|
|
327
|
+
<div style="padding: 32px; background: white; border-radius: 16px; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);">
|
|
328
|
+
<h3 style="margin: 0 0 20px 0; color: #1f2937; font-size: 22px; font-weight: 600;">
|
|
329
|
+
💡 How It Works
|
|
330
|
+
</h3>
|
|
331
|
+
|
|
332
|
+
<div style="margin-bottom: 24px; padding: 20px; background: #f8fafc; border-radius: 12px; border: 2px solid #e2e8f0;">
|
|
333
|
+
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 12px;">
|
|
334
|
+
<div style="width: 32px; height: 32px; background: #3b82f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold;">1</div>
|
|
335
|
+
<h4 style="margin: 0; color: #374151; font-size: 16px; font-weight: 600;">Mobile First</h4>
|
|
336
|
+
</div>
|
|
337
|
+
<p style="margin: 0; color: #64748b; font-size: 14px; line-height: 1.5;">
|
|
338
|
+
Content stacks vertically in a single column layout on smaller containers
|
|
339
|
+
</p>
|
|
340
|
+
</div>
|
|
341
|
+
|
|
342
|
+
<div style="margin-bottom: 24px; padding: 20px; background: #f0fdf4; border-radius: 12px; border: 2px solid #bbf7d0;">
|
|
343
|
+
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 12px;">
|
|
344
|
+
<div style="width: 32px; height: 32px; background: #10b981; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold;">2</div>
|
|
345
|
+
<h4 style="margin: 0; color: #374151; font-size: 16px; font-weight: 600;">Desktop Responsive</h4>
|
|
346
|
+
</div>
|
|
347
|
+
<p style="margin: 0; color: #059669; font-size: 14px; line-height: 1.5;">
|
|
348
|
+
Automatically switches to two-column grid when container reaches 1064px
|
|
349
|
+
</p>
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
<div style="padding: 16px; background: #fffbeb; border-radius: 8px; border-left: 4px solid #f59e0b;">
|
|
353
|
+
<p style="margin: 0; color: #92400e; font-size: 14px; line-height: 1.5; font-weight: 500;">
|
|
354
|
+
🎯 Perfect for dashboards, content layouts, and component libraries where context matters more than screen size.
|
|
355
|
+
</p>
|
|
356
|
+
</div>
|
|
357
|
+
</div>
|
|
358
|
+
</template>
|
|
359
|
+
</TwoColumnsComponent>
|
|
360
|
+
</div>
|
|
361
|
+
`,
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
export const FeatureShowcase = FeatureTemplate.bind({});
|
|
365
|
+
FeatureShowcase.args = {};
|
|
366
|
+
FeatureShowcase.parameters = {
|
|
367
|
+
docs: {
|
|
368
|
+
description: {
|
|
369
|
+
story:
|
|
370
|
+
"Feature showcase demonstrating the key capabilities and benefits of the TwoColumns component with visual examples.",
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
// ===== SINGLE COLUMN DEMONSTRATION =====
|
|
376
|
+
|
|
377
|
+
const SingleColumnTemplate: StoryFn<TwoColumnsArgs> = (args) => ({
|
|
378
|
+
components: { TwoColumnsComponent },
|
|
379
|
+
setup() {
|
|
380
|
+
return { args };
|
|
381
|
+
},
|
|
382
|
+
template: `
|
|
383
|
+
<div style="background: #f3f4f6; padding: 20px;">
|
|
384
|
+
<div style="margin-bottom: 24px; text-align: center;">
|
|
385
|
+
<h2 style="margin: 0 0 8px 0; color: #374151; font-size: 24px;">Single Column Content</h2>
|
|
386
|
+
<p style="margin: 0; color: #6b7280;">Only one slot provided - layout adapts accordingly</p>
|
|
387
|
+
</div>
|
|
388
|
+
|
|
389
|
+
<TwoColumnsComponent
|
|
390
|
+
:data-testid="args.dataTestid"
|
|
391
|
+
:tag="args.tag"
|
|
392
|
+
:style-class-passthrough="args.styleClassPassthrough"
|
|
393
|
+
>
|
|
394
|
+
<template #col1>
|
|
395
|
+
<div style="padding: 32px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);">
|
|
396
|
+
<h3 style="margin: 0 0 16px 0; color: #7c3aed; font-size: 22px; font-weight: 600;">
|
|
397
|
+
🎨 Creative Content Block
|
|
398
|
+
</h3>
|
|
399
|
+
<p style="margin: 0 0 20px 0; color: #374151; line-height: 1.7; font-size: 16px;">
|
|
400
|
+
When only one column is provided, the component gracefully handles the single-column layout.
|
|
401
|
+
This demonstrates the component's flexibility in handling partial content scenarios.
|
|
402
|
+
</p>
|
|
403
|
+
|
|
404
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0;">
|
|
405
|
+
<div style="padding: 16px; background: #fef3c7; border-radius: 8px; text-align: center;">
|
|
406
|
+
<div style="font-size: 24px; margin-bottom: 8px;">📱</div>
|
|
407
|
+
<h4 style="margin: 0 0 4px 0; color: #92400e; font-size: 14px; font-weight: 600;">Mobile</h4>
|
|
408
|
+
<p style="margin: 0; color: #b45309; font-size: 12px;">Single column</p>
|
|
409
|
+
</div>
|
|
410
|
+
<div style="padding: 16px; background: #dbeafe; border-radius: 8px; text-align: center;">
|
|
411
|
+
<div style="font-size: 24px; margin-bottom: 8px;">💻</div>
|
|
412
|
+
<h4 style="margin: 0 0 4px 0; color: #1e40af; font-size: 14px; font-weight: 600;">Desktop</h4>
|
|
413
|
+
<p style="margin: 0; color: #1e40af; font-size: 12px;">Still single column</p>
|
|
414
|
+
</div>
|
|
415
|
+
</div>
|
|
416
|
+
|
|
417
|
+
<div style="padding: 20px; background: #f0fdf4; border-radius: 10px; border-left: 4px solid #10b981;">
|
|
418
|
+
<h4 style="margin: 0 0 8px 0; color: #059669; font-size: 16px;">Flexible Architecture</h4>
|
|
419
|
+
<p style="margin: 0; color: #065f46; line-height: 1.5;">
|
|
420
|
+
The component only renders columns that have content, making it perfect for dynamic
|
|
421
|
+
content scenarios where you might not always have content for both columns.
|
|
422
|
+
</p>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
</template>
|
|
426
|
+
<!-- col2 intentionally left empty -->
|
|
427
|
+
</TwoColumnsComponent>
|
|
428
|
+
</div>
|
|
429
|
+
`,
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
export const SingleColumn = SingleColumnTemplate.bind({});
|
|
433
|
+
SingleColumn.args = {};
|
|
434
|
+
SingleColumn.parameters = {
|
|
435
|
+
docs: {
|
|
436
|
+
description: {
|
|
437
|
+
story:
|
|
438
|
+
"Demonstrates the component's behavior when only one column has content - shows the graceful handling of partial content scenarios.",
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
// ===== RESPONSIVE DEMONSTRATION =====
|
|
444
|
+
|
|
445
|
+
const ResponsiveTemplate: StoryFn = () => ({
|
|
446
|
+
components: { TwoColumnsComponent },
|
|
447
|
+
template: `
|
|
448
|
+
<div style="background: #f8fafc; padding: 20px;">
|
|
449
|
+
<div style="margin-bottom: 40px; text-align: center;">
|
|
450
|
+
<h2 style="margin: 0 0 16px 0; color: #374151; font-size: 28px;">
|
|
451
|
+
🔄 Responsive Behavior Demo
|
|
452
|
+
</h2>
|
|
453
|
+
<p style="margin: 0 0 32px 0; color: #6b7280; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6;">
|
|
454
|
+
Resize your browser to see how the layout responds to container width changes.
|
|
455
|
+
The breakpoint is at 1064px container width, not viewport width.
|
|
456
|
+
</p>
|
|
457
|
+
</div>
|
|
458
|
+
|
|
459
|
+
<!-- Small container demonstration -->
|
|
460
|
+
<div style="margin-bottom: 40px;">
|
|
461
|
+
<h3 style="margin: 0 0 16px 0; color: #374151;">📱 Narrow Container (< 1064px)</h3>
|
|
462
|
+
<div style="max-width: 800px; border: 2px dashed #cbd5e1; padding: 20px; margin-bottom: 20px;">
|
|
463
|
+
<TwoColumnsComponent tag="div">
|
|
464
|
+
<template #col1>
|
|
465
|
+
<div style="padding: 20px; background: #fef3c7; border-radius: 8px; margin-bottom: 16px;">
|
|
466
|
+
<h4 style="margin: 0 0 8px 0; color: #92400e; font-size: 16px;">Column 1</h4>
|
|
467
|
+
<p style="margin: 0; color: #b45309; font-size: 14px;">Stacked vertically</p>
|
|
468
|
+
</div>
|
|
469
|
+
</template>
|
|
470
|
+
<template #col2>
|
|
471
|
+
<div style="padding: 20px; background: #fecaca; border-radius: 8px;">
|
|
472
|
+
<h4 style="margin: 0 0 8px 0; color: #dc2626; font-size: 16px;">Column 2</h4>
|
|
473
|
+
<p style="margin: 0; color: #b91c1c; font-size: 14px;">Appears below Column 1</p>
|
|
474
|
+
</div>
|
|
475
|
+
</template>
|
|
476
|
+
</TwoColumnsComponent>
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
|
|
480
|
+
<!-- Large container demonstration -->
|
|
481
|
+
<div style="margin-bottom: 40px;">
|
|
482
|
+
<h3 style="margin: 0 0 16px 0; color: #374151;">🖥️ Wide Container (≥ 1064px)</h3>
|
|
483
|
+
<div style="border: 2px dashed #cbd5e1; padding: 20px;">
|
|
484
|
+
<TwoColumnsComponent tag="div">
|
|
485
|
+
<template #col1>
|
|
486
|
+
<div style="padding: 20px; background: #dcfce7; border-radius: 8px;">
|
|
487
|
+
<h4 style="margin: 0 0 8px 0; color: #166534; font-size: 16px;">Column 1</h4>
|
|
488
|
+
<p style="margin: 0; color: #15803d; font-size: 14px;">Side-by-side layout</p>
|
|
489
|
+
</div>
|
|
490
|
+
</template>
|
|
491
|
+
<template #col2>
|
|
492
|
+
<div style="padding: 20px; background: #ddd6fe; border-radius: 8px;">
|
|
493
|
+
<h4 style="margin: 0 0 8px 0; color: #7c3aed; font-size: 16px;">Column 2</h4>
|
|
494
|
+
<p style="margin: 0; color: #6d28d9; font-size: 14px;">Equal width columns with 32px gap</p>
|
|
495
|
+
</div>
|
|
496
|
+
</template>
|
|
497
|
+
</TwoColumnsComponent>
|
|
498
|
+
</div>
|
|
499
|
+
</div>
|
|
500
|
+
|
|
501
|
+
<!-- Technical explanation -->
|
|
502
|
+
<TwoColumnsComponent tag="section">
|
|
503
|
+
<template #col1>
|
|
504
|
+
<div style="padding: 24px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);">
|
|
505
|
+
<h3 style="margin: 0 0 16px 0; color: #374151; font-size: 20px; font-weight: 600;">⚙️ How It Works</h3>
|
|
506
|
+
<div style="space-y: 16px;">
|
|
507
|
+
<div style="padding: 16px; background: #f1f5f9; border-radius: 8px; border-left: 4px solid #3b82f6; margin-bottom: 16px;">
|
|
508
|
+
<h4 style="margin: 0 0 8px 0; color: #1e40af; font-size: 14px; font-weight: 600;">Container Queries</h4>
|
|
509
|
+
<p style="margin: 0; color: #475569; font-size: 14px; line-height: 1.5;">
|
|
510
|
+
Uses <code>@container</code> to respond to the component's width, not the browser viewport.
|
|
511
|
+
</p>
|
|
512
|
+
</div>
|
|
513
|
+
|
|
514
|
+
<div style="padding: 16px; background: #f0fdf4; border-radius: 8px; border-left: 4px solid #22c55e; margin-bottom: 16px;">
|
|
515
|
+
<h4 style="margin: 0 0 8px 0; color: #15803d; font-size: 14px; font-weight: 600;">CSS Grid Layout</h4>
|
|
516
|
+
<p style="margin: 0; color: #166534; font-size: 14px; line-height: 1.5;">
|
|
517
|
+
Switches from <code>grid-auto-flow: row</code> to <code>grid-template-columns: repeat(2, 1fr)</code>
|
|
518
|
+
</p>
|
|
519
|
+
</div>
|
|
520
|
+
|
|
521
|
+
<div style="padding: 16px; background: #fefce8; border-radius: 8px; border-left: 4px solid #eab308;">
|
|
522
|
+
<h4 style="margin: 0 0 8px 0; color: #a16207; font-size: 14px; font-weight: 600;">1064px Breakpoint</h4>
|
|
523
|
+
<p style="margin: 0; color: #92400e; font-size: 14px; line-height: 1.5;">
|
|
524
|
+
Optimal width for two-column layouts with comfortable reading experience.
|
|
525
|
+
</p>
|
|
526
|
+
</div>
|
|
527
|
+
</div>
|
|
528
|
+
</div>
|
|
529
|
+
</template>
|
|
530
|
+
<template #col2>
|
|
531
|
+
<div style="padding: 24px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);">
|
|
532
|
+
<h3 style="margin: 0 0 16px 0; color: #374151; font-size: 20px; font-weight: 600;">📊 Benefits</h3>
|
|
533
|
+
<ul style="margin: 0; color: #374151; line-height: 1.7; padding-left: 20px;">
|
|
534
|
+
<li><strong>Component Reusability:</strong> Works in any container context</li>
|
|
535
|
+
<li><strong>Performance:</strong> No JavaScript required for responsive behavior</li>
|
|
536
|
+
<li><strong>Maintainability:</strong> Self-contained responsive logic</li>
|
|
537
|
+
<li><strong>User Experience:</strong> Smooth, predictable layout transitions</li>
|
|
538
|
+
</ul>
|
|
539
|
+
|
|
540
|
+
<div style="padding: 20px; background: #fef7ff; border-radius: 10px; margin-top: 20px; border-left: 4px solid #a855f7;">
|
|
541
|
+
<p style="margin: 0; color: #7c3aed; font-size: 14px; line-height: 1.6; font-weight: 500;">
|
|
542
|
+
💡 <strong>Pro Tip:</strong> Container queries make this component truly modular - it behaves
|
|
543
|
+
consistently whether it's in a sidebar, main content area, or modal dialog.
|
|
544
|
+
</p>
|
|
545
|
+
</div>
|
|
546
|
+
</div>
|
|
547
|
+
</template>
|
|
548
|
+
</TwoColumnsComponent>
|
|
549
|
+
</div>
|
|
550
|
+
`,
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
export const ResponsiveBehavior = ResponsiveTemplate.bind({});
|
|
554
|
+
ResponsiveBehavior.parameters = {
|
|
555
|
+
docs: {
|
|
556
|
+
description: {
|
|
557
|
+
story:
|
|
558
|
+
"Interactive demonstration showing how the TwoColumns component responds to different container widths using CSS Container Queries. The layout switches from single-column to two-column at 1064px container width.",
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
:id
|
|
5
|
+
class="content-container-wrapper"
|
|
6
|
+
:class="elementClasses"
|
|
7
|
+
:tab-index="isLandmark ? 0 : null"
|
|
8
|
+
:aria-label="isLandmark ? 'Content Container Landmark' : undefined"
|
|
9
|
+
>
|
|
10
|
+
<div class="content-container">
|
|
11
|
+
<div class="content-container-inner" :data-testid="dataTestid">
|
|
12
|
+
<slot name="default"></slot>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</component>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
dataTestid: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "content-container",
|
|
23
|
+
},
|
|
24
|
+
tag: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "div",
|
|
27
|
+
validator(value: string) {
|
|
28
|
+
return ["div", "section", "article", "aside", "header", "footer", "main", "nav", "ul", "ol"].includes(value);
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
id: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: null,
|
|
34
|
+
},
|
|
35
|
+
styleClassPassthrough: {
|
|
36
|
+
type: [String, Array] as PropType<string | string[]>,
|
|
37
|
+
default: () => [],
|
|
38
|
+
},
|
|
39
|
+
isLandmark: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style lang="css">
|
|
49
|
+
@layer components {
|
|
50
|
+
.content-container-wrapper {
|
|
51
|
+
container-type: inline-size;
|
|
52
|
+
container-name: content-container;
|
|
53
|
+
|
|
54
|
+
.content-container {
|
|
55
|
+
--gutter: 16px;
|
|
56
|
+
--content-max-width: auto;
|
|
57
|
+
--justify-content: initial;
|
|
58
|
+
|
|
59
|
+
display: grid;
|
|
60
|
+
|
|
61
|
+
grid-template-columns:
|
|
62
|
+
[gutter-start]
|
|
63
|
+
var(--gutter)
|
|
64
|
+
[content-start]
|
|
65
|
+
var(--content-max-width)
|
|
66
|
+
[content-end]
|
|
67
|
+
var(--gutter)
|
|
68
|
+
[gutter-end];
|
|
69
|
+
|
|
70
|
+
justify-content: var(--justify-content);
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
|
|
73
|
+
@container content-container (width >= 1092px) {
|
|
74
|
+
--gutter: 0;
|
|
75
|
+
--content-max-width: 1064px;
|
|
76
|
+
--justify-content: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.content-container-inner {
|
|
80
|
+
grid-column: content;
|
|
81
|
+
|
|
82
|
+
@container content-container (width >= 1092px) {
|
|
83
|
+
grid-column: gutter;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</style>
|