@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
@@ -1,47 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export class AfBadge {
3
- constructor() {
4
- /** Color theme of the badge */
5
- this.tone = 'brand';
6
- }
7
- render() {
8
- return (h("span", { key: '1f9d4015b429e012eade75e331c991d5c785482d', class: `tone-${this.tone}`, part: "base" }, h("slot", { key: 'b69b37a3e996c43cb16d04d829232d9539f45e06' })));
9
- }
10
- static get is() { return "af-badge"; }
11
- static get encapsulation() { return "shadow"; }
12
- static get originalStyleUrls() {
13
- return {
14
- "$": ["af-badge.css"]
15
- };
16
- }
17
- static get styleUrls() {
18
- return {
19
- "$": ["af-badge.css"]
20
- };
21
- }
22
- static get properties() {
23
- return {
24
- "tone": {
25
- "type": "string",
26
- "mutable": false,
27
- "complexType": {
28
- "original": "'brand' | 'neutral' | 'success'",
29
- "resolved": "\"brand\" | \"neutral\" | \"success\"",
30
- "references": {}
31
- },
32
- "required": false,
33
- "optional": false,
34
- "docs": {
35
- "tags": [],
36
- "text": "Color theme of the badge"
37
- },
38
- "getter": false,
39
- "setter": false,
40
- "reflect": false,
41
- "attribute": "tone",
42
- "defaultValue": "'brand'"
43
- }
44
- };
45
- }
46
- }
47
- //# sourceMappingURL=af-badge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"af-badge.js","sourceRoot":"","sources":["../../../src/components/af-badge/af-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,OAAO;IALpB;QAME,+BAA+B;QACvB,SAAI,GAAoC,OAAO,CAAC;KASzD;IAPC,MAAM;QACJ,OAAO,CACL,6DAAM,KAAK,EAAE,QAAQ,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,EAAC,MAAM;YAC3C,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-badge',\n styleUrl: 'af-badge.css',\n shadow: true\n})\nexport class AfBadge {\n /** Color theme of the badge */\n @Prop() tone: 'brand' | 'neutral' | 'success' = 'brand';\n\n render() {\n return (\n <span class={`tone-${this.tone}`} part=\"base\">\n <slot />\n </span>\n );\n }\n}\n"]}
@@ -1,74 +0,0 @@
1
- :host {
2
- display: inline-block;
3
- }
4
-
5
- button {
6
- position: relative;
7
- display: inline-flex;
8
- align-items: center;
9
- justify-content: center;
10
- gap: var(--af-space-2);
11
- font: var(--af-font-weight-semibold) var(--af-size-font-md) / 1 var(--af-font-family-sans);
12
- border-radius: var(--af-radius-md);
13
- padding: var(--af-space-2) var(--af-space-4);
14
- border: none;
15
- cursor: pointer;
16
- transition: transform 120ms ease, box-shadow 160ms ease;
17
- box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
18
- }
19
-
20
- button:is(:hover, :focus-visible) {
21
- transform: translateY(-1px);
22
- box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
23
- }
24
-
25
- button:active {
26
- transform: translateY(0);
27
- box-shadow: 0 6px 16px rgba(124, 58, 237, 0.16);
28
- }
29
-
30
- button:disabled {
31
- cursor: not-allowed;
32
- opacity: 0.6;
33
- transform: none;
34
- box-shadow: none;
35
- }
36
-
37
- button.variant-primary {
38
- background: linear-gradient(135deg, var(--af-color-brand-primary-500), var(--af-color-brand-primary-600));
39
- color: var(--af-color-fg-inverse);
40
- }
41
-
42
- button.variant-secondary {
43
- background: var(--af-color-bg-subtle);
44
- color: var(--af-color-fg-default);
45
- box-shadow: inset 0 0 0 1px rgba(18, 15, 31, 0.08);
46
- }
47
-
48
- button.variant-ghost {
49
- background: transparent;
50
- color: var(--af-color-brand-primary-500);
51
- box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.3);
52
- }
53
-
54
- button.size-lg {
55
- padding: calc(var(--af-space-3)) calc(var(--af-space-4) + 4px);
56
- font-size: var(--af-size-font-lg);
57
- }
58
-
59
- button .spinner {
60
- position: absolute;
61
- inset: 0;
62
- border-radius: inherit;
63
- background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 55%);
64
- opacity: 0;
65
- transition: opacity 120ms ease;
66
- }
67
-
68
- button.is-loading .spinner {
69
- opacity: 1;
70
- }
71
-
72
- button.is-loading .content {
73
- opacity: 0.6;
74
- }
@@ -1,149 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export class AfButton {
3
- constructor() {
4
- /** Visual style of the button */
5
- this.variant = 'primary';
6
- /** Size of the button */
7
- this.size = 'md';
8
- /** Disabled state */
9
- this.disabled = false;
10
- /** Loading state */
11
- this.loading = false;
12
- this.handleClick = (event) => {
13
- if (this.disabled || this.loading) {
14
- event.preventDefault();
15
- event.stopPropagation();
16
- return;
17
- }
18
- this.afClick.emit(event);
19
- };
20
- }
21
- render() {
22
- const classes = {
23
- [`variant-${this.variant}`]: true,
24
- [`size-${this.size}`]: true,
25
- 'is-loading': this.loading
26
- };
27
- return (h("button", { key: '11e06f0158591b7aaf60633fa12e91a2904d2f57', class: classes, part: "base", disabled: this.disabled || this.loading, onClick: this.handleClick }, h("span", { key: 'bdea09a13233b2e9c682e3c0a3d02fc8fe791668', class: "spinner", part: "spinner", "aria-hidden": !this.loading }), h("span", { key: '24a80ba696aecacda181203379345b28e741583c', class: "content", part: "label" }, h("slot", { key: 'bdd3731c9c98091503e1c87a7fe940bb72579d27' }))));
28
- }
29
- static get is() { return "af-button"; }
30
- static get encapsulation() { return "shadow"; }
31
- static get originalStyleUrls() {
32
- return {
33
- "$": ["af-button.css"]
34
- };
35
- }
36
- static get styleUrls() {
37
- return {
38
- "$": ["af-button.css"]
39
- };
40
- }
41
- static get properties() {
42
- return {
43
- "variant": {
44
- "type": "string",
45
- "mutable": false,
46
- "complexType": {
47
- "original": "'primary' | 'secondary' | 'ghost'",
48
- "resolved": "\"ghost\" | \"primary\" | \"secondary\"",
49
- "references": {}
50
- },
51
- "required": false,
52
- "optional": false,
53
- "docs": {
54
- "tags": [],
55
- "text": "Visual style of the button"
56
- },
57
- "getter": false,
58
- "setter": false,
59
- "reflect": false,
60
- "attribute": "variant",
61
- "defaultValue": "'primary'"
62
- },
63
- "size": {
64
- "type": "string",
65
- "mutable": false,
66
- "complexType": {
67
- "original": "'md' | 'lg'",
68
- "resolved": "\"lg\" | \"md\"",
69
- "references": {}
70
- },
71
- "required": false,
72
- "optional": false,
73
- "docs": {
74
- "tags": [],
75
- "text": "Size of the button"
76
- },
77
- "getter": false,
78
- "setter": false,
79
- "reflect": false,
80
- "attribute": "size",
81
- "defaultValue": "'md'"
82
- },
83
- "disabled": {
84
- "type": "boolean",
85
- "mutable": false,
86
- "complexType": {
87
- "original": "boolean",
88
- "resolved": "boolean",
89
- "references": {}
90
- },
91
- "required": false,
92
- "optional": false,
93
- "docs": {
94
- "tags": [],
95
- "text": "Disabled state"
96
- },
97
- "getter": false,
98
- "setter": false,
99
- "reflect": true,
100
- "attribute": "disabled",
101
- "defaultValue": "false"
102
- },
103
- "loading": {
104
- "type": "boolean",
105
- "mutable": false,
106
- "complexType": {
107
- "original": "boolean",
108
- "resolved": "boolean",
109
- "references": {}
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": "Loading state"
116
- },
117
- "getter": false,
118
- "setter": false,
119
- "reflect": true,
120
- "attribute": "loading",
121
- "defaultValue": "false"
122
- }
123
- };
124
- }
125
- static get events() {
126
- return [{
127
- "method": "afClick",
128
- "name": "afClick",
129
- "bubbles": true,
130
- "cancelable": true,
131
- "composed": true,
132
- "docs": {
133
- "tags": [],
134
- "text": "Fired when the button is clicked while enabled"
135
- },
136
- "complexType": {
137
- "original": "MouseEvent",
138
- "resolved": "MouseEvent",
139
- "references": {
140
- "MouseEvent": {
141
- "location": "global",
142
- "id": "global::MouseEvent"
143
- }
144
- }
145
- }
146
- }];
147
- }
148
- }
149
- //# sourceMappingURL=af-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"af-button.js","sourceRoot":"","sources":["../../../src/components/af-button/af-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOxE,MAAM,OAAO,QAAQ;IALrB;QAME,iCAAiC;QACzB,YAAO,GAAsC,SAAS,CAAC;QAE/D,yBAAyB;QACjB,SAAI,GAAgB,IAAI,CAAC;QAEjC,qBAAqB;QACI,aAAQ,GAAG,KAAK,CAAC;QAE1C,oBAAoB;QACK,YAAO,GAAG,KAAK,CAAC;QAKjC,gBAAW,GAAG,CAAC,KAAiB,EAAE,EAAE;YAC1C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;gBACxB,OAAO;YACT,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,CAAC;KAuBH;IArBC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACjC,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;YAC3B,YAAY,EAAE,IAAI,CAAC,OAAO;SAC3B,CAAC;QAEF,OAAO,CACL,+DACE,KAAK,EAAE,OAAO,EACd,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,EACvC,OAAO,EAAE,IAAI,CAAC,WAAW;YAEzB,6DAAM,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,iBAAc,CAAC,IAAI,CAAC,OAAO,GAAS;YACxE,6DAAM,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO;gBAChC,8DAAQ,CACH,CACA,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-button',\n styleUrl: 'af-button.css',\n shadow: true\n})\nexport class AfButton {\n /** Visual style of the button */\n @Prop() variant: 'primary' | 'secondary' | 'ghost' = 'primary';\n\n /** Size of the button */\n @Prop() size: 'md' | 'lg' = 'md';\n\n /** Disabled state */\n @Prop({ reflect: true }) disabled = false;\n\n /** Loading state */\n @Prop({ reflect: true }) loading = false;\n\n /** Fired when the button is clicked while enabled */\n @Event() afClick!: EventEmitter<MouseEvent>;\n\n private handleClick = (event: MouseEvent) => {\n if (this.disabled || this.loading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n this.afClick.emit(event);\n };\n\n render() {\n const classes = {\n [`variant-${this.variant}`]: true,\n [`size-${this.size}`]: true,\n 'is-loading': this.loading\n };\n\n return (\n <button\n class={classes}\n part=\"base\"\n disabled={this.disabled || this.loading}\n onClick={this.handleClick}\n >\n <span class=\"spinner\" part=\"spinner\" aria-hidden={!this.loading}></span>\n <span class=\"content\" part=\"label\">\n <slot />\n </span>\n </button>\n );\n }\n}\n"]}
@@ -1,69 +0,0 @@
1
- :host {
2
- display: block;
3
- }
4
-
5
- article {
6
- position: relative;
7
- border-radius: var(--af-radius-md);
8
- background: var(--af-color-bg-surface);
9
- color: var(--af-color-fg-default);
10
- padding: calc(var(--af-space-4) * 1.5);
11
- box-shadow: none;
12
- border: 1px solid rgba(18, 15, 31, 0.06);
13
- transition: box-shadow 160ms ease, transform 160ms ease;
14
- display: block;
15
- overflow: hidden;
16
- }
17
-
18
- article.variant-elevated {
19
- box-shadow: 0 18px 36px rgba(47, 22, 94, 0.18);
20
- border: none;
21
- }
22
-
23
- article:hover {
24
- transform: translateY(-2px);
25
- box-shadow: 0 24px 44px rgba(47, 22, 94, 0.24);
26
- }
27
-
28
- .accent {
29
- position: absolute;
30
- inset: 0;
31
- width: 6px;
32
- left: 0;
33
- right: auto;
34
- background: linear-gradient(180deg, var(--af-color-brand-primary-500), var(--af-color-brand-primary-600));
35
- }
36
-
37
- article.accent-brand .accent {
38
- background: linear-gradient(180deg, var(--af-color-brand-primary-500), var(--af-color-brand-primary-600));
39
- }
40
-
41
- article.accent-success .accent {
42
- background: linear-gradient(180deg, #22c55e, #16a34a);
43
- }
44
-
45
- article.accent-neutral .accent {
46
- background: rgba(18, 15, 31, 0.18);
47
- }
48
-
49
- .content {
50
- margin-left: 12px;
51
- display: grid;
52
- gap: var(--af-space-3);
53
- }
54
-
55
- .header:empty,
56
- .footer:empty {
57
- display: none;
58
- }
59
-
60
- .header ::slotted(*) {
61
- font-size: 1.125rem;
62
- font-weight: var(--af-font-weight-semibold);
63
- }
64
-
65
- .footer ::slotted(*) {
66
- display: inline-flex;
67
- gap: var(--af-space-2);
68
- align-items: center;
69
- }
@@ -1,70 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export class AfCard {
3
- constructor() {
4
- /** Visual style of the card */
5
- this.variant = 'surface';
6
- }
7
- render() {
8
- const classes = {
9
- [`variant-${this.variant}`]: true,
10
- [`accent-${this.accent}`]: Boolean(this.accent)
11
- };
12
- return (h("article", { key: '6341b7150eb902027923228343dd017fee6aef32', class: classes, part: "base" }, this.accent ? h("span", { class: "accent", part: "accent", "aria-hidden": "true" }) : null, h("div", { key: '06256637c0e9e3a150b59fbc6f73d5b2867729ad', class: "content", part: "content" }, h("header", { key: '8f8c893d528cece13d1e9de7115b490a5ed84c88', class: "header", part: "header" }, h("slot", { key: 'b404fcc38918bb952678d78c035e9e7ad6e797ef', name: "header" })), h("div", { key: '2028736e547446fe12469cf74aec97daf6e3f10a', class: "body", part: "body" }, h("slot", { key: 'a2110bc4cfa174e4514d572d7a9cd28652c7da9a' })), h("footer", { key: '221a8202625e2794846ff7d68af45f9046fcfe58', class: "footer", part: "footer" }, h("slot", { key: 'b20d0e41962dbe766116845e2ef20c68003be7a7', name: "footer" })))));
13
- }
14
- static get is() { return "af-card"; }
15
- static get encapsulation() { return "shadow"; }
16
- static get originalStyleUrls() {
17
- return {
18
- "$": ["af-card.css"]
19
- };
20
- }
21
- static get styleUrls() {
22
- return {
23
- "$": ["af-card.css"]
24
- };
25
- }
26
- static get properties() {
27
- return {
28
- "variant": {
29
- "type": "string",
30
- "mutable": false,
31
- "complexType": {
32
- "original": "'surface' | 'elevated'",
33
- "resolved": "\"elevated\" | \"surface\"",
34
- "references": {}
35
- },
36
- "required": false,
37
- "optional": false,
38
- "docs": {
39
- "tags": [],
40
- "text": "Visual style of the card"
41
- },
42
- "getter": false,
43
- "setter": false,
44
- "reflect": false,
45
- "attribute": "variant",
46
- "defaultValue": "'surface'"
47
- },
48
- "accent": {
49
- "type": "string",
50
- "mutable": false,
51
- "complexType": {
52
- "original": "'brand' | 'success' | 'neutral'",
53
- "resolved": "\"brand\" | \"neutral\" | \"success\" | undefined",
54
- "references": {}
55
- },
56
- "required": false,
57
- "optional": true,
58
- "docs": {
59
- "tags": [],
60
- "text": "Optional accent colour strip"
61
- },
62
- "getter": false,
63
- "setter": false,
64
- "reflect": false,
65
- "attribute": "accent"
66
- }
67
- };
68
- }
69
- }
70
- //# sourceMappingURL=af-card.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"af-card.js","sourceRoot":"","sources":["../../../src/components/af-card/af-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,MAAM;IALnB;QAME,+BAA+B;QACvB,YAAO,GAA2B,SAAS,CAAC;KA4BrD;IAvBC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACjC,CAAC,UAAU,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;SAChD,CAAC;QAEF,OAAO,CACL,gEAAS,KAAK,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM;YACjC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,YAAM,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,iBAAa,MAAM,GAAQ,CAAC,CAAC,CAAC,IAAI;YACnF,4DAAK,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS;gBACjC,+DAAQ,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ;oBAClC,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACpB;gBACT,4DAAK,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM;oBAC3B,8DAAa,CACT;gBACN,+DAAQ,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ;oBAClC,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACpB,CACL,CACE,CACX,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-card',\n styleUrl: 'af-card.css',\n shadow: true\n})\nexport class AfCard {\n /** Visual style of the card */\n @Prop() variant: 'surface' | 'elevated' = 'surface';\n\n /** Optional accent colour strip */\n @Prop() accent?: 'brand' | 'success' | 'neutral';\n\n render() {\n const classes = {\n [`variant-${this.variant}`]: true,\n [`accent-${this.accent}`]: Boolean(this.accent)\n };\n\n return (\n <article class={classes} part=\"base\">\n {this.accent ? <span class=\"accent\" part=\"accent\" aria-hidden=\"true\"></span> : null}\n <div class=\"content\" part=\"content\">\n <header class=\"header\" part=\"header\">\n <slot name=\"header\"></slot>\n </header>\n <div class=\"body\" part=\"body\">\n <slot></slot>\n </div>\n <footer class=\"footer\" part=\"footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </article>\n );\n }\n}\n"]}
@@ -1,70 +0,0 @@
1
- :host {
2
- display: inline-flex;
3
- }
4
-
5
- button {
6
- --button-size-sm: 36px;
7
- --button-size-md: 44px;
8
- width: var(--button-size-md);
9
- height: var(--button-size-md);
10
- border-radius: 50%;
11
- border: none;
12
- display: inline-flex;
13
- align-items: center;
14
- justify-content: center;
15
- background: transparent;
16
- color: var(--af-color-brand-primary-500);
17
- cursor: pointer;
18
- transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease;
19
- box-shadow: none;
20
- }
21
-
22
- button.size-sm {
23
- width: var(--button-size-sm);
24
- height: var(--button-size-sm);
25
- }
26
-
27
- button:disabled {
28
- cursor: not-allowed;
29
- opacity: 0.5;
30
- box-shadow: none;
31
- }
32
-
33
- button.variant-solid {
34
- background: linear-gradient(135deg, var(--af-color-brand-primary-500), var(--af-color-brand-primary-600));
35
- color: var(--af-color-fg-inverse);
36
- box-shadow: 0 10px 24px rgba(124, 58, 237, 0.24);
37
- }
38
-
39
- button.variant-soft {
40
- background: rgba(124, 58, 237, 0.14);
41
- color: var(--af-color-brand-primary-500);
42
- }
43
-
44
- button.variant-ghost {
45
- border: 1px solid rgba(124, 58, 237, 0.4);
46
- background: transparent;
47
- }
48
-
49
- button:is(:hover, :focus-visible) {
50
- transform: translateY(-1px);
51
- box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
52
- }
53
-
54
- button:active {
55
- transform: translateY(0);
56
- box-shadow: 0 8px 18px rgba(124, 58, 237, 0.2);
57
- }
58
-
59
- .icon {
60
- display: inline-flex;
61
- align-items: center;
62
- justify-content: center;
63
- width: 1.5em;
64
- height: 1.5em;
65
- }
66
-
67
- :host([disabled]) button {
68
- transform: none;
69
- box-shadow: none;
70
- }
@@ -1,145 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export class AfIconButton {
3
- constructor() {
4
- /** Visual style of the icon button */
5
- this.variant = 'solid';
6
- /** Size preset */
7
- this.size = 'md';
8
- /** Disabled state */
9
- this.disabled = false;
10
- this.onClick = (event) => {
11
- if (this.disabled) {
12
- event.preventDefault();
13
- event.stopPropagation();
14
- return;
15
- }
16
- this.afClick.emit(event);
17
- };
18
- }
19
- render() {
20
- const classes = {
21
- [`variant-${this.variant}`]: true,
22
- [`size-${this.size}`]: true
23
- };
24
- return (h("button", { key: '0f63eddac5f4dab95835506b896e437218aa50e1', type: "button", class: classes, part: "base", disabled: this.disabled, "aria-label": this.label, onClick: this.onClick }, h("span", { key: '6400064df3b666cbcc0a4a51523f1cd08dcbe81a', part: "icon", class: "icon" }, h("slot", { key: 'a74fff21c0a3af05da37b12e45db8ca8913bbdea' }))));
25
- }
26
- static get is() { return "af-icon-button"; }
27
- static get encapsulation() { return "shadow"; }
28
- static get originalStyleUrls() {
29
- return {
30
- "$": ["af-icon-button.css"]
31
- };
32
- }
33
- static get styleUrls() {
34
- return {
35
- "$": ["af-icon-button.css"]
36
- };
37
- }
38
- static get properties() {
39
- return {
40
- "variant": {
41
- "type": "string",
42
- "mutable": false,
43
- "complexType": {
44
- "original": "'solid' | 'soft' | 'ghost'",
45
- "resolved": "\"ghost\" | \"soft\" | \"solid\"",
46
- "references": {}
47
- },
48
- "required": false,
49
- "optional": false,
50
- "docs": {
51
- "tags": [],
52
- "text": "Visual style of the icon button"
53
- },
54
- "getter": false,
55
- "setter": false,
56
- "reflect": false,
57
- "attribute": "variant",
58
- "defaultValue": "'solid'"
59
- },
60
- "size": {
61
- "type": "string",
62
- "mutable": false,
63
- "complexType": {
64
- "original": "'sm' | 'md'",
65
- "resolved": "\"md\" | \"sm\"",
66
- "references": {}
67
- },
68
- "required": false,
69
- "optional": false,
70
- "docs": {
71
- "tags": [],
72
- "text": "Size preset"
73
- },
74
- "getter": false,
75
- "setter": false,
76
- "reflect": false,
77
- "attribute": "size",
78
- "defaultValue": "'md'"
79
- },
80
- "label": {
81
- "type": "string",
82
- "mutable": false,
83
- "complexType": {
84
- "original": "string",
85
- "resolved": "string | undefined",
86
- "references": {}
87
- },
88
- "required": false,
89
- "optional": true,
90
- "docs": {
91
- "tags": [],
92
- "text": "Accessible label text"
93
- },
94
- "getter": false,
95
- "setter": false,
96
- "reflect": false,
97
- "attribute": "label"
98
- },
99
- "disabled": {
100
- "type": "boolean",
101
- "mutable": false,
102
- "complexType": {
103
- "original": "boolean",
104
- "resolved": "boolean",
105
- "references": {}
106
- },
107
- "required": false,
108
- "optional": false,
109
- "docs": {
110
- "tags": [],
111
- "text": "Disabled state"
112
- },
113
- "getter": false,
114
- "setter": false,
115
- "reflect": true,
116
- "attribute": "disabled",
117
- "defaultValue": "false"
118
- }
119
- };
120
- }
121
- static get events() {
122
- return [{
123
- "method": "afClick",
124
- "name": "afClick",
125
- "bubbles": true,
126
- "cancelable": true,
127
- "composed": true,
128
- "docs": {
129
- "tags": [],
130
- "text": "Raised when the button is activated"
131
- },
132
- "complexType": {
133
- "original": "MouseEvent",
134
- "resolved": "MouseEvent",
135
- "references": {
136
- "MouseEvent": {
137
- "location": "global",
138
- "id": "global::MouseEvent"
139
- }
140
- }
141
- }
142
- }];
143
- }
144
- }
145
- //# sourceMappingURL=af-icon-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"af-icon-button.js","sourceRoot":"","sources":["../../../src/components/af-icon-button/af-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOxE,MAAM,OAAO,YAAY;IALzB;QAME,sCAAsC;QAC9B,YAAO,GAA+B,OAAO,CAAC;QAEtD,kBAAkB;QACV,SAAI,GAAgB,IAAI,CAAC;QAKjC,qBAAqB;QACI,aAAQ,GAAG,KAAK,CAAC;QAKlC,YAAO,GAAG,CAAC,KAAiB,EAAE,EAAE;YACtC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;gBACxB,OAAO;YACT,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,CAAC;KAuBH;IArBC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACjC,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;SAC5B,CAAC;QAEF,OAAO,CACL,+DACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,OAAO,EACd,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,IAAI,CAAC,KAAK,EACtB,OAAO,EAAE,IAAI,CAAC,OAAO;YAErB,6DAAM,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM;gBAC5B,8DAAQ,CACH,CACA,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-icon-button',\n styleUrl: 'af-icon-button.css',\n shadow: true\n})\nexport class AfIconButton {\n /** Visual style of the icon button */\n @Prop() variant: 'solid' | 'soft' | 'ghost' = 'solid';\n\n /** Size preset */\n @Prop() size: 'sm' | 'md' = 'md';\n\n /** Accessible label text */\n @Prop() label?: string;\n\n /** Disabled state */\n @Prop({ reflect: true }) disabled = false;\n\n /** Raised when the button is activated */\n @Event() afClick!: EventEmitter<MouseEvent>;\n\n private onClick = (event: MouseEvent) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n this.afClick.emit(event);\n };\n\n render() {\n const classes = {\n [`variant-${this.variant}`]: true,\n [`size-${this.size}`]: true\n };\n\n return (\n <button\n type=\"button\"\n class={classes}\n part=\"base\"\n disabled={this.disabled}\n aria-label={this.label}\n onClick={this.onClick}\n >\n <span part=\"icon\" class=\"icon\">\n <slot />\n </span>\n </button>\n );\n }\n}\n"]}