@otto-de/b2b-core-components 1.30.0 → 1.31.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 (474) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/p-00666ca7.entry.js +1 -0
  3. package/dist/b2b-core-components/p-0a63f5f8.entry.js +1 -0
  4. package/dist/b2b-core-components/{p-9cfba835.entry.js → p-0bf05f33.entry.js} +1 -1
  5. package/dist/b2b-core-components/{p-68e07419.entry.js → p-0edac105.entry.js} +1 -1
  6. package/dist/b2b-core-components/p-0ffc90ee.entry.js +1 -0
  7. package/dist/b2b-core-components/p-168c8684.entry.js +1 -0
  8. package/dist/b2b-core-components/p-19392020.js +1 -0
  9. package/dist/b2b-core-components/p-1a908833.entry.js +1 -0
  10. package/dist/b2b-core-components/{p-a37d6cea.entry.js → p-1dff8b34.entry.js} +1 -1
  11. package/dist/b2b-core-components/p-2d5df8f7.entry.js +1 -0
  12. package/dist/b2b-core-components/p-2dc0c5c0.entry.js +1 -0
  13. package/dist/b2b-core-components/p-318eb15e.entry.js +1 -0
  14. package/dist/b2b-core-components/p-33c01bb2.entry.js +1 -0
  15. package/dist/b2b-core-components/p-375cefbd.entry.js +1 -0
  16. package/dist/b2b-core-components/p-383d0a10.entry.js +1 -0
  17. package/dist/b2b-core-components/{p-08577a40.entry.js → p-400fa973.entry.js} +1 -1
  18. package/dist/b2b-core-components/p-413729d1.entry.js +1 -0
  19. package/dist/b2b-core-components/p-49bafb74.entry.js +1 -0
  20. package/dist/b2b-core-components/{p-745ad406.entry.js → p-4bc0ec9a.entry.js} +1 -1
  21. package/dist/b2b-core-components/p-564c62d0.entry.js +1 -0
  22. package/dist/b2b-core-components/{p-6040dca2.entry.js → p-6025d667.entry.js} +1 -1
  23. package/dist/b2b-core-components/p-61b2a6ad.js +1 -0
  24. package/dist/b2b-core-components/{p-54d478b6.entry.js → p-661d0249.entry.js} +1 -1
  25. package/dist/b2b-core-components/p-6dd7fd7b.entry.js +1 -0
  26. package/dist/b2b-core-components/p-6ff5114b.entry.js +1 -0
  27. package/dist/b2b-core-components/p-742a18f1.entry.js +1 -0
  28. package/dist/b2b-core-components/{p-23acc468.entry.js → p-781611fb.entry.js} +1 -1
  29. package/dist/b2b-core-components/{p-0847e62e.entry.js → p-7bb6f06e.entry.js} +1 -1
  30. package/dist/b2b-core-components/p-7dd8f3cb.entry.js +1 -0
  31. package/dist/b2b-core-components/p-815d7a53.entry.js +1 -0
  32. package/dist/b2b-core-components/{p-5063e5b7.entry.js → p-850c8e01.entry.js} +1 -1
  33. package/dist/b2b-core-components/{p-e8b1fee4.entry.js → p-86ff8e6c.entry.js} +1 -1
  34. package/dist/b2b-core-components/{p-552f43c1.entry.js → p-9819f622.entry.js} +1 -1
  35. package/dist/b2b-core-components/{p-ccf78e23.entry.js → p-9dde1af0.entry.js} +1 -1
  36. package/dist/b2b-core-components/{p-24c94653.entry.js → p-9f88b476.entry.js} +1 -1
  37. package/dist/b2b-core-components/p-a155219a.entry.js +1 -0
  38. package/dist/b2b-core-components/p-a96c8ba0.entry.js +1 -0
  39. package/dist/b2b-core-components/p-b33059ab.entry.js +1 -0
  40. package/dist/b2b-core-components/p-b5fdf7df.entry.js +1 -0
  41. package/dist/b2b-core-components/p-b6a753e8.js +2 -0
  42. package/dist/b2b-core-components/p-bba0b41b.entry.js +1 -0
  43. package/dist/b2b-core-components/p-be93498d.entry.js +1 -0
  44. package/dist/b2b-core-components/p-bfbe4aff.entry.js +1 -0
  45. package/dist/b2b-core-components/p-c597637e.entry.js +1 -0
  46. package/dist/b2b-core-components/{p-eb01bb4f.entry.js → p-c67bcebc.entry.js} +1 -1
  47. package/dist/b2b-core-components/p-cb4cc427.entry.js +1 -0
  48. package/dist/b2b-core-components/{p-a63dfd99.entry.js → p-d1c8105b.entry.js} +1 -1
  49. package/dist/b2b-core-components/{p-2f9efe3f.entry.js → p-d26ec403.entry.js} +1 -1
  50. package/dist/b2b-core-components/p-d3204d75.entry.js +1 -0
  51. package/dist/b2b-core-components/p-d6457a1d.entry.js +1 -0
  52. package/dist/b2b-core-components/p-db205434.entry.js +1 -0
  53. package/dist/b2b-core-components/p-e1255160.js +1 -0
  54. package/dist/b2b-core-components/p-e40069cd.entry.js +1 -0
  55. package/dist/b2b-core-components/p-e520c7cf.entry.js +1 -0
  56. package/dist/b2b-core-components/p-f2fdce36.entry.js +1 -0
  57. package/dist/b2b-core-components/p-f5786cad.entry.js +1 -0
  58. package/dist/b2b-core-components/{p-58fb3508.entry.js → p-f5e9dbf4.entry.js} +1 -1
  59. package/dist/b2b-core-components/p-f9e278da.entry.js +1 -0
  60. package/dist/b2b-core-components/p-fa85955c.entry.js +1 -0
  61. package/dist/b2b-core-components/{p-eb78706f.entry.js → p-fae54521.entry.js} +1 -1
  62. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  63. package/dist/cjs/b2b-alert.cjs.entry.js +13 -15
  64. package/dist/cjs/b2b-anchor.cjs.entry.js +8 -10
  65. package/dist/cjs/b2b-background-box.cjs.entry.js +7 -10
  66. package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +10 -8
  67. package/dist/cjs/b2b-breadcrumb.cjs.entry.js +10 -9
  68. package/dist/cjs/b2b-button_2.cjs.entry.js +20 -25
  69. package/dist/cjs/b2b-card.cjs.entry.js +8 -8
  70. package/dist/cjs/b2b-checkbox-group.cjs.entry.js +15 -13
  71. package/dist/cjs/b2b-checkbox.cjs.entry.js +22 -19
  72. package/dist/cjs/b2b-chip-component_2.cjs.entry.js +24 -20
  73. package/dist/cjs/b2b-core-components.cjs.js +14 -13
  74. package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +50 -40
  75. package/dist/cjs/b2b-date-picker.cjs.entry.js +37 -36
  76. package/dist/cjs/b2b-dropdown.cjs.entry.js +26 -24
  77. package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +10 -8
  78. package/dist/cjs/b2b-flyout-menu.cjs.entry.js +9 -7
  79. package/dist/cjs/b2b-grid-col.cjs.entry.js +6 -4
  80. package/dist/cjs/b2b-grid-row.cjs.entry.js +5 -7
  81. package/dist/cjs/b2b-grid.cjs.entry.js +6 -4
  82. package/dist/cjs/b2b-headline.cjs.entry.js +5 -5
  83. package/dist/cjs/b2b-icon-100.cjs.entry.js +12 -12
  84. package/dist/cjs/b2b-icon-50.cjs.entry.js +10 -9
  85. package/dist/cjs/b2b-icon.cjs.entry.js +12 -12
  86. package/dist/cjs/b2b-input-group_2.cjs.entry.js +24 -24
  87. package/dist/cjs/b2b-input-label.cjs.entry.js +7 -6
  88. package/dist/cjs/b2b-input_2.cjs.entry.js +33 -33
  89. package/dist/cjs/b2b-label.cjs.entry.js +7 -5
  90. package/dist/cjs/b2b-modal.cjs.entry.js +16 -18
  91. package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +27 -24
  92. package/dist/cjs/b2b-pagination.cjs.entry.js +12 -13
  93. package/dist/cjs/b2b-paragraph.cjs.entry.js +7 -10
  94. package/dist/cjs/b2b-progress-bar.cjs.entry.js +12 -9
  95. package/dist/cjs/b2b-radio-button.cjs.entry.js +19 -15
  96. package/dist/cjs/b2b-radio-group.cjs.entry.js +17 -13
  97. package/dist/cjs/b2b-required-separator.cjs.entry.js +6 -4
  98. package/dist/cjs/b2b-rounded-icon.cjs.entry.js +10 -12
  99. package/dist/cjs/b2b-scrollable-container.cjs.entry.js +6 -3
  100. package/dist/cjs/b2b-search.cjs.entry.js +10 -9
  101. package/dist/cjs/b2b-separator.cjs.entry.js +6 -4
  102. package/dist/cjs/b2b-shimmer.cjs.entry.js +9 -3
  103. package/dist/cjs/b2b-snackbar.cjs.entry.js +19 -18
  104. package/dist/cjs/b2b-tab-group.cjs.entry.js +6 -6
  105. package/dist/cjs/b2b-tab-panel.cjs.entry.js +6 -3
  106. package/dist/cjs/b2b-tab.cjs.entry.js +8 -8
  107. package/dist/cjs/b2b-table-cell_2.cjs.entry.js +30 -37
  108. package/dist/cjs/b2b-table-row.cjs.entry.js +19 -17
  109. package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +16 -23
  110. package/dist/cjs/b2b-table.cjs.entry.js +10 -13
  111. package/dist/cjs/b2b-textarea.cjs.entry.js +23 -17
  112. package/dist/cjs/b2b-toggle-button.cjs.entry.js +14 -10
  113. package/dist/cjs/b2b-toggle-chip.cjs.entry.js +14 -10
  114. package/dist/cjs/b2b-toggle-group.cjs.entry.js +11 -7
  115. package/dist/cjs/b2b-toggle-switch.cjs.entry.js +15 -13
  116. package/dist/cjs/b2b-tooltip.cjs.entry.js +12 -11
  117. package/dist/cjs/b2b-wizard-icon.cjs.entry.js +9 -8
  118. package/dist/cjs/b2b-wizard-step.cjs.entry.js +8 -9
  119. package/dist/cjs/b2b-wizard.cjs.entry.js +10 -12
  120. package/dist/cjs/index-668808fd.js +2516 -0
  121. package/dist/cjs/loader.cjs.js +6 -3
  122. package/dist/cjs/{request-Dwsj-gbA.js → request-801c6ba1.js} +0 -2
  123. package/dist/cjs/{utils--ZrBSHVe.js → utils-499e9db5.js} +9 -2
  124. package/dist/collection/collection-manifest.json +2 -2
  125. package/dist/collection/components/alert/alert.e2e.js +67 -0
  126. package/dist/collection/components/alert/alert.js +12 -27
  127. package/dist/collection/components/anchor/anchor.js +9 -26
  128. package/dist/collection/components/anchor/anchor.spec.js +68 -0
  129. package/dist/collection/components/background-box/background-box.e2e.js +63 -0
  130. package/dist/collection/components/background-box/background-box.js +8 -26
  131. package/dist/collection/components/background-box/background-box.spec.js +64 -0
  132. package/dist/collection/components/breadcrumb/breadcrumb-item.js +7 -14
  133. package/dist/collection/components/breadcrumb/breadcrumb.e2e.js +50 -0
  134. package/dist/collection/components/breadcrumb/breadcrumb.js +6 -12
  135. package/dist/collection/components/button/button.e2e.js +80 -0
  136. package/dist/collection/components/button/button.js +23 -52
  137. package/dist/collection/components/card/card.e2e.js +110 -0
  138. package/dist/collection/components/card/card.js +5 -14
  139. package/dist/collection/components/card/card.spec.js +32 -0
  140. package/dist/collection/components/checkbox/checkbox.e2e.js +36 -0
  141. package/dist/collection/components/checkbox/checkbox.js +26 -50
  142. package/dist/collection/components/checkbox/checkbox.spec.js +45 -0
  143. package/dist/collection/components/checkbox-group/checkbox-group.e2e.js +78 -0
  144. package/dist/collection/components/checkbox-group/checkbox-group.js +16 -31
  145. package/dist/collection/components/checkbox-group/checkbox-group.spec.js +38 -0
  146. package/dist/collection/components/chip/chip.e2e.js +99 -0
  147. package/dist/collection/components/chip/chip.js +17 -30
  148. package/dist/collection/components/date-picker/date-picker-days-header.js +3 -6
  149. package/dist/collection/components/date-picker/date-picker-days.js +20 -44
  150. package/dist/collection/components/date-picker/date-picker-header.e2e.js +38 -0
  151. package/dist/collection/components/date-picker/date-picker-header.js +10 -15
  152. package/dist/collection/components/date-picker/date-picker-months.e2e.js +39 -0
  153. package/dist/collection/components/date-picker/date-picker-months.js +5 -9
  154. package/dist/collection/components/date-picker/date-picker-years.e2e.js +39 -0
  155. package/dist/collection/components/date-picker/date-picker-years.js +4 -5
  156. package/dist/collection/components/date-picker/date-picker.e2e.js +137 -0
  157. package/dist/collection/components/date-picker/date-picker.js +44 -76
  158. package/dist/collection/components/dropdown/dropdown.e2e.js +86 -0
  159. package/dist/collection/components/dropdown/dropdown.js +27 -46
  160. package/dist/collection/components/dropdown/dropdown.spec.js +52 -0
  161. package/dist/collection/components/flyout-menu/flyout-menu-option.js +7 -14
  162. package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +97 -0
  163. package/dist/collection/components/flyout-menu/flyout-menu.js +5 -8
  164. package/dist/collection/components/grid/column.js +5 -9
  165. package/dist/collection/components/grid/grid.e2e.js +17 -0
  166. package/dist/collection/components/grid/grid.js +2 -5
  167. package/dist/collection/components/grid/row.js +6 -18
  168. package/dist/collection/components/headline/headline.e2e.js +13 -0
  169. package/dist/collection/components/headline/headline.js +3 -12
  170. package/dist/collection/components/headline/headline.spec.js +67 -0
  171. package/dist/collection/components/icon/icon.js +11 -24
  172. package/dist/collection/components/icon/icon.spec.js +21 -0
  173. package/dist/collection/components/icon-100/icon-100.e2e.js +40 -0
  174. package/dist/collection/components/icon-100/icon-100.js +11 -24
  175. package/dist/collection/components/icon-50/icon-50.e2e.js +32 -0
  176. package/dist/collection/components/icon-50/icon-50.js +8 -18
  177. package/dist/collection/components/input/input.e2e.js +81 -0
  178. package/dist/collection/components/input/input.js +33 -64
  179. package/dist/collection/components/input/input.spec.js +45 -0
  180. package/dist/collection/components/input-group/input-group.e2e.js +76 -0
  181. package/dist/collection/components/input-group/input-group.js +9 -17
  182. package/dist/collection/components/input-group/input-group.spec.js +56 -0
  183. package/dist/collection/components/input-label/input-label.e2e.js +10 -0
  184. package/dist/collection/components/input-label/input-label.js +4 -10
  185. package/dist/collection/components/input-list/input-list-option.js +3 -4
  186. package/dist/collection/components/input-list/input-list.e2e.js +241 -0
  187. package/dist/collection/components/input-list/input-list.js +17 -36
  188. package/dist/collection/components/label/label.e2e.js +17 -0
  189. package/dist/collection/components/label/label.js +3 -6
  190. package/dist/collection/components/label/label.spec.js +58 -0
  191. package/dist/collection/components/modal/modal.e2e.js +115 -0
  192. package/dist/collection/components/modal/modal.js +14 -29
  193. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.e2e.js +74 -0
  194. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +33 -57
  195. package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +8 -15
  196. package/dist/collection/components/pagination/pagination.e2e.js +255 -0
  197. package/dist/collection/components/pagination/pagination.js +10 -22
  198. package/dist/collection/components/pagination/pagination.spec.js +103 -0
  199. package/dist/collection/components/paragraph/paragraph.e2e.js +13 -0
  200. package/dist/collection/components/paragraph/paragraph.js +8 -26
  201. package/dist/collection/components/progress-bar/progress-bar.e2e.js +43 -0
  202. package/dist/collection/components/progress-bar/progress-bar.js +11 -19
  203. package/dist/collection/components/radio/radio.e2e.js +45 -0
  204. package/dist/collection/components/radio/radio.js +20 -37
  205. package/dist/collection/components/radio/radio.spec.js +38 -0
  206. package/dist/collection/components/radio-group/radio-group.e2e.js +83 -0
  207. package/dist/collection/components/radio-group/radio-group.js +19 -34
  208. package/dist/collection/components/radio-group/radio-group.spec.js +31 -0
  209. package/dist/collection/components/required-separator/required-separator.e2e.js +17 -0
  210. package/dist/collection/components/required-separator/required-separator.js +2 -5
  211. package/dist/collection/components/rounded-icon/rounded-icon.js +8 -19
  212. package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
  213. package/dist/collection/components/search/search.e2e.js +97 -0
  214. package/dist/collection/components/search/search.js +9 -19
  215. package/dist/collection/components/separator/separator.e2e.js +22 -0
  216. package/dist/collection/components/separator/separator.js +2 -5
  217. package/dist/collection/components/shimmer/shimmer.e2e.js +18 -0
  218. package/dist/collection/components/shimmer/shimmer.js +9 -10
  219. package/dist/collection/components/shimmer/shimmer.spec.js +35 -0
  220. package/dist/collection/components/snackbar/snackbar.e2e.js +61 -0
  221. package/dist/collection/components/snackbar/snackbar.js +20 -38
  222. package/dist/collection/components/spinner/spinner.e2e.js +12 -0
  223. package/dist/collection/components/spinner/spinner.js +3 -9
  224. package/dist/collection/components/spinner/spinner.spec.js +41 -0
  225. package/dist/collection/components/tab/tab.e2e.js +35 -0
  226. package/dist/collection/components/tab/tab.js +5 -14
  227. package/dist/collection/components/tab/tab.spec.js +31 -0
  228. package/dist/collection/components/tab-group/tab-group.e2e.js +99 -0
  229. package/dist/collection/components/tab-group/tab-group.js +3 -7
  230. package/dist/collection/components/tab-panel/tab-panel.e2e.js +12 -0
  231. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  232. package/dist/collection/components/tab-panel/tab-panel.spec.js +10 -0
  233. package/dist/collection/components/table/table-cell/table-cell.js +17 -40
  234. package/dist/collection/components/table/table-header/table-header.js +19 -37
  235. package/dist/collection/components/table/table-row/table-row.js +18 -33
  236. package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +15 -37
  237. package/dist/collection/components/table/table.e2e.js +401 -0
  238. package/dist/collection/components/table/table.js +4 -12
  239. package/dist/collection/components/textarea/textarea.e2e.js +91 -0
  240. package/dist/collection/components/textarea/textarea.js +28 -51
  241. package/dist/collection/components/toggle-button/toggle-button.e2e.js +44 -0
  242. package/dist/collection/components/toggle-button/toggle-button.js +13 -22
  243. package/dist/collection/components/toggle-chip/toggle-chip.e2e.js +47 -0
  244. package/dist/collection/components/toggle-chip/toggle-chip.js +13 -22
  245. package/dist/collection/components/toggle-group/toggle-group.e2e.js +65 -0
  246. package/dist/collection/components/toggle-group/toggle-group.js +7 -10
  247. package/dist/collection/components/toggle-switch/toggle-switch.e2e.js +50 -0
  248. package/dist/collection/components/toggle-switch/toggle-switch.js +14 -25
  249. package/dist/collection/components/tooltip/tooltip.e2e.js +64 -0
  250. package/dist/collection/components/tooltip/tooltip.js +11 -21
  251. package/dist/collection/components/wizard/wizard-step.js +5 -15
  252. package/dist/collection/components/wizard/wizard.e2e.js +149 -0
  253. package/dist/collection/components/wizard/wizard.js +7 -18
  254. package/dist/collection/components/wizard-icon/wizard-icon.js +6 -14
  255. package/dist/collection/docs/config/replace-prop-controls.spec.js +32 -0
  256. package/dist/collection/utils/utils.spec.js +15 -0
  257. package/dist/components/b2b-alert.js +13 -17
  258. package/dist/components/b2b-anchor.js +7 -11
  259. package/dist/components/b2b-background-box.js +6 -11
  260. package/dist/components/b2b-breadcrumb-item.js +9 -9
  261. package/dist/components/b2b-breadcrumb.js +9 -10
  262. package/dist/components/b2b-button.js +1 -1
  263. package/dist/components/b2b-card.js +7 -9
  264. package/dist/components/b2b-checkbox-group.js +15 -15
  265. package/dist/components/b2b-checkbox.js +1 -1
  266. package/dist/components/b2b-chip-component.js +1 -1
  267. package/dist/components/b2b-date-picker-days-header.js +1 -1
  268. package/dist/components/b2b-date-picker-days.js +1 -1
  269. package/dist/components/b2b-date-picker-header.js +1 -1
  270. package/dist/components/b2b-date-picker-months.js +1 -1
  271. package/dist/components/b2b-date-picker-years.js +1 -1
  272. package/dist/components/b2b-date-picker.js +43 -44
  273. package/dist/components/b2b-dropdown.js +26 -26
  274. package/dist/components/b2b-flyout-menu-option.js +9 -9
  275. package/dist/components/b2b-flyout-menu.js +8 -8
  276. package/dist/components/b2b-grid-col.js +5 -5
  277. package/dist/components/b2b-grid-row.js +4 -8
  278. package/dist/components/b2b-grid.js +5 -5
  279. package/dist/components/b2b-headline.js +1 -1
  280. package/dist/components/b2b-icon-100.js +1 -1
  281. package/dist/components/b2b-icon-50.js +13 -11
  282. package/dist/components/b2b-icon.js +16 -15
  283. package/dist/components/b2b-input-group.js +1 -1
  284. package/dist/components/b2b-input-label.js +1 -1
  285. package/dist/components/b2b-input-list-option.js +1 -1
  286. package/dist/components/b2b-input-list.js +1 -1
  287. package/dist/components/b2b-input.js +1 -1
  288. package/dist/components/b2b-label.js +6 -6
  289. package/dist/components/b2b-modal.js +17 -21
  290. package/dist/components/b2b-multiselect-dropdown.js +31 -30
  291. package/dist/components/b2b-multiselect-option.js +1 -1
  292. package/dist/components/b2b-pagination.js +13 -16
  293. package/dist/components/b2b-paragraph.js +6 -11
  294. package/dist/components/b2b-progress-bar.js +11 -10
  295. package/dist/components/b2b-radio-button.js +19 -17
  296. package/dist/components/b2b-radio-group.js +17 -15
  297. package/dist/components/b2b-required-separator.js +6 -6
  298. package/dist/components/b2b-rounded-icon.js +1 -1
  299. package/dist/components/b2b-scrollable-container.js +5 -4
  300. package/dist/components/b2b-search.js +18 -19
  301. package/dist/components/b2b-separator.js +1 -1
  302. package/dist/components/b2b-shimmer.js +8 -4
  303. package/dist/components/b2b-snackbar.js +19 -20
  304. package/dist/components/b2b-spinner.js +1 -1
  305. package/dist/components/b2b-tab-group.js +6 -8
  306. package/dist/components/b2b-tab-panel.js +5 -4
  307. package/dist/components/b2b-tab.js +7 -9
  308. package/dist/components/b2b-table-cell.js +1 -1
  309. package/dist/components/b2b-table-header.js +1 -1
  310. package/dist/components/b2b-table-row.js +23 -23
  311. package/dist/components/b2b-table-rowgroup.js +15 -24
  312. package/dist/components/b2b-table.js +9 -14
  313. package/dist/components/b2b-textarea.js +23 -19
  314. package/dist/components/b2b-toggle-button.js +13 -11
  315. package/dist/components/b2b-toggle-chip.js +13 -11
  316. package/dist/components/b2b-toggle-group.js +10 -8
  317. package/dist/components/b2b-toggle-switch.js +14 -14
  318. package/dist/components/b2b-tooltip.js +11 -12
  319. package/dist/components/b2b-wizard-icon.js +1 -1
  320. package/dist/components/b2b-wizard-step.js +10 -13
  321. package/dist/components/b2b-wizard.js +9 -13
  322. package/dist/components/{p-CE7t2D9r.js → button.js} +17 -23
  323. package/dist/components/{p-CLYM9t6v.js → checkbox.js} +22 -21
  324. package/dist/components/{p-ClL49BcQ.js → chip.js} +15 -13
  325. package/dist/components/{p-FI-HbnMh.js → date-picker-days-header.js} +7 -7
  326. package/dist/components/{p-0Vy4494O.js → date-picker-days.js} +24 -21
  327. package/dist/components/{p-C_U38W4s.js → date-picker-header.js} +17 -15
  328. package/dist/components/{p-1ZoTG5p9.js → date-picker-months.js} +9 -8
  329. package/dist/components/{p-dMZsx2Fh.js → date-picker-years.js} +8 -6
  330. package/dist/components/{p-Bo-B8kdb.js → headline.js} +4 -6
  331. package/dist/components/{p-B9RvgUY3.js → icon-100.js} +15 -14
  332. package/dist/components/index.js +1 -1929
  333. package/dist/components/{p-TB2jJFV6.js → input-group.js} +9 -8
  334. package/dist/components/{p-Zg4AtKjq.js → input-label.js} +6 -7
  335. package/dist/components/{p-QTGqu3he.js → input-list-option.js} +7 -5
  336. package/dist/components/{p-BacBJzW_.js → input-list.js} +21 -24
  337. package/dist/components/{p-CuUquHzL.js → input.js} +28 -32
  338. package/dist/components/{p-B7bjXySI.js → multiselect-option.js} +12 -12
  339. package/dist/{esm/request-B8W50WyB.js → components/request.js} +5 -2
  340. package/dist/components/{p-i758rnm2.js → rounded-icon.js} +9 -13
  341. package/dist/components/{p-DO7N8IC0.js → separator.js} +5 -5
  342. package/dist/components/{p-3cu_Madt.js → spinner.js} +5 -6
  343. package/dist/components/{p-9OQH2pET.js → table-cell.js} +15 -23
  344. package/dist/components/{p-BVLpVPNb.js → table-header.js} +17 -18
  345. package/dist/{esm/utils-BA6KE1BD.js → components/utils.js} +10 -3
  346. package/dist/components/{p-N6d2-6pL.js → wizard-icon.js} +10 -11
  347. package/dist/custom-elements.json +0 -24
  348. package/dist/esm/app-globals-0f993ce5.js +3 -0
  349. package/dist/esm/b2b-alert.entry.js +11 -15
  350. package/dist/esm/b2b-anchor.entry.js +6 -10
  351. package/dist/esm/b2b-background-box.entry.js +5 -10
  352. package/dist/esm/b2b-breadcrumb-item.entry.js +8 -8
  353. package/dist/esm/b2b-breadcrumb.entry.js +8 -9
  354. package/dist/esm/b2b-button_2.entry.js +18 -25
  355. package/dist/esm/b2b-card.entry.js +6 -8
  356. package/dist/esm/b2b-checkbox-group.entry.js +13 -13
  357. package/dist/esm/b2b-checkbox.entry.js +20 -19
  358. package/dist/esm/b2b-chip-component_2.entry.js +22 -20
  359. package/dist/esm/b2b-core-components.js +12 -12
  360. package/dist/esm/b2b-date-picker-days_5.entry.js +48 -40
  361. package/dist/esm/b2b-date-picker.entry.js +35 -36
  362. package/dist/esm/b2b-dropdown.entry.js +24 -24
  363. package/dist/esm/b2b-flyout-menu-option.entry.js +8 -8
  364. package/dist/esm/b2b-flyout-menu.entry.js +7 -7
  365. package/dist/esm/b2b-grid-col.entry.js +4 -4
  366. package/dist/esm/b2b-grid-row.entry.js +3 -7
  367. package/dist/esm/b2b-grid.entry.js +4 -4
  368. package/dist/esm/b2b-headline.entry.js +3 -5
  369. package/dist/esm/b2b-icon-100.entry.js +10 -12
  370. package/dist/esm/b2b-icon-50.entry.js +8 -9
  371. package/dist/esm/b2b-icon.entry.js +10 -12
  372. package/dist/esm/b2b-input-group_2.entry.js +22 -24
  373. package/dist/esm/b2b-input-label.entry.js +5 -6
  374. package/dist/esm/b2b-input_2.entry.js +31 -33
  375. package/dist/esm/b2b-label.entry.js +5 -5
  376. package/dist/esm/b2b-modal.entry.js +14 -18
  377. package/dist/esm/b2b-multiselect-dropdown.entry.js +25 -24
  378. package/dist/esm/b2b-pagination.entry.js +10 -13
  379. package/dist/esm/b2b-paragraph.entry.js +5 -10
  380. package/dist/esm/b2b-progress-bar.entry.js +10 -9
  381. package/dist/esm/b2b-radio-button.entry.js +17 -15
  382. package/dist/esm/b2b-radio-group.entry.js +15 -13
  383. package/dist/esm/b2b-required-separator.entry.js +4 -4
  384. package/dist/esm/b2b-rounded-icon.entry.js +8 -12
  385. package/dist/esm/b2b-scrollable-container.entry.js +4 -3
  386. package/dist/esm/b2b-search.entry.js +8 -9
  387. package/dist/esm/b2b-separator.entry.js +4 -4
  388. package/dist/esm/b2b-shimmer.entry.js +7 -3
  389. package/dist/esm/b2b-snackbar.entry.js +17 -18
  390. package/dist/esm/b2b-tab-group.entry.js +4 -6
  391. package/dist/esm/b2b-tab-panel.entry.js +4 -3
  392. package/dist/esm/b2b-tab.entry.js +6 -8
  393. package/dist/esm/b2b-table-cell_2.entry.js +28 -37
  394. package/dist/esm/b2b-table-row.entry.js +17 -17
  395. package/dist/esm/b2b-table-rowgroup.entry.js +14 -23
  396. package/dist/esm/b2b-table.entry.js +8 -13
  397. package/dist/esm/b2b-textarea.entry.js +21 -17
  398. package/dist/esm/b2b-toggle-button.entry.js +12 -10
  399. package/dist/esm/b2b-toggle-chip.entry.js +12 -10
  400. package/dist/esm/b2b-toggle-group.entry.js +9 -7
  401. package/dist/esm/b2b-toggle-switch.entry.js +13 -13
  402. package/dist/esm/b2b-tooltip.entry.js +10 -11
  403. package/dist/esm/b2b-wizard-icon.entry.js +7 -8
  404. package/dist/esm/b2b-wizard-step.entry.js +6 -9
  405. package/dist/esm/b2b-wizard.entry.js +8 -12
  406. package/dist/esm/index-ab9eb36d.js +2487 -0
  407. package/dist/esm/loader.js +4 -3
  408. package/dist/esm/polyfills/core-js.js +11 -0
  409. package/dist/esm/polyfills/dom.js +79 -0
  410. package/dist/esm/polyfills/es5-html-element.js +1 -0
  411. package/dist/esm/polyfills/index.js +34 -0
  412. package/dist/esm/polyfills/system.js +6 -0
  413. package/dist/{components/p-CPfvpKl5.js → esm/request-1d048f8a.js} +0 -2
  414. package/dist/{components/p-BA6KE1BD.js → esm/utils-868299de.js} +10 -3
  415. package/dist/loader/cdn.js +3 -1
  416. package/dist/loader/index.cjs.js +3 -1
  417. package/dist/loader/index.d.ts +0 -3
  418. package/dist/loader/index.es2017.js +3 -1
  419. package/dist/loader/index.js +3 -1
  420. package/dist/loader/package.json +11 -0
  421. package/dist/types/components.d.ts +0 -413
  422. package/dist/types/stencil-public-runtime.d.ts +11 -32
  423. package/dist/web-types.json +7 -7
  424. package/package.json +8 -11
  425. package/dist/b2b-core-components/p-0002d8d5.entry.js +0 -1
  426. package/dist/b2b-core-components/p-0386f660.entry.js +0 -1
  427. package/dist/b2b-core-components/p-0a08e2c8.entry.js +0 -1
  428. package/dist/b2b-core-components/p-0d8cc4eb.entry.js +0 -1
  429. package/dist/b2b-core-components/p-197dc9c0.entry.js +0 -1
  430. package/dist/b2b-core-components/p-220b8c79.entry.js +0 -1
  431. package/dist/b2b-core-components/p-2933f053.entry.js +0 -1
  432. package/dist/b2b-core-components/p-3a9f7db8.entry.js +0 -1
  433. package/dist/b2b-core-components/p-3e0919b3.entry.js +0 -1
  434. package/dist/b2b-core-components/p-42d9f79d.entry.js +0 -1
  435. package/dist/b2b-core-components/p-4bb42493.entry.js +0 -1
  436. package/dist/b2b-core-components/p-4c550170.entry.js +0 -1
  437. package/dist/b2b-core-components/p-50559efd.entry.js +0 -1
  438. package/dist/b2b-core-components/p-55db3d57.entry.js +0 -1
  439. package/dist/b2b-core-components/p-6e7abebc.entry.js +0 -1
  440. package/dist/b2b-core-components/p-7b75a0a4.entry.js +0 -1
  441. package/dist/b2b-core-components/p-7cbe33ef.entry.js +0 -1
  442. package/dist/b2b-core-components/p-8544b7e1.entry.js +0 -1
  443. package/dist/b2b-core-components/p-88037ad2.entry.js +0 -1
  444. package/dist/b2b-core-components/p-930425a1.entry.js +0 -1
  445. package/dist/b2b-core-components/p-B9l4NfeG.js +0 -1
  446. package/dist/b2b-core-components/p-BA6KE1BD.js +0 -1
  447. package/dist/b2b-core-components/p-a1a4efd4.entry.js +0 -1
  448. package/dist/b2b-core-components/p-a61eecf7.entry.js +0 -1
  449. package/dist/b2b-core-components/p-ada918c2.entry.js +0 -1
  450. package/dist/b2b-core-components/p-bb020c1c.entry.js +0 -1
  451. package/dist/b2b-core-components/p-bbb4c6f3.entry.js +0 -1
  452. package/dist/b2b-core-components/p-c0af184a.entry.js +0 -1
  453. package/dist/b2b-core-components/p-c40f7176.entry.js +0 -1
  454. package/dist/b2b-core-components/p-c6043d6a.entry.js +0 -1
  455. package/dist/b2b-core-components/p-c649c112.entry.js +0 -1
  456. package/dist/b2b-core-components/p-c69e9220.entry.js +0 -1
  457. package/dist/b2b-core-components/p-d1b46208.entry.js +0 -1
  458. package/dist/b2b-core-components/p-d2d40ae5.entry.js +0 -1
  459. package/dist/b2b-core-components/p-e8e156a4.entry.js +0 -1
  460. package/dist/b2b-core-components/p-ebcc2cce.entry.js +0 -1
  461. package/dist/b2b-core-components/p-edea84cc.entry.js +0 -1
  462. package/dist/b2b-core-components/p-f831e483.entry.js +0 -1
  463. package/dist/b2b-core-components/p-fdfb094e.entry.js +0 -1
  464. package/dist/b2b-core-components/p-zl-jO_Vq.js +0 -2
  465. package/dist/cjs/index-CIrNIFXs.js +0 -2406
  466. package/dist/esm/index-zl-jO_Vq.js +0 -2378
  467. /package/dist/b2b-core-components/{p-B8geQC3V.js → p-48608c23.js} +0 -0
  468. /package/dist/b2b-core-components/{p-BgHEmQ44.js → p-c500d93c.js} +0 -0
  469. /package/dist/cjs/{date-picker-util-VbL9p5ie.js → date-picker-util-51276571.js} +0 -0
  470. /package/dist/cjs/{wizard.types-uAv3s7tK.js → wizard.types-40a1058c.js} +0 -0
  471. /package/dist/components/{p-BsfreBZY.js → date-picker.types.js} +0 -0
  472. /package/dist/components/{p-BgHEmQ44.js → wizard.types.js} +0 -0
  473. /package/dist/esm/{date-picker-util-B8geQC3V.js → date-picker-util-44201ca6.js} +0 -0
  474. /package/dist/esm/{wizard.types-BgHEmQ44.js → wizard.types-40ae9b73.js} +0 -0
@@ -1,13 +1,9 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class B2bGridRowComponent {
3
3
  constructor() {
4
- /** The spacing in between individual columns in px. The higher the gap, the smaller the columns will be. */
5
4
  this.columnGap = 24;
6
- /** The spacing between individual rows in px. */
7
5
  this.rowGap = 24;
8
- /** Vertical alignment of columns. This requires the row to have a defined height. */
9
6
  this.alignItems = 'stretch';
10
- /** Horizontal alignment of columns. */
11
7
  this.justify = 'start';
12
8
  }
13
9
  componentDidLoad() {
@@ -70,7 +66,7 @@ export class B2bGridRowComponent {
70
66
  });
71
67
  }
72
68
  render() {
73
- return (h(Host, { key: 'aa9514f895ad5748b03e446f01127487d5f2ae19', style: {
69
+ return (h(Host, { key: '9c863ba4e90c06366599c6244f2307c842448d6a', style: {
74
70
  ['justify-content']: `${this.justify}`,
75
71
  ['gap']: `${this.columnGap}px`,
76
72
  ['margin']: `${this.rowGap}px 0`,
@@ -78,7 +74,7 @@ export class B2bGridRowComponent {
78
74
  ['display']: 'flex',
79
75
  ['flex-wrap']: 'wrap',
80
76
  ['box-sizing']: 'border-box',
81
- } }, h("slot", { key: '9263dc8263f57c9f732482f7eeae4e5b574fc6d3' })));
77
+ } }, h("slot", { key: 'c71d99c0c3f9073620237493528a4216033ce02e' })));
82
78
  }
83
79
  static get is() { return "b2b-grid-row"; }
84
80
  static get encapsulation() { return "shadow"; }
@@ -86,7 +82,6 @@ export class B2bGridRowComponent {
86
82
  return {
87
83
  "columnGap": {
88
84
  "type": "number",
89
- "attribute": "column-gap",
90
85
  "mutable": false,
91
86
  "complexType": {
92
87
  "original": "number",
@@ -99,14 +94,12 @@ export class B2bGridRowComponent {
99
94
  "tags": [],
100
95
  "text": "The spacing in between individual columns in px. The higher the gap, the smaller the columns will be."
101
96
  },
102
- "getter": false,
103
- "setter": false,
97
+ "attribute": "column-gap",
104
98
  "reflect": false,
105
99
  "defaultValue": "24"
106
100
  },
107
101
  "rowGap": {
108
102
  "type": "number",
109
- "attribute": "row-gap",
110
103
  "mutable": false,
111
104
  "complexType": {
112
105
  "original": "number",
@@ -119,14 +112,12 @@ export class B2bGridRowComponent {
119
112
  "tags": [],
120
113
  "text": "The spacing between individual rows in px."
121
114
  },
122
- "getter": false,
123
- "setter": false,
115
+ "attribute": "row-gap",
124
116
  "reflect": false,
125
117
  "defaultValue": "24"
126
118
  },
127
119
  "alignItems": {
128
120
  "type": "string",
129
- "attribute": "align-items",
130
121
  "mutable": false,
131
122
  "complexType": {
132
123
  "original": "'stretch' | 'flex-start' | 'center' | 'flex-end'",
@@ -139,14 +130,12 @@ export class B2bGridRowComponent {
139
130
  "tags": [],
140
131
  "text": "Vertical alignment of columns. This requires the row to have a defined height."
141
132
  },
142
- "getter": false,
143
- "setter": false,
133
+ "attribute": "align-items",
144
134
  "reflect": false,
145
135
  "defaultValue": "'stretch'"
146
136
  },
147
137
  "justify": {
148
138
  "type": "string",
149
- "attribute": "justify",
150
139
  "mutable": false,
151
140
  "complexType": {
152
141
  "original": "| 'start'\n | 'end'\n | 'center'\n | 'space-around'\n | 'space-between'\n | 'space-evenly'",
@@ -159,8 +148,7 @@ export class B2bGridRowComponent {
159
148
  "tags": [],
160
149
  "text": "Horizontal alignment of columns."
161
150
  },
162
- "getter": false,
163
- "setter": false,
151
+ "attribute": "justify",
164
152
  "reflect": false,
165
153
  "defaultValue": "'start'"
166
154
  }
@@ -0,0 +1,13 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B-Headline', () => {
3
+ let page;
4
+ beforeEach(async () => {
5
+ page = await newE2EPage();
6
+ await page.setContent(`<b2b-headline>Headline</b2b-headline>`);
7
+ });
8
+ it('should render headline component', async () => {
9
+ const element = await page.find('b2b-headline');
10
+ expect(element).not.toBeNull();
11
+ expect(element).toEqualText('Headline');
12
+ });
13
+ });
@@ -5,11 +5,8 @@ import { h } from "@stencil/core";
5
5
  */
6
6
  export class HeadlineComponent {
7
7
  constructor() {
8
- /** Each variant has a different hierarchical order, where 1 is the highest level. 400 will render to `<h1>`, 200 to `<h2>` and 100 to `<h3>` */
9
8
  this.size = '400';
10
- /** The alignment of the headline. */
11
9
  this.align = 'left';
12
- /** Whether the headline should have a margin. Per default, margins are enabled. */
13
10
  this.noMargin = false;
14
11
  }
15
12
  render() {
@@ -44,7 +41,6 @@ export class HeadlineComponent {
44
41
  return {
45
42
  "size": {
46
43
  "type": "string",
47
- "attribute": "size",
48
44
  "mutable": false,
49
45
  "complexType": {
50
46
  "original": "'400' | '200' | '100'",
@@ -57,14 +53,12 @@ export class HeadlineComponent {
57
53
  "tags": [],
58
54
  "text": "Each variant has a different hierarchical order, where 1 is the highest level. 400 will render to `<h1>`, 200 to `<h2>` and 100 to `<h3>`"
59
55
  },
60
- "getter": false,
61
- "setter": false,
56
+ "attribute": "size",
62
57
  "reflect": false,
63
58
  "defaultValue": "'400'"
64
59
  },
65
60
  "align": {
66
61
  "type": "string",
67
- "attribute": "align",
68
62
  "mutable": false,
69
63
  "complexType": {
70
64
  "original": "'left' | 'right' | 'center'",
@@ -77,14 +71,12 @@ export class HeadlineComponent {
77
71
  "tags": [],
78
72
  "text": "The alignment of the headline."
79
73
  },
80
- "getter": false,
81
- "setter": false,
74
+ "attribute": "align",
82
75
  "reflect": false,
83
76
  "defaultValue": "'left'"
84
77
  },
85
78
  "noMargin": {
86
79
  "type": "boolean",
87
- "attribute": "no-margin",
88
80
  "mutable": false,
89
81
  "complexType": {
90
82
  "original": "boolean",
@@ -97,8 +89,7 @@ export class HeadlineComponent {
97
89
  "tags": [],
98
90
  "text": "Whether the headline should have a margin. Per default, margins are enabled."
99
91
  },
100
- "getter": false,
101
- "setter": false,
92
+ "attribute": "no-margin",
102
93
  "reflect": false,
103
94
  "defaultValue": "false"
104
95
  }
@@ -0,0 +1,67 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { h } from "@stencil/core";
3
+ import { HeadlineComponent } from "./headline";
4
+ it('should use h1 tag with headline 400 size', async () => {
5
+ const page = await newSpecPage({
6
+ components: [HeadlineComponent],
7
+ template: () => (h("b2b-headline", { size: "400" }, "This is a h1 Headline")),
8
+ });
9
+ expect(page.root).toEqualHtml(`
10
+ <b2b-headline>
11
+ <mock:shadow-root>
12
+ <h1 class="b2b-headline--400 b2b-headline--left">
13
+ <slot></slot>
14
+ </h1>
15
+ </mock:shadow-root>
16
+ This is a h1 Headline
17
+ </b2b-headline>
18
+ `);
19
+ });
20
+ it('should use h2 tag with headline 200 size', async () => {
21
+ const page = await newSpecPage({
22
+ components: [HeadlineComponent],
23
+ template: () => (h("b2b-headline", { size: "200" }, "This is a h2 Headline")),
24
+ });
25
+ expect(page.root).toEqualHtml(`
26
+ <b2b-headline>
27
+ <mock:shadow-root>
28
+ <h2 class="b2b-headline--200 b2b-headline--left">
29
+ <slot></slot>
30
+ </h2>
31
+ </mock:shadow-root>
32
+ This is a h2 Headline
33
+ </b2b-headline>
34
+ `);
35
+ });
36
+ it('should use h3 tag with headline 100 size', async () => {
37
+ const page = await newSpecPage({
38
+ components: [HeadlineComponent],
39
+ template: () => (h("b2b-headline", { size: "100" }, "This is a h3 Headline")),
40
+ });
41
+ expect(page.root).toEqualHtml(`
42
+ <b2b-headline>
43
+ <mock:shadow-root>
44
+ <h3 class="b2b-headline--100 b2b-headline--left">
45
+ <slot></slot>
46
+ </h3>
47
+ </mock:shadow-root>
48
+ This is a h3 Headline
49
+ </b2b-headline>
50
+ `);
51
+ });
52
+ it('should use h1 tag as default size', async () => {
53
+ const page = await newSpecPage({
54
+ components: [HeadlineComponent],
55
+ template: () => h("b2b-headline", null, "This is a h3 Headline"),
56
+ });
57
+ expect(page.root).toEqualHtml(`
58
+ <b2b-headline>
59
+ <mock:shadow-root>
60
+ <h1 class="b2b-headline--400 b2b-headline--left">
61
+ <slot></slot>
62
+ </h1>
63
+ </mock:shadow-root>
64
+ This is a h3 Headline
65
+ </b2b-headline>
66
+ `);
67
+ });
@@ -3,15 +3,6 @@ import { buildPath, fetchIcon, iconContent } from "../../utils/icon/request";
3
3
  import { iconTypes } from "./types";
4
4
  export class B2bIcon {
5
5
  constructor() {
6
- /** The color of the icon */
7
- this.color = 'inherit';
8
- /** @deprecated The size of the icon. In the future, only 50 and 100 will be support through new components. */
9
- this.size = '100';
10
- /** Will display a pointer cursor when hovering the icon */
11
- this.clickable = false;
12
- /** Whether the icon can receive focus. Per default it is false. Use this for icon triggers like tooltip or flyout menu. */
13
- this.focusable = false;
14
- this.pathData = null;
15
6
  this.isIconSupported = () => {
16
7
  return iconTypes.includes(this.icon);
17
8
  };
@@ -20,6 +11,12 @@ export class B2bIcon {
20
11
  console.warn('B2B Icon is deprecated and will be removed on the next major release. Please use b2b-icon-100 or b2b-icon-50 instead.');
21
12
  }
22
13
  };
14
+ this.icon = undefined;
15
+ this.color = 'inherit';
16
+ this.size = '100';
17
+ this.clickable = false;
18
+ this.focusable = false;
19
+ this.pathData = null;
23
20
  }
24
21
  connectedCallback() {
25
22
  this.loadIconPathData();
@@ -70,7 +67,6 @@ export class B2bIcon {
70
67
  return {
71
68
  "icon": {
72
69
  "type": "string",
73
- "attribute": "icon",
74
70
  "mutable": false,
75
71
  "complexType": {
76
72
  "original": "IconName",
@@ -89,13 +85,11 @@ export class B2bIcon {
89
85
  "tags": [],
90
86
  "text": "The name of the icon"
91
87
  },
92
- "getter": false,
93
- "setter": false,
88
+ "attribute": "icon",
94
89
  "reflect": false
95
90
  },
96
91
  "color": {
97
92
  "type": "string",
98
- "attribute": "color",
99
93
  "mutable": false,
100
94
  "complexType": {
101
95
  "original": "'primary' | 'secondary' | 'inverse' | 'inherit'",
@@ -108,14 +102,12 @@ export class B2bIcon {
108
102
  "tags": [],
109
103
  "text": "The color of the icon"
110
104
  },
111
- "getter": false,
112
- "setter": false,
105
+ "attribute": "color",
113
106
  "reflect": false,
114
107
  "defaultValue": "'inherit'"
115
108
  },
116
109
  "size": {
117
110
  "type": "string",
118
- "attribute": "size",
119
111
  "mutable": false,
120
112
  "complexType": {
121
113
  "original": "'50' | '100' | '200'",
@@ -131,14 +123,12 @@ export class B2bIcon {
131
123
  }],
132
124
  "text": ""
133
125
  },
134
- "getter": false,
135
- "setter": false,
126
+ "attribute": "size",
136
127
  "reflect": false,
137
128
  "defaultValue": "'100'"
138
129
  },
139
130
  "clickable": {
140
131
  "type": "boolean",
141
- "attribute": "clickable",
142
132
  "mutable": false,
143
133
  "complexType": {
144
134
  "original": "boolean",
@@ -151,14 +141,12 @@ export class B2bIcon {
151
141
  "tags": [],
152
142
  "text": "Will display a pointer cursor when hovering the icon"
153
143
  },
154
- "getter": false,
155
- "setter": false,
144
+ "attribute": "clickable",
156
145
  "reflect": false,
157
146
  "defaultValue": "false"
158
147
  },
159
148
  "focusable": {
160
149
  "type": "boolean",
161
- "attribute": "focusable",
162
150
  "mutable": false,
163
151
  "complexType": {
164
152
  "original": "boolean",
@@ -171,8 +159,7 @@ export class B2bIcon {
171
159
  "tags": [],
172
160
  "text": "Whether the icon can receive focus. Per default it is false. Use this for icon triggers like tooltip or flyout menu."
173
161
  },
174
- "getter": false,
175
- "setter": false,
162
+ "attribute": "focusable",
176
163
  "reflect": false,
177
164
  "defaultValue": "false"
178
165
  }
@@ -0,0 +1,21 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { h } from "@stencil/core";
3
+ import { B2bIcon } from "./icon";
4
+ it('should render the icon with default values', async () => {
5
+ const page = await newSpecPage({
6
+ components: [B2bIcon],
7
+ template: () => h("b2b-icon", { icon: "b2b_icon-search" }),
8
+ });
9
+ expect(page.root).toMatchSnapshot();
10
+ });
11
+ it('should gracefully fail if icon name is not found by not rendering icon and emitting a warning', async () => {
12
+ // @ts-ignore
13
+ global.console.warn = jest.fn();
14
+ const page = await newSpecPage({
15
+ components: [B2bIcon],
16
+ // @ts-ignore
17
+ template: () => h("b2b-icon", { icon: "b2b_some-typo" }),
18
+ });
19
+ expect(page.root).toMatchSnapshot();
20
+ expect(console.warn).toBeCalled();
21
+ });
@@ -0,0 +1,40 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B Icon 100', () => {
3
+ it('should render the icon', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent(`<b2b-icon-100 icon="b2b_icon-arrow-down"></b2b-icon-100>`);
6
+ const icon = await page.find('b2b-icon-100');
7
+ const size = await icon.getProperty('size');
8
+ expect(icon).not.toBe(null);
9
+ expect(size).toBe(24);
10
+ });
11
+ it('should warn if the icon name is not supported', async () => {
12
+ global.console.warn = jest.fn();
13
+ const page = await newE2EPage();
14
+ await page.setContent(`<b2b-icon-100 icon="b2b_icon-not-supported-name"></b2b-icon-100>`);
15
+ expect(console.warn).toBeCalled();
16
+ });
17
+ it('should change size and warn if size is below 24 or above 96 pixels', async () => {
18
+ global.console.warn = jest.fn();
19
+ const page = await newE2EPage();
20
+ await page.setContent(`<b2b-icon-100 icon="b2b_icon-arrow-down" size="12"></b2b-icon-100>`);
21
+ expect(console.warn).toBeCalled();
22
+ });
23
+ it('should make the icon clickable', async () => {
24
+ const page = await newE2EPage();
25
+ await page.setContent(`<b2b-icon-100 icon="b2b_icon-arrow-down" clickable></b2b-icon-100>`);
26
+ const icon = await page.find('b2b-icon-100');
27
+ const clickable = await icon.getProperty('clickable');
28
+ expect(clickable).toBe(true);
29
+ });
30
+ it('should make the icon focusable', async () => {
31
+ const page = await newE2EPage();
32
+ await page.setContent(`<b2b-icon-100 icon="b2b_icon-arrow-down" focusable></b2b-icon-100>`);
33
+ const icon = await page.find('b2b-icon-100');
34
+ const focusable = await icon.getProperty('focusable');
35
+ const activeEl = await page.find('b2b-icon-100 >>> .b2b-icon-100');
36
+ const tabIndex = activeEl.getAttribute('tabindex');
37
+ expect(focusable).toBe(true);
38
+ expect(tabIndex).toBe('0');
39
+ });
40
+ });
@@ -3,21 +3,18 @@ import { buildPath, fetchIcon, iconContent } from "../../utils/icon/request";
3
3
  import { iconTypes } from "./types";
4
4
  export class B2bIcon {
5
5
  constructor() {
6
- /** The color of the icon */
7
- this.color = 'inherit';
8
- /** The size of the icon in pixel. Minimum is 24, maximum is 96px. */
9
- this.size = 24;
10
- /** Will display a pointer cursor when hovering the icon */
11
- this.clickable = false;
12
- /** Whether the icon can receive focus. Per default it is false. Use this for icon triggers like tooltip or flyout menu. */
13
- this.focusable = false;
14
- this.pathData = null;
15
6
  this.isIconSupported = () => {
16
7
  return iconTypes.includes(this.icon);
17
8
  };
18
9
  this.isIconRightSize = () => {
19
10
  return this.size >= 24 && this.size <= 96;
20
11
  };
12
+ this.icon = undefined;
13
+ this.color = 'inherit';
14
+ this.size = 24;
15
+ this.clickable = false;
16
+ this.focusable = false;
17
+ this.pathData = null;
21
18
  }
22
19
  connectedCallback() {
23
20
  this.loadIconPathData();
@@ -69,7 +66,6 @@ export class B2bIcon {
69
66
  return {
70
67
  "icon": {
71
68
  "type": "string",
72
- "attribute": "icon",
73
69
  "mutable": false,
74
70
  "complexType": {
75
71
  "original": "IconName",
@@ -88,13 +84,11 @@ export class B2bIcon {
88
84
  "tags": [],
89
85
  "text": "The name of the icon"
90
86
  },
91
- "getter": false,
92
- "setter": false,
87
+ "attribute": "icon",
93
88
  "reflect": false
94
89
  },
95
90
  "color": {
96
91
  "type": "string",
97
- "attribute": "color",
98
92
  "mutable": false,
99
93
  "complexType": {
100
94
  "original": "'primary' | 'secondary' | 'inverse' | 'inherit'",
@@ -107,14 +101,12 @@ export class B2bIcon {
107
101
  "tags": [],
108
102
  "text": "The color of the icon"
109
103
  },
110
- "getter": false,
111
- "setter": false,
104
+ "attribute": "color",
112
105
  "reflect": false,
113
106
  "defaultValue": "'inherit'"
114
107
  },
115
108
  "size": {
116
109
  "type": "number",
117
- "attribute": "size",
118
110
  "mutable": false,
119
111
  "complexType": {
120
112
  "original": "number",
@@ -127,14 +119,12 @@ export class B2bIcon {
127
119
  "tags": [],
128
120
  "text": "The size of the icon in pixel. Minimum is 24, maximum is 96px."
129
121
  },
130
- "getter": false,
131
- "setter": false,
122
+ "attribute": "size",
132
123
  "reflect": false,
133
124
  "defaultValue": "24"
134
125
  },
135
126
  "clickable": {
136
127
  "type": "boolean",
137
- "attribute": "clickable",
138
128
  "mutable": false,
139
129
  "complexType": {
140
130
  "original": "boolean",
@@ -147,14 +137,12 @@ export class B2bIcon {
147
137
  "tags": [],
148
138
  "text": "Will display a pointer cursor when hovering the icon"
149
139
  },
150
- "getter": false,
151
- "setter": false,
140
+ "attribute": "clickable",
152
141
  "reflect": false,
153
142
  "defaultValue": "false"
154
143
  },
155
144
  "focusable": {
156
145
  "type": "boolean",
157
- "attribute": "focusable",
158
146
  "mutable": false,
159
147
  "complexType": {
160
148
  "original": "boolean",
@@ -167,8 +155,7 @@ export class B2bIcon {
167
155
  "tags": [],
168
156
  "text": "Whether the icon can receive focus. Per default it is false. Use this for icon triggers like tooltip or flyout menu."
169
157
  },
170
- "getter": false,
171
- "setter": false,
158
+ "attribute": "focusable",
172
159
  "reflect": false,
173
160
  "defaultValue": "false"
174
161
  }
@@ -0,0 +1,32 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B Icon 50', () => {
3
+ it('should render the icon', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent(`<b2b-icon-50 icon="b2b_icon-arrow-down"></b2b-icon-50>`);
6
+ const icon = await page.find('b2b-icon-50');
7
+ expect(icon).not.toBe(null);
8
+ });
9
+ it('should warn if the icon name is not supported', async () => {
10
+ global.console.warn = jest.fn();
11
+ const page = await newE2EPage();
12
+ await page.setContent(`<b2b-icon-50 icon="b2b_icon-not-supported-name"></b2b-icon-50>`);
13
+ expect(console.warn).toBeCalled();
14
+ });
15
+ it('should make the icon clickable', async () => {
16
+ const page = await newE2EPage();
17
+ await page.setContent(`<b2b-icon-50 icon="b2b_icon-arrow-down" clickable></b2b-icon-50>`);
18
+ const icon = await page.find('b2b-icon-50');
19
+ const clickable = await icon.getProperty('clickable');
20
+ expect(clickable).toBe(true);
21
+ });
22
+ it('should make the icon focusable', async () => {
23
+ const page = await newE2EPage();
24
+ await page.setContent(`<b2b-icon-50 icon="b2b_icon-arrow-down" focusable></b2b-icon-50>`);
25
+ const icon = await page.find('b2b-icon-50');
26
+ const focusable = await icon.getProperty('focusable');
27
+ const activeEl = await page.find('b2b-icon-50 >>> .b2b-icon-50');
28
+ const tabIndex = activeEl.getAttribute('tabindex');
29
+ expect(focusable).toBe(true);
30
+ expect(tabIndex).toBe('0');
31
+ });
32
+ });
@@ -3,16 +3,14 @@ import { buildPath, fetchIcon, iconContent } from "../../utils/icon/request";
3
3
  import { iconTypes } from "./types";
4
4
  export class B2bIcon {
5
5
  constructor() {
6
- /** The color of the icon */
6
+ this.isIconSupported = () => {
7
+ return iconTypes.includes(this.icon);
8
+ };
9
+ this.icon = undefined;
7
10
  this.color = 'inherit';
8
- /** Will display a pointer cursor when hovering the icon */
9
11
  this.clickable = false;
10
- /** Whether the icon can receive focus. Per default it is false. Use this for icon triggers like tooltip or flyout menu. */
11
12
  this.focusable = false;
12
13
  this.pathData = null;
13
- this.isIconSupported = () => {
14
- return iconTypes.includes(this.icon);
15
- };
16
14
  }
17
15
  connectedCallback() {
18
16
  this.loadIconPathData();
@@ -61,7 +59,6 @@ export class B2bIcon {
61
59
  return {
62
60
  "icon": {
63
61
  "type": "string",
64
- "attribute": "icon",
65
62
  "mutable": false,
66
63
  "complexType": {
67
64
  "original": "IconName",
@@ -80,13 +77,11 @@ export class B2bIcon {
80
77
  "tags": [],
81
78
  "text": "The name of the icon"
82
79
  },
83
- "getter": false,
84
- "setter": false,
80
+ "attribute": "icon",
85
81
  "reflect": false
86
82
  },
87
83
  "color": {
88
84
  "type": "string",
89
- "attribute": "color",
90
85
  "mutable": false,
91
86
  "complexType": {
92
87
  "original": "'primary' | 'secondary' | 'inverse' | 'inherit'",
@@ -99,14 +94,12 @@ export class B2bIcon {
99
94
  "tags": [],
100
95
  "text": "The color of the icon"
101
96
  },
102
- "getter": false,
103
- "setter": false,
97
+ "attribute": "color",
104
98
  "reflect": false,
105
99
  "defaultValue": "'inherit'"
106
100
  },
107
101
  "clickable": {
108
102
  "type": "boolean",
109
- "attribute": "clickable",
110
103
  "mutable": false,
111
104
  "complexType": {
112
105
  "original": "boolean",
@@ -119,14 +112,12 @@ export class B2bIcon {
119
112
  "tags": [],
120
113
  "text": "Will display a pointer cursor when hovering the icon"
121
114
  },
122
- "getter": false,
123
- "setter": false,
115
+ "attribute": "clickable",
124
116
  "reflect": false,
125
117
  "defaultValue": "false"
126
118
  },
127
119
  "focusable": {
128
120
  "type": "boolean",
129
- "attribute": "focusable",
130
121
  "mutable": false,
131
122
  "complexType": {
132
123
  "original": "boolean",
@@ -139,8 +130,7 @@ export class B2bIcon {
139
130
  "tags": [],
140
131
  "text": "Whether the icon can receive focus. Per default it is false. Use this for icon triggers like tooltip or flyout menu."
141
132
  },
142
- "getter": false,
143
- "setter": false,
133
+ "attribute": "focusable",
144
134
  "reflect": false,
145
135
  "defaultValue": "false"
146
136
  }