srcdev-nuxt-components 8.0.3 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +86 -6
  511. package/package.json +51 -14
  512. package/types/components/css-anchor-polyfill.d.ts +1 -0
@@ -0,0 +1,913 @@
1
+ <template>
2
+ <div>
3
+ <NuxtLayout name="default">
4
+ <template #layout-content>
5
+ <ContentGrid>
6
+ <template #slot1>
7
+ <div>
8
+ <h1 class="header-1">Example form</h1>
9
+ <p class="body-normal">Use 'test@test.com' to trigger server errors</p>
10
+ </div>
11
+ </template>
12
+ </ContentGrid>
13
+ <ContentGrid>
14
+ <template #slot1>
15
+ <p>Themes switcher</p>
16
+ <ul class="flex-group">
17
+ <li>
18
+ <InputButtonCore
19
+ type="button"
20
+ :is-pending="false"
21
+ button-text="Default"
22
+ theme="default"
23
+ @click.stop.prevent="swapTheme('default')"
24
+ />
25
+ </li>
26
+ <li>
27
+ <InputButtonCore
28
+ type="button"
29
+ :is-pending="false"
30
+ button-text="Success"
31
+ theme="success"
32
+ @click.stop.prevent="swapTheme('success')"
33
+ />
34
+ </li>
35
+ <li>
36
+ <InputButtonCore
37
+ type="button"
38
+ :is-pending="false"
39
+ button-text="Error"
40
+ theme="error"
41
+ @click.stop.prevent="swapTheme('error')"
42
+ />
43
+ </li>
44
+ <li>
45
+ <InputButtonCore
46
+ type="button"
47
+ :is-pending="false"
48
+ button-text="Warning"
49
+ theme="warning"
50
+ @click.stop.prevent="swapTheme('warning')"
51
+ />
52
+ </li>
53
+ </ul>
54
+
55
+ <p>Select type of text input to display</p>
56
+ <ul class="flex-group">
57
+ <li>
58
+ <InputButtonCore
59
+ type="button"
60
+ button-text="Normal"
61
+ theme="default"
62
+ @click.stop.prevent="inputVariant = 'normal'"
63
+ />
64
+ </li>
65
+ <li>
66
+ <InputButtonCore
67
+ type="button"
68
+ button-text="Underlined"
69
+ theme="default"
70
+ @click.stop.prevent="inputVariant = 'underlined'"
71
+ />
72
+ </li>
73
+ </ul>
74
+
75
+ <LayoutRow tag="div" variant="popout" :style-class-passthrough="['mbe-20']">
76
+ <h1 class="page-heading-1 mbe-18">Settings</h1>
77
+ <h2 class="page-heading-2 mbe-18">Theme Switcher</h2>
78
+ <p class="page-body-normal mbe-18">As of 23rd Feb '26 - Tweaking dark mode palette)</p>
79
+
80
+ <DisplayThemeSwitch />
81
+ </LayoutRow>
82
+
83
+ <FormWrapper width="medium">
84
+ <template #default>
85
+ <ClientOnly>
86
+ <form ref="formRef" class="form-wrapper" @submit.stop.prevent="submitForm()">
87
+ <div id="aria-live-message" aria-live="assertive"></div>
88
+
89
+ <FormField v-if="countriesData !== null" width="wide" :has-gutter="false">
90
+ <template #default>
91
+ <InputSelectWithLabel
92
+ id="countrySelect"
93
+ v-model="state.countrySelect"
94
+ v-model:field-data="countriesData"
95
+ name="countrySelect"
96
+ :required="true"
97
+ label="Where are you from?"
98
+ placeholder="Please select a country"
99
+ :error-message="formErrors?.countrySelect?._errors[0] ?? ''"
100
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.countrySelect)"
101
+ :theme
102
+ :input-variant
103
+ >
104
+ <template #descriptionText>This is a descriptionText for the message input.</template>
105
+ </InputSelectWithLabel>
106
+ </template>
107
+ </FormField>
108
+
109
+ <FormField width="wide" :has-gutter="false">
110
+ <template #default>
111
+ <InputTextWithLabel
112
+ id="emailAddress"
113
+ v-model="state.emailAddress"
114
+ type="email"
115
+ inputmode="email"
116
+ :maxlength="fieldMaxLength('email')"
117
+ name="emailAddress"
118
+ placeholder="eg. name@domain.com"
119
+ label="Email address"
120
+ :error-message="formErrors?.emailAddress?._errors[0] ?? ''"
121
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.emailAddress)"
122
+ :required="true"
123
+ :style-class-passthrough="['style-1', 'style-2']"
124
+ :theme
125
+ :input-variant
126
+ >
127
+ <template #descriptionText>This is a descriptionText for the email input.</template>
128
+ <template #left>
129
+ <Icon name="radix-icons:envelope-closed" class="icon" />
130
+ </template>
131
+ <template #right>
132
+ <Icon name="radix-icons:envelope-closed" class="icon" />
133
+ </template>
134
+ </InputTextWithLabel>
135
+ </template>
136
+ </FormField>
137
+
138
+ <FormField width="wide" :has-gutter="false">
139
+ <template #default>
140
+ <InputTextWithLabel
141
+ id="username"
142
+ v-model="state.username"
143
+ type="text"
144
+ :maxlength="fieldMaxLength('username')"
145
+ name="username"
146
+ placeholder="eg. JoeBloggs1"
147
+ label="Username"
148
+ :error-message="formErrors?.username?._errors[0] ?? ''"
149
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.username)"
150
+ :required="true"
151
+ :style-class-passthrough="['style-1', 'style-2']"
152
+ :theme
153
+ :input-variant
154
+ >
155
+ <template #descriptionHtml>
156
+ <p class="mbs-4 mbe-8" style="font-weight: 900">
157
+ This is a descriptionHtml for the email input.
158
+ </p>
159
+ </template>
160
+ <template #left>
161
+ <Icon name="radix-icons:person" class="icon" />
162
+ </template>
163
+ </InputTextWithLabel>
164
+ </template>
165
+ </FormField>
166
+
167
+ <FormField width="wide" :has-gutter="false">
168
+ <template #default>
169
+ <InputPasswordWithLabel
170
+ id="password"
171
+ v-model="state.password"
172
+ :maxlength="fieldMaxLength('password')"
173
+ name="password"
174
+ placeholder="eg. a mixure of numbers and letters"
175
+ label="Password"
176
+ :error-message="formErrors?.password?._errors[0] ?? ''"
177
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.password)"
178
+ :required="true"
179
+ :style-class-passthrough="['style-1', 'style-2']"
180
+ :theme
181
+ :input-variant
182
+ >
183
+ <template #descriptionText>This is a descriptionText for the password input.</template>
184
+ <template #right>
185
+ <Icon name="radix-icons:eye-open" class="icon" />
186
+ </template>
187
+ </InputPasswordWithLabel>
188
+ </template>
189
+ </FormField>
190
+
191
+ <FormField width="wide" :has-gutter="false">
192
+ <template #default>
193
+ <InputTextareaWithLabel
194
+ v-model="state.message"
195
+ :maxlength="fieldMaxLength('message')"
196
+ name="message"
197
+ placeholder="Type your message here"
198
+ label="Your message"
199
+ :error-message="formErrors?.message?._errors[0] ?? ''"
200
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.message)"
201
+ :required="true"
202
+ :style-class-passthrough="['style-1', 'style-2']"
203
+ :theme
204
+ :input-variant
205
+ >
206
+ <template #descriptionText>This is a descriptionText for the message input.</template>
207
+ </InputTextareaWithLabel>
208
+ </template>
209
+ </FormField>
210
+
211
+ <FormField v-if="tagsData !== null" width="wide" :has-gutter="false">
212
+ <template #default>
213
+ <MultipleCheckboxes
214
+ v-model="state.tags"
215
+ v-model:field-data="tagsData"
216
+ name="tags"
217
+ legend="Choose tags (MultipleCheckboxes)"
218
+ :required="true"
219
+ label="Check between 3 and 8 tags"
220
+ placeholder="eg. Type something here"
221
+ :is-button="true"
222
+ :is-pill="false"
223
+ :error-message="formErrors?.tags?._errors[0] ?? ''"
224
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.tags)"
225
+ options-layout="inline"
226
+ :theme
227
+ :display-as-disc="false"
228
+ >
229
+ <template #descriptionText>descriptionText slot</template>
230
+ <template #itemIcon>
231
+ <Icon name="material-symbols:bookmark-add-outline" class="icon" />
232
+ </template>
233
+ </MultipleCheckboxes>
234
+ </template>
235
+ </FormField>
236
+
237
+ <FormField width="wide" :has-gutter="false">
238
+ <template #default>
239
+ <ToggleSwitchWithLabel
240
+ v-model="state.darkMode"
241
+ name="darkMode"
242
+ label="Toggle Dark mode"
243
+ true-value="dark"
244
+ false-value="light"
245
+ :theme
246
+ >
247
+ <template #description>
248
+ <p class="label-description">Light or Dark mode?</p>
249
+ </template>
250
+ <template #iconOn>
251
+ <Icon name="radix-icons:sun" class="icon" />
252
+ </template>
253
+ <template #iconOff>
254
+ <Icon name="radix-icons:moon" class="icon" />
255
+ </template>
256
+ </ToggleSwitchWithLabel>
257
+ </template>
258
+ </FormField>
259
+
260
+ <FormField width="wide" :has-gutter="false">
261
+ <template #default>
262
+ <ToggleSwitchWithLabelInline
263
+ v-model="state.anotherToggle"
264
+ name="anotherToggle"
265
+ label="Toggle Dark mode (inline)"
266
+ :theme
267
+ >
268
+ <template #iconOn>
269
+ <Icon name="radix-icons:moon" class="icon" />
270
+ </template>
271
+ <template #iconOff>
272
+ <Icon name="radix-icons:sun" class="icon" />
273
+ </template>
274
+ </ToggleSwitchWithLabelInline>
275
+ </template>
276
+ </FormField>
277
+
278
+ <FormField width="wide" :has-gutter="false">
279
+ <template #default>
280
+ <ToggleSwitchWithLabel
281
+ v-model="state.toggleBoolean"
282
+ :error-message="formErrors?.toggleBoolean?._errors[0] ?? ''"
283
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.toggleBoolean)"
284
+ name="toggleBoolean"
285
+ label="Toggle Dark mode"
286
+ :theme
287
+ >
288
+ <template #descriptionHtml>
289
+ <p class="label-description">Toggle some value</p>
290
+ </template>
291
+ </ToggleSwitchWithLabel>
292
+ </template>
293
+ </FormField>
294
+
295
+ <FormField width="wide" :has-gutter="false">
296
+ <template #default>
297
+ <InputTextAsNumberWithLabel
298
+ v-model.number="state.count2"
299
+ :maxlength="fieldMaxLength('count2')"
300
+ :min="25"
301
+ :max="75"
302
+ :step="5"
303
+ name="count2"
304
+ placeholder="eg. 10"
305
+ label="How many things? Between 25 & 75"
306
+ :error-message="formErrors?.count2?._errors[0] ?? ''"
307
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.count2)"
308
+ :required="true"
309
+ :style-class-passthrough="['style-1', 'style-2']"
310
+ :theme
311
+ >
312
+ <template #descriptionHtml>
313
+ <p class="label-description">Input type="text" inputmode="numeric"</p>
314
+ </template>
315
+ <template #left>
316
+ <Icon name="gridicons:minus-small" class="icon" />
317
+ </template>
318
+ <template #right>
319
+ <Icon name="gridicons:plus-small" class="icon" />
320
+ </template>
321
+ </InputTextAsNumberWithLabel>
322
+ </template>
323
+ </FormField>
324
+
325
+ <FormField width="wide" :has-gutter="false">
326
+ <template #default>
327
+ <InputNumberDefault
328
+ v-model.number="state.count"
329
+ name="count"
330
+ label="How many things? Between 25 & 75 , step 5"
331
+ :min="25"
332
+ :max="75"
333
+ :step="5"
334
+ placeholder="eg. What\'s your count?"
335
+ :error-message="formErrors?.count?._errors[0] ?? ''"
336
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.count)"
337
+ :required="true"
338
+ :style-class-passthrough="['count-1', 'count-2']"
339
+ :theme
340
+ >
341
+ <template #descriptionHtml>
342
+ <p class="label-description">Input type="number" inputmode="numeric"</p>
343
+ </template>
344
+ <template #left>
345
+ <Icon name="gridicons:minus-small" class="icon" />
346
+ </template>
347
+ <template #right>
348
+ <Icon name="gridicons:plus-small" class="icon" />
349
+ </template>
350
+ </InputNumberDefault>
351
+ </template>
352
+ </FormField>
353
+
354
+ <FormField v-if="tagsData !== null" width="wide" :has-gutter="false">
355
+ <template #default>
356
+ <MultipleRadiobuttons
357
+ v-model="state.tagsRadio"
358
+ v-model:field-data="tagsData"
359
+ name="tagsRadio"
360
+ legend="Choose tags (as radiobuttons)"
361
+ :required="true"
362
+ label="Check between 3 and 8 tags"
363
+ placeholder="eg. Type something here"
364
+ :is-button="true"
365
+ :is-pill="true"
366
+ :error-message="formErrors?.tagsRadio?._errors[0] ?? ''"
367
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.tagsRadio)"
368
+ options-layout="inline"
369
+ :theme
370
+ direction="row-reverse"
371
+ >
372
+ <template #description>
373
+ <p class="label-description">This is description: optionsLayout = 'inline'</p>
374
+ </template>
375
+ </MultipleRadiobuttons>
376
+ </template>
377
+ </FormField>
378
+
379
+ <FormField
380
+ width="wide"
381
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.score)"
382
+ :has-gutter="false"
383
+ >
384
+ <template #default>
385
+ <InputRangeDefault
386
+ v-model.number="state.score"
387
+ name="score"
388
+ label="Score between 0 & 100"
389
+ :min="0"
390
+ :max="100"
391
+ :step="10"
392
+ placeholder="eg. What\'s your score?"
393
+ :error-message="formErrors?.score?._errors[0] ?? ''"
394
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.score)"
395
+ :required="true"
396
+ :style-class-passthrough="['style-1', 'style-2']"
397
+ :theme
398
+ >
399
+ <template #descriptionText>
400
+ <p class="label-description">This is a description of what the user is required to do</p>
401
+ </template>
402
+ <template #datalist>
403
+ <datalist id="score-datalist" class="input-range-datalist">
404
+ <option value="0" label="Rubbish!"></option>
405
+ <option value="25" label="Below par"></option>
406
+ <option value="50" label="Average"></option>
407
+ <option value="75" label="Quite good"></option>
408
+ <option value="100" label="Excellent"></option>
409
+ </datalist>
410
+ </template>
411
+ <template #left>
412
+ <Icon name="gridicons:minus-small" class="icon" />
413
+ </template>
414
+ <template #right>
415
+ <Icon name="gridicons:plus-small" class="icon" />
416
+ </template>
417
+ </InputRangeDefault>
418
+ </template>
419
+ </FormField>
420
+
421
+ <FormField v-if="titleData !== null" width="wide" :has-gutter="false">
422
+ <template #default>
423
+ <MultipleRadiobuttons
424
+ v-model="state.title"
425
+ v-model:field-data="titleData"
426
+ name="title"
427
+ legend="What is your title"
428
+ :required="true"
429
+ label="Check one"
430
+ placeholder="eg. Type something here"
431
+ :error-message="formErrors?.title?._errors[0] ?? ''"
432
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.title)"
433
+ options-layout="inline"
434
+ :theme
435
+ >
436
+ <template #checkedIcon>
437
+ <Icon name="material-symbols:check-small" class="input-checked-icon" />
438
+ </template>
439
+ <template #descriptionHtml>
440
+ <p class="label-description">
441
+ NOTE: Custom check icon set via slot
442
+ <br />
443
+ This is description: optionsLayout = 'inline'
444
+ </p>
445
+ </template>
446
+ </MultipleRadiobuttons>
447
+ </template>
448
+ </FormField>
449
+
450
+ <FormField v-if="titleData !== null" width="wide" :has-gutter="false">
451
+ <template #default>
452
+ <MultipleRadiobuttons
453
+ v-model="state.otherTitle"
454
+ v-model:field-data="titleData"
455
+ name="otherTitle"
456
+ legend="What is your title"
457
+ :required="true"
458
+ label="Check one"
459
+ placeholder="eg. Type something here"
460
+ :error-message="formErrors?.otherTitle?._errors[0] ?? ''"
461
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.otherTitle)"
462
+ options-layout="equal-widths"
463
+ :theme
464
+ >
465
+ <template #descriptionHtml>
466
+ <p class="label-description">This is description: optionsLayout = 'equal-widths'</p>
467
+ </template>
468
+ </MultipleRadiobuttons>
469
+ </template>
470
+ </FormField>
471
+
472
+ <FormField v-if="citiesData !== null" width="wide" :has-gutter="false">
473
+ <template #default>
474
+ <MultipleCheckboxes
475
+ v-model="state.cities"
476
+ v-model:field-data="citiesData"
477
+ name="cities"
478
+ legend="Choose a location"
479
+ :required="true"
480
+ label="Check all Cities you like"
481
+ placeholder="eg. Type something here"
482
+ :error-message="formErrors?.cities?._errors[0] ?? ''"
483
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.cities)"
484
+ options-layout="inline"
485
+ :theme
486
+ >
487
+ <template #description>
488
+ <p class="label-description">This is description: optionsLayout = 'equal-widths'</p>
489
+ </template>
490
+ </MultipleCheckboxes>
491
+ </template>
492
+ </FormField>
493
+
494
+ <FormField v-if="countriesData !== null" width="wide" :has-gutter="false">
495
+ <template #default>
496
+ <MultipleCheckboxes
497
+ v-model="state.countries"
498
+ v-model:field-data="countriesData"
499
+ name="countries"
500
+ legend="Choose a country"
501
+ :required="true"
502
+ label="Check all Countries you like"
503
+ placeholder="eg. Type something here"
504
+ :error-message="formErrors?.countries?._errors[0] ?? ''"
505
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.countries)"
506
+ options-layout="equal-widths"
507
+ :theme
508
+ >
509
+ <template #checkedIcon>
510
+ <Icon name="material-symbols:circle" class="input-checked-icon" />
511
+ </template>
512
+ <template #descriptionHtml>
513
+ <p class="label-description">
514
+ NOTE: Custom chefck icon set via slot
515
+ <br />
516
+ This is description: optionsLayout = 'inline'
517
+ </p>
518
+ </template>
519
+ </MultipleCheckboxes>
520
+ </template>
521
+ </FormField>
522
+
523
+ <FormField width="wide" :has-gutter="false">
524
+ <template #default>
525
+ <SingleCheckbox
526
+ v-model="state.agreed"
527
+ name="agreed"
528
+ legend="I agree (label with description)"
529
+ label="Click to agree to something"
530
+ :required="true"
531
+ :error-message="formErrors?.agreed?._errors[0] ?? ''"
532
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.agreed)"
533
+ :theme
534
+ >
535
+ <template #description>
536
+ <p class="label-description">
537
+ You must
538
+ <strong>agree</strong>
539
+ to continue
540
+ </p>
541
+ </template>
542
+ </SingleCheckbox>
543
+ </template>
544
+ </FormField>
545
+
546
+ <FormField width="wide" :has-gutter="false">
547
+ <template #default>
548
+ <SingleCheckbox
549
+ v-model="state.agree"
550
+ name="agree"
551
+ legend="I agree (label no description)"
552
+ label="Click to agree to something"
553
+ :required="true"
554
+ :error-message="formErrors?.agree?._errors[0] ?? ''"
555
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.agree)"
556
+ :theme
557
+ />
558
+ </template>
559
+ </FormField>
560
+
561
+ <FormField width="wide" :has-gutter="false">
562
+ <template #default>
563
+ <SingleCheckbox
564
+ v-model="state.terms"
565
+ name="terms"
566
+ legend="Terms and conditions"
567
+ :required="true"
568
+ :error-message="formErrors?.terms?._errors[0] ?? ''"
569
+ :field-has-error="Boolean(zodFormControl.submitAttempted && formErrors?.terms)"
570
+ :theme
571
+ >
572
+ <template #labelContent>
573
+ <span class="body-normal">
574
+ You must agree to our
575
+ <NuxtLink to="/typography" class="link-normal">terms and conditions</NuxtLink>
576
+ to continue
577
+ </span>
578
+ </template>
579
+ </SingleCheckbox>
580
+ </template>
581
+ </FormField>
582
+
583
+ <FormField width="wide" :has-gutter="false">
584
+ <template #default>
585
+ <InputButtonCore
586
+ type="button"
587
+ :is-pending="false"
588
+ :readonly="zodFormControl.submitDisabled"
589
+ button-text="Submit"
590
+ :theme
591
+ @click.stop.prevent="submitForm()"
592
+ />
593
+ </template>
594
+ </FormField>
595
+ </form>
596
+ </ClientOnly>
597
+ </template>
598
+ </FormWrapper>
599
+ </template>
600
+ <template #slot2>
601
+ <ClientOnly>
602
+ <p>Client only state</p>
603
+ <pre>
604
+ {{ state }}
605
+ </pre>
606
+ <p>Client only zodFormControl</p>
607
+ <pre>
608
+ {{ zodFormControl }}
609
+ </pre>
610
+ <p>Client only formErrors</p>
611
+
612
+ <pre>
613
+ {{ formErrors }}
614
+ </pre>
615
+ </ClientOnly>
616
+ </template>
617
+ </ContentGrid>
618
+ </template>
619
+ </NuxtLayout>
620
+ </div>
621
+ </template>
622
+
623
+ <script setup lang="ts">
624
+ import { z } from "zod";
625
+ import type { IFormMultipleOptions, FormUiTheme, InputUiVariant } from "~/types/forms/types.forms";
626
+ // Inline fallback for ReturnTypeUseZodValidation if not exported
627
+ type ReturnTypeUseZodValidation = ReturnType<typeof useZodValidation>;
628
+
629
+ definePageMeta({
630
+ layout: false,
631
+ });
632
+
633
+ useHead({
634
+ title: "Text Field Example",
635
+ meta: [{ name: "description", content: "Homepage" }],
636
+ bodyAttrs: {
637
+ class: "text-fields-page",
638
+ },
639
+ });
640
+
641
+ const inputVariant = ref<InputUiVariant>("normal");
642
+ // const inputVariantData = ref<IFormMultipleOptions>({
643
+ // data: [
644
+ // {
645
+ // id: 'normal',
646
+ // name: 'normal',
647
+ // value: 'normal',
648
+ // label: 'Normal',
649
+ // },
650
+ // {
651
+ // id: 'outlined',
652
+ // name: 'outlined',
653
+ // value: 'outlined',
654
+ // label: 'Material - Outlined',
655
+ // },
656
+ // {
657
+ // id: 'underlined',
658
+ // name: 'underlined',
659
+ // value: 'underlined',
660
+ // label: 'Material - Underlined',
661
+ // },
662
+ // ],
663
+ // total: 3,
664
+ // skip: 0,
665
+ // limit: 3,
666
+ // });
667
+ const theme = ref<FormUiTheme>("default");
668
+ const swapTheme = (newTheme: FormUiTheme) => {
669
+ theme.value = newTheme;
670
+ };
671
+
672
+ // const variant = ref<"primary" | "secondary" | "tertiary">("primary");
673
+ // const swapVariant = (newVariant: "primary" | "secondary" | "tertiary") => {
674
+ // variant.value = newVariant;
675
+ // };
676
+
677
+ /*
678
+ * Fetch some sample data
679
+ **/
680
+ const { data: citiesData } = await useFetch<IFormMultipleOptions>("/api/places/list?category=cities");
681
+ const { data: countriesData } = await useFetch<IFormMultipleOptions>("/api/places/list?category=countries");
682
+ const { data: titleData } = await useFetch<IFormMultipleOptions>("/api/utils?category=title");
683
+ const { data: tagsData } = await useFetch<IFormMultipleOptions>("/api/recipes/tags");
684
+
685
+ /*
686
+ * Setup forms
687
+ */
688
+ const formSchema = z
689
+ .object({
690
+ emailAddress: z
691
+ .string({
692
+ error: (issue) => (issue.input === undefined ? "Email address is required" : "Email address must be a string"),
693
+ })
694
+ .email({ error: "Invalid email address" })
695
+ .refine(
696
+ (email) => {
697
+ // Defensive: previousState may be undefined on first run
698
+ return email !== (zodFormControl?.previousState?.emailAddress?.value ?? "");
699
+ },
700
+ {
701
+ error: "This email address has already been used",
702
+ }
703
+ ),
704
+ username: z
705
+ .string({
706
+ error: (issue) => (issue.input === undefined ? "Username is required" : "Username must be a string"),
707
+ })
708
+ .trim()
709
+ .min(2, "Username is too short")
710
+ .max(25, "Username is too long")
711
+ .refine(
712
+ (username) => {
713
+ return username !== (zodFormControl?.previousState?.username?.value ?? "");
714
+ },
715
+ {
716
+ error: "This username has already been used",
717
+ }
718
+ ),
719
+ password: z
720
+ .string()
721
+ .trim()
722
+ .min(8, "Password is too short")
723
+ .max(25, "Password is too long")
724
+ .refine(
725
+ (password) => {
726
+ return password !== (zodFormControl?.previousState?.password?.value ?? "");
727
+ },
728
+ {
729
+ error: "You've already used this password",
730
+ }
731
+ ),
732
+ message: z.string().trim().min(2, "Message is too short").max(255, "Message is too long"),
733
+ count: z
734
+ .number({
735
+ error: (issue) => (issue.input === undefined ? "Count is required" : "Count must be a number"),
736
+ })
737
+ .int({ error: "Count must be a whole number" })
738
+ .gte(25, "Count must be between 25 and 75")
739
+ .lte(75, "Count must be between 25 and 75")
740
+ .multipleOf(5, "Count must be a multiple of 5"),
741
+ count2: z
742
+ .number({
743
+ error: (issue) => (issue.input === undefined ? "Count is required" : "Count must be a number"),
744
+ })
745
+ .int({ error: "Count must be a whole number" })
746
+ .gte(25, "Count must be between 25 and 75")
747
+ .lte(75, "Count must be between 25 and 75"),
748
+ score: z
749
+ .number({
750
+ error: (issue) => (issue.input === undefined ? "Score is required" : "Score must be a number"),
751
+ })
752
+ .gte(0)
753
+ .lte(100),
754
+ cities: z.array(z.string()).min(1, "Please select at least one city"),
755
+ countries: z
756
+ .array(z.string())
757
+ .min(2, "Please select at least 2 countries")
758
+ .max(5, "Please select no more than 5 countries"),
759
+ countrySelect: z.string().min(1, { error: "Please select a country" }),
760
+ tags: z.array(z.string()).min(3, "Please select at least 3 tags").max(8, "Please select no more than 8 tags"),
761
+ tagsRadio: z.string().min(1, { error: "Please choose a tag" }),
762
+ darkMode: z.string().min(1, { error: "Please choose a mode" }),
763
+ title: z.string().min(1, { error: "Title is required" }),
764
+ otherTitle: z.string().min(1, { error: "Title is required" }),
765
+ toggleBoolean: z.boolean().refine((val) => val === true, { error: "You must tick this box" }),
766
+ agreed: z.boolean().refine((val) => val === true, { error: "You must tick this box" }),
767
+ agree: z.boolean().refine((val) => val === true, { error: "You must tick this box" }),
768
+ terms: z.boolean().refine((val) => val === true, { error: "You must accept our terms" }),
769
+ })
770
+ .required({
771
+ emailAddress: true,
772
+ username: true,
773
+ password: true,
774
+ message: true,
775
+ count: true,
776
+ count2: true,
777
+ score: true,
778
+ cities: true,
779
+ countries: true,
780
+ countrySelect: true,
781
+ tags: true,
782
+ tagsRadio: true,
783
+ title: true,
784
+ otherTitle: true,
785
+ toggleBoolean: true,
786
+ agreed: true,
787
+ agree: true,
788
+ terms: true,
789
+ });
790
+
791
+ type FormSchema = z.infer<typeof formSchema>;
792
+ const formErrors = computed<z.ZodFormattedError<FormSchema> | null>(() => zodErrorObj.value);
793
+
794
+ const state = reactive({
795
+ emailAddress: "",
796
+ username: "",
797
+ password: "",
798
+ message: "",
799
+ count: 25,
800
+ count2: 25,
801
+ score: 50,
802
+ cities: [],
803
+ countries: [],
804
+ countrySelect: "",
805
+ tags: [],
806
+ tagsRadio: [],
807
+ title: "",
808
+ otherTitle: "",
809
+ darkMode: "light",
810
+ toggleBoolean: false,
811
+ anotherToggle: false,
812
+ agreed: false,
813
+ agree: false,
814
+ terms: false,
815
+ });
816
+
817
+ const formRef = ref<HTMLFormElement | null>(null);
818
+
819
+ // If you don't have this type, you can define it inline as:
820
+ // type ReturnTypeUseZodValidation = ReturnType<typeof useZodValidation>;
821
+
822
+ const {
823
+ initZodForm,
824
+ zodFormControl,
825
+ zodErrorObj,
826
+ pushCustomErrors,
827
+ doZodValidate,
828
+ fieldMaxLength,
829
+ scrollToFirstError,
830
+ } = useZodValidation<typeof formSchema>(formSchema, formRef) as ReturnTypeUseZodValidation;
831
+
832
+ initZodForm();
833
+
834
+ const submitForm = async () => {
835
+ zodFormControl.submitAttempted = true;
836
+ if (!(await doZodValidate(state))) {
837
+ scrollToFirstError();
838
+ return;
839
+ }
840
+ zodFormControl.displayLoader = true;
841
+ try {
842
+ console.log("Form valid - post it");
843
+ const data = await $fetch("/api/textFields", {
844
+ method: "post",
845
+ body: state,
846
+ async onResponse({ response }) {
847
+ if (response.status === 400) {
848
+ console.log("onResponse", response);
849
+ console.log(response.status);
850
+
851
+ // useApiErrors(response._data.data.errors);
852
+ // for (const [key, message] of Object.entries(response._data.data.errors)) {
853
+ // console.log(`${key}: ${message}`);
854
+ // updateErrorMessages(key, message);
855
+ // }
856
+
857
+ // if (error instanceof Error) {
858
+ await pushCustomErrors(response._data, state);
859
+ // zodFormControl.formIsValid = false;
860
+ // }
861
+ // zodFormControl.submitAttempted = false;
862
+ }
863
+ if (response.status === 200) {
864
+ zodFormControl.submitSuccessful = true;
865
+ }
866
+ },
867
+ });
868
+ console.log("3: Finished data", data);
869
+ // return data;
870
+ } catch (error) {
871
+ console.warn("2: An error occured posting form data", error);
872
+ } finally {
873
+ zodFormControl.displayLoader = false;
874
+ }
875
+ };
876
+
877
+ watch(
878
+ () => state,
879
+ () => {
880
+ // console.log('Watching state');
881
+ doZodValidate(state);
882
+ },
883
+ { deep: true }
884
+ );
885
+ </script>
886
+
887
+ <style lang="css">
888
+ .text-fields-page {
889
+ .layout-row {
890
+ .ui-content-grid {
891
+ --_margin-inline: 12px;
892
+ }
893
+ }
894
+ }
895
+
896
+ .flex-group {
897
+ align-items: flex-start;
898
+ display: flex;
899
+ flex-wrap: wrap;
900
+ gap: 2.4rem;
901
+ margin-bottom: 3.2rem;
902
+ }
903
+
904
+ ul.flex-group {
905
+ list-style-type: none;
906
+ padding: 0;
907
+ }
908
+
909
+ .header-1 {
910
+ font-family: var(--font-family);
911
+ color: var(--brand-success-text-text);
912
+ }
913
+ </style>