@otto-de/b2b-core-components 1.10.1 → 1.11.1

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 (420) hide show
  1. package/README.md +1 -1
  2. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  3. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-down.svg +3 -0
  4. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-left.svg +3 -0
  5. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-right.svg +3 -0
  6. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-up.svg +3 -0
  7. package/dist/b2b-core-components/icons-50/b2b_icon-basket.svg +4 -0
  8. package/dist/b2b-core-components/icons-50/b2b_icon-check.svg +3 -0
  9. package/dist/b2b-core-components/icons-50/b2b_icon-close.svg +3 -0
  10. package/dist/b2b-core-components/icons-50/b2b_icon-delete.svg +6 -0
  11. package/dist/b2b-core-components/icons-50/b2b_icon-error-hint.svg +3 -0
  12. package/dist/b2b-core-components/icons-50/b2b_icon-filter.svg +5 -0
  13. package/dist/b2b-core-components/icons-50/b2b_icon-info-hint.svg +3 -0
  14. package/dist/b2b-core-components/icons-50/b2b_icon-info.svg +3 -0
  15. package/dist/b2b-core-components/icons-50/b2b_icon-leaving-page.svg +4 -0
  16. package/dist/b2b-core-components/icons-50/b2b_icon-minus.svg +3 -0
  17. package/dist/b2b-core-components/icons-50/b2b_icon-pin.svg +3 -0
  18. package/dist/b2b-core-components/icons-50/b2b_icon-plus.svg +3 -0
  19. package/dist/b2b-core-components/icons-50/b2b_icon-question-hint.svg +3 -0
  20. package/dist/b2b-core-components/icons-50/b2b_icon-question.svg +3 -0
  21. package/dist/b2b-core-components/icons-50/b2b_icon-rating-empty.svg +3 -0
  22. package/dist/b2b-core-components/icons-50/b2b_icon-rating-filled.svg +3 -0
  23. package/dist/b2b-core-components/icons-50/b2b_icon-rating-half.svg +3 -0
  24. package/dist/b2b-core-components/icons-50/b2b_icon-refresh.svg +3 -0
  25. package/dist/b2b-core-components/icons-50/b2b_icon-reply.svg +3 -0
  26. package/dist/b2b-core-components/icons-50/b2b_icon-smiley-positive.svg +13 -0
  27. package/dist/b2b-core-components/icons-50/b2b_icon-sort-ascending.svg +3 -0
  28. package/dist/b2b-core-components/icons-50/b2b_icon-sort-descending.svg +10 -0
  29. package/dist/b2b-core-components/icons-50/b2b_icon-sort.svg +7 -0
  30. package/dist/b2b-core-components/icons-50/b2b_icon-success-hint.svg +3 -0
  31. package/dist/b2b-core-components/icons-50/b2b_icon-trend-down.svg +3 -0
  32. package/dist/b2b-core-components/icons-50/b2b_icon-trend-up.svg +3 -0
  33. package/dist/b2b-core-components/icons-50/b2b_icon-warning-hint.svg +3 -0
  34. package/dist/b2b-core-components/icons-50/b2b_icon-wishlist-active.svg +3 -0
  35. package/dist/b2b-core-components/icons-50/b2b_icon-wishlist.svg +3 -0
  36. package/dist/b2b-core-components/p-0291eff0.entry.js +1 -0
  37. package/dist/b2b-core-components/p-1bc8e43e.entry.js +1 -0
  38. package/dist/b2b-core-components/{p-7a08679e.entry.js → p-1c0daedd.entry.js} +1 -1
  39. package/dist/b2b-core-components/p-2285568d.entry.js +1 -0
  40. package/dist/b2b-core-components/{p-25aaf272.entry.js → p-228d4489.entry.js} +1 -1
  41. package/dist/b2b-core-components/{p-c4f11f81.entry.js → p-2624f56d.entry.js} +1 -1
  42. package/dist/b2b-core-components/{p-ef0b67f7.entry.js → p-2667b51d.entry.js} +1 -1
  43. package/dist/b2b-core-components/{p-a4202aad.entry.js → p-287f83d5.entry.js} +1 -1
  44. package/dist/b2b-core-components/{p-b908127f.entry.js → p-29166e22.entry.js} +1 -1
  45. package/dist/b2b-core-components/{p-c09e03c7.entry.js → p-32b6b2c8.entry.js} +1 -1
  46. package/dist/b2b-core-components/{p-67ea769d.entry.js → p-339b7c3c.entry.js} +1 -1
  47. package/dist/b2b-core-components/p-3986736a.entry.js +1 -0
  48. package/dist/b2b-core-components/{p-3d4b228b.entry.js → p-3c776a9c.entry.js} +1 -1
  49. package/dist/b2b-core-components/{p-0ec7de22.entry.js → p-3d2bcff9.entry.js} +1 -1
  50. package/dist/b2b-core-components/p-3eceb872.entry.js +1 -0
  51. package/dist/b2b-core-components/{p-11da264c.entry.js → p-48466e2e.entry.js} +1 -1
  52. package/dist/b2b-core-components/{p-0bcf079c.entry.js → p-4b6d056b.entry.js} +1 -1
  53. package/dist/b2b-core-components/{p-925d9070.entry.js → p-567a827a.entry.js} +1 -1
  54. package/dist/b2b-core-components/p-61b2a6ad.js +1 -0
  55. package/dist/b2b-core-components/{p-f8a750e7.entry.js → p-65e497d7.entry.js} +1 -1
  56. package/dist/b2b-core-components/{p-f2b41fc6.entry.js → p-68350423.entry.js} +1 -1
  57. package/dist/b2b-core-components/{p-b3f85ec6.entry.js → p-68c54639.entry.js} +1 -1
  58. package/dist/b2b-core-components/{p-ad8b109e.entry.js → p-6a3ac673.entry.js} +1 -1
  59. package/dist/b2b-core-components/{p-387990be.entry.js → p-6e656e5c.entry.js} +1 -1
  60. package/dist/b2b-core-components/{p-38998a52.entry.js → p-7293eda0.entry.js} +1 -1
  61. package/dist/b2b-core-components/{p-8da7c951.entry.js → p-7788b868.entry.js} +1 -1
  62. package/dist/b2b-core-components/{p-5b15a55f.entry.js → p-7ae31329.entry.js} +1 -1
  63. package/dist/b2b-core-components/{p-cafd5cd3.entry.js → p-8455554d.entry.js} +1 -1
  64. package/dist/b2b-core-components/{p-90ff0cd1.entry.js → p-874c66d3.entry.js} +1 -1
  65. package/dist/b2b-core-components/{p-d06ef328.entry.js → p-90c700a4.entry.js} +1 -1
  66. package/dist/b2b-core-components/{p-6ff25e30.entry.js → p-91d82529.entry.js} +1 -1
  67. package/dist/b2b-core-components/p-93970b97.entry.js +1 -0
  68. package/dist/b2b-core-components/{p-0fd28783.entry.js → p-972ab127.entry.js} +1 -1
  69. package/dist/b2b-core-components/{p-8bb6c888.entry.js → p-9812490d.entry.js} +1 -1
  70. package/dist/b2b-core-components/{p-3a98c9c9.entry.js → p-9cf6d10b.entry.js} +1 -1
  71. package/dist/b2b-core-components/{p-fbdd6ae8.entry.js → p-a6bb2610.entry.js} +1 -1
  72. package/dist/b2b-core-components/{p-359ce83c.entry.js → p-b0cc9895.entry.js} +1 -1
  73. package/dist/b2b-core-components/p-b8ac302c.entry.js +1 -0
  74. package/dist/b2b-core-components/{p-4e5c008e.entry.js → p-bd14b3a6.entry.js} +1 -1
  75. package/dist/b2b-core-components/{p-02c3e38e.entry.js → p-cc6d221f.entry.js} +1 -1
  76. package/dist/b2b-core-components/{p-2d426936.entry.js → p-dc3d8d35.entry.js} +1 -1
  77. package/dist/b2b-core-components/{p-dc8a7a69.entry.js → p-de4857da.entry.js} +1 -1
  78. package/dist/b2b-core-components/{p-fdbe1232.entry.js → p-e1a20cd5.entry.js} +1 -1
  79. package/dist/b2b-core-components/{p-60d9ba88.entry.js → p-e355b702.entry.js} +1 -1
  80. package/dist/b2b-core-components/{p-ed36dfe2.entry.js → p-e94bd252.entry.js} +1 -1
  81. package/dist/b2b-core-components/{p-7b021a62.entry.js → p-f7288fb4.entry.js} +1 -1
  82. package/dist/b2b-core-components/{p-1fb6a6f8.entry.js → p-f8f38e9e.entry.js} +1 -1
  83. package/dist/b2b-core-components/{p-bcc6a797.entry.js → p-fb33d6df.entry.js} +1 -1
  84. package/dist/b2b-core-components/{p-2dd11d48.entry.js → p-ff16fd1a.entry.js} +1 -1
  85. package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
  86. package/dist/cjs/b2b-calendar-days_3.cjs.entry.js +228 -0
  87. package/dist/cjs/b2b-calendar.cjs.entry.js +113 -0
  88. package/dist/cjs/b2b-card.cjs.entry.js +2 -2
  89. package/dist/cjs/b2b-checkbox-group.cjs.entry.js +2 -2
  90. package/dist/cjs/b2b-checkbox.cjs.entry.js +2 -2
  91. package/dist/cjs/b2b-chip-component_2.cjs.entry.js +9 -5
  92. package/dist/cjs/b2b-core-components.cjs.js +1 -1
  93. package/dist/cjs/b2b-dropdown.cjs.entry.js +2 -2
  94. package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +1 -1
  95. package/dist/cjs/b2b-flyout-menu.cjs.entry.js +3 -3
  96. package/dist/cjs/b2b-grid-col.cjs.entry.js +1 -1
  97. package/dist/cjs/b2b-grid-row.cjs.entry.js +2 -2
  98. package/dist/cjs/b2b-grid.cjs.entry.js +1 -1
  99. package/dist/cjs/b2b-icon-100.cjs.entry.js +1 -1
  100. package/dist/cjs/b2b-icon-50.cjs.entry.js +94 -0
  101. package/dist/cjs/b2b-icon.cjs.entry.js +1 -1
  102. package/dist/cjs/b2b-input-group_2.cjs.entry.js +3 -3
  103. package/dist/cjs/b2b-input-label.cjs.entry.js +2 -2
  104. package/dist/cjs/b2b-input_2.cjs.entry.js +4 -4
  105. package/dist/cjs/b2b-label.cjs.entry.js +2 -2
  106. package/dist/cjs/b2b-modal.cjs.entry.js +2 -2
  107. package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +3 -3
  108. package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
  109. package/dist/cjs/b2b-paragraph.cjs.entry.js +2 -2
  110. package/dist/cjs/b2b-progress-bar.cjs.entry.js +3 -3
  111. package/dist/cjs/b2b-radio-button.cjs.entry.js +2 -2
  112. package/dist/cjs/b2b-radio-group.cjs.entry.js +2 -2
  113. package/dist/cjs/b2b-required-separator.cjs.entry.js +1 -1
  114. package/dist/cjs/b2b-rounded-icon.cjs.entry.js +4 -4
  115. package/dist/cjs/b2b-scrollable-container.cjs.entry.js +1 -1
  116. package/dist/cjs/b2b-search.cjs.entry.js +1 -1
  117. package/dist/cjs/b2b-separator.cjs.entry.js +1 -1
  118. package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
  119. package/dist/cjs/b2b-tab-panel.cjs.entry.js +1 -1
  120. package/dist/cjs/b2b-tab.cjs.entry.js +2 -2
  121. package/dist/cjs/b2b-table-cell_2.cjs.entry.js +3 -3
  122. package/dist/cjs/b2b-table-row.cjs.entry.js +2 -2
  123. package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +2 -2
  124. package/dist/cjs/b2b-table.cjs.entry.js +2 -2
  125. package/dist/cjs/b2b-textarea.cjs.entry.js +2 -2
  126. package/dist/cjs/b2b-toggle-button.cjs.entry.js +3 -3
  127. package/dist/cjs/b2b-toggle-chip.cjs.entry.js +3 -3
  128. package/dist/cjs/b2b-toggle-group.cjs.entry.js +2 -2
  129. package/dist/cjs/b2b-toggle-switch.cjs.entry.js +4 -4
  130. package/dist/cjs/b2b-tooltip.cjs.entry.js +3 -3
  131. package/dist/cjs/b2b-wizard-icon.cjs.entry.js +1 -1
  132. package/dist/cjs/b2b-wizard-step.cjs.entry.js +2 -2
  133. package/dist/cjs/b2b-wizard.cjs.entry.js +1 -1
  134. package/dist/cjs/index-668808fd.js +16 -4
  135. package/dist/cjs/loader.cjs.js +1 -1
  136. package/dist/cjs/{request-412d37bc.js → request-801c6ba1.js} +2 -2
  137. package/dist/collection/collection-manifest.json +5 -0
  138. package/dist/collection/components/alert/alert.css +2 -2
  139. package/dist/collection/components/anchor/anchor.css +2 -2
  140. package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
  141. package/dist/collection/components/button/button.css +2 -2
  142. package/dist/collection/components/calendar/calendar-days-header.css +233 -0
  143. package/dist/collection/components/calendar/calendar-days-header.js +29 -0
  144. package/dist/collection/components/calendar/calendar-days.css +261 -0
  145. package/dist/collection/components/calendar/calendar-days.js +333 -0
  146. package/dist/collection/components/calendar/calendar-header.css +283 -0
  147. package/dist/collection/components/calendar/calendar-header.e2e.js +22 -0
  148. package/dist/collection/components/calendar/calendar-header.js +111 -0
  149. package/dist/collection/components/calendar/calendar.css +264 -0
  150. package/dist/collection/components/calendar/calendar.e2e.js +60 -0
  151. package/dist/collection/components/calendar/calendar.js +245 -0
  152. package/dist/collection/components/calendar/calendar.stories.js +81 -0
  153. package/dist/collection/components/calendar/calendar.types.js +15 -0
  154. package/dist/collection/components/card/card.css +2 -2
  155. package/dist/collection/components/card/card.js +2 -2
  156. package/dist/collection/components/checkbox/checkbox.css +2 -2
  157. package/dist/collection/components/checkbox/checkbox.js +2 -2
  158. package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
  159. package/dist/collection/components/checkbox-group/checkbox-group.js +2 -2
  160. package/dist/collection/components/chip/chip.css +36 -3
  161. package/dist/collection/components/chip/chip.e2e.js +80 -0
  162. package/dist/collection/components/chip/chip.js +40 -2
  163. package/dist/collection/components/chip/chip.stories.js +92 -36
  164. package/dist/collection/components/dropdown/dropdown.css +2 -2
  165. package/dist/collection/components/dropdown/dropdown.js +2 -2
  166. package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
  167. package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
  168. package/dist/collection/components/flyout-menu/flyout-menu.js +3 -3
  169. package/dist/collection/components/grid/column.js +1 -1
  170. package/dist/collection/components/grid/grid.js +1 -1
  171. package/dist/collection/components/grid/row.js +2 -2
  172. package/dist/collection/components/headline/headline.css +2 -2
  173. package/dist/collection/components/icon/icon.css +2 -2
  174. package/dist/collection/components/icon-100/icon-100.css +2 -2
  175. package/dist/collection/components/icon-50/icon-50.css +244 -0
  176. package/dist/collection/components/icon-50/icon-50.e2e.js +32 -0
  177. package/dist/collection/components/icon-50/icon-50.js +150 -0
  178. package/dist/collection/components/icon-50/icon-50.stories.js +80 -0
  179. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-down.svg +3 -0
  180. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-left.svg +3 -0
  181. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-right.svg +3 -0
  182. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-up.svg +3 -0
  183. package/dist/collection/components/icon-50/icons-50/b2b_icon-basket.svg +4 -0
  184. package/dist/collection/components/icon-50/icons-50/b2b_icon-check.svg +3 -0
  185. package/dist/collection/components/icon-50/icons-50/b2b_icon-close.svg +3 -0
  186. package/dist/collection/components/icon-50/icons-50/b2b_icon-delete.svg +6 -0
  187. package/dist/collection/components/icon-50/icons-50/b2b_icon-error-hint.svg +3 -0
  188. package/dist/collection/components/icon-50/icons-50/b2b_icon-filter.svg +5 -0
  189. package/dist/collection/components/icon-50/icons-50/b2b_icon-info-hint.svg +3 -0
  190. package/dist/collection/components/icon-50/icons-50/b2b_icon-info.svg +3 -0
  191. package/dist/collection/components/icon-50/icons-50/b2b_icon-leaving-page.svg +4 -0
  192. package/dist/collection/components/icon-50/icons-50/b2b_icon-minus.svg +3 -0
  193. package/dist/collection/components/icon-50/icons-50/b2b_icon-pin.svg +3 -0
  194. package/dist/collection/components/icon-50/icons-50/b2b_icon-plus.svg +3 -0
  195. package/dist/collection/components/icon-50/icons-50/b2b_icon-question-hint.svg +3 -0
  196. package/dist/collection/components/icon-50/icons-50/b2b_icon-question.svg +3 -0
  197. package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-empty.svg +3 -0
  198. package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-filled.svg +3 -0
  199. package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-half.svg +3 -0
  200. package/dist/collection/components/icon-50/icons-50/b2b_icon-refresh.svg +3 -0
  201. package/dist/collection/components/icon-50/icons-50/b2b_icon-reply.svg +3 -0
  202. package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-positive.svg +13 -0
  203. package/dist/collection/components/icon-50/icons-50/b2b_icon-sort-ascending.svg +3 -0
  204. package/dist/collection/components/icon-50/icons-50/b2b_icon-sort-descending.svg +10 -0
  205. package/dist/collection/components/icon-50/icons-50/b2b_icon-sort.svg +7 -0
  206. package/dist/collection/components/icon-50/icons-50/b2b_icon-success-hint.svg +3 -0
  207. package/dist/collection/components/icon-50/icons-50/b2b_icon-trend-down.svg +3 -0
  208. package/dist/collection/components/icon-50/icons-50/b2b_icon-trend-up.svg +3 -0
  209. package/dist/collection/components/icon-50/icons-50/b2b_icon-warning-hint.svg +3 -0
  210. package/dist/collection/components/icon-50/icons-50/b2b_icon-wishlist-active.svg +3 -0
  211. package/dist/collection/components/icon-50/icons-50/b2b_icon-wishlist.svg +3 -0
  212. package/dist/collection/components/icon-50/types.js +36 -0
  213. package/dist/collection/components/input/input.css +2 -2
  214. package/dist/collection/components/input/input.js +3 -3
  215. package/dist/collection/components/input-group/input-group.css +2 -2
  216. package/dist/collection/components/input-group/input-group.js +1 -1
  217. package/dist/collection/components/input-label/input-label.js +2 -2
  218. package/dist/collection/components/input-list/input-list-option.js +1 -1
  219. package/dist/collection/components/input-list/input-list.css +2 -2
  220. package/dist/collection/components/input-list/input-list.js +2 -2
  221. package/dist/collection/components/label/label.css +2 -2
  222. package/dist/collection/components/label/label.js +2 -2
  223. package/dist/collection/components/modal/modal.css +2 -2
  224. package/dist/collection/components/modal/modal.js +2 -2
  225. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
  226. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +3 -3
  227. package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +2 -2
  228. package/dist/collection/components/pagination/pagination.css +2 -2
  229. package/dist/collection/components/pagination/pagination.js +1 -1
  230. package/dist/collection/components/paragraph/paragraph.css +2 -2
  231. package/dist/collection/components/paragraph/paragraph.js +2 -2
  232. package/dist/collection/components/progress-bar/progress-bar.css +2 -2
  233. package/dist/collection/components/progress-bar/progress-bar.js +3 -3
  234. package/dist/collection/components/radio/radio.css +2 -2
  235. package/dist/collection/components/radio/radio.js +2 -2
  236. package/dist/collection/components/radio-group/radio-group.css +2 -2
  237. package/dist/collection/components/radio-group/radio-group.js +2 -2
  238. package/dist/collection/components/required-separator/required-separator.css +2 -2
  239. package/dist/collection/components/required-separator/required-separator.js +1 -1
  240. package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
  241. package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
  242. package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
  243. package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
  244. package/dist/collection/components/search/search.js +1 -1
  245. package/dist/collection/components/separator/separator.css +2 -2
  246. package/dist/collection/components/separator/separator.js +1 -1
  247. package/dist/collection/components/spinner/spinner.css +2 -2
  248. package/dist/collection/components/spinner/spinner.js +1 -1
  249. package/dist/collection/components/tab/tab.css +2 -2
  250. package/dist/collection/components/tab/tab.js +2 -2
  251. package/dist/collection/components/tab-group/tab-group.js +1 -1
  252. package/dist/collection/components/tab-panel/tab-panel.css +2 -2
  253. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  254. package/dist/collection/components/table/table-cell/table-cell.css +2 -2
  255. package/dist/collection/components/table/table-cell/table-cell.js +2 -2
  256. package/dist/collection/components/table/table-header/table-header.css +2 -2
  257. package/dist/collection/components/table/table-header/table-header.js +1 -1
  258. package/dist/collection/components/table/table-row/table-row.css +2 -2
  259. package/dist/collection/components/table/table-row/table-row.js +2 -2
  260. package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
  261. package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +2 -2
  262. package/dist/collection/components/table/table.css +2 -2
  263. package/dist/collection/components/table/table.js +2 -2
  264. package/dist/collection/components/textarea/textarea.css +2 -2
  265. package/dist/collection/components/textarea/textarea.js +2 -2
  266. package/dist/collection/components/toggle-button/toggle-button.css +2 -2
  267. package/dist/collection/components/toggle-button/toggle-button.js +3 -3
  268. package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
  269. package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
  270. package/dist/collection/components/toggle-group/toggle-group.css +2 -2
  271. package/dist/collection/components/toggle-group/toggle-group.js +2 -2
  272. package/dist/collection/components/toggle-switch/toggle-switch.css +2 -2
  273. package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
  274. package/dist/collection/components/tooltip/tooltip.css +2 -2
  275. package/dist/collection/components/tooltip/tooltip.js +3 -3
  276. package/dist/collection/components/wizard/wizard-step.js +2 -2
  277. package/dist/collection/components/wizard/wizard.css +2 -2
  278. package/dist/collection/components/wizard/wizard.js +1 -1
  279. package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
  280. package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
  281. package/dist/collection/utils/icon/request.js +1 -1
  282. package/dist/collection/utils/resources.js +1 -1
  283. package/dist/components/b2b-calendar-days-header.d.ts +11 -0
  284. package/dist/components/b2b-calendar-days-header.js +6 -0
  285. package/dist/components/b2b-calendar-days.d.ts +11 -0
  286. package/dist/components/b2b-calendar-days.js +6 -0
  287. package/dist/components/b2b-calendar-header.d.ts +11 -0
  288. package/dist/components/b2b-calendar-header.js +6 -0
  289. package/dist/components/b2b-calendar.d.ts +11 -0
  290. package/dist/components/b2b-calendar.js +167 -0
  291. package/dist/components/b2b-card.js +2 -2
  292. package/dist/components/b2b-checkbox-group.js +2 -2
  293. package/dist/components/b2b-dropdown.js +2 -2
  294. package/dist/components/b2b-flyout-menu-option.js +1 -1
  295. package/dist/components/b2b-flyout-menu.js +3 -3
  296. package/dist/components/b2b-grid-col.js +1 -1
  297. package/dist/components/b2b-grid-row.js +2 -2
  298. package/dist/components/b2b-grid.js +1 -1
  299. package/dist/components/b2b-icon-50.d.ts +11 -0
  300. package/dist/components/b2b-icon-50.js +119 -0
  301. package/dist/components/b2b-label.js +2 -2
  302. package/dist/components/b2b-modal.js +2 -2
  303. package/dist/components/b2b-multiselect-dropdown.js +3 -3
  304. package/dist/components/b2b-pagination.js +1 -1
  305. package/dist/components/b2b-paragraph.js +2 -2
  306. package/dist/components/b2b-progress-bar.js +3 -3
  307. package/dist/components/b2b-radio-button.js +2 -2
  308. package/dist/components/b2b-radio-group.js +2 -2
  309. package/dist/components/b2b-required-separator.js +1 -1
  310. package/dist/components/b2b-scrollable-container.js +1 -1
  311. package/dist/components/b2b-search.js +1 -1
  312. package/dist/components/b2b-tab-group.js +1 -1
  313. package/dist/components/b2b-tab-panel.js +1 -1
  314. package/dist/components/b2b-tab.js +2 -2
  315. package/dist/components/b2b-table-row.js +2 -2
  316. package/dist/components/b2b-table-rowgroup.js +2 -2
  317. package/dist/components/b2b-table.js +2 -2
  318. package/dist/components/b2b-textarea.js +2 -2
  319. package/dist/components/b2b-toggle-button.js +3 -3
  320. package/dist/components/b2b-toggle-chip.js +3 -3
  321. package/dist/components/b2b-toggle-group.js +2 -2
  322. package/dist/components/b2b-toggle-switch.js +4 -4
  323. package/dist/components/b2b-tooltip.js +3 -3
  324. package/dist/components/b2b-wizard-step.js +2 -2
  325. package/dist/components/b2b-wizard.js +1 -1
  326. package/dist/components/calendar-days-header.js +40 -0
  327. package/dist/components/calendar-days.js +186 -0
  328. package/dist/components/calendar-header.js +56 -0
  329. package/dist/components/calendar.types.js +17 -0
  330. package/dist/components/checkbox.js +2 -2
  331. package/dist/components/chip.js +9 -3
  332. package/dist/components/input-group.js +1 -1
  333. package/dist/components/input-label.js +2 -2
  334. package/dist/components/input-list-option.js +1 -1
  335. package/dist/components/input-list.js +2 -2
  336. package/dist/components/input.js +3 -3
  337. package/dist/components/multiselect-option.js +2 -2
  338. package/dist/components/request.js +2 -2
  339. package/dist/components/rounded-icon.js +4 -4
  340. package/dist/components/separator.js +1 -1
  341. package/dist/components/spinner.js +1 -1
  342. package/dist/components/table-cell.js +2 -2
  343. package/dist/components/table-header.js +1 -1
  344. package/dist/components/wizard-icon.js +1 -1
  345. package/dist/custom-elements.json +259 -0
  346. package/dist/esm/b2b-button_2.entry.js +1 -1
  347. package/dist/esm/b2b-calendar-days_3.entry.js +222 -0
  348. package/dist/esm/b2b-calendar.entry.js +109 -0
  349. package/dist/esm/b2b-card.entry.js +2 -2
  350. package/dist/esm/b2b-checkbox-group.entry.js +2 -2
  351. package/dist/esm/b2b-checkbox.entry.js +2 -2
  352. package/dist/esm/b2b-chip-component_2.entry.js +9 -5
  353. package/dist/esm/b2b-core-components.js +1 -1
  354. package/dist/esm/b2b-dropdown.entry.js +2 -2
  355. package/dist/esm/b2b-flyout-menu-option.entry.js +1 -1
  356. package/dist/esm/b2b-flyout-menu.entry.js +3 -3
  357. package/dist/esm/b2b-grid-col.entry.js +1 -1
  358. package/dist/esm/b2b-grid-row.entry.js +2 -2
  359. package/dist/esm/b2b-grid.entry.js +1 -1
  360. package/dist/esm/b2b-icon-100.entry.js +1 -1
  361. package/dist/esm/b2b-icon-50.entry.js +90 -0
  362. package/dist/esm/b2b-icon.entry.js +1 -1
  363. package/dist/esm/b2b-input-group_2.entry.js +3 -3
  364. package/dist/esm/b2b-input-label.entry.js +2 -2
  365. package/dist/esm/b2b-input_2.entry.js +4 -4
  366. package/dist/esm/b2b-label.entry.js +2 -2
  367. package/dist/esm/b2b-modal.entry.js +2 -2
  368. package/dist/esm/b2b-multiselect-dropdown.entry.js +3 -3
  369. package/dist/esm/b2b-pagination.entry.js +1 -1
  370. package/dist/esm/b2b-paragraph.entry.js +2 -2
  371. package/dist/esm/b2b-progress-bar.entry.js +3 -3
  372. package/dist/esm/b2b-radio-button.entry.js +2 -2
  373. package/dist/esm/b2b-radio-group.entry.js +2 -2
  374. package/dist/esm/b2b-required-separator.entry.js +1 -1
  375. package/dist/esm/b2b-rounded-icon.entry.js +4 -4
  376. package/dist/esm/b2b-scrollable-container.entry.js +1 -1
  377. package/dist/esm/b2b-search.entry.js +1 -1
  378. package/dist/esm/b2b-separator.entry.js +1 -1
  379. package/dist/esm/b2b-tab-group.entry.js +1 -1
  380. package/dist/esm/b2b-tab-panel.entry.js +1 -1
  381. package/dist/esm/b2b-tab.entry.js +2 -2
  382. package/dist/esm/b2b-table-cell_2.entry.js +3 -3
  383. package/dist/esm/b2b-table-row.entry.js +2 -2
  384. package/dist/esm/b2b-table-rowgroup.entry.js +2 -2
  385. package/dist/esm/b2b-table.entry.js +2 -2
  386. package/dist/esm/b2b-textarea.entry.js +2 -2
  387. package/dist/esm/b2b-toggle-button.entry.js +3 -3
  388. package/dist/esm/b2b-toggle-chip.entry.js +3 -3
  389. package/dist/esm/b2b-toggle-group.entry.js +2 -2
  390. package/dist/esm/b2b-toggle-switch.entry.js +4 -4
  391. package/dist/esm/b2b-tooltip.entry.js +3 -3
  392. package/dist/esm/b2b-wizard-icon.entry.js +1 -1
  393. package/dist/esm/b2b-wizard-step.entry.js +2 -2
  394. package/dist/esm/b2b-wizard.entry.js +1 -1
  395. package/dist/esm/index-ab9eb36d.js +16 -4
  396. package/dist/esm/loader.js +1 -1
  397. package/dist/esm/{request-9dfb5cd6.js → request-1d048f8a.js} +2 -2
  398. package/dist/scripts/stencil/generate-vue-web-types.js +1 -1
  399. package/dist/types/components/calendar/calendar-days-header.d.ts +5 -0
  400. package/dist/types/components/calendar/calendar-days.d.ts +34 -0
  401. package/dist/types/components/calendar/calendar-header.d.ts +14 -0
  402. package/dist/types/components/calendar/calendar.d.ts +31 -0
  403. package/dist/types/components/calendar/calendar.stories.d.ts +8 -0
  404. package/dist/types/components/calendar/calendar.types.d.ts +2 -0
  405. package/dist/types/components/chip/chip.d.ts +4 -0
  406. package/dist/types/components/chip/chip.stories.d.ts +16 -7
  407. package/dist/types/components/icon-50/icon-50.d.ts +16 -0
  408. package/dist/types/components/icon-50/icon-50.stories.d.ts +10 -0
  409. package/dist/types/components/icon-50/types.d.ts +2 -0
  410. package/dist/types/components.d.ts +282 -4
  411. package/dist/types/utils/interfaces/form.interface.d.ts +7 -0
  412. package/dist/types/utils/interfaces/interaction.interface.d.ts +3 -1
  413. package/dist/types/utils/resources.d.ts +1 -1
  414. package/dist/web-types.json +342 -56
  415. package/package.json +3 -3
  416. package/dist/b2b-core-components/p-2218987f.entry.js +0 -1
  417. package/dist/b2b-core-components/p-38626c78.entry.js +0 -1
  418. package/dist/b2b-core-components/p-7a0c1ada.entry.js +0 -1
  419. package/dist/b2b-core-components/p-a5825744.entry.js +0 -1
  420. package/dist/b2b-core-components/p-f4d4c269.js +0 -1
@@ -0,0 +1,81 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s)
4
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ import { html } from "lit-html";
14
+ import { getArgTypes } from "../../docs/config/utils";
15
+ import { userEvent } from "@storybook/testing-library";
16
+ const meta = {
17
+ title: 'Components/Interaction/Calendar',
18
+ component: 'b2b-calendar',
19
+ args: {
20
+ disablePastDates: false,
21
+ disableFutureDates: false,
22
+ disableWeekends: false,
23
+ label: 'Zeitraum auswählen',
24
+ },
25
+ argTypes: getArgTypes('b2b-calendar'),
26
+ render: (_a) => {
27
+ var args = __rest(_a, []);
28
+ return html ` <div style="margin-left: 100px">
29
+ <b2b-calendar
30
+ label=${args.label}
31
+ disable-past-dates=${args.disablePastDates}
32
+ disable-future-dates=${args.disableFutureDates}
33
+ disable-weekends=${args.disableWeekends}></b2b-calendar>
34
+ </div>`;
35
+ },
36
+ };
37
+ export default meta;
38
+ export const Default = {
39
+ args: Object.assign({}, meta.args),
40
+ play: async ({ canvasElement }) => {
41
+ setTimeout(async () => {
42
+ var _a;
43
+ const calendar = canvasElement.querySelector('b2b-calendar');
44
+ const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
45
+ await userEvent.click(b2bCalendarInputWrapper);
46
+ }, 500);
47
+ },
48
+ };
49
+ export const DisablePastDates = {
50
+ args: Object.assign(Object.assign({}, meta.args), { disablePastDates: true }),
51
+ play: async ({ canvasElement }) => {
52
+ setTimeout(async () => {
53
+ var _a;
54
+ const calendar = canvasElement.querySelector('b2b-calendar');
55
+ const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
56
+ await userEvent.click(b2bCalendarInputWrapper);
57
+ }, 500);
58
+ },
59
+ };
60
+ export const DisableFutureDates = {
61
+ args: Object.assign(Object.assign({}, meta.args), { disableFutureDates: true }),
62
+ play: async ({ canvasElement }) => {
63
+ setTimeout(async () => {
64
+ var _a;
65
+ const calendar = canvasElement.querySelector('b2b-calendar');
66
+ const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
67
+ await userEvent.click(b2bCalendarInputWrapper);
68
+ }, 500);
69
+ },
70
+ };
71
+ export const DisableWeekends = {
72
+ args: Object.assign(Object.assign({}, meta.args), { disableWeekends: true }),
73
+ play: async ({ canvasElement }) => {
74
+ setTimeout(async () => {
75
+ var _a;
76
+ const calendar = canvasElement.querySelector('b2b-calendar');
77
+ const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
78
+ await userEvent.click(b2bCalendarInputWrapper);
79
+ }, 500);
80
+ },
81
+ };
@@ -0,0 +1,15 @@
1
+ export const Months = [
2
+ 'Jan',
3
+ 'Feb',
4
+ 'Mär',
5
+ 'Apr',
6
+ 'Mai',
7
+ 'Jun',
8
+ 'Jul',
9
+ 'Aug',
10
+ 'Sep',
11
+ 'Okt',
12
+ 'Nov',
13
+ 'Dez',
14
+ ];
15
+ export const Weekdays = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 09 May 2024 10:53:08 GMT
3
+ * Generated on Tue, 18 Jun 2024 10:17:41 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Thu, 09 May 2024 10:53:08 GMT
126
+ * Generated on Tue, 18 Jun 2024 10:17:42 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -26,10 +26,10 @@ export class CardComponent {
26
26
  return 0;
27
27
  }
28
28
  render() {
29
- return (h(Host, { key: '6a3323a5f58c054a69080f6bec53bf8a29288a83', tabIndex: this.getTabIndex(), "aria-disabled": this.disabled ? 'true' : null, class: {
29
+ return (h(Host, { key: '6a39ac26f49ce2814abb2e2a5f0628d3af9e3ffb', tabIndex: this.getTabIndex(), "aria-disabled": this.disabled ? 'true' : null, class: {
30
30
  'b2b-card': true,
31
31
  'b2b-card--disabled': this.disabled,
32
- } }, this.href != '' && h("a", { href: this.href, target: `_${this.target}` }), this.disabled && h("div", { class: "b2b-card--disabled-overlay" }), h("slot", { key: '72a803fa506ce9f3a2a79e9fe677d4f8facb1d36' })));
32
+ } }, this.href != '' && h("a", { href: this.href, target: `_${this.target}` }), this.disabled && h("div", { class: "b2b-card--disabled-overlay" }), h("slot", { key: '19775bd829936bbe3fa1aa8d58dde18f6d602228' })));
33
33
  }
34
34
  static get is() { return "b2b-card"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 09 May 2024 10:53:08 GMT
3
+ * Generated on Tue, 18 Jun 2024 10:17:41 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Thu, 09 May 2024 10:53:08 GMT
126
+ * Generated on Tue, 18 Jun 2024 10:17:42 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -65,14 +65,14 @@ export class CheckboxComponent {
65
65
  }
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: 'c86d4e004efb5915b0599988694e0947e18c30d5', onClick: this.onClick }, h("div", { key: '7f24bbd3dc6c15c614c7c5c6b975b1e478bfd78c', class: {
68
+ return (h(Host, { key: '15500c41147539bda4b3a5355fbaae206711172e', onClick: this.onClick }, h("div", { key: '285ad6cca81447d099870f0faec211d5cd7111de', class: {
69
69
  'b2b-checkbox': true,
70
70
  'b2b-checkbox--error': this.invalid && !this.disabled,
71
71
  'b2b-checkbox--disabled': this.disabled || this.groupDisabled,
72
72
  'b2b-checkbox--checked': this.checked,
73
73
  'b2b-checkbox--standalone': this.standalone,
74
74
  'b2b-checkbox--indeterminate': this.indeterminate,
75
- } }, h("div", { key: '721592f4c6d92e644809e4dca7ec17f97f306178', class: "b2b-checkbox-items" }, this.renderIcon(), h("input", { key: '4961c34d17d578179cc368f4cad206ad955cade8', class: "b2b-checkbox__input", "aria-labelledby": this.name, type: "checkbox", name: this.name, id: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.groupDisabled, onFocus: this.onFocus, onBlur: this.onBlur }), !this.standalone && (h("b2b-input-label", { id: this.name, required: this.required, disabled: this.disabled }, this.label))), (this.hint !== undefined && !this.invalid) ||
75
+ } }, h("div", { key: '74319860db88f14c2f56b6e7ed4f5e797433dd5b', class: "b2b-checkbox-items" }, this.renderIcon(), h("input", { key: '68a6c2c855731d1e5887bc3cbac14d4ed51468c9', class: "b2b-checkbox__input", "aria-labelledby": this.name, type: "checkbox", name: this.name, id: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.groupDisabled, onFocus: this.onFocus, onBlur: this.onBlur }), !this.standalone && (h("b2b-input-label", { id: this.name, required: this.required, disabled: this.disabled }, this.label))), (this.hint !== undefined && !this.invalid) ||
76
76
  (this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
77
77
  }
78
78
  static get is() { return "b2b-checkbox"; }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 09 May 2024 10:53:08 GMT
3
+ * Generated on Tue, 18 Jun 2024 10:17:41 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Thu, 09 May 2024 10:53:08 GMT
126
+ * Generated on Tue, 18 Jun 2024 10:17:42 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -65,11 +65,11 @@ export class CheckboxGroupComponent {
65
65
  }
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: '17f56d642b6ef6a4157a51178c4e1d604755f698' }, h("div", { key: 'caf98c3c46fb753dad491e2b1e98ff212e7c6a93', class: {
68
+ return (h(Host, { key: '3b6da1303cdfd1bdddbc1f31323e50986ac7b087' }, h("div", { key: 'c626a8341b17c86efd58e6c9da73b44257b8cd9a', class: {
69
69
  'b2b-checkbox-group': true,
70
70
  'b2b-checkbox-group--error': this.invalid && !this.disabled,
71
71
  [`b2b-checkbox-group--${this.alignment}`]: true,
72
- } }, this.label && (h("b2b-input-label", { required: this.required }, this.label)), h("fieldset", { key: '0b9b7dd931a8059a6ed0e53a49e799076e1d33ea' }, h("div", { key: '4385c56f2f7d570abfa58877b623b82f1006cafa', class: "b2b-checkbox-group__options" }, h("slot", { key: 'a15f2bd94e9167701a85cbf2981a268325bc4c85' }))), (this.hint !== undefined && !this.invalid) ||
72
+ } }, this.label && (h("b2b-input-label", { required: this.required }, this.label)), h("fieldset", { key: '881df0a66e9479f2eab63d0387fc4d4f4ee37295' }, h("div", { key: '936511055623583956fc980f62497cdc01a9dc21', class: "b2b-checkbox-group__options" }, h("slot", { key: 'd096cf78944f253e07d0b852c38db6c486681eb3' }))), (this.hint !== undefined && !this.invalid) ||
73
73
  (this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
74
74
  }
75
75
  static get is() { return "b2b-checkbox-group"; }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 09 May 2024 10:53:08 GMT
3
+ * Generated on Tue, 18 Jun 2024 10:17:41 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Thu, 09 May 2024 10:53:08 GMT
126
+ * Generated on Tue, 18 Jun 2024 10:17:42 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -234,14 +234,47 @@
234
234
  align-items: center;
235
235
  cursor: default;
236
236
  margin-left: var(--b2b-size-20);
237
+ color: var(--b2b-color-copy-default);
238
+ }
239
+ :host .b2b-chip--success {
240
+ height: var(--b2b-size-45);
241
+ background-color: var(--b2b-color-success-50);
242
+ border: var(--b2b-size-border-width-50) solid var(--b2b-color-success-100);
243
+ }
244
+ :host .b2b-chip--info {
245
+ height: var(--b2b-size-45);
246
+ background-color: var(--b2b-color-info-50);
247
+ border: var(--b2b-size-border-width-50) solid var(--b2b-color-info-100);
248
+ }
249
+ :host .b2b-chip--warn {
250
+ height: var(--b2b-size-45);
251
+ background-color: var(--b2b-color-warning-50);
252
+ border: var(--b2b-size-border-width-50) solid var(--b2b-color-warning-100);
253
+ }
254
+ :host .b2b-chip--error {
255
+ height: var(--b2b-size-45);
256
+ background-color: var(--b2b-color-error-50);
257
+ border: var(--b2b-size-border-width-50) solid var(--b2b-color-error-100);
237
258
  }
238
259
  :host .b2b-chip__label {
239
260
  display: inline-block;
240
261
  text-overflow: ellipsis;
241
262
  overflow: hidden;
242
263
  }
264
+ :host .b2b-chip__label--bold {
265
+ font-weight: bold;
266
+ }
267
+ :host .b2b-chip__label--italic {
268
+ font-style: italic;
269
+ }
270
+ :host .b2b-chip__label--underline {
271
+ text-decoration: underline;
272
+ }
273
+ :host .b2b-chip__label--strikethrough {
274
+ text-decoration: line-through;
275
+ }
243
276
  :host .b2b-chip__label--close-button {
244
- margin-right: var(--b2b-size-10);
277
+ margin-right: var(--b2b-size-5);
245
278
  }
246
279
  :host .b2b-chip__clearIcon {
247
280
  display: flex;
@@ -8,6 +8,86 @@ describe('B2B-Chip-Component', () => {
8
8
  expect(chip).not.toBeNull();
9
9
  expect(clearIcon).not.toBeNull();
10
10
  });
11
+ it('should render the chip component with success type', async () => {
12
+ const page = await newE2EPage();
13
+ await page.setContent(`<b2b-chip-component label="chip" type="success"></b2b-chip-component>`);
14
+ const chip = await page.find({ text: 'chip' });
15
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
16
+ expect(chip).not.toBeNull();
17
+ expect(clearIcon).not.toBeNull();
18
+ const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
19
+ expect(chipWrapper).toHaveClass('b2b-chip--success');
20
+ });
21
+ it('should render the chip component with info type', async () => {
22
+ const page = await newE2EPage();
23
+ await page.setContent(`<b2b-chip-component label="chip" type="info"></b2b-chip-component>`);
24
+ const chip = await page.find({ text: 'chip' });
25
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
26
+ expect(chip).not.toBeNull();
27
+ expect(clearIcon).not.toBeNull();
28
+ const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
29
+ expect(chipWrapper).toHaveClass('b2b-chip--info');
30
+ });
31
+ it('should render the chip component with warning type', async () => {
32
+ const page = await newE2EPage();
33
+ await page.setContent(`<b2b-chip-component label="chip" type="warn"></b2b-chip-component>`);
34
+ const chip = await page.find({ text: 'chip' });
35
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
36
+ expect(chip).not.toBeNull();
37
+ expect(clearIcon).not.toBeNull();
38
+ const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
39
+ expect(chipWrapper).toHaveClass('b2b-chip--warn');
40
+ });
41
+ it('should render the chip component with error type', async () => {
42
+ const page = await newE2EPage();
43
+ await page.setContent(`<b2b-chip-component label="chip" type="error"></b2b-chip-component>`);
44
+ const chip = await page.find({ text: 'chip' });
45
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
46
+ expect(chip).not.toBeNull();
47
+ expect(clearIcon).not.toBeNull();
48
+ const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
49
+ expect(chipWrapper).toHaveClass('b2b-chip--error');
50
+ });
51
+ it('should render the chip component with bold label', async () => {
52
+ const page = await newE2EPage();
53
+ await page.setContent(`<b2b-chip-component label="chip" label-style="bold"></b2b-chip-component>`);
54
+ const chip = await page.find({ text: 'chip' });
55
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
56
+ expect(chip).not.toBeNull();
57
+ expect(clearIcon).not.toBeNull();
58
+ const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
59
+ expect(label).toHaveClass('b2b-chip__label--bold');
60
+ });
61
+ it('should render the chip component with italic label', async () => {
62
+ const page = await newE2EPage();
63
+ await page.setContent(`<b2b-chip-component label="chip" label-style="italic"></b2b-chip-component>`);
64
+ const chip = await page.find({ text: 'chip' });
65
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
66
+ expect(chip).not.toBeNull();
67
+ expect(clearIcon).not.toBeNull();
68
+ const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
69
+ expect(label).toHaveClass('b2b-chip__label--italic');
70
+ });
71
+ it('should render the chip component with underlined label', async () => {
72
+ const page = await newE2EPage();
73
+ await page.setContent(`<b2b-chip-component label="chip" label-style="underline"></b2b-chip-component>`);
74
+ const chip = await page.find({ text: 'chip' });
75
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
76
+ expect(chip).not.toBeNull();
77
+ expect(clearIcon).not.toBeNull();
78
+ const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
79
+ expect(label).toHaveClass('b2b-chip__label--underline');
80
+ });
81
+ it('should render the chip component with strikethrough label', async () => {
82
+ const page = await newE2EPage();
83
+ await page.setContent(`<b2b-chip-component label="chip" label-style="strikethrough"></b2b-chip-component>`);
84
+ const chip = await page.find({ text: 'chip' });
85
+ const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
86
+ expect(chip).not.toBeNull();
87
+ expect(clearIcon).not.toBeNull();
88
+ const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
89
+ expect(label).toHaveClass('b2b-chip__label--strikethrough');
90
+ });
11
91
  it('should emit b2b-close event on clear icon click', async () => {
12
92
  const page = await newE2EPage();
13
93
  await page.setContent(`<b2b-chip-component label="chip"></b2b-chip-component>`);
@@ -15,16 +15,20 @@ export class B2bChipComponent {
15
15
  };
16
16
  this.clearIcon = (h("svg", { width: "12", height: "12", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M7.85352 3.14648C7.6582 2.95117 7.3418 2.95117 7.14648 3.14648L5.5 4.79297L3.85352 3.14648C3.6582 2.95117 3.3418 2.95117 3.14648 3.14648C2.95117 3.3418 2.95117 3.6582 3.14648 3.85352L4.79297 5.5L3.14648 7.14648C2.95117 7.3418 2.95117 7.6582 3.14648 7.85352C3.24414 7.95117 3.37207 8 3.5 8C3.62793 8 3.75586 7.95117 3.85352 7.85352L5.5 6.20703L7.14648 7.85352C7.24414 7.95117 7.37207 8 7.5 8C7.62793 8 7.75586 7.95117 7.85352 7.85352C8.04883 7.6582 8.04883 7.3418 7.85352 7.14648L6.20703 5.5L7.85352 3.85352C8.04883 3.6582 8.04883 3.3418 7.85352 3.14648ZM5.5 0C2.46729 0 0 2.46729 0 5.5C0 8.53271 2.46729 11 5.5 11C8.53271 11 11 8.53271 11 5.5C11 2.46729 8.53271 0 5.5 0ZM5.5 10C3.01855 10 1 7.98145 1 5.5C1 3.01855 3.01855 1 5.5 1C7.98145 1 10 3.01855 10 5.5C10 7.98145 7.98145 10 5.5 10Z" })));
17
17
  this.label = undefined;
18
+ this.type = undefined;
19
+ this.labelStyle = undefined;
18
20
  this.disabled = false;
19
21
  this.hasCloseButton = true;
20
22
  this.value = undefined;
21
23
  }
22
24
  render() {
23
- return (h(Host, { key: '77c42654e6a464ff77fccdf2b7a27827a4784aa5' }, h("div", { key: 'ce62139769921473a5447fffc8de5ce15adaf57b', class: {
25
+ return (h(Host, { key: '2d25f08431074055d7da97f361739e9dbcb19a01' }, h("div", { key: 'b852bebe68a3d80d7264f7212fe220f7ffd3232f', class: {
24
26
  'b2b-chip': true,
27
+ [`b2b-chip--${this.type}`]: !this.disabled && this.type !== undefined,
25
28
  'b2b-chip--disabled': this.disabled,
26
- } }, h("span", { key: 'c39e42b28b7ce72ae3e03dbd1c29e35c9a94ae57', class: {
29
+ } }, h("span", { key: '4f5cc17ec7edfad96f8bf7fb2eb3d88368627ede', class: {
27
30
  'b2b-chip__label': true,
31
+ [`b2b-chip__label--${this.labelStyle}`]: this.labelStyle !== undefined,
28
32
  'b2b-chip__label--close-button': this.hasCloseButton,
29
33
  } }, this.label), this.hasCloseButton && (h("button", { class: {
30
34
  'b2b-chip__clearIcon': true,
@@ -62,6 +66,40 @@ export class B2bChipComponent {
62
66
  "attribute": "label",
63
67
  "reflect": false
64
68
  },
69
+ "type": {
70
+ "type": "string",
71
+ "mutable": false,
72
+ "complexType": {
73
+ "original": "'success' | 'info' | 'warn' | 'error'",
74
+ "resolved": "\"error\" | \"info\" | \"success\" | \"warn\"",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": true,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": "The type of chip to represent states like success, info, warn and error. Uses default style if not set."
82
+ },
83
+ "attribute": "type",
84
+ "reflect": false
85
+ },
86
+ "labelStyle": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "'bold' | 'italic' | 'underline' | 'strikethrough'",
91
+ "resolved": "\"bold\" | \"italic\" | \"strikethrough\" | \"underline\"",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": true,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "The style of the label which decorates the text in bold, italic, underline or strikethrough style. Uses default style if not set."
99
+ },
100
+ "attribute": "label-style",
101
+ "reflect": false
102
+ },
65
103
  "disabled": {
66
104
  "type": "boolean",
67
105
  "mutable": false,
@@ -1,43 +1,99 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s)
4
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
1
13
  import { html } from "lit-html";
2
14
  import { getArgTypes } from "../../docs/config/utils";
3
- const Template = ({ label, disabled, value, hasCloseButton }) => {
4
- return html `<b2b-chip-component
5
- label="${label}"
6
- disabled="${disabled}"
7
- value="${value}"
8
- has-close-button="${hasCloseButton}"></b2b-chip-component>`;
9
- };
10
- const TruncTemplate = ({ label, disabled, value, hasCloseButton }) => {
11
- return html `<div
15
+ const meta = {
16
+ title: 'Components/Interaction/Chip',
17
+ component: 'b2b-chip-component',
18
+ args: {
19
+ label: 'Chip Label',
20
+ type: undefined,
21
+ labelStyle: undefined,
22
+ disabled: false,
23
+ value: '',
24
+ hasCloseButton: true,
25
+ },
26
+ argTypes: getArgTypes('b2b-chip-component'),
27
+ render: (_a) => {
28
+ var args = __rest(_a, []);
29
+ return html `<b2b-chip-component
30
+ label="${args.label}"
31
+ type="${args.type}"
32
+ label-style="${args.labelStyle}"
33
+ disabled="${args.disabled}"
34
+ value="${args.value}"
35
+ has-close-button="${args.hasCloseButton}" />`;
36
+ },
37
+ };
38
+ export default meta;
39
+ export const story010Default = {
40
+ name: 'Default',
41
+ args: Object.assign(Object.assign({}, meta.args), { label: 'Default Chip' }),
42
+ };
43
+ export const story020Disabled = {
44
+ name: 'Disabled',
45
+ args: Object.assign(Object.assign({}, meta.args), { label: 'Disabled Chip', disabled: true }),
46
+ };
47
+ export const story030WithoutButton = {
48
+ name: 'Without Button',
49
+ args: Object.assign(Object.assign({}, meta.args), { label: 'Chip without button', hasCloseButton: false }),
50
+ };
51
+ export const story040WithTruncatedText = {
52
+ name: 'Truncated Label',
53
+ args: Object.assign(Object.assign({}, meta.args), { label: 'Chip with truncated label' }),
54
+ render: (_a) => {
55
+ var args = __rest(_a, []);
56
+ return html `<div
12
57
  style="width: 170px; border: 1px solid grey; border-radius: 3px; padding: 6px;">
13
58
  <b2b-chip-component
14
- label="${label}"
15
- disabled="${disabled}"
16
- value="${value}"
17
- has-close-button="${hasCloseButton}"></b2b-chip-component>
59
+ label="${args.label}"
60
+ type="${args.type}"
61
+ label-style="${args.labelStyle}"
62
+ disabled="${args.disabled}"
63
+ value="${args.value}"
64
+ has-close-button="${args.hasCloseButton}" />
18
65
  </div>`;
66
+ },
19
67
  };
20
- const defaultArgs = {
21
- label: 'Chip Label',
22
- disabled: false,
23
- value: '',
24
- hasCloseButton: true,
25
- };
26
- export const story010Default = Template.bind({});
27
- story010Default.args = Object.assign(Object.assign({}, defaultArgs), { label: 'Default Chip' });
28
- story010Default.storyName = 'Default';
29
- export const story020Disabled = Template.bind({});
30
- story020Disabled.args = Object.assign(Object.assign({}, defaultArgs), { label: 'Disabled Chip', disabled: true });
31
- story020Disabled.storyName = 'Disabled';
32
- export const story030WithoutButton = Template.bind({});
33
- story030WithoutButton.args = Object.assign(Object.assign({}, defaultArgs), { label: ' Chip without button', hasCloseButton: false });
34
- story030WithoutButton.storyName = 'Without Button';
35
- export const story040WithTruncatedText = TruncTemplate.bind({});
36
- story040WithTruncatedText.args = Object.assign(Object.assign({}, defaultArgs), { label: ' Chip with truncated text' });
37
- story040WithTruncatedText.storyName = 'Truncated Text';
38
- const chipComponentArgs = getArgTypes('b2b-chip-component');
39
- export default {
40
- title: 'Components/Interaction/Chip',
41
- argTypes: chipComponentArgs,
42
- viewMode: 'docs',
68
+ export const story050SuccessChip = {
69
+ name: 'Success Chip',
70
+ args: Object.assign(Object.assign({}, meta.args), { type: 'success', label: 'Chip with success type' }),
71
+ };
72
+ export const story051InfoChip = {
73
+ name: 'Info Chip',
74
+ args: Object.assign(Object.assign({}, meta.args), { type: 'info', label: 'Chip with info type' }),
75
+ };
76
+ export const story052WarningChip = {
77
+ name: 'Warning Chip',
78
+ args: Object.assign(Object.assign({}, meta.args), { type: 'warn', label: 'Chip with warning type' }),
79
+ };
80
+ export const story053ErrorChip = {
81
+ name: 'Error Chip',
82
+ args: Object.assign(Object.assign({}, meta.args), { type: 'error', label: 'Chip with error type' }),
83
+ };
84
+ export const story060BoldLabel = {
85
+ name: 'Bold Label',
86
+ args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'bold', label: 'Chip with bold style' }),
87
+ };
88
+ export const story061ItalicLabel = {
89
+ name: 'Italic Label',
90
+ args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'italic', label: 'Chip with italic style' }),
91
+ };
92
+ export const story062UnderlinedLabel = {
93
+ name: 'Underlined Label',
94
+ args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'underline', label: 'Chip with underline style' }),
95
+ };
96
+ export const story063StrikethroughLabel = {
97
+ name: 'Strikethrough Label',
98
+ args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'strikethrough', label: 'Chip with strikethrough style' }),
43
99
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 09 May 2024 10:53:08 GMT
3
+ * Generated on Tue, 18 Jun 2024 10:17:41 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Thu, 09 May 2024 10:53:08 GMT
126
+ * Generated on Tue, 18 Jun 2024 10:17:42 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -43,11 +43,11 @@ export class DropdownComponent {
43
43
  selectElement.append(...options);
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '5397c2e35d08dec639b2763a7e57b5106e706e99', class: {
46
+ return (h(Host, { key: 'cb7a0a4bcc708257cada82f8ce45041b63d6baf1', class: {
47
47
  'b2b-dropdown': true,
48
48
  'b2b-dropdown--error': this.invalid && !this.disabled,
49
49
  'b2b-dropdown--disabled': this.disabled,
50
- } }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '7183009ea350d6f78a058f64894d09a2c4251dc7', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
50
+ } }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '7b613f352cc3c501dd3ef917bfc25efc3006f69b', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
51
51
  (this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
52
52
  }
53
53
  static get is() { return "b2b-dropdown"; }
@@ -16,7 +16,7 @@ export class FlyoutMenuOptionComponent {
16
16
  }
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '1f5d621a609edaaed502796616e8ef969cc0c3a8', class: {
19
+ return (h(Host, { key: '9332072c4536e9dfbb55e451c0886179afb20c45', class: {
20
20
  'b2b-flyout-menu__option': true,
21
21
  'b2b-flyout-menu__option--disabled': this.disabled,
22
22
  'b2b-flyout-menu__option--separator': this.separator,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 09 May 2024 10:53:08 GMT
3
+ * Generated on Tue, 18 Jun 2024 10:17:41 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Thu, 09 May 2024 10:53:08 GMT
126
+ * Generated on Tue, 18 Jun 2024 10:17:42 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -132,12 +132,12 @@ export class FlyoutMenuComponent {
132
132
  options[index].focus();
133
133
  }
134
134
  render() {
135
- return (h(Host, { key: '89937140ae7e17b57dca9ab84fee4b41dff52f9f' }, h("div", { key: '4423849c7dbfc018494e868baeb0cf0ab8e88861', class: {
135
+ return (h(Host, { key: '5f8927a6f6ace022337a745aa0c5c7de8c3b9ca1' }, h("div", { key: '339e2e53ef4b050b36e20f73a49a76eeb754d2a3', class: {
136
136
  'b2b-flyout-menu': true,
137
- } }, h("div", { key: 'a9af5524e21d365906cf78559a116fbab6b77320', class: "b2b-flyout-menu__trigger" }, h("slot", { key: '4344734420e284ac8dd2a38b1e4f9cac51228ed1', name: "trigger" })), h("div", { key: 'dc3c9970d365dc8c4ed5b588ddf6a3994290e5f6', onFocusout: this.blurMenu, class: {
137
+ } }, h("div", { key: '36815dbbd15e98a617b308491c8ad39e9fd81d0d', class: "b2b-flyout-menu__trigger" }, h("slot", { key: '68103d9c6c4d5ec094d2e15469177bbe6c11250f', name: "trigger" })), h("div", { key: '58777a87a708ebfa65dff39622cf4715b0a9bdd5', onFocusout: this.blurMenu, class: {
138
138
  'b2b-flyout-menu__options__container': true,
139
139
  'b2b-flyout-menu__options__container--on': this.opened,
140
- } }, h("div", { key: '0d08b3e259a8da4dabc41d809e0310a3bcf92541', class: "b2b-flyout-menu__arrow" }), h("slot", { key: 'bdc2acb63bfb5a779945cd55edfbf133dac79e2f', name: "option" })))));
140
+ } }, h("div", { key: '9b56d64c648a044faab165546c5aec1ea58d5d15', class: "b2b-flyout-menu__arrow" }), h("slot", { key: '15d2d1809c563ae2b89b76c3080dbf619e35cefd', name: "option" })))));
141
141
  }
142
142
  static get is() { return "b2b-flyout-menu"; }
143
143
  static get encapsulation() { return "shadow"; }