srcdev-nuxt-components 8.0.3 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -118
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-prompt-core.css +94 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_display-toast.css +5 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-components/index.css +1 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +67 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +87 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +74 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-with-label.css +14 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-description.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +143 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-toggle-switch.css +68 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/index.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/index.css +2 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +13 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_large.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_medium.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_small.css +12 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_x-small.css +11 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/index.css +23 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_default.css +62 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_error.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_info.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +64 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_success.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +63 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/index.css +7 -0
- package/app/assets/styles/main.css +2 -0
- package/app/assets/styles/setup/01.config/_basic-resets.css +9 -0
- package/app/assets/styles/setup/01.config/_head.css +33 -0
- package/app/assets/styles/setup/01.config/_normalise.css +209 -0
- package/app/assets/styles/setup/01.config/index.css +3 -0
- package/app/assets/styles/setup/02.colours/_amber.css +12 -0
- package/app/assets/styles/setup/02.colours/_blue.css +13 -0
- package/app/assets/styles/setup/02.colours/_green.css +13 -0
- package/app/assets/styles/setup/02.colours/_orange.css +12 -0
- package/app/assets/styles/setup/02.colours/_red.css +13 -0
- package/app/assets/styles/setup/02.colours/_slate.css +13 -0
- package/app/assets/styles/setup/02.colours/_sunset.css +12 -0
- package/app/assets/styles/setup/02.colours/index.css +7 -0
- package/app/assets/styles/setup/03.theming/default/_dark.css +138 -0
- package/app/assets/styles/setup/03.theming/default/_light.css +156 -0
- package/app/assets/styles/setup/03.theming/default/index.css +2 -0
- package/app/assets/styles/setup/03.theming/error/_dark.css +56 -0
- package/app/assets/styles/setup/03.theming/error/_light.css +74 -0
- package/app/assets/styles/setup/03.theming/error/index.css +2 -0
- package/app/assets/styles/setup/03.theming/index.css +4 -0
- package/app/assets/styles/setup/03.theming/success/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/success/_light.css +65 -0
- package/app/assets/styles/setup/03.theming/success/index.css +2 -0
- package/app/assets/styles/setup/03.theming/warning/_dark.css +50 -0
- package/app/assets/styles/setup/03.theming/warning/_light.css +64 -0
- package/app/assets/styles/setup/03.theming/warning/index.css +2 -0
- package/app/assets/styles/setup/04.elements/forms/00.element-defaults.css +21 -0
- package/app/assets/styles/setup/04.elements/forms/01.field-layout-container-level.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/02.typography.css +24 -0
- package/app/assets/styles/setup/04.elements/forms/03.generic-input-geometry.css +63 -0
- package/app/assets/styles/setup/04.elements/forms/04.slot-icon-system.css +14 -0
- package/app/assets/styles/setup/04.elements/forms/05.checkbox-radio-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +17 -0
- package/app/assets/styles/setup/04.elements/forms/07.validation-error-block-layout.css +9 -0
- package/app/assets/styles/setup/04.elements/forms/09.animation-motion.css +6 -0
- package/app/assets/styles/setup/04.elements/forms/index.css +9 -0
- package/app/assets/styles/setup/04.elements/index.css +1 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_font-family.css +8 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_reponsive-font-sizes.css +22 -0
- package/app/assets/styles/setup/05.typography/01.tokens/_timing-functions.css +119 -0
- package/app/assets/styles/setup/05.typography/01.tokens/index.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-article.css +30 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-card.css +45 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-body.css +146 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-heading.css +35 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-link.css +116 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-section.css +7 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-classes.css +3 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-variation-settings.css +29 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-weights.css +39 -0
- package/app/assets/styles/setup/05.typography/02.utility-classes/index.css +9 -0
- package/app/assets/styles/setup/05.typography/index.css +2 -0
- package/app/assets/styles/setup/06.utility-classes/_a11y.css +280 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_auto-rotate.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-exit-blur.css +16 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-slide-in.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/_entry-zoom-reveal.css +15 -0
- package/app/assets/styles/setup/06.utility-classes/animations/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/index.css +4 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_containers.css +96 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_flexbox.css +196 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_grid.css +266 -0
- package/app/assets/styles/setup/06.utility-classes/layout/_positioning.css +149 -0
- package/app/assets/styles/setup/06.utility-classes/layout/index.css +9 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_fluid-spacing.css +13 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_margin.css +334 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/_padding.css +308 -0
- package/app/assets/styles/setup/06.utility-classes/spacing/index.css +3 -0
- package/app/assets/styles/setup/a11y/_variables.css +8 -0
- package/app/assets/styles/setup/a11y/index.css +1 -0
- package/app/assets/styles/setup/index.css +10 -0
- package/app/components/01.atoms/animations/entry/EntryAnimation.vue +22 -0
- package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +74 -0
- package/app/components/01.atoms/glass-panel/GlassPanel.vue +52 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +42 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts +67 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/stories/EyebrowText.stories.ts +49 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +196 -0
- package/app/components/01.atoms/text-blocks/eyebrow-text/tests/__snapshots__/EyebrowText.spec.ts.snap +17 -0
- package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +101 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts +110 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-chromium-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-firefox-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-webkit-darwin.png +0 -0
- package/app/components/01.atoms/text-blocks/hero-text/stories/HeroText.stories.ts +70 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +148 -0
- package/app/components/01.atoms/text-blocks/hero-text/tests/__snapshots__/HeroText.spec.ts.snap +7 -0
- package/app/components/02.molecules/contact-section/stories/ContactSection.stories.ts +197 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.spec.ts +196 -0
- package/app/components/02.molecules/contact-section/tests/ContactSection.vue +87 -0
- package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap +119 -0
- package/app/components/02.molecules/price-list/PriceList.vue +119 -0
- package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +103 -0
- package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +192 -0
- package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +73 -0
- package/app/components/02.molecules/profile-section/ProfileSection.vue +154 -0
- package/app/components/02.molecules/profile-section/stories/ProfileSection.stories.ts +154 -0
- package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +147 -0
- package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +29 -0
- package/app/components/02.molecules/stepper-list/StepperList.vue +158 -0
- package/app/components/02.molecules/stepper-list/stories/StepperList.stories.ts +392 -0
- package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +289 -0
- package/app/components/02.molecules/stepper-list/tests/__snapshots__/StepperList.spec.ts.snap +86 -0
- package/app/components/03.organisms/colour-finder/ColourFinder.vue +1519 -0
- package/app/components/03.organisms/services/services-card/ServicesCard.vue +104 -0
- package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +39 -0
- package/app/components/03.organisms/services/services-grids/ServicesSectionGrid.vue +52 -0
- package/app/components/03.organisms/services/services-section/ServicesSection.vue +307 -0
- package/app/components/03.organisms/treatment-consultant/TreatmentConsultant.vue +2221 -0
- package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts +38 -0
- package/app/components/accordian/AccordianCore.vue +26 -21
- package/app/components/accordian/stories/AccordianCore.stories.ts +241 -0
- package/app/components/accordian/tests/AccordianCore.spec.ts +218 -0
- package/app/components/accordian/tests/__snapshots__/AccordianCore.spec.ts.snap +74 -0
- package/app/components/alert-mask/AlertMaskCore.vue +35 -33
- package/app/components/alert-mask/tests/AlertMaskCore.spec.ts +304 -0
- package/app/components/animated-svg-text/AnimatedSvgText.vue +2 -0
- package/app/components/canvas-switcher/CanvasSwitcher.vue +10 -8
- package/app/components/{carousel-basic → carousels}/CarouselBasic.vue +58 -56
- package/app/components/{carousel-basic → carousels}/CarouselFlip.vue +150 -148
- package/app/components/{carousel-basic → carousels}/CarouselInfinite.vue +2 -0
- package/app/components/carousels/stories/CarouselFlip.stories.ts +637 -0
- package/app/components/carousels/tests/CarouselFlip.spec.ts +556 -0
- package/app/components/clip-element/ClipElement.vue +2 -0
- package/app/components/clipped-panels/ClippedPanel.vue +2 -0
- package/app/components/container-glow/ContainerGlowCore.vue +119 -50
- package/app/components/container-glow/stories/ContainerGlowCore.stories.ts +337 -0
- package/app/components/content-columns/TwoColumns.vue +59 -0
- package/app/components/content-columns/stories/TwoColumns.stories.ts +561 -0
- package/app/components/content-containers/ContentContainer.vue +89 -0
- package/app/components/content-containers/stories/ContentContainer.stories.ts +465 -0
- package/app/components/content-grid/ContentGrid.vue +4 -2
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +18 -16
- package/app/components/deep-expanding-menu/DeepExpandingMenuOld.vue +28 -26
- package/app/components/display-avatar/DisplayAvatar.vue +15 -13
- package/app/components/display-avatar/stories/DisplayAvatar.stories.ts +94 -0
- package/app/components/display-banner/DisplayBanner.vue +2 -0
- package/app/components/display-card/DisplayCard.vue +16 -14
- package/app/components/display-chip/DisplayChip.vue +2 -0
- package/app/components/display-chip/stories/DisplayChip.stories.ts +346 -0
- package/app/components/display-details/DisplayDetailsCore.vue +2 -0
- package/app/components/display-dialog/DisplayDialogCore.vue +24 -17
- package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +2 -0
- package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +2 -0
- package/app/components/display-grid/DisplayGridCore.vue +4 -4
- package/app/components/display-prompt/DisplayPromptCore.vue +20 -16
- package/app/components/display-prompt/variants/DisplayPromptError.vue +6 -4
- package/app/components/display-theme-switch/DisplayThemeSwitch.vue +182 -0
- package/app/components/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +154 -0
- package/app/components/display-toast/DisplayToast.vue +63 -61
- package/app/components/display-toast/molecules/DefaultToastContent.vue +21 -45
- package/app/components/display-toast/stories/DisplayToast.stories.ts +380 -0
- package/app/components/display-tooltip/DisplayTooltip.vue +14 -9
- package/app/components/display-tooltip/DisplayTooltipDefined.vue +2 -0
- package/app/components/expanding-panel/ExpandingPanel.vue +28 -41
- package/app/components/forms/c12/prop-validators/index.ts +48 -0
- package/app/components/forms/c12/utils.ts +14 -0
- package/app/components/forms/form-errors/InputError.vue +208 -0
- package/app/components/forms/form-errors/tests/InputError.spec.ts +66 -0
- package/app/components/forms/form-fieldset/FormFieldset.vue +75 -0
- package/app/components/forms/input-button/InputButtonCore.vue +219 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts +113 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- package/app/components/forms/input-button/stories/InputButtonCore.stories.ts +304 -0
- package/app/components/forms/input-button/tests/InputButtonCore.spec.ts +269 -0
- package/app/components/forms/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +72 -0
- package/app/components/forms/input-checkbox/MultipleCheckboxes.vue +181 -0
- package/app/components/forms/input-checkbox/SingleCheckbox.vue +144 -0
- package/app/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +101 -0
- package/app/components/forms/input-checkbox/tests/data/tags.json +67 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +174 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +199 -0
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +104 -0
- package/app/components/forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +320 -0
- package/app/components/forms/input-description/InputDescription.vue +55 -0
- package/app/components/forms/input-description/tests/InputDescription.spec.ts +429 -0
- package/app/components/forms/input-label/InputLabel.vue +66 -0
- package/app/components/forms/input-label/tests/InputLabel.spec.ts +431 -0
- package/app/components/forms/input-number/InputNumberCore.vue +163 -0
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +150 -0
- package/app/components/forms/input-radio/MultipleRadiobuttons.vue +180 -0
- package/app/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +90 -0
- package/app/components/forms/input-radio/tests/data/tags.json +67 -0
- package/app/components/forms/input-range/InputRangeCore.vue +233 -0
- package/app/components/forms/input-range/variants/InputRangeDefault.vue +166 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyCore.vue +426 -0
- package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +94 -0
- package/app/components/forms/input-select/InputSelectCore.vue +171 -0
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +121 -0
- package/app/components/forms/input-text/InputTextCore.vue +222 -0
- package/app/components/forms/input-text/stories/InputPasswordWithLabel.stories.ts +339 -0
- package/app/components/forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +461 -0
- package/app/components/forms/input-text/stories/InputTextCore.stories.ts +241 -0
- package/app/components/forms/input-text/stories/InputTextWithLabel.stories.ts +293 -0
- package/app/components/forms/input-text/variants/InputPasswordWithLabel.vue +86 -0
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +203 -0
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +149 -0
- package/app/components/forms/input-textarea/InputTextareaCore.vue +151 -0
- package/app/components/forms/input-textarea/stories/InputTextareaCore.stories.ts +247 -0
- package/app/components/forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +452 -0
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +150 -0
- package/app/components/forms/pending-effect/PendingEffect.vue +101 -0
- package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +221 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchCore.stories.ts +236 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +253 -0
- package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +280 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +101 -0
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +84 -0
- package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +290 -0
- package/app/components/forms/ui/FormField.vue +81 -0
- package/app/components/forms/ui/FormWrapper.vue +37 -0
- package/app/components/glowing-border/GlowingBorder.vue +2 -0
- package/app/components/glowing-border/stories/GlowingBorder.stories.ts +141 -0
- package/app/components/image-galleries/SliderGallery.vue +100 -100
- package/app/components/layout-grids/LayoutGridA.vue +2 -0
- package/app/components/layout-grids/LayoutGridB.vue +8 -6
- package/app/components/layout-grids/stories/LayoutGridA.stories.ts +402 -0
- package/app/components/layout-grids/stories/LayoutGridB.stories.ts +420 -0
- package/app/components/layout-grids/tests/LayoutGridA.spec.ts +352 -0
- package/app/components/layout-grids/tests/LayoutGridB.spec.ts +490 -0
- package/app/components/layout-row/LayoutRow.vue +60 -54
- package/app/components/layout-row/stories/LayoutRow.stories.ts +528 -0
- package/app/components/magnetic-navigation/MagneticNavigation.vue +2 -0
- package/app/components/marquee-scroller/MarqueeScroller.vue +35 -33
- package/app/components/masonry-grid/MasonryGrid.vue +8 -6
- package/app/components/masonry-grid-ordered/MasonryGridOrdered.vue +2 -0
- package/app/components/masonry-grid-ordered/MasonryGridOrderedGridExperiment.vue +82 -87
- package/app/components/masonry-grid-ordered/stories/MasonryGridOrdered.stories.ts +354 -0
- package/app/components/masonry-grid-sorted/MasonryGridSorted.vue +2 -0
- package/app/components/parallax/SectionParallax.vue +10 -8
- package/app/components/pop-over/PopOver.vue +2 -0
- package/app/components/qr-code/CaptureQrCode.vue +2 -0
- package/app/components/qr-code/DecodeQrCode.vue +2 -0
- package/app/components/qr-code/DisplayQrCode.vue +7 -5
- package/app/components/qr-code/stories/QrCode.stories.ts +933 -0
- package/app/components/responsive-header/NavigationItems.vue +34 -23
- package/app/components/responsive-header/ResponsiveHeader.vue +163 -157
- package/app/components/rotating-carousel/RotatingCarouselImage.vue +2 -0
- package/app/components/skip-links/SkipLinks.vue +2 -0
- package/app/components/tabs/TabsCore.vue +38 -30
- package/app/components/test-storybook/TestStorybook.vue +49 -0
- package/app/components/test-storybook/stories/TestStorybook.stories.ts +28 -0
- package/app/components/ui-block-decorated/UiBlockDecorated.vue +2 -0
- package/app/components/view-timeline/WipeAwayVertical.vue +2 -0
- package/app/composables/useApiRequest.ts +25 -0
- package/app/composables/useAriaDescribedById.ts +19 -0
- package/app/composables/useColourScheme.ts +18 -0
- package/app/composables/useErrorMessages.ts +62 -0
- package/app/composables/useFormControl.ts +264 -0
- package/app/composables/useMaxChildWidth.ts +30 -0
- package/app/composables/useTabs.ts +207 -117
- package/app/composables/useZodValidation.ts +147 -0
- package/app/layouts/default.vue +605 -0
- package/app/pages/forms/examples/buttons/index.vue +285 -0
- package/app/pages/forms/examples/material/checkbox-radio-panels.vue +244 -0
- package/app/pages/forms/examples/material/cssbattle.vue +60 -0
- package/app/pages/forms/examples/material/text-fields.vue +913 -0
- package/app/pages/index.vue +122 -0
- package/app/pages/typography/hero-text.vue +97 -0
- package/app/pages/typography/index.vue +39 -0
- package/app/pages/typography/page-body.vue +171 -0
- package/app/pages/typography/page-heading.vue +76 -0
- package/app/pages/typography/page-link.vue +103 -0
- package/app/pages/ui/accordian.vue +211 -0
- package/app/pages/ui/animated-svg-text.vue +85 -0
- package/app/pages/ui/block-decorators.vue +142 -0
- package/app/pages/ui/carousel-basic.vue +292 -0
- package/app/pages/ui/carousel-flip.vue +244 -0
- package/app/pages/ui/carousel-infinite.vue +260 -0
- package/app/pages/ui/clipped-panels.vue +101 -0
- package/app/pages/ui/contact-section.vue +323 -0
- package/app/pages/ui/container-glow.vue +107 -0
- package/app/pages/ui/content-container.vue +112 -0
- package/app/pages/ui/display-avatar.vue +253 -0
- package/app/pages/ui/display-banner.vue +78 -0
- package/app/pages/ui/display-card.vue +82 -0
- package/app/pages/ui/display-chip.vue +225 -0
- package/app/pages/ui/display-details.vue +175 -0
- package/app/pages/ui/display-dialog.vue +231 -0
- package/app/pages/ui/display-prompt.vue +81 -0
- package/app/pages/ui/display-toast.vue +332 -0
- package/app/pages/ui/expanding-panel.vue +193 -0
- package/app/pages/ui/glowing-border.vue +111 -0
- package/app/pages/ui/layout-grid-a.vue +149 -0
- package/app/pages/ui/layout-grid-b.vue +132 -0
- package/app/pages/ui/layout-row.vue +139 -0
- package/app/pages/ui/magnetic-navigation.vue +50 -0
- package/app/pages/ui/marquee-scroller.vue +99 -0
- package/app/pages/ui/mask-element.vue +82 -0
- package/app/pages/ui/masonry-columns.vue +55 -0
- package/app/pages/ui/masonry-grid-ordered-experiment.vue +79 -0
- package/app/pages/ui/masonry-grid-ordered.vue +56 -0
- package/app/pages/ui/masonry-grid-sorted.vue +55 -0
- package/app/pages/ui/masonry-grid.vue +55 -0
- package/app/pages/ui/price-list.vue +65 -0
- package/app/pages/ui/profile-section.vue +96 -0
- package/app/pages/ui/qr-code/[componentName].vue +218 -0
- package/app/pages/ui/rotating-carousel.vue +154 -0
- package/app/pages/ui/section-parallax.vue +54 -0
- package/app/pages/ui/services/colour-finder.vue +43 -0
- package/app/pages/ui/services/services-cards.vue +42 -0
- package/app/pages/ui/services/services-section/[slug].vue +59 -0
- package/app/pages/ui/services/services-sections-compact.vue +64 -0
- package/app/pages/ui/services/treatment-consultant.vue +39 -0
- package/app/pages/ui/settings.vue +80 -0
- package/app/pages/ui/simple-grid.vue +66 -0
- package/app/pages/ui/slider-gallery.vue +261 -0
- package/app/pages/ui/tabs-y.vue +108 -0
- package/app/pages/ui/tabs.vue +192 -0
- package/app/pages/ui/tooltips.vue +104 -0
- package/app/pages/ui/wipe-away-vertical.vue +129 -0
- package/app/plugins/css-anchor-positioning-polyfill.client.ts +5 -0
- package/app/stores/useServicesStore.ts +37 -0
- package/app/stores/useSettingsStore.ts +35 -0
- package/app/types/components/hero-text.ts +4 -0
- package/app/types/components/index.ts +1 -0
- package/app/types/forms/types.forms.d.ts +293 -0
- package/app/types/forms/types.zodFormControl.d.ts +29 -0
- package/app/types/types.posts.ts +21 -0
- package/app/types/types.quotes.ts +12 -0
- package/app/types/types.services.ts +20 -0
- package/app/utils/colour-scheme-init.ts +17 -0
- package/nuxt.config.ts +94 -9
- package/package.json +53 -16
- package/types/components/css-anchor-polyfill.d.ts +1 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@nuxtjs/storybook";
|
|
2
|
+
import StorybookComponent from "../variants/InputTextAsNumberWithLabel.vue";
|
|
3
|
+
import type { FormUiTheme, InputUiVariant } from "~/types/forms/types.forms.d";
|
|
4
|
+
|
|
5
|
+
interface InputTextAsNumberWithLabelStoryArgs {
|
|
6
|
+
modelValue: number | undefined;
|
|
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
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
step: number;
|
|
19
|
+
styleClassPassthrough: string[];
|
|
20
|
+
useDescriptionSlot: boolean;
|
|
21
|
+
descriptionContent: string;
|
|
22
|
+
useLeftSlot: boolean;
|
|
23
|
+
useRightSlot: boolean;
|
|
24
|
+
leftSlotContent: string;
|
|
25
|
+
rightSlotContent: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
title: "Components/Forms/Input Text/InputTextAsNumberWithLabel",
|
|
30
|
+
component: StorybookComponent,
|
|
31
|
+
argTypes: {
|
|
32
|
+
// Model
|
|
33
|
+
modelValue: {
|
|
34
|
+
control: { type: "number" },
|
|
35
|
+
description: "The numeric value",
|
|
36
|
+
table: {
|
|
37
|
+
category: "Model",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
// Basic Configuration
|
|
42
|
+
maxlength: {
|
|
43
|
+
control: { type: "number", min: 1, max: 1000 },
|
|
44
|
+
description: "Maximum length of input",
|
|
45
|
+
table: {
|
|
46
|
+
category: "Basic",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
name: {
|
|
50
|
+
control: "text",
|
|
51
|
+
description: "Input name attribute",
|
|
52
|
+
table: {
|
|
53
|
+
category: "Basic",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
placeholder: {
|
|
57
|
+
control: "text",
|
|
58
|
+
description: "Placeholder text",
|
|
59
|
+
table: {
|
|
60
|
+
category: "Basic",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
label: {
|
|
64
|
+
control: "text",
|
|
65
|
+
description: "Input label",
|
|
66
|
+
table: {
|
|
67
|
+
category: "Basic",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
// Number Configuration
|
|
72
|
+
min: {
|
|
73
|
+
control: { type: "number" },
|
|
74
|
+
description: "Minimum allowed value",
|
|
75
|
+
table: {
|
|
76
|
+
category: "Number",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
max: {
|
|
80
|
+
control: { type: "number" },
|
|
81
|
+
description: "Maximum allowed value",
|
|
82
|
+
table: {
|
|
83
|
+
category: "Number",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
step: {
|
|
87
|
+
control: { type: "number", min: 0.1, step: 0.1 },
|
|
88
|
+
description: "Step increment/decrement value",
|
|
89
|
+
table: {
|
|
90
|
+
category: "Number",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
// Validation
|
|
95
|
+
errorMessage: {
|
|
96
|
+
control: "text",
|
|
97
|
+
description: "Error message to display",
|
|
98
|
+
table: {
|
|
99
|
+
category: "Validation",
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
fieldHasError: {
|
|
103
|
+
control: "boolean",
|
|
104
|
+
description: "Whether field has validation error",
|
|
105
|
+
table: {
|
|
106
|
+
category: "Validation",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
required: {
|
|
110
|
+
control: "boolean",
|
|
111
|
+
description: "Whether field is required",
|
|
112
|
+
table: {
|
|
113
|
+
category: "Validation",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
// Styling
|
|
118
|
+
theme: {
|
|
119
|
+
control: { type: "select" },
|
|
120
|
+
options: ["primary", "secondary", "tertiary", "ghost", "error", "success", "warning"],
|
|
121
|
+
description: "Theme for styling",
|
|
122
|
+
table: {
|
|
123
|
+
category: "Styling",
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
InputUiVariant: {
|
|
127
|
+
control: { type: "select" },
|
|
128
|
+
options: ["normal", "outlined", "underlined"],
|
|
129
|
+
description: "Input variant style",
|
|
130
|
+
table: {
|
|
131
|
+
category: "Styling",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
styleClassPassthrough: {
|
|
135
|
+
control: "object",
|
|
136
|
+
description: "Additional CSS classes",
|
|
137
|
+
table: {
|
|
138
|
+
category: "Styling",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
// Slots
|
|
143
|
+
useDescriptionSlot: {
|
|
144
|
+
control: "boolean",
|
|
145
|
+
description: "Use description slot",
|
|
146
|
+
table: {
|
|
147
|
+
category: "Slots",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
descriptionContent: {
|
|
151
|
+
control: "text",
|
|
152
|
+
description: "Content for description slot",
|
|
153
|
+
table: {
|
|
154
|
+
category: "Slots",
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
useLeftSlot: {
|
|
158
|
+
control: "boolean",
|
|
159
|
+
description: "Use left slot (decrement button)",
|
|
160
|
+
table: {
|
|
161
|
+
category: "Slots",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
useRightSlot: {
|
|
165
|
+
control: "boolean",
|
|
166
|
+
description: "Use right slot (increment button)",
|
|
167
|
+
table: {
|
|
168
|
+
category: "Slots",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
leftSlotContent: {
|
|
172
|
+
control: "text",
|
|
173
|
+
description: "Content for left slot (decrement icon)",
|
|
174
|
+
table: {
|
|
175
|
+
category: "Slots",
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
rightSlotContent: {
|
|
179
|
+
control: "text",
|
|
180
|
+
description: "Content for right slot (increment icon)",
|
|
181
|
+
table: {
|
|
182
|
+
category: "Slots",
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
args: {
|
|
187
|
+
modelValue: undefined,
|
|
188
|
+
maxlength: 255,
|
|
189
|
+
name: "number-input",
|
|
190
|
+
placeholder: "Enter number...",
|
|
191
|
+
label: "Number Input",
|
|
192
|
+
errorMessage: "",
|
|
193
|
+
fieldHasError: false,
|
|
194
|
+
required: false,
|
|
195
|
+
theme: "default",
|
|
196
|
+
inputVariant: "normal",
|
|
197
|
+
min: 0,
|
|
198
|
+
max: 100,
|
|
199
|
+
step: 1,
|
|
200
|
+
styleClassPassthrough: [],
|
|
201
|
+
useDescriptionSlot: false,
|
|
202
|
+
descriptionContent: "Use the buttons to increment or decrement the value",
|
|
203
|
+
useLeftSlot: true,
|
|
204
|
+
useRightSlot: true,
|
|
205
|
+
leftSlotContent: "−",
|
|
206
|
+
rightSlotContent: "+",
|
|
207
|
+
},
|
|
208
|
+
} as Meta<typeof StorybookComponent>;
|
|
209
|
+
|
|
210
|
+
const Template: StoryFn<InputTextAsNumberWithLabelStoryArgs> = (args) => ({
|
|
211
|
+
components: { StorybookComponent },
|
|
212
|
+
setup() {
|
|
213
|
+
const { modelValue, ...otherArgs } = args;
|
|
214
|
+
const numberValue = ref(modelValue);
|
|
215
|
+
|
|
216
|
+
return {
|
|
217
|
+
numberValue,
|
|
218
|
+
args: otherArgs,
|
|
219
|
+
descriptionContent: args.descriptionContent,
|
|
220
|
+
useDescriptionSlot: args.useDescriptionSlot,
|
|
221
|
+
leftSlotContent: args.leftSlotContent,
|
|
222
|
+
rightSlotContent: args.rightSlotContent,
|
|
223
|
+
useLeftSlot: args.useLeftSlot,
|
|
224
|
+
useRightSlot: args.useRightSlot,
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
template: `
|
|
228
|
+
<StorybookComponent
|
|
229
|
+
v-model="numberValue"
|
|
230
|
+
v-bind="args"
|
|
231
|
+
>
|
|
232
|
+
<template v-if="useDescriptionSlot" #description>{{ descriptionContent }}</template>
|
|
233
|
+
<template v-if="useLeftSlot" #left>{{ leftSlotContent }}</template>
|
|
234
|
+
<template v-if="useRightSlot" #right>{{ rightSlotContent }}</template>
|
|
235
|
+
</StorybookComponent>
|
|
236
|
+
<div class="mt-4 text-sm text-gray-600">
|
|
237
|
+
Current value: {{ numberValue ?? 'undefined' }}
|
|
238
|
+
</div>
|
|
239
|
+
`,
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
export const Default = Template.bind({});
|
|
243
|
+
Default.args = {
|
|
244
|
+
modelValue: 50,
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export const WithDescription = Template.bind({});
|
|
248
|
+
WithDescription.args = {
|
|
249
|
+
modelValue: 25,
|
|
250
|
+
useDescriptionSlot: true,
|
|
251
|
+
label: "Quantity",
|
|
252
|
+
placeholder: "Select quantity",
|
|
253
|
+
min: 1,
|
|
254
|
+
max: 99,
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export const Currency = Template.bind({});
|
|
258
|
+
Currency.args = {
|
|
259
|
+
modelValue: 100,
|
|
260
|
+
label: "Price ($)",
|
|
261
|
+
placeholder: "0.00",
|
|
262
|
+
min: 0,
|
|
263
|
+
max: 10000,
|
|
264
|
+
step: 0.01,
|
|
265
|
+
leftSlotContent: "−",
|
|
266
|
+
rightSlotContent: "+",
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export const Percentage = Template.bind({});
|
|
270
|
+
Percentage.args = {
|
|
271
|
+
modelValue: 50,
|
|
272
|
+
label: "Percentage (%)",
|
|
273
|
+
placeholder: "Enter percentage",
|
|
274
|
+
min: 0,
|
|
275
|
+
max: 100,
|
|
276
|
+
step: 5,
|
|
277
|
+
leftSlotContent: "−",
|
|
278
|
+
rightSlotContent: "+",
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export const SmallRange = Template.bind({});
|
|
282
|
+
SmallRange.args = {
|
|
283
|
+
modelValue: 3,
|
|
284
|
+
label: "Rating (1-5)",
|
|
285
|
+
placeholder: "Rate from 1 to 5",
|
|
286
|
+
min: 1,
|
|
287
|
+
max: 5,
|
|
288
|
+
step: 1,
|
|
289
|
+
leftSlotContent: "−",
|
|
290
|
+
rightSlotContent: "+",
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export const LargeNumbers = Template.bind({});
|
|
294
|
+
LargeNumbers.args = {
|
|
295
|
+
modelValue: 5000,
|
|
296
|
+
label: "Budget",
|
|
297
|
+
placeholder: "Enter budget amount",
|
|
298
|
+
min: 1000,
|
|
299
|
+
max: 100000,
|
|
300
|
+
step: 1000,
|
|
301
|
+
leftSlotContent: "−",
|
|
302
|
+
rightSlotContent: "+",
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export const WithError = Template.bind({});
|
|
306
|
+
WithError.args = {
|
|
307
|
+
modelValue: 150,
|
|
308
|
+
fieldHasError: true,
|
|
309
|
+
errorMessage: "Value must be between 0 and 100",
|
|
310
|
+
theme: "error",
|
|
311
|
+
label: "Invalid Number",
|
|
312
|
+
min: 0,
|
|
313
|
+
max: 100,
|
|
314
|
+
leftSlotContent: "−",
|
|
315
|
+
rightSlotContent: "+",
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export const Required = Template.bind({});
|
|
319
|
+
Required.args = {
|
|
320
|
+
required: true,
|
|
321
|
+
label: "Required Number",
|
|
322
|
+
placeholder: "This field is required",
|
|
323
|
+
min: 1,
|
|
324
|
+
max: 1000,
|
|
325
|
+
useDescriptionSlot: true,
|
|
326
|
+
descriptionContent: "This field is required",
|
|
327
|
+
leftSlotContent: "−",
|
|
328
|
+
rightSlotContent: "+",
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
export const Outlined = Template.bind({});
|
|
332
|
+
Outlined.args = {
|
|
333
|
+
modelValue: 42,
|
|
334
|
+
InputUiVariant: "outlined",
|
|
335
|
+
label: "Temperature (°C)",
|
|
336
|
+
placeholder: "Enter temperature",
|
|
337
|
+
min: -50,
|
|
338
|
+
max: 50,
|
|
339
|
+
step: 0.5,
|
|
340
|
+
leftSlotContent: "−",
|
|
341
|
+
rightSlotContent: "+",
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
export const Underlined = Template.bind({});
|
|
345
|
+
Underlined.args = {
|
|
346
|
+
modelValue: 10,
|
|
347
|
+
InputUiVariant: "underlined",
|
|
348
|
+
label: "Items Count",
|
|
349
|
+
placeholder: "Number of items",
|
|
350
|
+
min: 0,
|
|
351
|
+
max: 999,
|
|
352
|
+
leftSlotContent: "−",
|
|
353
|
+
rightSlotContent: "+",
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
export const WithCustomIcons = Template.bind({});
|
|
357
|
+
WithCustomIcons.args = {
|
|
358
|
+
modelValue: 15,
|
|
359
|
+
label: "Volume Level",
|
|
360
|
+
placeholder: "Set volume",
|
|
361
|
+
min: 0,
|
|
362
|
+
max: 100,
|
|
363
|
+
step: 5,
|
|
364
|
+
leftSlotContent: "🔉",
|
|
365
|
+
rightSlotContent: "🔊",
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export const InteractiveDemo = Template.bind({});
|
|
369
|
+
InteractiveDemo.storyName = "Interactive Demo";
|
|
370
|
+
InteractiveDemo.render = (args) => ({
|
|
371
|
+
components: { StorybookComponent },
|
|
372
|
+
setup() {
|
|
373
|
+
const demoValues = reactive({
|
|
374
|
+
quantity: 1,
|
|
375
|
+
price: 25.99,
|
|
376
|
+
percentage: 75,
|
|
377
|
+
rating: 4,
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
const total = computed(() => (demoValues.quantity * demoValues.price).toFixed(2));
|
|
381
|
+
|
|
382
|
+
return {
|
|
383
|
+
demoValues,
|
|
384
|
+
total,
|
|
385
|
+
args,
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
template:
|
|
389
|
+
`<div class="space-y-6 p-4 border rounded-lg">
|
|
390
|
+
<h2 class="text-xl font-bold">Shopping Cart Demo</h2>
|
|
391
|
+
|
|
392
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
393
|
+
<StorybookComponent
|
|
394
|
+
v-model="demoValues.quantity"
|
|
395
|
+
:min="1"
|
|
396
|
+
:max="99"
|
|
397
|
+
:step="1"
|
|
398
|
+
label="Quantity"
|
|
399
|
+
name="quantity"
|
|
400
|
+
placeholder="Select quantity"
|
|
401
|
+
>
|
|
402
|
+
<template #left>−</template>
|
|
403
|
+
<template #right>+</template>
|
|
404
|
+
</StorybookComponent>
|
|
405
|
+
|
|
406
|
+
<StorybookComponent
|
|
407
|
+
v-model="demoValues.price"
|
|
408
|
+
:min="0"
|
|
409
|
+
:max="999.99"
|
|
410
|
+
:step="0.01"
|
|
411
|
+
label="Price (` +
|
|
412
|
+
"$" +
|
|
413
|
+
`)"
|
|
414
|
+
name="price"
|
|
415
|
+
placeholder="0.00"
|
|
416
|
+
>
|
|
417
|
+
<template #left>−</template>
|
|
418
|
+
<template #right>+</template>
|
|
419
|
+
</StorybookComponent>
|
|
420
|
+
|
|
421
|
+
<StorybookComponent
|
|
422
|
+
v-model="demoValues.percentage"
|
|
423
|
+
:min="0"
|
|
424
|
+
:max="100"
|
|
425
|
+
:step="5"
|
|
426
|
+
label="Discount (%)"
|
|
427
|
+
name="percentage"
|
|
428
|
+
placeholder="Enter discount"
|
|
429
|
+
>
|
|
430
|
+
<template #left>−</template>
|
|
431
|
+
<template #right>+</template>
|
|
432
|
+
</StorybookComponent>
|
|
433
|
+
|
|
434
|
+
<StorybookComponent
|
|
435
|
+
v-model="demoValues.rating"
|
|
436
|
+
:min="1"
|
|
437
|
+
:max="5"
|
|
438
|
+
:step="1"
|
|
439
|
+
label="Rating (1-5 stars)"
|
|
440
|
+
name="rating"
|
|
441
|
+
placeholder="Rate product"
|
|
442
|
+
>
|
|
443
|
+
<template #left>⭐</template>
|
|
444
|
+
<template #right>⭐</template>
|
|
445
|
+
</StorybookComponent>
|
|
446
|
+
</div>
|
|
447
|
+
|
|
448
|
+
<div class="p-4 bg-gray-100 rounded">
|
|
449
|
+
<h3 class="font-semibold">Order Summary:</h3>
|
|
450
|
+
<p>Quantity: {{ demoValues.quantity }}</p>
|
|
451
|
+
<p>Price: ` +
|
|
452
|
+
"$" +
|
|
453
|
+
`{{ demoValues.price }}</p>
|
|
454
|
+
<p>Discount: {{ demoValues.percentage }}%</p>
|
|
455
|
+
<p>Rating: {{ demoValues.rating }}/5</p>
|
|
456
|
+
<p class="font-bold text-lg">Total: ` +
|
|
457
|
+
"$" +
|
|
458
|
+
`{{ total }}</p>
|
|
459
|
+
</div>
|
|
460
|
+
</div>`,
|
|
461
|
+
});
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@nuxtjs/storybook";
|
|
2
|
+
import StorybookComponent from "../InputTextCore.vue";
|
|
3
|
+
import type { FormUiTheme, InputUiVariant } from "~/types/forms/types.forms.d";
|
|
4
|
+
|
|
5
|
+
interface InputTextCoreStoryArgs {
|
|
6
|
+
modelValue: string;
|
|
7
|
+
type: "text" | "email" | "password" | "tel" | "url" | "search";
|
|
8
|
+
maxlength: number;
|
|
9
|
+
name: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
label: string;
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
fieldHasError: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
theme: FormUiTheme;
|
|
16
|
+
InputUiVariant: InputUiVariant;
|
|
17
|
+
styleClassPassthrough: string[];
|
|
18
|
+
leftSlotContent: string;
|
|
19
|
+
rightSlotContent: string;
|
|
20
|
+
useLeftSlot: boolean;
|
|
21
|
+
useRightSlot: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
title: "Components/Forms/Input Text/InputTextCore",
|
|
26
|
+
component: StorybookComponent,
|
|
27
|
+
argTypes: {
|
|
28
|
+
// Model
|
|
29
|
+
modelValue: {
|
|
30
|
+
control: "text",
|
|
31
|
+
description: "The input value",
|
|
32
|
+
table: {
|
|
33
|
+
category: "Model",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
// Basic Configuration
|
|
38
|
+
type: {
|
|
39
|
+
control: { type: "select" },
|
|
40
|
+
options: ["text", "email", "password", "tel", "url", "search"],
|
|
41
|
+
description: "Input type",
|
|
42
|
+
table: {
|
|
43
|
+
category: "Basic",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
maxlength: {
|
|
47
|
+
control: { type: "number", min: 1, max: 1000 },
|
|
48
|
+
description: "Maximum length of input",
|
|
49
|
+
table: {
|
|
50
|
+
category: "Basic",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
name: {
|
|
54
|
+
control: "text",
|
|
55
|
+
description: "Input name attribute",
|
|
56
|
+
table: {
|
|
57
|
+
category: "Basic",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
placeholder: {
|
|
61
|
+
control: "text",
|
|
62
|
+
description: "Placeholder text",
|
|
63
|
+
table: {
|
|
64
|
+
category: "Basic",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
label: {
|
|
68
|
+
control: "text",
|
|
69
|
+
description: "Input label",
|
|
70
|
+
table: {
|
|
71
|
+
category: "Basic",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
// Validation
|
|
76
|
+
errorMessage: {
|
|
77
|
+
control: "text",
|
|
78
|
+
description: "Error message to display",
|
|
79
|
+
table: {
|
|
80
|
+
category: "Validation",
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
fieldHasError: {
|
|
84
|
+
control: "boolean",
|
|
85
|
+
description: "Whether field has validation error",
|
|
86
|
+
table: {
|
|
87
|
+
category: "Validation",
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
required: {
|
|
91
|
+
control: "boolean",
|
|
92
|
+
description: "Whether field is required",
|
|
93
|
+
table: {
|
|
94
|
+
category: "Validation",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
// Styling
|
|
99
|
+
theme: {
|
|
100
|
+
control: { type: "select" },
|
|
101
|
+
options: ["primary", "secondary", "tertiary", "ghost", "error", "success", "warning"],
|
|
102
|
+
description: "Theme for styling",
|
|
103
|
+
table: {
|
|
104
|
+
category: "Styling",
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
InputUiVariant: {
|
|
108
|
+
control: { type: "select" },
|
|
109
|
+
options: ["normal", "outlined", "underlined"],
|
|
110
|
+
description: "Input variant style",
|
|
111
|
+
table: {
|
|
112
|
+
category: "Styling",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
styleClassPassthrough: {
|
|
116
|
+
control: "object",
|
|
117
|
+
description: "Additional CSS classes",
|
|
118
|
+
table: {
|
|
119
|
+
category: "Styling",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
// Slots
|
|
124
|
+
useLeftSlot: {
|
|
125
|
+
control: "boolean",
|
|
126
|
+
description: "Use left slot",
|
|
127
|
+
table: {
|
|
128
|
+
category: "Slots",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
useRightSlot: {
|
|
132
|
+
control: "boolean",
|
|
133
|
+
description: "Use right slot",
|
|
134
|
+
table: {
|
|
135
|
+
category: "Slots",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
leftSlotContent: {
|
|
139
|
+
control: "text",
|
|
140
|
+
description: "Content for left slot",
|
|
141
|
+
table: {
|
|
142
|
+
category: "Slots",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
rightSlotContent: {
|
|
146
|
+
control: "text",
|
|
147
|
+
description: "Content for right slot",
|
|
148
|
+
table: {
|
|
149
|
+
category: "Slots",
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
args: {
|
|
154
|
+
modelValue: "",
|
|
155
|
+
type: "text",
|
|
156
|
+
maxlength: 255,
|
|
157
|
+
name: "example-input",
|
|
158
|
+
placeholder: "Enter text...",
|
|
159
|
+
label: "Example Label",
|
|
160
|
+
errorMessage: "",
|
|
161
|
+
fieldHasError: false,
|
|
162
|
+
required: false,
|
|
163
|
+
theme: "default",
|
|
164
|
+
inputVariant: "normal",
|
|
165
|
+
styleClassPassthrough: [],
|
|
166
|
+
useLeftSlot: false,
|
|
167
|
+
useRightSlot: false,
|
|
168
|
+
leftSlotContent: "L",
|
|
169
|
+
rightSlotContent: "R",
|
|
170
|
+
},
|
|
171
|
+
} as Meta<typeof StorybookComponent>;
|
|
172
|
+
|
|
173
|
+
const Template: StoryFn<InputTextCoreStoryArgs> = (args) => ({
|
|
174
|
+
components: { StorybookComponent },
|
|
175
|
+
setup() {
|
|
176
|
+
const { modelValue, ...otherArgs } = args;
|
|
177
|
+
const inputValue = ref(modelValue);
|
|
178
|
+
|
|
179
|
+
return {
|
|
180
|
+
inputValue,
|
|
181
|
+
args: otherArgs,
|
|
182
|
+
leftSlotContent: args.leftSlotContent,
|
|
183
|
+
rightSlotContent: args.rightSlotContent,
|
|
184
|
+
useLeftSlot: args.useLeftSlot,
|
|
185
|
+
useRightSlot: args.useRightSlot,
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
template: `
|
|
189
|
+
<StorybookComponent
|
|
190
|
+
v-model="inputValue"
|
|
191
|
+
v-bind="args"
|
|
192
|
+
>
|
|
193
|
+
<template v-if="useLeftSlot" #left>{{ leftSlotContent }}</template>
|
|
194
|
+
<template v-if="useRightSlot" #right>{{ rightSlotContent }}</template>
|
|
195
|
+
</StorybookComponent>
|
|
196
|
+
<div class="mt-4 text-sm text-gray-600">
|
|
197
|
+
Current value: {{ inputValue }}
|
|
198
|
+
</div>
|
|
199
|
+
`,
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
export const Default = Template.bind({});
|
|
203
|
+
Default.args = {};
|
|
204
|
+
|
|
205
|
+
export const WithPlaceholder = Template.bind({});
|
|
206
|
+
WithPlaceholder.args = {
|
|
207
|
+
placeholder: "Type something here...",
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export const Required = Template.bind({});
|
|
211
|
+
Required.args = {
|
|
212
|
+
required: true,
|
|
213
|
+
label: "Required Field",
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export const WithError = Template.bind({});
|
|
217
|
+
WithError.args = {
|
|
218
|
+
fieldHasError: true,
|
|
219
|
+
errorMessage: "This field is required",
|
|
220
|
+
theme: "error",
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export const WithSlots = Template.bind({});
|
|
224
|
+
WithSlots.args = {
|
|
225
|
+
useLeftSlot: true,
|
|
226
|
+
useRightSlot: true,
|
|
227
|
+
leftSlotContent: "📧",
|
|
228
|
+
rightSlotContent: "🔍",
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export const Outlined = Template.bind({});
|
|
232
|
+
Outlined.args = {
|
|
233
|
+
InputUiVariant: "outlined",
|
|
234
|
+
placeholder: "Outlined input",
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export const Underlined = Template.bind({});
|
|
238
|
+
Underlined.args = {
|
|
239
|
+
InputUiVariant: "underlined",
|
|
240
|
+
placeholder: "Underlined input",
|
|
241
|
+
};
|