@affinda/wc 0.0.7 → 0.0.8

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 (218) hide show
  1. package/dist/affinda/af-button.entry.esm.js.map +1 -1
  2. package/dist/affinda/af-card.entry.esm.js.map +1 -1
  3. package/dist/affinda/af-client-carousel.entry.esm.js.map +1 -0
  4. package/dist/affinda/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.esm.js.map +1 -1
  5. package/dist/affinda/af-hero-section.entry.esm.js.map +1 -0
  6. package/dist/affinda/af-logo-well.entry.esm.js.map +1 -0
  7. package/dist/affinda/af-section.entry.esm.js.map +1 -0
  8. package/dist/affinda/af-testimonial-carousel.entry.esm.js.map +1 -1
  9. package/dist/affinda/affinda.css +1 -1
  10. package/dist/affinda/affinda.esm.js +1 -1
  11. package/dist/affinda/index.esm.js +1 -1
  12. package/dist/affinda/p-0c4a30a4.entry.js +2 -0
  13. package/dist/affinda/p-0c4a30a4.entry.js.map +1 -0
  14. package/dist/affinda/p-0fb55acf.entry.js +2 -0
  15. package/dist/affinda/{p-56284540.entry.js.map → p-0fb55acf.entry.js.map} +1 -1
  16. package/dist/affinda/p-10288f13.entry.js +2 -0
  17. package/dist/affinda/p-10288f13.entry.js.map +1 -0
  18. package/dist/affinda/p-13c30dd8.entry.js +2 -0
  19. package/dist/affinda/p-13c30dd8.entry.js.map +1 -0
  20. package/dist/affinda/{p-c8628633.entry.js → p-23aedaa4.entry.js} +2 -2
  21. package/dist/affinda/{p-eff7eff1.entry.js → p-39e917eb.entry.js} +2 -2
  22. package/dist/affinda/{p-16c84e60.entry.js → p-430127fa.entry.js} +2 -2
  23. package/dist/affinda/{p-43324b6d.entry.js → p-45d0f3e3.entry.js} +2 -2
  24. package/dist/affinda/p-45d0f3e3.entry.js.map +1 -0
  25. package/dist/affinda/{p-f53b4847.entry.js → p-46edc753.entry.js} +2 -2
  26. package/dist/affinda/{p-32f46944.entry.js → p-56a15842.entry.js} +2 -2
  27. package/dist/affinda/p-7c115698.entry.js +2 -0
  28. package/dist/affinda/p-7c115698.entry.js.map +1 -0
  29. package/dist/affinda/p-867c5141.entry.js +2 -0
  30. package/dist/affinda/{p-UbNmjSSX.js → p-Agei6ZJQ.js} +3 -3
  31. package/dist/affinda/p-Agei6ZJQ.js.map +1 -0
  32. package/dist/affinda/{p-750a694b.entry.js → p-d7ff9fd9.entry.js} +2 -2
  33. package/dist/affinda/{p-9e5bef28.entry.js → p-e2c40f4e.entry.js} +2 -2
  34. package/dist/affinda/{p-9e5bef28.entry.js.map → p-e2c40f4e.entry.js.map} +1 -1
  35. package/dist/affinda/p-e56182e4.entry.js +2 -0
  36. package/dist/affinda/p-e56182e4.entry.js.map +1 -0
  37. package/dist/affinda/{p-66daadde.entry.js → p-f6f2f1c4.entry.js} +2 -2
  38. package/dist/cjs/af-aspect-ratio.cjs.entry.js +1 -1
  39. package/dist/cjs/af-button-group.cjs.entry.js +2 -2
  40. package/dist/cjs/af-button.cjs.entry.js +7 -2
  41. package/dist/cjs/af-button.entry.cjs.js.map +1 -1
  42. package/dist/cjs/af-card.cjs.entry.js +3 -3
  43. package/dist/cjs/af-card.entry.cjs.js.map +1 -1
  44. package/dist/cjs/af-client-carousel.cjs.entry.js +22 -0
  45. package/dist/cjs/af-client-carousel.entry.cjs.js.map +1 -0
  46. package/dist/cjs/af-color-swatch.cjs.entry.js +1 -1
  47. package/dist/cjs/af-container.cjs.entry.js +1 -1
  48. package/dist/cjs/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.cjs.js.map +1 -1
  49. package/dist/cjs/af-heading_5.cjs.entry.js +22 -12
  50. package/dist/cjs/af-hero-section.cjs.entry.js +24 -0
  51. package/dist/cjs/af-hero-section.entry.cjs.js.map +1 -0
  52. package/dist/cjs/af-icon-button.cjs.entry.js +1 -1
  53. package/dist/cjs/af-logo-well.cjs.entry.js +18 -0
  54. package/dist/cjs/af-logo-well.entry.cjs.js.map +1 -0
  55. package/dist/cjs/af-section.cjs.entry.js +25 -0
  56. package/dist/cjs/af-section.entry.cjs.js.map +1 -0
  57. package/dist/cjs/af-testimonial-carousel.cjs.entry.js +4 -4
  58. package/dist/cjs/af-testimonial-carousel.entry.cjs.js.map +1 -1
  59. package/dist/cjs/af-testimonial-stat.cjs.entry.js +2 -2
  60. package/dist/cjs/af-testimonial.cjs.entry.js +2 -2
  61. package/dist/cjs/af-typography-lockup.cjs.entry.js +2 -2
  62. package/dist/cjs/affinda.cjs.js +2 -2
  63. package/dist/cjs/{index-CNijn8X5.js → index-D_ItFcqt.js} +3 -3
  64. package/dist/cjs/index-D_ItFcqt.js.map +1 -0
  65. package/dist/cjs/index.cjs.js +1 -1
  66. package/dist/cjs/loader.cjs.js +2 -2
  67. package/dist/collection/assets/paperclip-decoration.svg +3 -0
  68. package/dist/collection/collection-manifest.json +4 -0
  69. package/dist/collection/components/af-button/af-button.js +26 -1
  70. package/dist/collection/components/af-button/af-button.js.map +1 -1
  71. package/dist/collection/components/af-button-group/af-button-group.js +1 -1
  72. package/dist/collection/components/af-card/af-card.css +10 -7
  73. package/dist/collection/components/af-card/af-card.js +1 -1
  74. package/dist/collection/components/af-client-carousel/af-client-carousel.css +112 -0
  75. package/dist/collection/components/af-client-carousel/af-client-carousel.js +72 -0
  76. package/dist/collection/components/af-client-carousel/af-client-carousel.js.map +1 -0
  77. package/dist/collection/components/af-heading/af-heading.css +9 -0
  78. package/dist/collection/components/af-heading/af-heading.js +26 -3
  79. package/dist/collection/components/af-heading/af-heading.js.map +1 -1
  80. package/dist/collection/components/af-hero-section/af-hero-section.css +69 -0
  81. package/dist/collection/components/af-hero-section/af-hero-section.js +94 -0
  82. package/dist/collection/components/af-hero-section/af-hero-section.js.map +1 -0
  83. package/dist/collection/components/af-logo/af-logo.js +1 -1
  84. package/dist/collection/components/af-logo-well/af-logo-well.css +27 -0
  85. package/dist/collection/components/af-logo-well/af-logo-well.js +22 -0
  86. package/dist/collection/components/af-logo-well/af-logo-well.js.map +1 -0
  87. package/dist/collection/components/af-navbar/af-navbar.css +40 -3
  88. package/dist/collection/components/af-navbar/af-navbar.js +13 -1
  89. package/dist/collection/components/af-navbar/af-navbar.js.map +1 -1
  90. package/dist/collection/components/af-section/af-section.css +52 -0
  91. package/dist/collection/components/af-section/af-section.js +95 -0
  92. package/dist/collection/components/af-section/af-section.js.map +1 -0
  93. package/dist/collection/components/af-testimonial/af-testimonial.js +1 -1
  94. package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.css +3 -2
  95. package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.js +2 -2
  96. package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.js +1 -1
  97. package/dist/collection/components/af-text/af-text.css +9 -0
  98. package/dist/collection/components/af-text/af-text.js +26 -3
  99. package/dist/collection/components/af-text/af-text.js.map +1 -1
  100. package/dist/collection/components/af-typography-lockup/af-typography-lockup.js +1 -1
  101. package/dist/components/af-aspect-ratio.js +1 -1
  102. package/dist/components/af-button-group.js +1 -1
  103. package/dist/components/af-button.js +1 -1
  104. package/dist/components/af-card.js +3 -3
  105. package/dist/components/af-card.js.map +1 -1
  106. package/dist/components/af-client-carousel.d.ts +11 -0
  107. package/dist/components/af-client-carousel.js +45 -0
  108. package/dist/components/af-client-carousel.js.map +1 -0
  109. package/dist/components/af-color-swatch.js +1 -1
  110. package/dist/components/af-container.js +1 -1
  111. package/dist/components/af-heading.js +1 -1
  112. package/dist/components/af-hero-section.d.ts +11 -0
  113. package/dist/components/af-hero-section.js +53 -0
  114. package/dist/components/af-hero-section.js.map +1 -0
  115. package/dist/components/af-icon-button.js +1 -1
  116. package/dist/components/af-logo-well.d.ts +11 -0
  117. package/dist/components/af-logo-well.js +38 -0
  118. package/dist/components/af-logo-well.js.map +1 -0
  119. package/dist/components/af-logo.js +1 -1
  120. package/dist/components/af-nav-item.js +1 -1
  121. package/dist/components/af-navbar.js +1 -1
  122. package/dist/components/af-section.d.ts +11 -0
  123. package/dist/components/af-section.js +54 -0
  124. package/dist/components/af-section.js.map +1 -0
  125. package/dist/components/af-testimonial-carousel.js +4 -4
  126. package/dist/components/af-testimonial-carousel.js.map +1 -1
  127. package/dist/components/af-testimonial-stat.js +2 -2
  128. package/dist/components/af-testimonial.js +2 -2
  129. package/dist/components/af-text.js +1 -1
  130. package/dist/components/af-typography-lockup.js +1 -1
  131. package/dist/components/index.js +13 -13
  132. package/dist/components/{p-Bxv9iL3G.js → p-BMl1ggbQ.js} +3 -3
  133. package/dist/components/{p-Bxv9iL3G.js.map → p-BMl1ggbQ.js.map} +1 -1
  134. package/dist/components/{p-KtmLxy7z.js → p-BSewwIfD.js} +3 -3
  135. package/dist/components/{p-KtmLxy7z.js.map → p-BSewwIfD.js.map} +1 -1
  136. package/dist/components/{p-Bdy85P7Z.js → p-BeQlNDyY.js} +4 -4
  137. package/dist/components/{p-Bdy85P7Z.js.map → p-BeQlNDyY.js.map} +1 -1
  138. package/dist/components/{p-DPooX_NW.js → p-BpXkQGDQ.js} +3 -3
  139. package/dist/components/{p-DPooX_NW.js.map → p-BpXkQGDQ.js.map} +1 -1
  140. package/dist/components/{p-C0zUdiRs.js → p-C1C1Him5.js} +12 -8
  141. package/dist/components/p-C1C1Him5.js.map +1 -0
  142. package/dist/components/{p-Cfj594pp.js → p-CUr7n62X.js} +3 -3
  143. package/dist/components/{p-Cfj594pp.js.map → p-CUr7n62X.js.map} +1 -1
  144. package/dist/components/{p-ChRDoPDm.js → p-CZlTvZAm.js} +3 -3
  145. package/dist/components/p-CZlTvZAm.js.map +1 -0
  146. package/dist/components/{p-D021PjqL.js → p-CcNomA2o.js} +11 -5
  147. package/dist/components/p-CcNomA2o.js.map +1 -0
  148. package/dist/components/p-Csie_upq.js +41 -0
  149. package/dist/components/p-Csie_upq.js.map +1 -0
  150. package/dist/components/{p-CLA_jBiH.js → p-D4NomvK5.js} +4 -4
  151. package/dist/components/{p-CLA_jBiH.js.map → p-D4NomvK5.js.map} +1 -1
  152. package/dist/components/{p-BuySFAGS.js → p-Vu-NeL7U.js} +12 -8
  153. package/dist/components/p-Vu-NeL7U.js.map +1 -0
  154. package/dist/components/{p-C4sw-kYH.js → p-sJI0-JlJ.js} +4 -4
  155. package/dist/components/{p-C4sw-kYH.js.map → p-sJI0-JlJ.js.map} +1 -1
  156. package/dist/components/{p-XAy0kGYd.js → p-tFlyM2Th.js} +3 -3
  157. package/dist/components/{p-XAy0kGYd.js.map → p-tFlyM2Th.js.map} +1 -1
  158. package/dist/esm/af-aspect-ratio.entry.js +1 -1
  159. package/dist/esm/af-button-group.entry.js +2 -2
  160. package/dist/esm/af-button.entry.js +7 -2
  161. package/dist/esm/af-button.entry.js.map +1 -1
  162. package/dist/esm/af-card.entry.js +3 -3
  163. package/dist/esm/af-card.entry.js.map +1 -1
  164. package/dist/esm/af-client-carousel.entry.js +20 -0
  165. package/dist/esm/af-client-carousel.entry.js.map +1 -0
  166. package/dist/esm/af-color-swatch.entry.js +1 -1
  167. package/dist/esm/af-container.entry.js +1 -1
  168. package/dist/esm/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.js.map +1 -1
  169. package/dist/esm/af-heading_5.entry.js +22 -12
  170. package/dist/esm/af-hero-section.entry.js +22 -0
  171. package/dist/esm/af-hero-section.entry.js.map +1 -0
  172. package/dist/esm/af-icon-button.entry.js +1 -1
  173. package/dist/esm/af-logo-well.entry.js +16 -0
  174. package/dist/esm/af-logo-well.entry.js.map +1 -0
  175. package/dist/esm/af-section.entry.js +23 -0
  176. package/dist/esm/af-section.entry.js.map +1 -0
  177. package/dist/esm/af-testimonial-carousel.entry.js +4 -4
  178. package/dist/esm/af-testimonial-carousel.entry.js.map +1 -1
  179. package/dist/esm/af-testimonial-stat.entry.js +2 -2
  180. package/dist/esm/af-testimonial.entry.js +2 -2
  181. package/dist/esm/af-typography-lockup.entry.js +2 -2
  182. package/dist/esm/affinda.js +3 -3
  183. package/dist/esm/{index-UbNmjSSX.js → index-Agei6ZJQ.js} +3 -3
  184. package/dist/esm/index-Agei6ZJQ.js.map +1 -0
  185. package/dist/esm/index.js +1 -1
  186. package/dist/esm/loader.js +3 -3
  187. package/dist/types/components/af-button/af-button.d.ts +4 -0
  188. package/dist/types/components/af-client-carousel/af-client-carousel.d.ts +10 -0
  189. package/dist/types/components/af-heading/af-heading.d.ts +2 -0
  190. package/dist/types/components/af-hero-section/af-hero-section.d.ts +12 -0
  191. package/dist/types/components/af-logo-well/af-logo-well.d.ts +6 -0
  192. package/dist/types/components/af-navbar/af-navbar.d.ts +3 -0
  193. package/dist/types/components/af-section/af-section.d.ts +12 -0
  194. package/dist/types/components/af-text/af-text.d.ts +2 -0
  195. package/dist/types/components.d.ts +214 -0
  196. package/package.json +13 -9
  197. package/dist/affinda/p-43324b6d.entry.js.map +0 -1
  198. package/dist/affinda/p-56284540.entry.js +0 -2
  199. package/dist/affinda/p-9c0b3380.entry.js +0 -2
  200. package/dist/affinda/p-UbNmjSSX.js.map +0 -1
  201. package/dist/affinda/p-fedaec5a.entry.js +0 -2
  202. package/dist/affinda/p-fedaec5a.entry.js.map +0 -1
  203. package/dist/cjs/index-CNijn8X5.js.map +0 -1
  204. package/dist/components/p-BuySFAGS.js.map +0 -1
  205. package/dist/components/p-C0zUdiRs.js.map +0 -1
  206. package/dist/components/p-CJccTfm5.js +0 -35
  207. package/dist/components/p-CJccTfm5.js.map +0 -1
  208. package/dist/components/p-ChRDoPDm.js.map +0 -1
  209. package/dist/components/p-D021PjqL.js.map +0 -1
  210. package/dist/esm/index-UbNmjSSX.js.map +0 -1
  211. /package/dist/affinda/{p-c8628633.entry.js.map → p-23aedaa4.entry.js.map} +0 -0
  212. /package/dist/affinda/{p-eff7eff1.entry.js.map → p-39e917eb.entry.js.map} +0 -0
  213. /package/dist/affinda/{p-16c84e60.entry.js.map → p-430127fa.entry.js.map} +0 -0
  214. /package/dist/affinda/{p-f53b4847.entry.js.map → p-46edc753.entry.js.map} +0 -0
  215. /package/dist/affinda/{p-32f46944.entry.js.map → p-56a15842.entry.js.map} +0 -0
  216. /package/dist/affinda/{p-9c0b3380.entry.js.map → p-867c5141.entry.js.map} +0 -0
  217. /package/dist/affinda/{p-750a694b.entry.js.map → p-d7ff9fd9.entry.js.map} +0 -0
  218. /package/dist/affinda/{p-66daadde.entry.js.map → p-f6f2f1c4.entry.js.map} +0 -0
package/dist/esm/index.js CHANGED
@@ -6,5 +6,5 @@ export { af_button as AfButton } from './af-button.entry.js';
6
6
  export { af_icon_button as AfIconButton } from './af-icon-button.entry.js';
7
7
  export { af_button_group as AfButtonGroup } from './af-button-group.entry.js';
8
8
  export { af_typography_lockup as AfTypographyLockup } from './af-typography-lockup.entry.js';
9
- import './index-UbNmjSSX.js';
9
+ import './index-Agei6ZJQ.js';
10
10
  //# sourceMappingURL=index.js.map
@@ -1,10 +1,10 @@
1
- import { g as globalScripts, b as bootstrapLazy } from './index-UbNmjSSX.js';
2
- export { s as setNonce } from './index-UbNmjSSX.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-Agei6ZJQ.js';
2
+ export { s as setNonce } from './index-Agei6ZJQ.js';
3
3
 
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["af-heading_5",[[257,"af-heading",{"level":[1],"align":[1]}],[257,"af-logo"],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-navbar"],[257,"af-text",{"variant":[1],"align":[1],"as":[1]}]]],["af-aspect-ratio",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1]}]]],["af-button-group",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-card",[[262,"af-card",{"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"darkOverlay":[4,"dark-overlay"]}]]],["af-color-swatch",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]],["af-icon-button",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-testimonial",[[262,"af-testimonial",{"backgroundImage":[1,"background-image"],"logoImage":[1,"logo-image"],"quote":[1],"attribution":[1],"readMoreLink":[1,"read-more-link"]}]]],["af-testimonial-carousel",[[262,"af-testimonial-carousel",{"currentIndex":[32],"isAnimating":[32],"testimonialCount":[32]}]]],["af-testimonial-stat",[[258,"af-testimonial-stat",{"value":[1],"description":[1],"accentBorder":[4,"accent-border"]}]]],["af-typography-lockup",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]]], options);
7
+ return bootstrapLazy([["af-hero-section",[[262,"af-hero-section",{"variant":[1],"withDecoration":[4,"with-decoration"],"minHeight":[1,"min-height"]}]]],["af-section",[[262,"af-section",{"padding":[1],"background":[1],"container":[4]}]]],["af-heading_5",[[257,"af-heading",{"level":[1],"align":[1],"theme":[1]}],[257,"af-logo"],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-navbar",{"mobileMenuOpen":[32]}],[257,"af-text",{"variant":[1],"align":[1],"as":[1],"theme":[1]}]]],["af-aspect-ratio",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"darkBackground":[4,"dark-background"]}]]],["af-button-group",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-card",[[262,"af-card",{"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"darkOverlay":[4,"dark-overlay"]}]]],["af-client-carousel",[[257,"af-client-carousel",{"showHeadline":[4,"show-headline"],"headlineText":[1,"headline-text"]}]]],["af-color-swatch",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-icon-button",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-logo-well",[[257,"af-logo-well"]]],["af-testimonial",[[262,"af-testimonial",{"backgroundImage":[1,"background-image"],"logoImage":[1,"logo-image"],"quote":[1],"attribution":[1],"readMoreLink":[1,"read-more-link"]}]]],["af-testimonial-carousel",[[262,"af-testimonial-carousel",{"currentIndex":[32],"isAnimating":[32],"testimonialCount":[32]}]]],["af-testimonial-stat",[[258,"af-testimonial-stat",{"value":[1],"description":[1],"accentBorder":[4,"accent-border"]}]]],["af-typography-lockup",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]],["af-container",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]]], options);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };
@@ -19,5 +19,9 @@ export declare class AfButton {
19
19
  * Button type (when not using href)
20
20
  */
21
21
  type: 'button' | 'submit' | 'reset';
22
+ /**
23
+ * Use on dark backgrounds for better contrast
24
+ */
25
+ darkBackground: boolean;
22
26
  render(): any;
23
27
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Infinite scrolling carousel for client logos
3
+ */
4
+ export declare class AfClientCarousel {
5
+ /** Show headline above carousel */
6
+ showHeadline: boolean;
7
+ /** Headline text */
8
+ headlineText: string;
9
+ render(): any;
10
+ }
@@ -3,6 +3,8 @@ export declare class AfHeading {
3
3
  level: 'xl' | '1' | '2' | '3' | '4' | '5';
4
4
  /** Visual alignment */
5
5
  align: 'left' | 'center' | 'right';
6
+ /** Theme for dark backgrounds */
7
+ theme: 'light' | 'dark';
6
8
  private getHeadingTag;
7
9
  render(): any;
8
10
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Hero section component for marketing pages
3
+ */
4
+ export declare class AfHeroSection {
5
+ /** Hero variant */
6
+ variant: 'light' | 'dark';
7
+ /** Show decorative paperclip */
8
+ withDecoration: boolean;
9
+ /** Minimum height */
10
+ minHeight: string;
11
+ render(): any;
12
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A rounded container for displaying client logos
3
+ */
4
+ export declare class AfLogoWell {
5
+ render(): any;
6
+ }
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * A full-width navigation bar component that provides the main site navigation.
3
3
  * Features a pill-shaped container with logo, navigation links, and action buttons.
4
+ * Includes mobile hamburger menu.
4
5
  */
5
6
  export declare class AfNavbar {
7
+ mobileMenuOpen: boolean;
8
+ private toggleMobileMenu;
6
9
  render(): any;
7
10
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Section layout component for consistent spacing and backgrounds
3
+ */
4
+ export declare class AfSection {
5
+ /** Padding variant */
6
+ padding: 'tight' | 'default' | 'loose';
7
+ /** Background color */
8
+ background: 'white' | 'level1' | 'dark' | 'inkwell';
9
+ /** Whether to include a Container wrapper */
10
+ container: boolean;
11
+ render(): any;
12
+ }
@@ -5,5 +5,7 @@ export declare class AfText {
5
5
  align: 'left' | 'center' | 'right';
6
6
  /** Semantic element to render */
7
7
  as: 'p' | 'span' | 'div' | 'label';
8
+ /** Theme for dark backgrounds */
9
+ theme: 'light' | 'dark';
8
10
  render(): any;
9
11
  }
@@ -19,6 +19,11 @@ export namespace Components {
19
19
  "ratio": string;
20
20
  }
21
21
  interface AfButton {
22
+ /**
23
+ * Use on dark backgrounds for better contrast
24
+ * @default false
25
+ */
26
+ "darkBackground": boolean;
22
27
  /**
23
28
  * Whether the button is disabled
24
29
  * @default false
@@ -71,6 +76,21 @@ export namespace Components {
71
76
  */
72
77
  "darkOverlay": boolean;
73
78
  }
79
+ /**
80
+ * Infinite scrolling carousel for client logos
81
+ */
82
+ interface AfClientCarousel {
83
+ /**
84
+ * Headline text
85
+ * @default "Trusted by some of the world's leading organisations"
86
+ */
87
+ "headlineText": string;
88
+ /**
89
+ * Show headline above carousel
90
+ * @default false
91
+ */
92
+ "showHeadline": boolean;
93
+ }
74
94
  interface AfColorSwatch {
75
95
  /**
76
96
  * Color value (hex)
@@ -108,6 +128,31 @@ export namespace Components {
108
128
  * @default '1'
109
129
  */
110
130
  "level": 'xl' | '1' | '2' | '3' | '4' | '5';
131
+ /**
132
+ * Theme for dark backgrounds
133
+ * @default 'light'
134
+ */
135
+ "theme": 'light' | 'dark';
136
+ }
137
+ /**
138
+ * Hero section component for marketing pages
139
+ */
140
+ interface AfHeroSection {
141
+ /**
142
+ * Minimum height
143
+ * @default '60vh'
144
+ */
145
+ "minHeight": string;
146
+ /**
147
+ * Hero variant
148
+ * @default 'dark'
149
+ */
150
+ "variant": 'light' | 'dark';
151
+ /**
152
+ * Show decorative paperclip
153
+ * @default false
154
+ */
155
+ "withDecoration": boolean;
111
156
  }
112
157
  interface AfIconButton {
113
158
  /**
@@ -144,6 +189,11 @@ export namespace Components {
144
189
  */
145
190
  interface AfLogo {
146
191
  }
192
+ /**
193
+ * A rounded container for displaying client logos
194
+ */
195
+ interface AfLogoWell {
196
+ }
147
197
  /**
148
198
  * A generic navigation item component that can be used in navigation bars, menus, and sidebars.
149
199
  * Supports multiple hierarchy levels, variants, and states (active, hover).
@@ -172,9 +222,30 @@ export namespace Components {
172
222
  /**
173
223
  * A full-width navigation bar component that provides the main site navigation.
174
224
  * Features a pill-shaped container with logo, navigation links, and action buttons.
225
+ * Includes mobile hamburger menu.
175
226
  */
176
227
  interface AfNavbar {
177
228
  }
229
+ /**
230
+ * Section layout component for consistent spacing and backgrounds
231
+ */
232
+ interface AfSection {
233
+ /**
234
+ * Background color
235
+ * @default 'white'
236
+ */
237
+ "background": 'white' | 'level1' | 'dark' | 'inkwell';
238
+ /**
239
+ * Whether to include a Container wrapper
240
+ * @default true
241
+ */
242
+ "container": boolean;
243
+ /**
244
+ * Padding variant
245
+ * @default 'default'
246
+ */
247
+ "padding": 'tight' | 'default' | 'loose';
248
+ }
178
249
  interface AfTestimonial {
179
250
  /**
180
251
  * Attribution text (e.g., "– Nathaniel Barrs, CTO, PSC Insurance")
@@ -225,6 +296,11 @@ export namespace Components {
225
296
  * @default 'p'
226
297
  */
227
298
  "as": 'p' | 'span' | 'div' | 'label';
299
+ /**
300
+ * Theme for dark backgrounds
301
+ * @default 'light'
302
+ */
303
+ "theme": 'light' | 'dark';
228
304
  /**
229
305
  * Text variant
230
306
  * @default 'medium'
@@ -287,6 +363,15 @@ declare global {
287
363
  prototype: HTMLAfCardElement;
288
364
  new (): HTMLAfCardElement;
289
365
  };
366
+ /**
367
+ * Infinite scrolling carousel for client logos
368
+ */
369
+ interface HTMLAfClientCarouselElement extends Components.AfClientCarousel, HTMLStencilElement {
370
+ }
371
+ var HTMLAfClientCarouselElement: {
372
+ prototype: HTMLAfClientCarouselElement;
373
+ new (): HTMLAfClientCarouselElement;
374
+ };
290
375
  interface HTMLAfColorSwatchElement extends Components.AfColorSwatch, HTMLStencilElement {
291
376
  }
292
377
  var HTMLAfColorSwatchElement: {
@@ -309,6 +394,15 @@ declare global {
309
394
  prototype: HTMLAfHeadingElement;
310
395
  new (): HTMLAfHeadingElement;
311
396
  };
397
+ /**
398
+ * Hero section component for marketing pages
399
+ */
400
+ interface HTMLAfHeroSectionElement extends Components.AfHeroSection, HTMLStencilElement {
401
+ }
402
+ var HTMLAfHeroSectionElement: {
403
+ prototype: HTMLAfHeroSectionElement;
404
+ new (): HTMLAfHeroSectionElement;
405
+ };
312
406
  interface HTMLAfIconButtonElement extends Components.AfIconButton, HTMLStencilElement {
313
407
  }
314
408
  var HTMLAfIconButtonElement: {
@@ -324,6 +418,15 @@ declare global {
324
418
  prototype: HTMLAfLogoElement;
325
419
  new (): HTMLAfLogoElement;
326
420
  };
421
+ /**
422
+ * A rounded container for displaying client logos
423
+ */
424
+ interface HTMLAfLogoWellElement extends Components.AfLogoWell, HTMLStencilElement {
425
+ }
426
+ var HTMLAfLogoWellElement: {
427
+ prototype: HTMLAfLogoWellElement;
428
+ new (): HTMLAfLogoWellElement;
429
+ };
327
430
  /**
328
431
  * A generic navigation item component that can be used in navigation bars, menus, and sidebars.
329
432
  * Supports multiple hierarchy levels, variants, and states (active, hover).
@@ -337,6 +440,7 @@ declare global {
337
440
  /**
338
441
  * A full-width navigation bar component that provides the main site navigation.
339
442
  * Features a pill-shaped container with logo, navigation links, and action buttons.
443
+ * Includes mobile hamburger menu.
340
444
  */
341
445
  interface HTMLAfNavbarElement extends Components.AfNavbar, HTMLStencilElement {
342
446
  }
@@ -344,6 +448,15 @@ declare global {
344
448
  prototype: HTMLAfNavbarElement;
345
449
  new (): HTMLAfNavbarElement;
346
450
  };
451
+ /**
452
+ * Section layout component for consistent spacing and backgrounds
453
+ */
454
+ interface HTMLAfSectionElement extends Components.AfSection, HTMLStencilElement {
455
+ }
456
+ var HTMLAfSectionElement: {
457
+ prototype: HTMLAfSectionElement;
458
+ new (): HTMLAfSectionElement;
459
+ };
347
460
  interface HTMLAfTestimonialElement extends Components.AfTestimonial, HTMLStencilElement {
348
461
  }
349
462
  var HTMLAfTestimonialElement: {
@@ -379,13 +492,17 @@ declare global {
379
492
  "af-button": HTMLAfButtonElement;
380
493
  "af-button-group": HTMLAfButtonGroupElement;
381
494
  "af-card": HTMLAfCardElement;
495
+ "af-client-carousel": HTMLAfClientCarouselElement;
382
496
  "af-color-swatch": HTMLAfColorSwatchElement;
383
497
  "af-container": HTMLAfContainerElement;
384
498
  "af-heading": HTMLAfHeadingElement;
499
+ "af-hero-section": HTMLAfHeroSectionElement;
385
500
  "af-icon-button": HTMLAfIconButtonElement;
386
501
  "af-logo": HTMLAfLogoElement;
502
+ "af-logo-well": HTMLAfLogoWellElement;
387
503
  "af-nav-item": HTMLAfNavItemElement;
388
504
  "af-navbar": HTMLAfNavbarElement;
505
+ "af-section": HTMLAfSectionElement;
389
506
  "af-testimonial": HTMLAfTestimonialElement;
390
507
  "af-testimonial-carousel": HTMLAfTestimonialCarouselElement;
391
508
  "af-testimonial-stat": HTMLAfTestimonialStatElement;
@@ -407,6 +524,11 @@ declare namespace LocalJSX {
407
524
  "ratio"?: string;
408
525
  }
409
526
  interface AfButton {
527
+ /**
528
+ * Use on dark backgrounds for better contrast
529
+ * @default false
530
+ */
531
+ "darkBackground"?: boolean;
410
532
  /**
411
533
  * Whether the button is disabled
412
534
  * @default false
@@ -459,6 +581,21 @@ declare namespace LocalJSX {
459
581
  */
460
582
  "darkOverlay"?: boolean;
461
583
  }
584
+ /**
585
+ * Infinite scrolling carousel for client logos
586
+ */
587
+ interface AfClientCarousel {
588
+ /**
589
+ * Headline text
590
+ * @default "Trusted by some of the world's leading organisations"
591
+ */
592
+ "headlineText"?: string;
593
+ /**
594
+ * Show headline above carousel
595
+ * @default false
596
+ */
597
+ "showHeadline"?: boolean;
598
+ }
462
599
  interface AfColorSwatch {
463
600
  /**
464
601
  * Color value (hex)
@@ -496,6 +633,31 @@ declare namespace LocalJSX {
496
633
  * @default '1'
497
634
  */
498
635
  "level"?: 'xl' | '1' | '2' | '3' | '4' | '5';
636
+ /**
637
+ * Theme for dark backgrounds
638
+ * @default 'light'
639
+ */
640
+ "theme"?: 'light' | 'dark';
641
+ }
642
+ /**
643
+ * Hero section component for marketing pages
644
+ */
645
+ interface AfHeroSection {
646
+ /**
647
+ * Minimum height
648
+ * @default '60vh'
649
+ */
650
+ "minHeight"?: string;
651
+ /**
652
+ * Hero variant
653
+ * @default 'dark'
654
+ */
655
+ "variant"?: 'light' | 'dark';
656
+ /**
657
+ * Show decorative paperclip
658
+ * @default false
659
+ */
660
+ "withDecoration"?: boolean;
499
661
  }
500
662
  interface AfIconButton {
501
663
  /**
@@ -532,6 +694,11 @@ declare namespace LocalJSX {
532
694
  */
533
695
  interface AfLogo {
534
696
  }
697
+ /**
698
+ * A rounded container for displaying client logos
699
+ */
700
+ interface AfLogoWell {
701
+ }
535
702
  /**
536
703
  * A generic navigation item component that can be used in navigation bars, menus, and sidebars.
537
704
  * Supports multiple hierarchy levels, variants, and states (active, hover).
@@ -560,9 +727,30 @@ declare namespace LocalJSX {
560
727
  /**
561
728
  * A full-width navigation bar component that provides the main site navigation.
562
729
  * Features a pill-shaped container with logo, navigation links, and action buttons.
730
+ * Includes mobile hamburger menu.
563
731
  */
564
732
  interface AfNavbar {
565
733
  }
734
+ /**
735
+ * Section layout component for consistent spacing and backgrounds
736
+ */
737
+ interface AfSection {
738
+ /**
739
+ * Background color
740
+ * @default 'white'
741
+ */
742
+ "background"?: 'white' | 'level1' | 'dark' | 'inkwell';
743
+ /**
744
+ * Whether to include a Container wrapper
745
+ * @default true
746
+ */
747
+ "container"?: boolean;
748
+ /**
749
+ * Padding variant
750
+ * @default 'default'
751
+ */
752
+ "padding"?: 'tight' | 'default' | 'loose';
753
+ }
566
754
  interface AfTestimonial {
567
755
  /**
568
756
  * Attribution text (e.g., "– Nathaniel Barrs, CTO, PSC Insurance")
@@ -613,6 +801,11 @@ declare namespace LocalJSX {
613
801
  * @default 'p'
614
802
  */
615
803
  "as"?: 'p' | 'span' | 'div' | 'label';
804
+ /**
805
+ * Theme for dark backgrounds
806
+ * @default 'light'
807
+ */
808
+ "theme"?: 'light' | 'dark';
616
809
  /**
617
810
  * Text variant
618
811
  * @default 'medium'
@@ -650,13 +843,17 @@ declare namespace LocalJSX {
650
843
  "af-button": AfButton;
651
844
  "af-button-group": AfButtonGroup;
652
845
  "af-card": AfCard;
846
+ "af-client-carousel": AfClientCarousel;
653
847
  "af-color-swatch": AfColorSwatch;
654
848
  "af-container": AfContainer;
655
849
  "af-heading": AfHeading;
850
+ "af-hero-section": AfHeroSection;
656
851
  "af-icon-button": AfIconButton;
657
852
  "af-logo": AfLogo;
853
+ "af-logo-well": AfLogoWell;
658
854
  "af-nav-item": AfNavItem;
659
855
  "af-navbar": AfNavbar;
856
+ "af-section": AfSection;
660
857
  "af-testimonial": AfTestimonial;
661
858
  "af-testimonial-carousel": AfTestimonialCarousel;
662
859
  "af-testimonial-stat": AfTestimonialStat;
@@ -676,6 +873,10 @@ declare module "@stencil/core" {
676
873
  "af-button": LocalJSX.AfButton & JSXBase.HTMLAttributes<HTMLAfButtonElement>;
677
874
  "af-button-group": LocalJSX.AfButtonGroup & JSXBase.HTMLAttributes<HTMLAfButtonGroupElement>;
678
875
  "af-card": LocalJSX.AfCard & JSXBase.HTMLAttributes<HTMLAfCardElement>;
876
+ /**
877
+ * Infinite scrolling carousel for client logos
878
+ */
879
+ "af-client-carousel": LocalJSX.AfClientCarousel & JSXBase.HTMLAttributes<HTMLAfClientCarouselElement>;
679
880
  "af-color-swatch": LocalJSX.AfColorSwatch & JSXBase.HTMLAttributes<HTMLAfColorSwatchElement>;
680
881
  /**
681
882
  * A responsive container component that provides consistent margins and max-width
@@ -683,11 +884,19 @@ declare module "@stencil/core" {
683
884
  */
684
885
  "af-container": LocalJSX.AfContainer & JSXBase.HTMLAttributes<HTMLAfContainerElement>;
685
886
  "af-heading": LocalJSX.AfHeading & JSXBase.HTMLAttributes<HTMLAfHeadingElement>;
887
+ /**
888
+ * Hero section component for marketing pages
889
+ */
890
+ "af-hero-section": LocalJSX.AfHeroSection & JSXBase.HTMLAttributes<HTMLAfHeroSectionElement>;
686
891
  "af-icon-button": LocalJSX.AfIconButton & JSXBase.HTMLAttributes<HTMLAfIconButtonElement>;
687
892
  /**
688
893
  * Affinda logo component
689
894
  */
690
895
  "af-logo": LocalJSX.AfLogo & JSXBase.HTMLAttributes<HTMLAfLogoElement>;
896
+ /**
897
+ * A rounded container for displaying client logos
898
+ */
899
+ "af-logo-well": LocalJSX.AfLogoWell & JSXBase.HTMLAttributes<HTMLAfLogoWellElement>;
691
900
  /**
692
901
  * A generic navigation item component that can be used in navigation bars, menus, and sidebars.
693
902
  * Supports multiple hierarchy levels, variants, and states (active, hover).
@@ -696,8 +905,13 @@ declare module "@stencil/core" {
696
905
  /**
697
906
  * A full-width navigation bar component that provides the main site navigation.
698
907
  * Features a pill-shaped container with logo, navigation links, and action buttons.
908
+ * Includes mobile hamburger menu.
699
909
  */
700
910
  "af-navbar": LocalJSX.AfNavbar & JSXBase.HTMLAttributes<HTMLAfNavbarElement>;
911
+ /**
912
+ * Section layout component for consistent spacing and backgrounds
913
+ */
914
+ "af-section": LocalJSX.AfSection & JSXBase.HTMLAttributes<HTMLAfSectionElement>;
701
915
  "af-testimonial": LocalJSX.AfTestimonial & JSXBase.HTMLAttributes<HTMLAfTestimonialElement>;
702
916
  "af-testimonial-carousel": LocalJSX.AfTestimonialCarousel & JSXBase.HTMLAttributes<HTMLAfTestimonialCarouselElement>;
703
917
  "af-testimonial-stat": LocalJSX.AfTestimonialStat & JSXBase.HTMLAttributes<HTMLAfTestimonialStatElement>;
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "@affinda/wc",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.js",
8
8
  "types": "dist/types/components.d.ts",
9
9
  "collection": "dist/collection/collection-manifest.json",
10
- "files": ["dist", "dist/components", "loader"],
11
- "scripts": {
12
- "build": "pnpm run clean && stencil build",
13
- "start": "stencil build --dev --watch --serve",
14
- "test": "stencil test --spec",
15
- "clean": "rm -rf dist loader www"
16
- },
10
+ "files": [
11
+ "dist",
12
+ "dist/components",
13
+ "loader"
14
+ ],
17
15
  "dependencies": {
18
16
  "@affinda/css": "^0.0.4",
19
17
  "@affinda/icons": "^0.0.3",
@@ -23,5 +21,11 @@
23
21
  },
24
22
  "devDependencies": {
25
23
  "@stencil/react-output-target": "^1.2.0"
24
+ },
25
+ "scripts": {
26
+ "build": "pnpm run clean && stencil build",
27
+ "start": "stencil build --dev --watch --serve",
28
+ "test": "stencil test --spec",
29
+ "clean": "rm -rf dist loader www"
26
30
  }
27
- }
31
+ }
@@ -1 +0,0 @@
1
- {"version":3,"names":["registerInstance","h","Host","afButtonCss","AfButton","constructor","hostRef","this","variant","size","disabled","type","render","classes","button","content","class","name","href","style"],"sources":["0"],"mappings":"OAAcA,OAAkBC,OAAQC,MAAY,kBAEpD,MAAMC,EAAc,kxFAEpB,MAAMC,EAAW,MACb,WAAAC,CAAYC,GACRN,EAAiBO,KAAMD,GAIvBC,KAAKC,QAAU,UAIfD,KAAKE,KAAO,UAIZF,KAAKG,SAAW,MAIhBH,KAAKI,KAAO,QAChB,CACA,MAAAC,GACI,MAAMC,EAAU,CACZC,OAAU,KACV,CAAC,WAAWP,KAAKC,WAAY,KAC7B,CAAC,QAAQD,KAAKE,QAAS,KACvBC,SAAYH,KAAKG,UAErB,MAAMK,EAAU,CACZd,EAAE,OAAQ,CAAEe,MAAO,aAAef,EAAE,OAAQ,CAAEgB,KAAM,eACpDhB,EAAE,OAAQ,CAAEe,MAAO,SAAWf,EAAE,OAAQ,OACxCA,EAAE,OAAQ,CAAEe,MAAO,cAAgBf,EAAE,OAAQ,CAAEgB,KAAM,iBAEzD,GAAIV,KAAKW,OAASX,KAAKG,SAAU,CAC7B,OAAQT,EAAEC,EAAM,KAAMD,EAAE,IAAK,CAAEiB,KAAMX,KAAKW,KAAMF,MAAOH,GAAWE,GACtE,CACA,OAAQd,EAAEC,EAAM,KAAMD,EAAE,SAAU,CAAEU,KAAMJ,KAAKI,KAAMD,SAAUH,KAAKG,SAAUM,MAAOH,GAAWE,GACpG,GAEJX,EAASe,MAAQhB,SAERC","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as t,h as s,H as i,a as e}from"./p-UbNmjSSX.js";const a=".sc-af-testimonial-carousel-h{display:block;width:100%;overflow:hidden}.testimonial-carousel.sc-af-testimonial-carousel{position:relative;width:100%}.testimonial-slides.sc-af-testimonial-carousel{position:relative;width:100%;min-height:544px;overflow:hidden}.testimonial-slides.sc-af-testimonial-carousel-s>af-testimonial,.testimonial-slides .sc-af-testimonial-carousel-s>af-testimonial{position:absolute;top:0;left:0;width:100%;transition:transform 0.5s ease-in-out, opacity 0.5s ease-in-out}.testimonial-progress.sc-af-testimonial-carousel{display:flex;gap:12px;justify-content:center;margin-top:32px;padding:0 220px}.progress-dot.sc-af-testimonial-carousel{width:100%;max-width:840px;height:3px;background:var(--colour-background-border-default, #d1ddda);border-radius:2px;cursor:pointer;transition:background 0.3s ease;position:relative;overflow:hidden}.progress-dot.active.sc-af-testimonial-carousel{background:var(--colour-background-border-active, #8a7049)}.progress-dot.sc-af-testimonial-carousel:hover:not(.active){background:var(--colour-background-border-default, #c1cdc9)}.carousel-navigation.sc-af-testimonial-carousel{position:absolute;bottom:48px;left:48px;display:flex;gap:12px;align-items:center;z-index:10}.nav-button.sc-af-testimonial-carousel{width:48px;height:48px;border-radius:50%;border:1px solid var(--colour-brand-inkwell, #14343b);background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;color:var(--colour-brand-inkwell, #14343b)}.nav-button.sc-af-testimonial-carousel:hover:not(:disabled){background:rgba(255, 255, 255, 0.1);transform:translateY(-2px)}.nav-button.sc-af-testimonial-carousel:disabled{opacity:0.4;cursor:not-allowed;border-color:var(--colour-brand-inkwell, #14343b)}.nav-button.sc-af-testimonial-carousel svg.sc-af-testimonial-carousel{width:24px;height:24px}";const o=class{constructor(s){t(this,s);this.currentIndex=0;this.isAnimating=false;this.testimonialCount=0;this.testimonials=[];this.goToPrevious=()=>{if(this.isAnimating||this.currentIndex===0)return;this.isAnimating=true;this.currentIndex=this.currentIndex-1;this.updateVisibleTestimonial();setTimeout((()=>{this.isAnimating=false}),500)};this.goToNext=()=>{if(this.isAnimating||this.currentIndex>=this.testimonialCount-1)return;this.isAnimating=true;this.currentIndex=this.currentIndex+1;this.updateVisibleTestimonial();setTimeout((()=>{this.isAnimating=false}),500)}}componentDidLoad(){this.detectTestimonials();this.observer=new MutationObserver((()=>{this.detectTestimonials()}));this.observer.observe(this.host,{childList:true,subtree:true})}disconnectedCallback(){if(this.observer){this.observer.disconnect()}}detectTestimonials(){const t=Array.from(this.host.querySelectorAll("af-testimonial"));if(t.length!==this.testimonials.length){this.testimonials=t;this.testimonialCount=t.length;console.log("Found testimonials:",this.testimonials.length);if(this.testimonials.length>0){this.currentIndex=0;this.updateVisibleTestimonial()}}}updateVisibleTestimonial(){this.testimonials.forEach(((t,s)=>{const i=(s-this.currentIndex)*100;t.style.transform=`translateX(${i}%)`;t.style.opacity=s===this.currentIndex?"1":"0";t.style.pointerEvents=s===this.currentIndex?"auto":"none"}))}render(){const t=this.currentIndex>0;const e=this.currentIndex<this.testimonialCount-1;return s(i,{key:"ffa14246fa8a47d1cc079b0026df5a914e2b9362"},s("div",{key:"e984a28fd99ca671d8bdd55a780fbf76d7a189dc",class:"testimonial-carousel"},s("div",{key:"55d09df04a1ee008d30a9227d3e6914dce46e173",class:"testimonial-slides"},s("slot",{key:"992ac1e4849bcc042ccd0eeb47319b3e34364a1f"})),this.testimonialCount>1&&s("div",{key:"247420c536242d5e66ada662a23828eaa0190c84",class:"testimonial-progress"},Array.from({length:this.testimonialCount}).map(((t,i)=>s("div",{class:`progress-dot ${i===this.currentIndex?"active":""}`,onClick:()=>{if(!this.isAnimating&&i!==this.currentIndex){this.isAnimating=true;this.currentIndex=i;this.updateVisibleTestimonial();setTimeout((()=>{this.isAnimating=false}),500)}}})))),this.testimonialCount>1&&s("div",{key:"dc31d36ed57808d5c28d2c1dcb2729e6ed5342f7",class:"carousel-navigation"},s("button",{key:"37f18430b88a9e983fc6e673d206be03c4cc1d40",class:"nav-button prev",disabled:!t,onClick:this.goToPrevious,"aria-label":"Previous testimonial"},s("svg",{key:"9292c82f1b5f993aa8cffd301592dba8f5261c10",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},s("path",{key:"0c34f308ae42547d24584858769ee295e01e02c9",d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),s("button",{key:"984436b6d311d92623a9740d871c57d09de1a06e",class:"nav-button next",disabled:!e,onClick:this.goToNext,"aria-label":"Next testimonial"},s("svg",{key:"e3d55f1efb6c29a74256c4db64283cb1abaa0aa5",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},s("path",{key:"c9404bc3ad64ccb8ad0da3291ce7d4b622637e3d",d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))))}get host(){return e(this)}};o.style=a;export{o as af_testimonial_carousel};
2
- //# sourceMappingURL=p-56284540.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as t,h as e,H as o}from"./p-UbNmjSSX.js";const i=":host{display:inline-block}.button-group{display:inline-flex;align-items:center;box-sizing:border-box}.direction-horizontal{flex-direction:row}.direction-vertical{flex-direction:column}::slotted(*){flex-shrink:0}";const r=class{constructor(e){t(this,e);this.direction="horizontal";this.gap="8px"}render(){const t={"button-group":true,[`direction-${this.direction}`]:true};return e(o,{key:"c6cab092c05c6e6b7b859c662f318067590b51e3"},e("div",{key:"289501b3693d0eeb68c4b2f85bb3b8398ca7610b",class:t,style:{gap:this.gap}},e("slot",{key:"b852bcf016846022ee0cf8d23ce5a57aa0856adf"})))}};r.style=i;export{r as af_button_group};
2
- //# sourceMappingURL=p-9c0b3380.entry.js.map