@infineon/infineon-design-system-stencil 31.0.0--canary.1697.223df0ff1431a5398fd1261ed013c9dd2a89e7a0.0 → 31.0.0--canary.1640.0cb387dc208aadd19f988395e2eb1027e7e7f343.0

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 (290) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +7 -7
  2. package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
  4. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +3 -3
  6. package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ifx-chip_3.cjs.entry.js +25 -27
  8. package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ifx-modal.cjs.entry.js +8 -8
  10. package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ifx-multiselect_2.cjs.entry.js +4 -4
  12. package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ifx-navbar.cjs.entry.js +3 -3
  14. package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ifx-search-bar.cjs.entry.js +5 -5
  16. package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +9 -10
  18. package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ifx-table.cjs.entry.js +22 -20
  20. package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ifx-tabs.cjs.entry.js +6 -6
  22. package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
  23. package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/collection/components/accordion/accordion.js +2 -2
  26. package/dist/collection/components/accordion/accordion.js.map +1 -1
  27. package/dist/collection/components/accordion/accordion.stories.js +81 -7
  28. package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
  29. package/dist/collection/components/accordion/accordionItem.js +10 -10
  30. package/dist/collection/components/accordion/accordionItem.js.map +1 -1
  31. package/dist/collection/components/alert/alert.stories.js +45 -12
  32. package/dist/collection/components/alert/alert.stories.js.map +1 -1
  33. package/dist/collection/components/badge/badge.stories.js +28 -7
  34. package/dist/collection/components/badge/badge.stories.js.map +1 -1
  35. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +3 -3
  36. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js.map +1 -1
  37. package/dist/collection/components/breadcrumb/breadcrumb.js +3 -3
  38. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
  39. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +87 -13
  40. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
  41. package/dist/collection/components/button/button.stories.js +101 -9
  42. package/dist/collection/components/button/button.stories.js.map +1 -1
  43. package/dist/collection/components/card/card.stories.js +85 -4
  44. package/dist/collection/components/card/card.stories.js.map +1 -1
  45. package/dist/collection/components/checkbox/checkbox.stories.js +72 -14
  46. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
  47. package/dist/collection/components/chip/chip-item/chip-item.js +4 -4
  48. package/dist/collection/components/chip/chip-item/chip-item.js.map +1 -1
  49. package/dist/collection/components/chip/chip.js +15 -15
  50. package/dist/collection/components/chip/chip.js.map +1 -1
  51. package/dist/collection/components/chip/chip.stories.js +21 -26
  52. package/dist/collection/components/chip/chip.stories.js.map +1 -1
  53. package/dist/collection/components/chip/interfaces.js.map +1 -1
  54. package/dist/collection/components/content-switcher/content-switcher.stories.js +65 -3
  55. package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
  56. package/dist/collection/components/date-picker/date-picker.stories.js +97 -7
  57. package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
  58. package/dist/collection/components/dropdown/dropdown.stories.js +222 -64
  59. package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
  60. package/dist/collection/components/footer/footer.stories.js +31 -1
  61. package/dist/collection/components/footer/footer.stories.js.map +1 -1
  62. package/dist/collection/components/icon/infineonIconStencil.stories.js +7 -2
  63. package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
  64. package/dist/collection/components/icon-button/icon-button.stories.js +61 -5
  65. package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
  66. package/dist/collection/components/link/link.stories.js +53 -4
  67. package/dist/collection/components/link/link.stories.js.map +1 -1
  68. package/dist/collection/components/modal/modal.js +10 -10
  69. package/dist/collection/components/modal/modal.js.map +1 -1
  70. package/dist/collection/components/modal/modal.stories.js +96 -19
  71. package/dist/collection/components/modal/modal.stories.js.map +1 -1
  72. package/dist/collection/components/navigation/navbar/navbar.js +4 -4
  73. package/dist/collection/components/navigation/navbar/navbar.js.map +1 -1
  74. package/dist/collection/components/navigation/navbar/navbar.stories.js +176 -12
  75. package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
  76. package/dist/collection/components/navigation/sidebar/sidebar-item.js +11 -32
  77. package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
  78. package/dist/collection/components/navigation/sidebar/sidebar.stories.js +184 -19
  79. package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
  80. package/dist/collection/components/notification/notification.stories.js +55 -8
  81. package/dist/collection/components/notification/notification.stories.js.map +1 -1
  82. package/dist/collection/components/number-indicator/number-indicator.stories.js +19 -0
  83. package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
  84. package/dist/collection/components/pagination/pagination.js +8 -57
  85. package/dist/collection/components/pagination/pagination.js.map +1 -1
  86. package/dist/collection/components/pagination/pagination.stories.js +19 -16
  87. package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
  88. package/dist/collection/components/progress-bar/progress-bar.stories.js +31 -8
  89. package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
  90. package/dist/collection/components/radio-button/radio-button.stories.js +66 -13
  91. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
  92. package/dist/collection/components/search-bar/search-bar.js +6 -6
  93. package/dist/collection/components/search-bar/search-bar.js.map +1 -1
  94. package/dist/collection/components/search-bar/search-bar.stories.js +58 -9
  95. package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
  96. package/dist/collection/components/search-field/search-field.stories.js +54 -8
  97. package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
  98. package/dist/collection/components/segmented-control/segmented-control.stories.js +1 -10
  99. package/dist/collection/components/segmented-control/segmented-control.stories.js.map +1 -1
  100. package/dist/collection/components/select/multi-select/multiselect.js +5 -5
  101. package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
  102. package/dist/collection/components/select/multi-select/multiselect.stories.js +131 -5
  103. package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
  104. package/dist/collection/components/select/single-select/select.stories.js +83 -26
  105. package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
  106. package/dist/collection/components/slider/slider.stories.js +97 -13
  107. package/dist/collection/components/slider/slider.stories.js.map +1 -1
  108. package/dist/collection/components/spinner/spinner.stories.js +34 -2
  109. package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
  110. package/dist/collection/components/status/status.stories.js +25 -1
  111. package/dist/collection/components/status/status.stories.js.map +1 -1
  112. package/dist/collection/components/stepper/stepper.stories.js +54 -25
  113. package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
  114. package/dist/collection/components/switch/switch.stories.js +51 -4
  115. package/dist/collection/components/switch/switch.stories.js.map +1 -1
  116. package/dist/collection/components/table-advanced-version/table.js +23 -21
  117. package/dist/collection/components/table-advanced-version/table.js.map +1 -1
  118. package/dist/collection/components/table-advanced-version/table.stories.js +124 -39
  119. package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
  120. package/dist/collection/components/table-basic-version/table.stories.js +31 -4
  121. package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
  122. package/dist/collection/components/tabs/tabs.js +7 -7
  123. package/dist/collection/components/tabs/tabs.js.map +1 -1
  124. package/dist/collection/components/tabs/tabs.stories.js +104 -29
  125. package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
  126. package/dist/collection/components/tag/tag.stories.js +18 -0
  127. package/dist/collection/components/tag/tag.stories.js.map +1 -1
  128. package/dist/collection/components/text-field/text-field.stories.js +116 -13
  129. package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
  130. package/dist/collection/components/textarea/textarea.stories.js +1 -3
  131. package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
  132. package/dist/collection/components/tooltip/tooltip.stories.js +48 -4
  133. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
  134. package/dist/components/ifx-accordion-item.js +1 -1
  135. package/dist/components/ifx-accordion.js +1 -1
  136. package/dist/components/ifx-breadcrumb-item-label.js +2 -2
  137. package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
  138. package/dist/components/ifx-breadcrumb.js +3 -3
  139. package/dist/components/ifx-breadcrumb.js.map +1 -1
  140. package/dist/components/ifx-chip-item.js +1 -1
  141. package/dist/components/ifx-chip.js +1 -1
  142. package/dist/components/ifx-faq.js +2 -2
  143. package/dist/components/ifx-modal.js +8 -8
  144. package/dist/components/ifx-modal.js.map +1 -1
  145. package/dist/components/ifx-multiselect.js +1 -1
  146. package/dist/components/ifx-navbar.js +4 -4
  147. package/dist/components/ifx-navbar.js.map +1 -1
  148. package/dist/components/ifx-pagination.js +1 -1
  149. package/dist/components/ifx-search-bar.js +5 -5
  150. package/dist/components/ifx-search-bar.js.map +1 -1
  151. package/dist/components/ifx-set-filter.js +1 -1
  152. package/dist/components/ifx-sidebar-item.js +11 -13
  153. package/dist/components/ifx-sidebar-item.js.map +1 -1
  154. package/dist/components/ifx-table.js +26 -24
  155. package/dist/components/ifx-table.js.map +1 -1
  156. package/dist/components/ifx-tabs.js +6 -6
  157. package/dist/components/ifx-tabs.js.map +1 -1
  158. package/dist/components/{p-654ff7d8.js → p-120f0d27.js} +3 -3
  159. package/dist/components/{p-654ff7d8.js.map → p-120f0d27.js.map} +1 -1
  160. package/dist/components/{p-a7e5035e.js → p-62a4b616.js} +9 -12
  161. package/dist/components/p-62a4b616.js.map +1 -0
  162. package/dist/components/{p-e57d6c00.js → p-6a284649.js} +5 -5
  163. package/dist/components/p-6a284649.js.map +1 -0
  164. package/dist/components/{p-0fce434b.js → p-7c1f2252.js} +15 -15
  165. package/dist/components/p-7c1f2252.js.map +1 -0
  166. package/dist/components/{p-ff48962a.js → p-a51cb7b6.js} +8 -8
  167. package/dist/components/{p-ff48962a.js.map → p-a51cb7b6.js.map} +1 -1
  168. package/dist/components/{p-d3904b2f.js → p-bb48fe64.js} +5 -5
  169. package/dist/components/p-bb48fe64.js.map +1 -0
  170. package/dist/esm/ifx-accordion_2.entry.js +7 -7
  171. package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
  172. package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
  173. package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
  174. package/dist/esm/ifx-breadcrumb.entry.js +3 -3
  175. package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
  176. package/dist/esm/ifx-chip_3.entry.js +25 -27
  177. package/dist/esm/ifx-chip_3.entry.js.map +1 -1
  178. package/dist/esm/ifx-modal.entry.js +8 -8
  179. package/dist/esm/ifx-modal.entry.js.map +1 -1
  180. package/dist/esm/ifx-multiselect_2.entry.js +4 -4
  181. package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
  182. package/dist/esm/ifx-navbar.entry.js +3 -3
  183. package/dist/esm/ifx-navbar.entry.js.map +1 -1
  184. package/dist/esm/ifx-search-bar.entry.js +5 -5
  185. package/dist/esm/ifx-search-bar.entry.js.map +1 -1
  186. package/dist/esm/ifx-sidebar-item.entry.js +9 -10
  187. package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
  188. package/dist/esm/ifx-table.entry.js +22 -20
  189. package/dist/esm/ifx-table.entry.js.map +1 -1
  190. package/dist/esm/ifx-tabs.entry.js +6 -6
  191. package/dist/esm/ifx-tabs.entry.js.map +1 -1
  192. package/dist/esm/infineon-design-system-stencil.js +1 -1
  193. package/dist/esm/loader.js +1 -1
  194. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  195. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  196. package/dist/infineon-design-system-stencil/p-0a03645f.entry.js +2 -0
  197. package/dist/infineon-design-system-stencil/p-0a03645f.entry.js.map +1 -0
  198. package/dist/infineon-design-system-stencil/p-0b90ce9a.entry.js +2 -0
  199. package/dist/infineon-design-system-stencil/p-0b90ce9a.entry.js.map +1 -0
  200. package/dist/infineon-design-system-stencil/p-1da58025.entry.js +2 -0
  201. package/dist/infineon-design-system-stencil/p-1da58025.entry.js.map +1 -0
  202. package/dist/infineon-design-system-stencil/p-3e68969c.entry.js +2 -0
  203. package/dist/infineon-design-system-stencil/{p-500bc0ed.entry.js.map → p-3e68969c.entry.js.map} +1 -1
  204. package/dist/infineon-design-system-stencil/{p-258c4e35.entry.js → p-68dd9fa2.entry.js} +2 -2
  205. package/dist/infineon-design-system-stencil/p-68dd9fa2.entry.js.map +1 -0
  206. package/dist/infineon-design-system-stencil/p-75d5418a.entry.js +2 -0
  207. package/dist/infineon-design-system-stencil/p-75d5418a.entry.js.map +1 -0
  208. package/dist/infineon-design-system-stencil/p-88f484ee.entry.js +2 -0
  209. package/dist/infineon-design-system-stencil/p-88f484ee.entry.js.map +1 -0
  210. package/dist/infineon-design-system-stencil/{p-1f004047.entry.js → p-8953e0ef.entry.js} +2 -2
  211. package/dist/infineon-design-system-stencil/p-8953e0ef.entry.js.map +1 -0
  212. package/dist/infineon-design-system-stencil/{p-7cc1beed.entry.js → p-aebfd7f8.entry.js} +2 -2
  213. package/dist/infineon-design-system-stencil/p-aebfd7f8.entry.js.map +1 -0
  214. package/dist/infineon-design-system-stencil/p-e67e7cbc.entry.js +2 -0
  215. package/dist/infineon-design-system-stencil/p-e67e7cbc.entry.js.map +1 -0
  216. package/dist/infineon-design-system-stencil/{p-6c18926e.entry.js → p-fd0474f3.entry.js} +2 -2
  217. package/dist/infineon-design-system-stencil/p-fd0474f3.entry.js.map +1 -0
  218. package/dist/types/components/accordion/accordion.stories.d.ts +67 -1
  219. package/dist/types/components/accordion/accordionItem.d.ts +3 -3
  220. package/dist/types/components/alert/alert.stories.d.ts +38 -11
  221. package/dist/types/components/badge/badge.stories.d.ts +23 -3
  222. package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
  223. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +83 -1
  224. package/dist/types/components/button/button.stories.d.ts +92 -16
  225. package/dist/types/components/card/card.stories.d.ts +95 -1
  226. package/dist/types/components/checkbox/checkbox.stories.d.ts +65 -10
  227. package/dist/types/components/chip/chip-item/chip-item.d.ts +1 -1
  228. package/dist/types/components/chip/chip.d.ts +1 -1
  229. package/dist/types/components/chip/chip.stories.d.ts +11 -4
  230. package/dist/types/components/chip/interfaces.d.ts +1 -1
  231. package/dist/types/components/content-switcher/content-switcher.stories.d.ts +66 -0
  232. package/dist/types/components/date-picker/date-picker.stories.d.ts +89 -2
  233. package/dist/types/components/dropdown/dropdown.stories.d.ts +90 -33
  234. package/dist/types/components/footer/footer.stories.d.ts +26 -0
  235. package/dist/types/components/icon/infineonIconStencil.stories.d.ts +5 -0
  236. package/dist/types/components/icon-button/icon-button.stories.d.ts +56 -8
  237. package/dist/types/components/link/link.stories.d.ts +49 -6
  238. package/dist/types/components/modal/modal.d.ts +2 -2
  239. package/dist/types/components/modal/modal.stories.d.ts +77 -3
  240. package/dist/types/components/navigation/navbar/navbar.stories.d.ts +222 -6
  241. package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +2 -3
  242. package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +161 -7
  243. package/dist/types/components/notification/notification.stories.d.ts +46 -2
  244. package/dist/types/components/number-indicator/number-indicator.stories.d.ts +19 -0
  245. package/dist/types/components/pagination/pagination.d.ts +1 -4
  246. package/dist/types/components/pagination/pagination.stories.d.ts +12 -8
  247. package/dist/types/components/progress-bar/progress-bar.stories.d.ts +25 -4
  248. package/dist/types/components/radio-button/radio-button.stories.d.ts +59 -8
  249. package/dist/types/components/search-bar/search-bar.d.ts +1 -1
  250. package/dist/types/components/search-bar/search-bar.stories.d.ts +60 -3
  251. package/dist/types/components/search-field/search-field.stories.d.ts +45 -6
  252. package/dist/types/components/segmented-control/segmented-control.stories.d.ts +0 -3
  253. package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
  254. package/dist/types/components/select/multi-select/multiselect.stories.d.ts +125 -0
  255. package/dist/types/components/select/single-select/select.stories.d.ts +67 -24
  256. package/dist/types/components/slider/slider.stories.d.ts +110 -0
  257. package/dist/types/components/spinner/spinner.stories.d.ts +32 -0
  258. package/dist/types/components/status/status.stories.d.ts +24 -2
  259. package/dist/types/components/stepper/stepper.stories.d.ts +30 -6
  260. package/dist/types/components/switch/switch.stories.d.ts +47 -1
  261. package/dist/types/components/table-advanced-version/table.stories.d.ts +50 -11
  262. package/dist/types/components/table-basic-version/table.stories.d.ts +21 -1
  263. package/dist/types/components/tabs/tabs.d.ts +1 -1
  264. package/dist/types/components/tabs/tabs.stories.d.ts +88 -9
  265. package/dist/types/components/tag/tag.stories.d.ts +20 -0
  266. package/dist/types/components/text-field/text-field.stories.d.ts +106 -10
  267. package/dist/types/components/tooltip/tooltip.stories.d.ts +41 -6
  268. package/dist/types/components.d.ts +20 -28
  269. package/package.json +3 -2
  270. package/dist/components/p-0fce434b.js.map +0 -1
  271. package/dist/components/p-a7e5035e.js.map +0 -1
  272. package/dist/components/p-d3904b2f.js.map +0 -1
  273. package/dist/components/p-e57d6c00.js.map +0 -1
  274. package/dist/infineon-design-system-stencil/p-1f004047.entry.js.map +0 -1
  275. package/dist/infineon-design-system-stencil/p-258c4e35.entry.js.map +0 -1
  276. package/dist/infineon-design-system-stencil/p-500bc0ed.entry.js +0 -2
  277. package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js +0 -2
  278. package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js.map +0 -1
  279. package/dist/infineon-design-system-stencil/p-6c18926e.entry.js.map +0 -1
  280. package/dist/infineon-design-system-stencil/p-77a8fc5e.entry.js +0 -2
  281. package/dist/infineon-design-system-stencil/p-77a8fc5e.entry.js.map +0 -1
  282. package/dist/infineon-design-system-stencil/p-7cc1beed.entry.js.map +0 -1
  283. package/dist/infineon-design-system-stencil/p-98c50956.entry.js +0 -2
  284. package/dist/infineon-design-system-stencil/p-98c50956.entry.js.map +0 -1
  285. package/dist/infineon-design-system-stencil/p-c6ff49d7.entry.js +0 -2
  286. package/dist/infineon-design-system-stencil/p-c6ff49d7.entry.js.map +0 -1
  287. package/dist/infineon-design-system-stencil/p-d61ab729.entry.js +0 -2
  288. package/dist/infineon-design-system-stencil/p-d61ab729.entry.js.map +0 -1
  289. package/dist/infineon-design-system-stencil/p-f63ce1bc.entry.js +0 -2
  290. package/dist/infineon-design-system-stencil/p-f63ce1bc.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"badge.stories.js","sourceRoot":"","sources":["../../../src/components/badge/badge.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,KAAK;KACZ;IAED,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YACjD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAC7B;MACI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,QAAQ,eAAe,CAAC,CAAC,CAAC,EAAE;MAChE,IAAI,CAAC,KAAK;eACD,CAAC;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Badge',\n tags: ['autodocs'],\n\n args: {\n label: 'Badge label',\n icon: false,\n },\n\n argTypes: {\n iconName: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n },\n};\n\nconst DefaultTemplate = args =>\n `<ifx-badge>\n ${args.icon ? `<ifx-icon icon=\"${args.iconName}\"></ifx-icon>` : ''}\n ${args.label}\n </ifx-badge>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
1
+ {"version":3,"file":"badge.stories.js","sourceRoot":"","sources":["../../../src/components/badge/badge.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,EAAE;KACT;IAED,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;gBAC1B,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YAC9D,WAAW,EAAE,4DAA4D;YACzE,KAAK,EAAE;gBACL,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IAEnD,OAAO;IACL,IAAI,CAAC,KAAK;IACV,IAAI,CAAC,CAAC,CAAC,mBAAmB,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE;aACzC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Badge',\n tags: ['autodocs'],\n\n args: {\n label: 'Badge label',\n icon: '',\n },\n\n argTypes: {\n label: {\n description: 'The label of the badge.',\n name: 'Label',\n control: { type: 'text' },\n table: {\n category: 'story controls',\n type: {\n summary: 'string'\n }\n }\n },\n icon: {\n control: { type: 'select' },\n options: ['none', ...Object.values(icons).map(i => i['name'])],\n description: 'Set the icon of the tab. Choose \"none\" to display no icon.',\n table: {\n category: 'ifx-tab props',\n type: {\n summary: 'string'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const icon = args.icon === 'none' ? '' : args.icon;\n\n return `<ifx-badge>\n ${args.label}\n ${icon ? `<ifx-icon icon=\"${icon}\"></ifx-icon>` : ''}\n</ifx-badge>`;\n};\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
@@ -9,7 +9,7 @@ export class BreadcrumbItemLabel {
9
9
  this.breadcrumbMenuIconWrapper.emit(menuWrapper);
10
10
  }
11
11
  render() {
12
- return (h("a", { key: '16ddbc6dfce781d06c5e852423d1646426c6fb04', href: this.url, target: this.target, class: "breadcrumb-item-label-container", role: 'link' }, h("ifx-icon", { key: '6d62e4f854b7ea735c46a3849a92c09a8d222e54', icon: this.icon, "aria-hidden": "true" }), h("span", { key: '452dc64f08a93f4872f0f033b0b7016073818aab', class: "label-wrapper" }, h("slot", { key: '0a522ff8d13c3133367e62b50480af2dc970961d' })), h("span", { key: '7f5d3a5305ad187e312ae20a59610c9cfe4b13cf', class: "menu-icon-wrapper", "aria-hiden": "true" }, h("ifx-icon", { key: '07dc7f9912e3d87f286273e5758490f39df31d0d', icon: "chevron-down-12" }))));
12
+ return (h("a", { key: '856f06f931087b841e5f0350f1eb03e83b70e598', href: this.href, target: this.target, class: "breadcrumb-item-label-container", role: 'link' }, h("ifx-icon", { key: 'b67ee6634bea1f1626e073c1cf4238d12e0e8902', icon: this.icon, "aria-hidden": "true" }), h("span", { key: '270394a637cc6dd822d74d47dcc0bce51e9455c5', class: "label-wrapper" }, h("slot", { key: 'a2c15ce4581d3323d52fe931706ed86f3a777e08' })), h("span", { key: 'f013021b230b0a83a9fc1133d395f91c74cec4c4', class: "menu-icon-wrapper", "aria-hiden": "true" }, h("ifx-icon", { key: 'b22c149f7cb47f43054ba7e7a2ca669a94f2d8bc', icon: "chevron-down-12" }))));
13
13
  }
14
14
  static get is() { return "ifx-breadcrumb-item-label"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class BreadcrumbItemLabel {
44
44
  "attribute": "icon",
45
45
  "reflect": false
46
46
  },
47
- "url": {
47
+ "href": {
48
48
  "type": "string",
49
49
  "mutable": false,
50
50
  "complexType": {
@@ -60,7 +60,7 @@ export class BreadcrumbItemLabel {
60
60
  },
61
61
  "getter": false,
62
62
  "setter": false,
63
- "attribute": "url",
63
+ "attribute": "href",
64
64
  "reflect": false
65
65
  },
66
66
  "target": {
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item-label.js","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb-item-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAOjF,MAAM,OAAO,mBAAmB;IALhC;QAQU,WAAM,GAAW,OAAO,CAAA;KAuBjC;IAnBC,gBAAgB;QACd,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,kCAAkC,CAAC,CAAA;QACtF,MAAM,WAAW,GAAG,SAAS,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAA;QACjE,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAClD,CAAC;IAED,MAAM;QACJ,OAAO,CACL,0DAAG,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,iCAAiC,EAAC,IAAI,EAAC,MAAM;YACzF,iEAAU,IAAI,EAAE,IAAI,CAAC,IAAI,iBAAc,MAAM,GAAY;YACzD,6DAAM,KAAK,EAAC,eAAe;gBACzB,8DAAQ,CACH;YACR,6DAAM,KAAK,EAAC,mBAAmB,gBAAY,MAAM;gBAChD,iEAAU,IAAI,EAAC,iBAAiB,GAAY,CACtC,CACJ,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Element, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'ifx-breadcrumb-item-label',\n styleUrl: 'breadcrumb-item-label.scss',\n shadow: true,\n})\nexport class BreadcrumbItemLabel {\n @Prop() icon: string;\n @Prop() url: string;\n @Prop() target: string = \"_self\"\n @Element() el;\n @Event() breadcrumbMenuIconWrapper: EventEmitter<CustomEvent>;\n\n componentDidLoad() { \n const container = this.el.shadowRoot.querySelector('.breadcrumb-item-label-container')\n const menuWrapper = container.querySelector('.menu-icon-wrapper')\n this.breadcrumbMenuIconWrapper.emit(menuWrapper)\n }\n\n render() {\n return (\n <a href={this.url} target={this.target} class=\"breadcrumb-item-label-container\" role='link'>\n <ifx-icon icon={this.icon} aria-hidden=\"true\"></ifx-icon>\n <span class=\"label-wrapper\">\n <slot />\n </span>\n <span class=\"menu-icon-wrapper\" aria-hiden=\"true\">\n <ifx-icon icon=\"chevron-down-12\"></ifx-icon>\n </span>\n </a>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"breadcrumb-item-label.js","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb-item-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAOjF,MAAM,OAAO,mBAAmB;IALhC;QAQU,WAAM,GAAW,OAAO,CAAA;KAuBjC;IAnBC,gBAAgB;QACd,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,kCAAkC,CAAC,CAAA;QACtF,MAAM,WAAW,GAAG,SAAS,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAA;QACjE,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAClD,CAAC;IAED,MAAM;QACJ,OAAO,CACL,0DAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,iCAAiC,EAAC,IAAI,EAAC,MAAM;YAC1F,iEAAU,IAAI,EAAE,IAAI,CAAC,IAAI,iBAAc,MAAM,GAAY;YACzD,6DAAM,KAAK,EAAC,eAAe;gBACzB,8DAAQ,CACH;YACR,6DAAM,KAAK,EAAC,mBAAmB,gBAAY,MAAM;gBAChD,iEAAU,IAAI,EAAC,iBAAiB,GAAY,CACtC,CACJ,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Element, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'ifx-breadcrumb-item-label',\n styleUrl: 'breadcrumb-item-label.scss',\n shadow: true,\n})\nexport class BreadcrumbItemLabel {\n @Prop() icon: string;\n @Prop() href: string;\n @Prop() target: string = \"_self\"\n @Element() el;\n @Event() breadcrumbMenuIconWrapper: EventEmitter<CustomEvent>;\n\n componentDidLoad() { \n const container = this.el.shadowRoot.querySelector('.breadcrumb-item-label-container')\n const menuWrapper = container.querySelector('.menu-icon-wrapper')\n this.breadcrumbMenuIconWrapper.emit(menuWrapper)\n }\n\n render() {\n return (\n <a href={this.href} target={this.target} class=\"breadcrumb-item-label-container\" role='link'>\n <ifx-icon icon={this.icon} aria-hidden=\"true\"></ifx-icon>\n <span class=\"label-wrapper\">\n <slot />\n </span>\n <span class=\"menu-icon-wrapper\" aria-hiden=\"true\">\n <ifx-icon icon=\"chevron-down-12\"></ifx-icon>\n </span>\n </a>\n );\n }\n}\n"]}
@@ -18,15 +18,15 @@ export class Breadcrumb {
18
18
  const breadcrumbItem = node;
19
19
  const breadcrumbItemLabel = breadcrumbItem.querySelector('ifx-breadcrumb-item-label');
20
20
  const breadcrumbDropdown = breadcrumbItem.querySelector('ifx-dropdown-menu');
21
- if (breadcrumbItemLabel.hasAttribute('url') && breadcrumbDropdown) {
22
- throw new Error('ifx-breadcrumb-item cannot have both a url and a dropdown menu.');
21
+ if (breadcrumbItemLabel.hasAttribute('href') && breadcrumbDropdown) {
22
+ throw new Error('ifx-breadcrumb-item cannot have both a href and a dropdown menu.');
23
23
  }
24
24
  }
25
25
  }
26
26
  }
27
27
  }
28
28
  render() {
29
- return (h("nav", { key: '82aec60bebf9a71d7cdcfc2916f91c0e36dee868', "aria-label": "Page navigation breadcrumb" }, h("ol", { key: '70bae75b26b5df4c509f16c0ab8e2b10333de8ac', class: "breadcrumb" }, h("slot", { key: '1cb28e3640f20319349b4f6d3cb1568508d3b1ba' }))));
29
+ return (h("nav", { key: '3d01af951d4a6a396545eb9cf26454cbe2b31ed0', "aria-label": "Page navigation breadcrumb" }, h("ol", { key: '95ae08a0de7099ecd7c3aa963c1bf9952918ecda', class: "breadcrumb" }, h("slot", { key: 'e9fed255fa08b28c8974498d329df69b1e92edf5' }))));
30
30
  }
31
31
  static get is() { return "ifx-breadcrumb"; }
32
32
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.js","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOtD,MAAM,OAAO,UAAU;IAGrB,gBAAgB;QACd,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;QAC9C,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAEO,+BAA+B,CAAC,OAAoB;QAC1D,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACnC,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAG,IAAI,EAAE,CAAC;YACR,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;YAE3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC9C,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;gBAC9B,IAAI,IAAI,CAAC,QAAQ,KAAK,qBAAqB,EAAE,CAAC;oBAC5C,MAAM,cAAc,GAAG,IAAoC,CAAC;oBAC5D,MAAM,mBAAmB,GAAG,cAAc,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;oBACtF,MAAM,kBAAkB,GAAG,cAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;oBAC7E,IAAI,mBAAmB,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,kBAAkB,EAAE,CAAC;wBAClE,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;oBACrF,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,0EAAgB,4BAA4B;YAC1C,2DAAI,KAAK,EAAC,YAAY;gBACpB,8DAAQ,CACL,CACD,CACP,CAAC;IACJ,CAAC;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Element } from '@stencil/core';\n\n@Component({\n tag: 'ifx-breadcrumb',\n styleUrl: 'breadcrumb.scss',\n shadow: true\n})\nexport class Breadcrumb {\n @Element() el;\n\n componentDidLoad() {\n const element = this.el.shadowRoot.firstChild;\n this.validateBreadcrumbItemStructure(element);\n }\n\n private validateBreadcrumbItemStructure(element: HTMLElement) {\n if (!element) {\n console.error('element not found');\n return;\n }\n \n const slot = element.querySelector('slot');\n if(slot) { \n const assignedNodes = slot.assignedNodes();\n \n for (let i = 0; i < assignedNodes.length; i++) {\n const node = assignedNodes[i];\n if (node.nodeName === 'IFX-BREADCRUMB-ITEM') {\n const breadcrumbItem = node as HTMLIfxBreadcrumbItemElement;\n const breadcrumbItemLabel = breadcrumbItem.querySelector('ifx-breadcrumb-item-label');\n const breadcrumbDropdown = breadcrumbItem.querySelector('ifx-dropdown-menu');\n if (breadcrumbItemLabel.hasAttribute('url') && breadcrumbDropdown) {\n throw new Error('ifx-breadcrumb-item cannot have both a url and a dropdown menu.');\n }\n }\n }\n }\n }\n\n render() {\n return (\n <nav aria-label=\"Page navigation breadcrumb\">\n <ol class=\"breadcrumb\">\n <slot />\n </ol>\n </nav>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"breadcrumb.js","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOtD,MAAM,OAAO,UAAU;IAGrB,gBAAgB;QACd,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;QAC9C,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAEO,+BAA+B,CAAC,OAAoB;QAC1D,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACnC,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAG,IAAI,EAAE,CAAC;YACR,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;YAE3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC9C,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;gBAC9B,IAAI,IAAI,CAAC,QAAQ,KAAK,qBAAqB,EAAE,CAAC;oBAC5C,MAAM,cAAc,GAAG,IAAoC,CAAC;oBAC5D,MAAM,mBAAmB,GAAG,cAAc,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;oBACtF,MAAM,kBAAkB,GAAG,cAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;oBAC7E,IAAI,mBAAmB,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,kBAAkB,EAAE,CAAC;wBACnE,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;oBACtF,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,0EAAgB,4BAA4B;YAC1C,2DAAI,KAAK,EAAC,YAAY;gBACpB,8DAAQ,CACL,CACD,CACP,CAAC;IACJ,CAAC;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Element } from '@stencil/core';\n\n@Component({\n tag: 'ifx-breadcrumb',\n styleUrl: 'breadcrumb.scss',\n shadow: true\n})\nexport class Breadcrumb {\n @Element() el;\n\n componentDidLoad() {\n const element = this.el.shadowRoot.firstChild;\n this.validateBreadcrumbItemStructure(element);\n }\n\n private validateBreadcrumbItemStructure(element: HTMLElement) {\n if (!element) {\n console.error('element not found');\n return;\n }\n \n const slot = element.querySelector('slot');\n if(slot) { \n const assignedNodes = slot.assignedNodes();\n \n for (let i = 0; i < assignedNodes.length; i++) {\n const node = assignedNodes[i];\n if (node.nodeName === 'IFX-BREADCRUMB-ITEM') {\n const breadcrumbItem = node as HTMLIfxBreadcrumbItemElement;\n const breadcrumbItemLabel = breadcrumbItem.querySelector('ifx-breadcrumb-item-label');\n const breadcrumbDropdown = breadcrumbItem.querySelector('ifx-dropdown-menu');\n if (breadcrumbItemLabel.hasAttribute('href') && breadcrumbDropdown) {\n throw new Error('ifx-breadcrumb-item cannot have both a href and a dropdown menu.');\n }\n }\n }\n }\n }\n\n render() {\n return (\n <nav aria-label=\"Page navigation breadcrumb\">\n <ol class=\"breadcrumb\">\n <slot />\n </ol>\n </nav>\n );\n }\n}\n"]}
@@ -1,15 +1,88 @@
1
1
  import { action } from "@storybook/addon-actions";
2
+ import { icons } from "@infineon/infineon-icons";
2
3
  export default {
3
4
  title: 'Components/Breadcrumb',
4
5
  tags: ['autodocs'],
5
6
  args: {
6
- icon: false,
7
+ icon: '',
8
+ iconArialLabel: '',
9
+ href: 'http://yahoo.com',
10
+ hrefOfDropdownItem: 'http://google.com',
11
+ target: '_self',
7
12
  },
8
13
  argTypes: {
14
+ icon: {
15
+ control: { type: 'select' },
16
+ options: ['none', ...Object.values(icons).map(i => i['name'])],
17
+ description: 'Set the icon of the tab. Choose "none" to display no icon.',
18
+ table: {
19
+ category: 'ifx-breadcrumb-item-label props',
20
+ defaultValue: {
21
+ summary: ''
22
+ },
23
+ type: {
24
+ summary: 'string'
25
+ }
26
+ }
27
+ },
28
+ target: {
29
+ control: { type: 'text' },
30
+ description: 'Set the target of the link.',
31
+ table: {
32
+ category: 'ifx-breadcrumb-item-label props',
33
+ defaultValue: {
34
+ summary: '_self'
35
+ },
36
+ type: {
37
+ summary: 'string'
38
+ }
39
+ }
40
+ },
41
+ iconArialLabel: {
42
+ control: { type: 'text' },
43
+ description: 'Set the aria label of the icon.',
44
+ table: {
45
+ category: 'ifx-breadcrumb-item-label props',
46
+ defaultValue: {
47
+ summary: ''
48
+ },
49
+ type: {
50
+ summary: 'string'
51
+ }
52
+ }
53
+ },
54
+ href: {
55
+ control: { type: 'text' },
56
+ description: 'Set the href of the breadcrumb item.',
57
+ table: {
58
+ category: 'ifx-breadcrumb-item-label props',
59
+ defaultValue: {
60
+ summary: ''
61
+ },
62
+ type: {
63
+ summary: 'string'
64
+ }
65
+ }
66
+ },
67
+ hrefOfDropdownItem: {
68
+ name: 'href',
69
+ control: { type: 'text' },
70
+ description: 'Set the href of the dropdown item.',
71
+ table: {
72
+ category: 'ifx-dropdown-item props',
73
+ defaultValue: {
74
+ summary: ''
75
+ },
76
+ type: {
77
+ summary: 'string'
78
+ }
79
+ }
80
+ },
9
81
  ifxDropdownMenuItem: {
10
82
  action: 'ifxDropdownMenuItem',
11
- description: 'Custom event emitted when an item is selected',
83
+ description: 'Custom event emitted by ifx-dropdown-menu when an item is selected.',
12
84
  table: {
85
+ category: 'custom events',
13
86
  type: {
14
87
  summary: 'Framework integration',
15
88
  detail: 'React: onIfxDropdownMenuItem={handleChange}\nVue:@ifxDropdownMenuItem="handleChange"\nAngular:(ifxDropdownMenuItem)="handleChange()"\nVanillaJs:.addEventListener("ifxDropdownMenuItem", (event) => {//handle change});',
@@ -19,30 +92,31 @@ export default {
19
92
  },
20
93
  };
21
94
  const DefaultTemplate = args => {
95
+ const icon = args.icon === 'none' ? '' : args.icon;
22
96
  const wrapper = document.createElement('div');
23
97
  wrapper.innerHTML = `<ifx-breadcrumb>
24
98
  <ifx-breadcrumb-item>
25
- <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? 'c-info-16' : ''}">Breadcrumb 1</ifx-breadcrumb-item-label>
99
+ <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? icon : ''}" href="${args.href}"">Breadcrumb 1</ifx-breadcrumb-item-label>
26
100
  <ifx-dropdown-menu>
27
- <ifx-dropdown-item url="http://google.com">Google</ifx-dropdown-item>
28
- <ifx-dropdown-item url="http://bing.com">Bing</ifx-dropdown-item>
29
- <ifx-dropdown-item url="http://yahoo.com">Yahoo</ifx-dropdown-item>
30
- <ifx-dropdown-item url="http://naver.com">Naver</ifx-dropdown-item>
101
+ <ifx-dropdown-item href=${args.hrefOfDropdownItem}>Google</ifx-dropdown-item>
102
+ <ifx-dropdown-item href="http://bing.com">Bing</ifx-dropdown-item>
103
+ <ifx-dropdown-item href="http://yahoo.com">Yahoo</ifx-dropdown-item>
104
+ <ifx-dropdown-item href="http://naver.com">Naver</ifx-dropdown-item>
31
105
  </ifx-dropdown-menu>
32
106
  </ifx-breadcrumb-item>
33
107
 
34
108
  <ifx-breadcrumb-item>
35
- <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? 'c-info-16' : ''}">Breadcrumb 2</ifx-breadcrumb-item-label>
109
+ <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? icon : ''}">Breadcrumb 2</ifx-breadcrumb-item-label>
36
110
  <ifx-dropdown-menu>
37
- <ifx-dropdown-item url="http://google.com">Google</ifx-dropdown-item>
38
- <ifx-dropdown-item url="http://bing.com">Bing</ifx-dropdown-item>
39
- <ifx-dropdown-item url="http://yahoo.com">Yahoo</ifx-dropdown-item>
40
- <ifx-dropdown-item url="http://naver.com">Naver</ifx-dropdown-item>
111
+ <ifx-dropdown-item href=${args.href}>Google</ifx-dropdown-item>
112
+ <ifx-dropdown-item href="http://bing.com">Bing</ifx-dropdown-item>
113
+ <ifx-dropdown-item href="http://yahoo.com">Yahoo</ifx-dropdown-item>
114
+ <ifx-dropdown-item href="http://naver.com">Naver</ifx-dropdown-item>
41
115
  </ifx-dropdown-menu>
42
116
  </ifx-breadcrumb-item>
43
117
 
44
118
  <ifx-breadcrumb-item>
45
- <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? 'c-info-16' : ''}" url="http://google.com">Breadcrumb 3</ifx-breadcrumb-item-label>
119
+ <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? icon : ''}" href="http://google.com">Breadcrumb 3</ifx-breadcrumb-item-label>
46
120
  </ifx-breadcrumb-item>
47
121
  </ifx-breadcrumb>`;
48
122
  const breadcrumb = wrapper.querySelector('ifx-breadcrumb');
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.stories.js","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,KAAK;KACZ;IACD,QAAQ,EAAE;QACR,mBAAmB,EAAE;YACnB,MAAM,EAAE,qBAAqB;YAC7B,WAAW,EAAE,+CAA+C;YAC5D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,uBAAuB;oBAChC,MAAM,EACJ,yNAAyN;iBAC5N;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;IAC7B,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,SAAS,GAAG;;oDAE8B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;oDAU5B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;oDAU5B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;;kBAE9D,CAAC;IAEjB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAgB,CAAC;IAC1E,oFAAoF;IACpF,MAAM,eAAe,GAAG,UAAU,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;IAC3E,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;QACvC,MAAM,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QACvE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,gBAAgB,CAAC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n title: 'Components/Breadcrumb',\n tags: ['autodocs'],\n\n args: {\n icon: false,\n },\n argTypes: {\n ifxDropdownMenuItem: {\n action: 'ifxDropdownMenuItem',\n description: 'Custom event emitted when an item is selected',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxDropdownMenuItem={handleChange}\\nVue:@ifxDropdownMenuItem=\"handleChange\"\\nAngular:(ifxDropdownMenuItem)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxDropdownMenuItem\", (event) => {//handle change});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const wrapper = document.createElement('div');\n wrapper.innerHTML = `<ifx-breadcrumb>\n <ifx-breadcrumb-item>\n <ifx-breadcrumb-item-label slot=\"label\" icon=\"${args.icon ? 'c-info-16' : ''}\">Breadcrumb 1</ifx-breadcrumb-item-label>\n <ifx-dropdown-menu>\n <ifx-dropdown-item url=\"http://google.com\">Google</ifx-dropdown-item>\n <ifx-dropdown-item url=\"http://bing.com\">Bing</ifx-dropdown-item>\n <ifx-dropdown-item url=\"http://yahoo.com\">Yahoo</ifx-dropdown-item>\n <ifx-dropdown-item url=\"http://naver.com\">Naver</ifx-dropdown-item>\n </ifx-dropdown-menu>\n </ifx-breadcrumb-item>\n\n <ifx-breadcrumb-item>\n <ifx-breadcrumb-item-label slot=\"label\" icon=\"${args.icon ? 'c-info-16' : ''}\">Breadcrumb 2</ifx-breadcrumb-item-label>\n <ifx-dropdown-menu>\n <ifx-dropdown-item url=\"http://google.com\">Google</ifx-dropdown-item>\n <ifx-dropdown-item url=\"http://bing.com\">Bing</ifx-dropdown-item>\n <ifx-dropdown-item url=\"http://yahoo.com\">Yahoo</ifx-dropdown-item>\n <ifx-dropdown-item url=\"http://naver.com\">Naver</ifx-dropdown-item>\n </ifx-dropdown-menu>\n </ifx-breadcrumb-item>\n\n <ifx-breadcrumb-item>\n <ifx-breadcrumb-item-label slot=\"label\" icon=\"${args.icon ? 'c-info-16' : ''}\" url=\"http://google.com\">Breadcrumb 3</ifx-breadcrumb-item-label>\n </ifx-breadcrumb-item>\n</ifx-breadcrumb>`;\n\n const breadcrumb = wrapper.querySelector('ifx-breadcrumb') as HTMLElement;\n // Loop through each breadcrumb item and attach event listeners to its dropdown menu\n const breadcrumbItems = breadcrumb.querySelectorAll('ifx-breadcrumb-item');\n breadcrumbItems.forEach(breadcrumbItem => {\n const dropdownMenu = breadcrumbItem.querySelector('ifx-dropdown-menu');\n dropdownMenu?.addEventListener('ifxDropdownMenuItem', action('ifxDropdownMenuItem'));\n });\n\n return wrapper;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
1
+ {"version":3,"file":"breadcrumb.stories.js","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,EAAE;QACR,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,kBAAkB;QACxB,kBAAkB,EAAE,mBAAmB;QACvC,MAAM,EAAE,OAAO;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YAC9D,WAAW,EAAE,4DAA4D;YACzE,KAAK,EAAE;gBACL,QAAQ,EAAE,iCAAiC;gBAC3C,YAAY,EAAE;oBACZ,OAAO,EAAE,EAAE;iBACZ;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,6BAA6B;YAC1C,KAAK,EAAE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,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACnD,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,SAAS,GAAG;;oDAE8B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,IAAI,CAAC,IAAI;;gCAE7D,IAAI,CAAC,kBAAkB;;;;;;;;oDAQH,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;;8BAE3C,IAAI,CAAC,IAAI;;;;;;;;oDAQa,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;;kBAEvD,CAAC;IAEjB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAgB,CAAC;IAC1E,oFAAoF;IACpF,MAAM,eAAe,GAAG,UAAU,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;IAC3E,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;QACvC,MAAM,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QACvE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,gBAAgB,CAAC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Breadcrumb',\n tags: ['autodocs'],\n\n args: {\n icon: '',\n iconArialLabel: '',\n href: 'http://yahoo.com',\n hrefOfDropdownItem: 'http://google.com',\n target: '_self',\n },\n argTypes: {\n icon: {\n control: { type: 'select' },\n options: ['none', ...Object.values(icons).map(i => i['name'])],\n description: 'Set the icon of the tab. Choose \"none\" to display no icon.',\n table: {\n category: 'ifx-breadcrumb-item-label props',\n defaultValue: {\n summary: ''\n },\n type: {\n summary: 'string'\n }\n }\n },\n target: {\n control: { type: 'text' },\n description: 'Set the target of the link.',\n table: {\n category: 'ifx-breadcrumb-item-label props',\n defaultValue: {\n summary: '_self'\n },\n type: {\n summary: 'string'\n }\n }\n },\n iconArialLabel: {\n control: { type: 'text' },\n description: 'Set the aria label of the icon.',\n table: {\n category: 'ifx-breadcrumb-item-label props',\n defaultValue: {\n summary: ''\n },\n type: {\n summary: 'string'\n }\n }\n },\n href: {\n control: { type: 'text' },\n description: 'Set the href of the breadcrumb item.',\n table: {\n category: 'ifx-breadcrumb-item-label props',\n defaultValue: {\n summary: ''\n },\n type: {\n summary: 'string'\n }\n }\n },\n hrefOfDropdownItem: {\n name: 'href',\n control: { type: 'text' },\n description: 'Set the href of the dropdown item.',\n table: {\n category: 'ifx-dropdown-item props',\n defaultValue: {\n summary: ''\n },\n type: {\n summary: 'string'\n }\n }\n },\n ifxDropdownMenuItem: {\n action: 'ifxDropdownMenuItem',\n description: 'Custom event emitted by ifx-dropdown-menu when an item is selected.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxDropdownMenuItem={handleChange}\\nVue:@ifxDropdownMenuItem=\"handleChange\"\\nAngular:(ifxDropdownMenuItem)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxDropdownMenuItem\", (event) => {//handle change});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const icon = args.icon === 'none' ? '' : args.icon;\n const wrapper = document.createElement('div');\n wrapper.innerHTML = `<ifx-breadcrumb>\n <ifx-breadcrumb-item>\n <ifx-breadcrumb-item-label slot=\"label\" icon=\"${args.icon ? icon : ''}\" href=\"${args.href}\"\">Breadcrumb 1</ifx-breadcrumb-item-label>\n <ifx-dropdown-menu>\n <ifx-dropdown-item href=${args.hrefOfDropdownItem}>Google</ifx-dropdown-item>\n <ifx-dropdown-item href=\"http://bing.com\">Bing</ifx-dropdown-item>\n <ifx-dropdown-item href=\"http://yahoo.com\">Yahoo</ifx-dropdown-item>\n <ifx-dropdown-item href=\"http://naver.com\">Naver</ifx-dropdown-item>\n </ifx-dropdown-menu>\n </ifx-breadcrumb-item>\n\n <ifx-breadcrumb-item>\n <ifx-breadcrumb-item-label slot=\"label\" icon=\"${args.icon ? icon : ''}\">Breadcrumb 2</ifx-breadcrumb-item-label>\n <ifx-dropdown-menu>\n <ifx-dropdown-item href=${args.href}>Google</ifx-dropdown-item>\n <ifx-dropdown-item href=\"http://bing.com\">Bing</ifx-dropdown-item>\n <ifx-dropdown-item href=\"http://yahoo.com\">Yahoo</ifx-dropdown-item>\n <ifx-dropdown-item href=\"http://naver.com\">Naver</ifx-dropdown-item>\n </ifx-dropdown-menu>\n </ifx-breadcrumb-item>\n\n <ifx-breadcrumb-item>\n <ifx-breadcrumb-item-label slot=\"label\" icon=\"${args.icon ? icon : ''}\" href=\"http://google.com\">Breadcrumb 3</ifx-breadcrumb-item-label>\n </ifx-breadcrumb-item>\n</ifx-breadcrumb>`;\n\n const breadcrumb = wrapper.querySelector('ifx-breadcrumb') as HTMLElement;\n // Loop through each breadcrumb item and attach event listeners to its dropdown menu\n const breadcrumbItems = breadcrumb.querySelectorAll('ifx-breadcrumb-item');\n breadcrumbItems.forEach(breadcrumbItem => {\n const dropdownMenu = breadcrumbItem.querySelector('ifx-dropdown-menu');\n dropdownMenu?.addEventListener('ifxDropdownMenuItem', action('ifxDropdownMenuItem'));\n });\n\n return wrapper;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
@@ -10,43 +10,135 @@ export default {
10
10
  size: 'm',
11
11
  fullWidth: false,
12
12
  disabled: false,
13
+ icon: '',
13
14
  iconPosition: 'left',
14
15
  href: false,
15
16
  url: '',
16
17
  target: '_blank',
17
18
  },
18
19
  argTypes: {
20
+ label: {
21
+ name: 'Label of Button',
22
+ description: 'Sets the text displayed on the *<ifx-button>*.',
23
+ table: {
24
+ category: 'story controls',
25
+ }
26
+ },
19
27
  icon: {
28
+ description: 'The icon to be displayed.',
29
+ control: 'select',
20
30
  options: Object.values(icons).map(i => i['name']),
21
- control: { type: 'select' },
31
+ table: {
32
+ category: 'ifx-button props',
33
+ type: {
34
+ summary: 'string'
35
+ }
36
+ }
22
37
  },
23
38
  variant: {
39
+ description: 'Sets the style variant of the button.',
40
+ control: 'radio',
24
41
  options: ['primary', 'secondary', 'tertiary'],
25
- control: { type: 'radio' },
42
+ table: {
43
+ category: 'ifx-button props',
44
+ defaultValue: {
45
+ summary: 'primary'
46
+ }
47
+ }
26
48
  },
27
49
  theme: {
50
+ description: 'Specifies the theme style of the button.',
51
+ control: 'radio',
28
52
  options: ['default', 'danger', 'inverse'],
29
- control: { type: 'radio' },
53
+ table: {
54
+ category: 'ifx-button props',
55
+ defaultValue: {
56
+ summary: 'default'
57
+ }
58
+ }
30
59
  },
31
60
  type: {
61
+ description: 'Sets the type attribute of the button.',
62
+ control: 'radio',
32
63
  options: ['button', 'submit', 'reset'],
33
- control: { type: 'radio' },
64
+ table: {
65
+ category: 'ifx-button props',
66
+ defaultValue: {
67
+ summary: 'button'
68
+ }
69
+ }
34
70
  },
35
71
  size: {
36
- description: 'Size options: xs (32px) s (36px), m (40px), l (48px) - default: m',
72
+ description: 'Sets the size of the button. Options: xs (32px) s (36px), m (40px), l (48px)',
73
+ control: 'radio',
37
74
  options: ['xs', 's', 'm', 'l'],
38
- control: { type: 'radio' },
75
+ table: {
76
+ category: 'ifx-button props',
77
+ defaultValue: {
78
+ summary: 'm'
79
+ }
80
+ }
39
81
  },
40
82
  fullWidth: {
41
- control: { type: 'boolean' },
83
+ description: 'When set to **true**, expands the button to take the full width of its container.',
84
+ control: 'boolean',
85
+ table: {
86
+ category: 'ifx-button props',
87
+ defaultValue: {
88
+ summary: 'false'
89
+ }
90
+ }
91
+ },
92
+ disabled: {
93
+ description: 'Disables the button when set to true.',
94
+ control: 'boolean',
95
+ table: {
96
+ category: 'ifx-button props',
97
+ defaultValue: {
98
+ summary: 'false'
99
+ }
100
+ }
42
101
  },
43
102
  iconPosition: {
103
+ description: 'Determines the position of an icon within the button if an icon is used.',
104
+ control: 'radio',
44
105
  options: ['left', 'right'],
45
- control: { type: 'radio' },
106
+ table: {
107
+ category: 'ifx-button props',
108
+ defaultValue: {
109
+ summary: 'left'
110
+ }
111
+ }
112
+ },
113
+ href: {
114
+ description: 'When set to **true**, treats the button as a link by setting a URL.',
115
+ control: 'boolean',
116
+ table: {
117
+ category: 'ifx-button props',
118
+ defaultValue: {
119
+ summary: 'false'
120
+ }
121
+ }
122
+ },
123
+ url: {
124
+ description: 'Specifies the destination URL for the button when it acts as a link.',
125
+ table: {
126
+ category: 'ifx-button props',
127
+ type: {
128
+ summary: 'string'
129
+ }
130
+ }
46
131
  },
47
132
  target: {
133
+ description: 'Determines where to open the linked document when the button is clicked.',
134
+ control: 'radio',
48
135
  options: ['_blank', '_self', '_parent'],
49
- control: { type: 'radio' },
136
+ table: {
137
+ category: 'ifx-button props',
138
+ defaultValue: {
139
+ summary: '_blank'
140
+ }
141
+ }
50
142
  },
51
143
  },
52
144
  };
@@ -1 +1 @@
1
- {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../src/components/button/button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,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AAG,IAAI,CAAC,EAAE,CAC7B,qBAAqB,IAAI,CAAC,IAAI,eAAe,IAAI,CAAC,QAAQ,cAAc,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,IAAI,aAAa,IAAI,CAAC,MAAM,YAAY,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,IAAI,CAAC,SAAS;IAC5N,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE;cAC3N,CAAC;AAEf,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Button',\n tags: ['autodocs'],\n\n args: {\n label: 'Button',\n variant: 'primary',\n theme: 'default',\n type: 'button',\n size: 'm',\n fullWidth: false,\n disabled: false,\n iconPosition: 'left',\n href: false,\n url: '',\n target: '_blank',\n },\n\n argTypes: {\n icon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n variant: {\n options: ['primary', 'secondary', 'tertiary'],\n control: { type: 'radio' },\n },\n theme: {\n options: ['default', 'danger', 'inverse'],\n control: { type: 'radio' },\n },\n type: {\n options: ['button', 'submit', 'reset'],\n control: { type: 'radio' },\n },\n size: {\n description: 'Size options: xs (32px) s (36px), m (40px), l (48px) - default: m',\n options: ['xs', 's', 'm', 'l'],\n control: { type: 'radio' },\n },\n fullWidth: {\n control: { type: 'boolean' },\n },\n iconPosition: {\n options: ['left', 'right'],\n control: { type: 'radio' },\n },\n target: {\n options: ['_blank', '_self', '_parent'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args =>\n `<ifx-button type=\"${args.type}\" disabled=\"${args.disabled}\" variant=\"${args.variant}\" size=\"${args.size}\" target=\"${args.target}\" theme=\"${args.theme}\" ${args.href ? `href=\"${args.url}\"` : ''} full-width=\"${args.fullWidth}\">\n ${args.icon && args.iconPosition.toUpperCase() === 'LEFT' ? `<ifx-icon icon=\"${args.icon}\"></ifx-icon>` : ''}${args.label}${args.icon && args.iconPosition.toUpperCase() === 'RIGHT' ? `<ifx-icon icon=\"${args.icon}\"></ifx-icon>` : ''} \n</ifx-button>`;\n\nexport const Default = DefaultTemplate.bind({});\n"]}
1
+ {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../src/components/button/button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,EAAE;QACR,YAAY,EAAE,MAAM;QACpB,IAAI,EAAE,KAAK;QACX,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,QAAQ;KACjB;IAED,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,gDAAgD;YAC7D,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;aAC3B;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,2BAA2B;YACxC,OAAO,E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cAAc,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,IAAI,aAAa,IAAI,CAAC,MAAM,YAAY,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,IAAI,CAAC,SAAS;IAC5N,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE;cAC3N,CAAC;AAEf,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Button',\n tags: ['autodocs'],\n\n args: {\n label: 'Button',\n variant: 'primary',\n theme: 'default',\n type: 'button',\n size: 'm',\n fullWidth: false,\n disabled: false,\n icon: '',\n iconPosition: 'left',\n href: false,\n url: '',\n target: '_blank',\n },\n\n argTypes: {\n label: {\n name: 'Label of Button',\n description: 'Sets the text displayed on the *<ifx-button>*.',\n table: {\n category: 'story controls',\n }\n },\n icon: {\n description: 'The icon to be displayed.',\n control: 'select',\n options: Object.values(icons).map(i => i['name']),\n table: {\n category: 'ifx-button props',\n type: {\n summary: 'string'\n }\n }\n },\n variant: {\n description: 'Sets the style variant of the button.',\n control: 'radio',\n options: ['primary', 'secondary', 'tertiary'],\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'primary'\n }\n }\n },\n theme: {\n description: 'Specifies the theme style of the button.',\n control: 'radio',\n options: ['default', 'danger', 'inverse'],\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'default'\n }\n }\n },\n type: {\n description: 'Sets the type attribute of the button.',\n control: 'radio',\n options: ['button', 'submit', 'reset'],\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'button'\n }\n }\n },\n size: {\n description: 'Sets the size of the button. Options: xs (32px) s (36px), m (40px), l (48px)',\n control: 'radio',\n options: ['xs', 's', 'm', 'l'],\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'm'\n }\n }\n },\n fullWidth: {\n description: 'When set to **true**, expands the button to take the full width of its container.',\n control: 'boolean',\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'false'\n }\n }\n },\n disabled: {\n description: 'Disables the button when set to true.',\n control: 'boolean',\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'false'\n }\n }\n },\n iconPosition: {\n description: 'Determines the position of an icon within the button if an icon is used.',\n control: 'radio',\n options: ['left', 'right'],\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'left'\n }\n }\n },\n href: {\n description: 'When set to **true**, treats the button as a link by setting a URL.',\n control: 'boolean',\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: 'false'\n }\n }\n },\n url: {\n description: 'Specifies the destination URL for the button when it acts as a link.',\n table: {\n category: 'ifx-button props',\n type: {\n summary: 'string'\n }\n }\n },\n target: {\n description: 'Determines where to open the linked document when the button is clicked.',\n control: 'radio',\n options: ['_blank', '_self', '_parent'],\n table: {\n category: 'ifx-button props',\n defaultValue: {\n summary: '_blank'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = args =>\n `<ifx-button type=\"${args.type}\" disabled=\"${args.disabled}\" variant=\"${args.variant}\" size=\"${args.size}\" target=\"${args.target}\" theme=\"${args.theme}\" ${args.href ? `href=\"${args.url}\"` : ''} full-width=\"${args.fullWidth}\">\n ${args.icon && args.iconPosition.toUpperCase() === 'LEFT' ? `<ifx-icon icon=\"${args.icon}\"></ifx-icon>` : ''}${args.label}${args.icon && args.iconPosition.toUpperCase() === 'RIGHT' ? `<ifx-icon icon=\"${args.icon}\"></ifx-icon>` : ''} \n</ifx-button>`;\n\nexport const Default = DefaultTemplate.bind({});\n"]}
@@ -2,38 +2,118 @@ export default {
2
2
  title: 'Components/Card',
3
3
  tags: ['autodocs'],
4
4
  args: {
5
- direction: 'vertical',
6
5
  overline: 'Overline',
7
6
  headline: 'Headline',
8
7
  description: "Some quick example text to build on the card title and make up the bulk of the card's content.",
8
+ direction: 'vertical',
9
9
  button: 'button',
10
10
  href: '',
11
11
  target: '_blank',
12
12
  position: 'right',
13
13
  src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',
14
+ AriaLabel: 'Card',
14
15
  },
15
16
  argTypes: {
17
+ overline: {
18
+ name: 'Overline',
19
+ description: 'Sets the overline text of the card.',
20
+ type: { name: 'string' },
21
+ table: {
22
+ category: 'story controls',
23
+ },
24
+ },
25
+ headline: {
26
+ name: 'Headline',
27
+ description: 'Sets the headline text of the card.',
28
+ type: { name: 'string' },
29
+ table: {
30
+ category: 'story controls',
31
+ },
32
+ },
33
+ description: {
34
+ name: 'Description',
35
+ description: 'Sets the description text of the card.',
36
+ type: { name: 'string' },
37
+ table: {
38
+ category: 'story controls',
39
+ },
40
+ },
16
41
  button: {
42
+ name: 'Button',
17
43
  options: ['button', 'link', 'none'],
44
+ description: 'Sets the button type of the card.',
18
45
  control: { type: 'radio' },
46
+ table: {
47
+ category: 'story controls',
48
+ },
19
49
  },
20
50
  direction: {
51
+ description: 'Sets the direction of the card layout.',
52
+ table: {
53
+ category: 'ifx-card props',
54
+ defaultValue: {
55
+ summary: 'vertical',
56
+ },
57
+ type: {
58
+ summary: 'horizontal | vertical',
59
+ disable: true,
60
+ },
61
+ },
21
62
  options: ['horizontal', 'vertical'],
22
63
  control: { type: 'radio' },
23
64
  },
65
+ AriaLabel: {
66
+ control: { type: 'text' },
67
+ description: 'Sets the aria-label attribute of the card. Enhances accessibility.',
68
+ table: {
69
+ category: 'ifx-card props',
70
+ },
71
+ },
24
72
  position: {
73
+ description: 'Sets the position of the image in the card.',
74
+ table: {
75
+ category: 'ifx-card-image props',
76
+ },
25
77
  options: ['left', 'right'],
26
78
  control: { type: 'radio' },
27
79
  if: { arg: 'direction', eq: 'horizontal' },
28
80
  },
81
+ href: {
82
+ description: 'Sets the hyperlink reference.',
83
+ type: { name: 'string' },
84
+ table: {
85
+ category: 'ifx-card props',
86
+ },
87
+ },
29
88
  target: {
89
+ description: 'Sets the target of the hyperlink reference',
90
+ table: {
91
+ category: 'ifx-card props',
92
+ defaultValue: {
93
+ summary: '_self',
94
+ },
95
+ },
30
96
  options: ['_blank', '_self', '_parent'],
31
97
  control: { type: 'radio' },
32
98
  },
99
+ src: {
100
+ description: 'Sets the image source.',
101
+ type: { name: 'string' },
102
+ table: {
103
+ category: 'ifx-card-image props',
104
+ },
105
+ },
106
+ alt: {
107
+ description: 'Sets the alternative text for the image.',
108
+ type: { name: 'string' },
109
+ table: {
110
+ category: 'ifx-card-image props',
111
+ },
112
+ },
33
113
  },
34
114
  };
35
- const DefaultTemplate = args => `<ifx-card direction="${args.direction}" href="${args.href}" target="${args.target}">
36
- <ifx-card-image position="${args.position}" src="${args.src}" alt="" slot="img"></ifx-card-image>
115
+ const DefaultTemplate = args => `<ifx-card direction="${args.direction}" href="${args.href}" target="${args.target}" aria-label="${args.AriaLabel}">
116
+ <ifx-card-image position="${args.position}" src="${args.src}" alt="${args.alt}" slot="img"></ifx-card-image>
37
117
  ${args.overline
38
118
  ? `<ifx-card-overline>
39
119
  ${args.overline}
@@ -70,10 +150,11 @@ const DefaultTemplate = args => `<ifx-card direction="${args.direction}" href="$
70
150
  </ifx-card>`;
71
151
  export const Default = DefaultTemplate.bind({});
72
152
  Default.args = {
153
+ alt: 'Coffee',
73
154
  src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',
74
155
  };
75
156
  const HorizontalTemplate = args => `<ifx-card direction="${args.direction}" href="${args.href}" target="${args.target}">
76
- <ifx-card-image position="${args.position}" src="${args.src}" alt="" slot="img"></ifx-card-image>
157
+ <ifx-card-image position="${args.position}" src="${args.src}" alt="${args.alt}" slot="img"></ifx-card-image>
77
158
  ${args.overline
78
159
  ? `<ifx-card-overline>
79
160
  ${args.overline}
@@ -1 +1 @@
1
- {"version":3,"file":"card.stories.js","sourceRoot":"","sources":["../../../src/components/card/card.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACJ,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,gGAAgG;QAC7G,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,OAAO;QACjB,GAAG,EAAE,+EAA+E;KACrF;IAED,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;YACnC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,SAAS,EAAE;YACT,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;YACnC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QAED,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAE;SAC3C;QAED,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;YACvC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAA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6BACD;IACjB,CAAC,CAAC,EACN;QAEA,IAAI,CAAC,MAAM,KAAK,QAAQ;IACtB,CAAC,CAAC;;;4BAGgB;IAClB,CAAC,CAAC,EACN;YAEM,IAAI,CAAC,MAAM,KAAK,MAAM;IACpB,CAAC,CAAC;;;;;;;;;0BASU;IACZ,CAAC,CAAC,EACN;cACI,CAAC;AAEf,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,UAAU,CAAC,IAAI,GAAG;IAChB,SAAS,EAAE,YAAY;IACvB,GAAG,EAAE,+EAA+E;CACrF,CAAC;AACF,UAAU,CAAC,QAAQ,GAAG;IACpB,SAAS,EAAE;QACT,KAAK,EAAE;YACL,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC","sourcesContent":["export default {\n title: 'Components/Card',\n tags: ['autodocs'],\n args: {\n direction: 'vertical',\n overline: 'Overline',\n headline: 'Headline',\n description: \"Some quick example text to build on the card title and make up the bulk of the card's content.\",\n button: 'button',\n href: '',\n target: '_blank',\n position: 'right',\n src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',\n },\n\n argTypes: {\n button: {\n options: ['button', 'link', 'none'],\n control: { type: 'radio' },\n },\n direction: {\n options: ['horizontal', 'vertical'],\n control: { type: 'radio' },\n },\n\n position: {\n options: ['left', 'right'],\n control: { type: 'radio' },\n if: { arg: 'direction', eq: 'horizontal' },\n },\n\n target: {\n options: ['_blank', '_self', '_parent'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"\" slot=\"img\"></ifx-card-image>\n ${\n args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : ''\n }\n ${\n args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : ''\n }\n ${\n args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>`\n : ''\n }\n ${\n args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>`\n : ''\n }\n ${\n args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link href=\"https://google.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link href=\"https://yahoo.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>`\n : ''\n }\n </ifx-card>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.args = {\n src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',\n};\n\nconst HorizontalTemplate = args =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"\" slot=\"img\"></ifx-card-image>\n ${\n args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : ''\n }\n ${\n args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : ''\n }\n ${\n args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>`\n : ''\n }\n ${\n args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>`\n : ''\n }\n ${\n args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link color=\"primary\" href=\"https://google.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link color=\"primary\" href=\"https://yahoo.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>`\n : ''\n }\n </ifx-card>`;\n\nexport const Horizontal = HorizontalTemplate.bind({});\nHorizontal.args = {\n direction: 'horizontal',\n src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',\n};\nHorizontal.argTypes = {\n direction: {\n table: {\n disable: true,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"card.stories.js","sourceRoot":"","sources":["../../../src/components/card/card.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACJ,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,gGAAgG;QAC7G,SAAS,EAAE,UAAU;QACrB,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,OAAO;QACjB,GAAG,EAAE,+EAA+E;QACpF,SAAS,EAAE,MAAM;KAClB;IAED,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;aAC3B;SACF;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;aAC3B;SACF;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;aAC3B;SACF;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AI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,IAAI,GAAG;IACb,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,+EAA+E;CACrF,CAAC;AAEF,MAAM,kBAAkB,GAAG,IAAI,CAAC,EAAE,CAChC,wBAAwB,IAAI,CAAC,SAAS,WAAW,IAAI,CAAC,IAAI,aAAa,IAAI,CAAC,MAAM;gCACpD,IAAI,CAAC,QAAQ,UAAU,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,GAAG;MAC3E,IAAI,CAAC,QAAQ;IACf,CAAC,CAAC;UACI,IAAI,CAAC,QAAQ;6BACM;IACzB,CAAC,CAAC,EACJ;QACM,IAAI,CAAC,QAAQ;IACjB,CAAC,CAAC;YACM,IAAI,CAAC,QAAQ;+BACM;IAC3B,CAAC,CAAC,EACJ;UACQ,IAAI,CAAC,WAAW;IACtB,CAAC,CAAC;cACQ,IAAI,CAAC,WAAW;6BACD;IACzB,CAAC,CAAC,EACJ;QACM,IAAI,CAAC,MAAM,KAAK,QAAQ;IAC5B,CAAC,CAAC;;;4BAGsB;IACxB,CAAC,CAAC,EACJ;YACU,IAAI,CAAC,MAAM,KAAK,MAAM;IAC9B,CAAC,CAAC;;;;;;;;;0BASoB;IACtB,CAAC,CAAC,EACJ;cACY,CAAC;AAEf,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,UAAU,CAAC,IAAI,GAAG;IAChB,SAAS,EAAE,YAAY;IACvB,GAAG,EAAE,+EAA+E;CACrF,CAAC;AACF,UAAU,CAAC,QAAQ,GAAG;IACpB,SAAS,EAAE;QACT,KAAK,EAAE;YACL,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC","sourcesContent":["export default {\n title: 'Components/Card',\n tags: ['autodocs'],\n args: {\n overline: 'Overline',\n headline: 'Headline',\n description: \"Some quick example text to build on the card title and make up the bulk of the card's content.\",\n direction: 'vertical',\n button: 'button',\n href: '',\n target: '_blank',\n position: 'right',\n src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',\n AriaLabel: 'Card',\n },\n\n argTypes: {\n overline: {\n name: 'Overline',\n description: 'Sets the overline text of the card.',\n type: { name: 'string' },\n table: {\n category: 'story controls',\n },\n },\n headline: {\n name: 'Headline',\n description: 'Sets the headline text of the card.',\n type: { name: 'string' },\n table: {\n category: 'story controls',\n },\n },\n description: {\n name: 'Description',\n description: 'Sets the description text of the card.',\n type: { name: 'string' },\n table: {\n category: 'story controls',\n },\n },\n button: {\n name: 'Button',\n options: ['button', 'link', 'none'],\n description: 'Sets the button type of the card.',\n control: { type: 'radio' },\n table: {\n category: 'story controls',\n },\n },\n direction: {\n description: 'Sets the direction of the card layout.',\n table: {\n category: 'ifx-card props',\n defaultValue: {\n summary: 'vertical',\n },\n type: {\n summary: 'horizontal | vertical',\n disable: true,\n },\n },\n options: ['horizontal', 'vertical'],\n control: { type: 'radio' },\n },\n AriaLabel: {\n control: { type: 'text' },\n description: 'Sets the aria-label attribute of the card. Enhances accessibility.',\n table: {\n category: 'ifx-card props',\n },\n },\n\n position: {\n description: 'Sets the position of the image in the card.',\n table: {\n category: 'ifx-card-image props',\n },\n options: ['left', 'right'],\n control: { type: 'radio' },\n if: { arg: 'direction', eq: 'horizontal' },\n },\n href: {\n description: 'Sets the hyperlink reference.',\n type: { name: 'string' },\n table: {\n category: 'ifx-card props',\n },\n },\n target: {\n description: 'Sets the target of the hyperlink reference',\n table: {\n category: 'ifx-card props',\n defaultValue: {\n summary: '_self',\n },\n },\n options: ['_blank', '_self', '_parent'],\n control: { type: 'radio' },\n },\n src: {\n description: 'Sets the image source.',\n type: { name: 'string' },\n table: {\n category: 'ifx-card-image props',\n },\n },\n alt: {\n description: 'Sets the alternative text for the image.',\n type: { name: 'string' },\n table: {\n category: 'ifx-card-image props',\n },\n },\n },\n};\n\nconst DefaultTemplate = args =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\" aria-label=\"${args.AriaLabel}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"${args.alt}\" slot=\"img\"></ifx-card-image>\n ${args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : ''\n }\n ${args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : ''\n }\n ${args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>`\n : ''\n }\n ${args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>`\n : ''\n }\n ${args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link href=\"https://google.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link href=\"https://yahoo.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>`\n : ''\n }\n </ifx-card>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.args = {\n alt: 'Coffee',\n src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',\n};\n\nconst HorizontalTemplate = args =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"${args.alt}\" slot=\"img\"></ifx-card-image>\n ${args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : ''\n }\n ${args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : ''\n }\n ${args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>`\n : ''\n }\n ${args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>`\n : ''\n }\n ${args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link color=\"primary\" href=\"https://google.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link color=\"primary\" href=\"https://yahoo.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>`\n : ''\n }\n </ifx-card>`;\n\nexport const Horizontal = HorizontalTemplate.bind({});\nHorizontal.args = {\n direction: 'horizontal',\n src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',\n};\nHorizontal.argTypes = {\n direction: {\n table: {\n disable: true,\n },\n },\n};\n"]}