@infineon/infineon-design-system-stencil 30.9.3--canary.1679.8d0c83c3f0040ae0386585c5203298c7d94911f3.0 → 30.9.3--canary.1640.c246fbcdce3247ffada7a2fffa49d05593d4088f.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 (960) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +8 -9
  2. package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/ifx-alert.cjs.entry.js +4 -6
  4. package/dist/cjs/ifx-alert.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/ifx-basic-table.cjs.entry.js +3 -7
  7. package/dist/cjs/ifx-basic-table.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +2 -4
  9. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -2
  11. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +4 -4
  13. package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ifx-button.cjs.entry.js +8 -11
  15. package/dist/cjs/ifx-button.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -3
  17. package/dist/cjs/ifx-card-headline.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ifx-card-image.cjs.entry.js +1 -4
  19. package/dist/cjs/ifx-card-image.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
  21. package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
  22. package/dist/cjs/ifx-card-text.cjs.entry.js +1 -2
  23. package/dist/cjs/ifx-card-text.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ifx-card.cjs.entry.js +1 -5
  25. package/dist/cjs/ifx-card.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -4
  27. package/dist/cjs/ifx-checkbox.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ifx-chip_3.cjs.entry.js +24 -27
  29. package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -2
  31. package/dist/cjs/ifx-content-switcher-item.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ifx-content-switcher.cjs.entry.js +2 -3
  33. package/dist/cjs/ifx-content-switcher.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ifx-date-picker.cjs.entry.js +1 -7
  35. package/dist/cjs/ifx-date-picker.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
  37. package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -2
  38. package/dist/cjs/ifx-dropdown-item.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
  40. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +1 -1
  42. package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +1 -3
  43. package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +1 -1
  45. package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ifx-dropdown.cjs.entry.js +4 -4
  47. package/dist/cjs/ifx-dropdown.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ifx-faq.cjs.entry.js +2 -2
  49. package/dist/cjs/ifx-filter-accordion.cjs.entry.js +7 -8
  50. package/dist/cjs/ifx-filter-accordion.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ifx-filter-bar.cjs.entry.js +6 -7
  52. package/dist/cjs/ifx-filter-bar.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ifx-filter-search.cjs.entry.js +3 -7
  54. package/dist/cjs/ifx-filter-search.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ifx-filter-type-group.cjs.entry.js +3 -3
  56. package/dist/cjs/ifx-filter-type-group.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ifx-footer-column.cjs.entry.js +1 -1
  58. package/dist/cjs/ifx-footer.cjs.entry.js +3 -3
  59. package/dist/cjs/ifx-footer.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ifx-icon-button.cjs.entry.js +1 -6
  61. package/dist/cjs/ifx-icon-button.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ifx-icon.cjs.entry.js +1 -2
  63. package/dist/cjs/ifx-icon.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -2
  65. package/dist/cjs/ifx-icons-preview.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ifx-link.cjs.entry.js +1 -2
  67. package/dist/cjs/ifx-link.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ifx-list-entry.cjs.entry.js +2 -5
  69. package/dist/cjs/ifx-list-entry.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ifx-list.cjs.entry.js +9 -10
  71. package/dist/cjs/ifx-list.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ifx-modal.cjs.entry.js +20 -20
  73. package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ifx-multiselect_2.cjs.entry.js +28 -34
  75. package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ifx-navbar-item.cjs.entry.js +1 -2
  77. package/dist/cjs/ifx-navbar-item.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ifx-navbar-profile.cjs.entry.js +5 -5
  79. package/dist/cjs/ifx-navbar-profile.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ifx-navbar.cjs.entry.js +4 -5
  81. package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ifx-notification.cjs.entry.js +1 -4
  83. package/dist/cjs/ifx-notification.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
  85. package/dist/cjs/ifx-number-indicator.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ifx-overview-table.cjs.entry.js +2 -2
  87. package/dist/cjs/ifx-overview-table.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ifx-progress-bar.cjs.entry.js +2 -4
  89. package/dist/cjs/ifx-progress-bar.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ifx-radio-button.cjs.entry.js +3 -7
  91. package/dist/cjs/ifx-radio-button.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ifx-search-bar.cjs.entry.js +8 -11
  93. package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ifx-search-field.cjs.entry.js +11 -11
  95. package/dist/cjs/ifx-search-field.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ifx-segment.cjs.entry.js +2 -5
  97. package/dist/cjs/ifx-segment.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ifx-segmented-control.cjs.entry.js +4 -4
  99. package/dist/cjs/ifx-segmented-control.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ifx-select.cjs.entry.js +5 -47
  101. package/dist/cjs/ifx-select.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ifx-set-filter.cjs.entry.js +1 -5
  103. package/dist/cjs/ifx-set-filter.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +12 -15
  105. package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
  107. package/dist/cjs/ifx-sidebar.cjs.entry.js +1 -1
  108. package/dist/cjs/ifx-sidebar.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ifx-slider.cjs.entry.js +3 -10
  110. package/dist/cjs/ifx-slider.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ifx-spinner.cjs.entry.js +3 -5
  112. package/dist/cjs/ifx-spinner.cjs.entry.js.map +1 -1
  113. package/dist/cjs/ifx-status.cjs.entry.js +2 -3
  114. package/dist/cjs/ifx-status.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ifx-step.cjs.entry.js +5 -6
  116. package/dist/cjs/ifx-step.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ifx-stepper.cjs.entry.js +3 -4
  118. package/dist/cjs/ifx-stepper.cjs.entry.js.map +1 -1
  119. package/dist/cjs/ifx-switch.cjs.entry.js +2 -3
  120. package/dist/cjs/ifx-switch.cjs.entry.js.map +1 -1
  121. package/dist/cjs/ifx-tab.cjs.entry.js +2 -4
  122. package/dist/cjs/ifx-tab.cjs.entry.js.map +1 -1
  123. package/dist/cjs/ifx-table.cjs.entry.js +26 -28
  124. package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
  125. package/dist/cjs/ifx-tabs.cjs.entry.js +7 -8
  126. package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
  127. package/dist/cjs/ifx-tag.cjs.entry.js +2 -3
  128. package/dist/cjs/ifx-tag.cjs.entry.js.map +1 -1
  129. package/dist/cjs/ifx-textarea.cjs.entry.js +3 -11
  130. package/dist/cjs/ifx-textarea.cjs.entry.js.map +1 -1
  131. package/dist/cjs/ifx-tooltip.cjs.entry.js +11 -12
  132. package/dist/cjs/ifx-tooltip.cjs.entry.js.map +1 -1
  133. package/dist/cjs/{index-af3b4f6c.js → index-a6167356.js} +125 -99
  134. package/dist/cjs/index-a6167356.js.map +1 -0
  135. package/dist/cjs/infineon-design-system-stencil.cjs.js +3 -3
  136. package/dist/cjs/infineon-design-system-stencil.cjs.js.map +1 -1
  137. package/dist/cjs/loader.cjs.js +2 -2
  138. package/dist/collection/collection-manifest.json +1 -1
  139. package/dist/collection/components/accordion/accordion.js +2 -2
  140. package/dist/collection/components/accordion/accordion.js.map +1 -1
  141. package/dist/collection/components/accordion/accordion.stories.js +81 -7
  142. package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
  143. package/dist/collection/components/accordion/accordionItem.js +10 -11
  144. package/dist/collection/components/accordion/accordionItem.js.map +1 -1
  145. package/dist/collection/components/alert/alert.js +3 -5
  146. package/dist/collection/components/alert/alert.js.map +1 -1
  147. package/dist/collection/components/alert/alert.stories.js +45 -12
  148. package/dist/collection/components/alert/alert.stories.js.map +1 -1
  149. package/dist/collection/components/badge/badge.stories.js +28 -7
  150. package/dist/collection/components/badge/badge.stories.js.map +1 -1
  151. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +3 -5
  152. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js.map +1 -1
  153. package/dist/collection/components/breadcrumb/breadcrumb-item.js +0 -1
  154. package/dist/collection/components/breadcrumb/breadcrumb-item.js.map +1 -1
  155. package/dist/collection/components/breadcrumb/breadcrumb.js +3 -3
  156. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
  157. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +87 -13
  158. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
  159. package/dist/collection/components/button/button.js +7 -10
  160. package/dist/collection/components/button/button.js.map +1 -1
  161. package/dist/collection/components/button/button.stories.js +101 -9
  162. package/dist/collection/components/button/button.stories.js.map +1 -1
  163. package/dist/collection/components/card/card-headline/card-headline.js +0 -4
  164. package/dist/collection/components/card/card-headline/card-headline.js.map +1 -1
  165. package/dist/collection/components/card/card-image/card-image.js +0 -5
  166. package/dist/collection/components/card/card-image/card-image.js.map +1 -1
  167. package/dist/collection/components/card/card-text/card-text.js +0 -3
  168. package/dist/collection/components/card/card-text/card-text.js.map +1 -1
  169. package/dist/collection/components/card/card.js +0 -4
  170. package/dist/collection/components/card/card.js.map +1 -1
  171. package/dist/collection/components/card/card.stories.js +85 -4
  172. package/dist/collection/components/card/card.stories.js.map +1 -1
  173. package/dist/collection/components/checkbox/checkbox.js +0 -3
  174. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  175. package/dist/collection/components/checkbox/checkbox.stories.js +72 -14
  176. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
  177. package/dist/collection/components/chip/chip-item/chip-item.js +4 -4
  178. package/dist/collection/components/chip/chip-item/chip-item.js.map +1 -1
  179. package/dist/collection/components/chip/chip.js +15 -16
  180. package/dist/collection/components/chip/chip.js.map +1 -1
  181. package/dist/collection/components/chip/chip.stories.js +21 -26
  182. package/dist/collection/components/chip/chip.stories.js.map +1 -1
  183. package/dist/collection/components/chip/interfaces.js.map +1 -1
  184. package/dist/collection/components/content-switcher/content-switcher-item.js +0 -1
  185. package/dist/collection/components/content-switcher/content-switcher-item.js.map +1 -1
  186. package/dist/collection/components/content-switcher/content-switcher.js +1 -2
  187. package/dist/collection/components/content-switcher/content-switcher.js.map +1 -1
  188. package/dist/collection/components/content-switcher/content-switcher.stories.js +65 -3
  189. package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
  190. package/dist/collection/components/date-picker/date-picker.js +0 -6
  191. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  192. package/dist/collection/components/date-picker/date-picker.stories.js +97 -7
  193. package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
  194. package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +0 -1
  195. package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js.map +1 -1
  196. package/dist/collection/components/dropdown/dropdown-menu/dropdown-menu.js.map +1 -1
  197. package/dist/collection/components/dropdown/dropdown-trigger/dropdown-trigger.js.map +1 -1
  198. package/dist/collection/components/dropdown/dropdown-trigger-button/dropdown-trigger-button.js +0 -2
  199. package/dist/collection/components/dropdown/dropdown-trigger-button/dropdown-trigger-button.js.map +1 -1
  200. package/dist/collection/components/dropdown/dropdown.js +3 -3
  201. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  202. package/dist/collection/components/dropdown/dropdown.stories.js +222 -64
  203. package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
  204. package/dist/collection/components/footer/footer.js +2 -2
  205. package/dist/collection/components/footer/footer.js.map +1 -1
  206. package/dist/collection/components/footer/footer.stories.js +31 -1
  207. package/dist/collection/components/footer/footer.stories.js.map +1 -1
  208. package/dist/collection/components/icon/infineonIconStencil.js +0 -1
  209. package/dist/collection/components/icon/infineonIconStencil.js.map +1 -1
  210. package/dist/collection/components/icon/infineonIconStencil.stories.js +7 -2
  211. package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
  212. package/dist/collection/components/icon-button/icon-button.js +0 -5
  213. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  214. package/dist/collection/components/icon-button/icon-button.stories.js +61 -5
  215. package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
  216. package/dist/collection/components/icons-preview/icons-preview.js +0 -1
  217. package/dist/collection/components/icons-preview/icons-preview.js.map +1 -1
  218. package/dist/collection/components/link/link.js +0 -1
  219. package/dist/collection/components/link/link.js.map +1 -1
  220. package/dist/collection/components/link/link.stories.js +53 -4
  221. package/dist/collection/components/link/link.stories.js.map +1 -1
  222. package/dist/collection/components/modal/modal.js +21 -21
  223. package/dist/collection/components/modal/modal.js.map +1 -1
  224. package/dist/collection/components/modal/modal.stories.js +96 -19
  225. package/dist/collection/components/modal/modal.stories.js.map +1 -1
  226. package/dist/collection/components/navigation/navbar/navbar-item.js +0 -1
  227. package/dist/collection/components/navigation/navbar/navbar-item.js.map +1 -1
  228. package/dist/collection/components/navigation/navbar/navbar-profile.js +4 -4
  229. package/dist/collection/components/navigation/navbar/navbar-profile.js.map +1 -1
  230. package/dist/collection/components/navigation/navbar/navbar.js +4 -5
  231. package/dist/collection/components/navigation/navbar/navbar.js.map +1 -1
  232. package/dist/collection/components/navigation/navbar/navbar.stories.js +176 -12
  233. package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
  234. package/dist/collection/components/navigation/sidebar/sidebar-item.js +13 -36
  235. package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
  236. package/dist/collection/components/navigation/sidebar/sidebar.js.map +1 -1
  237. package/dist/collection/components/navigation/sidebar/sidebar.stories.js +184 -19
  238. package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
  239. package/dist/collection/components/notification/notification.js +0 -3
  240. package/dist/collection/components/notification/notification.js.map +1 -1
  241. package/dist/collection/components/notification/notification.stories.js +55 -8
  242. package/dist/collection/components/notification/notification.stories.js.map +1 -1
  243. package/dist/collection/components/number-indicator/number-indicator.js.map +1 -1
  244. package/dist/collection/components/number-indicator/number-indicator.stories.js +19 -0
  245. package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
  246. package/dist/collection/components/overview-table/overview-table.js +1 -1
  247. package/dist/collection/components/overview-table/overview-table.js.map +1 -1
  248. package/dist/collection/components/pagination/pagination.js +5 -35
  249. package/dist/collection/components/pagination/pagination.js.map +1 -1
  250. package/dist/collection/components/pagination/pagination.stories.js +19 -14
  251. package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
  252. package/dist/collection/components/progress-bar/progress-bar.js +1 -3
  253. package/dist/collection/components/progress-bar/progress-bar.js.map +1 -1
  254. package/dist/collection/components/progress-bar/progress-bar.stories.js +31 -8
  255. package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
  256. package/dist/collection/components/radio-button/radio-button.js +2 -6
  257. package/dist/collection/components/radio-button/radio-button.js.map +1 -1
  258. package/dist/collection/components/radio-button/radio-button.stories.js +66 -13
  259. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
  260. package/dist/collection/components/search-bar/search-bar.js +8 -11
  261. package/dist/collection/components/search-bar/search-bar.js.map +1 -1
  262. package/dist/collection/components/search-bar/search-bar.stories.js +58 -9
  263. package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
  264. package/dist/collection/components/search-field/search-field.js +10 -10
  265. package/dist/collection/components/search-field/search-field.js.map +1 -1
  266. package/dist/collection/components/search-field/search-field.stories.js +54 -8
  267. package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
  268. package/dist/collection/components/segmented-control/segment/segment.js +1 -4
  269. package/dist/collection/components/segmented-control/segment/segment.js.map +1 -1
  270. package/dist/collection/components/segmented-control/segmented-control.js +3 -3
  271. package/dist/collection/components/segmented-control/segmented-control.js.map +1 -1
  272. package/dist/collection/components/segmented-control/segmented-control.stories.js +1 -10
  273. package/dist/collection/components/segmented-control/segmented-control.stories.js.map +1 -1
  274. package/dist/collection/components/select/multi-select/multiselect.js +24 -29
  275. package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
  276. package/dist/collection/components/select/multi-select/multiselect.stories.js +131 -5
  277. package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
  278. package/dist/collection/components/select/single-select/select.js +4 -46
  279. package/dist/collection/components/select/single-select/select.js.map +1 -1
  280. package/dist/collection/components/select/single-select/select.stories.js +83 -26
  281. package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
  282. package/dist/collection/components/slider/slider.js +2 -9
  283. package/dist/collection/components/slider/slider.js.map +1 -1
  284. package/dist/collection/components/slider/slider.stories.js +97 -13
  285. package/dist/collection/components/slider/slider.stories.js.map +1 -1
  286. package/dist/collection/components/spinner/spinner.js +2 -4
  287. package/dist/collection/components/spinner/spinner.js.map +1 -1
  288. package/dist/collection/components/spinner/spinner.stories.js +34 -2
  289. package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
  290. package/dist/collection/components/status/status.js +1 -2
  291. package/dist/collection/components/status/status.js.map +1 -1
  292. package/dist/collection/components/status/status.stories.js +25 -1
  293. package/dist/collection/components/status/status.stories.js.map +1 -1
  294. package/dist/collection/components/stepper/step/step.js +4 -5
  295. package/dist/collection/components/stepper/step/step.js.map +1 -1
  296. package/dist/collection/components/stepper/stepper.js +2 -3
  297. package/dist/collection/components/stepper/stepper.js.map +1 -1
  298. package/dist/collection/components/stepper/stepper.stories.js +54 -25
  299. package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
  300. package/dist/collection/components/switch/switch.js +1 -2
  301. package/dist/collection/components/switch/switch.js.map +1 -1
  302. package/dist/collection/components/switch/switch.stories.js +51 -4
  303. package/dist/collection/components/switch/switch.stories.js.map +1 -1
  304. package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +5 -6
  305. package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js.map +1 -1
  306. package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +6 -7
  307. package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js.map +1 -1
  308. package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +2 -6
  309. package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js.map +1 -1
  310. package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +2 -2
  311. package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js.map +1 -1
  312. package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -6
  313. package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js.map +1 -1
  314. package/dist/collection/components/table-advanced-version/list/list.js +8 -9
  315. package/dist/collection/components/table-advanced-version/list/list.js.map +1 -1
  316. package/dist/collection/components/table-advanced-version/set-filter/setFilter.js +0 -4
  317. package/dist/collection/components/table-advanced-version/set-filter/setFilter.js.map +1 -1
  318. package/dist/collection/components/table-advanced-version/table.js +26 -28
  319. package/dist/collection/components/table-advanced-version/table.js.map +1 -1
  320. package/dist/collection/components/table-advanced-version/table.stories.js +124 -39
  321. package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
  322. package/dist/collection/components/table-basic-version/table.js +2 -6
  323. package/dist/collection/components/table-basic-version/table.js.map +1 -1
  324. package/dist/collection/components/table-basic-version/table.stories.js +31 -4
  325. package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
  326. package/dist/collection/components/tabs/tab.js +1 -3
  327. package/dist/collection/components/tabs/tab.js.map +1 -1
  328. package/dist/collection/components/tabs/tabs.js +7 -8
  329. package/dist/collection/components/tabs/tabs.js.map +1 -1
  330. package/dist/collection/components/tabs/tabs.stories.js +104 -29
  331. package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
  332. package/dist/collection/components/tag/tag.js +1 -4
  333. package/dist/collection/components/tag/tag.js.map +1 -1
  334. package/dist/collection/components/tag/tag.stories.js +18 -0
  335. package/dist/collection/components/tag/tag.stories.js.map +1 -1
  336. package/dist/collection/components/text-field/text-field.js +4 -5
  337. package/dist/collection/components/text-field/text-field.js.map +1 -1
  338. package/dist/collection/components/text-field/text-field.stories.js +116 -13
  339. package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
  340. package/dist/collection/components/textarea/textarea.js +2 -10
  341. package/dist/collection/components/textarea/textarea.js.map +1 -1
  342. package/dist/collection/components/textarea/textarea.stories.js +1 -3
  343. package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
  344. package/dist/collection/components/tooltip/tooltip.js +10 -11
  345. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  346. package/dist/collection/components/tooltip/tooltip.stories.js +48 -4
  347. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
  348. package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
  349. package/dist/components/ifx-accordion-item.js +1 -1
  350. package/dist/components/ifx-accordion.js +1 -1
  351. package/dist/components/ifx-alert.js +5 -7
  352. package/dist/components/ifx-alert.js.map +1 -1
  353. package/dist/components/ifx-badge.js +1 -1
  354. package/dist/components/ifx-basic-table.js +3 -7
  355. package/dist/components/ifx-basic-table.js.map +1 -1
  356. package/dist/components/ifx-breadcrumb-item-label.js +4 -6
  357. package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
  358. package/dist/components/ifx-breadcrumb-item.js +1 -2
  359. package/dist/components/ifx-breadcrumb-item.js.map +1 -1
  360. package/dist/components/ifx-breadcrumb.js +4 -4
  361. package/dist/components/ifx-breadcrumb.js.map +1 -1
  362. package/dist/components/ifx-button.js +1 -1
  363. package/dist/components/ifx-card-headline.js +1 -3
  364. package/dist/components/ifx-card-headline.js.map +1 -1
  365. package/dist/components/ifx-card-image.js +1 -4
  366. package/dist/components/ifx-card-image.js.map +1 -1
  367. package/dist/components/ifx-card-links.js +1 -1
  368. package/dist/components/ifx-card-overline.js +1 -1
  369. package/dist/components/ifx-card-text.js +1 -2
  370. package/dist/components/ifx-card-text.js.map +1 -1
  371. package/dist/components/ifx-card.js +1 -5
  372. package/dist/components/ifx-card.js.map +1 -1
  373. package/dist/components/ifx-checkbox.js +1 -1
  374. package/dist/components/ifx-chip-item.js +1 -1
  375. package/dist/components/ifx-chip.js +1 -1
  376. package/dist/components/ifx-content-switcher-item.js +1 -2
  377. package/dist/components/ifx-content-switcher-item.js.map +1 -1
  378. package/dist/components/ifx-content-switcher.js +2 -3
  379. package/dist/components/ifx-content-switcher.js.map +1 -1
  380. package/dist/components/ifx-date-picker.js +2 -8
  381. package/dist/components/ifx-date-picker.js.map +1 -1
  382. package/dist/components/ifx-dropdown-header.js +1 -1
  383. package/dist/components/ifx-dropdown-item.js +2 -3
  384. package/dist/components/ifx-dropdown-item.js.map +1 -1
  385. package/dist/components/ifx-dropdown-menu.js +1 -1
  386. package/dist/components/ifx-dropdown-menu.js.map +1 -1
  387. package/dist/components/ifx-dropdown-separator.js +1 -1
  388. package/dist/components/ifx-dropdown-trigger-button.js +3 -5
  389. package/dist/components/ifx-dropdown-trigger-button.js.map +1 -1
  390. package/dist/components/ifx-dropdown-trigger.js +1 -1
  391. package/dist/components/ifx-dropdown-trigger.js.map +1 -1
  392. package/dist/components/ifx-dropdown.js +4 -4
  393. package/dist/components/ifx-dropdown.js.map +1 -1
  394. package/dist/components/ifx-faq.js +5 -5
  395. package/dist/components/ifx-filter-accordion.js +9 -10
  396. package/dist/components/ifx-filter-accordion.js.map +1 -1
  397. package/dist/components/ifx-filter-bar.js +8 -9
  398. package/dist/components/ifx-filter-bar.js.map +1 -1
  399. package/dist/components/ifx-filter-search.js +5 -9
  400. package/dist/components/ifx-filter-search.js.map +1 -1
  401. package/dist/components/ifx-filter-type-group.js +3 -3
  402. package/dist/components/ifx-filter-type-group.js.map +1 -1
  403. package/dist/components/ifx-footer-column.js +1 -1
  404. package/dist/components/ifx-footer.js +3 -3
  405. package/dist/components/ifx-footer.js.map +1 -1
  406. package/dist/components/ifx-icon-button.js +1 -1
  407. package/dist/components/ifx-icon.js +1 -1
  408. package/dist/components/ifx-icons-preview.js +2 -3
  409. package/dist/components/ifx-icons-preview.js.map +1 -1
  410. package/dist/components/ifx-link.js +1 -1
  411. package/dist/components/ifx-list-entry.js +5 -8
  412. package/dist/components/ifx-list-entry.js.map +1 -1
  413. package/dist/components/ifx-list.js +11 -12
  414. package/dist/components/ifx-list.js.map +1 -1
  415. package/dist/components/ifx-modal.js +22 -22
  416. package/dist/components/ifx-modal.js.map +1 -1
  417. package/dist/components/ifx-multiselect.js +1 -1
  418. package/dist/components/ifx-navbar-item.js +2 -3
  419. package/dist/components/ifx-navbar-item.js.map +1 -1
  420. package/dist/components/ifx-navbar-profile.js +5 -5
  421. package/dist/components/ifx-navbar-profile.js.map +1 -1
  422. package/dist/components/ifx-navbar.js +6 -7
  423. package/dist/components/ifx-navbar.js.map +1 -1
  424. package/dist/components/ifx-notification.js +3 -6
  425. package/dist/components/ifx-notification.js.map +1 -1
  426. package/dist/components/ifx-number-indicator.js +1 -1
  427. package/dist/components/ifx-overview-table.js +5 -5
  428. package/dist/components/ifx-overview-table.js.map +1 -1
  429. package/dist/components/ifx-pagination.js +1 -1
  430. package/dist/components/ifx-progress-bar.js +2 -4
  431. package/dist/components/ifx-progress-bar.js.map +1 -1
  432. package/dist/components/ifx-radio-button.js +1 -1
  433. package/dist/components/ifx-search-bar.js +10 -13
  434. package/dist/components/ifx-search-bar.js.map +1 -1
  435. package/dist/components/ifx-search-field.js +1 -1
  436. package/dist/components/ifx-segment.js +3 -6
  437. package/dist/components/ifx-segment.js.map +1 -1
  438. package/dist/components/ifx-segmented-control.js +5 -5
  439. package/dist/components/ifx-segmented-control.js.map +1 -1
  440. package/dist/components/ifx-select.js +1 -1
  441. package/dist/components/ifx-set-filter.js +7 -11
  442. package/dist/components/ifx-set-filter.js.map +1 -1
  443. package/dist/components/ifx-sidebar-item.js +16 -20
  444. package/dist/components/ifx-sidebar-item.js.map +1 -1
  445. package/dist/components/ifx-sidebar-title.js +1 -1
  446. package/dist/components/ifx-sidebar.js +1 -1
  447. package/dist/components/ifx-sidebar.js.map +1 -1
  448. package/dist/components/ifx-slider.js +4 -11
  449. package/dist/components/ifx-slider.js.map +1 -1
  450. package/dist/components/ifx-spinner.js +3 -5
  451. package/dist/components/ifx-spinner.js.map +1 -1
  452. package/dist/components/ifx-status.js +2 -3
  453. package/dist/components/ifx-status.js.map +1 -1
  454. package/dist/components/ifx-step.js +6 -7
  455. package/dist/components/ifx-step.js.map +1 -1
  456. package/dist/components/ifx-stepper.js +3 -4
  457. package/dist/components/ifx-stepper.js.map +1 -1
  458. package/dist/components/ifx-switch.js +2 -3
  459. package/dist/components/ifx-switch.js.map +1 -1
  460. package/dist/components/ifx-tab.js +2 -4
  461. package/dist/components/ifx-tab.js.map +1 -1
  462. package/dist/components/ifx-table.js +36 -38
  463. package/dist/components/ifx-table.js.map +1 -1
  464. package/dist/components/ifx-tabs.js +8 -9
  465. package/dist/components/ifx-tabs.js.map +1 -1
  466. package/dist/components/ifx-tag.js +3 -4
  467. package/dist/components/ifx-tag.js.map +1 -1
  468. package/dist/components/ifx-text-field.js +1 -1
  469. package/dist/components/ifx-textarea.js +3 -11
  470. package/dist/components/ifx-textarea.js.map +1 -1
  471. package/dist/components/ifx-tooltip.js +12 -13
  472. package/dist/components/ifx-tooltip.js.map +1 -1
  473. package/dist/components/index.js +1 -1
  474. package/dist/components/{p-7e430b83.js → p-06410557.js} +2 -3
  475. package/dist/components/p-06410557.js.map +1 -0
  476. package/dist/components/{p-63edb8e2.js → p-0b837c89.js} +13 -13
  477. package/dist/components/p-0b837c89.js.map +1 -0
  478. package/dist/components/{p-2f603818.js → p-0c4e0d19.js} +7 -49
  479. package/dist/components/p-0c4e0d19.js.map +1 -0
  480. package/dist/components/{p-e181fc5c.js → p-0d19a0d8.js} +4 -8
  481. package/dist/components/p-0d19a0d8.js.map +1 -0
  482. package/dist/components/{p-f9cdecb2.js → p-28a8736e.js} +10 -12
  483. package/dist/components/p-28a8736e.js.map +1 -0
  484. package/dist/components/{p-c1f3a68c.js → p-61ecfa9a.js} +18 -19
  485. package/dist/components/p-61ecfa9a.js.map +1 -0
  486. package/dist/components/{p-b2439194.js → p-62eff23e.js} +10 -11
  487. package/dist/components/p-62eff23e.js.map +1 -0
  488. package/dist/components/{p-cfb87c4d.js → p-8b176518.js} +2 -3
  489. package/dist/components/p-8b176518.js.map +1 -0
  490. package/dist/components/{p-9ee4ea24.js → p-90fa0583.js} +2 -2
  491. package/dist/components/p-90fa0583.js.map +1 -0
  492. package/dist/components/{p-03181918.js → p-9ddd1223.js} +7 -8
  493. package/dist/components/p-9ddd1223.js.map +1 -0
  494. package/dist/components/{p-094bb435.js → p-a6310ccf.js} +4 -4
  495. package/dist/components/p-a6310ccf.js.map +1 -0
  496. package/dist/components/{p-68d90201.js → p-a99edff1.js} +126 -98
  497. package/dist/components/p-a99edff1.js.map +1 -0
  498. package/dist/components/{p-f0f583d5.js → p-b4ee6732.js} +3 -6
  499. package/dist/components/p-b4ee6732.js.map +1 -0
  500. package/dist/components/{p-4b3befbf.js → p-b62da6f0.js} +2 -2
  501. package/dist/components/{p-4b3befbf.js.map → p-b62da6f0.js.map} +1 -1
  502. package/dist/components/{p-d0a26bd5.js → p-d2197368.js} +9 -12
  503. package/dist/components/p-d2197368.js.map +1 -0
  504. package/dist/components/{p-8eed2f39.js → p-d454dd1b.js} +3 -8
  505. package/dist/components/p-d454dd1b.js.map +1 -0
  506. package/dist/components/{p-23cdd5a7.js → p-dd91260d.js} +8 -8
  507. package/dist/components/p-dd91260d.js.map +1 -0
  508. package/dist/components/{p-04b73e62.js → p-fce5491f.js} +28 -33
  509. package/dist/components/p-fce5491f.js.map +1 -0
  510. package/dist/esm/ifx-accordion_2.entry.js +8 -9
  511. package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
  512. package/dist/esm/ifx-alert.entry.js +4 -6
  513. package/dist/esm/ifx-alert.entry.js.map +1 -1
  514. package/dist/esm/ifx-badge.entry.js +1 -1
  515. package/dist/esm/ifx-basic-table.entry.js +3 -7
  516. package/dist/esm/ifx-basic-table.entry.js.map +1 -1
  517. package/dist/esm/ifx-breadcrumb-item-label.entry.js +2 -4
  518. package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
  519. package/dist/esm/ifx-breadcrumb-item.entry.js +1 -2
  520. package/dist/esm/ifx-breadcrumb-item.entry.js.map +1 -1
  521. package/dist/esm/ifx-breadcrumb.entry.js +4 -4
  522. package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
  523. package/dist/esm/ifx-button.entry.js +8 -11
  524. package/dist/esm/ifx-button.entry.js.map +1 -1
  525. package/dist/esm/ifx-card-headline.entry.js +1 -3
  526. package/dist/esm/ifx-card-headline.entry.js.map +1 -1
  527. package/dist/esm/ifx-card-image.entry.js +1 -4
  528. package/dist/esm/ifx-card-image.entry.js.map +1 -1
  529. package/dist/esm/ifx-card-links.entry.js +1 -1
  530. package/dist/esm/ifx-card-overline.entry.js +1 -1
  531. package/dist/esm/ifx-card-text.entry.js +1 -2
  532. package/dist/esm/ifx-card-text.entry.js.map +1 -1
  533. package/dist/esm/ifx-card.entry.js +1 -5
  534. package/dist/esm/ifx-card.entry.js.map +1 -1
  535. package/dist/esm/ifx-checkbox.entry.js +1 -4
  536. package/dist/esm/ifx-checkbox.entry.js.map +1 -1
  537. package/dist/esm/ifx-chip_3.entry.js +24 -27
  538. package/dist/esm/ifx-chip_3.entry.js.map +1 -1
  539. package/dist/esm/ifx-content-switcher-item.entry.js +1 -2
  540. package/dist/esm/ifx-content-switcher-item.entry.js.map +1 -1
  541. package/dist/esm/ifx-content-switcher.entry.js +2 -3
  542. package/dist/esm/ifx-content-switcher.entry.js.map +1 -1
  543. package/dist/esm/ifx-date-picker.entry.js +1 -7
  544. package/dist/esm/ifx-date-picker.entry.js.map +1 -1
  545. package/dist/esm/ifx-dropdown-header.entry.js +1 -1
  546. package/dist/esm/ifx-dropdown-item.entry.js +1 -2
  547. package/dist/esm/ifx-dropdown-item.entry.js.map +1 -1
  548. package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
  549. package/dist/esm/ifx-dropdown-menu.entry.js.map +1 -1
  550. package/dist/esm/ifx-dropdown-separator.entry.js +1 -1
  551. package/dist/esm/ifx-dropdown-trigger-button.entry.js +1 -3
  552. package/dist/esm/ifx-dropdown-trigger-button.entry.js.map +1 -1
  553. package/dist/esm/ifx-dropdown-trigger.entry.js +1 -1
  554. package/dist/esm/ifx-dropdown-trigger.entry.js.map +1 -1
  555. package/dist/esm/ifx-dropdown.entry.js +4 -4
  556. package/dist/esm/ifx-dropdown.entry.js.map +1 -1
  557. package/dist/esm/ifx-faq.entry.js +2 -2
  558. package/dist/esm/ifx-filter-accordion.entry.js +7 -8
  559. package/dist/esm/ifx-filter-accordion.entry.js.map +1 -1
  560. package/dist/esm/ifx-filter-bar.entry.js +6 -7
  561. package/dist/esm/ifx-filter-bar.entry.js.map +1 -1
  562. package/dist/esm/ifx-filter-search.entry.js +3 -7
  563. package/dist/esm/ifx-filter-search.entry.js.map +1 -1
  564. package/dist/esm/ifx-filter-type-group.entry.js +3 -3
  565. package/dist/esm/ifx-filter-type-group.entry.js.map +1 -1
  566. package/dist/esm/ifx-footer-column.entry.js +1 -1
  567. package/dist/esm/ifx-footer.entry.js +3 -3
  568. package/dist/esm/ifx-footer.entry.js.map +1 -1
  569. package/dist/esm/ifx-icon-button.entry.js +1 -6
  570. package/dist/esm/ifx-icon-button.entry.js.map +1 -1
  571. package/dist/esm/ifx-icon.entry.js +1 -2
  572. package/dist/esm/ifx-icon.entry.js.map +1 -1
  573. package/dist/esm/ifx-icons-preview.entry.js +1 -2
  574. package/dist/esm/ifx-icons-preview.entry.js.map +1 -1
  575. package/dist/esm/ifx-link.entry.js +1 -2
  576. package/dist/esm/ifx-link.entry.js.map +1 -1
  577. package/dist/esm/ifx-list-entry.entry.js +2 -5
  578. package/dist/esm/ifx-list-entry.entry.js.map +1 -1
  579. package/dist/esm/ifx-list.entry.js +9 -10
  580. package/dist/esm/ifx-list.entry.js.map +1 -1
  581. package/dist/esm/ifx-modal.entry.js +20 -20
  582. package/dist/esm/ifx-modal.entry.js.map +1 -1
  583. package/dist/esm/ifx-multiselect_2.entry.js +28 -34
  584. package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
  585. package/dist/esm/ifx-navbar-item.entry.js +1 -2
  586. package/dist/esm/ifx-navbar-item.entry.js.map +1 -1
  587. package/dist/esm/ifx-navbar-profile.entry.js +5 -5
  588. package/dist/esm/ifx-navbar-profile.entry.js.map +1 -1
  589. package/dist/esm/ifx-navbar.entry.js +4 -5
  590. package/dist/esm/ifx-navbar.entry.js.map +1 -1
  591. package/dist/esm/ifx-notification.entry.js +1 -4
  592. package/dist/esm/ifx-notification.entry.js.map +1 -1
  593. package/dist/esm/ifx-number-indicator.entry.js +1 -1
  594. package/dist/esm/ifx-number-indicator.entry.js.map +1 -1
  595. package/dist/esm/ifx-overview-table.entry.js +2 -2
  596. package/dist/esm/ifx-overview-table.entry.js.map +1 -1
  597. package/dist/esm/ifx-progress-bar.entry.js +2 -4
  598. package/dist/esm/ifx-progress-bar.entry.js.map +1 -1
  599. package/dist/esm/ifx-radio-button.entry.js +3 -7
  600. package/dist/esm/ifx-radio-button.entry.js.map +1 -1
  601. package/dist/esm/ifx-search-bar.entry.js +8 -11
  602. package/dist/esm/ifx-search-bar.entry.js.map +1 -1
  603. package/dist/esm/ifx-search-field.entry.js +11 -11
  604. package/dist/esm/ifx-search-field.entry.js.map +1 -1
  605. package/dist/esm/ifx-segment.entry.js +2 -5
  606. package/dist/esm/ifx-segment.entry.js.map +1 -1
  607. package/dist/esm/ifx-segmented-control.entry.js +4 -4
  608. package/dist/esm/ifx-segmented-control.entry.js.map +1 -1
  609. package/dist/esm/ifx-select.entry.js +5 -47
  610. package/dist/esm/ifx-select.entry.js.map +1 -1
  611. package/dist/esm/ifx-set-filter.entry.js +1 -5
  612. package/dist/esm/ifx-set-filter.entry.js.map +1 -1
  613. package/dist/esm/ifx-sidebar-item.entry.js +12 -15
  614. package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
  615. package/dist/esm/ifx-sidebar-title.entry.js +1 -1
  616. package/dist/esm/ifx-sidebar.entry.js +1 -1
  617. package/dist/esm/ifx-sidebar.entry.js.map +1 -1
  618. package/dist/esm/ifx-slider.entry.js +3 -10
  619. package/dist/esm/ifx-slider.entry.js.map +1 -1
  620. package/dist/esm/ifx-spinner.entry.js +3 -5
  621. package/dist/esm/ifx-spinner.entry.js.map +1 -1
  622. package/dist/esm/ifx-status.entry.js +2 -3
  623. package/dist/esm/ifx-status.entry.js.map +1 -1
  624. package/dist/esm/ifx-step.entry.js +5 -6
  625. package/dist/esm/ifx-step.entry.js.map +1 -1
  626. package/dist/esm/ifx-stepper.entry.js +3 -4
  627. package/dist/esm/ifx-stepper.entry.js.map +1 -1
  628. package/dist/esm/ifx-switch.entry.js +2 -3
  629. package/dist/esm/ifx-switch.entry.js.map +1 -1
  630. package/dist/esm/ifx-tab.entry.js +2 -4
  631. package/dist/esm/ifx-tab.entry.js.map +1 -1
  632. package/dist/esm/ifx-table.entry.js +26 -28
  633. package/dist/esm/ifx-table.entry.js.map +1 -1
  634. package/dist/esm/ifx-tabs.entry.js +7 -8
  635. package/dist/esm/ifx-tabs.entry.js.map +1 -1
  636. package/dist/esm/ifx-tag.entry.js +2 -3
  637. package/dist/esm/ifx-tag.entry.js.map +1 -1
  638. package/dist/esm/ifx-textarea.entry.js +3 -11
  639. package/dist/esm/ifx-textarea.entry.js.map +1 -1
  640. package/dist/esm/ifx-tooltip.entry.js +11 -12
  641. package/dist/esm/ifx-tooltip.entry.js.map +1 -1
  642. package/dist/esm/{index-dc4139fb.js → index-689aa2d0.js} +125 -99
  643. package/dist/esm/index-689aa2d0.js.map +1 -0
  644. package/dist/esm/infineon-design-system-stencil.js +4 -4
  645. package/dist/esm/infineon-design-system-stencil.js.map +1 -1
  646. package/dist/esm/loader.js +3 -3
  647. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  648. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  649. package/dist/infineon-design-system-stencil/{p-4b21c0e6.entry.js → p-0b83f13d.entry.js} +2 -2
  650. package/dist/infineon-design-system-stencil/p-0b83f13d.entry.js.map +1 -0
  651. package/dist/infineon-design-system-stencil/{p-a8ccf376.entry.js → p-0bf1f167.entry.js} +2 -2
  652. package/dist/infineon-design-system-stencil/{p-680f8e2c.entry.js → p-0c47c14b.entry.js} +2 -2
  653. package/dist/infineon-design-system-stencil/p-11618b47.entry.js +2 -0
  654. package/dist/infineon-design-system-stencil/p-11618b47.entry.js.map +1 -0
  655. package/dist/infineon-design-system-stencil/p-134d043c.entry.js +2 -0
  656. package/dist/infineon-design-system-stencil/p-134d043c.entry.js.map +1 -0
  657. package/dist/infineon-design-system-stencil/{p-c1b1b593.entry.js → p-16de8d40.entry.js} +2 -2
  658. package/dist/infineon-design-system-stencil/p-16de8d40.entry.js.map +1 -0
  659. package/dist/infineon-design-system-stencil/{p-384ffeb8.entry.js → p-17600a99.entry.js} +3 -3
  660. package/dist/infineon-design-system-stencil/p-17600a99.entry.js.map +1 -0
  661. package/dist/infineon-design-system-stencil/{p-d28dda66.entry.js → p-1ae3dfe5.entry.js} +2 -2
  662. package/dist/infineon-design-system-stencil/p-1ae3dfe5.entry.js.map +1 -0
  663. package/dist/infineon-design-system-stencil/p-1cbb2790.entry.js +2 -0
  664. package/dist/infineon-design-system-stencil/p-1cbb2790.entry.js.map +1 -0
  665. package/dist/infineon-design-system-stencil/p-22e9c825.entry.js +2 -0
  666. package/dist/infineon-design-system-stencil/p-22e9c825.entry.js.map +1 -0
  667. package/dist/infineon-design-system-stencil/p-23978a74.entry.js +2 -0
  668. package/dist/infineon-design-system-stencil/p-23978a74.entry.js.map +1 -0
  669. package/dist/infineon-design-system-stencil/{p-f856fa8b.entry.js → p-266d0369.entry.js} +2 -2
  670. package/dist/infineon-design-system-stencil/p-28e3abe5.entry.js +2 -0
  671. package/dist/infineon-design-system-stencil/p-28e3abe5.entry.js.map +1 -0
  672. package/dist/infineon-design-system-stencil/p-29604514.entry.js +2 -0
  673. package/dist/infineon-design-system-stencil/p-29604514.entry.js.map +1 -0
  674. package/dist/infineon-design-system-stencil/{p-c82d6a95.entry.js → p-2b5f7cab.entry.js} +2 -2
  675. package/dist/infineon-design-system-stencil/p-2b5f7cab.entry.js.map +1 -0
  676. package/dist/infineon-design-system-stencil/p-33842e51.entry.js +2 -0
  677. package/dist/infineon-design-system-stencil/p-33842e51.entry.js.map +1 -0
  678. package/dist/infineon-design-system-stencil/p-3688ea33.entry.js +2 -0
  679. package/dist/infineon-design-system-stencil/p-3688ea33.entry.js.map +1 -0
  680. package/dist/infineon-design-system-stencil/{p-8969f1e4.entry.js → p-36ccc908.entry.js} +2 -2
  681. package/dist/infineon-design-system-stencil/p-36ccc908.entry.js.map +1 -0
  682. package/dist/infineon-design-system-stencil/p-3d8b9fab.entry.js +2 -0
  683. package/dist/infineon-design-system-stencil/p-3d8b9fab.entry.js.map +1 -0
  684. package/dist/infineon-design-system-stencil/p-45e42392.entry.js +2 -0
  685. package/dist/infineon-design-system-stencil/p-45e42392.entry.js.map +1 -0
  686. package/dist/infineon-design-system-stencil/{p-32fc3ce3.entry.js → p-473fefdf.entry.js} +2 -2
  687. package/dist/infineon-design-system-stencil/p-4aedcac0.entry.js +2 -0
  688. package/dist/infineon-design-system-stencil/p-4aedcac0.entry.js.map +1 -0
  689. package/dist/infineon-design-system-stencil/p-4af8a181.entry.js +2 -0
  690. package/dist/infineon-design-system-stencil/p-4af8a181.entry.js.map +1 -0
  691. package/dist/infineon-design-system-stencil/{p-db09429f.entry.js → p-4e3106ec.entry.js} +2 -2
  692. package/dist/infineon-design-system-stencil/p-4e3106ec.entry.js.map +1 -0
  693. package/dist/infineon-design-system-stencil/p-4f959419.entry.js +2 -0
  694. package/dist/infineon-design-system-stencil/{p-51c4e760.entry.js.map → p-4f959419.entry.js.map} +1 -1
  695. package/dist/infineon-design-system-stencil/{p-91f91586.entry.js → p-520ddc60.entry.js} +2 -2
  696. package/dist/infineon-design-system-stencil/p-520ddc60.entry.js.map +1 -0
  697. package/dist/infineon-design-system-stencil/{p-d09be3a1.entry.js → p-5250dd94.entry.js} +2 -2
  698. package/dist/infineon-design-system-stencil/p-5250dd94.entry.js.map +1 -0
  699. package/dist/infineon-design-system-stencil/p-54210533.entry.js +2 -0
  700. package/dist/infineon-design-system-stencil/p-54210533.entry.js.map +1 -0
  701. package/dist/infineon-design-system-stencil/p-56e92d85.entry.js +2 -0
  702. package/dist/infineon-design-system-stencil/p-56e92d85.entry.js.map +1 -0
  703. package/dist/infineon-design-system-stencil/p-57bf766f.entry.js +2 -0
  704. package/dist/infineon-design-system-stencil/p-57bf766f.entry.js.map +1 -0
  705. package/dist/infineon-design-system-stencil/{p-ee39e4ce.entry.js → p-580b88e4.entry.js} +2 -2
  706. package/dist/infineon-design-system-stencil/p-58e10312.entry.js +2 -0
  707. package/dist/infineon-design-system-stencil/{p-4b0f836d.entry.js.map → p-58e10312.entry.js.map} +1 -1
  708. package/dist/infineon-design-system-stencil/p-5c33ace7.entry.js +2 -0
  709. package/dist/infineon-design-system-stencil/{p-f0052c72.entry.js.map → p-5c33ace7.entry.js.map} +1 -1
  710. package/dist/infineon-design-system-stencil/p-60703b6b.entry.js +2 -0
  711. package/dist/infineon-design-system-stencil/{p-bbaa8d57.entry.js.map → p-60703b6b.entry.js.map} +1 -1
  712. package/dist/infineon-design-system-stencil/{p-3b99fb06.entry.js → p-6754fac0.entry.js} +2 -2
  713. package/dist/infineon-design-system-stencil/p-6754fac0.entry.js.map +1 -0
  714. package/dist/infineon-design-system-stencil/p-6a602709.entry.js +2 -0
  715. package/dist/infineon-design-system-stencil/p-6a602709.entry.js.map +1 -0
  716. package/dist/infineon-design-system-stencil/p-6ca92b82.entry.js +2 -0
  717. package/dist/infineon-design-system-stencil/p-6ca92b82.entry.js.map +1 -0
  718. package/dist/infineon-design-system-stencil/{p-34fb9dca.entry.js → p-6e338857.entry.js} +2 -2
  719. package/dist/infineon-design-system-stencil/p-73505b17.entry.js +2 -0
  720. package/dist/infineon-design-system-stencil/{p-28fb795b.entry.js.map → p-73505b17.entry.js.map} +1 -1
  721. package/dist/infineon-design-system-stencil/p-758d455a.entry.js +2 -0
  722. package/dist/infineon-design-system-stencil/p-758d455a.entry.js.map +1 -0
  723. package/dist/infineon-design-system-stencil/p-7908baed.entry.js +2 -0
  724. package/dist/infineon-design-system-stencil/p-7908baed.entry.js.map +1 -0
  725. package/dist/infineon-design-system-stencil/{p-51980b19.entry.js → p-7c044fc5.entry.js} +2 -2
  726. package/dist/infineon-design-system-stencil/{p-6ae18c50.entry.js → p-7d40e310.entry.js} +2 -2
  727. package/dist/infineon-design-system-stencil/p-7d40e310.entry.js.map +1 -0
  728. package/dist/infineon-design-system-stencil/p-7fbfd8a9.entry.js +2 -0
  729. package/dist/infineon-design-system-stencil/p-7fbfd8a9.entry.js.map +1 -0
  730. package/dist/infineon-design-system-stencil/p-84cb159f.entry.js +2 -0
  731. package/dist/infineon-design-system-stencil/p-84cb159f.entry.js.map +1 -0
  732. package/dist/infineon-design-system-stencil/p-878db58b.entry.js +2 -0
  733. package/dist/infineon-design-system-stencil/p-878db58b.entry.js.map +1 -0
  734. package/dist/infineon-design-system-stencil/{p-c668bc59.entry.js → p-8e416f0e.entry.js} +2 -2
  735. package/dist/infineon-design-system-stencil/p-8e416f0e.entry.js.map +1 -0
  736. package/dist/infineon-design-system-stencil/{p-24fcd716.entry.js → p-9b33867d.entry.js} +2 -2
  737. package/dist/infineon-design-system-stencil/p-9b33867d.entry.js.map +1 -0
  738. package/dist/infineon-design-system-stencil/p-a593c3dc.entry.js +2 -0
  739. package/dist/infineon-design-system-stencil/p-a593c3dc.entry.js.map +1 -0
  740. package/dist/infineon-design-system-stencil/{p-ce413596.entry.js → p-a7884dc2.entry.js} +2 -2
  741. package/dist/infineon-design-system-stencil/p-a7884dc2.entry.js.map +1 -0
  742. package/dist/infineon-design-system-stencil/p-ade79e19.entry.js +2 -0
  743. package/dist/infineon-design-system-stencil/p-ade79e19.entry.js.map +1 -0
  744. package/dist/infineon-design-system-stencil/p-adfb7e64.entry.js +2 -0
  745. package/dist/infineon-design-system-stencil/p-adfb7e64.entry.js.map +1 -0
  746. package/dist/infineon-design-system-stencil/{p-bc8a4226.entry.js → p-ae1791a8.entry.js} +2 -2
  747. package/dist/infineon-design-system-stencil/p-ae1791a8.entry.js.map +1 -0
  748. package/dist/infineon-design-system-stencil/{p-d71e765c.entry.js → p-b245e0a2.entry.js} +2 -2
  749. package/dist/infineon-design-system-stencil/p-b245e0a2.entry.js.map +1 -0
  750. package/dist/infineon-design-system-stencil/p-b28aa111.entry.js +2 -0
  751. package/dist/infineon-design-system-stencil/{p-58966086.entry.js.map → p-b28aa111.entry.js.map} +1 -1
  752. package/dist/infineon-design-system-stencil/p-b4cd7a6f.entry.js +2 -0
  753. package/dist/infineon-design-system-stencil/p-b4cd7a6f.entry.js.map +1 -0
  754. package/dist/infineon-design-system-stencil/{p-5c6d5571.entry.js → p-ba299e63.entry.js} +2 -2
  755. package/dist/infineon-design-system-stencil/p-ba299e63.entry.js.map +1 -0
  756. package/dist/infineon-design-system-stencil/p-c1f57ae4.entry.js +2 -0
  757. package/dist/infineon-design-system-stencil/p-c1f57ae4.entry.js.map +1 -0
  758. package/dist/infineon-design-system-stencil/{p-d82e1057.entry.js → p-c27f4f95.entry.js} +2 -2
  759. package/dist/infineon-design-system-stencil/p-c27f4f95.entry.js.map +1 -0
  760. package/dist/infineon-design-system-stencil/p-cc36307e.entry.js +2 -0
  761. package/dist/infineon-design-system-stencil/p-cc36307e.entry.js.map +1 -0
  762. package/dist/infineon-design-system-stencil/{p-584149bd.entry.js → p-d6609bb0.entry.js} +2 -2
  763. package/dist/infineon-design-system-stencil/p-d6609bb0.entry.js.map +1 -0
  764. package/dist/infineon-design-system-stencil/p-d8353cbd.entry.js +2 -0
  765. package/dist/infineon-design-system-stencil/p-d8353cbd.entry.js.map +1 -0
  766. package/dist/infineon-design-system-stencil/{p-7c0bbef1.entry.js → p-e3f2d25b.entry.js} +2 -2
  767. package/dist/infineon-design-system-stencil/p-e3f2d25b.entry.js.map +1 -0
  768. package/dist/infineon-design-system-stencil/{p-3c5a8615.entry.js → p-e5b49030.entry.js} +2 -2
  769. package/dist/infineon-design-system-stencil/p-e5b49030.entry.js.map +1 -0
  770. package/dist/infineon-design-system-stencil/p-efee6a82.entry.js +2 -0
  771. package/dist/infineon-design-system-stencil/p-efee6a82.entry.js.map +1 -0
  772. package/dist/infineon-design-system-stencil/p-f253df75.entry.js +2 -0
  773. package/dist/infineon-design-system-stencil/p-f253df75.entry.js.map +1 -0
  774. package/dist/infineon-design-system-stencil/p-f619bff3.js +3 -0
  775. package/dist/infineon-design-system-stencil/p-f619bff3.js.map +1 -0
  776. package/dist/infineon-design-system-stencil/p-f6a9f419.entry.js +2 -0
  777. package/dist/infineon-design-system-stencil/p-f6a9f419.entry.js.map +1 -0
  778. package/dist/infineon-design-system-stencil/{p-b5a3fad1.entry.js → p-f969a975.entry.js} +2 -2
  779. package/dist/infineon-design-system-stencil/p-fd400517.entry.js +2 -0
  780. package/dist/infineon-design-system-stencil/p-fd400517.entry.js.map +1 -0
  781. package/dist/infineon-design-system-stencil/p-feef3db3.entry.js +2 -0
  782. package/dist/infineon-design-system-stencil/p-feef3db3.entry.js.map +1 -0
  783. package/dist/types/components/accordion/accordion.stories.d.ts +67 -1
  784. package/dist/types/components/accordion/accordionItem.d.ts +3 -3
  785. package/dist/types/components/alert/alert.stories.d.ts +38 -11
  786. package/dist/types/components/badge/badge.stories.d.ts +23 -3
  787. package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
  788. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +83 -1
  789. package/dist/types/components/button/button.stories.d.ts +92 -16
  790. package/dist/types/components/card/card.stories.d.ts +95 -1
  791. package/dist/types/components/checkbox/checkbox.stories.d.ts +65 -10
  792. package/dist/types/components/chip/chip-item/chip-item.d.ts +1 -1
  793. package/dist/types/components/chip/chip.d.ts +1 -1
  794. package/dist/types/components/chip/chip.stories.d.ts +11 -4
  795. package/dist/types/components/chip/interfaces.d.ts +1 -1
  796. package/dist/types/components/content-switcher/content-switcher.stories.d.ts +66 -0
  797. package/dist/types/components/date-picker/date-picker.stories.d.ts +89 -2
  798. package/dist/types/components/dropdown/dropdown.stories.d.ts +90 -33
  799. package/dist/types/components/footer/footer.stories.d.ts +26 -0
  800. package/dist/types/components/icon/infineonIconStencil.stories.d.ts +5 -0
  801. package/dist/types/components/icon-button/icon-button.stories.d.ts +56 -8
  802. package/dist/types/components/link/link.stories.d.ts +49 -6
  803. package/dist/types/components/modal/modal.d.ts +2 -2
  804. package/dist/types/components/modal/modal.stories.d.ts +77 -3
  805. package/dist/types/components/navigation/navbar/navbar.stories.d.ts +222 -6
  806. package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +2 -3
  807. package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +161 -7
  808. package/dist/types/components/notification/notification.stories.d.ts +46 -2
  809. package/dist/types/components/number-indicator/number-indicator.stories.d.ts +19 -0
  810. package/dist/types/components/pagination/pagination.d.ts +0 -2
  811. package/dist/types/components/pagination/pagination.stories.d.ts +12 -7
  812. package/dist/types/components/progress-bar/progress-bar.stories.d.ts +25 -4
  813. package/dist/types/components/radio-button/radio-button.stories.d.ts +59 -8
  814. package/dist/types/components/search-bar/search-bar.d.ts +1 -1
  815. package/dist/types/components/search-bar/search-bar.stories.d.ts +60 -3
  816. package/dist/types/components/search-field/search-field.stories.d.ts +45 -6
  817. package/dist/types/components/segmented-control/segmented-control.stories.d.ts +0 -3
  818. package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
  819. package/dist/types/components/select/multi-select/multiselect.stories.d.ts +125 -0
  820. package/dist/types/components/select/single-select/select.stories.d.ts +67 -24
  821. package/dist/types/components/slider/slider.stories.d.ts +110 -0
  822. package/dist/types/components/spinner/spinner.stories.d.ts +32 -0
  823. package/dist/types/components/status/status.stories.d.ts +24 -2
  824. package/dist/types/components/stepper/stepper.stories.d.ts +30 -6
  825. package/dist/types/components/switch/switch.stories.d.ts +47 -1
  826. package/dist/types/components/table-advanced-version/table.stories.d.ts +50 -11
  827. package/dist/types/components/table-basic-version/table.stories.d.ts +21 -1
  828. package/dist/types/components/tabs/tabs.d.ts +1 -1
  829. package/dist/types/components/tabs/tabs.stories.d.ts +88 -9
  830. package/dist/types/components/tag/tag.stories.d.ts +20 -0
  831. package/dist/types/components/text-field/text-field.stories.d.ts +106 -10
  832. package/dist/types/components/tooltip/tooltip.stories.d.ts +41 -6
  833. package/dist/types/components.d.ts +20 -26
  834. package/package.json +3 -2
  835. package/dist/cjs/index-af3b4f6c.js.map +0 -1
  836. package/dist/components/p-03181918.js.map +0 -1
  837. package/dist/components/p-04b73e62.js.map +0 -1
  838. package/dist/components/p-094bb435.js.map +0 -1
  839. package/dist/components/p-23cdd5a7.js.map +0 -1
  840. package/dist/components/p-2f603818.js.map +0 -1
  841. package/dist/components/p-63edb8e2.js.map +0 -1
  842. package/dist/components/p-68d90201.js.map +0 -1
  843. package/dist/components/p-7e430b83.js.map +0 -1
  844. package/dist/components/p-8eed2f39.js.map +0 -1
  845. package/dist/components/p-9ee4ea24.js.map +0 -1
  846. package/dist/components/p-b2439194.js.map +0 -1
  847. package/dist/components/p-c1f3a68c.js.map +0 -1
  848. package/dist/components/p-cfb87c4d.js.map +0 -1
  849. package/dist/components/p-d0a26bd5.js.map +0 -1
  850. package/dist/components/p-e181fc5c.js.map +0 -1
  851. package/dist/components/p-f0f583d5.js.map +0 -1
  852. package/dist/components/p-f9cdecb2.js.map +0 -1
  853. package/dist/esm/index-dc4139fb.js.map +0 -1
  854. package/dist/infineon-design-system-stencil/p-04dcd856.entry.js +0 -2
  855. package/dist/infineon-design-system-stencil/p-04dcd856.entry.js.map +0 -1
  856. package/dist/infineon-design-system-stencil/p-0a629668.entry.js +0 -2
  857. package/dist/infineon-design-system-stencil/p-0a629668.entry.js.map +0 -1
  858. package/dist/infineon-design-system-stencil/p-0c4276df.entry.js +0 -2
  859. package/dist/infineon-design-system-stencil/p-0c4276df.entry.js.map +0 -1
  860. package/dist/infineon-design-system-stencil/p-117a6839.entry.js +0 -2
  861. package/dist/infineon-design-system-stencil/p-117a6839.entry.js.map +0 -1
  862. package/dist/infineon-design-system-stencil/p-15effb48.entry.js +0 -2
  863. package/dist/infineon-design-system-stencil/p-15effb48.entry.js.map +0 -1
  864. package/dist/infineon-design-system-stencil/p-189c89c3.entry.js +0 -2
  865. package/dist/infineon-design-system-stencil/p-189c89c3.entry.js.map +0 -1
  866. package/dist/infineon-design-system-stencil/p-1aed7d45.entry.js +0 -2
  867. package/dist/infineon-design-system-stencil/p-1aed7d45.entry.js.map +0 -1
  868. package/dist/infineon-design-system-stencil/p-222c1af9.entry.js +0 -2
  869. package/dist/infineon-design-system-stencil/p-222c1af9.entry.js.map +0 -1
  870. package/dist/infineon-design-system-stencil/p-2435017b.entry.js +0 -2
  871. package/dist/infineon-design-system-stencil/p-2435017b.entry.js.map +0 -1
  872. package/dist/infineon-design-system-stencil/p-24fcd716.entry.js.map +0 -1
  873. package/dist/infineon-design-system-stencil/p-25266bf9.entry.js +0 -2
  874. package/dist/infineon-design-system-stencil/p-25266bf9.entry.js.map +0 -1
  875. package/dist/infineon-design-system-stencil/p-27a52d0b.entry.js +0 -2
  876. package/dist/infineon-design-system-stencil/p-27a52d0b.entry.js.map +0 -1
  877. package/dist/infineon-design-system-stencil/p-28fb795b.entry.js +0 -2
  878. package/dist/infineon-design-system-stencil/p-2d4c5959.entry.js +0 -2
  879. package/dist/infineon-design-system-stencil/p-2d4c5959.entry.js.map +0 -1
  880. package/dist/infineon-design-system-stencil/p-379a2090.entry.js +0 -2
  881. package/dist/infineon-design-system-stencil/p-379a2090.entry.js.map +0 -1
  882. package/dist/infineon-design-system-stencil/p-384ffeb8.entry.js.map +0 -1
  883. package/dist/infineon-design-system-stencil/p-3b99fb06.entry.js.map +0 -1
  884. package/dist/infineon-design-system-stencil/p-3c5a8615.entry.js.map +0 -1
  885. package/dist/infineon-design-system-stencil/p-3ef52c09.entry.js +0 -2
  886. package/dist/infineon-design-system-stencil/p-3ef52c09.entry.js.map +0 -1
  887. package/dist/infineon-design-system-stencil/p-436babb8.entry.js +0 -2
  888. package/dist/infineon-design-system-stencil/p-436babb8.entry.js.map +0 -1
  889. package/dist/infineon-design-system-stencil/p-466fea81.entry.js +0 -2
  890. package/dist/infineon-design-system-stencil/p-466fea81.entry.js.map +0 -1
  891. package/dist/infineon-design-system-stencil/p-4b0f836d.entry.js +0 -2
  892. package/dist/infineon-design-system-stencil/p-4b21c0e6.entry.js.map +0 -1
  893. package/dist/infineon-design-system-stencil/p-50f06657.entry.js +0 -2
  894. package/dist/infineon-design-system-stencil/p-50f06657.entry.js.map +0 -1
  895. package/dist/infineon-design-system-stencil/p-51c4e760.entry.js +0 -2
  896. package/dist/infineon-design-system-stencil/p-584149bd.entry.js.map +0 -1
  897. package/dist/infineon-design-system-stencil/p-58966086.entry.js +0 -2
  898. package/dist/infineon-design-system-stencil/p-5c6d5571.entry.js.map +0 -1
  899. package/dist/infineon-design-system-stencil/p-5f34d2bc.entry.js +0 -2
  900. package/dist/infineon-design-system-stencil/p-5f34d2bc.entry.js.map +0 -1
  901. package/dist/infineon-design-system-stencil/p-6389a7b8.entry.js +0 -2
  902. package/dist/infineon-design-system-stencil/p-6389a7b8.entry.js.map +0 -1
  903. package/dist/infineon-design-system-stencil/p-6ae18c50.entry.js.map +0 -1
  904. package/dist/infineon-design-system-stencil/p-6b122987.js +0 -3
  905. package/dist/infineon-design-system-stencil/p-6b122987.js.map +0 -1
  906. package/dist/infineon-design-system-stencil/p-6f00d371.entry.js +0 -2
  907. package/dist/infineon-design-system-stencil/p-6f00d371.entry.js.map +0 -1
  908. package/dist/infineon-design-system-stencil/p-775d187b.entry.js +0 -2
  909. package/dist/infineon-design-system-stencil/p-775d187b.entry.js.map +0 -1
  910. package/dist/infineon-design-system-stencil/p-79a73b5f.entry.js +0 -2
  911. package/dist/infineon-design-system-stencil/p-79a73b5f.entry.js.map +0 -1
  912. package/dist/infineon-design-system-stencil/p-7bef9272.entry.js +0 -2
  913. package/dist/infineon-design-system-stencil/p-7bef9272.entry.js.map +0 -1
  914. package/dist/infineon-design-system-stencil/p-7c0bbef1.entry.js.map +0 -1
  915. package/dist/infineon-design-system-stencil/p-8969f1e4.entry.js.map +0 -1
  916. package/dist/infineon-design-system-stencil/p-91f91586.entry.js.map +0 -1
  917. package/dist/infineon-design-system-stencil/p-97e9e312.entry.js +0 -2
  918. package/dist/infineon-design-system-stencil/p-97e9e312.entry.js.map +0 -1
  919. package/dist/infineon-design-system-stencil/p-9a47f8ad.entry.js +0 -2
  920. package/dist/infineon-design-system-stencil/p-9a47f8ad.entry.js.map +0 -1
  921. package/dist/infineon-design-system-stencil/p-a16d5258.entry.js +0 -2
  922. package/dist/infineon-design-system-stencil/p-a16d5258.entry.js.map +0 -1
  923. package/dist/infineon-design-system-stencil/p-b14bd5b7.entry.js +0 -2
  924. package/dist/infineon-design-system-stencil/p-b14bd5b7.entry.js.map +0 -1
  925. package/dist/infineon-design-system-stencil/p-bbaa8d57.entry.js +0 -2
  926. package/dist/infineon-design-system-stencil/p-bc8a4226.entry.js.map +0 -1
  927. package/dist/infineon-design-system-stencil/p-bddc382a.entry.js +0 -2
  928. package/dist/infineon-design-system-stencil/p-bddc382a.entry.js.map +0 -1
  929. package/dist/infineon-design-system-stencil/p-c1b1b593.entry.js.map +0 -1
  930. package/dist/infineon-design-system-stencil/p-c668bc59.entry.js.map +0 -1
  931. package/dist/infineon-design-system-stencil/p-c7f80bba.entry.js +0 -2
  932. package/dist/infineon-design-system-stencil/p-c7f80bba.entry.js.map +0 -1
  933. package/dist/infineon-design-system-stencil/p-c82d6a95.entry.js.map +0 -1
  934. package/dist/infineon-design-system-stencil/p-c8728936.entry.js +0 -2
  935. package/dist/infineon-design-system-stencil/p-c8728936.entry.js.map +0 -1
  936. package/dist/infineon-design-system-stencil/p-caff080b.entry.js +0 -2
  937. package/dist/infineon-design-system-stencil/p-caff080b.entry.js.map +0 -1
  938. package/dist/infineon-design-system-stencil/p-ce413596.entry.js.map +0 -1
  939. package/dist/infineon-design-system-stencil/p-d09be3a1.entry.js.map +0 -1
  940. package/dist/infineon-design-system-stencil/p-d28dda66.entry.js.map +0 -1
  941. package/dist/infineon-design-system-stencil/p-d52e5250.entry.js +0 -2
  942. package/dist/infineon-design-system-stencil/p-d52e5250.entry.js.map +0 -1
  943. package/dist/infineon-design-system-stencil/p-d71e765c.entry.js.map +0 -1
  944. package/dist/infineon-design-system-stencil/p-d82e1057.entry.js.map +0 -1
  945. package/dist/infineon-design-system-stencil/p-db09429f.entry.js.map +0 -1
  946. package/dist/infineon-design-system-stencil/p-e66c33ea.entry.js +0 -2
  947. package/dist/infineon-design-system-stencil/p-e66c33ea.entry.js.map +0 -1
  948. package/dist/infineon-design-system-stencil/p-eb8ba37f.entry.js +0 -2
  949. package/dist/infineon-design-system-stencil/p-eb8ba37f.entry.js.map +0 -1
  950. package/dist/infineon-design-system-stencil/p-f0052c72.entry.js +0 -2
  951. package/dist/infineon-design-system-stencil/p-fbd9e58e.entry.js +0 -2
  952. package/dist/infineon-design-system-stencil/p-fbd9e58e.entry.js.map +0 -1
  953. /package/dist/infineon-design-system-stencil/{p-a8ccf376.entry.js.map → p-0bf1f167.entry.js.map} +0 -0
  954. /package/dist/infineon-design-system-stencil/{p-680f8e2c.entry.js.map → p-0c47c14b.entry.js.map} +0 -0
  955. /package/dist/infineon-design-system-stencil/{p-f856fa8b.entry.js.map → p-266d0369.entry.js.map} +0 -0
  956. /package/dist/infineon-design-system-stencil/{p-32fc3ce3.entry.js.map → p-473fefdf.entry.js.map} +0 -0
  957. /package/dist/infineon-design-system-stencil/{p-ee39e4ce.entry.js.map → p-580b88e4.entry.js.map} +0 -0
  958. /package/dist/infineon-design-system-stencil/{p-34fb9dca.entry.js.map → p-6e338857.entry.js.map} +0 -0
  959. /package/dist/infineon-design-system-stencil/{p-51980b19.entry.js.map → p-7c044fc5.entry.js.map} +0 -0
  960. /package/dist/infineon-design-system-stencil/{p-b5a3fad1.entry.js.map → p-f969a975.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.stories.js","sourceRoot":"","sources":["../../../src/components/text-field/text-field.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,sBAAsB;IAEtB,IAAI,EAAE;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,aAAa;QAC1B,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,KAAK;KACtB;IAED,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;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jD,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnC,OAAO,CAAC,YAAY,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;IACzD,IAAI,SAAS;QAAE,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAE5D,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IAGzD,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACnD,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Text Field',\n // tags: ['autodocs'],\n\n args: {\n disabled: false,\n size: 'm',\n success: false,\n label: 'Label',\n placeholder: 'Placeholder',\n error: false,\n caption: 'Caption',\n required: true,\n optional: false,\n icon: 'c-info-16',\n name: 'text-field',\n showDeleteIcon: false\n },\n\n argTypes: {\n size: {\n description: 'Size options: s (36px) and m (40px) - default: m',\n options: ['s', 'm'],\n control: { type: 'radio' },\n },\n icon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n name: {\n description: 'Name of the element, that is used as reference when a form is submitted.'\n },\n maxlength: {\n description: 'Maximum input length',\n control: {type: 'number'}\n },\n showDeleteIcon: {\n description: 'Show the delete icon'\n },\n ifxInput: {\n action: 'ifxInput',\n description: 'Custom event',\n table: {\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 = ({ error, disabled, success, size, placeholder, label, caption, icon, required, optional, name, maxlength, showDeleteIcon }) => {\n const element = document.createElement('ifx-text-field');\n element.setAttribute('error', error);\n element.setAttribute('disabled', disabled);\n element.setAttribute('size', size);\n element.setAttribute('icon', icon);\n element.setAttribute('success', success);\n element.setAttribute('placeholder', placeholder);\n element.setAttribute('caption', caption);\n element.setAttribute('required', required);\n element.setAttribute('optional', optional);\n element.setAttribute('name', name);\n element.setAttribute('show-delete-icon', showDeleteIcon);\n if (maxlength) element.setAttribute('maxlength', maxlength);\n\n element.addEventListener('ifxInput', action('ifxInput'));\n\n\n const slotContent = document.createTextNode(label);\n element.appendChild(slotContent);\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
1
+ {"version":3,"file":"text-field.stories.js","sourceRoot":"","sources":["../../../src/components/text-field/text-field.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,sBAAsB;IAEtB,IAAI,EAAE;QACJ,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,EAAE;QACb,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CAAC;IAEjC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Text Field',\n // tags: ['autodocs'],\n\n args: {\n label: 'Label',\n error: false,\n disabled: false,\n size: 'm',\n icon: 'c-info-16',\n success: false,\n placeholder: 'Placeholder',\n caption: 'Caption',\n required: true,\n optional: false,\n name: 'text-field',\n showDeleteIcon: false,\n maxlength: '',\n value: '',\n },\n\n argTypes: {\n label: {\n name: 'Label of Text Field',\n description: 'The text label displayed above the *<ifx-text-field>*.',\n table: {\n category: 'story controls',\n }\n },\n error: {\n description: 'Indicates an error state for the text field.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n disabled: {\n description: 'Disables the text field.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n size: {\n description: 'Size options: s (36px) and m (40px) - default: m',\n options: ['s', 'm'],\n control: 'radio',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: 'm'\n }\n }\n },\n icon: {\n description: 'Specifies an icon to display within the text field.',\n options: Object.values(icons).map(i => i['name']),\n control: 'select',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: 'c-info-16'\n }\n }\n },\n success: {\n description: 'Indicates a successful state for the text field.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n placeholder: {\n description: 'Displays a placeholder text inside the text field when it is empty.',\n table: {\n category: 'ifx-text-field props',\n }\n },\n caption: {\n description: 'Text displayed below the text field to provide additional information.',\n table: {\n category: 'ifx-text-field props',\n }\n },\n required: {\n description: 'Marks the text field as required for form submission. Displays an asterisk next to the label when set to **true**.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: true\n }\n }\n },\n optional: {\n description: 'Indicates that the field is optional.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n name: {\n description: 'Name of the element, that is used as reference when a form is submitted.',\n table: {\n category: 'ifx-text-field props',\n }\n },\n showDeleteIcon: {\n description: 'Displays a delete icon inside the text field when set to **true**, allowing user to clear the input content.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n maxlength: {\n description: 'Specifies the maximum number of characters that can be entered into the text field.',\n control: 'number',\n table: {\n category: 'ifx-text-field props',\n }\n },\n value: {\n description: 'The value of the text field. It is used for the form submission.',\n control: 'text',\n table: {\n category: 'ifx-text-field props',\n type: {\n summary: 'string'\n }\n }\n },\n ifxInput: {\n action: 'ifxInput',\n description: 'Custom event emitted on input change.',\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 = ({ error, disabled, success, size, placeholder, label, caption, icon, required, optional, name, maxlength, showDeleteIcon, value }) => {\n const element = document.createElement('ifx-text-field');\n element.setAttribute('error', error);\n element.setAttribute('disabled', disabled);\n element.setAttribute('size', size);\n element.setAttribute('icon', icon);\n element.setAttribute('success', success);\n element.setAttribute('placeholder', placeholder);\n element.setAttribute('caption', caption);\n element.setAttribute('required', required);\n element.setAttribute('optional', optional);\n element.setAttribute('name', name);\n element.setAttribute('show-delete-icon', showDeleteIcon);\n element.setAttribute('value', value);\n if (maxlength) element.setAttribute('maxlength', maxlength);\n\n element.addEventListener('ifxInput', action('ifxInput'));\n\n\n const slotContent = document.createTextNode(label);\n element.appendChild(slotContent);\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
@@ -2,18 +2,10 @@ import { h, Host } from "@stencil/core";
2
2
  export class TextArea {
3
3
  constructor() {
4
4
  this.inputId = `ifx-textarea-${++textareaId}`;
5
- this.caption = undefined;
6
- this.cols = undefined;
7
5
  this.disabled = false;
8
6
  this.error = false;
9
- this.label = undefined;
10
- this.maxlength = undefined;
11
- this.name = undefined;
12
- this.placeholder = undefined;
13
7
  this.readOnly = false;
14
8
  this.resize = 'both';
15
- this.rows = undefined;
16
- this.value = undefined;
17
9
  this.wrap = 'soft';
18
10
  }
19
11
  async reset() {
@@ -38,9 +30,9 @@ export class TextArea {
38
30
  }
39
31
  render() {
40
32
  var _a, _b;
41
- return (h(Host, { key: 'fa5c845d5352544c1b4c62a09407aebb95da24d3', class: `wrapper
33
+ return (h(Host, { key: 'd557bff378899253b1eea26f202a3d934424deac', class: `wrapper
42
34
  wrapper--${this.error ? 'error' : ''}
43
- wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: 'e68472869f26f77d87cf8cefd29d8e56aac74c95', class: 'wrapper__label', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()), h("div", { key: 'e4d5c36b7608d981bf33dc764453c9cc75883f59', class: 'wrapper__textarea' }, h("textarea", { key: '93988a66ea85198eb40fab3989a82f8a794d815f', "aria-label": 'a textarea', "aria-value": this.value, "aria-disabled": this.disabled, id: this.inputId, style: { resize: this.resize }, name: this.name ? this.name : this.inputId, cols: this.cols, rows: this.rows, maxlength: this.maxlength, wrap: this.wrap, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, onInput: (e) => this.handleOnInput(e) })), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: 'f58f74a260af7090a6e8059081dfe27fc3fe49c9', class: 'wrapper__caption' }, this.caption.trim()))));
35
+ wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: '9163e001e0423effcbc9bad56af021acb8fc5229', class: 'wrapper__label', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()), h("div", { key: 'ce7ea7607837c9979a984627fb9d762494a211b8', class: 'wrapper__textarea' }, h("textarea", { key: '6587f63b3d5ef32db9bf4c25ba03246d31a1120e', "aria-label": 'a textarea', "aria-value": this.value, "aria-disabled": this.disabled, id: this.inputId, style: { resize: this.resize }, name: this.name ? this.name : this.inputId, cols: this.cols, rows: this.rows, maxlength: this.maxlength, wrap: this.wrap, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, onInput: (e) => this.handleOnInput(e) })), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: '96f109dfc94c8563ce9b3aacfae00eef4b6a49b2', class: 'wrapper__caption' }, this.caption.trim()))));
44
36
  }
45
37
  static get is() { return "ifx-textarea"; }
46
38
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAStG,MAAM,OAAO,QAAQ;;QAEZ,YAAO,GAAW,gBAAgB,EAAE,UAAU,EAAE,CAAC;;;wBAQ7B,KAAK;qBACR,KAAK;;;;;wBAKF,KAAK;sBAC6B,MAAM;;;oBAG5B,MAAM;;IAG9C,KAAK,CAAC,KAAK;QACV,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;IAED,aAAa,CAAC,CAAa;QAC1B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA8B,CAAC,KAAK,CAAC;QACrD,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,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EAC9B,KAAK,EAAG,IAAI,CAAC,KAAK,EAClB,OAAO,EAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GACrC,CACG;YAEJ,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,EAAE,KAAI,CACzB,4DAAK,KAAK,EAAC,kBAAkB,IAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAChB,CACN,CACK,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD;AAED,IAAI,UAAU,GAAG,CAAC,CAAC","sourcesContent":["import { h, AttachInternals, Component, Event, EventEmitter, Host, Method, Prop } from \"@stencil/core\"\n\n@Component({\n\tformAssociated: true,\n\tshadow: true,\n\tstyleUrl: 'textarea.scss',\n\ttag: 'ifx-textarea'\n})\n\nexport class TextArea {\n\n\tprivate inputId: string = `ifx-textarea-${++textareaId}`;\n\n\t@AttachInternals() internals: ElementInternals;\n\n\t@Event() ifxInput: EventEmitter<String>;\n\n\t@Prop() caption: string;\n\t@Prop() cols: number;\n\t@Prop() disabled: boolean = false;\n\t@Prop() error: boolean = false;\n\t@Prop() label: string;\n\t@Prop() maxlength: number;\n\t@Prop() name: string;\n\t@Prop() placeholder: string;\n\t@Prop() readOnly: boolean = false;\n\t@Prop() resize: 'both' | 'horizontal' | 'vertical' | 'none' = 'both';\n\t@Prop() rows: number;\n\t@Prop({ mutable: true }) value: string;\n\t@Prop() wrap: 'hard' | 'soft' | 'off' = 'soft';\n\n\t@Method()\n\tasync reset() {\n\t\tthis.resetTextarea();\n\t}\n\t\n\tformResetCallback(): void {\n\t\tthis.resetTextarea();\n\t\tthis.internals.setFormValue(\"\");\n\t}\n\t\n\thandleOnInput(e: InputEvent): void {\n\t\tthis.value = (e.target as HTMLTextAreaElement).value;\n\t\tthis.internals.setFormValue(this.value);\n\t\tthis.ifxInput.emit(this.value);\n\t}\n\n\tresetTextarea() {\n\t\tthis.value = '';\n\t\tthis.internals.setValidity({});\n\t\tthis.internals.setFormValue('');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.internals.setFormValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`wrapper \n\t\t\t\t\t\twrapper--${this.error ? 'error' : ''}\n\t\t\t\t\t\twrapper--${this.disabled ? 'disabled': ''}`}>\n\t\t\t\t<label class='wrapper__label' htmlFor={ this.inputId }>\n\t\t\t\t\t{ this.label?.trim() }\n\t\t\t\t</label>\n\n\t\t\t\t<div class='wrapper__textarea'>\n\t\t\t\t\t<textarea\n\t\t\t\t\t\taria-label='a textarea'\n\t\t\t\t\t\taria-value={ this.value }\n\t\t\t\t\t\taria-disabled={ this.disabled }\n\t\t\t\t\t\tid={ this.inputId }\n\t\t\t\t\t\tstyle={ {resize: this.resize} }\n\t\t\t\t\t\tname={ this.name ? this.name : this.inputId}\n\t\t\t\t\t\tcols={ this.cols }\n\t\t\t\t\t\trows={ this.rows }\n\t\t\t\t\t\tmaxlength={ this.maxlength }\n\t\t\t\t\t\twrap={ this.wrap }\n\t\t\t\t\t\tdisabled={ this.disabled }\n\t\t\t\t\t\treadonly={ this.readOnly }\n\t\t\t\t\t\tplaceholder={ this.placeholder }\n\t\t\t\t\t\tvalue={ this.value }\n\t\t\t\t\t\tonInput={ (e) => this.handleOnInput(e) }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{ this.caption?.trim() && (\n\t\t\t\t\t<div class='wrapper__caption'>\n\t\t\t\t\t\t{ this.caption.trim() }\n\t\t\t\t\t</div> \n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n\nlet textareaId = 0;"]}
1
+ {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAStG,MAAM,OAAO,QAAQ;IAPrB;QASS,YAAO,GAAW,gBAAgB,EAAE,UAAU,EAAE,CAAC;QAQjD,aAAQ,GAAY,KAAK,CAAC;QAC1B,UAAK,GAAY,KAAK,CAAC;QAKvB,aAAQ,GAAY,KAAK,CAAC;QAC1B,WAAM,GAAgD,MAAM,CAAC;QAG7D,SAAI,GAA4B,MAAM,CAAC;KAiE/C;IA9DA,KAAK,CAAC,KAAK;QACV,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;IAED,aAAa,CAAC,CAAa;QAC1B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA8B,CAAC,KAAK,CAAC;QACrD,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,aAAa;QACZ,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;IAED,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B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAChB,CACN,CACK,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD;AAED,IAAI,UAAU,GAAG,CAAC,CAAC","sourcesContent":["import { h, AttachInternals, Component, Event, EventEmitter, Host, Method, Prop } from \"@stencil/core\"\n\n@Component({\n\tformAssociated: true,\n\tshadow: true,\n\tstyleUrl: 'textarea.scss',\n\ttag: 'ifx-textarea'\n})\n\nexport class TextArea {\n\n\tprivate inputId: string = `ifx-textarea-${++textareaId}`;\n\n\t@AttachInternals() internals: ElementInternals;\n\n\t@Event() ifxInput: EventEmitter<String>;\n\n\t@Prop() caption: string;\n\t@Prop() cols: number;\n\t@Prop() disabled: boolean = false;\n\t@Prop() error: boolean = false;\n\t@Prop() label: string;\n\t@Prop() maxlength: number;\n\t@Prop() name: string;\n\t@Prop() placeholder: string;\n\t@Prop() readOnly: boolean = false;\n\t@Prop() resize: 'both' | 'horizontal' | 'vertical' | 'none' = 'both';\n\t@Prop() rows: number;\n\t@Prop({ mutable: true }) value: string;\n\t@Prop() wrap: 'hard' | 'soft' | 'off' = 'soft';\n\n\t@Method()\n\tasync reset() {\n\t\tthis.resetTextarea();\n\t}\n\t\n\tformResetCallback(): void {\n\t\tthis.resetTextarea();\n\t\tthis.internals.setFormValue(\"\");\n\t}\n\t\n\thandleOnInput(e: InputEvent): void {\n\t\tthis.value = (e.target as HTMLTextAreaElement).value;\n\t\tthis.internals.setFormValue(this.value);\n\t\tthis.ifxInput.emit(this.value);\n\t}\n\n\tresetTextarea() {\n\t\tthis.value = '';\n\t\tthis.internals.setValidity({});\n\t\tthis.internals.setFormValue('');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.internals.setFormValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`wrapper \n\t\t\t\t\t\twrapper--${this.error ? 'error' : ''}\n\t\t\t\t\t\twrapper--${this.disabled ? 'disabled': ''}`}>\n\t\t\t\t<label class='wrapper__label' htmlFor={ this.inputId }>\n\t\t\t\t\t{ this.label?.trim() }\n\t\t\t\t</label>\n\n\t\t\t\t<div class='wrapper__textarea'>\n\t\t\t\t\t<textarea\n\t\t\t\t\t\taria-label='a textarea'\n\t\t\t\t\t\taria-value={ this.value }\n\t\t\t\t\t\taria-disabled={ this.disabled }\n\t\t\t\t\t\tid={ this.inputId }\n\t\t\t\t\t\tstyle={ {resize: this.resize} }\n\t\t\t\t\t\tname={ this.name ? this.name : this.inputId}\n\t\t\t\t\t\tcols={ this.cols }\n\t\t\t\t\t\trows={ this.rows }\n\t\t\t\t\t\tmaxlength={ this.maxlength }\n\t\t\t\t\t\twrap={ this.wrap }\n\t\t\t\t\t\tdisabled={ this.disabled }\n\t\t\t\t\t\treadonly={ this.readOnly }\n\t\t\t\t\t\tplaceholder={ this.placeholder }\n\t\t\t\t\t\tvalue={ this.value }\n\t\t\t\t\t\tonInput={ (e) => this.handleOnInput(e) }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{ this.caption?.trim() && (\n\t\t\t\t\t<div class='wrapper__caption'>\n\t\t\t\t\t\t{ this.caption.trim() }\n\t\t\t\t\t</div> \n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n\nlet textareaId = 0;"]}
@@ -129,9 +129,7 @@ export default {
129
129
  },
130
130
  },
131
131
  ifxInput: {
132
- description: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes.\n
133
- event.detail: string
134
- `,
132
+ description: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes.`,
135
133
  table: {
136
134
  category: 'custom events',
137
135
  type: {
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.stories.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACL,OAAO,EAAC,+CAA+C;QACvD,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE;gBACN,QAAQ,EAAE,oBAAoB;aAC9B;SACD;QACD,IAAI,EAAE;YACL,WAAW,EAAE,gDAAgD;YAC7D,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE;YACnC,KAAK,EAAE;gBACN,QAAQ,EAAE,oBAAoB;gBAC9B,YAAY,EAAE;oBACb,OAAO,EAAE,CAAC;iBACV;aACD;SACD;QACD,QAAQ,EAAE;YACT,WAAW,EAAE,iDAAiD;YAC9D,KAAK,EAAE;gBACN,QAAQ,EAAE,oBAAoB;gBAC9B,YAAY,EAAE;oBACb,OAAO,EAAE,KAAK;iBACd;aACD;SACD;QACD,KAAK,EAAE;YACN,WAAW,EAAE,mCAAmC;YAChD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 'Components/Textarea',\n\ttags: ['autodocs'],\n\targs: {\n\t\tcaption:'Caption text, description, error notification',\n\t\tcols: 43,\n\t\tdisabled: false,\n\t\terror: false,\n\t\tlabel: 'Label Text',\n\t\tmaxlength: undefined,\n\t\tname: 'textarea',\n\t\tplaceholder: 'Placeholder',\n\t\treadOnly: false,\n\t\tresize: 'both',\n\t\trows: 5,\n\t\tvalue: '',\n\t\twrap: 'soft'\n\t},\n\targTypes: {\n\t\tcaption: {\n\t\t\tdescription: 'Set the caption text of textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\tcols: {\n\t\t\tdescription: 'Set the visible width of the textarea control.',\n\t\t\tcontrol: { type: 'number', min: 0 },\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tdisabled: {\n\t\t\tdescription: 'Disables the user interaction when set to true.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: false,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\terror: {\n\t\t\tdescription: 'Set the component to error state.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: false,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tlabel: {\n\t\t\tdescription: 'Set the label of textarea component.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\tmaxlength: {\n\t\t\tdescription: 'Set the maximum string length user can enter.',\n\t\t\ttype: 'number',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t}\n\t\t},\n\t\tname: {\n\t\t\tdescription: 'The name of the control. Useful for form handling.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'ifx-textarea-[n]',\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tplaceholder: {\n\t\t\tdescription: 'Set the placeholder text of textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t}\n\t\t},\n\t\treadOnly: {\n\t\t\tname: 'read-only',\n\t\t\tdescription: `Text cannot be edited when set to true.\\n \n*Note: It is different from disabled prop, control is focusable in readOnly mode unlike disabled.*`,\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'false',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tresize: {\n\t\t\tdescription: 'Sets whether the textarea is resizable, and if so, in which directions.',\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['both', 'vertical', 'horizontal', 'none'],\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'none',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\trows: {\n\t\t\tdescription: 'Set the number of visible text lines for the textrarea control.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tvalue: {\n\t\t\tdescription: 'Current value of the textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\twrap: {\n\t\t\tdescription: 'Indicates how the control should wrap the value for form submission.',\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['soft', 'hard', 'off'],\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'soft',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tifxInput: {\n\t\t\tdescription: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes.\\n\n\tevent.detail: string\n\t\t\t`,\n\t\t\ttable: {\n\t\t\t\tcategory: 'custom events',\n\t\t\t\ttype: {\n\t\t\t\t\tsummary: 'Framework integration',\n\t\t\t\t\tdetail: `\nReact: onIfxInput={handleInput}\nVue: @ifxInput=\"handleInput\"\nAngular: (ifxInput)=\"handleInput()\"\nVanillaJs: .addEventListener(\"ifxInput\", (event) => {/*handle input*/});`,\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n\nconst Template = (args) => {\n\tconst wrapper = document.createElement('div');\n\twrapper.innerHTML = `\n<ifx-textarea \n\tcaption=\"${args.caption}\"\n\tcols=\"${args.cols}\"\n\tdisabled=\"${args.disabled}\"\n\terror=\"${args.error}\"\n\tlabel=\"${args.label}\"\n\tmaxlength=\"${args.maxlength}\"\n\tname=\"${args.name}\"\n\tplaceholder=\"${args.placeholder}\"\n\tread-only=\"${args.readOnly}\"\n\tresize=\"${args.resize}\"\n\trows=\"${args.rows}\"\n\tvalue=\"${args.value}\"\n\twrap=\"${args.wrap}\"\n/>\n`;\n\tconst textarea = wrapper.querySelector('ifx-textarea');\n\ttextarea.addEventListener('ifxInput', action('ifxInput'));\n\n\treturn textarea;\n};\n\nexport const Default = Template.bind({});"]}
1
+ {"version":3,"file":"textarea.stories.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACL,OAAO,EAAE,+CAA+C;QACxD,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,aAAa;QA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,CAAC,SAAS,GAAG;;YAET,IAAI,CAAC,OAAO;SACf,IAAI,CAAC,IAAI;aACL,IAAI,CAAC,QAAQ;UAChB,IAAI,CAAC,KAAK;UACV,IAAI,CAAC,KAAK;cACN,IAAI,CAAC,SAAS;SACnB,IAAI,CAAC,IAAI;gBACF,IAAI,CAAC,WAAW;cAClB,IAAI,CAAC,QAAQ;WAChB,IAAI,CAAC,MAAM;SACb,IAAI,CAAC,IAAI;UACR,IAAI,CAAC,KAAK;SACX,IAAI,CAAC,IAAI;;CAEjB,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACvD,QAAQ,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IAE1D,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n\ttitle: 'Components/Textarea',\n\ttags: ['autodocs'],\n\targs: {\n\t\tcaption: 'Caption text, description, error notification',\n\t\tcols: 43,\n\t\tdisabled: false,\n\t\terror: false,\n\t\tlabel: 'Label Text',\n\t\tmaxlength: undefined,\n\t\tname: 'textarea',\n\t\tplaceholder: 'Placeholder',\n\t\treadOnly: false,\n\t\tresize: 'both',\n\t\trows: 5,\n\t\tvalue: '',\n\t\twrap: 'soft'\n\t},\n\targTypes: {\n\t\tcaption: {\n\t\t\tdescription: 'Set the caption text of textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\tcols: {\n\t\t\tdescription: 'Set the visible width of the textarea control.',\n\t\t\tcontrol: { type: 'number', min: 0 },\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tdisabled: {\n\t\t\tdescription: 'Disables the user interaction when set to true.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: false,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\terror: {\n\t\t\tdescription: 'Set the component to error state.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: false,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tlabel: {\n\t\t\tdescription: 'Set the label of textarea component.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\tmaxlength: {\n\t\t\tdescription: 'Set the maximum string length user can enter.',\n\t\t\ttype: 'number',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t}\n\t\t},\n\t\tname: {\n\t\t\tdescription: 'The name of the control. Useful for form handling.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'ifx-textarea-[n]',\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tplaceholder: {\n\t\t\tdescription: 'Set the placeholder text of textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t}\n\t\t},\n\t\treadOnly: {\n\t\t\tname: 'read-only',\n\t\t\tdescription: `Text cannot be edited when set to true.\\n \n*Note: It is different from disabled prop, control is focusable in readOnly mode unlike disabled.*`,\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'false',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tresize: {\n\t\t\tdescription: 'Sets whether the textarea is resizable, and if so, in which directions.',\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['both', 'vertical', 'horizontal', 'none'],\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'none',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\trows: {\n\t\t\tdescription: 'Set the number of visible text lines for the textrarea control.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tvalue: {\n\t\t\tdescription: 'Current value of the textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\twrap: {\n\t\t\tdescription: 'Indicates how the control should wrap the value for form submission.',\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['soft', 'hard', 'off'],\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'soft',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tifxInput: {\n\t\t\tdescription: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes.`,\n\t\t\ttable: {\n\t\t\t\tcategory: 'custom events',\n\t\t\t\ttype: {\n\t\t\t\t\tsummary: 'Framework integration',\n\t\t\t\t\tdetail: `\nReact: onIfxInput={handleInput}\nVue: @ifxInput=\"handleInput\"\nAngular: (ifxInput)=\"handleInput()\"\nVanillaJs: .addEventListener(\"ifxInput\", (event) => {/*handle input*/});`,\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n\nconst Template = (args) => {\n\tconst wrapper = document.createElement('div');\n\twrapper.innerHTML = `\n<ifx-textarea \n\tcaption=\"${args.caption}\"\n\tcols=\"${args.cols}\"\n\tdisabled=\"${args.disabled}\"\n\terror=\"${args.error}\"\n\tlabel=\"${args.label}\"\n\tmaxlength=\"${args.maxlength}\"\n\tname=\"${args.name}\"\n\tplaceholder=\"${args.placeholder}\"\n\tread-only=\"${args.readOnly}\"\n\tresize=\"${args.resize}\"\n\trows=\"${args.rows}\"\n\tvalue=\"${args.value}\"\n\twrap=\"${args.wrap}\"\n/>\n`;\n\tconst textarea = wrapper.querySelector('ifx-textarea');\n\ttextarea.addEventListener('ifxInput', action('ifxInput'));\n\n\treturn textarea;\n};\n\nexport const Default = Template.bind({});"]}
@@ -2,6 +2,12 @@ import { h } from "@stencil/core";
2
2
  import { createPopper } from "@popperjs/core";
3
3
  export class Tooltip {
4
4
  constructor() {
5
+ this.tooltipVisible = false;
6
+ this.header = '';
7
+ this.text = '';
8
+ this.position = 'auto';
9
+ this.internalPosition = 'auto';
10
+ this.variant = 'compact';
5
11
  this.popperInstance = null;
6
12
  this.onMouseEnter = () => {
7
13
  var _a, _b;
@@ -35,13 +41,6 @@ export class Tooltip {
35
41
  this.tooltipVisible = false;
36
42
  this.tooltipEl.style.display = 'none';
37
43
  };
38
- this.tooltipVisible = false;
39
- this.header = '';
40
- this.text = '';
41
- this.position = 'auto';
42
- this.internalPosition = 'auto';
43
- this.variant = 'compact';
44
- this.icon = undefined;
45
44
  }
46
45
  componentWillLoad() {
47
46
  if (this.variant.toLowerCase().trim() === "") {
@@ -149,10 +148,10 @@ export class Tooltip {
149
148
  'tooltip-extended': true,
150
149
  'visible': this.tooltipVisible,
151
150
  };
152
- return (h("div", { key: '7da57630a19be3d8b55667e0764445203cd1f77c', "aria-label": "a tooltip showing important information", "aria-value": this.header, class: "tooltip__container" }, h("slot", { key: '3a55da34a85606a8fd32207550366fad3436f120' }), this.variant.toLowerCase() === 'dismissible' && h("div", { key: '67dec6dcc56c7f3ca8a8a67ff070df931433f71e', class: tooltipDismissible }, h("button", { key: 'db34f7fe5237d960ff0a728f4b82c3df30c6266b', "aria-label": "Close Tooltip", class: "close-button", onClick: this.onDismissClick }, h("ifx-icon", { key: 'de96a6255887700e6b89a38b0ff549ea3916e1e7', icon: "cross16" })), h("div", { key: 'e324ffa46233ca6931ebe766c95e391d7c3d9ce2', class: "tooltip-dismissible-content" }, this.header && h("div", { key: 'd435679be58ec126b9fa9f785e960d2ef39b259d', class: "tooltip-dismissible-header" }, this.header), h("div", { key: 'd3ce120faae0d9b12d28069673d19e403e52763f', class: "tooltip-dismissible-body" }, this.text)), h("svg", { key: '28bf2c543359173d1ab0be2c9f098ff813b17650', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'a355efa505ea997469320a35262780942e495504', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'compact' &&
153
- h("div", { key: '55d7bfd3d951839bf89f887419e57b85623a3a0e', class: tooltipCompact }, this.text, h("svg", { key: '36247aaeda7486865b15ca4e4097a36b69d571c1', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ac90b5fd1f7188993695a1fc3ac084d8ba8cc8ee', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'extended' &&
154
- h("div", { key: 'de8269abcb6ddc0219024b77f26d95cb809c8818', class: tooltipExtended }, h("slot", { key: 'f88f2cdaa9bafa4d95d7a6953fc4a2b4c49cad35', name: "icon" }, this.icon ? h("div", { class: "extended_icon" }, h("ifx-icon", { icon: this.icon })) :
155
- h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: '226db4dd5c26b73ee30e20378b5a664bc365581b', class: "tooltip-extended-content" }, this.header && h("div", { key: '47a5ffc018245e0375255ea0eefe77e85e3b630c', class: "tooltip-extended-header" }, this.header), h("div", { key: '7892a686219be701d4a912a77edf77ba9cb5840a', class: "tooltip-extended-body" }, this.text)), h("svg", { key: '143b7a548b751cabb80450637ca8f9da9d54efa7', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '973348331d6ff15eaa25d9d29ab8490b5961d510', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" })))));
151
+ return (h("div", { key: '246f0b291e39bbe49ebea1eed9827400f22bb680', "aria-label": "a tooltip showing important information", "aria-value": this.header, class: "tooltip__container" }, h("slot", { key: 'a16771de825d12d46661be2ecb61ce8326e25794' }), this.variant.toLowerCase() === 'dismissible' && h("div", { key: '974e0fdbf389fcce6cc34eccb897b188f0413eea', class: tooltipDismissible }, h("button", { key: 'a777e5a63134c07f4330d790044a7aafdb63a83c', "aria-label": "Close Tooltip", class: "close-button", onClick: this.onDismissClick }, h("ifx-icon", { key: '69cc351f97d892f98cf8bc3df48d2877129e4238', icon: "cross16" })), h("div", { key: '5db6f0ceff12be22d6de58767bab509b67dd9ff8', class: "tooltip-dismissible-content" }, this.header && h("div", { key: '22fd94a588780e413dc04dcc126380b5b382fde6', class: "tooltip-dismissible-header" }, this.header), h("div", { key: 'abd4158d18a1c57dda508caddcdb1be945a8efd2', class: "tooltip-dismissible-body" }, this.text)), h("svg", { key: '1bcd11086f4922c03532c99b2dd1618b862af68b', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5dfac1fa79d7204b1f0770ed243cdbadfc14fdd9', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'compact' &&
152
+ h("div", { key: 'a52aec447163df16d86d14f96d74501c45266e2a', class: tooltipCompact }, this.text, h("svg", { key: 'c28c49ee4446d73b366bb68280ddf5b9192cc79a', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2de515ea4344c728a1da4b368c93c7ade11badcb', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'extended' &&
153
+ h("div", { key: '9e3186e4856770c831d0422bce64b131c64f55f0', class: tooltipExtended }, h("slot", { key: '089640249dbfcf8eed4525615d6e289955304e09', name: "icon" }, this.icon ? h("div", { class: "extended_icon" }, h("ifx-icon", { icon: this.icon })) :
154
+ h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: 'eab4f9af96d154a289bec83673db47d3580c267d', class: "tooltip-extended-content" }, this.header && h("div", { key: '810497a167351bef22a9e61050264032be295455', class: "tooltip-extended-header" }, this.header), h("div", { key: '802dbe5e093b9d69b9155e188d35a421b2ca0c2e', class: "tooltip-extended-body" }, this.text)), h("svg", { key: 'ff19a79905e5ea4af628364a254e03e022a08a3d', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '557540e1fd91ad15580011ddf37a4cd25a8a6ae3', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" })))));
156
155
  }
157
156
  static get is() { return "ifx-tooltip"; }
158
157
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ9C,MAAM,OAAO,OAAO;;QAclB,mBAAc,GAAQ,IAAI,CAAC;QA2G3B,iBAAY,GAAG,GAAG,EAAE;;YAClB,yCAAyC;YACzC,MAAA,IAAI,CAAC,cAAc,0CAAE,UAAU,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,iCACxC,OAAO,KACV,SAAS,EAAE;oBACT,GAAG,OAAO,CAAC,SAAS;oBACpB,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE;iBAC1C,IACD,CAAC,CAAC;YAEJ,iCAAiC;YACjC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAExB,2BAA2B;YAC3B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;YAEvC,8DAA8D;YAC9D,MAAA,IAAI,CAAC,cAAc,0CAAE,MAAM,EAAE,CAAC;QAChC,CAAC,CAAA;QAGD,iBAAY,GAAG,GAAG,EAAE;YAClB,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QAExC,CAAC,CAAA;QAMD,YAAO,GAAG,GAAG,EAAE;;YACb,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,E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;wBACxE,4DAAK,KAAK,EAAC,uBAAuB,IAAE,IAAI,CAAC,IAAI,CAAO,CAChD;oBACN,4DAAK,KAAK,EAAC,mBAAmB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;wBACpH,6DAAM,EAAE,EAAC,WAAW,EAAC,CAAC,EAAC,oBAAoB,EAAC,IAAI,EAAC,SAAS,GAAG,CACzD,CACD,CAEL,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import { Component, Prop, h, Element, State, Watch } from '@stencil/core';\nimport { createPopper } from '@popperjs/core';\n \n\n@Component({\n tag: 'ifx-tooltip',\n styleUrl: 'tooltip.scss',\n shadow: true\n})\nexport class Tooltip {\n\n @Element() el: HTMLElement;\n @State() tooltipVisible: boolean = false;\n @Prop() header: string = '';\n @Prop() text: string = '';\n @Prop() position: 'bottom-start' | 'top-start' | 'left' | 'bottom-end' | 'top-end' | 'right' | 'bottom' | 'top' | 'auto' = 'auto';\n @State() internalPosition: 'bottom-start' | 'top-start' | 'left' | 'bottom-end' | 'top-end' | 'right' | 'bottom' | 'top' | 'auto' = 'auto';\n\n @Prop() variant: 'compact' | 'dismissible' | 'extended' = 'compact';\n @Prop() icon: string;\n\n tooltipEl: HTMLElement;\n referenceEl: HTMLElement;\n popperInstance: any = null;\n\n\n componentWillLoad() { \n if(this.variant.toLowerCase().trim() === \"\") { \n this.variant = 'compact'\n }\n }\n \n componentDidLoad() {\n const slotElement = this.el.shadowRoot.querySelector('.tooltip__container').firstChild;\n \n if(this.variant.toLowerCase() === 'compact' || this.variant.toLowerCase() === 'extended') {\n slotElement.addEventListener('mouseenter', this.onMouseEnter)\n slotElement.addEventListener('mouseleave', this.onMouseLeave)\n }else{\n slotElement.addEventListener('click', this.onClick);\n }\n\n }\n\n initializePopper() {\n if (this.popperInstance) return;\n\n this.referenceEl = this.el;\n this.tooltipEl;\n if (this.variant.toLowerCase() === 'compact') {\n this.tooltipEl = this.el.shadowRoot.querySelector('.tooltip-compact');\n }\n else if (this.variant.toLowerCase() === 'dismissible') {\n this.tooltipEl = this.el.shadowRoot.querySelector('.tooltip-dismissible');\n }\n else {\n this.tooltipEl = this.el.shadowRoot.querySelector('.tooltip-extended');\n\n }\n\n const effectivePosition = this.position === 'auto' ? this.determineBestPosition() : this.position;\n\n // Set the internalPosition\n this.internalPosition = effectivePosition;\n\n if (this.tooltipEl && this.referenceEl) {\n\n this.popperInstance = createPopper(this.referenceEl, this.tooltipEl, {\n placement: this.internalPosition,\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, 8] // this offset should be adjusted to ensure the tooltip doesn't overlap its reference element\n }\n },\n {\n name: 'arrow',\n options: {\n element: '.tooltip-arrow-svg'\n }\n }\n ]\n });\n\n }\n\n // Add this line to set the 'data-placement' attribute on the tooltip\n this.tooltipEl.setAttribute('data-placement', effectivePosition);\n\n\n }\n\n determineBestPosition() {\n // This is a simplified version, you can enhance this based on available viewport space.\n const rect = this.referenceEl.getBoundingClientRect();\n const yOffset = window.scrollY; // Get current scroll position\n const xOffset = window.scrollX; // Get current horizontal scroll position\n\n const verticalHalfwayPoint = rect.top + yOffset + rect.height / 2;\n const horizontalHalfwayPoint = rect.left + xOffset + rect.width / 2;\n\n if (this.position === 'auto') {\n if (verticalHalfwayPoint > window.innerHeight / 2) {\n if (horizontalHalfwayPoint > window.innerWidth / 2) {\n return 'top-end';\n } else {\n return 'top-start';\n }\n } else {\n if (horizontalHalfwayPoint > window.innerWidth / 2) {\n return 'bottom-end';\n } else {\n return 'bottom-start';\n }\n }\n } else {\n return this.position;\n }\n }\n\n @Watch('position')\n positionChanged(newVal: any) {\n this.internalPosition = newVal;\n this.popperInstance?.destroy();\n this.popperInstance = null; // Force re-initialization on next mouse enter\n }\n\n\n\n onMouseEnter = () => {\n // Enable the event listeners immediately\n this.popperInstance?.setOptions((options) => ({\n ...options,\n modifiers: [\n ...options.modifiers,\n { name: 'eventListeners', enabled: true },\n ],\n }));\n\n // Initialize the popper instance\n this.initializePopper();\n\n // Make the tooltip visible\n this.tooltipVisible = true;\n this.tooltipEl.style.display = 'block';\n\n // Update the popper instance immediately after initialization\n this.popperInstance?.update();\n }\n\n\n onMouseLeave = () => {\n this.tooltipVisible = false;\n this.tooltipEl.style.display = 'none';\n\n }\n\n disconnectedCallback() {\n this.popperInstance?.destroy();\n }\n\n onClick = () => {\n if (this.variant.toLowerCase() === 'dismissible') {\n this.initializePopper();\n this.tooltipVisible = !this.tooltipVisible;\n this.tooltipEl.style.display = this.tooltipVisible ? 'block' : 'none';\n this.popperInstance?.update();\n }\n }\n\n onDismissClick = () => {\n this.tooltipVisible = false;\n this.tooltipEl.style.display = 'none';\n }\n\n render() {\n const tooltipDismissible = {\n 'tooltip-dismissible': true,\n 'visible': this.tooltipVisible,\n };\n\n const tooltipCompact = {\n 'tooltip-compact': true,\n 'visible': this.tooltipVisible,\n };\n\n const tooltipExtended = {\n 'tooltip-extended': true,\n 'visible': this.tooltipVisible,\n };\n\n return (\n <div aria-label=\"a tooltip showing important information\" aria-value={this.header} class=\"tooltip__container\" >\n <slot></slot>\n\n {this.variant.toLowerCase() === 'dismissible' && <div class={tooltipDismissible}>\n <button aria-label=\"Close Tooltip\" class=\"close-button\" onClick={this.onDismissClick}>\n <ifx-icon icon=\"cross16\"></ifx-icon>\n </button>\n <div class=\"tooltip-dismissible-content\">\n {this.header && <div class=\"tooltip-dismissible-header\">{this.header}</div>}\n <div class=\"tooltip-dismissible-body\">{this.text}</div>\n </div>\n <svg class=\"tooltip-arrow-svg\" width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Indicator\" d=\"M6 0L12 8L0 8L6 0Z\" fill=\"#1D1D1D\" />\n </svg>\n </div>\n }\n {this.variant.toLowerCase() === 'compact' &&\n <div class={tooltipCompact}>\n {this.text}\n <svg class=\"tooltip-arrow-svg\" width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Indicator\" d=\"M6 0L12 8L0 8L6 0Z\" fill=\"#1D1D1D\" />\n </svg>\n </div>\n }\n {this.variant.toLowerCase() === 'extended' &&\n <div class={tooltipExtended}>\n <slot name=\"icon\">\n {this.icon ? <div class=\"extended_icon\"><ifx-icon icon={this.icon}></ifx-icon></div> :\n <svg class=\"extended_icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"#fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z\" />\n <path stroke=\"#fff\" d=\"M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z\" />\n <path fill=\"#fff\" d=\"M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\" />\n </svg>\n }\n </slot>\n <div class=\"tooltip-extended-content\">\n {this.header && <div class=\"tooltip-extended-header\">{this.header}</div>}\n <div class=\"tooltip-extended-body\">{this.text}</div>\n </div>\n <svg class=\"tooltip-arrow-svg\" width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Indicator\" d=\"M6 0L12 8L0 8L6 0Z\" fill=\"#1D1D1D\" />\n </svg>\n </div >\n }\n </div>\n );\n }\n\n\n}"]}
1
+ {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names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AmB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;wBACpH,6DAAM,EAAE,EAAC,WAAW,EAAC,CAAC,EAAC,oBAAoB,EAAC,IAAI,EAAC,SAAS,GAAG,CACzD,CACD,CAEL,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import { Component, Prop, h, Element, State, Watch } from '@stencil/core';\nimport { createPopper } from '@popperjs/core';\n \n\n@Component({\n tag: 'ifx-tooltip',\n styleUrl: 'tooltip.scss',\n shadow: true\n})\nexport class Tooltip {\n\n @Element() el: HTMLElement;\n @State() tooltipVisible: boolean = false;\n @Prop() header: string = '';\n @Prop() text: string = '';\n @Prop() position: 'bottom-start' | 'top-start' | 'left' | 'bottom-end' | 'top-end' | 'right' | 'bottom' | 'top' | 'auto' = 'auto';\n @State() internalPosition: 'bottom-start' | 'top-start' | 'left' | 'bottom-end' | 'top-end' | 'right' | 'bottom' | 'top' | 'auto' = 'auto';\n\n @Prop() variant: 'compact' | 'dismissible' | 'extended' = 'compact';\n @Prop() icon: string;\n\n tooltipEl: HTMLElement;\n referenceEl: HTMLElement;\n popperInstance: any = null;\n\n\n componentWillLoad() { \n if(this.variant.toLowerCase().trim() === \"\") { \n this.variant = 'compact'\n }\n }\n \n componentDidLoad() {\n const slotElement = this.el.shadowRoot.querySelector('.tooltip__container').firstChild;\n \n if(this.variant.toLowerCase() === 'compact' || this.variant.toLowerCase() === 'extended') {\n slotElement.addEventListener('mouseenter', this.onMouseEnter)\n slotElement.addEventListener('mouseleave', this.onMouseLeave)\n }else{\n slotElement.addEventListener('click', this.onClick);\n }\n\n }\n\n initializePopper() {\n if (this.popperInstance) return;\n\n this.referenceEl = this.el;\n this.tooltipEl;\n if (this.variant.toLowerCase() === 'compact') {\n this.tooltipEl = this.el.shadowRoot.querySelector('.tooltip-compact');\n }\n else if (this.variant.toLowerCase() === 'dismissible') {\n this.tooltipEl = this.el.shadowRoot.querySelector('.tooltip-dismissible');\n }\n else {\n this.tooltipEl = this.el.shadowRoot.querySelector('.tooltip-extended');\n\n }\n\n const effectivePosition = this.position === 'auto' ? this.determineBestPosition() : this.position;\n\n // Set the internalPosition\n this.internalPosition = effectivePosition;\n\n if (this.tooltipEl && this.referenceEl) {\n\n this.popperInstance = createPopper(this.referenceEl, this.tooltipEl, {\n placement: this.internalPosition,\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, 8] // this offset should be adjusted to ensure the tooltip doesn't overlap its reference element\n }\n },\n {\n name: 'arrow',\n options: {\n element: '.tooltip-arrow-svg'\n }\n }\n ]\n });\n\n }\n\n // Add this line to set the 'data-placement' attribute on the tooltip\n this.tooltipEl.setAttribute('data-placement', effectivePosition);\n\n\n }\n\n determineBestPosition() {\n // This is a simplified version, you can enhance this based on available viewport space.\n const rect = this.referenceEl.getBoundingClientRect();\n const yOffset = window.scrollY; // Get current scroll position\n const xOffset = window.scrollX; // Get current horizontal scroll position\n\n const verticalHalfwayPoint = rect.top + yOffset + rect.height / 2;\n const horizontalHalfwayPoint = rect.left + xOffset + rect.width / 2;\n\n if (this.position === 'auto') {\n if (verticalHalfwayPoint > window.innerHeight / 2) {\n if (horizontalHalfwayPoint > window.innerWidth / 2) {\n return 'top-end';\n } else {\n return 'top-start';\n }\n } else {\n if (horizontalHalfwayPoint > window.innerWidth / 2) {\n return 'bottom-end';\n } else {\n return 'bottom-start';\n }\n }\n } else {\n return this.position;\n }\n }\n\n @Watch('position')\n positionChanged(newVal: any) {\n this.internalPosition = newVal;\n this.popperInstance?.destroy();\n this.popperInstance = null; // Force re-initialization on next mouse enter\n }\n\n\n\n onMouseEnter = () => {\n // Enable the event listeners immediately\n this.popperInstance?.setOptions((options) => ({\n ...options,\n modifiers: [\n ...options.modifiers,\n { name: 'eventListeners', enabled: true },\n ],\n }));\n\n // Initialize the popper instance\n this.initializePopper();\n\n // Make the tooltip visible\n this.tooltipVisible = true;\n this.tooltipEl.style.display = 'block';\n\n // Update the popper instance immediately after initialization\n this.popperInstance?.update();\n }\n\n\n onMouseLeave = () => {\n this.tooltipVisible = false;\n this.tooltipEl.style.display = 'none';\n\n }\n\n disconnectedCallback() {\n this.popperInstance?.destroy();\n }\n\n onClick = () => {\n if (this.variant.toLowerCase() === 'dismissible') {\n this.initializePopper();\n this.tooltipVisible = !this.tooltipVisible;\n this.tooltipEl.style.display = this.tooltipVisible ? 'block' : 'none';\n this.popperInstance?.update();\n }\n }\n\n onDismissClick = () => {\n this.tooltipVisible = false;\n this.tooltipEl.style.display = 'none';\n }\n\n render() {\n const tooltipDismissible = {\n 'tooltip-dismissible': true,\n 'visible': this.tooltipVisible,\n };\n\n const tooltipCompact = {\n 'tooltip-compact': true,\n 'visible': this.tooltipVisible,\n };\n\n const tooltipExtended = {\n 'tooltip-extended': true,\n 'visible': this.tooltipVisible,\n };\n\n return (\n <div aria-label=\"a tooltip showing important information\" aria-value={this.header} class=\"tooltip__container\" >\n <slot></slot>\n\n {this.variant.toLowerCase() === 'dismissible' && <div class={tooltipDismissible}>\n <button aria-label=\"Close Tooltip\" class=\"close-button\" onClick={this.onDismissClick}>\n <ifx-icon icon=\"cross16\"></ifx-icon>\n </button>\n <div class=\"tooltip-dismissible-content\">\n {this.header && <div class=\"tooltip-dismissible-header\">{this.header}</div>}\n <div class=\"tooltip-dismissible-body\">{this.text}</div>\n </div>\n <svg class=\"tooltip-arrow-svg\" width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Indicator\" d=\"M6 0L12 8L0 8L6 0Z\" fill=\"#1D1D1D\" />\n </svg>\n </div>\n }\n {this.variant.toLowerCase() === 'compact' &&\n <div class={tooltipCompact}>\n {this.text}\n <svg class=\"tooltip-arrow-svg\" width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Indicator\" d=\"M6 0L12 8L0 8L6 0Z\" fill=\"#1D1D1D\" />\n </svg>\n </div>\n }\n {this.variant.toLowerCase() === 'extended' &&\n <div class={tooltipExtended}>\n <slot name=\"icon\">\n {this.icon ? <div class=\"extended_icon\"><ifx-icon icon={this.icon}></ifx-icon></div> :\n <svg class=\"extended_icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"#fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z\" />\n <path stroke=\"#fff\" d=\"M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z\" />\n <path fill=\"#fff\" d=\"M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\" />\n </svg>\n }\n </slot>\n <div class=\"tooltip-extended-content\">\n {this.header && <div class=\"tooltip-extended-header\">{this.header}</div>}\n <div class=\"tooltip-extended-body\">{this.text}</div>\n </div>\n <svg class=\"tooltip-arrow-svg\" width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Indicator\" d=\"M6 0L12 8L0 8L6 0Z\" fill=\"#1D1D1D\" />\n </svg>\n </div >\n }\n </div>\n );\n }\n\n\n}"]}
@@ -10,19 +10,63 @@ export default {
10
10
  icon: 'c-info-24',
11
11
  },
12
12
  argTypes: {
13
+ text: {
14
+ description: 'Defines the main content of the tooltip.',
15
+ control: 'text',
16
+ table: {
17
+ category: 'ifx-tooltip props',
18
+ type: {
19
+ summary: 'string'
20
+ }
21
+ }
22
+ },
13
23
  icon: {
24
+ description: 'The icon to be displayed. This control is only applicable when the variant is set to ***extended***.',
14
25
  options: Object.values(icons).map(i => i['name']),
15
- control: { type: 'select' },
26
+ control: 'select',
27
+ table: {
28
+ category: 'ifx-tooltip props',
29
+ type: {
30
+ summary: 'string',
31
+ defaultValue: {
32
+ summary: 'c-info-24'
33
+ }
34
+ }
35
+ }
16
36
  },
17
37
  position: {
38
+ description: 'Determines the position of the tooltip relative to the reference element.',
18
39
  options: ['auto', 'bottom-start', 'top-start', 'left', 'bottom-end', 'top-end', 'right', 'bottom', 'top'],
19
- control: { type: 'radio' },
40
+ control: 'radio',
41
+ table: {
42
+ category: 'ifx-tooltip props',
43
+ defaultValue: {
44
+ summary: 'auto'
45
+ }
46
+ }
20
47
  },
21
48
  variant: {
49
+ description: 'Sets the style variant of the tooltip.',
50
+ control: 'radio',
22
51
  options: ['compact', 'dismissible', 'extended'],
23
- control: { type: 'radio' },
52
+ table: {
53
+ category: 'ifx-tooltip props',
54
+ defaultValue: {
55
+ summary: 'compact'
56
+ }
57
+ }
58
+ },
59
+ header: {
60
+ description: 'Specifies the header or title of the tooltip. This field is only applicable when the variant is set to ***dismissible*** or ***extended***.',
61
+ control: 'text',
62
+ if: { arg: 'variant', neq: 'compact' },
63
+ table: {
64
+ category: 'ifx-tooltip props',
65
+ type: {
66
+ summary: 'string'
67
+ }
68
+ }
24
69
  },
25
- header: { control: 'text', if: { arg: 'variant', neq: 'compact' } },
26
70
  },
27
71
  };
28
72
  const DefaultTemplate = ({ header, text, variant, position, icon }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.stories.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QAC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S,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC/E,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEnC,OAAO,CAAC,WAAW,GAAG,8CAA8C,OAAO,KAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,wCAAwC;IAE9J,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Tooltip',\n tags: ['autodocs'],\n args: {\n header: 'Tooltip headline',\n text: \"Hi, I'm a tooltip\",\n position: 'auto',\n variant: 'compact',\n icon: 'c-info-24',\n },\n argTypes: {\n icon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n position: {\n options: ['auto', 'bottom-start', 'top-start', 'left', 'bottom-end', 'top-end', 'right', 'bottom', 'top'],\n control: { type: 'radio' },\n },\n variant: {\n options: ['compact', 'dismissible', 'extended'],\n control: { type: 'radio' },\n },\n header: { control: 'text', if: { arg: 'variant', neq: 'compact' } },\n },\n};\n\nconst DefaultTemplate = ({ header, text, variant, position, icon }) => {\n const element = document.createElement('ifx-tooltip');\n if (variant === 'dismissible' || variant === 'extended') {\n element.setAttribute('header', header);\n }\n element.setAttribute('text', text);\n element.setAttribute('variant', variant === 'extended' ? 'extended' : variant);\n element.setAttribute('position', position);\n element.setAttribute('icon', icon);\n\n element.textContent = `I'm the tooltip reference element - Please ${variant==='dismissible' ? 'click' : 'hover'} me`; // Set content for the reference element\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
1
+ {"version":3,"file":"tooltip.stories.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O,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Tooltip',\n tags: ['autodocs'],\n args: {\n header: 'Tooltip headline',\n text: \"Hi, I'm a tooltip\",\n position: 'auto',\n variant: 'compact',\n icon: 'c-info-24',\n },\n argTypes: {\n text: {\n description: 'Defines the main content of the tooltip.',\n control: 'text',\n table: {\n category: 'ifx-tooltip props',\n type: {\n summary: 'string'\n }\n }\n },\n icon: {\n description: 'The icon to be displayed. This control is only applicable when the variant is set to ***extended***.',\n options: Object.values(icons).map(i => i['name']),\n control: 'select',\n table: {\n category: 'ifx-tooltip props',\n type: {\n summary: 'string',\n defaultValue: {\n summary: 'c-info-24'\n }\n }\n }\n },\n position: {\n description: 'Determines the position of the tooltip relative to the reference element.',\n options: ['auto', 'bottom-start', 'top-start', 'left', 'bottom-end', 'top-end', 'right', 'bottom', 'top'],\n control: 'radio',\n table: {\n category: 'ifx-tooltip props',\n defaultValue: {\n summary: 'auto'\n }\n }\n },\n variant: {\n description: 'Sets the style variant of the tooltip.',\n control: 'radio',\n options: ['compact', 'dismissible', 'extended'],\n table: {\n category: 'ifx-tooltip props',\n defaultValue: {\n summary: 'compact'\n }\n }\n },\n header: {\n description: 'Specifies the header or title of the tooltip. This field is only applicable when the variant is set to ***dismissible*** or ***extended***.',\n control: 'text', \n if: { arg: 'variant', neq: 'compact' },\n table: {\n category: 'ifx-tooltip props',\n type: {\n summary: 'string'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = ({ header, text, variant, position, icon }) => {\n const element = document.createElement('ifx-tooltip');\n if (variant === 'dismissible' || variant === 'extended') {\n element.setAttribute('header', header);\n }\n element.setAttribute('text', text);\n element.setAttribute('variant', variant === 'extended' ? 'extended' : variant);\n element.setAttribute('position', position);\n element.setAttribute('icon', icon);\n\n element.textContent = `I'm the tooltip reference element - Please ${variant==='dismissible' ? 'click' : 'hover'} me`; // Set content for the reference element\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class Faq {
3
3
  render() {
4
- return (h("div", { key: '310199ef35dd0c3148f0f5ff09bccb8026f19f6d', class: 'container' }, h("ifx-accordion", { key: '0e51fae53f1f5fd744f5415150fe4cbf28226514' }, h("ifx-accordion-item", { key: 'bb5a317518851e309fc6c3bba2ac83a2203db857', caption: "What is the Infineon DDS?" }, "The Infineon Digital Design System consists of code components, design principles, tools and guidelines as well as a dedicated interdisciplinary team. Its purpose is to support internal and external colleagues create digital user interfaces with a high level of usability as well as a consistent expression of the Infineon brand. The DDS does not focus on the content of a web application but it describes how the design of the application\u2019s structure should be."), h("ifx-accordion-item", { key: '87db5207173436de4760cd693beebcb14710c565', caption: "How do I get access to the DDS?" }, "You can use the provided Figma file as a foundation for mockups and prototypes, use Storybook to view what UI components and variants are available and use code components provided via Storybook or Github."), h("ifx-accordion-item", { key: 'a01af54d49f47a46d9cf383cb3b1e3f17bd9720a', caption: "Can I integrate the Infineon DDS into my project?" }, "Yes, you can. We are happy to discuss with you which point in time and which scope of integration is bestsuited for updating your interface to the Infineon DDS. (To avoid that users get confused by a mixture of UI components, we recommend choosing larger updates or technology changes as opportunity to integrate the Infineon DDS.)"), h("ifx-accordion-item", { key: 'b7d22abc0d8751fc5774ac5509aca3a314103d6c', caption: "Are Infineon DDS components accessable?" }, "We have taken WCAG 2.0 Level AA as baseline level for all design decisions inside the Infineon Digital Design System. To make an online experience truly accessible you have to implement the specific code, content, and visual design according to the accessibility standard. Find an introduction to this topic here."), h("ifx-accordion-item", { key: 'a063b460cfcf6061e393fff4a9b1ca4aaca5b9f7', caption: "How to request a new component?" }, "Please contact us like described in the contribution section! We are planning to expand the number of components continually. If your component is also usable for multiple other projects, there is a good chance we might work together with you."))));
4
+ return (h("div", { key: '81dac064edfea12005954ca731cbbe00b8d69698', class: 'container' }, h("ifx-accordion", { key: 'f0a52cd1a0c95d038e036c3643504033b15cb342' }, h("ifx-accordion-item", { key: 'e1ed7801a5e7c5d83c8e0ee934dfdfea1925dc4d', caption: "What is the Infineon DDS?" }, "The Infineon Digital Design System consists of code components, design principles, tools and guidelines as well as a dedicated interdisciplinary team. Its purpose is to support internal and external colleagues create digital user interfaces with a high level of usability as well as a consistent expression of the Infineon brand. The DDS does not focus on the content of a web application but it describes how the design of the application\u2019s structure should be."), h("ifx-accordion-item", { key: '792c48fae24d106277a76554f5d66f5aaa0bb384', caption: "How do I get access to the DDS?" }, "You can use the provided Figma file as a foundation for mockups and prototypes, use Storybook to view what UI components and variants are available and use code components provided via Storybook or Github."), h("ifx-accordion-item", { key: '4ed509e6535edf0408f9ed9163d66e979c653370', caption: "Can I integrate the Infineon DDS into my project?" }, "Yes, you can. We are happy to discuss with you which point in time and which scope of integration is bestsuited for updating your interface to the Infineon DDS. (To avoid that users get confused by a mixture of UI components, we recommend choosing larger updates or technology changes as opportunity to integrate the Infineon DDS.)"), h("ifx-accordion-item", { key: 'a358a22ca675e01d5e402fe8a4268b27ccb471c5', caption: "Are Infineon DDS components accessable?" }, "We have taken WCAG 2.0 Level AA as baseline level for all design decisions inside the Infineon Digital Design System. To make an online experience truly accessible you have to implement the specific code, content, and visual design according to the accessibility standard. Find an introduction to this topic here."), h("ifx-accordion-item", { key: '88a06feeb2a093b38797667aec93adf4d82502d5', caption: "How to request a new component?" }, "Please contact us like described in the contribution section! We are planning to expand the number of components continually. If your component is also usable for multiple other projects, there is a good chance we might work together with you."))));
5
5
  }
6
6
  static get is() { return "ifx-faq"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,4 @@
1
- import { I as IfxAccordionItem$1, d as defineCustomElement$1 } from './p-b2439194.js';
1
+ import { I as IfxAccordionItem$1, d as defineCustomElement$1 } from './p-62eff23e.js';
2
2
 
3
3
  const IfxAccordionItem = IfxAccordionItem$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { A as Accordion, d as defineCustomElement$1 } from './p-094bb435.js';
1
+ import { A as Accordion, d as defineCustomElement$1 } from './p-a6310ccf.js';
2
2
 
3
3
  const IfxAccordion = Accordion;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,5 +1,5 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h } from './p-68d90201.js';
2
- import { d as defineCustomElement$2 } from './p-7e430b83.js';
1
+ import { p as proxyCustomElement, H, c as createEvent, h } from './p-a99edff1.js';
2
+ import { d as defineCustomElement$2 } from './p-06410557.js';
3
3
 
4
4
  const alertCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{display:block}.alert__info-wrapper{display:flex;padding:16px 24px;font-family:var(--ifx-font-family);box-shadow:0px 6px 9px 0px rgba(29, 29, 29, 0.1019607843)}.alert__info-wrapper .info__text-wrapper{display:flex;flex-direction:column;gap:8px;width:100%}.alert__info-wrapper .info__text-wrapper .info__headline-wrapper{display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.alert__info-wrapper .info__text-wrapper .info__headline-wrapper,.alert__info-wrapper .info__text-wrapper .info__description-wrapper{color:#1D1D1D;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.alert__info-wrapper .info__text-wrapper .info__headline-wrapper ::slotted(p),.alert__info-wrapper .info__text-wrapper .info__description-wrapper ::slotted(p){padding:0;margin:0}.alert__info-wrapper .info__text-wrapper .info__description-wrapper{font-weight:400}.alert__info-wrapper .close-icon-wrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.alert__info-wrapper .close-icon-wrapper button{all:unset;display:flex;align-items:center;justify-content:center;line-height:0;color:#1D1D1D;height:24px;width:24px}.alert__info-wrapper .close-icon-wrapper button:focus{outline:2px solid #0A8276;outline-offset:2px}.alert{display:flex;border:1px solid #0A8276;border-radius:1px;color:#1D1D1D;background-color:#FFFFFF;font-family:var(--ifx-font-family);box-shadow:0px 6px 9px 0px rgba(29, 29, 29, 0.1019607843)}.alert .close-icon-wrapper{display:flex;align-items:center;justify-content:center;min-width:40px}.alert .close-icon-wrapper button{all:unset;display:flex;align-items:center;justify-content:center;line-height:0;color:#1D1D1D;height:24px;width:24px}.alert .close-icon-wrapper button:focus{outline:2px solid #0A8276;outline-offset:2px}.alert .icon-wrapper{position:relative;min-width:48px;display:flex;justify-content:center;align-items:center;background-color:#0A8276}.alert .alert-text{font-size:16px;width:100%;padding:12px 0px 12px 12px;color:#1D1D1D;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;}.alert.primary{border:1px solid #0A8276}.alert.primary .icon-wrapper{background-color:#0A8276;color:#FFFFFF}.alert.success{border:1px solid #4CA460}.alert.success .icon-wrapper{background-color:#4CA460;color:#FFFFFF}.alert.danger{border:1px solid #CD002F}.alert.danger .icon-wrapper{background-color:#CD002F;color:#FFFFFF}.alert.warning{border:1px solid #E16B25}.alert.warning .icon-wrapper{background-color:#E16B25;color:#FFFFFF}.close-icon-wrapper ifx-icon:hover{cursor:pointer}";
5
5
  const IfxAlertStyle0 = alertCss;
@@ -10,6 +10,9 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends H {
10
10
  this.__registerHost();
11
11
  this.__attachShadow();
12
12
  this.ifxClose = createEvent(this, "ifxClose", 7);
13
+ this.variant = 'primary';
14
+ this.closable = true;
15
+ this.AriaLive = 'assertive';
13
16
  this.alertTypeDescription = {
14
17
  "primary": 'Neutral alert',
15
18
  "success": 'Success Alert',
@@ -17,11 +20,6 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends H {
17
20
  "warning": 'Warning Alert',
18
21
  "info": 'Neutral alert',
19
22
  };
20
- this.variant = 'primary';
21
- this.icon = undefined;
22
- this.closable = true;
23
- this.AriaLive = 'assertive';
24
- this.uniqueId = undefined;
25
23
  }
26
24
  handleClose() {
27
25
  this.if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AU,GAAG,CACpB,EACN,WAAK,EAAE,EAAE,qBAAqB,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAC,2BAA2B,IAC9E,YAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACF,EACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAC5C,KAEN,WAAK,KAAK,EAAE,SAAS,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAC,OAAO,IAC9C,IAAI,CAAC,IAAI,KACR,WAAK,KAAK,EAAC,cAAc,IACvB,gBAAU,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CACzB,CACP,EACD,WAAK,KAAK,EAAC,YAAY,EAAC,EAAE,EAAE,cAAc,IAAI,CAAC,QAAQ,EAAE,IACvD,eAAQ,CACJ,EACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAC5C,CACP,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/alert/alert.scss?tag=ifx-alert&encapsulation=shadow","src/components/alert/alert.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n display: block;\n}\n\n.alert__info-wrapper {\n display: flex;\n padding: 16px 24px;\n font-family: var(--ifx-font-family);\n box-shadow: 0px 6px 9px 0px #1D1D1D1A;\n\n\n & .info__text-wrapper {\n display: flex;\n flex-direction: column;\n gap: tokens.$ifxSpace100;\n width: 100%;\n\n & .info__headline-wrapper {\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n & .info__headline-wrapper,\n .info__description-wrapper {\n color: #1D1D1D;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px;\n\n ::slotted(p) {\n padding: 0;\n margin: 0;\n }\n }\n\n & .info__description-wrapper {\n font-weight: 400;\n }\n }\n\n & .close-icon-wrapper {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n //min-width: tokens.$ifxSize500;\n\n & button {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n color: tokens.$ifxColorBaseBlack;\n height: tokens.$ifxSize300;\n width: tokens.$ifxSize300;\n\n\n &:focus {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 2px;\n }\n }\n }\n}\n\n.alert {\n display: flex;\n border: 1px solid tokens.$ifxColorOcean500;\n border-radius: tokens.$ifxBorderRadius12;\n color: tokens.$ifxColorBaseBlack;\n background-color: tokens.$ifxColorBaseWhite;\n font-family: var(--ifx-font-family);\n box-shadow: 0px 6px 9px 0px #1D1D1D1A;\n\n\n & .close-icon-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: tokens.$ifxSize500;\n\n & button {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n color: tokens.$ifxColorBaseBlack;\n height: tokens.$ifxSize300;\n width: tokens.$ifxSize300;\n\n &:focus {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 2px;\n }\n }\n }\n\n & .icon-wrapper {\n position: relative;\n min-width: tokens.$ifxSize600;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: tokens.$ifxColorOcean500;\n }\n\n & .alert-text {\n font-size: 16px;\n width: 100%;\n padding: 12px 0px 12px 12px;\n color: tokens.$ifxColorBaseBlack;\n\n white-space: pre-wrap;\n /* wraps text at spaces and within words */\n word-wrap: break-word;\n /* breaks text within a word if necessary */\n overflow-wrap: anywhere;\n /* breaks text at arbitrary points when needed */\n }\n\n &.primary {\n border: 1px solid tokens.$ifxColorOcean500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorOcean500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.success {\n border: 1px solid tokens.$ifxColorGreen500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorGreen500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.danger {\n border: 1px solid tokens.$ifxColorRed500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorRed500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.warning {\n border: 1px solid tokens.$ifxColorOrange500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorOrange500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n}\n\n.close-icon-wrapper {\n & ifx-icon {\n &:hover {\n cursor: pointer;\n }\n }\n}","import { Component, Prop, h, Event, EventEmitter, State } from '@stencil/core';\n\n@Component({\n tag: 'ifx-alert',\n styleUrl: 'alert.scss',\n shadow: true,\n})\nexport class Alert {\n @Prop() variant: 'primary' | 'success' | 'danger' | 'warning' | 'info' = 'primary';\n @Prop() icon: string;\n @Event() ifxClose: EventEmitter;\n @Prop() closable: boolean = true;\n @Prop() AriaLive = 'assertive';\n @State() uniqueId: string;\n\n alertTypeDescription = {\n \"primary\": 'Neutral alert',\n \"success\": 'Success Alert',\n \"danger\": 'Error Alert',\n \"warning\": 'Warning Alert',\n \"info\": 'Neutral alert',\n };\n\n handleClose() {\n this.ifxClose.emit();\n }\n\n renderCloseButton() {\n return (\n <div class=\"close-icon-wrapper\">\n <button onClick={this.handleClose.bind(this)} aria-label=\"Dismiss alert\">\n <ifx-icon icon=\"cross-16\" />\n </button>\n </div>\n );\n }\n\n generateUniqueId(prefix = 'id') {\n return `${prefix}-${Math.random().toString(36).substring(2, 9)}`;\n }\n\n componentWillLoad() { \n if (!this.uniqueId) {\n this.uniqueId = this.generateUniqueId('alert');\n }\n }\n\n render() {\n return this.variant === 'info' ? (\n <div class=\"alert__info-wrapper\" role=\"alert\" aria-live={this.AriaLive} aria-describedby={this.alertTypeDescription[this.variant]} aria-labelledby=\"alert-text alert-description\">\n <div class=\"info__text-wrapper\">\n <div class=\"info__headline-wrapper\">\n <slot name=\"headline\" />\n </div>\n <div id={`alert-description-${this.uniqueId}`} class=\"info__description-wrapper\">\n <slot name=\"desc\" />\n </div>\n </div>\n {this.closable ? this.renderCloseButton() : null}\n </div>\n ) : (\n <div class={`alert ${this.variant}`} role=\"alert\">\n {this.icon && (\n <div class=\"icon-wrapper\">\n <ifx-icon icon={this.icon} />\n </div>\n )}\n <div class=\"alert-text\" id={`alert-text-${this.uniqueId}`}>\n <slot />\n </div>\n {this.closable ? this.renderCloseButton() : null}\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ifx-alert.js","mappings":";;;AAAA,MAAM,QAAQ,GAAG,soFAAsoF,CAAC;AACxpF,uBAAe,QAAQ;;MCMV,KAAK;IALlB;;;;;QAMU,YAAO,GAA0D,SAAS,CAAC;QAG3E,aAAQ,GAAY,IAAI,CAAC;QACzB,aAAQ,GAAG,WAAW,CAAC;QAG/B,yBAAoB,GAAG;YACrB,SAAS,EAAE,eAAe;YAC1B,SAAS,EAAE,eAAe;YAC1B,QAAQ,EAAE,aAAa;YACvB,SAAS,EAAE,eAAe;YAC1B,MAAM,EAAE,eAAe;SACxB,CAAC;KAqDH;IAnDC,WAAW;QACT,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACtB;IAED,iBAAiB;QACf,QACE,WAAK,KAAK,EAAC,oBAAoB,IAC7B,cAAQ,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAa,eAAe,IACtE,gBAAU,IAAI,EAAC,UAAU,GAAG,CACrB,CACL,EACN;KACH;IAED,gBAAgB,CAAC,MAAM,GAAG,IAAI;QAC5B,OAAO,GAAG,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;KAClE;IAED,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;SAChD;KACF;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,OAAO,KAAK,MAAM,IAC5B,WAAK,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,OAAO,eAAY,IAAI,CAAC,QAAQ,sBAAoB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAkB,8BAA8B,IAC/K,WAAK,KAAK,EAAC,oBAAoB,IAC7B,WAAK,KAAK,EAAC,wBAAwB,IACjC,YAAM,IAAI,EAAC,UAAU,GAAG,CACpB,EACN,WAAK,EAAE,EAAE,qBAAqB,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAC,2BAA2B,IAC9E,YAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACF,EACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAC5C,KAEN,WAAK,KAAK,EAAE,SAAS,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAC,OAAO,IAC9C,IAAI,CAAC,IAAI,KACR,WAAK,KAAK,EAAC,cAAc,IACvB,gBAAU,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CACzB,CACP,EACD,WAAK,KAAK,EAAC,YAAY,EAAC,EAAE,EAAE,cAAc,IAAI,CAAC,QAAQ,EAAE,IACvD,eAAQ,CACJ,EACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAC5C,CACP,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/alert/alert.scss?tag=ifx-alert&encapsulation=shadow","src/components/alert/alert.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n display: block;\n}\n\n.alert__info-wrapper {\n display: flex;\n padding: 16px 24px;\n font-family: var(--ifx-font-family);\n box-shadow: 0px 6px 9px 0px #1D1D1D1A;\n\n\n & .info__text-wrapper {\n display: flex;\n flex-direction: column;\n gap: tokens.$ifxSpace100;\n width: 100%;\n\n & .info__headline-wrapper {\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n & .info__headline-wrapper,\n .info__description-wrapper {\n color: #1D1D1D;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px;\n\n ::slotted(p) {\n padding: 0;\n margin: 0;\n }\n }\n\n & .info__description-wrapper {\n font-weight: 400;\n }\n }\n\n & .close-icon-wrapper {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n //min-width: tokens.$ifxSize500;\n\n & button {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n color: tokens.$ifxColorBaseBlack;\n height: tokens.$ifxSize300;\n width: tokens.$ifxSize300;\n\n\n &:focus {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 2px;\n }\n }\n }\n}\n\n.alert {\n display: flex;\n border: 1px solid tokens.$ifxColorOcean500;\n border-radius: tokens.$ifxBorderRadius12;\n color: tokens.$ifxColorBaseBlack;\n background-color: tokens.$ifxColorBaseWhite;\n font-family: var(--ifx-font-family);\n box-shadow: 0px 6px 9px 0px #1D1D1D1A;\n\n\n & .close-icon-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: tokens.$ifxSize500;\n\n & button {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n color: tokens.$ifxColorBaseBlack;\n height: tokens.$ifxSize300;\n width: tokens.$ifxSize300;\n\n &:focus {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 2px;\n }\n }\n }\n\n & .icon-wrapper {\n position: relative;\n min-width: tokens.$ifxSize600;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: tokens.$ifxColorOcean500;\n }\n\n & .alert-text {\n font-size: 16px;\n width: 100%;\n padding: 12px 0px 12px 12px;\n color: tokens.$ifxColorBaseBlack;\n\n white-space: pre-wrap;\n /* wraps text at spaces and within words */\n word-wrap: break-word;\n /* breaks text within a word if necessary */\n overflow-wrap: anywhere;\n /* breaks text at arbitrary points when needed */\n }\n\n &.primary {\n border: 1px solid tokens.$ifxColorOcean500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorOcean500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.success {\n border: 1px solid tokens.$ifxColorGreen500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorGreen500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.danger {\n border: 1px solid tokens.$ifxColorRed500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorRed500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.warning {\n border: 1px solid tokens.$ifxColorOrange500;\n\n & .icon-wrapper {\n background-color: tokens.$ifxColorOrange500;\n color: tokens.$ifxColorBaseWhite;\n }\n }\n}\n\n.close-icon-wrapper {\n & ifx-icon {\n &:hover {\n cursor: pointer;\n }\n }\n}","import { Component, Prop, h, Event, EventEmitter, State } from '@stencil/core';\n\n@Component({\n tag: 'ifx-alert',\n styleUrl: 'alert.scss',\n shadow: true,\n})\nexport class Alert {\n @Prop() variant: 'primary' | 'success' | 'danger' | 'warning' | 'info' = 'primary';\n @Prop() icon: string;\n @Event() ifxClose: EventEmitter;\n @Prop() closable: boolean = true;\n @Prop() AriaLive = 'assertive';\n @State() uniqueId: string;\n\n alertTypeDescription = {\n \"primary\": 'Neutral alert',\n \"success\": 'Success Alert',\n \"danger\": 'Error Alert',\n \"warning\": 'Warning Alert',\n \"info\": 'Neutral alert',\n };\n\n handleClose() {\n this.ifxClose.emit();\n }\n\n renderCloseButton() {\n return (\n <div class=\"close-icon-wrapper\">\n <button onClick={this.handleClose.bind(this)} aria-label=\"Dismiss alert\">\n <ifx-icon icon=\"cross-16\" />\n </button>\n </div>\n );\n }\n\n generateUniqueId(prefix = 'id') {\n return `${prefix}-${Math.random().toString(36).substring(2, 9)}`;\n }\n\n componentWillLoad() { \n if (!this.uniqueId) {\n this.uniqueId = this.generateUniqueId('alert');\n }\n }\n\n render() {\n return this.variant === 'info' ? (\n <div class=\"alert__info-wrapper\" role=\"alert\" aria-live={this.AriaLive} aria-describedby={this.alertTypeDescription[this.variant]} aria-labelledby=\"alert-text alert-description\">\n <div class=\"info__text-wrapper\">\n <div class=\"info__headline-wrapper\">\n <slot name=\"headline\" />\n </div>\n <div id={`alert-description-${this.uniqueId}`} class=\"info__description-wrapper\">\n <slot name=\"desc\" />\n </div>\n </div>\n {this.closable ? this.renderCloseButton() : null}\n </div>\n ) : (\n <div class={`alert ${this.variant}`} role=\"alert\">\n {this.icon && (\n <div class=\"icon-wrapper\">\n <ifx-icon icon={this.icon} />\n </div>\n )}\n <div class=\"alert-text\" id={`alert-text-${this.uniqueId}`}>\n <slot />\n </div>\n {this.closable ? this.renderCloseButton() : null}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, h } from './p-68d90201.js';
1
+ import { p as proxyCustomElement, H, h } from './p-a99edff1.js';
2
2
 
3
3
  const badgeCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{display:inline-flex}.badge__container{display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;gap:8px;border:1px solid #EEEDED;background-color:#EEEDED;border-radius:100px;font-family:var(--ifx-font-family);font-size:0.875rem;line-height:1.25rem;font-weight:400;color:#1D1D1D}";
4
4
  const IfxBadgeStyle0 = badgeCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, h, d as Host } from './p-68d90201.js';
1
+ import { p as proxyCustomElement, H, h, d as Host } from './p-a99edff1.js';
2
2
  import { c as createGrid } from './p-1429e9ea.js';
3
3
  import { c as classNames } from './p-5cdc6210.js';
4
4
 
@@ -41,15 +41,11 @@ const Table = /*@__PURE__*/ proxyCustomElement(class Table extends H {
41
41
  constructor() {
42
42
  super();
43
43
  this.__registerHost();
44
- this.gridInitialized = false;
45
- this.gridOptions = undefined;
46
- this.cols = undefined;
47
- this.rows = undefined;
48
44
  this.columnDefs = [];
49
45
  this.rowData = [];
50
46
  this.rowHeight = 'default';
51
47
  this.tableHeight = 'auto';
52
- this.uniqueKey = undefined;
48
+ this.gridInitialized = false;
53
49
  }
54
50
  componentWillLoad() {
55
51
  this.uniqueKey = `unique-${Math.floor(Math.random() * 1000000)}`;
@@ -183,7 +179,7 @@ const Table = /*@__PURE__*/ proxyCustomElement(class Table extends H {
183
179
  return {};
184
180
  }
185
181
  render() {
186
- return (h(Host, { key: '80e769cc7a63d358c3ef01b1a67ae6872d56a6c4' }, h("div", { key: 'e656b9c9db4c9446197a578d13b1876c85cefba2', id: "table-wrapper", class: this.getClassNames() }, h("div", { key: '237a4b6b8c863716deea0ceebc2ac826c6c7ae1a', id: `ifxTable-${this.uniqueKey}`, class: "ifx-ag-grid", style: this.getTableStyle(), ref: (el) => (this.container = el) }))));
182
+ return (h(Host, { key: 'ff940c90b4fd4396cafd1cbfd13476e9225df362' }, h("div", { key: '2da95f49bbcd224297c91168c2c29f6178fa6b2b', id: "table-wrapper", class: this.getClassNames() }, h("div", { key: 'fb5cf41dd677de23d4fb5a7e897b7e1dcd8444f1', id: `ifxTable-${this.uniqueKey}`, class: "ifx-ag-grid", style: this.getTableStyle(), ref: (el) => (this.container = el) }))));
187
183
  }
188
184
  get host() { return this; }
189
185
  static get style() { return IfxBasicTableStyle0; }