@infineon/infineon-design-system-stencil 31.0.0--canary.1697.223df0ff1431a5398fd1261ed013c9dd2a89e7a0.0 → 31.0.0--canary.1640.e80c846ce332e4ddd95d97b8ad01c8da2d639e74.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 (630) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +8 -8
  2. package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/ifx-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
  6. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +2 -2
  7. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
  9. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +4 -4
  10. package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ifx-button.cjs.entry.js +1 -1
  12. package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
  13. package/dist/cjs/ifx-card-image.cjs.entry.js +1 -1
  14. package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
  15. package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
  16. package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
  17. package/dist/cjs/ifx-card.cjs.entry.js +1 -1
  18. package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
  19. package/dist/cjs/ifx-chip_3.cjs.entry.js +26 -28
  20. package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ifx-content-switcher.cjs.entry.js +1 -1
  23. package/dist/cjs/ifx-date-picker.cjs.entry.js +1 -1
  24. package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
  25. package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
  26. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +1 -1
  28. package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +1 -1
  29. package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +1 -1
  30. package/dist/cjs/ifx-dropdown.cjs.entry.js +1 -1
  31. package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
  32. package/dist/cjs/ifx-filter-accordion.cjs.entry.js +1 -1
  33. package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
  34. package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
  35. package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
  36. package/dist/cjs/ifx-footer-column.cjs.entry.js +1 -1
  37. package/dist/cjs/ifx-footer.cjs.entry.js +1 -1
  38. package/dist/cjs/ifx-icon-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
  40. package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
  41. package/dist/cjs/ifx-link.cjs.entry.js +1 -1
  42. package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
  43. package/dist/cjs/ifx-list.cjs.entry.js +1 -1
  44. package/dist/cjs/ifx-modal.cjs.entry.js +9 -9
  45. package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ifx-multiselect_2.cjs.entry.js +5 -5
  47. package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ifx-navbar-item.cjs.entry.js +1 -1
  49. package/dist/cjs/ifx-navbar-profile.cjs.entry.js +1 -1
  50. package/dist/cjs/ifx-navbar.cjs.entry.js +4 -4
  51. package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ifx-notification.cjs.entry.js +1 -1
  53. package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
  54. package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
  55. package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
  56. package/dist/cjs/ifx-radio-button.cjs.entry.js +1 -1
  57. package/dist/cjs/ifx-search-bar.cjs.entry.js +6 -6
  58. package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
  60. package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
  61. package/dist/cjs/ifx-segmented-control.cjs.entry.js +1 -1
  62. package/dist/cjs/ifx-select.cjs.entry.js +1 -1
  63. package/dist/cjs/ifx-set-filter.cjs.entry.js +1 -1
  64. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +10 -11
  65. package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
  67. package/dist/cjs/ifx-sidebar.cjs.entry.js +1 -1
  68. package/dist/cjs/ifx-slider.cjs.entry.js +1 -1
  69. package/dist/cjs/ifx-spinner.cjs.entry.js +1 -1
  70. package/dist/cjs/ifx-status.cjs.entry.js +1 -1
  71. package/dist/cjs/ifx-step.cjs.entry.js +1 -1
  72. package/dist/cjs/ifx-stepper.cjs.entry.js +1 -1
  73. package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
  74. package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
  75. package/dist/cjs/ifx-table.cjs.entry.js +23 -21
  76. package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ifx-tabs.cjs.entry.js +7 -7
  78. package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
  80. package/dist/cjs/ifx-textarea.cjs.entry.js +1 -1
  81. package/dist/cjs/ifx-tooltip.cjs.entry.js +1 -1
  82. package/dist/cjs/{index-68ed35ac.js → index-051c2b85.js} +12 -6
  83. package/dist/cjs/index-051c2b85.js.map +1 -0
  84. package/dist/cjs/infineon-design-system-stencil.cjs.js +3 -3
  85. package/dist/cjs/infineon-design-system-stencil.cjs.js.map +1 -1
  86. package/dist/cjs/loader.cjs.js +2 -2
  87. package/dist/collection/collection-manifest.json +1 -1
  88. package/dist/collection/components/accordion/accordion.js +2 -2
  89. package/dist/collection/components/accordion/accordion.js.map +1 -1
  90. package/dist/collection/components/accordion/accordion.stories.js +81 -7
  91. package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
  92. package/dist/collection/components/accordion/accordionItem.js +10 -10
  93. package/dist/collection/components/accordion/accordionItem.js.map +1 -1
  94. package/dist/collection/components/alert/alert.stories.js +45 -12
  95. package/dist/collection/components/alert/alert.stories.js.map +1 -1
  96. package/dist/collection/components/badge/badge.stories.js +28 -7
  97. package/dist/collection/components/badge/badge.stories.js.map +1 -1
  98. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +3 -3
  99. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js.map +1 -1
  100. package/dist/collection/components/breadcrumb/breadcrumb.js +3 -3
  101. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
  102. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +87 -13
  103. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
  104. package/dist/collection/components/button/button.stories.js +101 -9
  105. package/dist/collection/components/button/button.stories.js.map +1 -1
  106. package/dist/collection/components/card/card.stories.js +85 -4
  107. package/dist/collection/components/card/card.stories.js.map +1 -1
  108. package/dist/collection/components/checkbox/checkbox.stories.js +72 -14
  109. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
  110. package/dist/collection/components/chip/chip-item/chip-item.js +4 -4
  111. package/dist/collection/components/chip/chip-item/chip-item.js.map +1 -1
  112. package/dist/collection/components/chip/chip.js +15 -15
  113. package/dist/collection/components/chip/chip.js.map +1 -1
  114. package/dist/collection/components/chip/chip.stories.js +21 -26
  115. package/dist/collection/components/chip/chip.stories.js.map +1 -1
  116. package/dist/collection/components/chip/interfaces.js.map +1 -1
  117. package/dist/collection/components/content-switcher/content-switcher.stories.js +65 -3
  118. package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
  119. package/dist/collection/components/date-picker/date-picker.stories.js +97 -7
  120. package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
  121. package/dist/collection/components/dropdown/dropdown.stories.js +222 -64
  122. package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
  123. package/dist/collection/components/footer/footer.stories.js +31 -1
  124. package/dist/collection/components/footer/footer.stories.js.map +1 -1
  125. package/dist/collection/components/icon/infineonIconStencil.stories.js +7 -2
  126. package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
  127. package/dist/collection/components/icon-button/icon-button.stories.js +61 -5
  128. package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
  129. package/dist/collection/components/link/link.stories.js +53 -4
  130. package/dist/collection/components/link/link.stories.js.map +1 -1
  131. package/dist/collection/components/modal/modal.js +10 -10
  132. package/dist/collection/components/modal/modal.js.map +1 -1
  133. package/dist/collection/components/modal/modal.stories.js +96 -19
  134. package/dist/collection/components/modal/modal.stories.js.map +1 -1
  135. package/dist/collection/components/navigation/navbar/navbar.js +4 -4
  136. package/dist/collection/components/navigation/navbar/navbar.js.map +1 -1
  137. package/dist/collection/components/navigation/navbar/navbar.stories.js +176 -12
  138. package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
  139. package/dist/collection/components/navigation/sidebar/sidebar-item.js +11 -32
  140. package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
  141. package/dist/collection/components/navigation/sidebar/sidebar.stories.js +184 -19
  142. package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
  143. package/dist/collection/components/notification/notification.stories.js +55 -8
  144. package/dist/collection/components/notification/notification.stories.js.map +1 -1
  145. package/dist/collection/components/number-indicator/number-indicator.stories.js +19 -0
  146. package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
  147. package/dist/collection/components/pagination/pagination.js +8 -57
  148. package/dist/collection/components/pagination/pagination.js.map +1 -1
  149. package/dist/collection/components/pagination/pagination.stories.js +19 -16
  150. package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
  151. package/dist/collection/components/progress-bar/progress-bar.stories.js +31 -8
  152. package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
  153. package/dist/collection/components/radio-button/radio-button.stories.js +66 -13
  154. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
  155. package/dist/collection/components/search-bar/search-bar.js +6 -6
  156. package/dist/collection/components/search-bar/search-bar.js.map +1 -1
  157. package/dist/collection/components/search-bar/search-bar.stories.js +58 -9
  158. package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
  159. package/dist/collection/components/search-field/search-field.stories.js +54 -8
  160. package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
  161. package/dist/collection/components/segmented-control/segmented-control.stories.js +1 -10
  162. package/dist/collection/components/segmented-control/segmented-control.stories.js.map +1 -1
  163. package/dist/collection/components/select/multi-select/multiselect.js +5 -5
  164. package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
  165. package/dist/collection/components/select/multi-select/multiselect.stories.js +131 -5
  166. package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
  167. package/dist/collection/components/select/single-select/select.stories.js +83 -26
  168. package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
  169. package/dist/collection/components/slider/slider.stories.js +97 -13
  170. package/dist/collection/components/slider/slider.stories.js.map +1 -1
  171. package/dist/collection/components/spinner/spinner.stories.js +34 -2
  172. package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
  173. package/dist/collection/components/status/status.stories.js +25 -1
  174. package/dist/collection/components/status/status.stories.js.map +1 -1
  175. package/dist/collection/components/stepper/stepper.stories.js +54 -25
  176. package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
  177. package/dist/collection/components/switch/switch.stories.js +51 -4
  178. package/dist/collection/components/switch/switch.stories.js.map +1 -1
  179. package/dist/collection/components/table-advanced-version/table.js +23 -21
  180. package/dist/collection/components/table-advanced-version/table.js.map +1 -1
  181. package/dist/collection/components/table-advanced-version/table.stories.js +124 -39
  182. package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
  183. package/dist/collection/components/table-basic-version/table.stories.js +31 -4
  184. package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
  185. package/dist/collection/components/tabs/tabs.js +7 -7
  186. package/dist/collection/components/tabs/tabs.js.map +1 -1
  187. package/dist/collection/components/tabs/tabs.stories.js +104 -29
  188. package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
  189. package/dist/collection/components/tag/tag.stories.js +18 -0
  190. package/dist/collection/components/tag/tag.stories.js.map +1 -1
  191. package/dist/collection/components/text-field/text-field.stories.js +116 -13
  192. package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
  193. package/dist/collection/components/textarea/textarea.stories.js +1 -3
  194. package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
  195. package/dist/collection/components/tooltip/tooltip.stories.js +48 -4
  196. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
  197. package/dist/components/ifx-accordion-item.js +1 -1
  198. package/dist/components/ifx-accordion.js +1 -1
  199. package/dist/components/ifx-alert.js +2 -2
  200. package/dist/components/ifx-badge.js +1 -1
  201. package/dist/components/ifx-basic-table.js +1 -1
  202. package/dist/components/ifx-breadcrumb-item-label.js +4 -4
  203. package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
  204. package/dist/components/ifx-breadcrumb-item.js +1 -1
  205. package/dist/components/ifx-breadcrumb.js +4 -4
  206. package/dist/components/ifx-breadcrumb.js.map +1 -1
  207. package/dist/components/ifx-button.js +1 -1
  208. package/dist/components/ifx-card-headline.js +1 -1
  209. package/dist/components/ifx-card-image.js +1 -1
  210. package/dist/components/ifx-card-links.js +1 -1
  211. package/dist/components/ifx-card-overline.js +1 -1
  212. package/dist/components/ifx-card-text.js +1 -1
  213. package/dist/components/ifx-card.js +1 -1
  214. package/dist/components/ifx-checkbox.js +1 -1
  215. package/dist/components/ifx-chip-item.js +1 -1
  216. package/dist/components/ifx-chip.js +1 -1
  217. package/dist/components/ifx-content-switcher-item.js +1 -1
  218. package/dist/components/ifx-content-switcher.js +1 -1
  219. package/dist/components/ifx-date-picker.js +2 -2
  220. package/dist/components/ifx-dropdown-header.js +1 -1
  221. package/dist/components/ifx-dropdown-item.js +2 -2
  222. package/dist/components/ifx-dropdown-menu.js +1 -1
  223. package/dist/components/ifx-dropdown-separator.js +1 -1
  224. package/dist/components/ifx-dropdown-trigger-button.js +3 -3
  225. package/dist/components/ifx-dropdown-trigger.js +1 -1
  226. package/dist/components/ifx-dropdown.js +1 -1
  227. package/dist/components/ifx-faq.js +4 -4
  228. package/dist/components/ifx-filter-accordion.js +3 -3
  229. package/dist/components/ifx-filter-bar.js +3 -3
  230. package/dist/components/ifx-filter-search.js +3 -3
  231. package/dist/components/ifx-filter-type-group.js +1 -1
  232. package/dist/components/ifx-footer-column.js +1 -1
  233. package/dist/components/ifx-footer.js +1 -1
  234. package/dist/components/ifx-icon-button.js +1 -1
  235. package/dist/components/ifx-icon.js +1 -1
  236. package/dist/components/ifx-icons-preview.js +4 -4
  237. package/dist/components/ifx-link.js +1 -1
  238. package/dist/components/ifx-list-entry.js +4 -4
  239. package/dist/components/ifx-list.js +3 -3
  240. package/dist/components/ifx-modal.js +11 -11
  241. package/dist/components/ifx-modal.js.map +1 -1
  242. package/dist/components/ifx-multiselect.js +1 -1
  243. package/dist/components/ifx-navbar-item.js +2 -2
  244. package/dist/components/ifx-navbar-profile.js +1 -1
  245. package/dist/components/ifx-navbar.js +6 -6
  246. package/dist/components/ifx-navbar.js.map +1 -1
  247. package/dist/components/ifx-notification.js +1 -1
  248. package/dist/components/ifx-number-indicator.js +1 -1
  249. package/dist/components/ifx-overview-table.js +4 -4
  250. package/dist/components/ifx-pagination.js +1 -1
  251. package/dist/components/ifx-progress-bar.js +1 -1
  252. package/dist/components/ifx-radio-button.js +1 -1
  253. package/dist/components/ifx-search-bar.js +8 -8
  254. package/dist/components/ifx-search-bar.js.map +1 -1
  255. package/dist/components/ifx-search-field.js +1 -1
  256. package/dist/components/ifx-segment.js +2 -2
  257. package/dist/components/ifx-segmented-control.js +2 -2
  258. package/dist/components/ifx-select.js +1 -1
  259. package/dist/components/ifx-set-filter.js +7 -7
  260. package/dist/components/ifx-sidebar-item.js +14 -16
  261. package/dist/components/ifx-sidebar-item.js.map +1 -1
  262. package/dist/components/ifx-sidebar-title.js +1 -1
  263. package/dist/components/ifx-sidebar.js +1 -1
  264. package/dist/components/ifx-slider.js +2 -2
  265. package/dist/components/ifx-spinner.js +1 -1
  266. package/dist/components/ifx-status.js +1 -1
  267. package/dist/components/ifx-step.js +2 -2
  268. package/dist/components/ifx-stepper.js +1 -1
  269. package/dist/components/ifx-switch.js +1 -1
  270. package/dist/components/ifx-tab.js +1 -1
  271. package/dist/components/ifx-table.js +33 -31
  272. package/dist/components/ifx-table.js.map +1 -1
  273. package/dist/components/ifx-tabs.js +8 -8
  274. package/dist/components/ifx-tabs.js.map +1 -1
  275. package/dist/components/ifx-tag.js +2 -2
  276. package/dist/components/ifx-text-field.js +1 -1
  277. package/dist/components/ifx-textarea.js +1 -1
  278. package/dist/components/ifx-tooltip.js +2 -2
  279. package/dist/components/index.js +1 -1
  280. package/dist/components/{p-9c024a54.js → p-0e357e6f.js} +3 -3
  281. package/dist/components/{p-9c024a54.js.map → p-0e357e6f.js.map} +1 -1
  282. package/dist/components/{p-f4d50678.js → p-1704ea58.js} +3 -3
  283. package/dist/components/{p-f4d50678.js.map → p-1704ea58.js.map} +1 -1
  284. package/dist/components/{p-6fd6d1a9.js → p-23308a28.js} +3 -3
  285. package/dist/components/{p-6fd6d1a9.js.map → p-23308a28.js.map} +1 -1
  286. package/dist/components/{p-ec9d64bf.js → p-2e231e98.js} +2 -2
  287. package/dist/components/{p-ec9d64bf.js.map → p-2e231e98.js.map} +1 -1
  288. package/dist/components/{p-1bb86196.js → p-3f813ba7.js} +3 -3
  289. package/dist/components/{p-1bb86196.js.map → p-3f813ba7.js.map} +1 -1
  290. package/dist/components/{p-3ee20ed5.js → p-434f667f.js} +2 -5
  291. package/dist/components/p-434f667f.js.map +1 -0
  292. package/dist/components/{p-232d5fcd.js → p-468371aa.js} +4 -4
  293. package/dist/components/{p-232d5fcd.js.map → p-468371aa.js.map} +1 -1
  294. package/dist/components/{p-e8836259.js → p-4b44b9bb.js} +2 -2
  295. package/dist/components/{p-e8836259.js.map → p-4b44b9bb.js.map} +1 -1
  296. package/dist/components/{p-d3904b2f.js → p-55f0c583.js} +9 -9
  297. package/dist/components/p-55f0c583.js.map +1 -0
  298. package/dist/components/{p-73a1df17.js → p-5e9d239f.js} +2 -2
  299. package/dist/components/{p-73a1df17.js.map → p-5e9d239f.js.map} +1 -1
  300. package/dist/components/{p-ff48962a.js → p-6d09225b.js} +10 -10
  301. package/dist/components/{p-ff48962a.js.map → p-6d09225b.js.map} +1 -1
  302. package/dist/components/{p-a0ee8035.js → p-810b4f96.js} +2 -2
  303. package/dist/components/{p-a0ee8035.js.map → p-810b4f96.js.map} +1 -1
  304. package/dist/components/{p-654ff7d8.js → p-8b04d988.js} +4 -4
  305. package/dist/components/{p-654ff7d8.js.map → p-8b04d988.js.map} +1 -1
  306. package/dist/components/{p-e74c8dfd.js → p-8e6edff2.js} +3 -3
  307. package/dist/components/{p-e74c8dfd.js.map → p-8e6edff2.js.map} +1 -1
  308. package/dist/components/{p-0fce434b.js → p-9c4bd9ce.js} +18 -18
  309. package/dist/components/p-9c4bd9ce.js.map +1 -0
  310. package/dist/components/{p-a7e5035e.js → p-c2dad511.js} +13 -16
  311. package/dist/components/p-c2dad511.js.map +1 -0
  312. package/dist/components/{p-5bc6d67d.js → p-c344fb60.js} +2 -2
  313. package/dist/components/{p-5bc6d67d.js.map → p-c344fb60.js.map} +1 -1
  314. package/dist/components/{p-e57d6c00.js → p-c5056a89.js} +8 -8
  315. package/dist/components/p-c5056a89.js.map +1 -0
  316. package/dist/components/{p-828bbb25.js → p-d2bece93.js} +2 -2
  317. package/dist/components/{p-828bbb25.js.map → p-d2bece93.js.map} +1 -1
  318. package/dist/esm/ifx-accordion_2.entry.js +8 -8
  319. package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
  320. package/dist/esm/ifx-alert.entry.js +1 -1
  321. package/dist/esm/ifx-badge.entry.js +1 -1
  322. package/dist/esm/ifx-basic-table.entry.js +1 -1
  323. package/dist/esm/ifx-breadcrumb-item-label.entry.js +2 -2
  324. package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
  325. package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
  326. package/dist/esm/ifx-breadcrumb.entry.js +4 -4
  327. package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
  328. package/dist/esm/ifx-button.entry.js +1 -1
  329. package/dist/esm/ifx-card-headline.entry.js +1 -1
  330. package/dist/esm/ifx-card-image.entry.js +1 -1
  331. package/dist/esm/ifx-card-links.entry.js +1 -1
  332. package/dist/esm/ifx-card-overline.entry.js +1 -1
  333. package/dist/esm/ifx-card-text.entry.js +1 -1
  334. package/dist/esm/ifx-card.entry.js +1 -1
  335. package/dist/esm/ifx-checkbox.entry.js +1 -1
  336. package/dist/esm/ifx-chip_3.entry.js +26 -28
  337. package/dist/esm/ifx-chip_3.entry.js.map +1 -1
  338. package/dist/esm/ifx-content-switcher-item.entry.js +1 -1
  339. package/dist/esm/ifx-content-switcher.entry.js +1 -1
  340. package/dist/esm/ifx-date-picker.entry.js +1 -1
  341. package/dist/esm/ifx-dropdown-header.entry.js +1 -1
  342. package/dist/esm/ifx-dropdown-item.entry.js +1 -1
  343. package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
  344. package/dist/esm/ifx-dropdown-separator.entry.js +1 -1
  345. package/dist/esm/ifx-dropdown-trigger-button.entry.js +1 -1
  346. package/dist/esm/ifx-dropdown-trigger.entry.js +1 -1
  347. package/dist/esm/ifx-dropdown.entry.js +1 -1
  348. package/dist/esm/ifx-faq.entry.js +1 -1
  349. package/dist/esm/ifx-filter-accordion.entry.js +1 -1
  350. package/dist/esm/ifx-filter-bar.entry.js +1 -1
  351. package/dist/esm/ifx-filter-search.entry.js +1 -1
  352. package/dist/esm/ifx-filter-type-group.entry.js +1 -1
  353. package/dist/esm/ifx-footer-column.entry.js +1 -1
  354. package/dist/esm/ifx-footer.entry.js +1 -1
  355. package/dist/esm/ifx-icon-button.entry.js +1 -1
  356. package/dist/esm/ifx-icon.entry.js +1 -1
  357. package/dist/esm/ifx-icons-preview.entry.js +1 -1
  358. package/dist/esm/ifx-link.entry.js +1 -1
  359. package/dist/esm/ifx-list-entry.entry.js +1 -1
  360. package/dist/esm/ifx-list.entry.js +1 -1
  361. package/dist/esm/ifx-modal.entry.js +9 -9
  362. package/dist/esm/ifx-modal.entry.js.map +1 -1
  363. package/dist/esm/ifx-multiselect_2.entry.js +5 -5
  364. package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
  365. package/dist/esm/ifx-navbar-item.entry.js +1 -1
  366. package/dist/esm/ifx-navbar-profile.entry.js +1 -1
  367. package/dist/esm/ifx-navbar.entry.js +4 -4
  368. package/dist/esm/ifx-navbar.entry.js.map +1 -1
  369. package/dist/esm/ifx-notification.entry.js +1 -1
  370. package/dist/esm/ifx-number-indicator.entry.js +1 -1
  371. package/dist/esm/ifx-overview-table.entry.js +1 -1
  372. package/dist/esm/ifx-progress-bar.entry.js +1 -1
  373. package/dist/esm/ifx-radio-button.entry.js +1 -1
  374. package/dist/esm/ifx-search-bar.entry.js +6 -6
  375. package/dist/esm/ifx-search-bar.entry.js.map +1 -1
  376. package/dist/esm/ifx-search-field.entry.js +1 -1
  377. package/dist/esm/ifx-segment.entry.js +1 -1
  378. package/dist/esm/ifx-segmented-control.entry.js +1 -1
  379. package/dist/esm/ifx-select.entry.js +1 -1
  380. package/dist/esm/ifx-set-filter.entry.js +1 -1
  381. package/dist/esm/ifx-sidebar-item.entry.js +10 -11
  382. package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
  383. package/dist/esm/ifx-sidebar-title.entry.js +1 -1
  384. package/dist/esm/ifx-sidebar.entry.js +1 -1
  385. package/dist/esm/ifx-slider.entry.js +1 -1
  386. package/dist/esm/ifx-spinner.entry.js +1 -1
  387. package/dist/esm/ifx-status.entry.js +1 -1
  388. package/dist/esm/ifx-step.entry.js +1 -1
  389. package/dist/esm/ifx-stepper.entry.js +1 -1
  390. package/dist/esm/ifx-switch.entry.js +1 -1
  391. package/dist/esm/ifx-tab.entry.js +1 -1
  392. package/dist/esm/ifx-table.entry.js +23 -21
  393. package/dist/esm/ifx-table.entry.js.map +1 -1
  394. package/dist/esm/ifx-tabs.entry.js +7 -7
  395. package/dist/esm/ifx-tabs.entry.js.map +1 -1
  396. package/dist/esm/ifx-tag.entry.js +1 -1
  397. package/dist/esm/ifx-textarea.entry.js +1 -1
  398. package/dist/esm/ifx-tooltip.entry.js +1 -1
  399. package/dist/esm/{index-f6e95f3d.js → index-835fed6c.js} +12 -6
  400. package/dist/esm/index-835fed6c.js.map +1 -0
  401. package/dist/esm/infineon-design-system-stencil.js +4 -4
  402. package/dist/esm/infineon-design-system-stencil.js.map +1 -1
  403. package/dist/esm/loader.js +3 -3
  404. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  405. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  406. package/dist/infineon-design-system-stencil/p-014d2c5a.js +3 -0
  407. package/dist/infineon-design-system-stencil/p-014d2c5a.js.map +1 -0
  408. package/dist/infineon-design-system-stencil/p-095f26a2.entry.js +2 -0
  409. package/dist/infineon-design-system-stencil/p-095f26a2.entry.js.map +1 -0
  410. package/dist/infineon-design-system-stencil/{p-62c705f1.entry.js → p-0b9c7ab7.entry.js} +2 -2
  411. package/dist/infineon-design-system-stencil/{p-03f5d7d6.entry.js → p-0cbb7404.entry.js} +2 -2
  412. package/dist/infineon-design-system-stencil/p-114f04b4.entry.js +2 -0
  413. package/dist/infineon-design-system-stencil/p-114f04b4.entry.js.map +1 -0
  414. package/dist/infineon-design-system-stencil/{p-258c4e35.entry.js → p-1293841a.entry.js} +2 -2
  415. package/dist/infineon-design-system-stencil/p-1293841a.entry.js.map +1 -0
  416. package/dist/infineon-design-system-stencil/{p-96e3c31e.entry.js → p-13951b60.entry.js} +2 -2
  417. package/dist/infineon-design-system-stencil/{p-4349f994.entry.js → p-16023b8a.entry.js} +2 -2
  418. package/dist/infineon-design-system-stencil/{p-0fdd8cca.entry.js → p-189d4d1f.entry.js} +2 -2
  419. package/dist/infineon-design-system-stencil/{p-12db6350.entry.js → p-1f17cbfe.entry.js} +2 -2
  420. package/dist/infineon-design-system-stencil/{p-f20951d0.entry.js → p-2ab2c5cf.entry.js} +2 -2
  421. package/dist/infineon-design-system-stencil/{p-d8cc865a.entry.js → p-2cd1bc96.entry.js} +2 -2
  422. package/dist/infineon-design-system-stencil/{p-82f9da03.entry.js → p-317304e2.entry.js} +2 -2
  423. package/dist/infineon-design-system-stencil/{p-814da9fd.entry.js → p-332a86b5.entry.js} +2 -2
  424. package/dist/infineon-design-system-stencil/{p-4bf95d5b.entry.js → p-3479b38d.entry.js} +2 -2
  425. package/dist/infineon-design-system-stencil/{p-01a1f6d0.entry.js → p-356db73e.entry.js} +2 -2
  426. package/dist/infineon-design-system-stencil/{p-3384179d.entry.js → p-35ee2105.entry.js} +2 -2
  427. package/dist/infineon-design-system-stencil/{p-c7607cbd.entry.js → p-364bcc43.entry.js} +2 -2
  428. package/dist/infineon-design-system-stencil/{p-7a0b2fd1.entry.js → p-3c0396d6.entry.js} +2 -2
  429. package/dist/infineon-design-system-stencil/{p-3af201db.entry.js → p-3cf45ded.entry.js} +2 -2
  430. package/dist/infineon-design-system-stencil/p-408c049a.entry.js +2 -0
  431. package/dist/infineon-design-system-stencil/p-408c049a.entry.js.map +1 -0
  432. package/dist/infineon-design-system-stencil/{p-4faad7d7.entry.js → p-40f16247.entry.js} +2 -2
  433. package/dist/infineon-design-system-stencil/{p-c85d7577.entry.js → p-480d7667.entry.js} +2 -2
  434. package/dist/infineon-design-system-stencil/{p-8df0dd12.entry.js → p-4c2b5642.entry.js} +2 -2
  435. package/dist/infineon-design-system-stencil/{p-1fad8ea5.entry.js → p-4d315bca.entry.js} +2 -2
  436. package/dist/infineon-design-system-stencil/{p-f42bc9c8.entry.js → p-4e07c00d.entry.js} +2 -2
  437. package/dist/infineon-design-system-stencil/{p-c2ff66ea.entry.js → p-54911d95.entry.js} +2 -2
  438. package/dist/infineon-design-system-stencil/{p-672bcd0b.entry.js → p-56e54271.entry.js} +2 -2
  439. package/dist/infineon-design-system-stencil/{p-1ad03102.entry.js → p-59d0f2d9.entry.js} +2 -2
  440. package/dist/infineon-design-system-stencil/{p-b3882dc0.entry.js → p-5e954f0b.entry.js} +2 -2
  441. package/dist/infineon-design-system-stencil/{p-0b79cb38.entry.js → p-6b61e09e.entry.js} +2 -2
  442. package/dist/infineon-design-system-stencil/{p-eeccb158.entry.js → p-6d9c1cd0.entry.js} +2 -2
  443. package/dist/infineon-design-system-stencil/{p-347a1e85.entry.js → p-7415f5bf.entry.js} +2 -2
  444. package/dist/infineon-design-system-stencil/{p-39fb5fb9.entry.js → p-75556b75.entry.js} +2 -2
  445. package/dist/infineon-design-system-stencil/{p-234d0bed.entry.js → p-8252f9c7.entry.js} +2 -2
  446. package/dist/infineon-design-system-stencil/{p-88bd6a1e.entry.js → p-8640d834.entry.js} +2 -2
  447. package/dist/infineon-design-system-stencil/{p-cb3a70ad.entry.js → p-8a349fb4.entry.js} +2 -2
  448. package/dist/infineon-design-system-stencil/{p-53e75622.entry.js → p-8cf5d054.entry.js} +2 -2
  449. package/dist/infineon-design-system-stencil/{p-934704d9.entry.js → p-8ee88c7e.entry.js} +2 -2
  450. package/dist/infineon-design-system-stencil/{p-3f5c3424.entry.js → p-8f2cc008.entry.js} +2 -2
  451. package/dist/infineon-design-system-stencil/{p-b37f692b.entry.js → p-8fc46f6c.entry.js} +2 -2
  452. package/dist/infineon-design-system-stencil/{p-e2ad853d.entry.js → p-9297efbe.entry.js} +2 -2
  453. package/dist/infineon-design-system-stencil/{p-1f004047.entry.js → p-9435833d.entry.js} +2 -2
  454. package/dist/infineon-design-system-stencil/p-9435833d.entry.js.map +1 -0
  455. package/dist/infineon-design-system-stencil/{p-1f0bc888.entry.js → p-961b12af.entry.js} +2 -2
  456. package/dist/infineon-design-system-stencil/p-97854fec.entry.js +2 -0
  457. package/dist/infineon-design-system-stencil/p-97854fec.entry.js.map +1 -0
  458. package/dist/infineon-design-system-stencil/{p-aa5f89b6.entry.js → p-a4d2a1b0.entry.js} +2 -2
  459. package/dist/infineon-design-system-stencil/{p-407c4329.entry.js → p-a722dd38.entry.js} +2 -2
  460. package/dist/infineon-design-system-stencil/{p-a2f7459e.entry.js → p-a74a35d2.entry.js} +2 -2
  461. package/dist/infineon-design-system-stencil/p-ac4825f2.entry.js +2 -0
  462. package/dist/infineon-design-system-stencil/{p-500bc0ed.entry.js.map → p-ac4825f2.entry.js.map} +1 -1
  463. package/dist/infineon-design-system-stencil/{p-6c18926e.entry.js → p-afeba5e9.entry.js} +2 -2
  464. package/dist/infineon-design-system-stencil/p-afeba5e9.entry.js.map +1 -0
  465. package/dist/infineon-design-system-stencil/p-b09a9f07.entry.js +2 -0
  466. package/dist/infineon-design-system-stencil/p-b09a9f07.entry.js.map +1 -0
  467. package/dist/infineon-design-system-stencil/{p-5a3c5cce.entry.js → p-b372fe7d.entry.js} +2 -2
  468. package/dist/infineon-design-system-stencil/p-b4ed1b8b.entry.js +2 -0
  469. package/dist/infineon-design-system-stencil/{p-fb455026.entry.js.map → p-b4ed1b8b.entry.js.map} +1 -1
  470. package/dist/infineon-design-system-stencil/p-b642a0c9.entry.js +2 -0
  471. package/dist/infineon-design-system-stencil/{p-598ec153.entry.js → p-b78de976.entry.js} +2 -2
  472. package/dist/infineon-design-system-stencil/{p-c646ffcc.entry.js → p-c0698c6a.entry.js} +2 -2
  473. package/dist/infineon-design-system-stencil/{p-2f12adbc.entry.js → p-c2ed0a00.entry.js} +2 -2
  474. package/dist/infineon-design-system-stencil/{p-21c07ef9.entry.js → p-cee407bb.entry.js} +2 -2
  475. package/dist/infineon-design-system-stencil/{p-d2630254.entry.js → p-d0b64bca.entry.js} +2 -2
  476. package/dist/infineon-design-system-stencil/{p-7cc1beed.entry.js → p-d2dbc80b.entry.js} +2 -2
  477. package/dist/infineon-design-system-stencil/p-d2dbc80b.entry.js.map +1 -0
  478. package/dist/infineon-design-system-stencil/p-d3051bbf.entry.js +2 -0
  479. package/dist/infineon-design-system-stencil/p-d3051bbf.entry.js.map +1 -0
  480. package/dist/infineon-design-system-stencil/{p-b120a552.entry.js → p-d630716a.entry.js} +2 -2
  481. package/dist/infineon-design-system-stencil/{p-d57b5e31.entry.js → p-e06dc41b.entry.js} +2 -2
  482. package/dist/infineon-design-system-stencil/{p-33f5c7b8.entry.js → p-e2d80669.entry.js} +2 -2
  483. package/dist/infineon-design-system-stencil/{p-85468723.entry.js → p-e6212e02.entry.js} +2 -2
  484. package/dist/infineon-design-system-stencil/{p-3b02b076.entry.js → p-ea180cce.entry.js} +2 -2
  485. package/dist/infineon-design-system-stencil/p-ef18e376.entry.js +2 -0
  486. package/dist/infineon-design-system-stencil/{p-22496889.entry.js.map → p-ef18e376.entry.js.map} +1 -1
  487. package/dist/infineon-design-system-stencil/p-efde6e57.entry.js +2 -0
  488. package/dist/infineon-design-system-stencil/p-f0067aa9.entry.js +2 -0
  489. package/dist/infineon-design-system-stencil/{p-392f1655.entry.js → p-f86f7020.entry.js} +2 -2
  490. package/dist/infineon-design-system-stencil/{p-f9bf9346.entry.js → p-f9ca49f1.entry.js} +2 -2
  491. package/dist/types/components/accordion/accordion.stories.d.ts +67 -1
  492. package/dist/types/components/accordion/accordionItem.d.ts +3 -3
  493. package/dist/types/components/alert/alert.stories.d.ts +38 -11
  494. package/dist/types/components/badge/badge.stories.d.ts +23 -3
  495. package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
  496. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +83 -1
  497. package/dist/types/components/button/button.stories.d.ts +92 -16
  498. package/dist/types/components/card/card.stories.d.ts +95 -1
  499. package/dist/types/components/checkbox/checkbox.stories.d.ts +65 -10
  500. package/dist/types/components/chip/chip-item/chip-item.d.ts +1 -1
  501. package/dist/types/components/chip/chip.d.ts +1 -1
  502. package/dist/types/components/chip/chip.stories.d.ts +11 -4
  503. package/dist/types/components/chip/interfaces.d.ts +1 -1
  504. package/dist/types/components/content-switcher/content-switcher.stories.d.ts +66 -0
  505. package/dist/types/components/date-picker/date-picker.stories.d.ts +89 -2
  506. package/dist/types/components/dropdown/dropdown.stories.d.ts +90 -33
  507. package/dist/types/components/footer/footer.stories.d.ts +26 -0
  508. package/dist/types/components/icon/infineonIconStencil.stories.d.ts +5 -0
  509. package/dist/types/components/icon-button/icon-button.stories.d.ts +56 -8
  510. package/dist/types/components/link/link.stories.d.ts +49 -6
  511. package/dist/types/components/modal/modal.d.ts +2 -2
  512. package/dist/types/components/modal/modal.stories.d.ts +77 -3
  513. package/dist/types/components/navigation/navbar/navbar.stories.d.ts +222 -6
  514. package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +2 -3
  515. package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +161 -7
  516. package/dist/types/components/notification/notification.stories.d.ts +46 -2
  517. package/dist/types/components/number-indicator/number-indicator.stories.d.ts +19 -0
  518. package/dist/types/components/pagination/pagination.d.ts +1 -4
  519. package/dist/types/components/pagination/pagination.stories.d.ts +12 -8
  520. package/dist/types/components/progress-bar/progress-bar.stories.d.ts +25 -4
  521. package/dist/types/components/radio-button/radio-button.stories.d.ts +59 -8
  522. package/dist/types/components/search-bar/search-bar.d.ts +1 -1
  523. package/dist/types/components/search-bar/search-bar.stories.d.ts +60 -3
  524. package/dist/types/components/search-field/search-field.stories.d.ts +45 -6
  525. package/dist/types/components/segmented-control/segmented-control.stories.d.ts +0 -3
  526. package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
  527. package/dist/types/components/select/multi-select/multiselect.stories.d.ts +125 -0
  528. package/dist/types/components/select/single-select/select.stories.d.ts +67 -24
  529. package/dist/types/components/slider/slider.stories.d.ts +110 -0
  530. package/dist/types/components/spinner/spinner.stories.d.ts +32 -0
  531. package/dist/types/components/status/status.stories.d.ts +24 -2
  532. package/dist/types/components/stepper/stepper.stories.d.ts +30 -6
  533. package/dist/types/components/switch/switch.stories.d.ts +47 -1
  534. package/dist/types/components/table-advanced-version/table.stories.d.ts +50 -11
  535. package/dist/types/components/table-basic-version/table.stories.d.ts +21 -1
  536. package/dist/types/components/tabs/tabs.d.ts +1 -1
  537. package/dist/types/components/tabs/tabs.stories.d.ts +88 -9
  538. package/dist/types/components/tag/tag.stories.d.ts +20 -0
  539. package/dist/types/components/text-field/text-field.stories.d.ts +106 -10
  540. package/dist/types/components/tooltip/tooltip.stories.d.ts +41 -6
  541. package/dist/types/components.d.ts +20 -28
  542. package/package.json +3 -2
  543. package/dist/cjs/index-68ed35ac.js.map +0 -1
  544. package/dist/components/p-0fce434b.js.map +0 -1
  545. package/dist/components/p-3ee20ed5.js.map +0 -1
  546. package/dist/components/p-a7e5035e.js.map +0 -1
  547. package/dist/components/p-d3904b2f.js.map +0 -1
  548. package/dist/components/p-e57d6c00.js.map +0 -1
  549. package/dist/esm/index-f6e95f3d.js.map +0 -1
  550. package/dist/infineon-design-system-stencil/p-1f004047.entry.js.map +0 -1
  551. package/dist/infineon-design-system-stencil/p-22496889.entry.js +0 -2
  552. package/dist/infineon-design-system-stencil/p-258c4e35.entry.js.map +0 -1
  553. package/dist/infineon-design-system-stencil/p-500bc0ed.entry.js +0 -2
  554. package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js +0 -2
  555. package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js.map +0 -1
  556. package/dist/infineon-design-system-stencil/p-6c18926e.entry.js.map +0 -1
  557. package/dist/infineon-design-system-stencil/p-6c89883f.entry.js +0 -2
  558. package/dist/infineon-design-system-stencil/p-77a8fc5e.entry.js +0 -2
  559. package/dist/infineon-design-system-stencil/p-77a8fc5e.entry.js.map +0 -1
  560. package/dist/infineon-design-system-stencil/p-7cc1beed.entry.js.map +0 -1
  561. package/dist/infineon-design-system-stencil/p-98c50956.entry.js +0 -2
  562. package/dist/infineon-design-system-stencil/p-98c50956.entry.js.map +0 -1
  563. package/dist/infineon-design-system-stencil/p-abba423a.entry.js +0 -2
  564. package/dist/infineon-design-system-stencil/p-c6ff49d7.entry.js +0 -2
  565. package/dist/infineon-design-system-stencil/p-c6ff49d7.entry.js.map +0 -1
  566. package/dist/infineon-design-system-stencil/p-d61ab729.entry.js +0 -2
  567. package/dist/infineon-design-system-stencil/p-d61ab729.entry.js.map +0 -1
  568. package/dist/infineon-design-system-stencil/p-e07ca773.entry.js +0 -2
  569. package/dist/infineon-design-system-stencil/p-e244bae4.js +0 -3
  570. package/dist/infineon-design-system-stencil/p-e244bae4.js.map +0 -1
  571. package/dist/infineon-design-system-stencil/p-f63ce1bc.entry.js +0 -2
  572. package/dist/infineon-design-system-stencil/p-f63ce1bc.entry.js.map +0 -1
  573. package/dist/infineon-design-system-stencil/p-fb455026.entry.js +0 -2
  574. /package/dist/infineon-design-system-stencil/{p-62c705f1.entry.js.map → p-0b9c7ab7.entry.js.map} +0 -0
  575. /package/dist/infineon-design-system-stencil/{p-03f5d7d6.entry.js.map → p-0cbb7404.entry.js.map} +0 -0
  576. /package/dist/infineon-design-system-stencil/{p-96e3c31e.entry.js.map → p-13951b60.entry.js.map} +0 -0
  577. /package/dist/infineon-design-system-stencil/{p-4349f994.entry.js.map → p-16023b8a.entry.js.map} +0 -0
  578. /package/dist/infineon-design-system-stencil/{p-0fdd8cca.entry.js.map → p-189d4d1f.entry.js.map} +0 -0
  579. /package/dist/infineon-design-system-stencil/{p-12db6350.entry.js.map → p-1f17cbfe.entry.js.map} +0 -0
  580. /package/dist/infineon-design-system-stencil/{p-f20951d0.entry.js.map → p-2ab2c5cf.entry.js.map} +0 -0
  581. /package/dist/infineon-design-system-stencil/{p-d8cc865a.entry.js.map → p-2cd1bc96.entry.js.map} +0 -0
  582. /package/dist/infineon-design-system-stencil/{p-82f9da03.entry.js.map → p-317304e2.entry.js.map} +0 -0
  583. /package/dist/infineon-design-system-stencil/{p-814da9fd.entry.js.map → p-332a86b5.entry.js.map} +0 -0
  584. /package/dist/infineon-design-system-stencil/{p-4bf95d5b.entry.js.map → p-3479b38d.entry.js.map} +0 -0
  585. /package/dist/infineon-design-system-stencil/{p-01a1f6d0.entry.js.map → p-356db73e.entry.js.map} +0 -0
  586. /package/dist/infineon-design-system-stencil/{p-3384179d.entry.js.map → p-35ee2105.entry.js.map} +0 -0
  587. /package/dist/infineon-design-system-stencil/{p-c7607cbd.entry.js.map → p-364bcc43.entry.js.map} +0 -0
  588. /package/dist/infineon-design-system-stencil/{p-7a0b2fd1.entry.js.map → p-3c0396d6.entry.js.map} +0 -0
  589. /package/dist/infineon-design-system-stencil/{p-3af201db.entry.js.map → p-3cf45ded.entry.js.map} +0 -0
  590. /package/dist/infineon-design-system-stencil/{p-4faad7d7.entry.js.map → p-40f16247.entry.js.map} +0 -0
  591. /package/dist/infineon-design-system-stencil/{p-c85d7577.entry.js.map → p-480d7667.entry.js.map} +0 -0
  592. /package/dist/infineon-design-system-stencil/{p-8df0dd12.entry.js.map → p-4c2b5642.entry.js.map} +0 -0
  593. /package/dist/infineon-design-system-stencil/{p-1fad8ea5.entry.js.map → p-4d315bca.entry.js.map} +0 -0
  594. /package/dist/infineon-design-system-stencil/{p-f42bc9c8.entry.js.map → p-4e07c00d.entry.js.map} +0 -0
  595. /package/dist/infineon-design-system-stencil/{p-c2ff66ea.entry.js.map → p-54911d95.entry.js.map} +0 -0
  596. /package/dist/infineon-design-system-stencil/{p-672bcd0b.entry.js.map → p-56e54271.entry.js.map} +0 -0
  597. /package/dist/infineon-design-system-stencil/{p-1ad03102.entry.js.map → p-59d0f2d9.entry.js.map} +0 -0
  598. /package/dist/infineon-design-system-stencil/{p-b3882dc0.entry.js.map → p-5e954f0b.entry.js.map} +0 -0
  599. /package/dist/infineon-design-system-stencil/{p-0b79cb38.entry.js.map → p-6b61e09e.entry.js.map} +0 -0
  600. /package/dist/infineon-design-system-stencil/{p-eeccb158.entry.js.map → p-6d9c1cd0.entry.js.map} +0 -0
  601. /package/dist/infineon-design-system-stencil/{p-347a1e85.entry.js.map → p-7415f5bf.entry.js.map} +0 -0
  602. /package/dist/infineon-design-system-stencil/{p-39fb5fb9.entry.js.map → p-75556b75.entry.js.map} +0 -0
  603. /package/dist/infineon-design-system-stencil/{p-234d0bed.entry.js.map → p-8252f9c7.entry.js.map} +0 -0
  604. /package/dist/infineon-design-system-stencil/{p-88bd6a1e.entry.js.map → p-8640d834.entry.js.map} +0 -0
  605. /package/dist/infineon-design-system-stencil/{p-cb3a70ad.entry.js.map → p-8a349fb4.entry.js.map} +0 -0
  606. /package/dist/infineon-design-system-stencil/{p-53e75622.entry.js.map → p-8cf5d054.entry.js.map} +0 -0
  607. /package/dist/infineon-design-system-stencil/{p-934704d9.entry.js.map → p-8ee88c7e.entry.js.map} +0 -0
  608. /package/dist/infineon-design-system-stencil/{p-3f5c3424.entry.js.map → p-8f2cc008.entry.js.map} +0 -0
  609. /package/dist/infineon-design-system-stencil/{p-b37f692b.entry.js.map → p-8fc46f6c.entry.js.map} +0 -0
  610. /package/dist/infineon-design-system-stencil/{p-e2ad853d.entry.js.map → p-9297efbe.entry.js.map} +0 -0
  611. /package/dist/infineon-design-system-stencil/{p-1f0bc888.entry.js.map → p-961b12af.entry.js.map} +0 -0
  612. /package/dist/infineon-design-system-stencil/{p-aa5f89b6.entry.js.map → p-a4d2a1b0.entry.js.map} +0 -0
  613. /package/dist/infineon-design-system-stencil/{p-407c4329.entry.js.map → p-a722dd38.entry.js.map} +0 -0
  614. /package/dist/infineon-design-system-stencil/{p-a2f7459e.entry.js.map → p-a74a35d2.entry.js.map} +0 -0
  615. /package/dist/infineon-design-system-stencil/{p-5a3c5cce.entry.js.map → p-b372fe7d.entry.js.map} +0 -0
  616. /package/dist/infineon-design-system-stencil/{p-abba423a.entry.js.map → p-b642a0c9.entry.js.map} +0 -0
  617. /package/dist/infineon-design-system-stencil/{p-598ec153.entry.js.map → p-b78de976.entry.js.map} +0 -0
  618. /package/dist/infineon-design-system-stencil/{p-c646ffcc.entry.js.map → p-c0698c6a.entry.js.map} +0 -0
  619. /package/dist/infineon-design-system-stencil/{p-2f12adbc.entry.js.map → p-c2ed0a00.entry.js.map} +0 -0
  620. /package/dist/infineon-design-system-stencil/{p-21c07ef9.entry.js.map → p-cee407bb.entry.js.map} +0 -0
  621. /package/dist/infineon-design-system-stencil/{p-d2630254.entry.js.map → p-d0b64bca.entry.js.map} +0 -0
  622. /package/dist/infineon-design-system-stencil/{p-b120a552.entry.js.map → p-d630716a.entry.js.map} +0 -0
  623. /package/dist/infineon-design-system-stencil/{p-d57b5e31.entry.js.map → p-e06dc41b.entry.js.map} +0 -0
  624. /package/dist/infineon-design-system-stencil/{p-33f5c7b8.entry.js.map → p-e2d80669.entry.js.map} +0 -0
  625. /package/dist/infineon-design-system-stencil/{p-85468723.entry.js.map → p-e6212e02.entry.js.map} +0 -0
  626. /package/dist/infineon-design-system-stencil/{p-3b02b076.entry.js.map → p-ea180cce.entry.js.map} +0 -0
  627. /package/dist/infineon-design-system-stencil/{p-6c89883f.entry.js.map → p-efde6e57.entry.js.map} +0 -0
  628. /package/dist/infineon-design-system-stencil/{p-e07ca773.entry.js.map → p-f0067aa9.entry.js.map} +0 -0
  629. /package/dist/infineon-design-system-stencil/{p-392f1655.entry.js.map → p-f86f7020.entry.js.map} +0 -0
  630. /package/dist/infineon-design-system-stencil/{p-f9bf9346.entry.js.map → p-f9ca49f1.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/components/select/single-select/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,+FAA+F;AAC/F,yLAAyL;AACzL,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,sBAAsB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,UAAU,EAAE,IAAI;QAChB,sBAAsB,EAAE,WAAW;QACnC,WAAW,EAAE,IAAI;QACjB,gBAAgB,EAAE,aAAa;QAC/B,KAAK,EAAE,KAAK;QACZ,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,KAAK;QACf,6CAA6C;KAC9C;IAED,QAAQ,EAAE;QACR,qCAAqC;QACrC,mCAAmC;QACnC,oBAAoB;QACpB,KAAK;QACL,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,cAAc,EAAE,GAAG;gBACnB,eAAe,EAAE,GAAG;aACrB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;aACd;SACF;QACD,WAAW,EAAE;YACX,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;YACtB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACrC,oCAAoC;QACpC,qBAAqB;QACrB,4DAA4D;QAC5D,KAAK;QACL,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,IAAI,EAAE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,MAAA,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,0CAAE,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IACzF,CAAC,EAAE,CAAC,CAAC,CAAC;IAEN,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,MAAM,CAAC,IAAI,GAAG;IACZ,kBAAkB;IAClB,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,gDAAgD;AAChD,gBAAgB;AAChB,kBAAkB;AAClB,kBAAkB;AAClB,0BAA0B;AAC1B,qBAAqB;AACrB,oBAAoB;AACpB,qBAAqB;AACrB,qBAAqB;AACrB,KAAK;AAEL,gDAAgD;AAChD,gBAAgB;AAChB,sBAAsB;AACtB,sBAAsB;AACtB,6CAA6C;AAC7C,KAAK;AAEL,0DAA0D;AAC1D,0BAA0B;AAC1B,oBAAoB;AACpB,uHAAuH;AACvH,KAAK;AAEL,+DAA+D;AAC/D,+BAA+B;AAC/B,sBAAsB;AACtB,+BAA+B;AAC/B,KAAK","sourcesContent":["import { action } from '@storybook/addon-actions';\n\n//use string instead of json format here to avoid ugly formatting in the storybook code snippet\n// let options = \"[{'value': 'a','label': 'option a','selected': 'false'},{'value': 'b','label': 'option b','selected': 'false'},{'value': 'c','label': 'option c','selected': 'false'}]\"\nconst options = [\n {\n value: 'a',\n label: 'option a',\n selected: false,\n },\n {\n value: 'b',\n label: 'option b',\n selected: false,\n },\n {\n value: 'c',\n label: 'option c',\n selected: false,\n },\n];\n\nexport default {\n title: 'Components/Select/Single Select',\n // tags: ['autodocs'],\n args: {\n size: 'm',\n showSearch: true,\n searchPlaceholderValue: 'Search...',\n placeholder: true,\n placeholderValue: 'Placeholder',\n error: false,\n errorMessage: 'Some error',\n label: '',\n disabled: false,\n // type: 'single', //for later implementation\n },\n\n argTypes: {\n // type: { //for later implementation\n // // control: { type: 'radio' },\n // control: false,\n // },\n size: {\n options: {\n 'small (36px)': 's',\n 'medium (40px)': 'm',\n },\n control: {\n type: 'radio',\n },\n },\n placeholder: {\n options: [true, false],\n control: { type: 'radio' },\n },\n placeholderValue: { control: 'text' },\n // value: { for later implementation\n // control: 'text',\n // description: 'Programmatically set the selected value',\n // },\n error: {\n options: [true, false],\n control: { type: 'radio' },\n },\n errorMessage: { control: 'text' },\n label: { control: 'text' },\n disabled: {\n options: [true, false],\n control: { type: 'radio' },\n },\n showSearch: {\n options: [true, false],\n control: { type: 'radio' },\n },\n searchPlaceholderValue: { control: { type: 'text' } },\n\n options: {\n description: 'Takes an array of objects in the following format',\n },\n ifxSelect: {\n action: 'ifxSelect',\n description: 'Custom event emitted when item is selected',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelect={handleInput}\\nVue:@ifxSelect=\"handleInput\"\\nAngular:(ifxSelect)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelect\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const template = `<ifx-select \n size='${args.size}'\n placeholder='${args.placeholder}'\n show-search='${args.showSearch}'\n search-placeholder-value='${args.searchPlaceholderValue}'\n disabled='${args.disabled}'\n error='${args.error}'\n error-message='${args.errorMessage}'\n label='${args.label}'\n placeholder-value='${args.placeholderValue}'\n options='${JSON.stringify(args.options)}' >\n </ifx-select>`;\n setTimeout(() => {\n document.querySelector('ifx-select')?.addEventListener('ifxSelect', action('ifxSelect'));\n document.querySelector('ifx-select')?.addEventListener('ifxInput', action('ifxInput'));\n }, 0);\n\n return template;\n};\n\nexport const Single = DefaultTemplate.bind({});\nSingle.args = {\n // type: 'single',\n options: options,\n};\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'text',\n// name: 'text',\n// value: 'Placeholder',\n// allowHTML: true,\n// delimiter: ',',\n// editItems: true,\n// maxItemCount: 5,\n// };\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'multiple',\n// name: 'multiple',\n// choices: 'Choice 1, Choice 2, Choice 3',\n// };\n\n// export const SingleWithIcon = DefaultTemplate.bind({});\n// SingleWithIcon.args = {\n// type: 'single',\n// choices: \"Choice 1, Choice 2 <ifx-icon icon='check16'></ifx-icon>, Choice 3 <ifx-icon icon='check16'></ifx-icon>\",\n// };\n\n// export const MultiselectCombobox = DefaultTemplate.bind({});\n// MultiselectCombobox.args = {\n// type: 'multiple',\n// // removeItemButton: true,\n// };\n"]}
1
+ {"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/components/select/single-select/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,+FAA+F;AAC/F,yLAAyL;AACzL,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,sBAAsB;IACtB,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,GAAG;QACT,UAAU,EAAE,IAAI;QAChB,sBAAsB,EAAE,WAAW;QACnC,WAAW,EAAE,IAAI;QACjB,gBAAgB,EAAE,aAAa;QAC/B,KAAK,EAAE,KAAK;QACZ,YAAY,EAAE,YAAY;QAC1B,QAAQ,EAAE,KAAK;QACf,6CAA6C;KAC9C;IAED,QAAQ,EAAE;QACR,qCAAqC;QACrC,mCAAmC;QACnC,oBAAoB;QACpB,KAAK;QACL,IAAI,EAAE;YACJ,WAAW,EAAE,kEAAkE;YAC/E,OAAO,EAAE,OAAO;YA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,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,MAAM,CAAC,IAAI,GAAG;IACZ,kBAAkB;IAClB,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,gDAAgD;AAChD,gBAAgB;AAChB,kBAAkB;AAClB,kBAAkB;AAClB,0BAA0B;AAC1B,qBAAqB;AACrB,oBAAoB;AACpB,qBAAqB;AACrB,qBAAqB;AACrB,KAAK;AAEL,gDAAgD;AAChD,gBAAgB;AAChB,sBAAsB;AACtB,sBAAsB;AACtB,6CAA6C;AAC7C,KAAK;AAEL,0DAA0D;AAC1D,0BAA0B;AAC1B,oBAAoB;AACpB,uHAAuH;AACvH,KAAK;AAEL,+DAA+D;AAC/D,+BAA+B;AAC/B,sBAAsB;AACtB,+BAA+B;AAC/B,KAAK","sourcesContent":["import { action } from '@storybook/addon-actions';\n\n//use string instead of json format here to avoid ugly formatting in the storybook code snippet\n// let options = \"[{'value': 'a','label': 'option a','selected': 'false'},{'value': 'b','label': 'option b','selected': 'false'},{'value': 'c','label': 'option c','selected': 'false'}]\"\nconst options = [\n {\n value: 'a',\n label: 'option a',\n selected: false,\n },\n {\n value: 'b',\n label: 'option b',\n selected: false,\n },\n {\n value: 'c',\n label: 'option c',\n selected: false,\n },\n];\n\nexport default {\n title: 'Components/Select/Single Select',\n // tags: ['autodocs'],\n args: {\n label: '',\n size: 'm',\n showSearch: true,\n searchPlaceholderValue: 'Search...',\n placeholder: true,\n placeholderValue: 'Placeholder',\n error: false,\n errorMessage: 'Some error',\n disabled: false,\n // type: 'single', //for later implementation\n },\n\n argTypes: {\n // type: { //for later implementation\n // // control: { type: 'radio' },\n // control: false,\n // },\n size: {\n description: 'Specifies the size. Options: small - s (36px) medium - m (40px).',\n control: 'radio',\n options: ['s', 'm'],\n table: {\n category: 'ifx-select props',\n defaultValue: {\n summary: 'm'\n }\n }\n },\n placeholder: {\n description: 'Determines whether a placeholder is displayed or not.',\n control: 'boolean',\n table: {\n category: 'ifx-select props',\n defaultValue: {\n summary: true\n }\n }\n },\n placeholderValue: {\n description: 'Sets the text displayed as the placeholder when placeholder is set to true.',\n table: {\n category: 'ifx-select props'\n }\n },\n error: {\n description: 'Displays an error state.',\n control: 'boolean',\n table: {\n category: 'ifx-select props',\n defaultValue: {\n summary: false\n }\n }\n },\n errorMessage: {\n description: 'Message displayed when error is set to true.',\n table: {\n category: 'ifx-select props'\n }\n },\n label: {\n description: 'Sets the label.',\n table: {\n category: 'ifx-select props'\n }\n },\n disabled: {\n description: 'Disables the dropdown.',\n control: 'boolean',\n table: {\n category: 'ifx-select props',\n defaultValue: {\n summary: false\n }\n }\n },\n showSearch: {\n description: 'Enables a search bar inside the dropdown to filter options.',\n control: 'boolean',\n table: {\n category: 'ifx-select props',\n defaultValue: {\n summary: true\n }\n }\n },\n searchPlaceholderValue: {\n description: 'Placeholder text for the search input field.',\n table: {\n category: 'ifx-select props'\n }\n },\n options: {\n description: 'Takes an array of objects in the following format.',\n table: {\n category: 'ifx-select props'\n }\n },\n ifxSelect: {\n action: 'ifxSelect',\n description: 'Custom event emitted when item is selected.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelect={handleInput}\\nVue:@ifxSelect=\"handleInput\"\\nAngular:(ifxSelect)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelect\", (event) => {//handle input});',\n },\n },\n },\n ifxInput: {\n action: 'ifxInput',\n description: 'A custom event *ifxInput* is emitted immediately after the value of *Search* changes.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxInput={handleInput}\\nVue:@ifxInput=\"handleInput\"\\nAngular:(ifxInput)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxInput\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const template = `<ifx-select \n size='${args.size}'\n placeholder='${args.placeholder}'\n show-search='${args.showSearch}'\n search-placeholder-value='${args.searchPlaceholderValue}'\n disabled='${args.disabled}'\n error='${args.error}'\n error-message='${args.errorMessage}'\n label='${args.label}'\n placeholder-value='${args.placeholderValue}'\n options='${JSON.stringify(args.options)}' >\n </ifx-select>`;\n setTimeout(() => {\n document.querySelector('ifx-select')?.addEventListener('ifxSelect', action('ifxSelect'));\n document.querySelector('ifx-select')?.addEventListener('ifxInput', action('ifxInput'));\n }, 0);\n\n return template;\n};\n\nexport const Single = DefaultTemplate.bind({});\nSingle.args = {\n // type: 'single',\n options: options,\n};\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'text',\n// name: 'text',\n// value: 'Placeholder',\n// allowHTML: true,\n// delimiter: ',',\n// editItems: true,\n// maxItemCount: 5,\n// };\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'multiple',\n// name: 'multiple',\n// choices: 'Choice 1, Choice 2, Choice 3',\n// };\n\n// export const SingleWithIcon = DefaultTemplate.bind({});\n// SingleWithIcon.args = {\n// type: 'single',\n// choices: \"Choice 1, Choice 2 <ifx-icon icon='check16'></ifx-icon>, Choice 3 <ifx-icon icon='check16'></ifx-icon>\",\n// };\n\n// export const MultiselectCombobox = DefaultTemplate.bind({});\n// MultiselectCombobox.args = {\n// type: 'multiple',\n// // removeItemButton: true,\n// };\n"]}
@@ -5,36 +5,120 @@ export default {
5
5
  component: 'ifx-slider',
6
6
  tags: ['autodocs'],
7
7
  argTypes: {
8
- min: { control: 'number' },
9
- max: { control: 'number' },
10
- step: { control: 'number' },
11
- type: { control: 'radio', options: ['single', 'double'] },
12
- value: { control: 'number', if: { arg: 'type', eq: 'single' } },
13
- minValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' } },
14
- maxValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' } },
15
- showPercentage: { control: 'boolean', if: { arg: 'type', eq: 'single' } },
16
- disabled: { control: 'boolean' },
8
+ min: { control: 'number',
9
+ description: 'The minimum value of the slider.',
10
+ table: {
11
+ category: 'ifx-slider props',
12
+ defaultValue: { summary: '0' },
13
+ type: { summary: 'number' }
14
+ }
15
+ },
16
+ max: { control: 'number',
17
+ description: 'The maximum value of the slider.',
18
+ table: {
19
+ category: 'ifx-slider props',
20
+ defaultValue: { summary: '100' },
21
+ type: { summary: 'number' }
22
+ }
23
+ },
24
+ step: { control: 'number',
25
+ description: 'The step value of the slider.',
26
+ table: {
27
+ category: 'ifx-slider props',
28
+ defaultValue: { summary: '1' },
29
+ type: { summary: 'number' }
30
+ }
31
+ },
32
+ type: { control: 'radio', options: ['single', 'double'],
33
+ description: 'The type of the slider.',
34
+ table: {
35
+ category: 'ifx-slider props',
36
+ defaultValue: { summary: 'single' },
37
+ type: { summary: 'single | double' }
38
+ }
39
+ },
40
+ value: { control: 'number', if: { arg: 'type', eq: 'single' },
41
+ description: 'The current value of the slider.',
42
+ table: {
43
+ category: 'ifx-slider props',
44
+ type: { summary: 'number ' }
45
+ }
46
+ },
47
+ minValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' },
48
+ description: 'The minimum value of the handle in double slider.',
49
+ table: {
50
+ category: 'ifx-slider props',
51
+ type: { summary: 'number' }
52
+ }
53
+ },
54
+ maxValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' },
55
+ description: 'The maximum value of the handle in double slider.',
56
+ table: {
57
+ category: 'ifx-slider props',
58
+ type: { summary: 'number' }
59
+ },
60
+ },
61
+ showPercentage: {
62
+ control: 'boolean', if: { arg: 'type', eq: 'single' },
63
+ description: 'Show the percentage of the slider value.',
64
+ table: {
65
+ category: 'ifx-slider props',
66
+ defaultValue: { summary: 'false' },
67
+ type: { summary: 'boolean' }
68
+ }
69
+ },
70
+ disabled: { control: 'boolean',
71
+ description: 'Disable the slider.',
72
+ table: {
73
+ category: 'ifx-slider props',
74
+ defaultValue: { summary: 'false' },
75
+ type: { summary: 'boolean' }
76
+ }
77
+ },
17
78
  leftIcon: {
18
79
  options: Object.values(icons).map(i => i['name']),
19
80
  control: { type: 'select' },
81
+ description: 'The icon on the left of the slider.',
82
+ table: {
83
+ category: 'ifx-slider props',
84
+ type: { summary: 'string' }
85
+ }
20
86
  },
21
87
  rightIcon: {
22
88
  options: Object.values(icons).map(i => i['name']),
23
89
  control: { type: 'select' },
90
+ description: 'The icon on the right of the slider.',
91
+ table: {
92
+ category: 'ifx-slider props',
93
+ type: { summary: 'string' }
94
+ }
95
+ },
96
+ leftText: { control: 'text',
97
+ description: 'The text on the left side.',
98
+ table: {
99
+ category: 'ifx-slider props',
100
+ type: { summary: 'string' }
101
+ }
102
+ },
103
+ rightText: { control: 'text',
104
+ description: 'The text on the right side.',
105
+ table: {
106
+ category: 'ifx-slider props',
107
+ type: { summary: 'string' }
108
+ }
24
109
  },
25
- leftText: { control: 'text' },
26
- rightText: { control: 'text' },
27
110
  ifxChange: {
28
111
  action: 'ifxChange',
29
- description: 'Custom event emitted on input change',
112
+ description: 'Custom event emitted on input change.',
30
113
  table: {
114
+ category: 'custom events',
31
115
  type: {
32
116
  summary: 'Framework integration',
33
117
  detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
34
118
  },
35
119
  },
36
120
  },
37
- },
121
+ }
38
122
  };
39
123
  const Template = args => {
40
124
  const sliderElement = document.createElement('ifx-slider');
@@ -1 +1 @@
1
- {"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../src/components/slider/slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,QAAQ,EAAE;QACR,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAA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AAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,mCACT,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,WAAW,GACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,mCACR,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,IAAI,GACf,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Slider',\n component: 'ifx-slider',\n tags: ['autodocs'],\n\n argTypes: {\n min: { control: 'number' },\n max: { control: 'number' },\n step: { control: 'number' },\n type: { control: 'radio', options: ['single', 'double']},\n value: { control: 'number', if: { arg: 'type', eq: 'single'} },\n minValueHandle : {control :'number', if: { arg: 'type', eq: 'double'}},\n maxValueHandle : {control :'number', if: { arg: 'type', eq: 'double'}},\n showPercentage: { control: 'boolean', if: { arg: 'type', eq: 'single'} },\n disabled: { control: 'boolean' },\n leftIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n rightIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n leftText: { control: 'text' },\n rightText: { control: 'text' },\n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event emitted on input change',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxChange={handleChange}\\nVue:@ifxChange=\"handleChange\"\\nAngular:(ifxChange)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});',\n },\n },\n },\n },\n};\n\nconst Template = args => {\n const sliderElement = document.createElement('ifx-slider');\n sliderElement.setAttribute('value', args.value);\n sliderElement.setAttribute('min', args.min);\n sliderElement.setAttribute('max', args.max);\n sliderElement.setAttribute('step', args.step)\n sliderElement.setAttribute('min-value-handle', args.minValueHandle);\n sliderElement.setAttribute('max-value-handle', args.maxValueHandle);\n sliderElement.setAttribute('type', args.type);\n if (args.showPercentage) {\n sliderElement.setAttribute('show-percentage', 'true');\n }\n if (args.disabled) {\n sliderElement.setAttribute('disabled', 'true'); // Set disabled attribute\n }\n\n if (args.leftIcon) {\n sliderElement.setAttribute('left-icon', args.leftIcon);\n }\n if (args.rightIcon) {\n sliderElement.setAttribute('right-icon', args.rightIcon);\n }\n if (args.leftText) {\n sliderElement.setAttribute('left-text', args.leftText);\n }\n if (args.rightText) {\n sliderElement.setAttribute('right-text', args.rightText);\n }\n sliderElement.addEventListener('ifxChange', action('ifxChange'));\n\n return sliderElement;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n min: 0,\n max: 100,\n step: 1,\n value: 50,\n minValueHandle: 20,\n maxValueHandle: 80,\n showPercentage: false,\n disabled: false,\n type: 'single'\n};\n\nexport const WithPercentageDisplay = Template.bind({});\nWithPercentageDisplay.args = {\n ...Default.args,\n showPercentage: true,\n disabled: false,\n};\n\nexport const WithIcons = Template.bind({});\nWithIcons.args = {\n ...Default.args,\n leftIcon: 'cogwheel-16',\n rightIcon: 'cogwheel-16',\n};\n\nexport const WithTexts = Template.bind({});\nWithTexts.args = {\n ...Default.args,\n leftText: 'LeftText',\n rightText: 'RightText',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n"]}
1
+ {"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../src/components/slider/slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,QAAQ,EAAE;QACR,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ;YACtB,WAAW,EAAE,kCAAkC;Y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AC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACb,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,EAAE;IAClB,cAAc,EAAE,EAAE;IAClB,cAAc,EAAE,KAAK;IACrB,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,qBAAqB,CAAC,IAAI,mCACrB,OAAO,CAAC,IAAI,KACf,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,KAAK,GAChB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,mCACT,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAE,aAAa,GACzB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,mCACT,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,WAAW,GACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,mCACR,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,IAAI,GACf,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Slider',\n component: 'ifx-slider',\n tags: ['autodocs'],\n\n argTypes: {\n min: { control: 'number',\n description: 'The minimum value of the slider.',\n table:{\n category: 'ifx-slider props',\n defaultValue: { summary: '0' },\n type: { summary: 'number' }\n }\n },\n max: { control: 'number',\n description: 'The maximum value of the slider.',\n table:{\n category: 'ifx-slider props',\n defaultValue: { summary: '100' },\n type: { summary: 'number' }\n } \n },\n step: { control: 'number',\n description: 'The step value of the slider.',\n table:{\n category: 'ifx-slider props',\n defaultValue: { summary: '1' },\n type: { summary: 'number' }\n }\n },\n type: { control: 'radio', options: ['single', 'double'],\n description: 'The type of the slider.',\n table: {\n category: 'ifx-slider props',\n defaultValue: { summary: 'single' },\n type: { summary: 'single | double' }\n }\n },\n value: { control: 'number', if: { arg: 'type', eq: 'single'},\n description: 'The current value of the slider.',\n table: { \n category: 'ifx-slider props',\n type: { summary: 'number ' }\n }\n }, \n minValueHandle : {control :'number', if: { arg: 'type', eq: 'double'},\n description: 'The minimum value of the handle in double slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'number' }\n }\n },\n maxValueHandle : {control :'number', if: { arg: 'type', eq: 'double'},\n description: 'The maximum value of the handle in double slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'number' }\n },\n }, \n showPercentage: { \n control: 'boolean', if: { arg: 'type', eq: 'single'},\n description: 'Show the percentage of the slider value.',\n table: {\n category: 'ifx-slider props',\n defaultValue: { summary: 'false' },\n type: { summary: 'boolean' }\n }\n },\n disabled: { control: 'boolean',\n description: 'Disable the slider.',\n table: {\n category: 'ifx-slider props',\n defaultValue: { summary: 'false' },\n type: { summary: 'boolean' }\n }\n },\n leftIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select'},\n description: 'The icon on the left of the slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n rightIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n description: 'The icon on the right of the slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n leftText: { control: 'text',\n description: 'The text on the left side.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n rightText: { control: 'text',\n description: 'The text on the right side.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event emitted on input change.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxChange={handleChange}\\nVue:@ifxChange=\"handleChange\"\\nAngular:(ifxChange)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});',\n },\n },\n },\n }\n}\n\nconst Template = args => {\n const sliderElement = document.createElement('ifx-slider');\n sliderElement.setAttribute('value', args.value);\n sliderElement.setAttribute('min', args.min);\n sliderElement.setAttribute('max', args.max);\n sliderElement.setAttribute('step', args.step)\n sliderElement.setAttribute('min-value-handle', args.minValueHandle);\n sliderElement.setAttribute('max-value-handle', args.maxValueHandle);\n sliderElement.setAttribute('type', args.type);\n if (args.showPercentage) {\n sliderElement.setAttribute('show-percentage', 'true');\n }\n if (args.disabled) {\n sliderElement.setAttribute('disabled', 'true'); // Set disabled attribute\n }\n\n if (args.leftIcon) {\n sliderElement.setAttribute('left-icon', args.leftIcon);\n }\n if (args.rightIcon) {\n sliderElement.setAttribute('right-icon', args.rightIcon);\n }\n if (args.leftText) {\n sliderElement.setAttribute('left-text', args.leftText);\n }\n if (args.rightText) {\n sliderElement.setAttribute('right-text', args.rightText);\n }\n sliderElement.addEventListener('ifxChange', action('ifxChange'));\n\n return sliderElement;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n min: 0,\n max: 100,\n step: 1,\n value: 50,\n minValueHandle: 20,\n maxValueHandle: 80,\n showPercentage: false,\n disabled: false,\n type: 'single'\n};\n\nexport const WithPercentageDisplay = Template.bind({});\nWithPercentageDisplay.args = {\n ...Default.args,\n showPercentage: true,\n disabled: false,\n};\n\nexport const WithIcons = Template.bind({});\nWithIcons.args = {\n ...Default.args,\n leftIcon: 'cogwheel-16',\n rightIcon: 'cogwheel-16',\n};\n\nexport const WithTexts = Template.bind({});\nWithTexts.args = {\n ...Default.args,\n leftText: 'LeftText',\n rightText: 'RightText',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n"]}
@@ -4,20 +4,52 @@ export default {
4
4
  args: {
5
5
  size: 'm',
6
6
  variant: 'default',
7
+ inverted: false,
7
8
  },
8
9
  argTypes: {
9
10
  size: {
10
- description: 'Size options: s (24px) and m (40px) - default: m',
11
+ description: 'Size options: s (24px) and m (40px).',
11
12
  options: ['s', 'm'],
12
13
  control: { type: 'radio' },
14
+ table: {
15
+ category: 'ifx-spinner props',
16
+ defaultValue: {
17
+ summary: 'm'
18
+ },
19
+ type: {
20
+ summary: 's | m'
21
+ }
22
+ }
13
23
  },
14
24
  variant: {
25
+ description: 'Variant of the spinner.',
15
26
  options: ['default', 'brand'],
16
27
  control: { type: 'radio' },
28
+ table: {
29
+ category: 'ifx-spinner props',
30
+ defaultValue: {
31
+ summary: 'default'
32
+ },
33
+ type: {
34
+ summary: 'string'
35
+ }
36
+ },
17
37
  },
38
+ inverted: {
39
+ description: 'Changes the color of spinner to white.',
40
+ table: {
41
+ category: 'ifx-spinner props',
42
+ defaultValue: {
43
+ summary: 'false'
44
+ },
45
+ type: {
46
+ summary: 'boolean'
47
+ }
48
+ }
49
+ }
18
50
  },
19
51
  };
20
- const DefaultTemplate = args => `<ifx-spinner variant="${args.variant}" size="${args.size}"></ifx-spinner>`;
52
+ const DefaultTemplate = args => `<ifx-spinner variant="${args.variant}" size="${args.size}" inverted="${args.inverted}"></ifx-spinner>`;
21
53
  export const Default = DefaultTemplate.bind({});
22
54
  Default.argsTypes = {};
23
55
  //# sourceMappingURL=spinner.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner.stories.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YACnB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,yBAAyB,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,IAAI,kBAAkB,CAAC;AAE5G,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Spinner',\n tags: ['autodocs'],\n\n args: {\n size: 'm',\n variant: 'default',\n },\n argTypes: {\n size: {\n description: 'Size options: s (24px) and m (40px) - default: m',\n options: ['s', 'm'],\n control: { type: 'radio' },\n },\n variant: {\n options: ['default', 'brand'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-spinner variant=\"${args.variant}\" size=\"${args.size}\"></ifx-spinner>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argsTypes = {};\n"]}
1
+ {"version":3,"file":"spinner.stories.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.stories.ts"],"names":[],"mappings":"AACA,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YACnB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,KAAK,EAAE;gBACL,QAAQ,EAAE,mBAAmB;gBAC7B,YAAY,EAAE;oBACZ,OAAO,EAAE,GAAG;iBACb;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;aACF;SACF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,yBAAyB;YACtC,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,KAAK,EAAE;gBACL,QAAQ,EAAE,mBAAmB;gBAC7B,YAAY,EAAE;oBACZ,OAAO,EAAE,SAAS;iBACnB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,wCAAwC;YACrD,KAAK,EAAE;gBACL,QAAQ,EAAE,mBAAmB;gBAC7B,YAAY,EAAE;oBACZ,OAAO,EAAE,OAAO;iBACjB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,SAAS;iBACnB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,yBAAyB,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,IAAI,eAAe,IAAI,CAAC,QAAQ,kBAAkB,CAAC;AAExI,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC","sourcesContent":["\nexport default {\n title: 'Components/Spinner',\n tags: ['autodocs'],\n\n args: {\n size: 'm',\n variant: 'default',\n inverted: false,\n },\n argTypes: {\n size: {\n description: 'Size options: s (24px) and m (40px).',\n options: ['s', 'm'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-spinner props',\n defaultValue: {\n summary: 'm'\n },\n type: {\n summary: 's | m'\n }\n }\n },\n variant: {\n description: 'Variant of the spinner.',\n options: ['default', 'brand'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-spinner props',\n defaultValue: {\n summary: 'default'\n },\n type: {\n summary: 'string'\n }\n },\n },\n inverted: {\n description: 'Changes the color of spinner to white.',\n table: {\n category: 'ifx-spinner props',\n defaultValue: {\n summary: 'false'\n },\n type: {\n summary: 'boolean'\n }\n }\n }\n },\n};\n\nconst DefaultTemplate = args => `<ifx-spinner variant=\"${args.variant}\" size=\"${args.size}\" inverted=\"${args.inverted}\"></ifx-spinner>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argsTypes = {};\n"]}
@@ -7,13 +7,37 @@ export default {
7
7
  border: true,
8
8
  },
9
9
  argTypes: {
10
+ label: {
11
+ name: 'Label of Status',
12
+ description: 'Set the label of *<ifx-status>*.',
13
+ table: {
14
+ category: 'ifx-status props',
15
+ type: {
16
+ summary: 'string'
17
+ }
18
+ }
19
+ },
10
20
  border: {
21
+ description: 'When set to **true** the status has a border.',
11
22
  control: 'boolean',
12
23
  attr: 'border',
24
+ table: {
25
+ category: 'ifx-status props',
26
+ defaultValue: {
27
+ summary: true
28
+ }
29
+ }
13
30
  },
14
31
  color: {
32
+ description: 'Sets the color of the status.',
33
+ control: 'radio',
15
34
  options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],
16
- control: { type: 'radio' },
35
+ table: {
36
+ category: 'ifx-status props',
37
+ defaultValue: {
38
+ summary: 'orange'
39
+ }
40
+ }
17
41
  },
18
42
  },
19
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"status.stories.js","sourceRoot":"","sources":["../../../src/components/status/status.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,QAAQ;SACf;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3E,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,sBAAsB,IAAI,CAAC,KAAK,YAAY,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,MAAM,KAAK,CAAC;AAEpH,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Status',\n tags: ['autodocs'],\n\n args: {\n label: 'text',\n color: 'orange',\n border: true,\n },\n argTypes: {\n border: {\n control: 'boolean',\n attr: 'border',\n },\n color: {\n options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-status label=\"${args.label}\" color=\"${args.color}\" border=\"${args.border}\"/>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
1
+ {"version":3,"file":"status.stories.js","sourceRoot":"","sources":["../../../src/components/status/status.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,kCAAkC;YAC/C,KAAK,EAAE;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,MAAM,EAAE;YACN,WAAW,EAAE,+CAA+C;YAC5D,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,YAAY,EAAE;oBACZ,OAAO,EAAE,IAAI;iBACd;aACF;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3E,KAAK,EAAE;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,YAAY,EAAE;oBACZ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,sBAAsB,IAAI,CAAC,KAAK,YAAY,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,MAAM,KAAK,CAAC;AAEpH,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Status',\n tags: ['autodocs'],\n\n args: {\n label: 'text',\n color: 'orange',\n border: true,\n },\n argTypes: {\n label: {\n name: 'Label of Status',\n description: 'Set the label of *<ifx-status>*.',\n table: {\n category: 'ifx-status props',\n type: {\n summary: 'string'\n }\n }\n },\n border: {\n description: 'When set to **true** the status has a border.',\n control: 'boolean',\n attr: 'border',\n table: {\n category: 'ifx-status props',\n defaultValue: {\n summary: true\n }\n }\n },\n color: {\n description: 'Sets the color of the status.',\n control: 'radio',\n options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],\n table: {\n category: 'ifx-status props',\n defaultValue: {\n summary: 'orange'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-status label=\"${args.label}\" color=\"${args.color}\" border=\"${args.border}\"/>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
@@ -2,13 +2,14 @@ import { action } from "@storybook/addon-actions";
2
2
  export default {
3
3
  title: 'Components/Stepper',
4
4
  args: {
5
- activeStep: 2,
6
5
  amountOfSteps: 5,
7
- errorStep: 0,
6
+ activeStep: 2,
8
7
  disabled: false,
9
8
  indicatorPosition: 'left',
10
9
  showStepNumber: false,
11
- variant: 'default'
10
+ variant: 'default',
11
+ error: false,
12
+ completeStep: false,
12
13
  },
13
14
  argTypes: {
14
15
  activeStep: {
@@ -16,31 +17,39 @@ export default {
16
17
  type: 'number',
17
18
  min: 1
18
19
  },
19
- description: 'Indicates the current active step',
20
+ description: 'Indicates the current active step.',
20
21
  table: {
21
- defaultValue: { summary: 1 }
22
+ category: 'ifx-stepper props',
23
+ defaultValue: { summary: 2 }
22
24
  }
23
25
  },
24
26
  amountOfSteps: {
25
- name: 'Amount of steps',
27
+ name: 'Amount of Steps',
26
28
  control: 'number',
27
- description: 'Indicates the number of steps in stepper in a story'
29
+ description: 'Indicates the number of steps in stepper in a story.',
30
+ table: {
31
+ category: 'story controls',
32
+ defaultValue: { summary: 5 }
33
+ }
28
34
  },
29
35
  completeStep: {
30
36
  name: 'complete',
31
- description: 'A boolean prop to mark a step complete.<br>Usage:',
37
+ description: 'A boolean prop to mark one or more steps as complete.<br>Usage:',
38
+ control: 'boolean',
32
39
  table: {
40
+ category: 'ifx-step props',
33
41
  defaultValue: { summary: false },
34
42
  type: {
35
- summary: `<ifx-step complete=true> </ifx-step>`
43
+ summary: 'boolean'
36
44
  }
37
45
  }
38
46
  },
39
47
  disabled: {
40
48
  name: 'disabled',
41
49
  control: 'boolean',
42
- description: 'A boolean prop to make the step unclickable:',
50
+ description: 'A boolean prop to make one or more steps unclickable.',
43
51
  table: {
52
+ category: 'ifx-step props',
44
53
  defaultValue: { summary: false },
45
54
  type: {
46
55
  summary: `<ifx-step disabled=true> </ifx-step>`
@@ -48,37 +57,52 @@ export default {
48
57
  },
49
58
  if: { arg: 'variant', eq: 'default' }
50
59
  },
51
- errorStep: {
52
- name: 'error',
53
- control: 'number',
54
- description: 'Specified step number indicates to have an error',
60
+ error: {
61
+ control: 'boolean',
62
+ description: 'Sets the error state for a step.',
55
63
  table: {
56
- defaultValue: { summary: false }
64
+ category: 'ifx-step props',
65
+ type: {
66
+ summary: 'boolean'
67
+ }
57
68
  },
58
69
  },
59
70
  indicatorPosition: {
60
71
  control: 'radio',
61
72
  defaultValue: { summary: 'left' },
62
- description: 'Allows to swap the progross bar and steps\' label',
73
+ description: 'Allows to swap the progress bar and steps\' label.',
63
74
  options: ['left', 'right'],
64
- if: { arg: 'variant', eq: 'compact' }
75
+ if: { arg: 'variant', eq: 'compact' },
76
+ table: {
77
+ category: 'ifx-stepper props'
78
+ }
65
79
  },
66
80
  showStepNumber: {
67
81
  control: 'boolean',
68
82
  defaultValue: { summary: 'false' },
69
- description: 'Shows the step number when set true',
70
- if: { arg: 'variant', eq: 'default' }
83
+ description: 'Shows the step number when set true.',
84
+ if: { arg: 'variant', eq: 'default' },
85
+ table: {
86
+ category: 'ifx-stepper props'
87
+ }
71
88
  },
72
89
  variant: {
73
90
  options: ['default', 'compact', 'vertical'],
74
91
  defaultValue: { summary: 'default' },
75
- description: 'Allows to switch between default and compact variant',
76
- control: 'radio'
92
+ description: 'Allows to switch between default and compact variant.',
93
+ control: 'radio',
94
+ table: {
95
+ category: 'ifx-stepper props',
96
+ type: {
97
+ summary: 'default | compact | vertical'
98
+ },
99
+ }
77
100
  },
78
101
  ifxChange: {
79
102
  action: 'ifxChange',
80
- description: 'A custom event emitted when active step changes',
103
+ description: 'A custom event emitted when active step changes.',
81
104
  table: {
105
+ category: 'custom events',
82
106
  type: {
83
107
  summary: 'Framework integration',
84
108
  detail: `
@@ -103,10 +127,15 @@ variant=${args.variant}>
103
127
  return Array.from({ length: args.amountOfSteps }, (_, stepId) => {
104
128
  const step = document.createElement('ifx-step');
105
129
  step.innerHTML = `Step Label ${stepId + 1}`;
106
- if (args.errorStep === stepId + 1)
107
- step.setAttribute('error', 'true');
108
- if (args.disabled)
130
+ if (args.disabled && stepId === 0) {
109
131
  step.setAttribute('disabled', 'true');
132
+ }
133
+ if (args.error && stepId === 0) {
134
+ step.setAttribute('error', 'true');
135
+ }
136
+ if (args.completeStep && stepId === 2) {
137
+ step.setAttribute('complete', args.completeStep);
138
+ }
110
139
  return step.outerHTML;
111
140
  }).join(`\n `);
112
141
  })()}
@@ -1 +1 @@
1
- {"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../src/components/stepper/stepper.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAc;IACV,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE;QACF,UAAU,EAAE,CAAC;QACb,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,KAAK;QACf,iBAAiB,EAAE,MAAM;QACzB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,SAAS;KACrB;IACD,QAAQ,EAAE;QACN,UAAU,EAAE;YACR,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,CAAC;aACT;YACD,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE;gBACH,YAAY,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;aAC/B;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,qDAAqD;SACrE;QACD,YAAY,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACH,YAAY,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,aAAa,CAAC,CAAC;IACrD,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACX,OAAO,EAAE,SAAS;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACX,OAAO,EAAE,SAAS;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACZ,OAAO,EAAE,UAAU;CACtB,CAAA","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default{\n title: 'Components/Stepper',\n args: { \n activeStep: 2,\n amountOfSteps: 5,\n errorStep: 0,\n disabled: false,\n indicatorPosition: 'left',\n showStepNumber: false,\n variant: 'default'\n },\n argTypes: {\n activeStep: { \n control: {\n type: 'number',\n min: 1\n }, \n description: 'Indicates the current active step', \n table: {\n defaultValue: { summary: 1 }\n }\n },\n amountOfSteps: { \n name: 'Amount of steps',\n control: 'number', \n description: 'Indicates the number of steps in stepper in a story'\n },\n completeStep: {\n name: 'complete',\n description: 'A boolean prop to mark a step complete.<br>Usage:',\n table: {\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step complete=true> </ifx-step>`\n }\n }\n },\n disabled: {\n name: 'disabled',\n control: 'boolean',\n description: 'A boolean prop to make the step unclickable:',\n table: {\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step disabled=true> </ifx-step>`\n }\n },\n if: { arg:'variant', eq: 'default' }\n },\n errorStep: {\n name: 'error',\n control: 'number',\n description: 'Specified step number indicates to have an error',\n table: {\n defaultValue: { summary: false }\n },\n },\n indicatorPosition: {\n control: 'radio',\n defaultValue: { summary: 'left' },\n description: 'Allows to swap the progross bar and steps\\' label',\n options: ['left', 'right'],\n if: { arg:'variant', eq: 'compact' }\n },\n showStepNumber: { \n control: 'boolean', \n defaultValue: { summary: 'false' },\n description: 'Shows the step number when set true',\n if: { arg: 'variant', eq: 'default' }\n },\n variant: {\n options: ['default', 'compact', 'vertical'],\n defaultValue: { summary: 'default' },\n description: 'Allows to switch between default and compact variant',\n control: 'radio'\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'A custom event emitted when active step changes',\n table: {\n type: {\n summary: 'Framework integration',\n detail: `\nReact: onIfxChange={handleChange}\nVue:@ifxChange=\"handleChange\"\nAngular:(ifxChange)=\"handleChange()\"\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});`,\n }\n }\n }\n }\n}\n\nconst Template = (args) => {\n const wrapper = document.createElement('div');\n wrapper.innerHTML = `\n<ifx-stepper \nactive-step=${args.activeStep} \n${args.variant === 'compact' ? `indicator-position=${args.indicatorPosition}` : ''} \n${args.variant === 'default' ? `show-step-number=${args.showStepNumber}` : ''} \nvariant=${args.variant}>\n ${\n (()=>{\n return Array.from({ length: args.amountOfSteps }, (_, stepId) => {\n const step = document.createElement('ifx-step')\n step.innerHTML = `Step Label ${stepId+1}`\n if (args.errorStep === stepId+1) step.setAttribute('error', 'true')\n if (args.disabled) step.setAttribute('disabled', 'true')\n return step.outerHTML\n }).join(`\\n `)\n })()\n }\n</ifx-stepper>`\n\n const stepper = wrapper.querySelector('ifx-stepper');\n stepper.addEventListener('ifxChange', action('ifxChange'));\n \n return stepper;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n variant: 'default'\n};\n\nexport const Compact = Template.bind({});\nCompact.args = {\n variant: 'compact'\n};\n\nexport const Vertical = Template.bind({});\nVertical.args = {\n variant: 'vertical'\n}\n"]}
1
+ {"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["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,YAAY,CAAC,CAAC;YACrD,CAAC;YACD,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACrB,CAAC,CAAC,EACF;eACO,CAAC;IAEZ,MAAM,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACrD,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACX,OAAO,EAAE,SAAS;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACX,OAAO,EAAE,SAAS;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACZ,OAAO,EAAE,UAAU;CACtB,CAAA","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n title: 'Components/Stepper',\n args: {\n amountOfSteps: 5,\n activeStep: 2,\n disabled: false,\n indicatorPosition: 'left',\n showStepNumber: false,\n variant: 'default',\n error: false,\n completeStep: false,\n },\n argTypes: {\n activeStep: {\n control: {\n type: 'number',\n min: 1\n },\n description: 'Indicates the current active step.',\n table: {\n category: 'ifx-stepper props',\n defaultValue: { summary: 2 }\n }\n },\n amountOfSteps: {\n name: 'Amount of Steps',\n control: 'number',\n description: 'Indicates the number of steps in stepper in a story.',\n table: {\n category: 'story controls',\n defaultValue: { summary: 5 }\n }\n },\n completeStep: {\n name: 'complete',\n description: 'A boolean prop to mark one or more steps as complete.<br>Usage:',\n control: 'boolean',\n table: {\n category: 'ifx-step props',\n defaultValue: { summary: false },\n type: {\n summary: 'boolean'\n }\n }\n },\n disabled: {\n name: 'disabled',\n control: 'boolean',\n description: 'A boolean prop to make one or more steps unclickable.',\n table: {\n category: 'ifx-step props',\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step disabled=true> </ifx-step>`\n }\n },\n if: { arg: 'variant', eq: 'default' }\n },\n error: {\n control: 'boolean',\n description: 'Sets the error state for a step.',\n table: {\n category: 'ifx-step props',\n type: {\n summary: 'boolean'\n }\n },\n },\n indicatorPosition: {\n control: 'radio',\n defaultValue: { summary: 'left' },\n description: 'Allows to swap the progress bar and steps\\' label.',\n options: ['left', 'right'],\n if: { arg: 'variant', eq: 'compact' },\n table: {\n category: 'ifx-stepper props'\n }\n },\n showStepNumber: {\n control: 'boolean',\n defaultValue: { summary: 'false' },\n description: 'Shows the step number when set true.',\n if: { arg: 'variant', eq: 'default' },\n table: {\n category: 'ifx-stepper props'\n }\n },\n variant: {\n options: ['default', 'compact', 'vertical'],\n defaultValue: { summary: 'default' },\n description: 'Allows to switch between default and compact variant.',\n control: 'radio',\n table: {\n category: 'ifx-stepper props',\n type: {\n summary: 'default | compact | vertical'\n },\n }\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'A custom event emitted when active step changes.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail: `\nReact: onIfxChange={handleChange}\nVue:@ifxChange=\"handleChange\"\nAngular:(ifxChange)=\"handleChange()\"\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});`,\n }\n }\n }\n }\n}\n\nconst Template = (args) => {\n const wrapper = document.createElement('div');\n wrapper.innerHTML = `\n<ifx-stepper \nactive-step=${args.activeStep} \n${args.variant === 'compact' ? `indicator-position=${args.indicatorPosition}` : ''} \n${args.variant === 'default' ? `show-step-number=${args.showStepNumber}` : ''} \nvariant=${args.variant}>\n ${(() => {\n return Array.from({ length: args.amountOfSteps }, (_, stepId) => {\n const step = document.createElement('ifx-step');\n step.innerHTML = `Step Label ${stepId + 1}`;\n if (args.disabled && stepId === 0) {\n step.setAttribute('disabled', 'true');\n }\n if (args.error && stepId === 0) {\n step.setAttribute('error', 'true');\n }\n if (args.completeStep && stepId === 2) {\n step.setAttribute('complete', args.completeStep);\n }\n return step.outerHTML;\n }).join(`\\n `)\n })()\n }\n</ifx-stepper>`;\n\n const stepper = wrapper.querySelector('ifx-stepper');\n stepper.addEventListener('ifxChange', action('ifxChange'));\n\n return stepper;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n variant: 'default'\n};\n\nexport const Compact = Template.bind({});\nCompact.args = {\n variant: 'compact'\n};\n\nexport const Vertical = Template.bind({});\nVertical.args = {\n variant: 'vertical'\n}\n"]}
@@ -3,21 +3,67 @@ export default {
3
3
  title: 'Components/Switch',
4
4
  tags: ['autodocs'],
5
5
  args: {
6
- checked: false,
7
6
  label: 'Switch',
7
+ checked: false,
8
8
  name: 'switch',
9
9
  value: 'switch',
10
+ disabled: false,
10
11
  },
11
12
  argTypes: {
13
+ label: {
14
+ name: 'Label of Switch',
15
+ description: 'Set the label of *<ifx-switch>*.',
16
+ table: {
17
+ category: 'story controls',
18
+ }
19
+ },
12
20
  name: {
13
- description: 'Name of the element, that is used as reference when a form is submitted.'
21
+ description: 'Name of the element, that is used as reference when a form is submitted.',
22
+ table: {
23
+ category: 'ifx-switch props',
24
+ type: {
25
+ summary: 'string'
26
+ }
27
+ }
28
+ },
29
+ checked: {
30
+ name: 'checked',
31
+ description: 'Set the checked state of the switch.',
32
+ table: {
33
+ category: 'ifx-switch props',
34
+ defaultValue: {
35
+ summary: 'false'
36
+ },
37
+ type: {
38
+ summary: 'boolean'
39
+ }
40
+ }
14
41
  },
15
42
  value: {
16
- description: 'The value that gets submitted, when the radio button is checked'
43
+ description: 'The value that gets submitted, when the radio button is checked.',
44
+ table: {
45
+ category: 'ifx-switch props',
46
+ type: {
47
+ summary: 'string'
48
+ }
49
+ }
50
+ },
51
+ disabled: {
52
+ description: 'The value that gets submitted, when the radio button is checked.',
53
+ table: {
54
+ category: 'ifx-switch props',
55
+ defaultValue: {
56
+ summary: 'false'
57
+ },
58
+ type: {
59
+ summary: 'boolean'
60
+ }
61
+ }
17
62
  },
18
63
  ifxChange: {
19
- description: 'Custom event emitted on change',
64
+ description: 'Custom event emitted on change.',
20
65
  table: {
66
+ category: 'custom events',
21
67
  type: {
22
68
  summary: 'Framework integration',
23
69
  detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
@@ -33,6 +79,7 @@ const DefaultTemplate = args => {
33
79
  element.setAttribute('checked', args.checked);
34
80
  element.setAttribute('name', args.name);
35
81
  element.setAttribute('value', args.value);
82
+ element.setAttribute('disabled', args.disabled);
36
83
  // Add the event listener
37
84
  // element.addEventListener('ifxChange', action('ifxChange'));
38
85
  // Inside your story, add an event listener for the custom event