@affinda/wc 0.0.2 → 0.0.3

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-button-group.entry.esm.js.map +1 -0
  2. package/dist/affinda/af-button.entry.esm.js.map +1 -0
  3. package/dist/affinda/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.esm.js.map +1 -0
  4. package/dist/affinda/af-icon-button.entry.esm.js.map +1 -0
  5. package/dist/affinda/af-typography-lockup.entry.esm.js.map +1 -0
  6. package/dist/affinda/affinda.css +1 -1
  7. package/dist/affinda/affinda.esm.js +1 -1
  8. package/dist/affinda/index.esm.js +1 -1
  9. package/dist/affinda/index.esm.js.map +1 -1
  10. package/dist/affinda/p-540af9d9.entry.js +2 -0
  11. package/dist/affinda/p-540af9d9.entry.js.map +1 -0
  12. package/dist/affinda/p-619bc077.entry.js +2 -0
  13. package/dist/affinda/p-619bc077.entry.js.map +1 -0
  14. package/dist/affinda/p-6b07f590.entry.js +2 -0
  15. package/dist/affinda/p-6b07f590.entry.js.map +1 -0
  16. package/dist/affinda/{p-f79068a7.entry.js → p-8d3b4917.entry.js} +2 -2
  17. package/dist/affinda/{p-ccdcebe9.entry.js → p-9d0e6ed1.entry.js} +2 -2
  18. package/dist/affinda/p-DxVtR6vj.js +3 -0
  19. package/dist/affinda/p-DxVtR6vj.js.map +1 -0
  20. package/dist/affinda/p-afbe9cb3.entry.js +2 -0
  21. package/dist/affinda/p-afbe9cb3.entry.js.map +1 -0
  22. package/dist/affinda/{p-a6a8ecde.entry.js → p-cbb06a14.entry.js} +2 -2
  23. package/dist/affinda/p-e274e11a.entry.js +2 -0
  24. package/dist/affinda/p-e274e11a.entry.js.map +1 -0
  25. package/dist/cjs/af-aspect-ratio.cjs.entry.js +1 -1
  26. package/dist/cjs/af-button-group.cjs.entry.js +30 -0
  27. package/dist/cjs/af-button-group.entry.cjs.js.map +1 -0
  28. package/dist/cjs/af-button.cjs.entry.js +48 -0
  29. package/dist/cjs/af-button.entry.cjs.js.map +1 -0
  30. package/dist/cjs/af-color-swatch.cjs.entry.js +1 -1
  31. package/dist/cjs/af-container.cjs.entry.js +1 -1
  32. package/dist/cjs/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.cjs.js.map +1 -0
  33. package/dist/cjs/af-heading_5.cjs.entry.js +128 -0
  34. package/dist/cjs/af-icon-button.cjs.entry.js +44 -0
  35. package/dist/cjs/af-icon-button.entry.cjs.js.map +1 -0
  36. package/dist/cjs/af-typography-lockup.cjs.entry.js +45 -0
  37. package/dist/cjs/af-typography-lockup.entry.cjs.js.map +1 -0
  38. package/dist/cjs/affinda.cjs.js +2 -2
  39. package/dist/cjs/{index-DHjsui2n.js → index-E2jkaTPt.js} +34 -6
  40. package/dist/cjs/index-E2jkaTPt.js.map +1 -0
  41. package/dist/cjs/index.cjs.js +15 -5
  42. package/dist/cjs/index.cjs.js.map +1 -1
  43. package/dist/cjs/loader.cjs.js +2 -2
  44. package/dist/collection/collection-manifest.json +7 -1
  45. package/dist/collection/components/af-button/af-button.css +183 -0
  46. package/dist/collection/components/af-button/af-button.js +154 -0
  47. package/dist/collection/components/af-button/af-button.js.map +1 -0
  48. package/dist/collection/components/af-button-group/af-button-group.css +22 -0
  49. package/dist/collection/components/af-button-group/af-button-group.js +77 -0
  50. package/dist/collection/components/af-button-group/af-button-group.js.map +1 -0
  51. package/dist/collection/components/af-icon-button/af-icon-button.css +169 -0
  52. package/dist/collection/components/af-icon-button/af-icon-button.js +169 -0
  53. package/dist/collection/components/af-icon-button/af-icon-button.js.map +1 -0
  54. package/dist/collection/components/af-logo/af-logo.css +10 -0
  55. package/dist/collection/components/af-logo/af-logo.js +22 -0
  56. package/dist/collection/components/af-logo/af-logo.js.map +1 -0
  57. package/dist/collection/components/af-nav-item/af-nav-item.css +18 -7
  58. package/dist/collection/components/af-navbar/af-navbar.css +119 -0
  59. package/dist/collection/components/af-navbar/af-navbar.js +23 -0
  60. package/dist/collection/components/af-navbar/af-navbar.js.map +1 -0
  61. package/dist/collection/components/af-typography-lockup/af-typography-lockup.css +168 -0
  62. package/dist/collection/components/af-typography-lockup/af-typography-lockup.js +151 -0
  63. package/dist/collection/components/af-typography-lockup/af-typography-lockup.js.map +1 -0
  64. package/dist/collection/components.js +6 -0
  65. package/dist/collection/components.js.map +1 -1
  66. package/dist/components/af-aspect-ratio.js +1 -1
  67. package/dist/components/af-button-group.d.ts +11 -0
  68. package/dist/components/af-button-group.js +9 -0
  69. package/dist/components/af-button-group.js.map +1 -0
  70. package/dist/components/af-button.d.ts +11 -0
  71. package/dist/components/af-button.js +9 -0
  72. package/dist/components/af-button.js.map +1 -0
  73. package/dist/components/af-color-swatch.js +1 -1
  74. package/dist/components/af-container.js +1 -1
  75. package/dist/components/af-heading.js +1 -1
  76. package/dist/components/af-icon-button.d.ts +11 -0
  77. package/dist/components/af-icon-button.js +9 -0
  78. package/dist/components/af-icon-button.js.map +1 -0
  79. package/dist/components/af-logo.d.ts +11 -0
  80. package/dist/components/af-logo.js +9 -0
  81. package/dist/components/af-logo.js.map +1 -0
  82. package/dist/components/af-nav-item.js +1 -1
  83. package/dist/components/af-navbar.d.ts +11 -0
  84. package/dist/components/af-navbar.js +9 -0
  85. package/dist/components/af-navbar.js.map +1 -0
  86. package/dist/components/af-text.js +1 -1
  87. package/dist/components/af-typography-lockup.d.ts +11 -0
  88. package/dist/components/af-typography-lockup.js +9 -0
  89. package/dist/components/af-typography-lockup.js.map +1 -0
  90. package/dist/components/index.js +13 -7
  91. package/dist/components/index.js.map +1 -1
  92. package/dist/components/p-B17zxKkI.js +35 -0
  93. package/dist/components/p-B17zxKkI.js.map +1 -0
  94. package/dist/components/{p-CbKdmUDd.js → p-BJDmHNDi.js} +3 -3
  95. package/dist/components/{p-CbKdmUDd.js.map → p-BJDmHNDi.js.map} +1 -1
  96. package/dist/components/p-BfmeW04T.js +50 -0
  97. package/dist/components/p-BfmeW04T.js.map +1 -0
  98. package/dist/components/p-BoU5qaPt.js +68 -0
  99. package/dist/components/p-BoU5qaPt.js.map +1 -0
  100. package/dist/components/{p-BZ5_l5Q-.js → p-CT_9_xN3.js} +3 -3
  101. package/dist/components/{p-BZ5_l5Q-.js.map → p-CT_9_xN3.js.map} +1 -1
  102. package/dist/components/{p-TaHgCKVa.js → p-CzaQ1fCu.js} +34 -6
  103. package/dist/components/p-CzaQ1fCu.js.map +1 -0
  104. package/dist/components/{p-Ntwn3krC.js → p-DG7Mtz0G.js} +4 -4
  105. package/dist/components/p-DG7Mtz0G.js.map +1 -0
  106. package/dist/components/p-DcFGu6up.js +68 -0
  107. package/dist/components/p-DcFGu6up.js.map +1 -0
  108. package/dist/components/{p-DbZX-luM.js → p-DfIqdEs7.js} +3 -3
  109. package/dist/components/{p-DbZX-luM.js.map → p-DfIqdEs7.js.map} +1 -1
  110. package/dist/components/{p-CCPh8sLt.js → p-DqIqR4VU.js} +3 -3
  111. package/dist/components/{p-CCPh8sLt.js.map → p-DqIqR4VU.js.map} +1 -1
  112. package/dist/components/{p-Ck_3oNdO.js → p-LEksuu7O.js} +3 -3
  113. package/dist/components/{p-Ck_3oNdO.js.map → p-LEksuu7O.js.map} +1 -1
  114. package/dist/components/p-uhOM63Ux.js +71 -0
  115. package/dist/components/p-uhOM63Ux.js.map +1 -0
  116. package/dist/components/p-zBrKMKWE.js +35 -0
  117. package/dist/components/p-zBrKMKWE.js.map +1 -0
  118. package/dist/esm/af-aspect-ratio.entry.js +1 -1
  119. package/dist/esm/af-button-group.entry.js +28 -0
  120. package/dist/esm/af-button-group.entry.js.map +1 -0
  121. package/dist/esm/af-button.entry.js +46 -0
  122. package/dist/esm/af-button.entry.js.map +1 -0
  123. package/dist/esm/af-color-swatch.entry.js +1 -1
  124. package/dist/esm/af-container.entry.js +1 -1
  125. package/dist/esm/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.js.map +1 -0
  126. package/dist/esm/af-heading_5.entry.js +122 -0
  127. package/dist/esm/af-icon-button.entry.js +42 -0
  128. package/dist/esm/af-icon-button.entry.js.map +1 -0
  129. package/dist/esm/af-typography-lockup.entry.js +43 -0
  130. package/dist/esm/af-typography-lockup.entry.js.map +1 -0
  131. package/dist/esm/affinda.js +3 -3
  132. package/dist/esm/{index-DIoXjiux.js → index-DxVtR6vj.js} +34 -6
  133. package/dist/esm/index-DxVtR6vj.js.map +1 -0
  134. package/dist/esm/index.js +6 -2
  135. package/dist/esm/index.js.map +1 -1
  136. package/dist/esm/loader.js +3 -3
  137. package/dist/types/components/af-button/af-button.d.ts +23 -0
  138. package/dist/types/components/af-button-group/af-button-group.d.ts +11 -0
  139. package/dist/types/components/af-icon-button/af-icon-button.d.ts +27 -0
  140. package/dist/types/components/af-logo/af-logo.d.ts +6 -0
  141. package/dist/types/components/af-navbar/af-navbar.d.ts +7 -0
  142. package/dist/types/components/af-typography-lockup/af-typography-lockup.d.ts +23 -0
  143. package/dist/types/components.d.ts +278 -0
  144. package/package.json +13 -13
  145. package/dist/affinda/af-heading.af-nav-item.af-text.entry.esm.js.map +0 -1
  146. package/dist/affinda/p-96c74b41.entry.js +0 -2
  147. package/dist/affinda/p-96c74b41.entry.js.map +0 -1
  148. package/dist/affinda/p-DIoXjiux.js +0 -3
  149. package/dist/affinda/p-DIoXjiux.js.map +0 -1
  150. package/dist/cjs/af-heading.af-nav-item.af-text.entry.cjs.js.map +0 -1
  151. package/dist/cjs/af-heading_3.cjs.entry.js +0 -102
  152. package/dist/cjs/index-DHjsui2n.js.map +0 -1
  153. package/dist/collection/assets/icons/account-01.svg +0 -3
  154. package/dist/collection/assets/icons/account-02.svg +0 -3
  155. package/dist/collection/assets/icons/accounts-payable.svg +0 -3
  156. package/dist/collection/assets/icons/arrow-down.svg +0 -3
  157. package/dist/collection/assets/icons/arrow-left.svg +0 -3
  158. package/dist/collection/assets/icons/arrow-right.svg +0 -3
  159. package/dist/collection/assets/icons/arrow-up.svg +0 -3
  160. package/dist/collection/assets/icons/bpo.svg +0 -3
  161. package/dist/collection/assets/icons/chats.svg +0 -3
  162. package/dist/collection/assets/icons/check-circle.svg +0 -3
  163. package/dist/collection/assets/icons/check.svg +0 -3
  164. package/dist/collection/assets/icons/chevron-down.svg +0 -3
  165. package/dist/collection/assets/icons/chevron-left.svg +0 -3
  166. package/dist/collection/assets/icons/chevron-right.svg +0 -3
  167. package/dist/collection/assets/icons/chevron-up.svg +0 -3
  168. package/dist/collection/assets/icons/close.svg +0 -3
  169. package/dist/collection/assets/icons/code.svg +0 -3
  170. package/dist/collection/assets/icons/data.svg +0 -3
  171. package/dist/collection/assets/icons/document-upload.svg +0 -3
  172. package/dist/collection/assets/icons/download.svg +0 -3
  173. package/dist/collection/assets/icons/edit.svg +0 -3
  174. package/dist/collection/assets/icons/email.svg +0 -3
  175. package/dist/collection/assets/icons/eye.svg +0 -3
  176. package/dist/collection/assets/icons/facebook.svg +0 -3
  177. package/dist/collection/assets/icons/gear.svg +0 -3
  178. package/dist/collection/assets/icons/github.svg +0 -3
  179. package/dist/collection/assets/icons/heart.svg +0 -3
  180. package/dist/collection/assets/icons/home.svg +0 -3
  181. package/dist/collection/assets/icons/info.svg +0 -3
  182. package/dist/collection/assets/icons/insurance.svg +0 -3
  183. package/dist/collection/assets/icons/lending-01.svg +0 -3
  184. package/dist/collection/assets/icons/lending-02.svg +0 -3
  185. package/dist/collection/assets/icons/link-out.svg +0 -3
  186. package/dist/collection/assets/icons/linkedin.svg +0 -3
  187. package/dist/collection/assets/icons/map-pin.svg +0 -3
  188. package/dist/collection/assets/icons/menu.svg +0 -3
  189. package/dist/collection/assets/icons/minus.svg +0 -3
  190. package/dist/collection/assets/icons/numbers.svg +0 -16
  191. package/dist/collection/assets/icons/pause.svg +0 -3
  192. package/dist/collection/assets/icons/play.svg +0 -3
  193. package/dist/collection/assets/icons/plus.svg +0 -3
  194. package/dist/collection/assets/icons/productivity.svg +0 -3
  195. package/dist/collection/assets/icons/quote.svg +0 -3
  196. package/dist/collection/assets/icons/recruitment.svg +0 -3
  197. package/dist/collection/assets/icons/refresh.svg +0 -3
  198. package/dist/collection/assets/icons/search.svg +0 -3
  199. package/dist/collection/assets/icons/security-01.svg +0 -3
  200. package/dist/collection/assets/icons/security-02.svg +0 -3
  201. package/dist/collection/assets/icons/solutions.svg +0 -3
  202. package/dist/collection/assets/icons/support.svg +0 -3
  203. package/dist/collection/assets/icons/system.svg +0 -3
  204. package/dist/collection/assets/icons/time.svg +0 -3
  205. package/dist/collection/assets/icons/verification-01.svg +0 -3
  206. package/dist/collection/assets/icons/wand.svg +0 -3
  207. package/dist/collection/assets/icons/x.svg +0 -3
  208. package/dist/collection/assets/icons/youtube.svg +0 -3
  209. package/dist/collection/assets/illustrations/accuracy-inkwell.svg +0 -101
  210. package/dist/collection/assets/illustrations/accuracy-mist-green.svg +0 -101
  211. package/dist/collection/assets/illustrations/accuracy-soft-clay.svg +0 -101
  212. package/dist/collection/assets/illustrations/accuracy-white-ivory.svg +0 -101
  213. package/dist/collection/assets/illustrations/automate-inkwell.svg +0 -149
  214. package/dist/collection/assets/illustrations/automate-mist-green.svg +0 -149
  215. package/dist/collection/assets/illustrations/automate-soft-clay.svg +0 -149
  216. package/dist/collection/assets/illustrations/automate-white-ivory.svg +0 -149
  217. package/dist/collection/assets/illustrations/document-raise-inkwell.svg +0 -131
  218. package/dist/collection/assets/illustrations/document-raise-mist-green.svg +0 -131
  219. package/dist/collection/assets/illustrations/document-raise-soft-clay.svg +0 -131
  220. package/dist/collection/assets/illustrations/document-raise-white-ivory.svg +0 -131
  221. package/dist/collection/assets/illustrations/document-type-inkwell.svg +0 -150
  222. package/dist/collection/assets/illustrations/document-type-mist-green.svg +0 -150
  223. package/dist/collection/assets/illustrations/document-type-soft-clay.svg +0 -150
  224. package/dist/collection/assets/illustrations/document-type-white-ivory.svg +0 -150
  225. package/dist/collection/assets/illustrations/grow-business-inkwell.svg +0 -116
  226. package/dist/collection/assets/illustrations/grow-business-mist-green.svg +0 -129
  227. package/dist/collection/assets/illustrations/grow-business-soft-clay.svg +0 -129
  228. package/dist/collection/assets/illustrations/grow-business-white-ivory.svg +0 -129
  229. package/dist/collection/assets/illustrations/industries-inkwell.svg +0 -30
  230. package/dist/collection/assets/illustrations/industries-mist-green.svg +0 -30
  231. package/dist/collection/assets/illustrations/industries-soft-clay.svg +0 -30
  232. package/dist/collection/assets/illustrations/industries-white-ivory.svg +0 -41
  233. package/dist/collection/assets/illustrations/intelligence-inkwell.svg +0 -65
  234. package/dist/collection/assets/illustrations/intelligence-mist-green.svg +0 -65
  235. package/dist/collection/assets/illustrations/intelligence-soft-clay.svg +0 -65
  236. package/dist/collection/assets/illustrations/intelligence-white-ivory.svg +0 -65
  237. package/dist/collection/assets/illustrations/page-turn-inkwell.svg +0 -125
  238. package/dist/collection/assets/illustrations/page-turn-mist-green.svg +0 -125
  239. package/dist/collection/assets/illustrations/page-turn-soft-clay.svg +0 -125
  240. package/dist/collection/assets/illustrations/page-turn-white-ivory.svg +0 -125
  241. package/dist/collection/assets/illustrations/shapes-inkwell.svg +0 -65
  242. package/dist/collection/assets/illustrations/shapes-mist-green.svg +0 -65
  243. package/dist/collection/assets/illustrations/shapes-soft-clay.svg +0 -65
  244. package/dist/collection/assets/illustrations/shapes-white-ivory.svg +0 -65
  245. package/dist/collection/assets/illustrations/team-leader-inkwell.svg +0 -106
  246. package/dist/collection/assets/illustrations/team-leader-mist-green.svg +0 -106
  247. package/dist/collection/assets/illustrations/team-leader-soft-clay.svg +0 -106
  248. package/dist/collection/assets/illustrations/team-leader-white-ivory.svg +0 -106
  249. package/dist/collection/assets/illustrations/thinking-inkwell.svg +0 -89
  250. package/dist/collection/assets/illustrations/thinking-mist-green.svg +0 -89
  251. package/dist/collection/assets/illustrations/thinking-soft-clay.svg +0 -89
  252. package/dist/collection/assets/illustrations/thinking-white-ivory.svg +0 -89
  253. package/dist/components/p-Ntwn3krC.js.map +0 -1
  254. package/dist/components/p-TaHgCKVa.js.map +0 -1
  255. package/dist/esm/af-heading.af-nav-item.af-text.entry.js.map +0 -1
  256. package/dist/esm/af-heading_3.entry.js +0 -98
  257. package/dist/esm/index-DIoXjiux.js.map +0 -1
  258. /package/dist/affinda/{p-f79068a7.entry.js.map → p-8d3b4917.entry.js.map} +0 -0
  259. /package/dist/affinda/{p-ccdcebe9.entry.js.map → p-9d0e6ed1.entry.js.map} +0 -0
  260. /package/dist/affinda/{p-a6a8ecde.entry.js.map → p-cbb06a14.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DHjsui2n.js');
3
+ var index = require('./index-E2jkaTPt.js');
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await index.globalScripts();
8
- return index.bootstrapLazy([["af-heading_3.cjs",[[257,"af-heading",{"level":[1],"align":[1]}],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-text",{"variant":[1],"align":[1],"as":[1]}]]],["af-aspect-ratio.cjs",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-color-swatch.cjs",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container.cjs",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]]], options);
8
+ return index.bootstrapLazy([["af-heading_5.cjs",[[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.cjs",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button.cjs",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1]}]]],["af-button-group.cjs",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-color-swatch.cjs",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container.cjs",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]],["af-icon-button.cjs",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-typography-lockup.cjs",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]]], options);
9
9
  };
10
10
 
11
11
  exports.setNonce = index.setNonce;
@@ -5,7 +5,13 @@
5
5
  "components/af-color-swatch/af-color-swatch.js",
6
6
  "components/af-container/af-container.js",
7
7
  "components/af-aspect-ratio/af-aspect-ratio.js",
8
- "components/af-nav-item/af-nav-item.js"
8
+ "components/af-nav-item/af-nav-item.js",
9
+ "components/af-navbar/af-navbar.js",
10
+ "components/af-logo/af-logo.js",
11
+ "components/af-button/af-button.js",
12
+ "components/af-icon-button/af-icon-button.js",
13
+ "components/af-button-group/af-button-group.js",
14
+ "components/af-typography-lockup/af-typography-lockup.js"
9
15
  ],
10
16
  "compiler": {
11
17
  "name": "@stencil/core",
@@ -0,0 +1,183 @@
1
+ :host {
2
+ display: inline-block;
3
+ }
4
+
5
+ .button {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: 0;
10
+ border-radius: 9999px;
11
+ font-family: var(--typography-primaryfont, 'NeuSans', sans-serif);
12
+ font-weight: 500;
13
+ text-decoration: none;
14
+ cursor: pointer;
15
+ transition: all 0.2s ease;
16
+ border: 1px solid transparent;
17
+ box-sizing: border-box;
18
+ white-space: nowrap;
19
+ }
20
+
21
+ /* Size variants */
22
+ .size-default {
23
+ padding: 12px 24px;
24
+ font-size: 17px;
25
+ line-height: 20px;
26
+ }
27
+
28
+ .size-small {
29
+ padding: 8px 16px;
30
+ font-size: 14px;
31
+ line-height: 16px;
32
+ }
33
+
34
+ /* Icon slots */
35
+ .icon-left:empty,
36
+ .icon-right:empty {
37
+ display: none;
38
+ }
39
+
40
+ .icon-left,
41
+ .icon-right {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ flex-shrink: 0;
46
+ }
47
+
48
+ .size-default .icon-left,
49
+ .size-default .icon-right {
50
+ width: 24px;
51
+ height: 24px;
52
+ }
53
+
54
+ .size-small .icon-left,
55
+ .size-small .icon-right {
56
+ width: 20px;
57
+ height: 20px;
58
+ }
59
+
60
+ /* Label has additional padding on each side */
61
+ .label {
62
+ flex: 0 1 auto;
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ height: 24px;
67
+ }
68
+
69
+ .size-default .label {
70
+ padding: 0 12px;
71
+ height: 24px;
72
+ }
73
+
74
+ .size-small .label {
75
+ padding: 0 8px;
76
+ height: 20px;
77
+ }
78
+
79
+ /* Primary variant (ice) */
80
+ .variant-primary {
81
+ background: var(--colour-brand-ice, #A6FFFB);
82
+ border-color: var(--colour-brand-inkwell, #14343B);
83
+ color: var(--colour-brand-inkwell, #14343B);
84
+ }
85
+
86
+ .variant-primary:hover:not(.disabled) {
87
+ background: #8FEBE3;
88
+ transform: translateY(-1px);
89
+ box-shadow: 0 2px 8px rgba(20, 52, 59, 0.15);
90
+ }
91
+
92
+ .variant-primary:active:not(.disabled) {
93
+ background: #7FE2D4;
94
+ transform: translateY(0);
95
+ }
96
+
97
+ /* Secondary variant (white) */
98
+ .variant-secondary {
99
+ background: var(--colour-brand-white, #FFFFFF);
100
+ border-color: var(--colour-brand-inkwell, #14343B);
101
+ color: var(--colour-brand-inkwell, #14343B);
102
+ }
103
+
104
+ .variant-secondary:hover:not(.disabled) {
105
+ background: #F6FAF9;
106
+ transform: translateY(-1px);
107
+ box-shadow: 0 2px 8px rgba(20, 52, 59, 0.15);
108
+ }
109
+
110
+ .variant-secondary:active:not(.disabled) {
111
+ background: #E8F1EF;
112
+ transform: translateY(0);
113
+ }
114
+
115
+ /* Outline variant */
116
+ .variant-outline {
117
+ background: transparent;
118
+ border-color: var(--colour-brand-inkwell, #14343B);
119
+ color: var(--colour-brand-inkwell, #14343B);
120
+ }
121
+
122
+ .variant-outline:hover:not(.disabled) {
123
+ background: rgba(20, 52, 59, 0.04);
124
+ transform: translateY(-1px);
125
+ }
126
+
127
+ .variant-outline:active:not(.disabled) {
128
+ background: rgba(20, 52, 59, 0.08);
129
+ transform: translateY(0);
130
+ }
131
+
132
+ /* Ghost variant (text only) */
133
+ .variant-ghost {
134
+ background: transparent;
135
+ border-color: transparent;
136
+ color: var(--colour-brand-inkwell, #14343B);
137
+ padding-left: 0;
138
+ padding-right: 0;
139
+ }
140
+
141
+ .variant-ghost:hover:not(.disabled) {
142
+ text-decoration: underline;
143
+ }
144
+
145
+ .variant-ghost:active:not(.disabled) {
146
+ opacity: 0.7;
147
+ }
148
+
149
+ /* Disabled state */
150
+ .disabled {
151
+ opacity: 0.4;
152
+ cursor: not-allowed;
153
+ pointer-events: none;
154
+ }
155
+
156
+ /* Remove default button styles */
157
+ button.button {
158
+ background: none;
159
+ border: none;
160
+ font: inherit;
161
+ color: inherit;
162
+ cursor: pointer;
163
+ }
164
+
165
+ button.button.variant-primary {
166
+ background: var(--colour-brand-ice, #A6FFFB);
167
+ border: 1px solid var(--colour-brand-inkwell, #14343B);
168
+ }
169
+
170
+ button.button.variant-secondary {
171
+ background: var(--colour-brand-white, #FFFFFF);
172
+ border: 1px solid var(--colour-brand-inkwell, #14343B);
173
+ }
174
+
175
+ button.button.variant-outline {
176
+ background: transparent;
177
+ border: 1px solid var(--colour-brand-inkwell, #14343B);
178
+ }
179
+
180
+ button.button.variant-ghost {
181
+ background: transparent;
182
+ border: 1px solid transparent;
183
+ }
@@ -0,0 +1,154 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class AfButton {
3
+ constructor() {
4
+ /**
5
+ * The visual variant of the button
6
+ */
7
+ this.variant = 'primary';
8
+ /**
9
+ * The size of the button
10
+ */
11
+ this.size = 'default';
12
+ /**
13
+ * Whether the button is disabled
14
+ */
15
+ this.disabled = false;
16
+ /**
17
+ * Button type (when not using href)
18
+ */
19
+ this.type = 'button';
20
+ }
21
+ render() {
22
+ const classes = {
23
+ 'button': true,
24
+ [`variant-${this.variant}`]: true,
25
+ [`size-${this.size}`]: true,
26
+ 'disabled': this.disabled
27
+ };
28
+ const content = [
29
+ h("span", { class: "icon-left" }, h("slot", { name: "icon-left" })),
30
+ h("span", { class: "label" }, h("slot", null)),
31
+ h("span", { class: "icon-right" }, h("slot", { name: "icon-right" }))
32
+ ];
33
+ if (this.href && !this.disabled) {
34
+ return (h(Host, null, h("a", { href: this.href, class: classes }, content)));
35
+ }
36
+ return (h(Host, null, h("button", { type: this.type, disabled: this.disabled, class: classes }, content)));
37
+ }
38
+ static get is() { return "af-button"; }
39
+ static get encapsulation() { return "shadow"; }
40
+ static get originalStyleUrls() {
41
+ return {
42
+ "$": ["af-button.css"]
43
+ };
44
+ }
45
+ static get styleUrls() {
46
+ return {
47
+ "$": ["af-button.css"]
48
+ };
49
+ }
50
+ static get properties() {
51
+ return {
52
+ "variant": {
53
+ "type": "string",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "'primary' | 'secondary' | 'outline' | 'ghost'",
57
+ "resolved": "\"ghost\" | \"outline\" | \"primary\" | \"secondary\"",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "The visual variant of the button"
65
+ },
66
+ "getter": false,
67
+ "setter": false,
68
+ "reflect": false,
69
+ "attribute": "variant",
70
+ "defaultValue": "'primary'"
71
+ },
72
+ "size": {
73
+ "type": "string",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "'default' | 'small'",
77
+ "resolved": "\"default\" | \"small\"",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "The size of the button"
85
+ },
86
+ "getter": false,
87
+ "setter": false,
88
+ "reflect": false,
89
+ "attribute": "size",
90
+ "defaultValue": "'default'"
91
+ },
92
+ "disabled": {
93
+ "type": "boolean",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "boolean",
97
+ "resolved": "boolean",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "Whether the button is disabled"
105
+ },
106
+ "getter": false,
107
+ "setter": false,
108
+ "reflect": false,
109
+ "attribute": "disabled",
110
+ "defaultValue": "false"
111
+ },
112
+ "href": {
113
+ "type": "string",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "string",
117
+ "resolved": "string | undefined",
118
+ "references": {}
119
+ },
120
+ "required": false,
121
+ "optional": true,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": "Optional href to render as a link"
125
+ },
126
+ "getter": false,
127
+ "setter": false,
128
+ "reflect": false,
129
+ "attribute": "href"
130
+ },
131
+ "type": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "'button' | 'submit' | 'reset'",
136
+ "resolved": "\"button\" | \"reset\" | \"submit\"",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Button type (when not using href)"
144
+ },
145
+ "getter": false,
146
+ "setter": false,
147
+ "reflect": false,
148
+ "attribute": "type",
149
+ "defaultValue": "'button'"
150
+ }
151
+ };
152
+ }
153
+ }
154
+ //# sourceMappingURL=af-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"af-button.js","sourceRoot":"","sources":["../../../src/components/af-button/af-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,QAAQ;IALrB;QAME;;WAEG;QACK,YAAO,GAAkD,SAAS,CAAC;QAE3E;;WAEG;QACK,SAAI,GAAwB,SAAS,CAAC;QAE9C;;WAEG;QACK,aAAQ,GAAY,KAAK,CAAC;QAOlC;;WAEG;QACK,SAAI,GAAkC,QAAQ,CAAC;KAwCxD;IAtCC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,QAAQ,EAAE,IAAI;YACd,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACjC,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;YAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC;QAEF,MAAM,OAAO,GAAG;YACd,YAAM,KAAK,EAAC,WAAW;gBACrB,YAAM,IAAI,EAAC,WAAW,GAAQ,CACzB;YACP,YAAM,KAAK,EAAC,OAAO;gBACjB,eAAa,CACR;YACP,YAAM,KAAK,EAAC,YAAY;gBACtB,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC1B;SACR,CAAC;QAEF,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChC,OAAO,CACL,EAAC,IAAI;gBACH,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,IAC/B,OAAO,CACN,CACC,CACR,CAAC;QACJ,CAAC;QAED,OAAO,CACL,EAAC,IAAI;YACH,cAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,IAC7D,OAAO,CACD,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Host } from '@stencil/core';\n\n@Component({\n tag: 'af-button',\n styleUrl: 'af-button.css',\n shadow: true\n})\nexport class AfButton {\n /**\n * The visual variant of the button\n */\n @Prop() variant: 'primary' | 'secondary' | 'outline' | 'ghost' = 'primary';\n\n /**\n * The size of the button\n */\n @Prop() size: 'default' | 'small' = 'default';\n\n /**\n * Whether the button is disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Optional href to render as a link\n */\n @Prop() href?: string;\n\n /**\n * Button type (when not using href)\n */\n @Prop() type: 'button' | 'submit' | 'reset' = 'button';\n\n render() {\n const classes = {\n 'button': true,\n [`variant-${this.variant}`]: true,\n [`size-${this.size}`]: true,\n 'disabled': this.disabled\n };\n\n const content = [\n <span class=\"icon-left\">\n <slot name=\"icon-left\"></slot>\n </span>,\n <span class=\"label\">\n <slot></slot>\n </span>,\n <span class=\"icon-right\">\n <slot name=\"icon-right\"></slot>\n </span>\n ];\n\n if (this.href && !this.disabled) {\n return (\n <Host>\n <a href={this.href} class={classes}>\n {content}\n </a>\n </Host>\n );\n }\n\n return (\n <Host>\n <button type={this.type} disabled={this.disabled} class={classes}>\n {content}\n </button>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,22 @@
1
+ :host {
2
+ display: inline-block;
3
+ }
4
+
5
+ .button-group {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .direction-horizontal {
12
+ flex-direction: row;
13
+ }
14
+
15
+ .direction-vertical {
16
+ flex-direction: column;
17
+ }
18
+
19
+ /* Ensure slotted buttons align properly */
20
+ ::slotted(*) {
21
+ flex-shrink: 0;
22
+ }
@@ -0,0 +1,77 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class AfButtonGroup {
3
+ constructor() {
4
+ /**
5
+ * Layout direction of the button group
6
+ */
7
+ this.direction = 'horizontal';
8
+ /**
9
+ * Gap between buttons
10
+ */
11
+ this.gap = '8px';
12
+ }
13
+ render() {
14
+ const classes = {
15
+ 'button-group': true,
16
+ [`direction-${this.direction}`]: true
17
+ };
18
+ return (h(Host, { key: '9ef4ea3e4429646edb2d14a780763807d35ca438' }, h("div", { key: '8f61ec426b1f01cfd0ed91b6045e01cc1ecb1637', class: classes, style: { gap: this.gap } }, h("slot", { key: '06acb0d36cc96b311c228ba19039899a99d6a35d' }))));
19
+ }
20
+ static get is() { return "af-button-group"; }
21
+ static get encapsulation() { return "shadow"; }
22
+ static get originalStyleUrls() {
23
+ return {
24
+ "$": ["af-button-group.css"]
25
+ };
26
+ }
27
+ static get styleUrls() {
28
+ return {
29
+ "$": ["af-button-group.css"]
30
+ };
31
+ }
32
+ static get properties() {
33
+ return {
34
+ "direction": {
35
+ "type": "string",
36
+ "mutable": false,
37
+ "complexType": {
38
+ "original": "'horizontal' | 'vertical'",
39
+ "resolved": "\"horizontal\" | \"vertical\"",
40
+ "references": {}
41
+ },
42
+ "required": false,
43
+ "optional": false,
44
+ "docs": {
45
+ "tags": [],
46
+ "text": "Layout direction of the button group"
47
+ },
48
+ "getter": false,
49
+ "setter": false,
50
+ "reflect": false,
51
+ "attribute": "direction",
52
+ "defaultValue": "'horizontal'"
53
+ },
54
+ "gap": {
55
+ "type": "string",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "string",
59
+ "resolved": "string",
60
+ "references": {}
61
+ },
62
+ "required": false,
63
+ "optional": false,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": "Gap between buttons"
67
+ },
68
+ "getter": false,
69
+ "setter": false,
70
+ "reflect": false,
71
+ "attribute": "gap",
72
+ "defaultValue": "'8px'"
73
+ }
74
+ };
75
+ }
76
+ }
77
+ //# sourceMappingURL=af-button-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"af-button-group.js","sourceRoot":"","sources":["../../../src/components/af-button-group/af-button-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,aAAa;IAL1B;QAME;;WAEG;QACK,cAAS,GAA8B,YAAY,CAAC;QAE5D;;WAEG;QACK,QAAG,GAAW,KAAK,CAAC;KAgB7B;IAdC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,IAAI;YACpB,CAAC,aAAa,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI;SACtC,CAAC;QAEF,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE;gBAC3C,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-button-group',\n styleUrl: 'af-button-group.css',\n shadow: true\n})\nexport class AfButtonGroup {\n /**\n * Layout direction of the button group\n */\n @Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n /**\n * Gap between buttons\n */\n @Prop() gap: string = '8px';\n\n render() {\n const classes = {\n 'button-group': true,\n [`direction-${this.direction}`]: true\n };\n\n return (\n <Host>\n <div class={classes} style={{ gap: this.gap }}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,169 @@
1
+ :host {
2
+ display: inline-block;
3
+ }
4
+
5
+ .icon-button {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ border-radius: 50%;
10
+ cursor: pointer;
11
+ transition: all 0.2s ease;
12
+ border: 1px solid transparent;
13
+ box-sizing: border-box;
14
+ flex-shrink: 0;
15
+ text-decoration: none;
16
+ padding: 0;
17
+ }
18
+
19
+ /* Size variants */
20
+ .size-large {
21
+ width: 72px;
22
+ height: 72px;
23
+ padding: 24px;
24
+ }
25
+
26
+ .size-large .icon {
27
+ width: 24px;
28
+ height: 24px;
29
+ }
30
+
31
+ .size-medium {
32
+ width: 48px;
33
+ height: 48px;
34
+ padding: 12px;
35
+ }
36
+
37
+ .size-medium .icon {
38
+ width: 24px;
39
+ height: 24px;
40
+ }
41
+
42
+ .size-small {
43
+ width: 36px;
44
+ height: 36px;
45
+ padding: 8px;
46
+ }
47
+
48
+ .size-small .icon {
49
+ width: 20px;
50
+ height: 20px;
51
+ }
52
+
53
+ /* Icon slot */
54
+ .icon {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ flex-shrink: 0;
59
+ }
60
+
61
+ .icon ::slotted(svg) {
62
+ width: 100%;
63
+ height: 100%;
64
+ }
65
+
66
+ /* Primary variant (ice) */
67
+ .variant-primary {
68
+ background: var(--colour-brand-ice, #A6FFFB);
69
+ border-color: var(--colour-brand-inkwell, #14343B);
70
+ color: var(--colour-brand-inkwell, #14343B);
71
+ }
72
+
73
+ .variant-primary:hover:not(.disabled) {
74
+ background: #8FEBE3;
75
+ transform: translateY(-1px);
76
+ box-shadow: 0 2px 8px rgba(20, 52, 59, 0.15);
77
+ }
78
+
79
+ .variant-primary:active:not(.disabled) {
80
+ background: #7FE2D4;
81
+ transform: translateY(0);
82
+ }
83
+
84
+ /* Secondary variant (white) */
85
+ .variant-secondary {
86
+ background: var(--colour-brand-white, #FFFFFF);
87
+ border-color: var(--colour-brand-inkwell, #14343B);
88
+ color: var(--colour-brand-inkwell, #14343B);
89
+ }
90
+
91
+ .variant-secondary:hover:not(.disabled) {
92
+ background: #F6FAF9;
93
+ transform: translateY(-1px);
94
+ box-shadow: 0 2px 8px rgba(20, 52, 59, 0.15);
95
+ }
96
+
97
+ .variant-secondary:active:not(.disabled) {
98
+ background: #E8F1EF;
99
+ transform: translateY(0);
100
+ }
101
+
102
+ /* Outline variant */
103
+ .variant-outline {
104
+ background: transparent;
105
+ border-color: var(--colour-brand-inkwell, #14343B);
106
+ color: var(--colour-brand-inkwell, #14343B);
107
+ }
108
+
109
+ .variant-outline:hover:not(.disabled) {
110
+ background: rgba(20, 52, 59, 0.04);
111
+ transform: translateY(-1px);
112
+ }
113
+
114
+ .variant-outline:active:not(.disabled) {
115
+ background: rgba(20, 52, 59, 0.08);
116
+ transform: translateY(0);
117
+ }
118
+
119
+ /* Ghost variant */
120
+ .variant-ghost {
121
+ background: transparent;
122
+ border-color: transparent;
123
+ color: var(--colour-brand-inkwell, #14343B);
124
+ }
125
+
126
+ .variant-ghost:hover:not(.disabled) {
127
+ background: rgba(20, 52, 59, 0.04);
128
+ }
129
+
130
+ .variant-ghost:active:not(.disabled) {
131
+ background: rgba(20, 52, 59, 0.08);
132
+ }
133
+
134
+ /* Disabled state */
135
+ .disabled {
136
+ opacity: 0.4;
137
+ cursor: not-allowed;
138
+ pointer-events: none;
139
+ }
140
+
141
+ /* Remove default button styles */
142
+ button.icon-button {
143
+ background: none;
144
+ border: none;
145
+ padding: 0;
146
+ font: inherit;
147
+ color: inherit;
148
+ cursor: pointer;
149
+ }
150
+
151
+ button.icon-button.variant-primary {
152
+ background: var(--colour-brand-ice, #A6FFFB);
153
+ border: 1px solid var(--colour-brand-inkwell, #14343B);
154
+ }
155
+
156
+ button.icon-button.variant-secondary {
157
+ background: var(--colour-brand-white, #FFFFFF);
158
+ border: 1px solid var(--colour-brand-inkwell, #14343B);
159
+ }
160
+
161
+ button.icon-button.variant-outline {
162
+ background: transparent;
163
+ border: 1px solid var(--colour-brand-inkwell, #14343B);
164
+ }
165
+
166
+ button.icon-button.variant-ghost {
167
+ background: transparent;
168
+ border: 1px solid transparent;
169
+ }