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.
Files changed (512) hide show
  1. package/README.md +170 -118
  2. package/app/assets/styles/extends-layer/srcdev-components/components/_display-prompt-core.css +94 -0
  3. package/app/assets/styles/extends-layer/srcdev-components/components/_display-toast.css +5 -0
  4. package/app/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
  5. package/app/assets/styles/extends-layer/srcdev-components/components/index.css +3 -0
  6. package/app/assets/styles/extends-layer/srcdev-components/index.css +1 -0
  7. package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
  8. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +67 -0
  9. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +87 -0
  10. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +74 -0
  11. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-with-label.css +14 -0
  12. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-description.css +13 -0
  13. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
  14. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
  15. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +143 -0
  16. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
  17. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
  18. package/app/assets/styles/extends-layer/srcdev-forms/components/_input-toggle-switch.css +68 -0
  19. package/app/assets/styles/extends-layer/srcdev-forms/components/index.css +12 -0
  20. package/app/assets/styles/extends-layer/srcdev-forms/index.css +2 -0
  21. package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
  22. package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +3 -0
  23. package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +13 -0
  24. package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_large.css +12 -0
  25. package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_medium.css +12 -0
  26. package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_small.css +12 -0
  27. package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/_x-small.css +11 -0
  28. package/app/assets/styles/extends-layer/srcdev-forms/setup/sizes/index.css +23 -0
  29. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_default.css +62 -0
  30. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_error.css +63 -0
  31. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +63 -0
  32. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_info.css +63 -0
  33. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +66 -0
  34. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +64 -0
  35. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_success.css +63 -0
  36. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +63 -0
  37. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +63 -0
  38. package/app/assets/styles/extends-layer/srcdev-forms/setup/themes/index.css +7 -0
  39. package/app/assets/styles/main.css +2 -0
  40. package/app/assets/styles/setup/01.config/_basic-resets.css +9 -0
  41. package/app/assets/styles/setup/01.config/_head.css +33 -0
  42. package/app/assets/styles/setup/01.config/_normalise.css +209 -0
  43. package/app/assets/styles/setup/01.config/index.css +3 -0
  44. package/app/assets/styles/setup/02.colours/_amber.css +12 -0
  45. package/app/assets/styles/setup/02.colours/_blue.css +13 -0
  46. package/app/assets/styles/setup/02.colours/_green.css +13 -0
  47. package/app/assets/styles/setup/02.colours/_orange.css +12 -0
  48. package/app/assets/styles/setup/02.colours/_red.css +13 -0
  49. package/app/assets/styles/setup/02.colours/_slate.css +13 -0
  50. package/app/assets/styles/setup/02.colours/_sunset.css +12 -0
  51. package/app/assets/styles/setup/02.colours/index.css +7 -0
  52. package/app/assets/styles/setup/03.theming/default/_dark.css +138 -0
  53. package/app/assets/styles/setup/03.theming/default/_light.css +156 -0
  54. package/app/assets/styles/setup/03.theming/default/index.css +2 -0
  55. package/app/assets/styles/setup/03.theming/error/_dark.css +56 -0
  56. package/app/assets/styles/setup/03.theming/error/_light.css +74 -0
  57. package/app/assets/styles/setup/03.theming/error/index.css +2 -0
  58. package/app/assets/styles/setup/03.theming/index.css +4 -0
  59. package/app/assets/styles/setup/03.theming/success/_dark.css +50 -0
  60. package/app/assets/styles/setup/03.theming/success/_light.css +65 -0
  61. package/app/assets/styles/setup/03.theming/success/index.css +2 -0
  62. package/app/assets/styles/setup/03.theming/warning/_dark.css +50 -0
  63. package/app/assets/styles/setup/03.theming/warning/_light.css +64 -0
  64. package/app/assets/styles/setup/03.theming/warning/index.css +2 -0
  65. package/app/assets/styles/setup/04.elements/forms/00.element-defaults.css +21 -0
  66. package/app/assets/styles/setup/04.elements/forms/01.field-layout-container-level.css +14 -0
  67. package/app/assets/styles/setup/04.elements/forms/02.typography.css +24 -0
  68. package/app/assets/styles/setup/04.elements/forms/03.generic-input-geometry.css +63 -0
  69. package/app/assets/styles/setup/04.elements/forms/04.slot-icon-system.css +14 -0
  70. package/app/assets/styles/setup/04.elements/forms/05.checkbox-radio-geometry.css +17 -0
  71. package/app/assets/styles/setup/04.elements/forms/06.button-geometry.css +17 -0
  72. package/app/assets/styles/setup/04.elements/forms/07.validation-error-block-layout.css +9 -0
  73. package/app/assets/styles/setup/04.elements/forms/09.animation-motion.css +6 -0
  74. package/app/assets/styles/setup/04.elements/forms/index.css +9 -0
  75. package/app/assets/styles/setup/04.elements/index.css +1 -0
  76. package/app/assets/styles/setup/05.typography/01.tokens/_font-family.css +8 -0
  77. package/app/assets/styles/setup/05.typography/01.tokens/_reponsive-font-sizes.css +22 -0
  78. package/app/assets/styles/setup/05.typography/01.tokens/_timing-functions.css +119 -0
  79. package/app/assets/styles/setup/05.typography/01.tokens/index.css +3 -0
  80. package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-article.css +30 -0
  81. package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-card.css +45 -0
  82. package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-body.css +146 -0
  83. package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-heading.css +35 -0
  84. package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-page-link.css +116 -0
  85. package/app/assets/styles/setup/05.typography/02.utility-classes/_font-classes-section.css +7 -0
  86. package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-classes.css +3 -0
  87. package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-variation-settings.css +29 -0
  88. package/app/assets/styles/setup/05.typography/02.utility-classes/_generic-font-weights.css +39 -0
  89. package/app/assets/styles/setup/05.typography/02.utility-classes/index.css +9 -0
  90. package/app/assets/styles/setup/05.typography/index.css +2 -0
  91. package/app/assets/styles/setup/06.utility-classes/_a11y.css +280 -0
  92. package/app/assets/styles/setup/06.utility-classes/animations/_auto-rotate.css +13 -0
  93. package/app/assets/styles/setup/06.utility-classes/animations/_entry-exit-blur.css +16 -0
  94. package/app/assets/styles/setup/06.utility-classes/animations/_entry-slide-in.css +15 -0
  95. package/app/assets/styles/setup/06.utility-classes/animations/_entry-zoom-reveal.css +15 -0
  96. package/app/assets/styles/setup/06.utility-classes/animations/index.css +4 -0
  97. package/app/assets/styles/setup/06.utility-classes/index.css +4 -0
  98. package/app/assets/styles/setup/06.utility-classes/layout/_containers.css +96 -0
  99. package/app/assets/styles/setup/06.utility-classes/layout/_flexbox.css +196 -0
  100. package/app/assets/styles/setup/06.utility-classes/layout/_grid.css +266 -0
  101. package/app/assets/styles/setup/06.utility-classes/layout/_positioning.css +149 -0
  102. package/app/assets/styles/setup/06.utility-classes/layout/index.css +9 -0
  103. package/app/assets/styles/setup/06.utility-classes/spacing/_fluid-spacing.css +13 -0
  104. package/app/assets/styles/setup/06.utility-classes/spacing/_margin.css +334 -0
  105. package/app/assets/styles/setup/06.utility-classes/spacing/_padding.css +308 -0
  106. package/app/assets/styles/setup/06.utility-classes/spacing/index.css +3 -0
  107. package/app/assets/styles/setup/a11y/_variables.css +8 -0
  108. package/app/assets/styles/setup/a11y/index.css +1 -0
  109. package/app/assets/styles/setup/index.css +10 -0
  110. package/app/components/01.atoms/animations/entry/EntryAnimation.vue +22 -0
  111. package/app/components/01.atoms/animations/entry/stories/EntryAnimation.stories.ts +74 -0
  112. package/app/components/01.atoms/glass-panel/GlassPanel.vue +52 -0
  113. package/app/components/01.atoms/text-blocks/eyebrow-text/EyebrowText.vue +42 -0
  114. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts +67 -0
  115. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
  116. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
  117. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
  118. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-chromium-darwin.png +0 -0
  119. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-firefox-darwin.png +0 -0
  120. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-large-webkit-darwin.png +0 -0
  121. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-chromium-darwin.png +0 -0
  122. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-firefox-darwin.png +0 -0
  123. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-medium-webkit-darwin.png +0 -0
  124. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-chromium-darwin.png +0 -0
  125. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-firefox-darwin.png +0 -0
  126. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/fontSize-small-webkit-darwin.png +0 -0
  127. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-chromium-darwin.png +0 -0
  128. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-firefox-darwin.png +0 -0
  129. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-div-webkit-darwin.png +0 -0
  130. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-chromium-darwin.png +0 -0
  131. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-firefox-darwin.png +0 -0
  132. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-p-webkit-darwin.png +0 -0
  133. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-chromium-darwin.png +0 -0
  134. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-firefox-darwin.png +0 -0
  135. package/app/components/01.atoms/text-blocks/eyebrow-text/playwright/eyebrow-text.playwright.ts-snapshots/tag-span-webkit-darwin.png +0 -0
  136. package/app/components/01.atoms/text-blocks/eyebrow-text/stories/EyebrowText.stories.ts +49 -0
  137. package/app/components/01.atoms/text-blocks/eyebrow-text/tests/EyebrowText.spec.ts +196 -0
  138. package/app/components/01.atoms/text-blocks/eyebrow-text/tests/__snapshots__/EyebrowText.spec.ts.snap +17 -0
  139. package/app/components/01.atoms/text-blocks/hero-text/HeroText.vue +101 -0
  140. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts +110 -0
  141. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-chromium-darwin.png +0 -0
  142. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-firefox-darwin.png +0 -0
  143. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-chromium-darwin.png +0 -0
  144. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-firefox-darwin.png +0 -0
  145. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-display-webkit-darwin.png +0 -0
  146. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-chromium-darwin.png +0 -0
  147. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-firefox-darwin.png +0 -0
  148. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-heading-webkit-darwin.png +0 -0
  149. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-chromium-darwin.png +0 -0
  150. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-firefox-darwin.png +0 -0
  151. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-label-webkit-darwin.png +0 -0
  152. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-chromium-darwin.png +0 -0
  153. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-firefox-darwin.png +0 -0
  154. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-subheading-webkit-darwin.png +0 -0
  155. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-chromium-darwin.png +0 -0
  156. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-firefox-darwin.png +0 -0
  157. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-fontSize-title-webkit-darwin.png +0 -0
  158. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-horizontal-webkit-darwin.png +0 -0
  159. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-chromium-darwin.png +0 -0
  160. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-firefox-darwin.png +0 -0
  161. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-chromium-darwin.png +0 -0
  162. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-firefox-darwin.png +0 -0
  163. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-display-webkit-darwin.png +0 -0
  164. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-chromium-darwin.png +0 -0
  165. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-firefox-darwin.png +0 -0
  166. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-heading-webkit-darwin.png +0 -0
  167. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-chromium-darwin.png +0 -0
  168. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-firefox-darwin.png +0 -0
  169. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-label-webkit-darwin.png +0 -0
  170. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-chromium-darwin.png +0 -0
  171. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-firefox-darwin.png +0 -0
  172. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-subheading-webkit-darwin.png +0 -0
  173. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-chromium-darwin.png +0 -0
  174. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-firefox-darwin.png +0 -0
  175. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-fontSize-title-webkit-darwin.png +0 -0
  176. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/axis-vertical-webkit-darwin.png +0 -0
  177. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
  178. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
  179. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
  180. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-chromium-darwin.png +0 -0
  181. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-firefox-darwin.png +0 -0
  182. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-display-webkit-darwin.png +0 -0
  183. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-chromium-darwin.png +0 -0
  184. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-firefox-darwin.png +0 -0
  185. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-heading-webkit-darwin.png +0 -0
  186. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-chromium-darwin.png +0 -0
  187. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-firefox-darwin.png +0 -0
  188. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-label-webkit-darwin.png +0 -0
  189. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-chromium-darwin.png +0 -0
  190. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-firefox-darwin.png +0 -0
  191. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-subheading-webkit-darwin.png +0 -0
  192. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-chromium-darwin.png +0 -0
  193. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-firefox-darwin.png +0 -0
  194. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/fontSize-title-webkit-darwin.png +0 -0
  195. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-chromium-darwin.png +0 -0
  196. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-firefox-darwin.png +0 -0
  197. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-with-webkit-darwin.png +0 -0
  198. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-chromium-darwin.png +0 -0
  199. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-firefox-darwin.png +0 -0
  200. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/icon-without-webkit-darwin.png +0 -0
  201. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-chromium-darwin.png +0 -0
  202. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-firefox-darwin.png +0 -0
  203. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h1-webkit-darwin.png +0 -0
  204. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-chromium-darwin.png +0 -0
  205. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-firefox-darwin.png +0 -0
  206. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h2-webkit-darwin.png +0 -0
  207. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-chromium-darwin.png +0 -0
  208. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-firefox-darwin.png +0 -0
  209. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h3-webkit-darwin.png +0 -0
  210. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-chromium-darwin.png +0 -0
  211. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-firefox-darwin.png +0 -0
  212. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h4-webkit-darwin.png +0 -0
  213. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-chromium-darwin.png +0 -0
  214. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-firefox-darwin.png +0 -0
  215. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h5-webkit-darwin.png +0 -0
  216. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-chromium-darwin.png +0 -0
  217. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-firefox-darwin.png +0 -0
  218. package/app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts-snapshots/tag-h6-webkit-darwin.png +0 -0
  219. package/app/components/01.atoms/text-blocks/hero-text/stories/HeroText.stories.ts +70 -0
  220. package/app/components/01.atoms/text-blocks/hero-text/tests/HeroText.spec.ts +148 -0
  221. package/app/components/01.atoms/text-blocks/hero-text/tests/__snapshots__/HeroText.spec.ts.snap +7 -0
  222. package/app/components/02.molecules/contact-section/stories/ContactSection.stories.ts +197 -0
  223. package/app/components/02.molecules/contact-section/tests/ContactSection.spec.ts +196 -0
  224. package/app/components/02.molecules/contact-section/tests/ContactSection.vue +87 -0
  225. package/app/components/02.molecules/contact-section/tests/__snapshots__/ContactSection.spec.ts.snap +119 -0
  226. package/app/components/02.molecules/price-list/PriceList.vue +119 -0
  227. package/app/components/02.molecules/price-list/stories/PriceList.stories.ts +103 -0
  228. package/app/components/02.molecules/price-list/tests/PriceList.spec.ts +192 -0
  229. package/app/components/02.molecules/price-list/tests/__snapshots__/PriceList.spec.ts.snap +73 -0
  230. package/app/components/02.molecules/profile-section/ProfileSection.vue +154 -0
  231. package/app/components/02.molecules/profile-section/stories/ProfileSection.stories.ts +154 -0
  232. package/app/components/02.molecules/profile-section/tests/ProfileSection.spec.ts +147 -0
  233. package/app/components/02.molecules/profile-section/tests/__snapshots__/ProfileSection.spec.ts.snap +29 -0
  234. package/app/components/02.molecules/stepper-list/StepperList.vue +158 -0
  235. package/app/components/02.molecules/stepper-list/stories/StepperList.stories.ts +392 -0
  236. package/app/components/02.molecules/stepper-list/tests/StepperList.spec.ts +289 -0
  237. package/app/components/02.molecules/stepper-list/tests/__snapshots__/StepperList.spec.ts.snap +86 -0
  238. package/app/components/03.organisms/colour-finder/ColourFinder.vue +1519 -0
  239. package/app/components/03.organisms/services/services-card/ServicesCard.vue +104 -0
  240. package/app/components/03.organisms/services/services-grids/ServicesCardGrid.vue +39 -0
  241. package/app/components/03.organisms/services/services-grids/ServicesSectionGrid.vue +52 -0
  242. package/app/components/03.organisms/services/services-section/ServicesSection.vue +307 -0
  243. package/app/components/03.organisms/treatment-consultant/TreatmentConsultant.vue +2221 -0
  244. package/app/components/03.organisms/treatment-consultant/stories/TreatmentConsultant.stories.ts +38 -0
  245. package/app/components/accordian/AccordianCore.vue +26 -21
  246. package/app/components/accordian/stories/AccordianCore.stories.ts +241 -0
  247. package/app/components/accordian/tests/AccordianCore.spec.ts +218 -0
  248. package/app/components/accordian/tests/__snapshots__/AccordianCore.spec.ts.snap +74 -0
  249. package/app/components/alert-mask/AlertMaskCore.vue +35 -33
  250. package/app/components/alert-mask/tests/AlertMaskCore.spec.ts +304 -0
  251. package/app/components/animated-svg-text/AnimatedSvgText.vue +2 -0
  252. package/app/components/canvas-switcher/CanvasSwitcher.vue +10 -8
  253. package/app/components/{carousel-basic → carousels}/CarouselBasic.vue +58 -56
  254. package/app/components/{carousel-basic → carousels}/CarouselFlip.vue +150 -148
  255. package/app/components/{carousel-basic → carousels}/CarouselInfinite.vue +2 -0
  256. package/app/components/carousels/stories/CarouselFlip.stories.ts +637 -0
  257. package/app/components/carousels/tests/CarouselFlip.spec.ts +556 -0
  258. package/app/components/clip-element/ClipElement.vue +2 -0
  259. package/app/components/clipped-panels/ClippedPanel.vue +2 -0
  260. package/app/components/container-glow/ContainerGlowCore.vue +119 -50
  261. package/app/components/container-glow/stories/ContainerGlowCore.stories.ts +337 -0
  262. package/app/components/content-columns/TwoColumns.vue +59 -0
  263. package/app/components/content-columns/stories/TwoColumns.stories.ts +561 -0
  264. package/app/components/content-containers/ContentContainer.vue +89 -0
  265. package/app/components/content-containers/stories/ContentContainer.stories.ts +465 -0
  266. package/app/components/content-grid/ContentGrid.vue +4 -2
  267. package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +18 -16
  268. package/app/components/deep-expanding-menu/DeepExpandingMenuOld.vue +28 -26
  269. package/app/components/display-avatar/DisplayAvatar.vue +15 -13
  270. package/app/components/display-avatar/stories/DisplayAvatar.stories.ts +94 -0
  271. package/app/components/display-banner/DisplayBanner.vue +2 -0
  272. package/app/components/display-card/DisplayCard.vue +16 -14
  273. package/app/components/display-chip/DisplayChip.vue +2 -0
  274. package/app/components/display-chip/stories/DisplayChip.stories.ts +346 -0
  275. package/app/components/display-details/DisplayDetailsCore.vue +2 -0
  276. package/app/components/display-dialog/DisplayDialogCore.vue +24 -17
  277. package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +2 -0
  278. package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +2 -0
  279. package/app/components/display-grid/DisplayGridCore.vue +4 -4
  280. package/app/components/display-prompt/DisplayPromptCore.vue +20 -16
  281. package/app/components/display-prompt/variants/DisplayPromptError.vue +6 -4
  282. package/app/components/display-theme-switch/DisplayThemeSwitch.vue +182 -0
  283. package/app/components/display-theme-switch/stories/DisplayThemeSwitch.stories.ts +154 -0
  284. package/app/components/display-toast/DisplayToast.vue +63 -61
  285. package/app/components/display-toast/molecules/DefaultToastContent.vue +21 -45
  286. package/app/components/display-toast/stories/DisplayToast.stories.ts +380 -0
  287. package/app/components/display-tooltip/DisplayTooltip.vue +14 -9
  288. package/app/components/display-tooltip/DisplayTooltipDefined.vue +2 -0
  289. package/app/components/expanding-panel/ExpandingPanel.vue +28 -41
  290. package/app/components/forms/c12/prop-validators/index.ts +48 -0
  291. package/app/components/forms/c12/utils.ts +14 -0
  292. package/app/components/forms/form-errors/InputError.vue +208 -0
  293. package/app/components/forms/form-errors/tests/InputError.spec.ts +66 -0
  294. package/app/components/forms/form-fieldset/FormFieldset.vue +75 -0
  295. package/app/components/forms/input-button/InputButtonCore.vue +219 -0
  296. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts +113 -0
  297. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
  298. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
  299. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
  300. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
  301. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
  302. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
  303. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
  304. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
  305. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
  306. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
  307. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
  308. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
  309. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
  310. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
  311. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
  312. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
  313. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
  314. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
  315. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
  316. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
  317. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
  318. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
  319. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
  320. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
  321. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
  322. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
  323. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
  324. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
  325. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
  326. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
  327. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
  328. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
  329. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
  330. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
  331. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
  332. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
  333. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
  334. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
  335. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
  336. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
  337. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
  338. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
  339. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
  340. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
  341. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
  342. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
  343. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
  344. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
  345. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
  346. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
  347. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
  348. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
  349. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
  350. package/app/components/forms/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
  351. package/app/components/forms/input-button/stories/InputButtonCore.stories.ts +304 -0
  352. package/app/components/forms/input-button/tests/InputButtonCore.spec.ts +269 -0
  353. package/app/components/forms/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +72 -0
  354. package/app/components/forms/input-checkbox/MultipleCheckboxes.vue +181 -0
  355. package/app/components/forms/input-checkbox/SingleCheckbox.vue +144 -0
  356. package/app/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +101 -0
  357. package/app/components/forms/input-checkbox/tests/data/tags.json +67 -0
  358. package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +174 -0
  359. package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +199 -0
  360. package/app/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +104 -0
  361. package/app/components/forms/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +320 -0
  362. package/app/components/forms/input-description/InputDescription.vue +55 -0
  363. package/app/components/forms/input-description/tests/InputDescription.spec.ts +429 -0
  364. package/app/components/forms/input-label/InputLabel.vue +66 -0
  365. package/app/components/forms/input-label/tests/InputLabel.spec.ts +431 -0
  366. package/app/components/forms/input-number/InputNumberCore.vue +163 -0
  367. package/app/components/forms/input-number/variants/InputNumberDefault.vue +150 -0
  368. package/app/components/forms/input-radio/MultipleRadiobuttons.vue +180 -0
  369. package/app/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +90 -0
  370. package/app/components/forms/input-radio/tests/data/tags.json +67 -0
  371. package/app/components/forms/input-range/InputRangeCore.vue +233 -0
  372. package/app/components/forms/input-range/variants/InputRangeDefault.vue +166 -0
  373. package/app/components/forms/input-range-fancy/InputRangeFancyCore.vue +426 -0
  374. package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +94 -0
  375. package/app/components/forms/input-select/InputSelectCore.vue +171 -0
  376. package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +121 -0
  377. package/app/components/forms/input-text/InputTextCore.vue +222 -0
  378. package/app/components/forms/input-text/stories/InputPasswordWithLabel.stories.ts +339 -0
  379. package/app/components/forms/input-text/stories/InputTextAsNumberWithLabel.stories.ts +461 -0
  380. package/app/components/forms/input-text/stories/InputTextCore.stories.ts +241 -0
  381. package/app/components/forms/input-text/stories/InputTextWithLabel.stories.ts +293 -0
  382. package/app/components/forms/input-text/variants/InputPasswordWithLabel.vue +86 -0
  383. package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +203 -0
  384. package/app/components/forms/input-text/variants/InputTextWithLabel.vue +149 -0
  385. package/app/components/forms/input-textarea/InputTextareaCore.vue +151 -0
  386. package/app/components/forms/input-textarea/stories/InputTextareaCore.stories.ts +247 -0
  387. package/app/components/forms/input-textarea/stories/InputTextareaWithLabel.stories.ts +452 -0
  388. package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +150 -0
  389. package/app/components/forms/pending-effect/PendingEffect.vue +101 -0
  390. package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +221 -0
  391. package/app/components/forms/toggle-switch/stories/ToggleSwitchCore.stories.ts +236 -0
  392. package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +253 -0
  393. package/app/components/forms/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +280 -0
  394. package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +101 -0
  395. package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +84 -0
  396. package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +290 -0
  397. package/app/components/forms/ui/FormField.vue +81 -0
  398. package/app/components/forms/ui/FormWrapper.vue +37 -0
  399. package/app/components/glowing-border/GlowingBorder.vue +2 -0
  400. package/app/components/glowing-border/stories/GlowingBorder.stories.ts +141 -0
  401. package/app/components/image-galleries/SliderGallery.vue +100 -100
  402. package/app/components/layout-grids/LayoutGridA.vue +2 -0
  403. package/app/components/layout-grids/LayoutGridB.vue +8 -6
  404. package/app/components/layout-grids/stories/LayoutGridA.stories.ts +402 -0
  405. package/app/components/layout-grids/stories/LayoutGridB.stories.ts +420 -0
  406. package/app/components/layout-grids/tests/LayoutGridA.spec.ts +352 -0
  407. package/app/components/layout-grids/tests/LayoutGridB.spec.ts +490 -0
  408. package/app/components/layout-row/LayoutRow.vue +60 -54
  409. package/app/components/layout-row/stories/LayoutRow.stories.ts +528 -0
  410. package/app/components/magnetic-navigation/MagneticNavigation.vue +2 -0
  411. package/app/components/marquee-scroller/MarqueeScroller.vue +35 -33
  412. package/app/components/masonry-grid/MasonryGrid.vue +8 -6
  413. package/app/components/masonry-grid-ordered/MasonryGridOrdered.vue +2 -0
  414. package/app/components/masonry-grid-ordered/MasonryGridOrderedGridExperiment.vue +82 -87
  415. package/app/components/masonry-grid-ordered/stories/MasonryGridOrdered.stories.ts +354 -0
  416. package/app/components/masonry-grid-sorted/MasonryGridSorted.vue +2 -0
  417. package/app/components/parallax/SectionParallax.vue +10 -8
  418. package/app/components/pop-over/PopOver.vue +2 -0
  419. package/app/components/qr-code/CaptureQrCode.vue +2 -0
  420. package/app/components/qr-code/DecodeQrCode.vue +2 -0
  421. package/app/components/qr-code/DisplayQrCode.vue +7 -5
  422. package/app/components/qr-code/stories/QrCode.stories.ts +933 -0
  423. package/app/components/responsive-header/NavigationItems.vue +34 -23
  424. package/app/components/responsive-header/ResponsiveHeader.vue +163 -157
  425. package/app/components/rotating-carousel/RotatingCarouselImage.vue +2 -0
  426. package/app/components/skip-links/SkipLinks.vue +2 -0
  427. package/app/components/tabs/TabsCore.vue +38 -30
  428. package/app/components/test-storybook/TestStorybook.vue +49 -0
  429. package/app/components/test-storybook/stories/TestStorybook.stories.ts +28 -0
  430. package/app/components/ui-block-decorated/UiBlockDecorated.vue +2 -0
  431. package/app/components/view-timeline/WipeAwayVertical.vue +2 -0
  432. package/app/composables/useApiRequest.ts +25 -0
  433. package/app/composables/useAriaDescribedById.ts +19 -0
  434. package/app/composables/useColourScheme.ts +18 -0
  435. package/app/composables/useErrorMessages.ts +62 -0
  436. package/app/composables/useFormControl.ts +264 -0
  437. package/app/composables/useMaxChildWidth.ts +30 -0
  438. package/app/composables/useTabs.ts +207 -117
  439. package/app/composables/useZodValidation.ts +147 -0
  440. package/app/layouts/default.vue +605 -0
  441. package/app/pages/forms/examples/buttons/index.vue +285 -0
  442. package/app/pages/forms/examples/material/checkbox-radio-panels.vue +244 -0
  443. package/app/pages/forms/examples/material/cssbattle.vue +60 -0
  444. package/app/pages/forms/examples/material/text-fields.vue +913 -0
  445. package/app/pages/index.vue +122 -0
  446. package/app/pages/typography/hero-text.vue +97 -0
  447. package/app/pages/typography/index.vue +39 -0
  448. package/app/pages/typography/page-body.vue +171 -0
  449. package/app/pages/typography/page-heading.vue +76 -0
  450. package/app/pages/typography/page-link.vue +103 -0
  451. package/app/pages/ui/accordian.vue +211 -0
  452. package/app/pages/ui/animated-svg-text.vue +85 -0
  453. package/app/pages/ui/block-decorators.vue +142 -0
  454. package/app/pages/ui/carousel-basic.vue +292 -0
  455. package/app/pages/ui/carousel-flip.vue +244 -0
  456. package/app/pages/ui/carousel-infinite.vue +260 -0
  457. package/app/pages/ui/clipped-panels.vue +101 -0
  458. package/app/pages/ui/contact-section.vue +323 -0
  459. package/app/pages/ui/container-glow.vue +107 -0
  460. package/app/pages/ui/content-container.vue +112 -0
  461. package/app/pages/ui/display-avatar.vue +253 -0
  462. package/app/pages/ui/display-banner.vue +78 -0
  463. package/app/pages/ui/display-card.vue +82 -0
  464. package/app/pages/ui/display-chip.vue +225 -0
  465. package/app/pages/ui/display-details.vue +175 -0
  466. package/app/pages/ui/display-dialog.vue +231 -0
  467. package/app/pages/ui/display-prompt.vue +81 -0
  468. package/app/pages/ui/display-toast.vue +332 -0
  469. package/app/pages/ui/expanding-panel.vue +193 -0
  470. package/app/pages/ui/glowing-border.vue +111 -0
  471. package/app/pages/ui/layout-grid-a.vue +149 -0
  472. package/app/pages/ui/layout-grid-b.vue +132 -0
  473. package/app/pages/ui/layout-row.vue +139 -0
  474. package/app/pages/ui/magnetic-navigation.vue +50 -0
  475. package/app/pages/ui/marquee-scroller.vue +99 -0
  476. package/app/pages/ui/mask-element.vue +82 -0
  477. package/app/pages/ui/masonry-columns.vue +55 -0
  478. package/app/pages/ui/masonry-grid-ordered-experiment.vue +79 -0
  479. package/app/pages/ui/masonry-grid-ordered.vue +56 -0
  480. package/app/pages/ui/masonry-grid-sorted.vue +55 -0
  481. package/app/pages/ui/masonry-grid.vue +55 -0
  482. package/app/pages/ui/price-list.vue +65 -0
  483. package/app/pages/ui/profile-section.vue +96 -0
  484. package/app/pages/ui/qr-code/[componentName].vue +218 -0
  485. package/app/pages/ui/rotating-carousel.vue +154 -0
  486. package/app/pages/ui/section-parallax.vue +54 -0
  487. package/app/pages/ui/services/colour-finder.vue +43 -0
  488. package/app/pages/ui/services/services-cards.vue +42 -0
  489. package/app/pages/ui/services/services-section/[slug].vue +59 -0
  490. package/app/pages/ui/services/services-sections-compact.vue +64 -0
  491. package/app/pages/ui/services/treatment-consultant.vue +39 -0
  492. package/app/pages/ui/settings.vue +80 -0
  493. package/app/pages/ui/simple-grid.vue +66 -0
  494. package/app/pages/ui/slider-gallery.vue +261 -0
  495. package/app/pages/ui/tabs-y.vue +108 -0
  496. package/app/pages/ui/tabs.vue +192 -0
  497. package/app/pages/ui/tooltips.vue +104 -0
  498. package/app/pages/ui/wipe-away-vertical.vue +129 -0
  499. package/app/plugins/css-anchor-positioning-polyfill.client.ts +5 -0
  500. package/app/stores/useServicesStore.ts +37 -0
  501. package/app/stores/useSettingsStore.ts +35 -0
  502. package/app/types/components/hero-text.ts +4 -0
  503. package/app/types/components/index.ts +1 -0
  504. package/app/types/forms/types.forms.d.ts +293 -0
  505. package/app/types/forms/types.zodFormControl.d.ts +29 -0
  506. package/app/types/types.posts.ts +21 -0
  507. package/app/types/types.quotes.ts +12 -0
  508. package/app/types/types.services.ts +20 -0
  509. package/app/utils/colour-scheme-init.ts +17 -0
  510. package/nuxt.config.ts +94 -9
  511. package/package.json +53 -16
  512. package/types/components/css-anchor-polyfill.d.ts +1 -0
@@ -0,0 +1,260 @@
1
+ <template>
2
+ <div>
3
+ <NuxtLayout name="default">
4
+ <template #layout-content>
5
+ <LayoutRow tag="div" variant="content" :style-class-passthrough="['mbe-20']">
6
+ <h1 class="page-heading-2">Carousel (Infinite)</h1>
7
+ </LayoutRow>
8
+
9
+ <LayoutRow tag="div" variant="popout" :style-class-passthrough="['mbe-20']">
10
+ <CarouselInfinite
11
+ v-if="carouselStatus === 'success'"
12
+ :carousel-data-ids
13
+ :allow-carousel-overflow="true"
14
+ :return-to-start="false"
15
+ :transition-speed="1000"
16
+ :style-class-passthrough="['carousel-infinite-demo', 'mbe-20']"
17
+ >
18
+ <template v-for="(item, index) in carouselData?.items" #[item.id]>
19
+ <div class="case-study-item">
20
+ <h3>{{ index }}</h3>
21
+ <p>{{ item.alt }}</p>
22
+ </div>
23
+ </template>
24
+ </CarouselInfinite>
25
+ </LayoutRow>
26
+ </template>
27
+ </NuxtLayout>
28
+ </div>
29
+ </template>
30
+
31
+ <script setup lang="ts">
32
+ import type { ICarouselBasic } from "~/types/components";
33
+
34
+ definePageMeta({
35
+ layout: false,
36
+ });
37
+
38
+ useHead({
39
+ title: "Carousel (Infinite) Example",
40
+ meta: [{ name: "description", content: "Examples of Carousel (Infinite)" }],
41
+ bodyAttrs: {
42
+ class: "carousel-infinite-example-page",
43
+ },
44
+ });
45
+
46
+ const {
47
+ data: carouselData,
48
+ execute: carouselExecute,
49
+ status: carouselStatus, // See v-if on CarouselBasic
50
+ error: carouselError,
51
+ } = await useFetch<ICarouselBasic>("/api/carousel", {
52
+ immediate: true,
53
+ });
54
+
55
+ const carouselDataStatic = {
56
+ items: [
57
+ {
58
+ id: 1,
59
+ url: "/images/spotlights/v2/dining-out.webp",
60
+ alt: "Dining out",
61
+ },
62
+ {
63
+ id: 2,
64
+ url: "/images/spotlights/v2/beer-gardens.webp",
65
+ alt: "Entertaining the kids",
66
+ },
67
+ {
68
+ id: 3,
69
+ url: "/images/spotlights/v2/will-it-rain.webp",
70
+ alt: "Will it rain?",
71
+ },
72
+ {
73
+ id: 4,
74
+ url: "/images/spotlights/v2/nightlife.webp",
75
+ alt: "Nightlife",
76
+ },
77
+ {
78
+ id: 5,
79
+ url: "/images/spotlights/v2/got-toothache-2.webp",
80
+ alt: "Dental Services",
81
+ },
82
+ {
83
+ id: 6,
84
+ url: "/images/spotlights/v2/days-out.webp",
85
+ alt: "Days Out",
86
+ },
87
+ ],
88
+ total: 6,
89
+ skip: 0,
90
+ limit: 4,
91
+ };
92
+
93
+ const carouselDataIds = computed(() => {
94
+ return carouselData.value?.items.map((item) => item.id) || [];
95
+ // return carouselData?.items.map((item) => item.id) || [];
96
+ });
97
+ </script>
98
+
99
+ <style lang="css">
100
+ @property --glow-deg {
101
+ syntax: "<angle>";
102
+ inherits: true;
103
+ initial-value: -90deg;
104
+ }
105
+
106
+ @keyframes glow {
107
+ 100% {
108
+ --glow-deg: 270deg;
109
+ }
110
+ }
111
+
112
+ .carousel-infinite-demo {
113
+ &.carousel-infinite {
114
+ /* Var used in calcs */
115
+ --_carousel-item-track-gap: 10px;
116
+
117
+ .item-container {
118
+ padding-block: 10px;
119
+ padding-inline: 10px;
120
+ outline: 1px solid light-dark(var(--slate-06), var(--slate-05));
121
+
122
+ .item {
123
+ max-inline-size: 800px;
124
+
125
+ background-color: light-dark(var(--slate-05), var(--slate-06));
126
+
127
+ &:nth-child(odd) {
128
+ background-color: light-dark(var(--slate-06), var(--slate-05));
129
+ }
130
+
131
+ .case-study-item {
132
+ flex-direction: column;
133
+ align-items: center;
134
+ justify-content: center;
135
+
136
+ aspect-ratio: 4 / 3;
137
+ inline-size: 100%;
138
+
139
+ color: light-dark(#aaa, #333);
140
+ padding-block: 10px;
141
+ padding-inline: 10px;
142
+ border-radius: 4px;
143
+ outline: 1px solid light-dark(var(--slate-06), var(--slate-05));
144
+ }
145
+ }
146
+ }
147
+
148
+ .controls-container {
149
+ gap: 20px;
150
+
151
+ .markers-container {
152
+ .markers-list {
153
+ .markers-item {
154
+ line-height: 3px;
155
+
156
+ &.active {
157
+ background-color: light-dark(var(--slate-06), var(--slate-05));
158
+ }
159
+
160
+ .btn-marker {
161
+ width: 22px;
162
+ height: 3px;
163
+ background-color: lightgray;
164
+ line-height: 3px;
165
+
166
+ &.active {
167
+ background-color: black;
168
+ }
169
+
170
+ &:focus-visible {
171
+ outline: 1px solid light-dark(#000, #fff);
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+
178
+ .buttons-container {
179
+ display: flex;
180
+ align-items: center;
181
+ justify-content: end;
182
+ gap: 20px;
183
+
184
+ .btn-action {
185
+ --gradient-glow-dark:
186
+ var(--slate-07), var(--slate-05), var(--slate-08), var(--slate-06), var(--slate-07), var(--slate-08),
187
+ var(--slate-07);
188
+ --gradient-glow-light: var(--slate-04), var(--slate-06), var(--slate-00), var(--slate-06), var(--slate-04);
189
+
190
+ padding-block: 10px;
191
+ padding-inline: 10px;
192
+ border-radius: 100%;
193
+ /* background-color: light-dark(#000, #fff); */
194
+ /* color: light-dark(#fff, #000); */
195
+
196
+ border: 3px solid transparent;
197
+ background:
198
+ linear-gradient(var(--surface, canvas) 0 0) padding-box,
199
+ conic-gradient(from var(--glow-deg), var(--gradient-glow-dark)) border-box;
200
+ outline: 1px solid light-dark(var(--slate-09), var(--slate-07));
201
+
202
+ position: relative;
203
+ isolation: isolate;
204
+
205
+ animation: glow 10s infinite linear;
206
+ animation-play-state: paused;
207
+ transition: outline-color 0.3s ease;
208
+
209
+ &::before,
210
+ &::after {
211
+ content: "";
212
+ position: absolute;
213
+ border-radius: inherit;
214
+ }
215
+
216
+ &::before {
217
+ z-index: -1;
218
+ background: var(--surface, canvas);
219
+ inset: 0.5rem;
220
+ scale: 1.2 1;
221
+ transform-origin: right;
222
+ filter: blur(var(--glow-size, 0.5rem));
223
+ }
224
+
225
+ &::after {
226
+ z-index: -2;
227
+ inset: -1.5rem;
228
+ background: conic-gradient(from var(--glow-deg), var(--gradient-glow-dark));
229
+ filter: blur(var(--glow-size, 1rem));
230
+ opacity: var(--glow-intensity, 0.125);
231
+ }
232
+
233
+ &:hover {
234
+ animation-play-state: running;
235
+ outline-color: light-dark(var(--slate-09), var(--slate-04));
236
+ }
237
+
238
+ .arrows-icon {
239
+ width: 24px;
240
+ height: 24px;
241
+
242
+ /* &:hover {
243
+ background-color: light-dark(#0009, #fff9);
244
+ }
245
+
246
+ &:active,
247
+ &.active {
248
+ background-color: light-dark(#0009, #fff9);
249
+ }
250
+
251
+ &:focus-visible {
252
+ outline: 1px solid light-dark(#0f0, #f0f);
253
+ } */
254
+ }
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
260
+ </style>
@@ -0,0 +1,101 @@
1
+ <template>
2
+ <div>
3
+ <NuxtLayout name="default">
4
+ <template #layout-content>
5
+ <LayoutRow tag="div" variant="full-width" :style-class-passthrough="['mbe-20']">
6
+ <h1 class="page-heading-2">Clipped Panels</h1>
7
+ </LayoutRow>
8
+ <LayoutRow tag="div" variant="full-width" :style-class-passthrough="['mbe-20']">
9
+ <h2 class="page-heading-2">Rectangle</h2>
10
+ <ClippedPanel variant="rectangle">
11
+ <template #default>
12
+ <p>Clipped Panels Rectangle</p>
13
+ </template>
14
+ </ClippedPanel>
15
+ </LayoutRow>
16
+ <LayoutRow tag="div" variant="full-width" :style-class-passthrough="['mbe-20']">
17
+ <h2 class="page-heading-2">Square</h2>
18
+ <ClippedPanel variant="square">
19
+ <template #default>
20
+ <p>Clipped Panels Square</p>
21
+ </template>
22
+ </ClippedPanel>
23
+ </LayoutRow>
24
+ <LayoutRow tag="div" variant="full-width" :style-class-passthrough="['mbe-20']">
25
+ <h2 class="page-heading-2">Circle</h2>
26
+ <div class="counter-panel">
27
+ <div class="counter-panel__counter">1</div>
28
+ <div class="counter-panel__title">Title</div>
29
+ <div class="counter-panel__content">This will be the content</div>
30
+ </div>
31
+ </LayoutRow>
32
+ </template>
33
+ </NuxtLayout>
34
+ </div>
35
+ </template>
36
+
37
+ <script setup lang="ts">
38
+ definePageMeta({
39
+ layout: false,
40
+ })
41
+
42
+ useHead({
43
+ title: "Browser title tag",
44
+ meta: [
45
+ {
46
+ name: "description",
47
+ content: "Meta description content",
48
+ },
49
+ ],
50
+ })
51
+ </script>
52
+
53
+ <style scoped lang="css">
54
+ .counter-panel {
55
+ display: inline-grid;
56
+ grid-template-areas: "select-stack";
57
+
58
+ aspect-ratio: 1;
59
+ width: 200px;
60
+
61
+ &:before {
62
+ content: "";
63
+ grid-area: select-stack;
64
+ background-color: red;
65
+
66
+ aspect-ratio: 1;
67
+ width: 200px;
68
+ /* clip-path: path(
69
+ 'M 10, 40 L 30, 40 A 10, 10, 0, 0, 0 40, 30 L 40, 10 A 10, 10, 0, 0, 1 50, 0 L 190, 0 A 10, 10, 0, 0, 1 200, 10 L 200, 190 A 10, 10, 0, 0, 1 190, 200 L 10, 200 A 10, 10, 0, 0, 1 0, 190 L 0, 50 A 10, 10, 0, 0, 1 10, 40 Z'
70
+ ); */
71
+ clip-path: path(
72
+ "M 10, 40 L 20, 40 A 20, 20, 0, 0, 0 40, 20 L 40, 10 A 10, 10, 0, 0, 1 50, 0 L 190, 0 A 10, 10, 0, 0, 1 200, 10 L 200, 190 A 10, 10, 0, 0, 1 190, 200 L 10, 200 A 10, 10, 0, 0, 1 0, 190 L 0, 50 A 10, 10, 0, 0, 1 10, 40 Z"
73
+ );
74
+ }
75
+
76
+ .counter-panel__counter {
77
+ grid-area: select-stack;
78
+ display: flex;
79
+ justify-self: start;
80
+ align-items: center;
81
+ justify-content: center;
82
+ background-color: white;
83
+ color: black;
84
+ border-radius: 50%;
85
+ border: 5px solid red;
86
+ aspect-ratio: 1;
87
+ width: 30px;
88
+ }
89
+
90
+ .counter-panel__title {
91
+ grid-area: select-stack;
92
+ display: flex;
93
+ justify-self: center;
94
+ }
95
+
96
+ .counter-panel__content {
97
+ grid-area: select-stack;
98
+ align-content: center;
99
+ }
100
+ }
101
+ </style>
@@ -0,0 +1,323 @@
1
+ <template>
2
+ <div>
3
+ <NuxtLayout name="default">
4
+ <template #layout-content>
5
+ <LayoutRow tag="div" variant="content" :style-class-passthrough="['mbe-20']">
6
+ <h2 class="page-heading-2">Profile Section</h2>
7
+ </LayoutRow>
8
+
9
+ <LayoutRow tag="div" variant="content" :style-class-passthrough="['mbe-20']">
10
+ <ContactSection tag="section" :style-class-passthrough="['mbe-20']">
11
+ <template #indicator-0>
12
+ <Icon name="lucide-map-pin" class="indicator-icon" />
13
+ </template>
14
+ <template #item-0>
15
+ <div>
16
+ <HeroText
17
+ tag="h2"
18
+ axis="horizontal"
19
+ font-size="label"
20
+ :text-content="[{ text: 'Location', styleClass: 'normal' }]"
21
+ :style-class-passthrough="['mbe-20']"
22
+ />
23
+
24
+ <p class="page-body-normal">
25
+ Mobile service across Bath — Weston, Lansdown, Larkhall, Oldfield Park &amp; surrounding areas.
26
+ </p>
27
+ </div>
28
+ </template>
29
+
30
+ <template #indicator-1>
31
+ <Icon name="lucide-phone" class="indicator-icon" />
32
+ </template>
33
+ <template #item-1>
34
+ <div>
35
+ <HeroText
36
+ tag="h2"
37
+ axis="horizontal"
38
+ font-size="label"
39
+ :text-content="[{ text: 'Contact', styleClass: 'normal' }]"
40
+ :style-class-passthrough="['mbe-20']"
41
+ />
42
+ <p class="page-body-normal">
43
+ Call or text to arrange your home appointment. Evening and weekend slots available.
44
+ </p>
45
+ </div>
46
+ </template>
47
+
48
+ <template #indicator-2>
49
+ <Icon name="lucide-clock" class="indicator-icon" />
50
+ </template>
51
+ <template #item-2>
52
+ <div>
53
+ <HeroText
54
+ tag="h2"
55
+ axis="horizontal"
56
+ font-size="label"
57
+ :text-content="[{ text: 'Hours', styleClass: 'normal' }]"
58
+ :style-class-passthrough="['mbe-20']"
59
+ />
60
+ <p class="page-body-normal">
61
+ Monday
62
+ <em>to</em>
63
+ Sunday
64
+ <br />
65
+ <em>between</em>
66
+ 9:00 AM
67
+ <em>and</em>
68
+ 7:00 PM
69
+ <br />
70
+ Flexible by arrangement
71
+ <br />
72
+ Sunday appointments available on request and a premium.
73
+ </p>
74
+ </div>
75
+ </template>
76
+
77
+ <template #form>
78
+ <ClientOnly>
79
+ <form ref="formRef" @submit.stop.prevent="submitForm()">
80
+ <div id="contact-aria-live" aria-live="assertive"></div>
81
+
82
+ <FormField width="wide" :has-gutter="false">
83
+ <template #default>
84
+ <InputTextWithLabel
85
+ id="fullName"
86
+ v-model="state.fullName"
87
+ type="text"
88
+ :maxlength="fieldMaxLength('fullName')"
89
+ name="fullName"
90
+ placeholder="eg. Jane Smith"
91
+ label="Full name"
92
+ :error-message="formErrors?.fullName?._errors[0] ?? ''"
93
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.fullName)"
94
+ :required="true"
95
+ input-variant="underlined"
96
+ >
97
+ <template #left>
98
+ <Icon name="radix-icons:person" class="icon" />
99
+ </template>
100
+ </InputTextWithLabel>
101
+ </template>
102
+ </FormField>
103
+
104
+ <FormField width="wide" :has-gutter="false">
105
+ <template #default>
106
+ <InputTextWithLabel
107
+ id="telNumber"
108
+ v-model="state.telNumber"
109
+ type="tel"
110
+ inputmode="tel"
111
+ :maxlength="fieldMaxLength('telNumber')"
112
+ name="telNumber"
113
+ placeholder="eg. 07700 900000"
114
+ label="Telephone number"
115
+ :error-message="formErrors?.telNumber?._errors[0] ?? ''"
116
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.telNumber)"
117
+ :required="true"
118
+ input-variant="underlined"
119
+ >
120
+ <template #left>
121
+ <Icon name="lucide-phone" class="icon" />
122
+ </template>
123
+ </InputTextWithLabel>
124
+ </template>
125
+ </FormField>
126
+
127
+ <FormField width="wide" :has-gutter="false">
128
+ <template #default>
129
+ <InputTextWithLabel
130
+ id="emailAddress"
131
+ v-model="state.emailAddress"
132
+ type="email"
133
+ inputmode="email"
134
+ :maxlength="fieldMaxLength('emailAddress')"
135
+ name="emailAddress"
136
+ placeholder="eg. name@domain.com"
137
+ label="Email address"
138
+ :error-message="formErrors?.emailAddress?._errors[0] ?? ''"
139
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.emailAddress)"
140
+ :required="true"
141
+ input-variant="underlined"
142
+ >
143
+ <template #left>
144
+ <Icon name="radix-icons:envelope-closed" class="icon" />
145
+ </template>
146
+ </InputTextWithLabel>
147
+ </template>
148
+ </FormField>
149
+
150
+ <FormField v-if="servicesData !== null" width="wide" :has-gutter="false">
151
+ <template #default>
152
+ <MultipleCheckboxes
153
+ v-model="state.services"
154
+ v-model:field-data="servicesData"
155
+ name="services"
156
+ legend="Services of interest"
157
+ label="Select all that apply"
158
+ :error-message="formErrors?.services?._errors[0] ?? ''"
159
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.services)"
160
+ options-layout="inline"
161
+ :is-button="true"
162
+ :is-pill="false"
163
+ input-variant="underlined"
164
+ >
165
+ <template #descriptionText>Choose one or more services you're interested in.</template>
166
+ </MultipleCheckboxes>
167
+ </template>
168
+ </FormField>
169
+
170
+ <FormField width="wide" :has-gutter="false">
171
+ <template #default>
172
+ <InputTextareaWithLabel
173
+ v-model="state.comments"
174
+ :maxlength="fieldMaxLength('comments')"
175
+ name="comments"
176
+ placeholder="Tell us a bit more about what you're looking for…"
177
+ label="Comments"
178
+ :error-message="formErrors?.comments?._errors[0] ?? ''"
179
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.comments)"
180
+ input-variant="underlined"
181
+ >
182
+ <template #descriptionText>Optional — any extra information that might help us.</template>
183
+ </InputTextareaWithLabel>
184
+ </template>
185
+ </FormField>
186
+
187
+ <FormField width="wide" :has-gutter="false">
188
+ <template #default>
189
+ <InputButtonCore
190
+ type="submit"
191
+ :is-pending="zodFormControl.displayLoader"
192
+ :readonly="zodFormControl.submitDisabled"
193
+ button-text="Send enquiry"
194
+ @click.stop.prevent="submitForm()"
195
+ />
196
+ </template>
197
+ </FormField>
198
+ </form>
199
+ </ClientOnly>
200
+ </template>
201
+ </ContactSection>
202
+ </LayoutRow>
203
+ </template>
204
+ </NuxtLayout>
205
+ </div>
206
+ </template>
207
+
208
+ <script setup lang="ts">
209
+ import { z } from "zod";
210
+ import type { IFormMultipleOptions } from "~/types/forms/types.forms";
211
+
212
+ type ReturnTypeUseZodValidation = ReturnType<typeof useZodValidation>;
213
+
214
+ definePageMeta({
215
+ layout: false,
216
+ });
217
+
218
+ useHead({
219
+ title: "Contact Section",
220
+ meta: [
221
+ {
222
+ name: "description",
223
+ content: "Contact Section Meta description content",
224
+ },
225
+ ],
226
+ bodyAttrs: {
227
+ class: "contact-section-page",
228
+ },
229
+ });
230
+
231
+ // Fetch the real services list from the existing API endpoint.
232
+ // Transform the raw service objects into the IFormMultipleOptions shape
233
+ // that MultipleCheckboxes expects: { id, name, value, label }[].
234
+ // Fetch the real services list from the existing API endpoint.
235
+ // Transform the raw service objects into the IFormMultipleOptions shape
236
+ // that MultipleCheckboxes expects: { id, name, value, label }[].
237
+ type ServiceItem = { slug: string; title: string };
238
+ const { data: servicesData } = await useFetch<IFormMultipleOptions>("/api/services", {
239
+ transform: (raw) => {
240
+ const services = raw as unknown as ServiceItem[];
241
+ return {
242
+ data: services.map((s) => ({ id: s.slug, name: "services", value: s.slug, label: s.title })),
243
+ total: services.length,
244
+ skip: 0,
245
+ limit: services.length,
246
+ };
247
+ },
248
+ });
249
+
250
+ const formSchema = z.object({
251
+ fullName: z
252
+ .string({ error: (i) => (i.input === undefined ? "Full name is required" : "Full name must be a string") })
253
+ .trim()
254
+ .min(2, "Name is too short")
255
+ .max(80, "Name is too long"),
256
+ telNumber: z
257
+ .string({
258
+ error: (i) => (i.input === undefined ? "Telephone number is required" : "Telephone number must be a string"),
259
+ })
260
+ .trim()
261
+ .min(7, "Telephone number is too short")
262
+ .max(20, "Telephone number is too long"),
263
+ emailAddress: z
264
+ .string({ error: (i) => (i.input === undefined ? "Email address is required" : "Email address must be a string") })
265
+ .email({ error: "Invalid email address" }),
266
+ services: z.array(z.string()).min(1, "Please select at least one service"),
267
+ comments: z.string().trim().max(500, "Comments must be 500 characters or fewer").optional(),
268
+ });
269
+
270
+ type FormSchema = z.infer<typeof formSchema>;
271
+ const formErrors = computed<z.ZodFormattedError<FormSchema> | null>(() => zodErrorObj.value);
272
+
273
+ const state = reactive({
274
+ fullName: "",
275
+ telNumber: "",
276
+ emailAddress: "",
277
+ services: [] as string[],
278
+ comments: "",
279
+ });
280
+
281
+ const formRef = ref<HTMLFormElement | null>(null);
282
+
283
+ const { initZodForm, zodFormControl, zodErrorObj, doZodValidate, fieldMaxLength, scrollToFirstError } =
284
+ useZodValidation<typeof formSchema>(formSchema, formRef) as ReturnTypeUseZodValidation;
285
+
286
+ initZodForm();
287
+
288
+ const submitForm = async () => {
289
+ zodFormControl.submitAttempted = true;
290
+ if (!(await doZodValidate(state))) {
291
+ scrollToFirstError();
292
+ return;
293
+ }
294
+ zodFormControl.displayLoader = true;
295
+ try {
296
+ // POST validated form data to the server route — Resend is called server-side
297
+ await $fetch("/api/contact", { method: "POST", body: state });
298
+ zodFormControl.submitSuccessful = true;
299
+ } catch (error) {
300
+ // Server-side failures (e.g. Resend API error) surface here
301
+ console.warn("Contact form submission failed", error);
302
+ } finally {
303
+ zodFormControl.displayLoader = false;
304
+ }
305
+ };
306
+
307
+ watch(
308
+ () => state,
309
+ () => {
310
+ doZodValidate(state);
311
+ },
312
+ { deep: true }
313
+ );
314
+ </script>
315
+
316
+ <style lang="css">
317
+ .contact-section-page {
318
+ .contact-section {
319
+ /* max-inline-size: 800px; */
320
+ margin-inline: auto;
321
+ }
322
+ }
323
+ </style>