@affinda/wc 0.0.1 → 0.0.2

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 (260) hide show
  1. package/dist/affinda/af-aspect-ratio.entry.esm.js.map +1 -0
  2. package/dist/affinda/af-color-swatch.entry.esm.js.map +1 -0
  3. package/dist/affinda/af-container.entry.esm.js.map +1 -0
  4. package/dist/affinda/af-heading.af-nav-item.af-text.entry.esm.js.map +1 -0
  5. package/dist/affinda/affinda.esm.js +1 -1
  6. package/dist/affinda/index.esm.js +1 -1
  7. package/dist/affinda/index.esm.js.map +1 -1
  8. package/dist/affinda/p-96c74b41.entry.js +2 -0
  9. package/dist/affinda/p-96c74b41.entry.js.map +1 -0
  10. package/dist/affinda/p-DIoXjiux.js +3 -0
  11. package/dist/affinda/p-DIoXjiux.js.map +1 -0
  12. package/dist/affinda/p-a6a8ecde.entry.js +2 -0
  13. package/dist/affinda/p-a6a8ecde.entry.js.map +1 -0
  14. package/dist/affinda/p-ccdcebe9.entry.js +2 -0
  15. package/dist/affinda/p-ccdcebe9.entry.js.map +1 -0
  16. package/dist/affinda/p-f79068a7.entry.js +2 -0
  17. package/dist/affinda/p-f79068a7.entry.js.map +1 -0
  18. package/dist/cjs/af-aspect-ratio.cjs.entry.js +83 -0
  19. package/dist/cjs/af-aspect-ratio.entry.cjs.js.map +1 -0
  20. package/dist/cjs/af-color-swatch.cjs.entry.js +23 -0
  21. package/dist/cjs/af-color-swatch.entry.cjs.js.map +1 -0
  22. package/dist/cjs/af-container.cjs.entry.js +26 -0
  23. package/dist/cjs/af-container.entry.cjs.js.map +1 -0
  24. package/dist/cjs/af-heading.af-nav-item.af-text.entry.cjs.js.map +1 -0
  25. package/dist/cjs/af-heading_3.cjs.entry.js +102 -0
  26. package/dist/cjs/affinda.cjs.js +2 -2
  27. package/dist/cjs/{index-5BGpYleS.js → index-DHjsui2n.js} +60 -57
  28. package/dist/cjs/index-DHjsui2n.js.map +1 -0
  29. package/dist/cjs/index.cjs.js +11 -133
  30. package/dist/cjs/index.cjs.js.map +1 -1
  31. package/dist/cjs/loader.cjs.js +2 -2
  32. package/dist/collection/assets/icons/account-01.svg +3 -0
  33. package/dist/collection/assets/icons/account-02.svg +3 -0
  34. package/dist/collection/assets/icons/accounts-payable.svg +3 -0
  35. package/dist/collection/assets/icons/arrow-down.svg +3 -0
  36. package/dist/collection/assets/icons/arrow-left.svg +3 -0
  37. package/dist/collection/assets/icons/arrow-right.svg +3 -0
  38. package/dist/collection/assets/icons/arrow-up.svg +3 -0
  39. package/dist/collection/assets/icons/bpo.svg +3 -0
  40. package/dist/collection/assets/icons/chats.svg +3 -0
  41. package/dist/collection/assets/icons/check-circle.svg +3 -0
  42. package/dist/collection/assets/icons/check.svg +3 -0
  43. package/dist/collection/assets/icons/chevron-down.svg +3 -0
  44. package/dist/collection/assets/icons/chevron-left.svg +3 -0
  45. package/dist/collection/assets/icons/chevron-right.svg +3 -0
  46. package/dist/collection/assets/icons/chevron-up.svg +3 -0
  47. package/dist/collection/assets/icons/close.svg +3 -0
  48. package/dist/collection/assets/icons/code.svg +3 -0
  49. package/dist/collection/assets/icons/data.svg +3 -0
  50. package/dist/collection/assets/icons/document-upload.svg +3 -0
  51. package/dist/collection/assets/icons/download.svg +3 -0
  52. package/dist/collection/assets/icons/edit.svg +3 -0
  53. package/dist/collection/assets/icons/email.svg +3 -0
  54. package/dist/collection/assets/icons/eye.svg +3 -0
  55. package/dist/collection/assets/icons/facebook.svg +3 -0
  56. package/dist/collection/assets/icons/gear.svg +3 -0
  57. package/dist/collection/assets/icons/github.svg +3 -0
  58. package/dist/collection/assets/icons/heart.svg +3 -0
  59. package/dist/collection/assets/icons/home.svg +3 -0
  60. package/dist/collection/assets/icons/info.svg +3 -0
  61. package/dist/collection/assets/icons/insurance.svg +3 -0
  62. package/dist/collection/assets/icons/lending-01.svg +3 -0
  63. package/dist/collection/assets/icons/lending-02.svg +3 -0
  64. package/dist/collection/assets/icons/link-out.svg +3 -0
  65. package/dist/collection/assets/icons/linkedin.svg +3 -0
  66. package/dist/collection/assets/icons/map-pin.svg +3 -0
  67. package/dist/collection/assets/icons/menu.svg +3 -0
  68. package/dist/collection/assets/icons/minus.svg +3 -0
  69. package/dist/collection/assets/icons/numbers.svg +16 -0
  70. package/dist/collection/assets/icons/pause.svg +3 -0
  71. package/dist/collection/assets/icons/play.svg +3 -0
  72. package/dist/collection/assets/icons/plus.svg +3 -0
  73. package/dist/collection/assets/icons/productivity.svg +3 -0
  74. package/dist/collection/assets/icons/quote.svg +3 -0
  75. package/dist/collection/assets/icons/recruitment.svg +3 -0
  76. package/dist/collection/assets/icons/refresh.svg +3 -0
  77. package/dist/collection/assets/icons/search.svg +3 -0
  78. package/dist/collection/assets/icons/security-01.svg +3 -0
  79. package/dist/collection/assets/icons/security-02.svg +3 -0
  80. package/dist/collection/assets/icons/solutions.svg +3 -0
  81. package/dist/collection/assets/icons/support.svg +3 -0
  82. package/dist/collection/assets/icons/system.svg +3 -0
  83. package/dist/collection/assets/icons/time.svg +3 -0
  84. package/dist/collection/assets/icons/verification-01.svg +3 -0
  85. package/dist/collection/assets/icons/wand.svg +3 -0
  86. package/dist/collection/assets/icons/x.svg +3 -0
  87. package/dist/collection/assets/icons/youtube.svg +3 -0
  88. package/dist/collection/assets/illustrations/accuracy-inkwell.svg +101 -0
  89. package/dist/collection/assets/illustrations/accuracy-mist-green.svg +101 -0
  90. package/dist/collection/assets/illustrations/accuracy-soft-clay.svg +101 -0
  91. package/dist/collection/assets/illustrations/accuracy-white-ivory.svg +101 -0
  92. package/dist/collection/assets/illustrations/automate-inkwell.svg +149 -0
  93. package/dist/collection/assets/illustrations/automate-mist-green.svg +149 -0
  94. package/dist/collection/assets/illustrations/automate-soft-clay.svg +149 -0
  95. package/dist/collection/assets/illustrations/automate-white-ivory.svg +149 -0
  96. package/dist/collection/assets/illustrations/document-raise-inkwell.svg +131 -0
  97. package/dist/collection/assets/illustrations/document-raise-mist-green.svg +131 -0
  98. package/dist/collection/assets/illustrations/document-raise-soft-clay.svg +131 -0
  99. package/dist/collection/assets/illustrations/document-raise-white-ivory.svg +131 -0
  100. package/dist/collection/assets/illustrations/document-type-inkwell.svg +150 -0
  101. package/dist/collection/assets/illustrations/document-type-mist-green.svg +150 -0
  102. package/dist/collection/assets/illustrations/document-type-soft-clay.svg +150 -0
  103. package/dist/collection/assets/illustrations/document-type-white-ivory.svg +150 -0
  104. package/dist/collection/assets/illustrations/grow-business-inkwell.svg +116 -0
  105. package/dist/collection/assets/illustrations/grow-business-mist-green.svg +129 -0
  106. package/dist/collection/assets/illustrations/grow-business-soft-clay.svg +129 -0
  107. package/dist/collection/assets/illustrations/grow-business-white-ivory.svg +129 -0
  108. package/dist/collection/assets/illustrations/industries-inkwell.svg +30 -0
  109. package/dist/collection/assets/illustrations/industries-mist-green.svg +30 -0
  110. package/dist/collection/assets/illustrations/industries-soft-clay.svg +30 -0
  111. package/dist/collection/assets/illustrations/industries-white-ivory.svg +41 -0
  112. package/dist/collection/assets/illustrations/intelligence-inkwell.svg +65 -0
  113. package/dist/collection/assets/illustrations/intelligence-mist-green.svg +65 -0
  114. package/dist/collection/assets/illustrations/intelligence-soft-clay.svg +65 -0
  115. package/dist/collection/assets/illustrations/intelligence-white-ivory.svg +65 -0
  116. package/dist/collection/assets/illustrations/page-turn-inkwell.svg +125 -0
  117. package/dist/collection/assets/illustrations/page-turn-mist-green.svg +125 -0
  118. package/dist/collection/assets/illustrations/page-turn-soft-clay.svg +125 -0
  119. package/dist/collection/assets/illustrations/page-turn-white-ivory.svg +125 -0
  120. package/dist/collection/assets/illustrations/shapes-inkwell.svg +65 -0
  121. package/dist/collection/assets/illustrations/shapes-mist-green.svg +65 -0
  122. package/dist/collection/assets/illustrations/shapes-soft-clay.svg +65 -0
  123. package/dist/collection/assets/illustrations/shapes-white-ivory.svg +65 -0
  124. package/dist/collection/assets/illustrations/team-leader-inkwell.svg +106 -0
  125. package/dist/collection/assets/illustrations/team-leader-mist-green.svg +106 -0
  126. package/dist/collection/assets/illustrations/team-leader-soft-clay.svg +106 -0
  127. package/dist/collection/assets/illustrations/team-leader-white-ivory.svg +106 -0
  128. package/dist/collection/assets/illustrations/thinking-inkwell.svg +89 -0
  129. package/dist/collection/assets/illustrations/thinking-mist-green.svg +89 -0
  130. package/dist/collection/assets/illustrations/thinking-soft-clay.svg +89 -0
  131. package/dist/collection/assets/illustrations/thinking-white-ivory.svg +89 -0
  132. package/dist/collection/collection-manifest.json +6 -5
  133. package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.css +17 -0
  134. package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.js +117 -0
  135. package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.js.map +1 -0
  136. package/dist/collection/components/af-color-swatch/af-color-swatch.css +42 -0
  137. package/dist/collection/components/af-color-swatch/af-color-swatch.js +88 -0
  138. package/dist/collection/components/af-color-swatch/af-color-swatch.js.map +1 -0
  139. package/dist/collection/components/af-container/af-container.css +76 -0
  140. package/dist/collection/components/af-container/af-container.js +57 -0
  141. package/dist/collection/components/af-container/af-container.js.map +1 -0
  142. package/dist/collection/components/af-heading/af-heading.css +99 -0
  143. package/dist/collection/components/af-heading/af-heading.js +86 -0
  144. package/dist/collection/components/af-heading/af-heading.js.map +1 -0
  145. package/dist/collection/components/af-nav-item/af-nav-item.css +135 -0
  146. package/dist/collection/components/af-nav-item/af-nav-item.js +134 -0
  147. package/dist/collection/components/af-nav-item/af-nav-item.js.map +1 -0
  148. package/dist/collection/components/af-text/af-text.css +61 -0
  149. package/dist/collection/components/af-text/af-text.js +96 -0
  150. package/dist/collection/components/af-text/af-text.js.map +1 -0
  151. package/dist/collection/components.js +6 -5
  152. package/dist/collection/components.js.map +1 -1
  153. package/dist/components/{af-icon-button.d.ts → af-aspect-ratio.d.ts} +4 -4
  154. package/dist/components/af-aspect-ratio.js +9 -0
  155. package/dist/components/af-aspect-ratio.js.map +1 -0
  156. package/dist/components/af-color-swatch.d.ts +11 -0
  157. package/dist/components/af-color-swatch.js +9 -0
  158. package/dist/components/af-color-swatch.js.map +1 -0
  159. package/dist/components/{af-input.d.ts → af-container.d.ts} +4 -4
  160. package/dist/components/af-container.js +9 -0
  161. package/dist/components/af-container.js.map +1 -0
  162. package/dist/components/{af-button.d.ts → af-heading.d.ts} +4 -4
  163. package/dist/components/af-heading.js +9 -0
  164. package/dist/components/af-heading.js.map +1 -0
  165. package/dist/components/{af-badge.d.ts → af-nav-item.d.ts} +4 -4
  166. package/dist/components/af-nav-item.js +9 -0
  167. package/dist/components/af-nav-item.js.map +1 -0
  168. package/dist/components/{af-card.d.ts → af-text.d.ts} +4 -4
  169. package/dist/components/af-text.js +9 -0
  170. package/dist/components/af-text.js.map +1 -0
  171. package/dist/components/index.js +7 -6
  172. package/dist/components/index.js.map +1 -1
  173. package/dist/components/p-BZ5_l5Q-.js +50 -0
  174. package/dist/components/p-BZ5_l5Q-.js.map +1 -0
  175. package/dist/components/p-CCPh8sLt.js +102 -0
  176. package/dist/components/p-CCPh8sLt.js.map +1 -0
  177. package/dist/components/p-CbKdmUDd.js +59 -0
  178. package/dist/components/p-CbKdmUDd.js.map +1 -0
  179. package/dist/components/p-Ck_3oNdO.js +44 -0
  180. package/dist/components/p-Ck_3oNdO.js.map +1 -0
  181. package/dist/components/p-DbZX-luM.js +45 -0
  182. package/dist/components/p-DbZX-luM.js.map +1 -0
  183. package/dist/components/p-Ntwn3krC.js +66 -0
  184. package/dist/components/p-Ntwn3krC.js.map +1 -0
  185. package/dist/components/{p-DOtgsZRB.js → p-TaHgCKVa.js} +60 -61
  186. package/dist/components/p-TaHgCKVa.js.map +1 -0
  187. package/dist/esm/af-aspect-ratio.entry.js +81 -0
  188. package/dist/esm/af-aspect-ratio.entry.js.map +1 -0
  189. package/dist/esm/af-color-swatch.entry.js +21 -0
  190. package/dist/esm/af-color-swatch.entry.js.map +1 -0
  191. package/dist/esm/af-container.entry.js +24 -0
  192. package/dist/esm/af-container.entry.js.map +1 -0
  193. package/dist/esm/af-heading.af-nav-item.af-text.entry.js.map +1 -0
  194. package/dist/esm/af-heading_3.entry.js +98 -0
  195. package/dist/esm/affinda.js +3 -3
  196. package/dist/esm/{index-o0tfWqnY.js → index-DIoXjiux.js} +60 -57
  197. package/dist/esm/index-DIoXjiux.js.map +1 -0
  198. package/dist/esm/index.js +5 -132
  199. package/dist/esm/index.js.map +1 -1
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/types/components/af-aspect-ratio/af-aspect-ratio.d.ts +18 -0
  202. package/dist/types/components/af-color-swatch/af-color-swatch.d.ts +9 -0
  203. package/dist/types/components/af-container/af-container.d.ts +15 -0
  204. package/dist/types/components/af-heading/af-heading.d.ts +8 -0
  205. package/dist/types/components/af-nav-item/af-nav-item.d.ts +27 -0
  206. package/dist/types/components/af-text/af-text.d.ts +9 -0
  207. package/dist/types/components.d.ts +183 -208
  208. package/package.json +1 -1
  209. package/dist/affinda/af-badge.af-button.af-card.af-icon-button.af-input.entry.esm.js.map +0 -1
  210. package/dist/affinda/p-bca10492.entry.js +0 -2
  211. package/dist/affinda/p-bca10492.entry.js.map +0 -1
  212. package/dist/affinda/p-o0tfWqnY.js +0 -3
  213. package/dist/affinda/p-o0tfWqnY.js.map +0 -1
  214. package/dist/cjs/af-badge.af-button.af-card.af-icon-button.af-input.entry.cjs.js.map +0 -1
  215. package/dist/cjs/af-badge_5.cjs.entry.js +0 -13
  216. package/dist/cjs/index-5BGpYleS.js.map +0 -1
  217. package/dist/collection/components/af-badge/af-badge.css +0 -29
  218. package/dist/collection/components/af-badge/af-badge.js +0 -47
  219. package/dist/collection/components/af-badge/af-badge.js.map +0 -1
  220. package/dist/collection/components/af-button/af-button.css +0 -74
  221. package/dist/collection/components/af-button/af-button.js +0 -149
  222. package/dist/collection/components/af-button/af-button.js.map +0 -1
  223. package/dist/collection/components/af-card/af-card.css +0 -69
  224. package/dist/collection/components/af-card/af-card.js +0 -70
  225. package/dist/collection/components/af-card/af-card.js.map +0 -1
  226. package/dist/collection/components/af-icon-button/af-icon-button.css +0 -70
  227. package/dist/collection/components/af-icon-button/af-icon-button.js +0 -145
  228. package/dist/collection/components/af-icon-button/af-icon-button.js.map +0 -1
  229. package/dist/collection/components/af-input/af-input.css +0 -57
  230. package/dist/collection/components/af-input/af-input.js +0 -193
  231. package/dist/collection/components/af-input/af-input.js.map +0 -1
  232. package/dist/components/af-badge.js +0 -9
  233. package/dist/components/af-badge.js.map +0 -1
  234. package/dist/components/af-button.js +0 -9
  235. package/dist/components/af-button.js.map +0 -1
  236. package/dist/components/af-card.js +0 -9
  237. package/dist/components/af-card.js.map +0 -1
  238. package/dist/components/af-icon-button.js +0 -9
  239. package/dist/components/af-icon-button.js.map +0 -1
  240. package/dist/components/af-input.js +0 -9
  241. package/dist/components/af-input.js.map +0 -1
  242. package/dist/components/p-B7I93sz2.js +0 -39
  243. package/dist/components/p-B7I93sz2.js.map +0 -1
  244. package/dist/components/p-CZd1ieht.js +0 -62
  245. package/dist/components/p-CZd1ieht.js.map +0 -1
  246. package/dist/components/p-D6PwARU0.js +0 -59
  247. package/dist/components/p-D6PwARU0.js.map +0 -1
  248. package/dist/components/p-DOtgsZRB.js.map +0 -1
  249. package/dist/components/p-DZIXhvI0.js +0 -44
  250. package/dist/components/p-DZIXhvI0.js.map +0 -1
  251. package/dist/components/p-zIKPa48S.js +0 -62
  252. package/dist/components/p-zIKPa48S.js.map +0 -1
  253. package/dist/esm/af-badge.af-button.af-card.af-icon-button.af-input.entry.js.map +0 -1
  254. package/dist/esm/af-badge_5.entry.js +0 -3
  255. package/dist/esm/index-o0tfWqnY.js.map +0 -1
  256. package/dist/types/components/af-badge/af-badge.d.ts +0 -5
  257. package/dist/types/components/af-button/af-button.d.ts +0 -15
  258. package/dist/types/components/af-card/af-card.d.ts +0 -7
  259. package/dist/types/components/af-icon-button/af-icon-button.d.ts +0 -15
  260. package/dist/types/components/af-input/af-input.d.ts +0 -24
@@ -0,0 +1,89 @@
1
+ <svg width="432" height="432" viewBox="0 0 432 432" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="432" height="432" fill="#FFF9EE"/>
3
+ <g filter="url(#filter0_g_536_16863)">
4
+ <path d="M251.219 193.578C272.974 203.788 287.512 194.343 293.043 184.91C299.31 174.224 308.372 148.452 285.019 136.626C295.83 126.484 295.808 105.044 290.378 94.1977C280.218 73.9067 258.256 72.2432 249.359 72.0715C239.307 71.8783 225.959 76.2534 218.779 83.2938C221.366 69.3312 215.492 59.0175 206.545 51.5229C203.186 48.711 199.125 46.8401 194.94 45.5415C181.736 41.4453 166.868 43.0337 154.83 49.8343C142.792 56.635 133.752 68.5442 130.446 81.9666C126.694 72.2897 116.559 67.546 105.047 67.7607C94.6688 67.9539 80.2948 71.102 71.1474 85.5261C61.6065 100.576 64.4433 124.144 74.2812 130.612C56.1152 133.134 43.1972 154.187 43.3153 176.117C43.4691 204.256 69.3372 218.548 84.9132 219.611C106.081 221.052 117.36 211.805 124.093 200.708C127.567 219.836 145.407 224.812 149.206 226.053C156.919 228.565 167.605 227.717 175.268 224.458C185.148 220.251 192.207 213.218 193.337 203.051C204.252 213.279 221.824 219.335 234.989 212.23C242.412 208.227 248.114 201.409 251.216 193.578H251.219Z" fill="#C0AB8D"/>
5
+ </g>
6
+ <g filter="url(#filter1_g_536_16863)">
7
+ <path d="M133.95 95.4375C146.995 92.7337 155.347 99.1681 158.256 105.401L158.257 105.402C162.016 113.467 163.131 122.086 157.394 130.303C151.916 138.147 140.739 142.728 130.851 139.939L130.381 139.801C125.173 138.202 121.393 134.613 119.023 130.685C116.683 126.807 115.538 122.309 115.885 118.498L115.886 118.495C116.236 114.677 117.205 109.71 119.86 105.283C122.563 100.777 126.957 96.9475 133.767 95.4844C133.827 95.4684 133.888 95.4504 133.95 95.4375ZM151.912 108.359C150.378 105.074 145.269 100.282 135.479 102.269C135.443 102.277 135.407 102.289 135.37 102.297C130.554 103.295 127.684 105.847 125.863 108.884C123.969 112.041 123.16 115.831 122.857 119.135C122.667 121.226 123.316 124.251 125.016 127.068C126.686 129.836 129.194 132.115 132.435 133.109H132.436C139.323 135.224 147.701 131.958 151.655 126.296C155.436 120.881 155.073 115.141 151.912 108.36V108.359Z" fill="#C6D5D1"/>
8
+ </g>
9
+ <g filter="url(#filter2_g_536_16863)">
10
+ <path d="M148.276 159.659C152.147 158.857 154.428 160.758 155.18 162.369C156.349 164.878 156.599 167.305 154.99 169.609C153.381 171.913 150.031 173.242 147.176 172.366C144.32 171.489 142.926 168.398 143.108 166.403C143.328 163.995 144.31 160.483 148.276 159.661V159.659Z" fill="#C6D5D1"/>
11
+ </g>
12
+ <g filter="url(#filter3_g_536_16863)">
13
+ <path d="M93.4882 143.871C94.875 142.667 96.4575 142.835 97.2526 143.056C97.9385 143.247 98.503 143.592 98.6498 143.68L103.907 146.763C106.39 148.218 109.404 149.979 112.345 151.691C115.287 153.404 118.15 155.062 120.337 156.312C121.431 156.938 122.345 157.455 123.011 157.824C123.345 158.009 123.602 158.147 123.78 158.241C123.859 158.283 123.908 158.308 123.933 158.32C124.85 158.708 125.562 159.47 125.884 160.42C126.232 161.448 126.083 162.58 125.481 163.484L125.479 163.487C125.108 164.043 124.586 164.48 123.978 164.748L123.712 164.852L123.708 164.854C123.704 164.856 123.7 164.857 123.694 164.859C123.681 164.864 123.662 164.87 123.638 164.878C123.589 164.895 123.517 164.921 123.424 164.953C123.236 165.018 122.96 165.112 122.61 165.233C121.909 165.475 120.908 165.82 119.706 166.233C117.304 167.059 114.097 168.157 110.885 169.242C107.676 170.327 104.446 171.405 102.002 172.19C100.787 172.58 99.7349 172.908 98.9694 173.128C98.5976 173.235 98.2329 173.335 97.9315 173.402C97.801 173.432 97.5636 173.483 97.3014 173.51C97.1983 173.521 96.8847 173.551 96.4973 173.509C96.3133 173.488 95.8971 173.431 95.4179 173.214C94.9384 172.996 94.0119 172.434 93.5682 171.223C93.4858 170.998 93.445 170.812 93.432 170.753C93.4135 170.668 93.4016 170.597 93.3944 170.553C93.3798 170.464 93.3691 170.386 93.3631 170.336C93.3506 170.231 93.3405 170.117 93.3314 170.014C93.3127 169.802 93.2914 169.524 93.2691 169.203C93.2242 168.554 93.1687 167.661 93.1067 166.611C92.9827 164.509 92.8308 161.74 92.683 158.97C92.3892 153.466 92.1058 147.841 92.0944 147.471L92.0934 147.453C92.0861 147.163 92.0934 146.726 92.1801 146.249C92.2324 145.962 92.445 144.789 93.4723 143.885C93.4775 143.881 93.483 143.876 93.4882 143.871ZM99.6729 158.596C99.8037 161.048 99.938 163.489 100.052 165.463C102.421 164.7 105.526 163.664 108.643 162.611C110.499 161.984 112.353 161.352 114.051 160.771C112.428 159.834 110.638 158.797 108.824 157.741C105.455 155.781 101.994 153.754 99.3385 152.198C99.4363 154.1 99.553 156.351 99.6729 158.596Z" fill="#C6D5D1"/>
14
+ </g>
15
+ <g filter="url(#filter4_g_536_16863)">
16
+ <path d="M363.477 346.127C363.824 346.004 365.189 345.566 366.611 346.429C367.036 346.687 367.412 347.045 367.515 347.141C367.72 347.332 367.957 347.564 368.21 347.819C368.72 348.333 369.377 349.018 370.126 349.81C371.628 351.398 373.562 353.484 375.549 355.634C379.066 359.441 382.696 363.395 384.555 365.339L385.239 366.043L385.244 366.048C386.757 367.582 386.936 370.017 385.594 371.757C385.578 371.778 385.559 371.797 385.543 371.817C384.122 373.671 380.021 379.009 376.186 383.859C374.247 386.312 372.355 388.667 370.907 390.388C370.191 391.24 369.541 391.986 369.032 392.521C368.793 392.772 368.498 393.069 368.198 393.316C368.075 393.417 367.773 393.661 367.364 393.863C367.172 393.958 366.725 394.161 366.119 394.223C365.459 394.291 364.301 394.202 363.321 393.272C362.997 392.964 358.206 388.25 353.556 383.55C351.226 381.195 348.901 378.812 347.171 376.966C346.312 376.05 345.564 375.227 345.027 374.592C344.768 374.286 344.499 373.953 344.283 373.642C344.185 373.501 344.017 373.249 343.871 372.94C343.8 372.791 343.671 372.5 343.588 372.119C343.523 371.823 343.354 370.911 343.819 369.882L343.93 369.659C344.042 369.45 344.147 369.294 344.153 369.285C344.22 369.183 344.296 369.071 344.373 368.96C344.53 368.735 344.738 368.444 344.983 368.105C345.477 367.424 346.16 366.501 346.965 365.425C348.576 363.272 350.704 360.474 352.858 357.716C355.005 354.968 357.207 352.223 358.955 350.19C359.819 349.186 360.63 348.287 361.297 347.638C361.612 347.331 362.007 346.969 362.426 346.678C362.619 346.544 362.99 346.301 363.477 346.127ZM364.262 354.754C362.622 356.66 360.501 359.303 358.374 362.026C356.253 364.74 354.155 367.499 352.569 369.619C352.13 370.206 351.732 370.741 351.385 371.211C351.652 371.504 351.949 371.828 352.277 372.178C353.941 373.953 356.213 376.282 358.533 378.626C360.848 380.966 363.192 383.304 364.992 385.089C365.224 385.319 365.448 385.539 365.66 385.75C367.024 384.123 368.817 381.894 370.695 379.518C373.639 375.794 376.745 371.77 378.655 369.288C376.577 367.081 373.382 363.605 370.407 360.384C368.419 358.233 366.51 356.175 365.04 354.62C364.922 354.495 364.806 354.374 364.694 354.256C364.556 354.414 364.412 354.58 364.262 354.754Z" fill="#C6D5D1"/>
17
+ </g>
18
+ <g filter="url(#filter5_g_536_16863)">
19
+ <path d="M340.076 396.914C339.141 396.847 324.935 394.06 324.258 394.117C323.581 394.173 320.618 409.93 320.695 410.378C320.772 410.827 337.247 414.038 337.66 414.1C338.072 414.162 340.078 396.914 340.078 396.914H340.076Z" fill="#C6D5D1"/>
20
+ </g>
21
+ <g filter="url(#filter6_g_536_16863)">
22
+ <path d="M354.776 234.592C354.776 231.556 355.51 198.013 344.024 165.301C338.291 148.971 329.587 133.077 316.436 121.288C303.358 109.564 285.693 101.723 261.615 101.723C237.344 101.723 219.877 108.1 207.207 117.431C194.505 126.786 186.373 139.3 181.118 151.957C175.859 164.625 173.528 177.33 172.381 186.894C171.808 191.67 171.533 195.632 171.327 198.439C171.227 199.804 171.138 201.003 171.029 201.847C170.98 202.231 170.9 202.767 170.747 203.258C170.686 203.453 170.505 204.022 170.063 204.58C169.824 204.883 169.369 205.36 168.637 205.67C168.31 205.809 167.971 205.893 167.632 205.93C167.601 205.936 167.565 205.942 167.524 205.95C167.338 205.985 167.05 206.044 166.674 206.129C165.92 206.301 164.818 206.582 163.486 207.013C160.811 207.878 157.268 209.325 153.751 211.641C146.821 216.204 139.934 224.137 139.934 238.192C139.934 245.247 141.847 250.409 144.57 254.247C147.32 258.122 151.034 260.839 154.887 262.742C158.744 264.647 162.644 265.687 165.607 266.247C167.081 266.525 168.302 266.68 169.142 266.765C169.561 266.808 169.884 266.833 170.094 266.847C170.199 266.854 170.275 266.858 170.321 266.861C170.344 266.862 170.36 266.862 170.368 266.863H170.369C172.205 266.931 173.677 268.407 173.738 270.244L177.516 383.556C177.58 385.488 176.066 387.106 174.134 387.17C172.202 387.235 170.584 385.72 170.52 383.789L166.844 273.536C166.098 273.433 165.245 273.301 164.309 273.125C160.933 272.487 156.381 271.287 151.787 269.018C147.188 266.747 142.45 263.356 138.861 258.298C135.246 253.204 132.934 246.608 132.934 238.192C132.934 221.306 141.439 211.367 149.901 205.794C154.08 203.043 158.235 201.355 161.332 200.353C162.437 199.995 163.416 199.723 164.224 199.519C164.26 199.066 164.302 198.538 164.347 197.928C164.551 195.137 164.837 191.02 165.432 186.06C166.621 176.151 169.057 162.752 174.653 149.272C180.255 135.78 189.067 122.097 203.056 111.794C217.077 101.468 236.046 94.7232 261.615 94.7231C287.378 94.7231 306.717 103.173 321.108 116.075C335.426 128.91 344.658 145.976 350.629 162.983C362.553 196.945 361.776 231.587 361.776 234.592V270.731C361.776 272.335 360.686 273.733 359.131 274.125L336.322 279.868C336.356 280.382 336.393 280.957 336.426 281.587C336.583 284.569 336.715 288.813 336.619 293.9C336.427 304.052 335.324 317.668 331.638 331.345C327.957 345.004 321.634 358.964 310.836 369.537C299.95 380.195 284.754 387.172 263.88 387.172C261.947 387.172 260.38 385.605 260.38 383.672C260.38 381.739 261.947 380.172 263.88 380.172C283.029 380.172 296.436 373.84 305.939 364.535C315.53 355.144 321.386 342.484 324.879 329.524C328.367 316.583 329.435 303.579 329.62 293.767C329.713 288.872 329.585 284.797 329.436 281.956C329.361 280.536 329.281 279.425 329.22 278.676C329.189 278.302 329.163 278.018 329.146 277.831C329.137 277.737 329.13 277.668 329.126 277.624C329.124 277.601 329.122 277.585 329.121 277.576L329.12 277.567L329.101 277.244C329.078 275.637 330.161 274.201 331.746 273.802L354.776 268.002V234.592ZM166.677 199.003C166.688 199.068 166.759 199.5 167.214 202.417L166.681 199.002C166.679 199.003 166.678 199.003 166.677 199.003ZM168.04 199.048C168.024 199.045 168.009 199.041 167.993 199.038C168.009 199.041 168.024 199.045 168.04 199.048Z" fill="#14343B"/>
23
+ </g>
24
+ <defs>
25
+ <filter id="filter0_g_536_16863" x="42.6209" y="42.6116" width="258.215" height="185.597" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
26
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
27
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
28
+ <feTurbulence type="fractalNoise" baseFrequency="0.12076154351234436 0.12076154351234436" numOctaves="3" seed="5163" />
29
+ <feDisplacementMap in="shape" scale="1.3871122598648071" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
30
+ <feMerge result="effect1_texture_536_16863">
31
+ <feMergeNode in="displacedImage"/>
32
+ </feMerge>
33
+ </filter>
34
+ <filter id="filter1_g_536_16863" x="115.378" y="94.3571" width="46.4552" height="46.8502" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
35
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
36
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
37
+ <feTurbulence type="fractalNoise" baseFrequency="0.18774552643299103 0.18774552643299103" numOctaves="3" seed="5163" />
38
+ <feDisplacementMap in="shape" scale="0.89221745729446411" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
39
+ <feMerge result="effect1_texture_536_16863">
40
+ <feMergeNode in="displacedImage"/>
41
+ </feMerge>
42
+ </filter>
43
+ <filter id="filter2_g_536_16863" x="142.479" y="158.857" width="14.2606" height="14.3937" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
44
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
45
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
46
+ <feTurbulence type="fractalNoise" baseFrequency="0.13669003546237946 0.13669003546237946" numOctaves="3" seed="5163" />
47
+ <feDisplacementMap in="shape" scale="1.225472092628479" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
48
+ <feMerge result="effect1_texture_536_16863">
49
+ <feMergeNode in="displacedImage"/>
50
+ </feMerge>
51
+ </filter>
52
+ <filter id="filter3_g_536_16863" x="91.6452" y="142.453" width="34.8698" height="31.5237" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
53
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
54
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
55
+ <feTurbulence type="fractalNoise" baseFrequency="0.18774552643299103 0.18774552643299103" numOctaves="3" seed="5163" />
56
+ <feDisplacementMap in="shape" scale="0.89221745729446411" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
57
+ <feMerge result="effect1_texture_536_16863">
58
+ <feMergeNode in="displacedImage"/>
59
+ </feMerge>
60
+ </filter>
61
+ <filter id="filter4_g_536_16863" x="343.058" y="345.461" width="43.8868" height="49.2262" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
62
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
63
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
64
+ <feTurbulence type="fractalNoise" baseFrequency="0.18774552643299103 0.18774552643299103" numOctaves="3" seed="5163" />
65
+ <feDisplacementMap in="shape" scale="0.89221745729446411" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
66
+ <feMerge result="effect1_texture_536_16863">
67
+ <feMergeNode in="displacedImage"/>
68
+ </feMerge>
69
+ </filter>
70
+ <filter id="filter5_g_536_16863" x="320.081" y="393.503" width="20.6107" height="21.2098" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
71
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
72
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
73
+ <feTurbulence type="fractalNoise" baseFrequency="0.13669003546237946 0.13669003546237946" numOctaves="3" seed="5163" />
74
+ <feDisplacementMap in="shape" scale="1.225472092628479" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
75
+ <feMerge result="effect1_texture_536_16863">
76
+ <feMergeNode in="displacedImage"/>
77
+ </feMerge>
78
+ </filter>
79
+ <filter id="filter6_g_536_16863" x="132.394" y="94.1838" width="229.932" height="293.528" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
80
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
81
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
82
+ <feTurbulence type="fractalNoise" baseFrequency="0.15529854595661163 0.15529854595661163" numOctaves="3" seed="5163" />
83
+ <feDisplacementMap in="shape" scale="1.0786310434341431" xChannelSelector="R" yChannelSelector="G" result="displacedImage" width="100%" height="100%" />
84
+ <feMerge result="effect1_texture_536_16863">
85
+ <feMergeNode in="displacedImage"/>
86
+ </feMerge>
87
+ </filter>
88
+ </defs>
89
+ </svg>
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "components/af-button/af-button.js",
4
- "components/af-badge/af-badge.js",
5
- "components/af-icon-button/af-icon-button.js",
6
- "components/af-card/af-card.js",
7
- "components/af-input/af-input.js"
3
+ "components/af-heading/af-heading.js",
4
+ "components/af-text/af-text.js",
5
+ "components/af-color-swatch/af-color-swatch.js",
6
+ "components/af-container/af-container.js",
7
+ "components/af-aspect-ratio/af-aspect-ratio.js",
8
+ "components/af-nav-item/af-nav-item.js"
8
9
  ],
9
10
  "compiler": {
10
11
  "name": "@stencil/core",
@@ -0,0 +1,17 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .aspect-ratio-container {
7
+ width: 100%;
8
+ position: relative;
9
+ overflow: hidden;
10
+ }
11
+
12
+ /* Ensure slotted content fills the container */
13
+ .aspect-ratio-container ::slotted(*) {
14
+ width: 100%;
15
+ height: 100%;
16
+ object-fit: cover;
17
+ }
@@ -0,0 +1,117 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * A container component that maintains a fixed aspect ratio for its content.
4
+ * Useful for images, videos, or any content that needs to maintain specific proportions.
5
+ */
6
+ export class AfAspectRatio {
7
+ constructor() {
8
+ /**
9
+ * The aspect ratio to maintain. Can be:
10
+ * - A predefined ratio: '1:1', '16:9', '4:3', 'golden-portrait', 'golden-landscape', 'a4-portrait', 'a4-landscape', 'letter-portrait', 'letter-landscape', etc.
11
+ * - A custom ratio in format 'width / height': '16 / 9', '4 / 3', '1.618 / 1', etc.
12
+ *
13
+ * @example
14
+ * <af-aspect-ratio ratio="16:9">Content</af-aspect-ratio>
15
+ * <af-aspect-ratio ratio="1.618 / 1">Content</af-aspect-ratio>
16
+ */
17
+ this.ratio = '1:1';
18
+ }
19
+ getRatioValue() {
20
+ // Map common ratio shortcuts to actual CSS aspect-ratio values
21
+ const ratioMap = {
22
+ // Common ratios
23
+ '1:1': '1 / 1',
24
+ '1:2': '1 / 2',
25
+ '2:1': '2 / 1',
26
+ '2:3': '2 / 3',
27
+ '3:1': '3 / 1',
28
+ '3:2': '3 / 2',
29
+ '3:4': '3 / 4',
30
+ '4:1': '4 / 1',
31
+ '4:3': '4 / 3',
32
+ '4:5': '4 / 5',
33
+ '5:2': '5 / 2',
34
+ '5:4': '5 / 4',
35
+ '8:3': '8 / 3',
36
+ '8:5': '8 / 5',
37
+ // Screen ratios
38
+ '9:8': '9 / 8',
39
+ '9:16': '9 / 16',
40
+ '9:21': '9 / 21',
41
+ '10:16': '10 / 16',
42
+ '14:3': '14 / 3',
43
+ '16:5': '16 / 5',
44
+ '16:9': '16 / 9',
45
+ '16:10': '16 / 10',
46
+ '21:9': '21 / 9',
47
+ '32:9': '32 / 9',
48
+ // Golden ratio variants
49
+ 'golden-portrait': '1 / 1.618',
50
+ 'golden-landscape': '1.618 / 1',
51
+ 'golden-portrait-half': '1 / 0.809',
52
+ 'golden-landscape-half': '0.809 / 1',
53
+ // Paper sizes - A4
54
+ 'a4-portrait': '1 / 1.414',
55
+ 'a4-landscape': '1.414 / 1',
56
+ 'a4-portrait-half': '1 / 0.707',
57
+ 'a4-landscape-half': '0.707 / 1',
58
+ // Paper sizes - Letter
59
+ 'letter-portrait': '1 / 1.294',
60
+ 'letter-landscape': '1.294 / 1',
61
+ 'letter-portrait-half': '1 / 0.647',
62
+ 'letter-landscape-half': '0.647 / 1',
63
+ // Special
64
+ '6:7': '6 / 7'
65
+ };
66
+ // If it's a predefined ratio, return the mapped value
67
+ if (ratioMap[this.ratio]) {
68
+ return ratioMap[this.ratio];
69
+ }
70
+ // Otherwise, assume it's a custom ratio already in the correct format
71
+ return this.ratio;
72
+ }
73
+ render() {
74
+ const ratioValue = this.getRatioValue();
75
+ return (h("div", { key: '02bfa5463911ecd25903521e90a0570bb3bca0ad', class: "aspect-ratio-container", style: { aspectRatio: ratioValue } }, h("slot", { key: '9575c859052e8f1b1b362d9395fdfdf43d46b0b4' })));
76
+ }
77
+ static get is() { return "af-aspect-ratio"; }
78
+ static get encapsulation() { return "shadow"; }
79
+ static get originalStyleUrls() {
80
+ return {
81
+ "$": ["af-aspect-ratio.css"]
82
+ };
83
+ }
84
+ static get styleUrls() {
85
+ return {
86
+ "$": ["af-aspect-ratio.css"]
87
+ };
88
+ }
89
+ static get properties() {
90
+ return {
91
+ "ratio": {
92
+ "type": "string",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "string",
96
+ "resolved": "string",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [{
103
+ "name": "example",
104
+ "text": "<af-aspect-ratio ratio=\"16:9\">Content</af-aspect-ratio>\n<af-aspect-ratio ratio=\"1.618 / 1\">Content</af-aspect-ratio>"
105
+ }],
106
+ "text": "The aspect ratio to maintain. Can be:\n- A predefined ratio: '1:1', '16:9', '4:3', 'golden-portrait', 'golden-landscape', 'a4-portrait', 'a4-landscape', 'letter-portrait', 'letter-landscape', etc.\n- A custom ratio in format 'width / height': '16 / 9', '4 / 3', '1.618 / 1', etc."
107
+ },
108
+ "getter": false,
109
+ "setter": false,
110
+ "reflect": false,
111
+ "attribute": "ratio",
112
+ "defaultValue": "'1:1'"
113
+ }
114
+ };
115
+ }
116
+ }
117
+ //# sourceMappingURL=af-aspect-ratio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"af-aspect-ratio.js","sourceRoot":"","sources":["../../../src/components/af-aspect-ratio/af-aspect-ratio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,aAAa;IAL1B;QAME;;;;;;;;WAQG;QACK,UAAK,GAAW,KAAK,CAAC;KAuE/B;IArES,aAAa;QACnB,+DAA+D;QAC/D,MAAM,QAAQ,GAA8B;YAC1C,gBAAgB;YAChB,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,gBAAgB;YAChB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,wBAAwB;YACxB,iBAAiB,EAAE,WAAW;YAC9B,kBAAkB,EAAE,WAAW;YAC/B,sBAAsB,EAAE,WAAW;YACnC,uBAAuB,EAAE,WAAW;YACpC,mBAAmB;YACnB,aAAa,EAAE,WAAW;YAC1B,cAAc,EAAE,WAAW;YAC3B,kBAAkB,EAAE,WAAW;YAC/B,mBAAmB,EAAE,WAAW;YAChC,uBAAuB;YACvB,iBAAiB,EAAE,WAAW;YAC9B,kBAAkB,EAAE,WAAW;YAC/B,sBAAsB,EAAE,WAAW;YACnC,uBAAuB,EAAE,WAAW;YACpC,UAAU;YACV,KAAK,EAAE,OAAO;SACf,CAAC;QAEF,sDAAsD;QACtD,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;QAED,sEAAsE;QACtE,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,MAAM;QACJ,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAExC,OAAO,CACL,4DACE,KAAK,EAAC,wBAAwB,EAC9B,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE;YAElC,8DAAa,CACT,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n/**\n * A container component that maintains a fixed aspect ratio for its content.\n * Useful for images, videos, or any content that needs to maintain specific proportions.\n */\n@Component({\n tag: 'af-aspect-ratio',\n styleUrl: 'af-aspect-ratio.css',\n shadow: true\n})\nexport class AfAspectRatio {\n /**\n * The aspect ratio to maintain. Can be:\n * - A predefined ratio: '1:1', '16:9', '4:3', 'golden-portrait', 'golden-landscape', 'a4-portrait', 'a4-landscape', 'letter-portrait', 'letter-landscape', etc.\n * - A custom ratio in format 'width / height': '16 / 9', '4 / 3', '1.618 / 1', etc.\n *\n * @example\n * <af-aspect-ratio ratio=\"16:9\">Content</af-aspect-ratio>\n * <af-aspect-ratio ratio=\"1.618 / 1\">Content</af-aspect-ratio>\n */\n @Prop() ratio: string = '1:1';\n\n private getRatioValue(): string {\n // Map common ratio shortcuts to actual CSS aspect-ratio values\n const ratioMap: { [key: string]: string } = {\n // Common ratios\n '1:1': '1 / 1',\n '1:2': '1 / 2',\n '2:1': '2 / 1',\n '2:3': '2 / 3',\n '3:1': '3 / 1',\n '3:2': '3 / 2',\n '3:4': '3 / 4',\n '4:1': '4 / 1',\n '4:3': '4 / 3',\n '4:5': '4 / 5',\n '5:2': '5 / 2',\n '5:4': '5 / 4',\n '8:3': '8 / 3',\n '8:5': '8 / 5',\n // Screen ratios\n '9:8': '9 / 8',\n '9:16': '9 / 16',\n '9:21': '9 / 21',\n '10:16': '10 / 16',\n '14:3': '14 / 3',\n '16:5': '16 / 5',\n '16:9': '16 / 9',\n '16:10': '16 / 10',\n '21:9': '21 / 9',\n '32:9': '32 / 9',\n // Golden ratio variants\n 'golden-portrait': '1 / 1.618',\n 'golden-landscape': '1.618 / 1',\n 'golden-portrait-half': '1 / 0.809',\n 'golden-landscape-half': '0.809 / 1',\n // Paper sizes - A4\n 'a4-portrait': '1 / 1.414',\n 'a4-landscape': '1.414 / 1',\n 'a4-portrait-half': '1 / 0.707',\n 'a4-landscape-half': '0.707 / 1',\n // Paper sizes - Letter\n 'letter-portrait': '1 / 1.294',\n 'letter-landscape': '1.294 / 1',\n 'letter-portrait-half': '1 / 0.647',\n 'letter-landscape-half': '0.647 / 1',\n // Special\n '6:7': '6 / 7'\n };\n\n // If it's a predefined ratio, return the mapped value\n if (ratioMap[this.ratio]) {\n return ratioMap[this.ratio];\n }\n\n // Otherwise, assume it's a custom ratio already in the correct format\n return this.ratio;\n }\n\n render() {\n const ratioValue = this.getRatioValue();\n\n return (\n <div\n class=\"aspect-ratio-container\"\n style={{ aspectRatio: ratioValue }}\n >\n <slot></slot>\n </div>\n );\n }\n}\n"]}
@@ -0,0 +1,42 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .swatch {
6
+ display: flex;
7
+ flex-direction: column;
8
+ border-radius: 8px;
9
+ overflow: hidden;
10
+ border: 1px solid #ece6f5;
11
+ background: white;
12
+ }
13
+
14
+ .color-preview {
15
+ width: 100%;
16
+ height: 120px;
17
+ flex-shrink: 0;
18
+ }
19
+
20
+ .size-large .color-preview {
21
+ height: 140px;
22
+ }
23
+
24
+ .color-info {
25
+ padding: 16px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 4px;
29
+ }
30
+
31
+ .color-name {
32
+ font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
33
+ font-size: 16px;
34
+ font-weight: 500;
35
+ color: #14343B;
36
+ }
37
+
38
+ .color-value {
39
+ font-family: 'Helvetica', 'Inter', monospace, system-ui, sans-serif;
40
+ font-size: 14px;
41
+ color: #708380;
42
+ }
@@ -0,0 +1,88 @@
1
+ import { h } from "@stencil/core";
2
+ export class AfColorSwatch {
3
+ constructor() {
4
+ /** Size variant */
5
+ this.size = 'default';
6
+ }
7
+ render() {
8
+ return (h("div", { key: '57a141b5af5c538c5cf842a61173dd391a91d59b', class: {
9
+ 'swatch': true,
10
+ [`size-${this.size}`]: true
11
+ }, part: "base" }, h("div", { key: '505252d9fbfb36df24f1907cd5a30278e55bf268', class: "color-preview", part: "preview", style: { backgroundColor: this.color } }), h("div", { key: '095621914872670c129c23825aa012bbba4e33bb', class: "color-info", part: "info" }, h("div", { key: '86b6164f0aed4a938a8faa210651bbc6746dd4f2', class: "color-name", part: "name" }, this.name), h("div", { key: '1d533780d3756b119ae36a6e8fa0c2b6b3acb7b4', class: "color-value", part: "value" }, this.color))));
12
+ }
13
+ static get is() { return "af-color-swatch"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["af-color-swatch.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["af-color-swatch.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "color": {
28
+ "type": "string",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "string",
32
+ "resolved": "string",
33
+ "references": {}
34
+ },
35
+ "required": true,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": "Color value (hex)"
40
+ },
41
+ "getter": false,
42
+ "setter": false,
43
+ "reflect": false,
44
+ "attribute": "color"
45
+ },
46
+ "name": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "string",
51
+ "resolved": "string",
52
+ "references": {}
53
+ },
54
+ "required": true,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Color name"
59
+ },
60
+ "getter": false,
61
+ "setter": false,
62
+ "reflect": false,
63
+ "attribute": "name"
64
+ },
65
+ "size": {
66
+ "type": "string",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "'default' | 'large'",
70
+ "resolved": "\"default\" | \"large\"",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Size variant"
78
+ },
79
+ "getter": false,
80
+ "setter": false,
81
+ "reflect": false,
82
+ "attribute": "size",
83
+ "defaultValue": "'default'"
84
+ }
85
+ };
86
+ }
87
+ }
88
+ //# sourceMappingURL=af-color-swatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"af-color-swatch.js","sourceRoot":"","sources":["../../../src/components/af-color-swatch/af-color-swatch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,aAAa;IAL1B;QAYE,mBAAmB;QACX,SAAI,GAAwB,SAAS,CAAC;KAoB/C;IAlBC,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;aAC5B,EAAE,IAAI,EAAC,MAAM;YACZ,4DACE,KAAK,EAAC,eAAe,EACrB,IAAI,EAAC,SAAS,EACd,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,EAAE,GACjC;YACP,4DAAK,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,MAAM;gBACjC,4DAAK,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,MAAM,IAAE,IAAI,CAAC,IAAI,CAAO;gBACrD,4DAAK,KAAK,EAAC,aAAa,EAAC,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAO,CACpD,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-color-swatch',\n styleUrl: 'af-color-swatch.css',\n shadow: true\n})\nexport class AfColorSwatch {\n /** Color value (hex) */\n @Prop() color!: string;\n\n /** Color name */\n @Prop() name!: string;\n\n /** Size variant */\n @Prop() size: 'default' | 'large' = 'default';\n\n render() {\n return (\n <div class={{\n 'swatch': true,\n [`size-${this.size}`]: true\n }} part=\"base\">\n <div\n class=\"color-preview\"\n part=\"preview\"\n style={{ backgroundColor: this.color }}\n ></div>\n <div class=\"color-info\" part=\"info\">\n <div class=\"color-name\" part=\"name\">{this.name}</div>\n <div class=\"color-value\" part=\"value\">{this.color}</div>\n </div>\n </div>\n );\n }\n}\n"]}
@@ -0,0 +1,76 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .container {
7
+ width: 100%;
8
+ margin-left: auto;
9
+ margin-right: auto;
10
+ box-sizing: border-box;
11
+
12
+ /* Mobile first: xsmall breakpoint (320px) */
13
+ padding-left: 16px;
14
+ padding-right: 16px;
15
+ }
16
+
17
+ /* Small breakpoint (375px) */
18
+ @media (min-width: 375px) {
19
+ .container {
20
+ padding-left: 20px;
21
+ padding-right: 20px;
22
+ }
23
+ }
24
+
25
+ /* Medium breakpoint (768px) */
26
+ @media (min-width: 768px) {
27
+ .container {
28
+ padding-left: 32px;
29
+ padding-right: 32px;
30
+ }
31
+
32
+ .max-width-medium {
33
+ max-width: 768px;
34
+ }
35
+ }
36
+
37
+ /* Large breakpoint (1024px) */
38
+ @media (min-width: 1024px) {
39
+ .container {
40
+ padding-left: 64px;
41
+ padding-right: 64px;
42
+ }
43
+
44
+ .max-width-large {
45
+ max-width: 1024px;
46
+ }
47
+
48
+ .max-width-medium {
49
+ max-width: 768px;
50
+ }
51
+ }
52
+
53
+ /* XLarge breakpoint (1440px) */
54
+ @media (min-width: 1440px) {
55
+ .container {
56
+ padding-left: 80px;
57
+ padding-right: 80px;
58
+ }
59
+
60
+ .max-width-xlarge {
61
+ max-width: 1440px;
62
+ }
63
+
64
+ .max-width-large {
65
+ max-width: 1024px;
66
+ }
67
+
68
+ .max-width-medium {
69
+ max-width: 768px;
70
+ }
71
+ }
72
+
73
+ /* Fluid has no max-width */
74
+ .max-width-fluid {
75
+ max-width: none;
76
+ }
@@ -0,0 +1,57 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * A responsive container component that provides consistent margins and max-width
4
+ * constraints based on the Affinda grid system.
5
+ */
6
+ export class AfContainer {
7
+ constructor() {
8
+ /**
9
+ * Maximum width constraint for the container
10
+ * - 'xlarge': 1440px container (default)
11
+ * - 'large': 1024px container
12
+ * - 'medium': 768px container
13
+ * - 'fluid': No max-width constraint, full width with margins
14
+ */
15
+ this.maxWidth = 'xlarge';
16
+ }
17
+ render() {
18
+ return (h("div", { key: '4a40fad6df79915adeb7273a7c71ed26b327ff8f', class: `container max-width-${this.maxWidth}` }, h("slot", { key: 'a1759c05860511cdb6b916e44925df7f7a80bcf1' })));
19
+ }
20
+ static get is() { return "af-container"; }
21
+ static get encapsulation() { return "shadow"; }
22
+ static get originalStyleUrls() {
23
+ return {
24
+ "$": ["af-container.css"]
25
+ };
26
+ }
27
+ static get styleUrls() {
28
+ return {
29
+ "$": ["af-container.css"]
30
+ };
31
+ }
32
+ static get properties() {
33
+ return {
34
+ "maxWidth": {
35
+ "type": "string",
36
+ "mutable": false,
37
+ "complexType": {
38
+ "original": "'xlarge' | 'large' | 'medium' | 'fluid'",
39
+ "resolved": "\"fluid\" | \"large\" | \"medium\" | \"xlarge\"",
40
+ "references": {}
41
+ },
42
+ "required": false,
43
+ "optional": false,
44
+ "docs": {
45
+ "tags": [],
46
+ "text": "Maximum width constraint for the container\n- 'xlarge': 1440px container (default)\n- 'large': 1024px container\n- 'medium': 768px container\n- 'fluid': No max-width constraint, full width with margins"
47
+ },
48
+ "getter": false,
49
+ "setter": false,
50
+ "reflect": false,
51
+ "attribute": "max-width",
52
+ "defaultValue": "'xlarge'"
53
+ }
54
+ };
55
+ }
56
+ }
57
+ //# sourceMappingURL=af-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"af-container.js","sourceRoot":"","sources":["../../../src/components/af-container/af-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,WAAW;IALxB;QAME;;;;;;WAMG;QACK,aAAQ,GAA4C,QAAQ,CAAC;KAStE;IAPC,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,uBAAuB,IAAI,CAAC,QAAQ,EAAE;YAChD,8DAAa,CACT,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n/**\n * A responsive container component that provides consistent margins and max-width\n * constraints based on the Affinda grid system.\n */\n@Component({\n tag: 'af-container',\n styleUrl: 'af-container.css',\n shadow: true\n})\nexport class AfContainer {\n /**\n * Maximum width constraint for the container\n * - 'xlarge': 1440px container (default)\n * - 'large': 1024px container\n * - 'medium': 768px container\n * - 'fluid': No max-width constraint, full width with margins\n */\n @Prop() maxWidth: 'xlarge' | 'large' | 'medium' | 'fluid' = 'xlarge';\n\n render() {\n return (\n <div class={`container max-width-${this.maxWidth}`}>\n <slot></slot>\n </div>\n );\n }\n}\n"]}
@@ -0,0 +1,99 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .heading {
6
+ margin: 0;
7
+ padding: 0;
8
+ font-family: 'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;
9
+ font-weight: 500;
10
+ color: #14343b;
11
+ letter-spacing: -0.02em;
12
+ }
13
+
14
+ /* Alignment */
15
+ .align-left {
16
+ text-align: left;
17
+ }
18
+
19
+ .align-center {
20
+ text-align: center;
21
+ }
22
+
23
+ .align-right {
24
+ text-align: right;
25
+ }
26
+
27
+ /* Heading XL */
28
+ .level-xl {
29
+ font-size: 50px;
30
+ line-height: 1;
31
+ }
32
+
33
+ @media (min-width: 768px) {
34
+ .level-xl {
35
+ font-size: 80px;
36
+ }
37
+ }
38
+
39
+ /* Heading 1 */
40
+ .level-1 {
41
+ font-size: 38px;
42
+ line-height: 1;
43
+ }
44
+
45
+ @media (min-width: 768px) {
46
+ .level-1 {
47
+ font-size: 56px;
48
+ }
49
+ }
50
+
51
+ /* Heading 2 */
52
+ .level-2 {
53
+ font-size: 32px;
54
+ line-height: 1;
55
+ }
56
+
57
+ @media (min-width: 768px) {
58
+ .level-2 {
59
+ font-size: 44px;
60
+ }
61
+ }
62
+
63
+ /* Heading 3 */
64
+ .level-3 {
65
+ font-size: 25px;
66
+ line-height: 1;
67
+ }
68
+
69
+ @media (min-width: 768px) {
70
+ .level-3 {
71
+ font-size: 34px;
72
+ }
73
+ }
74
+
75
+ /* Heading 4 */
76
+ .level-4 {
77
+ font-size: 20px;
78
+ line-height: 1.1;
79
+ }
80
+
81
+ @media (min-width: 768px) {
82
+ .level-4 {
83
+ font-size: 24px;
84
+ line-height: 1.2;
85
+ }
86
+ }
87
+
88
+ /* Heading 5 */
89
+ .level-5 {
90
+ font-size: 18px;
91
+ line-height: 1.1;
92
+ }
93
+
94
+ @media (min-width: 768px) {
95
+ .level-5 {
96
+ font-size: 20px;
97
+ line-height: 1.2;
98
+ }
99
+ }