@infineon/infineon-design-system-stencil 30.1.1--canary.1640.e4770f238d16196b9059daf4898d2d6ef7cdcbdd.0 → 30.2.0--canary.1641.2fa3dc92b1652a9ad0c0488d80e396bc04aab9d2.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 (324) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +2 -2
  2. package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
  4. package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
  5. package/dist/cjs/ifx-filter-accordion.cjs.entry.js +2 -2
  6. package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
  7. package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
  8. package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
  9. package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
  10. package/dist/cjs/ifx-modal.cjs.entry.js +8 -8
  11. package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ifx-multiselect_2.cjs.entry.js +9 -9
  13. package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ifx-search-bar.cjs.entry.js +5 -5
  15. package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ifx-select.cjs.entry.js +2 -2
  17. package/dist/cjs/ifx-select.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +9 -9
  19. package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ifx-slider.cjs.entry.js +2 -2
  21. package/dist/cjs/ifx-spinner.cjs.entry.js +2 -2
  22. package/dist/cjs/ifx-status.cjs.entry.js +1 -1
  23. package/dist/cjs/ifx-step.cjs.entry.js +4 -4
  24. package/dist/cjs/ifx-stepper.cjs.entry.js +2 -2
  25. package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
  26. package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
  27. package/dist/cjs/ifx-table.cjs.entry.js +2 -2
  28. package/dist/cjs/ifx-tabs.cjs.entry.js +2 -2
  29. package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
  30. package/dist/cjs/ifx-textarea.cjs.entry.js +2 -2
  31. package/dist/cjs/ifx-tooltip.cjs.entry.js +4 -4
  32. package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/collection/components/accordion/accordion.stories.js +3 -79
  35. package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
  36. package/dist/collection/components/accordion/accordionItem.js +4 -4
  37. package/dist/collection/components/accordion/accordionItem.js.map +1 -1
  38. package/dist/collection/components/alert/alert.stories.js +12 -45
  39. package/dist/collection/components/alert/alert.stories.js.map +1 -1
  40. package/dist/collection/components/badge/badge.stories.js +7 -28
  41. package/dist/collection/components/badge/badge.stories.js.map +1 -1
  42. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +7 -66
  43. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
  44. package/dist/collection/components/button/button.stories.js +9 -104
  45. package/dist/collection/components/button/button.stories.js.map +1 -1
  46. package/dist/collection/components/card/card.stories.js +2 -85
  47. package/dist/collection/components/card/card.stories.js.map +1 -1
  48. package/dist/collection/components/checkbox/checkbox.stories.js +13 -74
  49. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
  50. package/dist/collection/components/content-switcher/content-switcher.stories.js +3 -48
  51. package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
  52. package/dist/collection/components/date-picker/date-picker.stories.js +6 -73
  53. package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
  54. package/dist/collection/components/dropdown/dropdown.stories.js +64 -161
  55. package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
  56. package/dist/collection/components/footer/footer.stories.js +1 -7
  57. package/dist/collection/components/footer/footer.stories.js.map +1 -1
  58. package/dist/collection/components/icon/infineonIconStencil.stories.js +2 -7
  59. package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
  60. package/dist/collection/components/icon-button/icon-button.stories.js +5 -61
  61. package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
  62. package/dist/collection/components/link/link.stories.js +4 -56
  63. package/dist/collection/components/link/link.stories.js.map +1 -1
  64. package/dist/collection/components/modal/modal.js +10 -10
  65. package/dist/collection/components/modal/modal.js.map +1 -1
  66. package/dist/collection/components/modal/modal.stories.js +19 -96
  67. package/dist/collection/components/modal/modal.stories.js.map +1 -1
  68. package/dist/collection/components/navigation/navbar/navbar.stories.js +12 -203
  69. package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
  70. package/dist/collection/components/navigation/sidebar/sidebar-item.js +11 -11
  71. package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
  72. package/dist/collection/components/navigation/sidebar/sidebar.stories.js +17 -110
  73. package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
  74. package/dist/collection/components/notification/notification.stories.js +4 -51
  75. package/dist/collection/components/notification/notification.stories.js.map +1 -1
  76. package/dist/collection/components/number-indicator/number-indicator.stories.js +0 -19
  77. package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
  78. package/dist/collection/components/pagination/pagination.stories.js +3 -30
  79. package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
  80. package/dist/collection/components/progress-bar/progress-bar.stories.js +8 -31
  81. package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
  82. package/dist/collection/components/radio-button/radio-button.stories.js +13 -66
  83. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
  84. package/dist/collection/components/search-bar/search-bar.js +6 -6
  85. package/dist/collection/components/search-bar/search-bar.js.map +1 -1
  86. package/dist/collection/components/search-bar/search-bar.stories.js +9 -58
  87. package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
  88. package/dist/collection/components/search-field/search-field.stories.js +7 -43
  89. package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
  90. package/dist/collection/components/select/multi-select/multiselect.js +6 -6
  91. package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
  92. package/dist/collection/components/select/multi-select/multiselect.stories.js +5 -131
  93. package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
  94. package/dist/collection/components/select/single-select/select.css +16 -0
  95. package/dist/collection/components/select/single-select/select.js +1 -1
  96. package/dist/collection/components/select/single-select/select.js.map +1 -1
  97. package/dist/collection/components/select/single-select/select.stories.js +26 -83
  98. package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
  99. package/dist/collection/components/slider/slider.js +2 -2
  100. package/dist/collection/components/slider/slider.stories.js +13 -97
  101. package/dist/collection/components/slider/slider.stories.js.map +1 -1
  102. package/dist/collection/components/spinner/spinner.js +2 -2
  103. package/dist/collection/components/spinner/spinner.stories.js +2 -34
  104. package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
  105. package/dist/collection/components/status/status.js +1 -1
  106. package/dist/collection/components/status/status.stories.js +1 -24
  107. package/dist/collection/components/status/status.stories.js.map +1 -1
  108. package/dist/collection/components/stepper/step/step.js +4 -4
  109. package/dist/collection/components/stepper/stepper.js +2 -2
  110. package/dist/collection/components/stepper/stepper.stories.js +16 -33
  111. package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
  112. package/dist/collection/components/switch/switch.js +1 -1
  113. package/dist/collection/components/switch/switch.stories.js +4 -54
  114. package/dist/collection/components/switch/switch.stories.js.map +1 -1
  115. package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +1 -1
  116. package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +2 -2
  117. package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +1 -1
  118. package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +1 -1
  119. package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -1
  120. package/dist/collection/components/table-advanced-version/table.js +2 -2
  121. package/dist/collection/components/table-advanced-version/table.stories.js +13 -235
  122. package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
  123. package/dist/collection/components/table-basic-version/table.js +1 -1
  124. package/dist/collection/components/table-basic-version/table.stories.js +1 -17
  125. package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
  126. package/dist/collection/components/tabs/tab.js +1 -1
  127. package/dist/collection/components/tabs/tabs.js +2 -2
  128. package/dist/collection/components/tabs/tabs.stories.js +23 -89
  129. package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
  130. package/dist/collection/components/tag/tag.js +1 -1
  131. package/dist/collection/components/tag/tag.stories.js +0 -18
  132. package/dist/collection/components/tag/tag.stories.js.map +1 -1
  133. package/dist/collection/components/text-field/text-field.js +4 -4
  134. package/dist/collection/components/text-field/text-field.stories.js +13 -104
  135. package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
  136. package/dist/collection/components/textarea/textarea.js +2 -2
  137. package/dist/collection/components/tooltip/tooltip.js +4 -4
  138. package/dist/collection/components/tooltip/tooltip.stories.js +4 -48
  139. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
  140. package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
  141. package/dist/components/ifx-accordion-item.js +1 -1
  142. package/dist/components/ifx-basic-table.js +1 -1
  143. package/dist/components/ifx-faq.js +2 -2
  144. package/dist/components/ifx-filter-accordion.js +2 -2
  145. package/dist/components/ifx-filter-bar.js +1 -1
  146. package/dist/components/ifx-filter-search.js +1 -1
  147. package/dist/components/ifx-filter-type-group.js +1 -1
  148. package/dist/components/ifx-list-entry.js +1 -1
  149. package/dist/components/ifx-modal.js +8 -8
  150. package/dist/components/ifx-modal.js.map +1 -1
  151. package/dist/components/ifx-multiselect.js +1 -1
  152. package/dist/components/ifx-pagination.js +1 -1
  153. package/dist/components/ifx-search-bar.js +5 -5
  154. package/dist/components/ifx-search-bar.js.map +1 -1
  155. package/dist/components/ifx-select.js +1 -1
  156. package/dist/components/ifx-set-filter.js +3 -3
  157. package/dist/components/ifx-sidebar-item.js +11 -11
  158. package/dist/components/ifx-sidebar-item.js.map +1 -1
  159. package/dist/components/ifx-slider.js +2 -2
  160. package/dist/components/ifx-spinner.js +2 -2
  161. package/dist/components/ifx-status.js +1 -1
  162. package/dist/components/ifx-step.js +4 -4
  163. package/dist/components/ifx-stepper.js +2 -2
  164. package/dist/components/ifx-switch.js +1 -1
  165. package/dist/components/ifx-tab.js +1 -1
  166. package/dist/components/ifx-table.js +4 -4
  167. package/dist/components/ifx-tabs.js +2 -2
  168. package/dist/components/ifx-tag.js +1 -1
  169. package/dist/components/ifx-text-field.js +1 -1
  170. package/dist/components/ifx-textarea.js +2 -2
  171. package/dist/components/ifx-tooltip.js +4 -4
  172. package/dist/components/{p-78f3e867.js → p-0a68c458.js} +4 -4
  173. package/dist/components/{p-78f3e867.js.map → p-0a68c458.js.map} +1 -1
  174. package/dist/components/{p-81357e99.js → p-652fc14d.js} +2 -2
  175. package/dist/components/{p-81357e99.js.map → p-652fc14d.js.map} +1 -1
  176. package/dist/components/{p-b9024e1a.js → p-7826add7.js} +3 -3
  177. package/dist/components/p-7826add7.js.map +1 -0
  178. package/dist/components/{p-bac84326.js → p-96fbc3db.js} +6 -6
  179. package/dist/components/p-96fbc3db.js.map +1 -0
  180. package/dist/components/{p-d5a199fb.js → p-a6736b21.js} +5 -5
  181. package/dist/components/{p-d5a199fb.js.map → p-a6736b21.js.map} +1 -1
  182. package/dist/esm/ifx-accordion_2.entry.js +2 -2
  183. package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
  184. package/dist/esm/ifx-basic-table.entry.js +1 -1
  185. package/dist/esm/ifx-faq.entry.js +1 -1
  186. package/dist/esm/ifx-filter-accordion.entry.js +2 -2
  187. package/dist/esm/ifx-filter-bar.entry.js +1 -1
  188. package/dist/esm/ifx-filter-search.entry.js +1 -1
  189. package/dist/esm/ifx-filter-type-group.entry.js +1 -1
  190. package/dist/esm/ifx-list-entry.entry.js +1 -1
  191. package/dist/esm/ifx-modal.entry.js +8 -8
  192. package/dist/esm/ifx-modal.entry.js.map +1 -1
  193. package/dist/esm/ifx-multiselect_2.entry.js +9 -9
  194. package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
  195. package/dist/esm/ifx-search-bar.entry.js +5 -5
  196. package/dist/esm/ifx-search-bar.entry.js.map +1 -1
  197. package/dist/esm/ifx-select.entry.js +2 -2
  198. package/dist/esm/ifx-select.entry.js.map +1 -1
  199. package/dist/esm/ifx-sidebar-item.entry.js +9 -9
  200. package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
  201. package/dist/esm/ifx-slider.entry.js +2 -2
  202. package/dist/esm/ifx-spinner.entry.js +2 -2
  203. package/dist/esm/ifx-status.entry.js +1 -1
  204. package/dist/esm/ifx-step.entry.js +4 -4
  205. package/dist/esm/ifx-stepper.entry.js +2 -2
  206. package/dist/esm/ifx-switch.entry.js +1 -1
  207. package/dist/esm/ifx-tab.entry.js +1 -1
  208. package/dist/esm/ifx-table.entry.js +2 -2
  209. package/dist/esm/ifx-tabs.entry.js +2 -2
  210. package/dist/esm/ifx-tag.entry.js +1 -1
  211. package/dist/esm/ifx-textarea.entry.js +2 -2
  212. package/dist/esm/ifx-tooltip.entry.js +4 -4
  213. package/dist/esm/infineon-design-system-stencil.js +1 -1
  214. package/dist/esm/loader.js +1 -1
  215. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  216. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  217. package/dist/infineon-design-system-stencil/{p-37ecac74.entry.js → p-190ebb90.entry.js} +2 -2
  218. package/dist/infineon-design-system-stencil/{p-a10f9b3c.entry.js → p-2e2ab749.entry.js} +2 -2
  219. package/dist/infineon-design-system-stencil/{p-0ddf85fc.entry.js → p-32c617c6.entry.js} +2 -2
  220. package/dist/infineon-design-system-stencil/{p-2e8c0115.entry.js → p-42a6429b.entry.js} +2 -2
  221. package/dist/infineon-design-system-stencil/{p-b30b66e5.entry.js → p-44e64146.entry.js} +2 -2
  222. package/dist/infineon-design-system-stencil/{p-50e122c4.entry.js → p-462946bf.entry.js} +2 -2
  223. package/dist/infineon-design-system-stencil/{p-8b089cd1.entry.js → p-4a6e75a4.entry.js} +2 -2
  224. package/dist/infineon-design-system-stencil/p-598324f5.entry.js +2 -0
  225. package/dist/infineon-design-system-stencil/{p-31e9d4f8.entry.js.map → p-598324f5.entry.js.map} +1 -1
  226. package/dist/infineon-design-system-stencil/p-6902ee06.entry.js +2 -0
  227. package/dist/infineon-design-system-stencil/{p-49872432.entry.js → p-6e2eec34.entry.js} +2 -2
  228. package/dist/infineon-design-system-stencil/p-7131a2b3.entry.js +2 -0
  229. package/dist/infineon-design-system-stencil/p-7131a2b3.entry.js.map +1 -0
  230. package/dist/infineon-design-system-stencil/p-79b4d359.entry.js +2 -0
  231. package/dist/infineon-design-system-stencil/p-79b4d359.entry.js.map +1 -0
  232. package/dist/infineon-design-system-stencil/p-7f510d1c.entry.js +2 -0
  233. package/dist/infineon-design-system-stencil/{p-7378190d.entry.js → p-874f2bf6.entry.js} +2 -2
  234. package/dist/infineon-design-system-stencil/{p-39697853.entry.js → p-88fb3c49.entry.js} +2 -2
  235. package/dist/infineon-design-system-stencil/{p-30640970.entry.js → p-90687777.entry.js} +2 -2
  236. package/dist/infineon-design-system-stencil/{p-bc40ad21.entry.js → p-a1c9b6fc.entry.js} +2 -2
  237. package/dist/infineon-design-system-stencil/{p-25bf54c9.entry.js → p-a24039e5.entry.js} +2 -2
  238. package/dist/infineon-design-system-stencil/p-a29b6247.entry.js +2 -0
  239. package/dist/infineon-design-system-stencil/p-a29b6247.entry.js.map +1 -0
  240. package/dist/infineon-design-system-stencil/{p-c428a56a.entry.js → p-b8f31dc3.entry.js} +2 -2
  241. package/dist/infineon-design-system-stencil/p-b8f31dc3.entry.js.map +1 -0
  242. package/dist/infineon-design-system-stencil/{p-02be14a9.entry.js → p-c68be6d9.entry.js} +2 -2
  243. package/dist/infineon-design-system-stencil/p-cdad5d2c.entry.js +2 -0
  244. package/dist/infineon-design-system-stencil/p-cdad5d2c.entry.js.map +1 -0
  245. package/dist/infineon-design-system-stencil/{p-5edfe317.entry.js → p-db956276.entry.js} +2 -2
  246. package/dist/infineon-design-system-stencil/{p-c2e6cbdb.entry.js → p-e954b757.entry.js} +2 -2
  247. package/dist/infineon-design-system-stencil/{p-b010bfcb.entry.js → p-ec0c6eb5.entry.js} +2 -2
  248. package/dist/infineon-design-system-stencil/{p-b010bfcb.entry.js.map → p-ec0c6eb5.entry.js.map} +1 -1
  249. package/dist/types/components/accordion/accordion.stories.d.ts +1 -67
  250. package/dist/types/components/accordion/accordionItem.d.ts +1 -1
  251. package/dist/types/components/alert/alert.stories.d.ts +11 -38
  252. package/dist/types/components/badge/badge.stories.d.ts +3 -23
  253. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +1 -66
  254. package/dist/types/components/button/button.stories.d.ts +16 -95
  255. package/dist/types/components/card/card.stories.d.ts +1 -95
  256. package/dist/types/components/checkbox/checkbox.stories.d.ts +10 -68
  257. package/dist/types/components/content-switcher/content-switcher.stories.d.ts +0 -50
  258. package/dist/types/components/date-picker/date-picker.stories.d.ts +2 -67
  259. package/dist/types/components/dropdown/dropdown.stories.d.ts +27 -111
  260. package/dist/types/components/footer/footer.stories.d.ts +0 -4
  261. package/dist/types/components/icon/infineonIconStencil.stories.d.ts +0 -5
  262. package/dist/types/components/icon-button/icon-button.stories.d.ts +8 -56
  263. package/dist/types/components/link/link.stories.d.ts +6 -52
  264. package/dist/types/components/modal/modal.d.ts +2 -2
  265. package/dist/types/components/modal/modal.stories.d.ts +3 -77
  266. package/dist/types/components/navigation/navbar/navbar.stories.d.ts +6 -243
  267. package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +2 -2
  268. package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +7 -90
  269. package/dist/types/components/notification/notification.stories.d.ts +0 -44
  270. package/dist/types/components/number-indicator/number-indicator.stories.d.ts +0 -19
  271. package/dist/types/components/pagination/pagination.stories.d.ts +0 -27
  272. package/dist/types/components/progress-bar/progress-bar.stories.d.ts +4 -25
  273. package/dist/types/components/radio-button/radio-button.stories.d.ts +8 -59
  274. package/dist/types/components/search-bar/search-bar.d.ts +1 -1
  275. package/dist/types/components/search-bar/search-bar.stories.d.ts +3 -60
  276. package/dist/types/components/search-field/search-field.stories.d.ts +6 -36
  277. package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
  278. package/dist/types/components/select/multi-select/multiselect.stories.d.ts +0 -125
  279. package/dist/types/components/select/single-select/select.stories.d.ts +24 -67
  280. package/dist/types/components/slider/slider.stories.d.ts +0 -110
  281. package/dist/types/components/spinner/spinner.stories.d.ts +0 -32
  282. package/dist/types/components/status/status.stories.d.ts +2 -23
  283. package/dist/types/components/stepper/stepper.stories.d.ts +4 -21
  284. package/dist/types/components/switch/switch.stories.d.ts +1 -50
  285. package/dist/types/components/table-advanced-version/table.stories.d.ts +2 -243
  286. package/dist/types/components/table-basic-version/table.stories.d.ts +1 -19
  287. package/dist/types/components/tabs/tabs.stories.d.ts +7 -77
  288. package/dist/types/components/tag/tag.stories.d.ts +0 -20
  289. package/dist/types/components/text-field/text-field.stories.d.ts +11 -96
  290. package/dist/types/components/tooltip/tooltip.stories.d.ts +6 -41
  291. package/dist/types/components.d.ts +10 -10
  292. package/package.json +1 -1
  293. package/dist/components/p-b9024e1a.js.map +0 -1
  294. package/dist/components/p-bac84326.js.map +0 -1
  295. package/dist/infineon-design-system-stencil/p-16f9a47c.entry.js +0 -2
  296. package/dist/infineon-design-system-stencil/p-227d384c.entry.js +0 -2
  297. package/dist/infineon-design-system-stencil/p-227d384c.entry.js.map +0 -1
  298. package/dist/infineon-design-system-stencil/p-2849823e.entry.js +0 -2
  299. package/dist/infineon-design-system-stencil/p-2849823e.entry.js.map +0 -1
  300. package/dist/infineon-design-system-stencil/p-31e9d4f8.entry.js +0 -2
  301. package/dist/infineon-design-system-stencil/p-3ca407c8.entry.js +0 -2
  302. package/dist/infineon-design-system-stencil/p-3ca407c8.entry.js.map +0 -1
  303. package/dist/infineon-design-system-stencil/p-b1688ca4.entry.js +0 -2
  304. package/dist/infineon-design-system-stencil/p-b1688ca4.entry.js.map +0 -1
  305. package/dist/infineon-design-system-stencil/p-c428a56a.entry.js.map +0 -1
  306. package/dist/infineon-design-system-stencil/p-ea74d7ab.entry.js +0 -2
  307. /package/dist/infineon-design-system-stencil/{p-37ecac74.entry.js.map → p-190ebb90.entry.js.map} +0 -0
  308. /package/dist/infineon-design-system-stencil/{p-a10f9b3c.entry.js.map → p-2e2ab749.entry.js.map} +0 -0
  309. /package/dist/infineon-design-system-stencil/{p-0ddf85fc.entry.js.map → p-32c617c6.entry.js.map} +0 -0
  310. /package/dist/infineon-design-system-stencil/{p-2e8c0115.entry.js.map → p-42a6429b.entry.js.map} +0 -0
  311. /package/dist/infineon-design-system-stencil/{p-b30b66e5.entry.js.map → p-44e64146.entry.js.map} +0 -0
  312. /package/dist/infineon-design-system-stencil/{p-50e122c4.entry.js.map → p-462946bf.entry.js.map} +0 -0
  313. /package/dist/infineon-design-system-stencil/{p-8b089cd1.entry.js.map → p-4a6e75a4.entry.js.map} +0 -0
  314. /package/dist/infineon-design-system-stencil/{p-16f9a47c.entry.js.map → p-6902ee06.entry.js.map} +0 -0
  315. /package/dist/infineon-design-system-stencil/{p-49872432.entry.js.map → p-6e2eec34.entry.js.map} +0 -0
  316. /package/dist/infineon-design-system-stencil/{p-ea74d7ab.entry.js.map → p-7f510d1c.entry.js.map} +0 -0
  317. /package/dist/infineon-design-system-stencil/{p-7378190d.entry.js.map → p-874f2bf6.entry.js.map} +0 -0
  318. /package/dist/infineon-design-system-stencil/{p-39697853.entry.js.map → p-88fb3c49.entry.js.map} +0 -0
  319. /package/dist/infineon-design-system-stencil/{p-30640970.entry.js.map → p-90687777.entry.js.map} +0 -0
  320. /package/dist/infineon-design-system-stencil/{p-bc40ad21.entry.js.map → p-a1c9b6fc.entry.js.map} +0 -0
  321. /package/dist/infineon-design-system-stencil/{p-25bf54c9.entry.js.map → p-a24039e5.entry.js.map} +0 -0
  322. /package/dist/infineon-design-system-stencil/{p-02be14a9.entry.js.map → p-c68be6d9.entry.js.map} +0 -0
  323. /package/dist/infineon-design-system-stencil/{p-5edfe317.entry.js.map → p-db956276.entry.js.map} +0 -0
  324. /package/dist/infineon-design-system-stencil/{p-c2e6cbdb.entry.js.map → p-e954b757.entry.js.map} +0 -0
@@ -1,73 +1,15 @@
1
1
  import { action } from "@storybook/addon-actions";
2
- import { icons } from "@infineon/infineon-icons";
3
2
  export default {
4
3
  title: 'Components/Breadcrumb',
5
4
  tags: ['autodocs'],
6
5
  args: {
7
- icon: '',
8
- iconArialLabel: '',
9
- url: 'http://google.com',
10
- target: '_self',
6
+ icon: false,
11
7
  },
12
8
  argTypes: {
13
- icon: {
14
- control: { type: 'select' },
15
- options: ['none', ...Object.values(icons).map(i => i['name'])],
16
- description: 'Set the icon of the tab. Choose "none" to display no icon.',
17
- table: {
18
- category: 'ifx-breadcrumb-item-label props',
19
- defaultValue: {
20
- summary: ''
21
- },
22
- type: {
23
- summary: 'string'
24
- }
25
- }
26
- },
27
- target: {
28
- control: { type: 'text' },
29
- description: 'Set the target of the link.',
30
- table: {
31
- category: 'ifx-breadcrumb-item-label props',
32
- defaultValue: {
33
- summary: '_self'
34
- },
35
- type: {
36
- summary: 'string'
37
- }
38
- }
39
- },
40
- iconArialLabel: {
41
- control: { type: 'text' },
42
- description: 'Set the aria label of the icon.',
43
- table: {
44
- category: 'ifx-breadcrumb-item-label props',
45
- defaultValue: {
46
- summary: ''
47
- },
48
- type: {
49
- summary: 'string'
50
- }
51
- }
52
- },
53
- url: {
54
- control: { type: 'text' },
55
- description: 'Set the url of the link.',
56
- table: {
57
- category: 'ifx-dropdown-item props',
58
- defaultValue: {
59
- summary: ''
60
- },
61
- type: {
62
- summary: 'string'
63
- }
64
- }
65
- },
66
9
  ifxDropdownMenuItem: {
67
10
  action: 'ifxDropdownMenuItem',
68
- description: 'Custom event emitted when an item is selected.',
11
+ description: 'Custom event emitted when an item is selected',
69
12
  table: {
70
- category: 'custom events',
71
13
  type: {
72
14
  summary: 'Framework integration',
73
15
  detail: 'React: onIfxDropdownMenuItem={handleChange}\nVue:@ifxDropdownMenuItem="handleChange"\nAngular:(ifxDropdownMenuItem)="handleChange()"\nVanillaJs:.addEventListener("ifxDropdownMenuItem", (event) => {//handle change});',
@@ -77,13 +19,12 @@ export default {
77
19
  },
78
20
  };
79
21
  const DefaultTemplate = args => {
80
- const icon = args.icon === 'none' ? '' : args.icon;
81
22
  const wrapper = document.createElement('div');
82
23
  wrapper.innerHTML = `<ifx-breadcrumb>
83
24
  <ifx-breadcrumb-item>
84
- <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? icon : ''}">Breadcrumb 1</ifx-breadcrumb-item-label>
25
+ <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? 'c-info-16' : ''}">Breadcrumb 1</ifx-breadcrumb-item-label>
85
26
  <ifx-dropdown-menu>
86
- <ifx-dropdown-item url=${args.url}>Google</ifx-dropdown-item>
27
+ <ifx-dropdown-item url="http://google.com">Google</ifx-dropdown-item>
87
28
  <ifx-dropdown-item url="http://bing.com">Bing</ifx-dropdown-item>
88
29
  <ifx-dropdown-item url="http://yahoo.com">Yahoo</ifx-dropdown-item>
89
30
  <ifx-dropdown-item url="http://naver.com">Naver</ifx-dropdown-item>
@@ -91,9 +32,9 @@ const DefaultTemplate = args => {
91
32
  </ifx-breadcrumb-item>
92
33
 
93
34
  <ifx-breadcrumb-item>
94
- <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? icon : ''}">Breadcrumb 2</ifx-breadcrumb-item-label>
35
+ <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? 'c-info-16' : ''}">Breadcrumb 2</ifx-breadcrumb-item-label>
95
36
  <ifx-dropdown-menu>
96
- <ifx-dropdown-item url=${args.url}>Google</ifx-dropdown-item>
37
+ <ifx-dropdown-item url="http://google.com">Google</ifx-dropdown-item>
97
38
  <ifx-dropdown-item url="http://bing.com">Bing</ifx-dropdown-item>
98
39
  <ifx-dropdown-item url="http://yahoo.com">Yahoo</ifx-dropdown-item>
99
40
  <ifx-dropdown-item url="http://naver.com">Naver</ifx-dropdown-item>
@@ -101,7 +42,7 @@ const DefaultTemplate = args => {
101
42
  </ifx-breadcrumb-item>
102
43
 
103
44
  <ifx-breadcrumb-item>
104
- <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? icon : ''}" url="http://google.com">Breadcrumb 3</ifx-breadcrumb-item-label>
45
+ <ifx-breadcrumb-item-label slot="label" icon="${args.icon ? 'c-info-16' : ''}" url="http://google.com">Breadcrumb 3</ifx-breadcrumb-item-label>
105
46
  </ifx-breadcrumb-item>
106
47
  </ifx-breadcrumb>`;
107
48
  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;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,GAAG,EAAE,mBAAmB;QACxB,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,CAA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e,GAAG,IAAI,CAAC,EAAE;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,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;;+BAE1C,IAAI,CAAC,GAAG;;;;;;;;oDAQa,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;;6BAE5C,IAAI,CAAC,GAAG;;;;;;;;oDAQe,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 url: '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 url: {\n control: { type: 'text' },\n description: 'Set the url of the link.',\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 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 : ''}\">Breadcrumb 1</ifx-breadcrumb-item-label>\n <ifx-dropdown-menu>\n <ifx-dropdown-item url=${args.url}>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 ? icon : ''}\">Breadcrumb 2</ifx-breadcrumb-item-label>\n <ifx-dropdown-menu>\n <ifx-dropdown-item url=${args.url}>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 ? icon : ''}\" 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;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"]}
@@ -10,138 +10,43 @@ export default {
10
10
  size: 'm',
11
11
  fullWidth: false,
12
12
  disabled: false,
13
- icon: '',
14
13
  iconPosition: 'left',
15
14
  href: false,
16
15
  url: '',
17
16
  target: '_blank',
18
17
  },
19
18
  argTypes: {
20
- label: {
21
- name: 'Label of Button',
22
- description: 'Sets the text displayed on the button.',
23
- table: {
24
- category: 'story controls',
25
- type: {
26
- summary: '<ifx-button> `label` </ifx-button>'
27
- }
28
- }
29
- },
30
19
  icon: {
31
- description: 'The icon to be displayed.',
32
- control: 'select',
33
20
  options: Object.values(icons).map(i => i['name']),
34
- table: {
35
- category: 'ifx-button props',
36
- type: {
37
- summary: 'string'
38
- }
39
- }
21
+ control: { type: 'select' },
40
22
  },
41
23
  variant: {
42
- description: 'Sets the style variant of the button.',
43
- control: 'radio',
44
24
  options: ['primary', 'secondary', 'tertiary'],
45
- table: {
46
- category: 'ifx-button props',
47
- defaultValue: {
48
- summary: 'primary'
49
- }
50
- }
25
+ control: { type: 'radio' },
51
26
  },
52
27
  theme: {
53
- description: 'Specifies the theme style of the button.',
54
- control: 'radio',
55
28
  options: ['default', 'danger', 'inverse'],
56
- table: {
57
- category: 'ifx-button props',
58
- defaultValue: {
59
- summary: 'default'
60
- }
61
- }
29
+ control: { type: 'radio' },
62
30
  },
63
31
  type: {
64
- description: 'Sets the type attribute of the button.',
65
- control: 'radio',
66
32
  options: ['button', 'submit', 'reset'],
67
- table: {
68
- category: 'ifx-button props',
69
- defaultValue: {
70
- summary: 'button'
71
- }
72
- }
33
+ control: { type: 'radio' },
73
34
  },
74
35
  size: {
75
- description: 'Sets the size of the button. Options: xs (32px) s (36px), m (40px), l (48px)',
76
- control: 'radio',
36
+ description: 'Size options: xs (32px) s (36px), m (40px), l (48px) - default: m',
77
37
  options: ['xs', 's', 'm', 'l'],
78
- table: {
79
- category: 'ifx-button props',
80
- defaultValue: {
81
- summary: 'm'
82
- }
83
- }
38
+ control: { type: 'radio' },
84
39
  },
85
40
  fullWidth: {
86
- description: 'When set to **true**, expands the button to take the full width of its container.',
87
- control: 'boolean',
88
- table: {
89
- category: 'ifx-button props',
90
- defaultValue: {
91
- summary: 'false'
92
- }
93
- }
94
- },
95
- disabled: {
96
- description: 'Disables the button when set to true.',
97
- control: 'boolean',
98
- table: {
99
- category: 'ifx-button props',
100
- defaultValue: {
101
- summary: 'false'
102
- }
103
- }
41
+ control: { type: 'boolean' },
104
42
  },
105
43
  iconPosition: {
106
- description: 'Determines the position of an icon within the button if an icon is used.',
107
- control: 'radio',
108
44
  options: ['left', 'right'],
109
- table: {
110
- category: 'ifx-button props',
111
- defaultValue: {
112
- summary: 'left'
113
- }
114
- }
115
- },
116
- href: {
117
- description: 'When set to **true**, treats the button as a link by setting a URL.',
118
- control: 'boolean',
119
- table: {
120
- category: 'ifx-button props',
121
- defaultValue: {
122
- summary: 'false'
123
- }
124
- }
125
- },
126
- url: {
127
- description: 'Specifies the destination URL for the button when it acts as a link.',
128
- table: {
129
- category: 'ifx-button props',
130
- type: {
131
- summary: 'string'
132
- }
133
- }
45
+ control: { type: 'radio' },
134
46
  },
135
47
  target: {
136
- description: 'Determines where to open the linked document when the button is clicked.',
137
- control: 'radio',
138
48
  options: ['_blank', '_self', '_parent'],
139
- table: {
140
- category: 'ifx-button props',
141
- defaultValue: {
142
- summary: '_blank'
143
- }
144
- }
49
+ control: { type: 'radio' },
145
50
  },
146
51
  },
147
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../src/components/button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AI,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 button.',\n table: {\n category: 'story controls',\n type: {\n summary: '<ifx-button> `label` </ifx-button>'\n }\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"]}
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,K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AAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,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"]}
@@ -2,10 +2,10 @@ export default {
2
2
  title: 'Components/Card',
3
3
  tags: ['autodocs'],
4
4
  args: {
5
+ direction: 'vertical',
5
6
  overline: 'Overline',
6
7
  headline: 'Headline',
7
8
  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',
@@ -13,105 +13,23 @@ export default {
13
13
  src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',
14
14
  },
15
15
  argTypes: {
16
- overline: {
17
- name: 'Overline',
18
- description: 'Sets the overline text of the card.',
19
- type: { name: 'string' },
20
- table: {
21
- category: 'story controls',
22
- },
23
- },
24
- headline: {
25
- name: 'Headline',
26
- description: 'Sets the headline text of the card.',
27
- type: { name: 'string' },
28
- table: {
29
- category: 'story controls',
30
- },
31
- },
32
- description: {
33
- name: 'Description',
34
- description: 'Sets the description text of the card.',
35
- type: { name: 'string' },
36
- table: {
37
- category: 'story controls',
38
- },
39
- },
40
16
  button: {
41
- name: 'Button',
42
17
  options: ['button', 'link', 'none'],
43
- description: 'Sets the button type of the card.',
44
18
  control: { type: 'radio' },
45
- table: {
46
- category: 'story controls',
47
- },
48
19
  },
49
20
  direction: {
50
- description: 'Sets the direction of the card layout.',
51
- table: {
52
- category: 'ifx-card props',
53
- defaultValue: {
54
- summary: 'vertical',
55
- },
56
- type: {
57
- summary: 'horizontal | vertical',
58
- disable: true,
59
- },
60
- },
61
21
  options: ['horizontal', 'vertical'],
62
22
  control: { type: 'radio' },
63
23
  },
64
24
  position: {
65
- description: 'Sets the position of the image in the card.',
66
- table: {
67
- category: 'ifx-card-image props',
68
- },
69
25
  options: ['left', 'right'],
70
26
  control: { type: 'radio' },
71
27
  if: { arg: 'direction', eq: 'horizontal' },
72
28
  },
73
- href: {
74
- description: 'Sets the hyperlink reference.',
75
- type: { name: 'string' },
76
- table: {
77
- category: 'ifx-card props',
78
- },
79
- },
80
29
  target: {
81
- description: 'Sets the target of the hyperlink reference',
82
- table: {
83
- category: 'ifx-card props',
84
- defaultValue: {
85
- summary: '_self',
86
- },
87
- },
88
30
  options: ['_blank', '_self', '_parent'],
89
31
  control: { type: 'radio' },
90
32
  },
91
- isHovered: {
92
- description: 'Changes the color of the headline when hovered.',
93
- type: 'boolean',
94
- table: {
95
- defaultValue: {
96
- summary: false
97
- },
98
- category: 'ifx-card-headline props',
99
- },
100
- },
101
- src: {
102
- description: 'Sets the image source.',
103
- type: { name: 'string' },
104
- table: {
105
- category: 'ifx-card-image props',
106
- },
107
- },
108
- alt: {
109
- description: 'Sets the alternative text for the image.',
110
- type: { name: 'string' },
111
- table: {
112
- category: 'ifx-card-image props',
113
- },
114
- },
115
33
  },
116
34
  };
117
35
  const DefaultTemplate = args => `<ifx-card direction="${args.direction}" href="${args.href}" target="${args.target}">
@@ -152,11 +70,10 @@ const DefaultTemplate = args => `<ifx-card direction="${args.direction}" href="$
152
70
  </ifx-card>`;
153
71
  export const Default = DefaultTemplate.bind({});
154
72
  Default.args = {
155
- alt: 'Coffee',
156
73
  src: 'https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg',
157
74
  };
158
75
  const HorizontalTemplate = args => `<ifx-card direction="${args.direction}" href="${args.href}" target="${args.target}">
159
- <ifx-card-image position="${args.position}" src="${args.src}" alt="${args.alt}" slot="img"></ifx-card-image>
76
+ <ifx-card-image position="${args.position}" src="${args.src}" alt="" slot="img"></ifx-card-image>
160
77
  ${args.overline
161
78
  ? `<ifx-card-overline>
162
79
  ${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,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;KACrF;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,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I,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 },\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\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 isHovered: {\n description: 'Changes the color of the headline when hovered.',\n type: 'boolean',\n table: {\n defaultValue: {\n summary: false\n },\n category: 'ifx-card-headline props',\n },\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}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" 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"]}
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,EAA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AAC,QAAQ;IACX,CAAC,CAAC;UACA,IAAI,CAAC,QAAQ;6BACM;IACrB,CAAC,CAAC,EACN;QAEI,IAAI,CAAC,QAAQ;IACX,CAAC,CAAC;YACA,IAAI,CAAC,QAAQ;+BACM;IACrB,CAAC,CAAC,EACN;UAEI,IAAI,CAAC,WAAW;IACd,CAAC,CAAC;cACA,IAAI,CAAC,WAAW;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"]}
@@ -3,102 +3,41 @@ export default {
3
3
  title: 'Components/Checkbox',
4
4
  tags: ['autodocs'],
5
5
  args: {
6
- label: 'Text',
7
6
  error: false,
8
- disabled: false,
9
7
  checked: false,
8
+ label: 'Text',
10
9
  size: 's',
11
10
  indeterminate: false,
12
- name: 'checkbox'
11
+ name: 'checkbox',
12
+ value: 'checkbox',
13
13
  },
14
14
  argTypes: {
15
- label: {
16
- name: 'Label of Checkbox',
17
- description: 'Sets the label of *<ifx-checkbox>*.',
18
- table: {
19
- category: 'story controls',
20
- type: {
21
- summary: '<ifx-checkbox> `label` </ifx-checkbox>'
22
- }
23
- }
24
- },
25
- error: {
26
- description: 'Toggles the error state for the checkbox.',
27
- control: 'boolean',
28
- table: {
29
- category: 'ifx-checkbox props',
30
- defaultValue: {
31
- summary: false,
32
- }
33
- }
34
- },
35
- disabled: {
36
- description: 'Disables the checkbox when set to true.',
37
- control: 'boolean',
38
- table: {
39
- category: 'ifx-checkbox props',
40
- defaultValue: {
41
- summary: false,
42
- }
43
- }
44
- },
45
- checked: {
46
- description: 'Controls whether the checkbox is checked.',
47
- control: 'boolean',
48
- table: {
49
- category: 'ifx-checkbox props',
50
- defaultValue: {
51
- summary: false,
52
- }
53
- }
54
- },
55
- indeterminate: {
56
- description: 'Activates the indeterminate state for the checkbox when set to true.',
57
- control: 'boolean',
58
- table: {
59
- category: 'ifx-checkbox props',
60
- defaultValue: {
61
- summary: false,
62
- }
63
- }
64
- },
65
15
  size: {
66
- description: 'Sets the size of the checkbox. Options: s (21px) and m (25px).',
67
- control: 'radio',
16
+ description: 'Size options: s (21px) and m (25px) - default: m',
68
17
  options: ['s', 'm'],
69
- table: {
70
- category: 'ifx-checkbox props',
71
- defaultValue: {
72
- summary: 's'
73
- },
74
- type: {
75
- summary: 's | m'
76
- }
77
- }
78
- },
79
- name: {
80
- description: 'Name of the element, that is used as reference when a form is submitted.',
81
- table: {
82
- category: 'ifx-checkbox props'
83
- }
18
+ control: { type: 'radio' },
84
19
  },
85
20
  ifxChange: {
86
21
  action: 'ifxChange',
87
22
  description: 'Custom event emitted when accordion-item is closed',
88
23
  table: {
89
- category: 'custom events',
90
24
  type: {
91
25
  summary: 'Framework integration',
92
26
  detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
93
27
  },
94
28
  },
95
29
  },
30
+ name: {
31
+ description: 'Name of the element, that is used as reference when a form is submitted.'
32
+ },
33
+ value: {
34
+ description: 'The value that gets submitted, when the checkbox is seleted'
35
+ }
96
36
  },
97
37
  };
98
- const Template = ({ error, disabled, checked, indeterminate, size, label, name }) => {
38
+ const DefaultTemplate = ({ error, checked, indeterminate, size, label, name }) => {
99
39
  const checkbox = document.createElement('ifx-checkbox');
100
40
  checkbox.setAttribute('error', error);
101
- checkbox.setAttribute('disabled', disabled);
102
41
  checkbox.setAttribute('checked', checked);
103
42
  checkbox.setAttribute('size', size);
104
43
  checkbox.setAttribute('indeterminate', indeterminate);
@@ -109,5 +48,5 @@ const Template = ({ error, disabled, checked, indeterminate, size, label, name }
109
48
  `;
110
49
  return checkbox;
111
50
  };
112
- export const Default = Template.bind({});
51
+ export const Default = DefaultTemplate.bind({});
113
52
  //# sourceMappingURL=checkbox.stories.js.map