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,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div
|
|
4
|
+
class="input-select-with-label"
|
|
5
|
+
:class="[inputVariant, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
|
|
6
|
+
:data-testid
|
|
7
|
+
:data-theme="theme"
|
|
8
|
+
:data-invalid="fieldHasError ? '' : null"
|
|
9
|
+
>
|
|
10
|
+
<InputLabel
|
|
11
|
+
:id
|
|
12
|
+
:for="id"
|
|
13
|
+
:theme
|
|
14
|
+
:name
|
|
15
|
+
:input-variant
|
|
16
|
+
:field-has-error
|
|
17
|
+
:style-class-passthrough="['input-select-label']"
|
|
18
|
+
>
|
|
19
|
+
<template #textLabel>{{ label }}</template>
|
|
20
|
+
</InputLabel>
|
|
21
|
+
|
|
22
|
+
<InputDescription
|
|
23
|
+
:id
|
|
24
|
+
:description-id
|
|
25
|
+
:name
|
|
26
|
+
:field-has-error="fieldHasError"
|
|
27
|
+
:style-class-passthrough="['input-text-description']"
|
|
28
|
+
>
|
|
29
|
+
<template #descriptionHtml>
|
|
30
|
+
<slot name="descriptionHtml"></slot>
|
|
31
|
+
</template>
|
|
32
|
+
<template #descriptionText>
|
|
33
|
+
<slot name="descriptionText"></slot>
|
|
34
|
+
</template>
|
|
35
|
+
</InputDescription>
|
|
36
|
+
|
|
37
|
+
<InputSelectCore
|
|
38
|
+
:id
|
|
39
|
+
v-model="modelValue"
|
|
40
|
+
v-model:field-data="fieldData"
|
|
41
|
+
v-model:is-dirty="isDirty"
|
|
42
|
+
v-model:is-active="isActive"
|
|
43
|
+
:name
|
|
44
|
+
:placeholder
|
|
45
|
+
:field-has-error
|
|
46
|
+
:required
|
|
47
|
+
:style-class-passthrough
|
|
48
|
+
:theme="FormUiTheme"
|
|
49
|
+
:aria-describedby
|
|
50
|
+
:input-variant
|
|
51
|
+
/>
|
|
52
|
+
|
|
53
|
+
<InputError
|
|
54
|
+
:id="errorId"
|
|
55
|
+
:error-message="errorMessage"
|
|
56
|
+
:show-error="fieldHasError"
|
|
57
|
+
:is-detached="false"
|
|
58
|
+
:input-variant
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
<InputDescription
|
|
62
|
+
v-if="inputVariant === 'outlined'"
|
|
63
|
+
:id
|
|
64
|
+
:name
|
|
65
|
+
:input-variant
|
|
66
|
+
:field-has-error="fieldHasError"
|
|
67
|
+
:style-class-passthrough="['input-text-description']"
|
|
68
|
+
>
|
|
69
|
+
<template v-if="slots.descriptionHtml" #descriptionHtml>
|
|
70
|
+
<slot name="descriptionHtml"></slot>
|
|
71
|
+
</template>
|
|
72
|
+
<template v-if="slots.descriptionText" #descriptionText>
|
|
73
|
+
<slot name="descriptionText"></slot>
|
|
74
|
+
</template>
|
|
75
|
+
</InputDescription>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script setup lang="ts">
|
|
80
|
+
import type { FormUiTheme, InputUiVariant, IFormMultipleOptions } from "~/types/forms/types.forms";
|
|
81
|
+
|
|
82
|
+
interface Props {
|
|
83
|
+
dataTestid?: string;
|
|
84
|
+
name: string;
|
|
85
|
+
label: string;
|
|
86
|
+
placeholder?: string;
|
|
87
|
+
errorMessage: object | string;
|
|
88
|
+
required?: boolean;
|
|
89
|
+
fieldHasError?: boolean;
|
|
90
|
+
styleClassPassthrough?: string | string[];
|
|
91
|
+
theme?: FormUiTheme;
|
|
92
|
+
inputVariant?: InputUiVariant;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
96
|
+
dataTestid: "input-select-with-label",
|
|
97
|
+
placeholder: "",
|
|
98
|
+
required: false,
|
|
99
|
+
fieldHasError: false,
|
|
100
|
+
styleClassPassthrough: () => [],
|
|
101
|
+
theme: "default",
|
|
102
|
+
inputVariant: "normal",
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const slots = useSlots();
|
|
106
|
+
|
|
107
|
+
const FormUiTheme = computed(() => {
|
|
108
|
+
return props.fieldHasError ? "error" : props.theme;
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
const { id, errorId, descriptionId, ariaDescribedby } = useAriaDescribedById(
|
|
112
|
+
props.name,
|
|
113
|
+
toRef(props, "fieldHasError"),
|
|
114
|
+
slots
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
const modelValue = defineModel<string | number | readonly number[]>({ required: true });
|
|
118
|
+
const isDirty = defineModel<boolean>("isDirty");
|
|
119
|
+
const isActive = defineModel<boolean>("isActive");
|
|
120
|
+
const fieldData = defineModel<IFormMultipleOptions>("fieldData");
|
|
121
|
+
</script>
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="input-text-wrapper"
|
|
4
|
+
data-testid="input-text-wrapper"
|
|
5
|
+
:data-theme="theme"
|
|
6
|
+
:data-invalid="fieldHasError ? '' : null"
|
|
7
|
+
:data-inputmode="inputmode"
|
|
8
|
+
:class="[
|
|
9
|
+
inputVariant,
|
|
10
|
+
{ dirty: isDirty },
|
|
11
|
+
{ active: isActive },
|
|
12
|
+
{ error: fieldHasError },
|
|
13
|
+
{ 'has-left-slot': slots.left },
|
|
14
|
+
{ 'has-right-slot': slots.right },
|
|
15
|
+
]"
|
|
16
|
+
>
|
|
17
|
+
<div v-if="slots.left" class="slot left-slot">
|
|
18
|
+
<slot name="left"></slot>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<input
|
|
22
|
+
:id
|
|
23
|
+
ref="inputField"
|
|
24
|
+
v-model="modelValue"
|
|
25
|
+
:type
|
|
26
|
+
:placeholder
|
|
27
|
+
:name
|
|
28
|
+
:required
|
|
29
|
+
:maxlength
|
|
30
|
+
:class="['input-text-core', elementClasses, { dirty: isDirty }, { active: isActive }]"
|
|
31
|
+
:aria-invalid="fieldHasError ? 'true' : undefined"
|
|
32
|
+
:aria-describedby
|
|
33
|
+
:pattern="inputPattern"
|
|
34
|
+
:inputmode
|
|
35
|
+
@focusin="updateFocus(true)"
|
|
36
|
+
@focusout="updateFocus(false)"
|
|
37
|
+
/>
|
|
38
|
+
|
|
39
|
+
<div v-if="slots.right" class="slot right-slot">
|
|
40
|
+
<slot name="right"></slot>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script setup lang="ts">
|
|
46
|
+
import type { InputTypesText, FormUiTheme, InputUiVariant, InputMode } from "~/types/forms/types.forms";
|
|
47
|
+
|
|
48
|
+
interface Props {
|
|
49
|
+
type?: InputTypesText;
|
|
50
|
+
inputmode?: InputMode;
|
|
51
|
+
maxlength?: number;
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
required?: boolean;
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
fieldHasError?: boolean;
|
|
57
|
+
styleClassPassthrough?: string | string[];
|
|
58
|
+
theme?: FormUiTheme;
|
|
59
|
+
ariaDescribedby?: string;
|
|
60
|
+
inputVariant?: InputUiVariant;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
64
|
+
type: "text",
|
|
65
|
+
inputmode: "text",
|
|
66
|
+
maxlength: 255,
|
|
67
|
+
required: false,
|
|
68
|
+
placeholder: "",
|
|
69
|
+
fieldHasError: false,
|
|
70
|
+
styleClassPassthrough: () => [],
|
|
71
|
+
theme: "default",
|
|
72
|
+
ariaDescribedby: "",
|
|
73
|
+
inputVariant: "normal",
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const slots = useSlots();
|
|
77
|
+
|
|
78
|
+
const FormUiTheme = computed(() => {
|
|
79
|
+
return props.fieldHasError ? "error" : props.theme;
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const modelValue = defineModel<string>();
|
|
83
|
+
const isDirty = defineModel<boolean>("isDirty");
|
|
84
|
+
const isActive = defineModel<boolean>("isActive");
|
|
85
|
+
|
|
86
|
+
const inputPattern = computed(() => {
|
|
87
|
+
return props.inputmode === "numeric" ? "[0-9]+" : undefined;
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const updateFocus = (isFocused: boolean) => {
|
|
91
|
+
isActive.value = isFocused;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const inputField = ref<HTMLInputElement | null>(null);
|
|
95
|
+
|
|
96
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
97
|
+
|
|
98
|
+
// TODO: Move this to a utility function to allow removeEventListener on unmounted
|
|
99
|
+
// Leaving like this could lead to memory leaks
|
|
100
|
+
const validateInput = () => {
|
|
101
|
+
if (inputField.value !== null) {
|
|
102
|
+
inputField.value.addEventListener("beforeinput", (event: InputEvent) => {
|
|
103
|
+
const beforeValue = modelValue.value;
|
|
104
|
+
if (event.data === null) {
|
|
105
|
+
// Handle deletion case
|
|
106
|
+
return;
|
|
107
|
+
} else if (event.target) {
|
|
108
|
+
event.target.addEventListener(
|
|
109
|
+
"input",
|
|
110
|
+
() => {
|
|
111
|
+
if (inputField.value !== null && inputField.value.validity.patternMismatch) {
|
|
112
|
+
inputField.value.value = beforeValue as string;
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{ once: true }
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
onMounted(() => {
|
|
123
|
+
if (props.inputmode === "numeric") validateInput();
|
|
124
|
+
});
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<style lang="css">
|
|
128
|
+
@layer components {
|
|
129
|
+
.input-text-wrapper {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: var(--input-icon-slot-gap);
|
|
133
|
+
background-color: var(--theme-input-surface);
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
transition: all var(--theme-form-transition-duration) ease-in-out;
|
|
136
|
+
|
|
137
|
+
z-index: 2;
|
|
138
|
+
position: relative;
|
|
139
|
+
|
|
140
|
+
&.normal {
|
|
141
|
+
border: var(--form-element-border-width) solid var(--theme-input-border);
|
|
142
|
+
border-radius: var(--form-input-border-radius);
|
|
143
|
+
outline: var(--form-element-outline-width) solid var(--theme-input-outline);
|
|
144
|
+
|
|
145
|
+
padding-inline: var(--input-padding-inline);
|
|
146
|
+
|
|
147
|
+
&:has(input:is(:hover)) {
|
|
148
|
+
outline: var(--form-element-outline-width-focus) solid var(--theme-input-outline-focus);
|
|
149
|
+
outline-offset: var(--form-element-outline-offset-focus);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:has(input:focus-visible) {
|
|
153
|
+
outline: var(--form-element-outline-width-focus) solid var(--theme-input-outline-focus);
|
|
154
|
+
outline-offset: var(--form-element-outline-offset-focus);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.underlined {
|
|
159
|
+
border-bottom: var(--form-element-border-bottom-width-underlined) solid var(--theme-input-border);
|
|
160
|
+
padding-inline: var(--input-padding-inline);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.has-right-slot:has(.input-button-core) {
|
|
164
|
+
padding-inline-end: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.slot {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
box-sizing: content-box;
|
|
172
|
+
|
|
173
|
+
.input-button-core {
|
|
174
|
+
background-color: var(--theme-input-surface);
|
|
175
|
+
aspect-ratio: 1;
|
|
176
|
+
border-radius: 0;
|
|
177
|
+
width: var(--input-min-height);
|
|
178
|
+
|
|
179
|
+
&:hover {
|
|
180
|
+
background-color: var(--theme-input-surface-hover);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&:is(:focus-visible) {
|
|
184
|
+
outline: var(--form-element-outline-width-focus) solid var(--theme-input-outline-focus);
|
|
185
|
+
outline-offset: -4px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.icon-only {
|
|
189
|
+
.btn-icon {
|
|
190
|
+
margin: 0;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.input-text-core {
|
|
197
|
+
all: unset;
|
|
198
|
+
touch-action: manipulation;
|
|
199
|
+
flex-grow: 1;
|
|
200
|
+
|
|
201
|
+
color: var(--theme-input-text-color-normal);
|
|
202
|
+
font-family: var(--font-family);
|
|
203
|
+
font-size: var(--input-font-size);
|
|
204
|
+
|
|
205
|
+
/* line-height: var(--input-element-line-height); */
|
|
206
|
+
|
|
207
|
+
padding-block: var(--input-padding-block);
|
|
208
|
+
padding-inline: var(--input-padding-inline);
|
|
209
|
+
/* height: stretch; */
|
|
210
|
+
min-height: var(--input-min-height);
|
|
211
|
+
|
|
212
|
+
&::placeholder {
|
|
213
|
+
color: var(--theme-input-placeholder);
|
|
214
|
+
font-size: var(--theme-input-placeholder-font-size);
|
|
215
|
+
font-style: italic;
|
|
216
|
+
line-height: 1;
|
|
217
|
+
font-weight: normal;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
</style>
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@nuxtjs/storybook";
|
|
2
|
+
import StorybookComponent from "../variants/InputPasswordWithLabel.vue";
|
|
3
|
+
import type { FormUiTheme, InputUiVariant } from "~/types/forms/types.forms.d";
|
|
4
|
+
|
|
5
|
+
interface InputPasswordWithLabelStoryArgs {
|
|
6
|
+
modelValue: string;
|
|
7
|
+
maxlength: number;
|
|
8
|
+
name: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
label: string;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
fieldHasError: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
theme: FormUiTheme;
|
|
15
|
+
InputUiVariant: InputUiVariant;
|
|
16
|
+
styleClassPassthrough: string[];
|
|
17
|
+
useDescriptionSlot: boolean;
|
|
18
|
+
useDescriptionHtmlSlot: boolean;
|
|
19
|
+
descriptionContent: string;
|
|
20
|
+
descriptionHtmlContent: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
title: "Components/Forms/Input Text/InputPasswordWithLabel",
|
|
25
|
+
component: StorybookComponent,
|
|
26
|
+
argTypes: {
|
|
27
|
+
// Model
|
|
28
|
+
modelValue: {
|
|
29
|
+
control: "text",
|
|
30
|
+
description: "The password value",
|
|
31
|
+
table: {
|
|
32
|
+
category: "Model",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
// Basic Configuration
|
|
37
|
+
maxlength: {
|
|
38
|
+
control: { type: "number", min: 1, max: 1000 },
|
|
39
|
+
description: "Maximum length of password",
|
|
40
|
+
table: {
|
|
41
|
+
category: "Basic",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
name: {
|
|
45
|
+
control: "text",
|
|
46
|
+
description: "Input name attribute",
|
|
47
|
+
table: {
|
|
48
|
+
category: "Basic",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
placeholder: {
|
|
52
|
+
control: "text",
|
|
53
|
+
description: "Placeholder text",
|
|
54
|
+
table: {
|
|
55
|
+
category: "Basic",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
label: {
|
|
59
|
+
control: "text",
|
|
60
|
+
description: "Input label",
|
|
61
|
+
table: {
|
|
62
|
+
category: "Basic",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
// Validation
|
|
67
|
+
errorMessage: {
|
|
68
|
+
control: "text",
|
|
69
|
+
description: "Error message to display",
|
|
70
|
+
table: {
|
|
71
|
+
category: "Validation",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
fieldHasError: {
|
|
75
|
+
control: "boolean",
|
|
76
|
+
description: "Whether field has validation error",
|
|
77
|
+
table: {
|
|
78
|
+
category: "Validation",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
required: {
|
|
82
|
+
control: "boolean",
|
|
83
|
+
description: "Whether field is required",
|
|
84
|
+
table: {
|
|
85
|
+
category: "Validation",
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
// Styling
|
|
90
|
+
theme: {
|
|
91
|
+
control: { type: "select" },
|
|
92
|
+
options: ["primary", "secondary", "tertiary", "ghost", "error", "success", "warning"],
|
|
93
|
+
description: "Theme for styling",
|
|
94
|
+
table: {
|
|
95
|
+
category: "Styling",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
InputUiVariant: {
|
|
99
|
+
control: { type: "select" },
|
|
100
|
+
options: ["normal", "outlined", "underlined"],
|
|
101
|
+
description: "Input variant style",
|
|
102
|
+
table: {
|
|
103
|
+
category: "Styling",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
styleClassPassthrough: {
|
|
107
|
+
control: "object",
|
|
108
|
+
description: "Additional CSS classes",
|
|
109
|
+
table: {
|
|
110
|
+
category: "Styling",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
// Slots
|
|
115
|
+
useDescriptionSlot: {
|
|
116
|
+
control: "boolean",
|
|
117
|
+
description: "Use description slot",
|
|
118
|
+
table: {
|
|
119
|
+
category: "Slots",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
useDescriptionHtmlSlot: {
|
|
123
|
+
control: "boolean",
|
|
124
|
+
description: "Use description HTML slot",
|
|
125
|
+
table: {
|
|
126
|
+
category: "Slots",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
descriptionContent: {
|
|
130
|
+
control: "text",
|
|
131
|
+
description: "Content for description slot",
|
|
132
|
+
table: {
|
|
133
|
+
category: "Slots",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
descriptionHtmlContent: {
|
|
137
|
+
control: "text",
|
|
138
|
+
description: "HTML content for description slot",
|
|
139
|
+
table: {
|
|
140
|
+
category: "Slots",
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
args: {
|
|
145
|
+
modelValue: "",
|
|
146
|
+
maxlength: 255,
|
|
147
|
+
name: "password-input",
|
|
148
|
+
placeholder: "Enter your password...",
|
|
149
|
+
label: "Password",
|
|
150
|
+
errorMessage: "",
|
|
151
|
+
fieldHasError: false,
|
|
152
|
+
required: false,
|
|
153
|
+
theme: "default",
|
|
154
|
+
inputVariant: "normal",
|
|
155
|
+
styleClassPassthrough: [],
|
|
156
|
+
useDescriptionSlot: false,
|
|
157
|
+
useDescriptionHtmlSlot: false,
|
|
158
|
+
descriptionContent: "Password should be at least 8 characters long",
|
|
159
|
+
descriptionHtmlContent:
|
|
160
|
+
"Password must contain: <strong>8+ characters</strong>, <em>uppercase</em>, <em>lowercase</em>, <em>numbers</em>",
|
|
161
|
+
},
|
|
162
|
+
} as Meta<typeof StorybookComponent>;
|
|
163
|
+
|
|
164
|
+
const Template: StoryFn<InputPasswordWithLabelStoryArgs> = (args) => ({
|
|
165
|
+
components: { StorybookComponent },
|
|
166
|
+
setup() {
|
|
167
|
+
const { modelValue, ...otherArgs } = args;
|
|
168
|
+
const passwordValue = ref(modelValue);
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
passwordValue,
|
|
172
|
+
args: otherArgs,
|
|
173
|
+
descriptionContent: args.descriptionContent,
|
|
174
|
+
descriptionHtmlContent: args.descriptionHtmlContent,
|
|
175
|
+
useDescriptionSlot: args.useDescriptionSlot,
|
|
176
|
+
useDescriptionHtmlSlot: args.useDescriptionHtmlSlot,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
template: `
|
|
180
|
+
<StorybookComponent
|
|
181
|
+
v-model="passwordValue"
|
|
182
|
+
v-bind="args"
|
|
183
|
+
>
|
|
184
|
+
<template v-if="useDescriptionSlot" #description>{{ descriptionContent }}</template>
|
|
185
|
+
<template v-if="useDescriptionHtmlSlot" #descriptionHtml v-html="descriptionHtmlContent"></template>
|
|
186
|
+
</StorybookComponent>
|
|
187
|
+
<div class="mt-4 text-sm text-gray-600">
|
|
188
|
+
Current value: {{ passwordValue ? '•'.repeat(passwordValue.length) : 'Empty' }}
|
|
189
|
+
</div>
|
|
190
|
+
`,
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export const Default = Template.bind({});
|
|
194
|
+
Default.args = {};
|
|
195
|
+
|
|
196
|
+
export const WithDescription = Template.bind({});
|
|
197
|
+
WithDescription.args = {
|
|
198
|
+
useDescriptionSlot: true,
|
|
199
|
+
label: "Account Password",
|
|
200
|
+
placeholder: "Create a secure password",
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export const WithHtmlDescription = Template.bind({});
|
|
204
|
+
WithHtmlDescription.args = {
|
|
205
|
+
useDescriptionHtmlSlot: true,
|
|
206
|
+
label: "New Password",
|
|
207
|
+
placeholder: "Enter new password",
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export const Required = Template.bind({});
|
|
211
|
+
Required.args = {
|
|
212
|
+
required: true,
|
|
213
|
+
label: "Login Password",
|
|
214
|
+
placeholder: "Enter your password",
|
|
215
|
+
useDescriptionSlot: true,
|
|
216
|
+
descriptionContent: "This field is required for login",
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export const WithError = Template.bind({});
|
|
220
|
+
WithError.args = {
|
|
221
|
+
fieldHasError: true,
|
|
222
|
+
errorMessage: "Password must be at least 8 characters long",
|
|
223
|
+
theme: "error",
|
|
224
|
+
label: "Password",
|
|
225
|
+
placeholder: "Enter password",
|
|
226
|
+
modelValue: "123", // Short password to show error
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export const PasswordTooShort = Template.bind({});
|
|
230
|
+
PasswordTooShort.args = {
|
|
231
|
+
fieldHasError: true,
|
|
232
|
+
errorMessage: "Password is too weak",
|
|
233
|
+
theme: "error",
|
|
234
|
+
label: "Strong Password",
|
|
235
|
+
placeholder: "Enter a strong password",
|
|
236
|
+
modelValue: "weak",
|
|
237
|
+
useDescriptionHtmlSlot: true,
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export const Outlined = Template.bind({});
|
|
241
|
+
Outlined.args = {
|
|
242
|
+
InputUiVariant: "outlined",
|
|
243
|
+
label: "Confirm Password",
|
|
244
|
+
placeholder: "Confirm your password",
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export const Underlined = Template.bind({});
|
|
248
|
+
Underlined.args = {
|
|
249
|
+
InputUiVariant: "underlined",
|
|
250
|
+
label: "Master Password",
|
|
251
|
+
placeholder: "Enter master password",
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export const AllVariants = Template.bind({});
|
|
255
|
+
AllVariants.storyName = "All Input Variants";
|
|
256
|
+
AllVariants.render = (args) => ({
|
|
257
|
+
components: { StorybookComponent },
|
|
258
|
+
setup() {
|
|
259
|
+
const variants: InputUiVariant[] = ["normal", "outlined", "underlined"];
|
|
260
|
+
const passwordValues = reactive(
|
|
261
|
+
variants.reduce(
|
|
262
|
+
(acc, variant) => ({
|
|
263
|
+
...acc,
|
|
264
|
+
[variant]: "",
|
|
265
|
+
}),
|
|
266
|
+
{} as Record<string, string>
|
|
267
|
+
)
|
|
268
|
+
);
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
variants,
|
|
272
|
+
passwordValues,
|
|
273
|
+
args,
|
|
274
|
+
};
|
|
275
|
+
},
|
|
276
|
+
template: `
|
|
277
|
+
<div class="space-y-6">
|
|
278
|
+
<div v-for="variant in variants" :key="variant" class="space-y-2">
|
|
279
|
+
<h3 class="text-lg font-semibold capitalize">{{ variant }} Variant</h3>
|
|
280
|
+
<StorybookComponent
|
|
281
|
+
v-model="passwordValues[variant]"
|
|
282
|
+
v-bind="{ ...args, InputUiVariant: variant, label: variant + ' Password', name: variant + '-password' }"
|
|
283
|
+
/>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
`,
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
export const SecurityFeatures = Template.bind({});
|
|
290
|
+
SecurityFeatures.storyName = "Password Security Demo";
|
|
291
|
+
SecurityFeatures.render = (args) => ({
|
|
292
|
+
components: { StorybookComponent },
|
|
293
|
+
setup() {
|
|
294
|
+
const passwords = reactive({
|
|
295
|
+
weak: "123",
|
|
296
|
+
medium: "password123",
|
|
297
|
+
strong: "MyStr0ng!Pass",
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
const getStrengthColor = (password: string) => {
|
|
301
|
+
if (password.length < 6) return "error";
|
|
302
|
+
if (password.length < 10) return "warning";
|
|
303
|
+
return "success";
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
passwords,
|
|
308
|
+
getStrengthColor,
|
|
309
|
+
args,
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
template: `
|
|
313
|
+
<div class="space-y-6">
|
|
314
|
+
<div class="space-y-2">
|
|
315
|
+
<h3 class="text-lg font-semibold">Weak Password (Error State)</h3>
|
|
316
|
+
<StorybookComponent
|
|
317
|
+
v-model="passwords.weak"
|
|
318
|
+
v-bind="{ ...args, theme: getStrengthColor(passwords.weak), fieldHasError: passwords.weak.length < 6, errorMessage: 'Password too short', label: 'Weak Password', name: 'weak-password' }"
|
|
319
|
+
/>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<div class="space-y-2">
|
|
323
|
+
<h3 class="text-lg font-semibold">Medium Password (Warning State)</h3>
|
|
324
|
+
<StorybookComponent
|
|
325
|
+
v-model="passwords.medium"
|
|
326
|
+
v-bind="{ ...args, theme: getStrengthColor(passwords.medium), label: 'Medium Password', name: 'medium-password' }"
|
|
327
|
+
/>
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
<div class="space-y-2">
|
|
331
|
+
<h3 class="text-lg font-semibold">Strong Password (Success State)</h3>
|
|
332
|
+
<StorybookComponent
|
|
333
|
+
v-model="passwords.strong"
|
|
334
|
+
v-bind="{ ...args, theme: getStrengthColor(passwords.strong), label: 'Strong Password', name: 'strong-password' }"
|
|
335
|
+
/>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
`,
|
|
339
|
+
});
|