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,269 @@
1
+ // InputButtonCore.test.ts
2
+ import { describe, it, expect, afterEach } from "vitest";
3
+ import { mountSuspended } from "@nuxt/test-utils/runtime";
4
+ import InputButtonCore from "../InputButtonCore.vue";
5
+
6
+ // --- Types ---
7
+ interface InputButtonCoreInstance {
8
+ hasLeftSlot: boolean;
9
+ hasRightSlot: boolean;
10
+ hasIconOnlySlot: boolean;
11
+ buttonClasses: string[];
12
+ }
13
+
14
+ // --- Helpers ---
15
+ const createWrapper = async (props: Record<string, unknown> = {}, slots: Record<string, string> = {}) => {
16
+ return mountSuspended(InputButtonCore, {
17
+ props: { buttonText: "Click me", ...props },
18
+ slots,
19
+ });
20
+ };
21
+
22
+ describe("InputButtonCore", () => {
23
+ let wrapper: Awaited<ReturnType<typeof createWrapper>>;
24
+
25
+ afterEach(() => {
26
+ wrapper?.unmount();
27
+ });
28
+
29
+ // -------------------------
30
+ // Snapshots
31
+ // -------------------------
32
+ describe("Snapshots", () => {
33
+ it("primary (default)", async () => {
34
+ wrapper = await createWrapper();
35
+ expect(wrapper.html()).toMatchSnapshot();
36
+ });
37
+
38
+ it("secondary variant", async () => {
39
+ wrapper = await createWrapper({ variant: "secondary" });
40
+ expect(wrapper.html()).toMatchSnapshot();
41
+ });
42
+
43
+ it("tertiary variant", async () => {
44
+ wrapper = await createWrapper({ variant: "tertiary" });
45
+ expect(wrapper.html()).toMatchSnapshot();
46
+ });
47
+
48
+ it("pill", async () => {
49
+ wrapper = await createWrapper({ isPill: true });
50
+ expect(wrapper.html()).toMatchSnapshot();
51
+ });
52
+
53
+ it("pending state", async () => {
54
+ wrapper = await createWrapper({ isPending: true, hasPendingEffect: true });
55
+ expect(wrapper.html()).toMatchSnapshot();
56
+ });
57
+
58
+ it("readonly", async () => {
59
+ wrapper = await createWrapper({ readonly: true });
60
+ expect(wrapper.html()).toMatchSnapshot();
61
+ });
62
+
63
+ it("with left and right slots", async () => {
64
+ wrapper = await createWrapper(
65
+ {},
66
+ {
67
+ left: '<span data-testid="left-icon">←</span>',
68
+ right: '<span data-testid="right-icon">→</span>',
69
+ }
70
+ );
71
+ expect(wrapper.html()).toMatchSnapshot();
72
+ });
73
+
74
+ it("icon-only slot", async () => {
75
+ wrapper = await createWrapper({}, { iconOnly: '<span data-testid="icon-only">⚡</span>' });
76
+ expect(wrapper.html()).toMatchSnapshot();
77
+ });
78
+ });
79
+
80
+ // -------------------------
81
+ // Structure & Rendering
82
+ // -------------------------
83
+ describe("Rendering", () => {
84
+ it("renders a button with correct base classes and testid", async () => {
85
+ wrapper = await createWrapper();
86
+ const button = wrapper.find("button");
87
+ expect(button.exists()).toBe(true);
88
+ expect(button.classes()).toContain("input-button-core");
89
+ expect(button.attributes("data-testid")).toBe("input-button-core");
90
+ });
91
+
92
+ it("renders button text", async () => {
93
+ wrapper = await createWrapper({ buttonText: "Hello" });
94
+ expect(wrapper.find(".button-text").text()).toBe("Hello");
95
+ });
96
+
97
+ it("handles empty buttonText gracefully", async () => {
98
+ wrapper = await createWrapper({ buttonText: "" });
99
+ const buttonText = wrapper.find(".button-text");
100
+ expect(buttonText.exists()).toBe(true);
101
+ expect(buttonText.text()).toBe("");
102
+ });
103
+ });
104
+
105
+ // -------------------------
106
+ // Props
107
+ // -------------------------
108
+ describe("Props", () => {
109
+ it("applies variant class", async () => {
110
+ for (const variant of ["primary", "secondary", "tertiary"] as const) {
111
+ const w = await mountSuspended(InputButtonCore, {
112
+ props: { buttonText: "Test", variant },
113
+ });
114
+ expect(w.find("button").classes()).toContain(variant);
115
+ w.unmount();
116
+ }
117
+ });
118
+
119
+ it("applies pill class when isPill is true", async () => {
120
+ wrapper = await createWrapper({ isPill: true });
121
+ expect(wrapper.find("button").classes()).toContain("pill");
122
+ });
123
+
124
+ it("does not apply pill class by default", async () => {
125
+ wrapper = await createWrapper();
126
+ expect(wrapper.find("button").classes()).not.toContain("pill");
127
+ });
128
+
129
+ it("applies is-pending and pending-effect classes", async () => {
130
+ wrapper = await createWrapper({ isPending: true, hasPendingEffect: true });
131
+ const classes = wrapper.find("button").classes();
132
+ expect(classes).toContain("is-pending");
133
+ expect(classes).toContain("pending-effect");
134
+ });
135
+
136
+ it("applies correct type attribute", async () => {
137
+ for (const type of ["button", "submit", "reset"] as const) {
138
+ const w = await mountSuspended(InputButtonCore, {
139
+ props: { buttonText: "Test", type },
140
+ });
141
+ expect(w.find("button").attributes("type")).toBe(type);
142
+ w.unmount();
143
+ }
144
+ });
145
+
146
+ it("applies theme as data-theme attribute", async () => {
147
+ wrapper = await createWrapper({ theme: "secondary" });
148
+ expect(wrapper.find("button").attributes("data-theme")).toBe("secondary");
149
+ });
150
+
151
+ it("passes styleClassPassthrough to the button", async () => {
152
+ wrapper = await createWrapper({ styleClassPassthrough: "custom-class" });
153
+ expect(wrapper.find("button").classes()).toContain("custom-class");
154
+ });
155
+
156
+ it("passes array styleClassPassthrough to the button", async () => {
157
+ wrapper = await createWrapper({
158
+ styleClassPassthrough: ["custom-class", "another-class"],
159
+ });
160
+ const classes = wrapper.find("button").classes();
161
+ expect(classes).toContain("custom-class");
162
+ expect(classes).toContain("another-class");
163
+ });
164
+ });
165
+
166
+ // -------------------------
167
+ // Accessibility
168
+ // -------------------------
169
+ describe("Accessibility", () => {
170
+ it("sets aria-disabled to false by default", async () => {
171
+ wrapper = await createWrapper();
172
+ expect(wrapper.find("button").attributes("aria-disabled")).toBe("false");
173
+ });
174
+
175
+ it("sets aria-disabled and readonly attr when readonly", async () => {
176
+ wrapper = await createWrapper({ readonly: true });
177
+ const button = wrapper.find("button");
178
+ expect(button.attributes("aria-disabled")).toBe("true");
179
+ expect(button.attributes("readonly")).toBeDefined();
180
+ });
181
+
182
+ it("keeps button text visible (not sr-only) by default", async () => {
183
+ wrapper = await createWrapper();
184
+ expect(wrapper.find(".button-text").classes()).not.toContain("sr-only");
185
+ });
186
+
187
+ it("makes button text sr-only with iconOnly slot, but keeps it in DOM for screen readers", async () => {
188
+ wrapper = await createWrapper({ buttonText: "Save document" }, { iconOnly: "<span>💾</span>" });
189
+ const buttonText = wrapper.find(".button-text");
190
+ expect(buttonText.text()).toBe("Save document");
191
+ expect(buttonText.classes()).toContain("sr-only");
192
+ });
193
+ });
194
+
195
+ // -------------------------
196
+ // Slots
197
+ // -------------------------
198
+ describe("Slots", () => {
199
+ it("renders left slot", async () => {
200
+ wrapper = await createWrapper({}, { left: '<span data-testid="left-icon">←</span>' });
201
+ expect(wrapper.find(".btn-icon.left").exists()).toBe(true);
202
+ expect(wrapper.find('[data-testid="left-icon"]').exists()).toBe(true);
203
+ });
204
+
205
+ it("renders right slot", async () => {
206
+ wrapper = await createWrapper({}, { right: '<span data-testid="right-icon">→</span>' });
207
+ expect(wrapper.find(".btn-icon.right").exists()).toBe(true);
208
+ expect(wrapper.find('[data-testid="right-icon"]').exists()).toBe(true);
209
+ });
210
+
211
+ it("renders iconOnly slot and adds icon-only class to button", async () => {
212
+ wrapper = await createWrapper({}, { iconOnly: '<span data-testid="icon-only">⚡</span>' });
213
+ expect(wrapper.find(".btn-icon.icon-only").exists()).toBe(true);
214
+ expect(wrapper.find("button").classes()).toContain("icon-only");
215
+ });
216
+
217
+ it("iconOnly suppresses left and right slots", async () => {
218
+ wrapper = await createWrapper(
219
+ {},
220
+ {
221
+ left: '<span data-testid="left">←</span>',
222
+ right: '<span data-testid="right">→</span>',
223
+ iconOnly: '<span data-testid="icon">⚡</span>',
224
+ }
225
+ );
226
+ expect(wrapper.find(".btn-icon.left").exists()).toBe(false);
227
+ expect(wrapper.find(".btn-icon.right").exists()).toBe(false);
228
+ expect(wrapper.find(".btn-icon.icon-only").exists()).toBe(true);
229
+ });
230
+
231
+ it("renders left and right slots together when no iconOnly", async () => {
232
+ wrapper = await createWrapper(
233
+ {},
234
+ {
235
+ left: '<span data-testid="left">←</span>',
236
+ right: '<span data-testid="right">→</span>',
237
+ }
238
+ );
239
+ expect(wrapper.find(".btn-icon.left").exists()).toBe(true);
240
+ expect(wrapper.find(".btn-icon.right").exists()).toBe(true);
241
+ expect(wrapper.find(".btn-icon.icon-only").exists()).toBe(false);
242
+ });
243
+ });
244
+
245
+ // -------------------------
246
+ // Computed (vm internals)
247
+ // -------------------------
248
+ describe("Computed properties", () => {
249
+ it("hasLeftSlot is true when left slot provided without iconOnly", async () => {
250
+ wrapper = await createWrapper({}, { left: "<span>L</span>" });
251
+ expect((wrapper.vm as unknown as InputButtonCoreInstance).hasLeftSlot).toBe(true);
252
+ });
253
+
254
+ it("hasLeftSlot is false when iconOnly is also provided", async () => {
255
+ wrapper = await createWrapper({}, { left: "<span>L</span>", iconOnly: "<span>I</span>" });
256
+ expect((wrapper.vm as unknown as InputButtonCoreInstance).hasLeftSlot).toBe(false);
257
+ });
258
+
259
+ it("hasRightSlot is true when right slot provided without iconOnly", async () => {
260
+ wrapper = await createWrapper({}, { right: "<span>R</span>" });
261
+ expect((wrapper.vm as unknown as InputButtonCoreInstance).hasRightSlot).toBe(true);
262
+ });
263
+
264
+ it("hasIconOnlySlot is true when iconOnly slot provided", async () => {
265
+ wrapper = await createWrapper({}, { iconOnly: "<span>I</span>" });
266
+ expect((wrapper.vm as unknown as InputButtonCoreInstance).hasIconOnlySlot).toBe(true);
267
+ });
268
+ });
269
+ });
@@ -0,0 +1,72 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`InputButtonCore > Snapshots > icon-only slot 1`] = `
4
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core primary icon-only">
5
+ <!--v-if-->
6
+ <!--v-if--><span class="button-text sr-only">Click me</span>
7
+ <!--v-if--><span class="btn-icon icon-only"><span data-testid="icon-only">⚡</span></span>
8
+ </button>"
9
+ `;
10
+
11
+ exports[`InputButtonCore > Snapshots > pending state 1`] = `
12
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core primary pending-effect is-pending"><svg class="pending-container" data-theme="default">
13
+ <rect pathLength="100" stroke-linecap="round" class="pending-blur"></rect>
14
+ <rect pathLength="100" stroke-linecap="round" class="pending-line"></rect>
15
+ </svg>
16
+ <!--v-if--><span class="button-text">Click me</span>
17
+ <!--v-if-->
18
+ <!--v-if-->
19
+ </button>"
20
+ `;
21
+
22
+ exports[`InputButtonCore > Snapshots > pill 1`] = `
23
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core primary pill">
24
+ <!--v-if-->
25
+ <!--v-if--><span class="button-text">Click me</span>
26
+ <!--v-if-->
27
+ <!--v-if-->
28
+ </button>"
29
+ `;
30
+
31
+ exports[`InputButtonCore > Snapshots > primary (default) 1`] = `
32
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core primary">
33
+ <!--v-if-->
34
+ <!--v-if--><span class="button-text">Click me</span>
35
+ <!--v-if-->
36
+ <!--v-if-->
37
+ </button>"
38
+ `;
39
+
40
+ exports[`InputButtonCore > Snapshots > readonly 1`] = `
41
+ "<button type="button" readonly="" aria-disabled="true" data-testid="input-button-core" data-theme="default" class="input-button-core primary">
42
+ <!--v-if-->
43
+ <!--v-if--><span class="button-text">Click me</span>
44
+ <!--v-if-->
45
+ <!--v-if-->
46
+ </button>"
47
+ `;
48
+
49
+ exports[`InputButtonCore > Snapshots > secondary variant 1`] = `
50
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core secondary">
51
+ <!--v-if-->
52
+ <!--v-if--><span class="button-text">Click me</span>
53
+ <!--v-if-->
54
+ <!--v-if-->
55
+ </button>"
56
+ `;
57
+
58
+ exports[`InputButtonCore > Snapshots > tertiary variant 1`] = `
59
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core tertiary">
60
+ <!--v-if-->
61
+ <!--v-if--><span class="button-text">Click me</span>
62
+ <!--v-if-->
63
+ <!--v-if-->
64
+ </button>"
65
+ `;
66
+
67
+ exports[`InputButtonCore > Snapshots > with left and right slots 1`] = `
68
+ "<button type="button" aria-disabled="false" data-testid="input-button-core" data-theme="default" class="input-button-core primary">
69
+ <!--v-if--><span class="btn-icon left"><span data-testid="left-icon">←</span></span><span class="button-text">Click me</span><span class="btn-icon right"><span data-testid="right-icon">→</span></span>
70
+ <!--v-if-->
71
+ </button>"
72
+ `;
@@ -0,0 +1,181 @@
1
+ <template>
2
+ <FormFieldset
3
+ :id
4
+ :name
5
+ :legend
6
+ :field-has-error
7
+ :required
8
+ :data-testid
9
+ :style-class-passthrough="['multiple-checkboxes-fieldset', elementClasses]"
10
+ >
11
+ <template #content>
12
+ <InputDescription
13
+ :id
14
+ :description-id
15
+ :name
16
+ :field-has-error="fieldHasError"
17
+ :style-class-passthrough="['input-text-description']"
18
+ >
19
+ <template #descriptionHtml>
20
+ <slot name="descriptionHtml"></slot>
21
+ </template>
22
+ <template #descriptionText>
23
+ <slot name="descriptionText"></slot>
24
+ </template>
25
+ </InputDescription>
26
+ <div ref="itemsContainer" class="multiple-checkboxes-items" :class="[optionsLayout]">
27
+ <template v-for="item in fieldData.data" :key="item.id">
28
+ <InputCheckboxRadioButton
29
+ v-if="isButton"
30
+ :id="`${name}-${item.value}`"
31
+ v-model="modelValue"
32
+ type="checkbox"
33
+ :name
34
+ :required
35
+ :label="item.label"
36
+ :field-has-error
37
+ :true-value="item.value"
38
+ :options-layout
39
+ :theme
40
+ :input-variant
41
+ :direction
42
+ :aria-describedby
43
+ :display-as-disc
44
+ :is-pill="isPill"
45
+ >
46
+ <template #checkedIcon>
47
+ <slot name="checkedIcon"></slot>
48
+ </template>
49
+ <template #itemIcon>
50
+ <slot name="itemIcon">
51
+ <Icon name="material-symbols:add-2" class="icon" />
52
+ </slot>
53
+ </template>
54
+ </InputCheckboxRadioButton>
55
+ <InputCheckboxRadioWithLabel
56
+ v-else
57
+ :id="`${name}-${item.value}`"
58
+ v-model="modelValue"
59
+ type="checkbox"
60
+ :name
61
+ :required
62
+ :label="item.label"
63
+ :field-has-error
64
+ :true-value="item.value"
65
+ :options-layout
66
+ :theme
67
+ :input-variant
68
+ :aria-describedby
69
+ :display-as-disc
70
+ >
71
+ <template #checkedIcon>
72
+ <slot name="checkedIcon"></slot>
73
+ </template>
74
+ </InputCheckboxRadioWithLabel>
75
+ </template>
76
+ </div>
77
+ <InputError :id="errorId" :error-message="errorMessage" :show-error="fieldHasError" :is-detached="true" :input-variant />
78
+ </template>
79
+ </FormFieldset>
80
+ </template>
81
+
82
+ <script setup lang="ts">
83
+ import type { FormUiTheme, OptionsLayout, IFormMultipleOptions, InputUiVariant } from "~/types/forms/types.forms";
84
+
85
+ interface Props {
86
+ dataTestid?: string;
87
+ name: string;
88
+ legend: string;
89
+ label: string;
90
+ placeholder?: string;
91
+ isButton?: boolean;
92
+ errorMessage: string | object;
93
+ required?: boolean;
94
+ fieldHasError?: boolean;
95
+ multipleOptions?: boolean;
96
+ optionsLayout?: OptionsLayout;
97
+ equalCols?: boolean;
98
+ styleClassPassthrough?: string | string[];
99
+ theme?: FormUiTheme;
100
+ inputVariant?: InputUiVariant;
101
+ direction?: "row" | "row-reverse";
102
+ displayAsDisc?: boolean;
103
+ isPill?: boolean;
104
+ }
105
+
106
+ const props = withDefaults(defineProps<Props>(), {
107
+ dataTestid: "multiple-checkboxes",
108
+ placeholder: "",
109
+ isButton: false,
110
+ required: false,
111
+ fieldHasError: false,
112
+ multipleOptions: false,
113
+ optionsLayout: "equal-widths",
114
+ equalCols: true,
115
+ styleClassPassthrough: () => [],
116
+ theme: "default",
117
+ inputVariant: "normal",
118
+ direction: "row",
119
+ displayAsDisc: false,
120
+ isPill: false,
121
+ });
122
+
123
+ const slots = useSlots();
124
+
125
+ const modelValue = defineModel<(string | number | boolean)[] | string | number | boolean | undefined>();
126
+ const fieldData = defineModel("fieldData") as Ref<IFormMultipleOptions>;
127
+
128
+ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
129
+
130
+ const { id, errorId, descriptionId, ariaDescribedby } = useAriaDescribedById(
131
+ props.name,
132
+ toRef(props, "fieldHasError"),
133
+ slots
134
+ );
135
+
136
+ const { maxChildWidth, itemsContainer, updateMaxChildWidth } = useMaxChildWidth(
137
+ ".input-checkbox-radio-label, .input-checkbox-radio-with-label",
138
+ "100px"
139
+ );
140
+
141
+ onMounted(() => {
142
+ updateMaxChildWidth();
143
+ });
144
+
145
+ watch(
146
+ () => fieldData.value.data,
147
+ () => {
148
+ nextTick(updateMaxChildWidth);
149
+ }
150
+ );
151
+ </script>
152
+
153
+ <style lang="css">
154
+ @layer components {
155
+ .multiple-checkboxes-items {
156
+ display: flex;
157
+ gap: 1.2rem;
158
+ margin-top: 1.2rem;
159
+
160
+ &.inline {
161
+ flex-direction: row;
162
+ flex-wrap: wrap;
163
+ }
164
+
165
+ &.block {
166
+ flex-direction: column;
167
+ }
168
+
169
+ &.equal-widths {
170
+ display: grid;
171
+ grid-template-columns: repeat(
172
+ auto-fit,
173
+ minmax(
174
+ calc(var(--input-checked-icon-gap) + (2 * var(--input-checkbox-label-padding-inline)) + v-bind(maxChildWidth)),
175
+ 1fr
176
+ )
177
+ );
178
+ }
179
+ }
180
+ }
181
+ </style>
@@ -0,0 +1,144 @@
1
+ <template>
2
+ <FormFieldset
3
+ :id
4
+ :description-id
5
+ :name
6
+ :legend
7
+ :field-has-error
8
+ :required
9
+ :data-testid
10
+ :style-class-passthrough="['single-checkbox-fieldset']"
11
+ >
12
+ <template #content>
13
+ <InputDescription
14
+ :id
15
+ :description-id
16
+ :name
17
+ :field-has-error="fieldHasError"
18
+ :style-class-passthrough="['input-text-description']"
19
+ >
20
+ <template #descriptionHtml>
21
+ <slot name="descriptionHtml"></slot>
22
+ </template>
23
+ <template #descriptionText>
24
+ <slot name="descriptionText"></slot>
25
+ </template>
26
+ </InputDescription>
27
+
28
+ <div class="single-checkbox-items" :class="[optionsLayout]">
29
+ <InputCheckboxRadioWithLabel
30
+ v-model="modelValue"
31
+ type="checkbox"
32
+ :name
33
+ :required
34
+ :label
35
+ :field-has-error
36
+ :true-value
37
+ :false-value
38
+ :theme
39
+ :input-variant
40
+ :aria-describedby
41
+ >
42
+ <template #checkedIcon>
43
+ <slot name="checkedIcon"></slot>
44
+ </template>
45
+ <template v-if="slots.labelContent" #labelContent>
46
+ <slot name="labelContent"></slot>
47
+ </template>
48
+ </InputCheckboxRadioWithLabel>
49
+ </div>
50
+ <InputError
51
+ :id="errorId"
52
+ :error-message
53
+ :show-error="fieldHasError"
54
+ :is-detached="true"
55
+ :input-variant
56
+ :style-class-passthrough="elementClasses"
57
+ />
58
+ </template>
59
+ </FormFieldset>
60
+ </template>
61
+
62
+ <script setup lang="ts">
63
+ import type { FormUiTheme, OptionsLayout, InputUiVariant } from "~/types/forms/types.forms";
64
+
65
+ interface Props {
66
+ dataTestid?: string;
67
+ name: string;
68
+ legend: string;
69
+ label?: string;
70
+ errorMessage: string | object;
71
+ required?: boolean;
72
+ fieldHasError?: boolean;
73
+ multipleOptions?: boolean;
74
+ trueValue?: string | number | boolean;
75
+ falseValue?: string | number | boolean;
76
+ optionsLayout?: OptionsLayout;
77
+ equalCols?: boolean;
78
+ styleClassPassthrough?: string | string[];
79
+ theme?: FormUiTheme;
80
+ inputVariant?: InputUiVariant;
81
+ }
82
+
83
+ const props = withDefaults(defineProps<Props>(), {
84
+ dataTestid: "multiple-radio-buttons",
85
+ label: "",
86
+ required: false,
87
+ fieldHasError: false,
88
+ multipleOptions: false,
89
+ trueValue: true,
90
+ falseValue: false,
91
+ optionsLayout: "equal-widths",
92
+ equalCols: true,
93
+ styleClassPassthrough: () => [],
94
+ theme: "default",
95
+ inputVariant: "normal",
96
+ });
97
+
98
+ const slots = useSlots();
99
+ const modelValue = defineModel<(string | number | boolean)[] | string | number | boolean | undefined>();
100
+ const { elementClasses, updateElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
101
+
102
+ // const id = `${props.name}-input-${useId()}`;
103
+ // const errorId = `${props.name}-error-message`;
104
+ // const ariaDescribedby = computed(() => {
105
+ // const ariaDescribedbyId = slots.description ? `${props.name}-description` : undefined;
106
+ // return props.fieldHasError ? errorId : ariaDescribedbyId;
107
+ // });
108
+
109
+ const { id, errorId, descriptionId, ariaDescribedby } = useAriaDescribedById(
110
+ props.name,
111
+ toRef(props, "fieldHasError"),
112
+ slots
113
+ );
114
+
115
+ watchEffect(() => {
116
+ if (!slots.description && props.fieldHasError) {
117
+ updateElementClasses(["mbs-12"]);
118
+ }
119
+ });
120
+ </script>
121
+
122
+ <style lang="css">
123
+ @layer components {
124
+ .single-checkbox-items {
125
+ display: flex;
126
+ gap: 1.2rem;
127
+ margin-top: 1.2rem;
128
+
129
+ &.inline {
130
+ flex-direction: row;
131
+ flex-wrap: wrap;
132
+ }
133
+
134
+ &.block {
135
+ flex-direction: column;
136
+ }
137
+
138
+ &.equal-widths {
139
+ display: grid;
140
+ grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
141
+ }
142
+ }
143
+ }
144
+ </style>