@orangesk/orange-design-system 2.0.0-beta.8 → 2.0.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 (946) hide show
  1. package/README.md +358 -19
  2. package/build/appstore.svg +31 -0
  3. package/build/components/Accordion/style.css +2 -0
  4. package/build/components/Accordion/style.css.map +1 -0
  5. package/build/components/Alert/style.css +2 -0
  6. package/build/components/Alert/style.css.map +1 -0
  7. package/build/components/AnchorNavigation/style.css +2 -0
  8. package/build/components/AnchorNavigation/style.css.map +1 -0
  9. package/build/components/Bar/style.css +2 -0
  10. package/build/components/Bar/style.css.map +1 -0
  11. package/build/components/BlockAction/style.css +2 -0
  12. package/build/components/BlockAction/style.css.map +1 -0
  13. package/build/components/BodyBanner/style.css +2 -0
  14. package/build/components/BodyBanner/style.css.map +1 -0
  15. package/build/components/Breadcrumbs/style.css +2 -0
  16. package/build/components/Breadcrumbs/style.css.map +1 -0
  17. package/build/components/Button/style.css +2 -0
  18. package/build/components/Button/style.css.map +1 -0
  19. package/build/components/Buttons/style.css +2 -0
  20. package/build/components/Buttons/style.css.map +1 -0
  21. package/build/components/Card/style.css +2 -0
  22. package/build/components/Card/style.css.map +1 -0
  23. package/build/components/Carousel/style.css +2 -0
  24. package/build/components/Carousel/style.css.map +1 -0
  25. package/build/components/CarouselHero/style.css +2 -0
  26. package/build/components/CarouselHero/style.css.map +1 -0
  27. package/build/components/CarouselPromotions/style.css +2 -0
  28. package/build/components/CarouselPromotions/style.css.map +1 -0
  29. package/build/components/CartTable/style.css +2 -0
  30. package/build/components/CartTable/style.css.map +1 -0
  31. package/build/components/Code/style.css +2 -0
  32. package/build/components/Code/style.css.map +1 -0
  33. package/build/components/Container/style.css +2 -0
  34. package/build/components/Container/style.css.map +1 -0
  35. package/build/components/Controls/style.css +2 -0
  36. package/build/components/Controls/style.css.map +1 -0
  37. package/build/components/Cover/style.css +2 -0
  38. package/build/components/Cover/style.css.map +1 -0
  39. package/build/components/Divider/style.css +2 -0
  40. package/build/components/Divider/style.css.map +1 -0
  41. package/build/components/DocumentationSidebar/style.css +2 -0
  42. package/build/components/DocumentationSidebar/style.css.map +1 -0
  43. package/build/components/Dropdown/style.css +2 -0
  44. package/build/components/Dropdown/style.css.map +1 -0
  45. package/build/components/Expander/style.css +2 -0
  46. package/build/components/Expander/style.css.map +1 -0
  47. package/build/components/FeatureAccordion/style.css +2 -0
  48. package/build/components/FeatureAccordion/style.css.map +1 -0
  49. package/build/components/Footer/style.css +2 -0
  50. package/build/components/Footer/style.css.map +1 -0
  51. package/build/components/Gauge/style.css +2 -0
  52. package/build/components/Gauge/style.css.map +1 -0
  53. package/build/components/Grid/style.css +2 -0
  54. package/build/components/Grid/style.css.map +1 -0
  55. package/build/components/Hero/style.css +2 -0
  56. package/build/components/Hero/style.css.map +1 -0
  57. package/build/components/Icon/style.css +2 -0
  58. package/build/components/Icon/style.css.map +1 -0
  59. package/build/components/IconList/style.css +2 -0
  60. package/build/components/IconList/style.css.map +1 -0
  61. package/build/components/Image/style.css +2 -0
  62. package/build/components/Image/style.css.map +1 -0
  63. package/build/components/Link/style.css +2 -0
  64. package/build/components/Link/style.css.map +1 -0
  65. package/build/components/List/style.css +2 -0
  66. package/build/components/List/style.css.map +1 -0
  67. package/build/components/Loader/style.css +2 -0
  68. package/build/components/Loader/style.css.map +1 -0
  69. package/build/components/Megamenu/style.css +2 -0
  70. package/build/components/Megamenu/style.css.map +1 -0
  71. package/build/components/Modal/style.css +2 -0
  72. package/build/components/Modal/style.css.map +1 -0
  73. package/build/components/Pagination/style.css +2 -0
  74. package/build/components/Pagination/style.css.map +1 -0
  75. package/build/components/Pill/style.css +2 -0
  76. package/build/components/Pill/style.css.map +1 -0
  77. package/build/components/Preview/style.css +2 -0
  78. package/build/components/Preview/style.css.map +1 -0
  79. package/build/components/Progress/style.css +2 -0
  80. package/build/components/Progress/style.css.map +1 -0
  81. package/build/components/PromoBanner/style.css +2 -0
  82. package/build/components/PromoBanner/style.css.map +1 -0
  83. package/build/components/PromotionCard/style.css +2 -0
  84. package/build/components/PromotionCard/style.css.map +1 -0
  85. package/build/components/Section/style.css +2 -0
  86. package/build/components/Section/style.css.map +1 -0
  87. package/build/components/Skeleton/style.css +2 -0
  88. package/build/components/Skeleton/style.css.map +1 -0
  89. package/build/components/SkipLink/style.css +2 -0
  90. package/build/components/SkipLink/style.css.map +1 -0
  91. package/build/components/SocialButton/style.css +2 -0
  92. package/build/components/SocialButton/style.css.map +1 -0
  93. package/build/components/Stepbar/style.css +2 -0
  94. package/build/components/Stepbar/style.css.map +1 -0
  95. package/build/components/Sticker/style.css +2 -0
  96. package/build/components/Sticker/style.css.map +1 -0
  97. package/build/components/Table/style.css +2 -0
  98. package/build/components/Table/style.css.map +1 -0
  99. package/build/components/Tabs/style.css +2 -0
  100. package/build/components/Tabs/style.css.map +1 -0
  101. package/build/components/Tag/style.css +2 -0
  102. package/build/components/Tag/style.css.map +1 -0
  103. package/build/components/Testimonial/style.css +2 -0
  104. package/build/components/Testimonial/style.css.map +1 -0
  105. package/build/components/Tile/style.css +2 -0
  106. package/build/components/Tile/style.css.map +1 -0
  107. package/build/components/Tooltip/style.css +2 -0
  108. package/build/components/Tooltip/style.css.map +1 -0
  109. package/build/components/index.js +1 -23
  110. package/build/components/index.js.map +1 -1
  111. package/build/components/tsconfig.tsbuildinfo +1 -1
  112. package/build/components/types/index.d.ts +846 -802
  113. package/build/components/types/src/components/Accordion/Accordion.d.ts +2 -2
  114. package/build/components/types/src/components/Accordion/Accordion.static.d.ts +3 -0
  115. package/build/components/types/src/components/Alert/Alert.d.ts +0 -2
  116. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -2
  117. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +76 -0
  118. package/build/components/types/src/components/Bar/index.d.ts +1 -1
  119. package/build/components/types/src/components/BlockAction/BlockAction.d.ts +2 -0
  120. package/build/components/types/src/components/BlockAction/Context.d.ts +3 -1
  121. package/build/components/types/src/components/BlockAction/index.d.ts +2 -4
  122. package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +12 -12
  123. package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  124. package/build/components/types/src/components/Button/Button.d.ts +1 -1
  125. package/build/components/types/src/components/Button/index.d.ts +4 -5
  126. package/build/components/types/src/components/Card/Card.d.ts +2 -1
  127. package/build/components/types/src/components/Card/index.d.ts +2 -1
  128. package/build/components/types/src/components/Carousel/Carousel.d.ts +5 -3
  129. package/build/components/types/src/components/Carousel/Carousel.static.d.ts +74 -7
  130. package/build/components/types/src/components/Carousel/CarouselItem.d.ts +1 -1
  131. package/build/components/types/src/components/Carousel/constants.d.ts +2 -0
  132. package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +3 -2
  133. package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +4 -1
  134. package/build/components/types/src/components/CarouselHero/CarouselHeroItem.d.ts +1 -2
  135. package/build/components/types/src/components/CarouselHero/constants.d.ts +1 -2
  136. package/build/components/types/src/components/CarouselHero/index.d.ts +1 -1
  137. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +0 -1
  138. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.static.d.ts +5 -0
  139. package/build/components/types/src/components/CartTable/CartTable.d.ts +1 -1
  140. package/build/components/types/src/components/CartTable/data.d.ts +1 -1
  141. package/build/components/types/src/components/Code/Code.d.ts +1 -1
  142. package/build/components/types/src/components/Controls/Controls.d.ts +0 -1
  143. package/build/components/types/src/components/Cover/Cover.d.ts +3 -3
  144. package/build/components/types/src/components/Divider/Divider.d.ts +1 -5
  145. package/build/components/types/src/components/DocumentationSidebar/DocumentationSidebar.d.ts +1 -0
  146. package/build/components/types/src/components/DocumentationSidebar/index.d.ts +1 -1
  147. package/build/components/types/src/components/Dropdown/index.d.ts +1 -1
  148. package/build/components/types/src/components/Expander/Expander.d.ts +6 -3
  149. package/build/components/types/src/components/Expander/Expander.static.d.ts +3 -2
  150. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +14 -3
  151. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.static.d.ts +1 -2
  152. package/build/components/types/src/components/FeatureAccordion/FeatureAccordionItem.d.ts +3 -3
  153. package/build/components/types/src/components/Footer/Footer.static.d.ts +21 -0
  154. package/build/components/types/src/components/Footer/PlanObnovy.d.ts +1 -0
  155. package/build/components/types/src/components/Footer/constants.d.ts +12 -1
  156. package/build/components/types/src/components/Footer/data.d.ts +11 -0
  157. package/build/components/types/src/components/Footer/static.d.ts +21 -0
  158. package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.d.ts +3 -1
  159. package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.static.d.ts +12 -0
  160. package/build/components/types/src/components/Forms/File/File.d.ts +2 -0
  161. package/build/components/types/src/components/Forms/Group/Group.d.ts +4 -2
  162. package/build/components/types/src/components/Forms/Group/Item.d.ts +1 -1
  163. package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +2 -1
  164. package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.d.ts +2 -0
  165. package/build/components/types/src/components/Forms/Select/index.d.ts +1 -1
  166. package/build/components/types/src/components/Forms/TextInput/TextInput.d.ts +3 -0
  167. package/build/components/types/src/components/Forms/index.d.ts +1 -1
  168. package/build/components/types/src/components/Grid/Grid.d.ts +2 -2
  169. package/build/components/types/src/components/Grid/GridCol.d.ts +4 -4
  170. package/build/components/types/src/components/Hero/Hero.d.ts +0 -3
  171. package/build/components/types/src/components/Icon/IconSearch.d.ts +2 -2
  172. package/build/components/types/src/components/Icon/IconSearchWrapper.d.ts +1 -1
  173. package/build/components/types/src/components/Icon/PictogramSearch.d.ts +6 -0
  174. package/build/components/types/src/components/Icon/PictogramSearchWrapper.d.ts +1 -0
  175. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +172 -165
  176. package/build/components/types/src/components/Icon/iconUtils.d.ts +2 -0
  177. package/build/components/types/src/components/Icon/index.d.ts +1 -1
  178. package/build/components/types/src/components/IconList/Item.d.ts +1 -1
  179. package/build/components/types/src/components/Link/Link.d.ts +2 -2
  180. package/build/components/types/src/components/List/ClickableControl.d.ts +1 -1
  181. package/build/components/types/src/components/List/List.d.ts +3 -3
  182. package/build/components/types/src/components/List/ListItem.d.ts +1 -1
  183. package/build/components/types/src/components/Loader/LoaderFullscreen.d.ts +7 -0
  184. package/build/components/types/src/components/Loader/index.d.ts +1 -0
  185. package/build/components/types/src/components/Megamenu/BrandMark.d.ts +1 -0
  186. package/build/components/types/src/components/Megamenu/Logo.d.ts +1 -0
  187. package/build/components/types/src/components/Megamenu/LogoJeTu.d.ts +1 -0
  188. package/build/components/types/src/components/Megamenu/Megamenu.d.ts +9 -1
  189. package/build/components/types/src/components/Megamenu/Megamenu.static.d.ts +21 -5
  190. package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +2 -1
  191. package/build/components/types/src/components/Megamenu/MegamenuSearchContent.d.ts +10 -0
  192. package/build/components/types/src/components/Megamenu/MyOrangeMobilePanel.d.ts +6 -0
  193. package/build/components/types/src/components/Megamenu/constants.d.ts +21 -0
  194. package/build/components/types/src/components/Megamenu/data.d.ts +21 -0
  195. package/build/components/types/src/components/Megamenu/ids.d.ts +11 -0
  196. package/build/components/types/src/components/Megamenu/index.d.ts +1 -1
  197. package/build/components/types/src/components/Megamenu/static.d.ts +2 -3
  198. package/build/components/types/src/components/Modal/Modal.d.ts +2 -6
  199. package/build/components/types/src/components/Modal/Modal.static.d.ts +4 -0
  200. package/build/components/types/src/components/Modal/ModalBody.d.ts +3 -3
  201. package/build/components/types/src/components/Modal/ModalCloseButton.d.ts +1 -1
  202. package/build/components/types/src/components/Modal/ModalProductHeader.d.ts +2 -0
  203. package/build/components/types/src/components/Modal/index.d.ts +2 -3
  204. package/build/components/types/src/components/Pagination/Pagination.d.ts +0 -2
  205. package/build/components/types/src/components/Pagination/Separator.d.ts +2 -2
  206. package/build/components/types/src/components/Pagination/helpers.d.ts +1 -1
  207. package/build/components/types/src/components/Pill/Pill.d.ts +2 -3
  208. package/build/components/types/src/components/Preview/CodeExample.d.ts +1 -0
  209. package/build/components/types/src/components/Preview/Preview.d.ts +2 -2
  210. package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +13 -9
  211. package/build/components/types/src/components/Preview/getElementDisplayName.d.ts +1 -0
  212. package/build/components/types/src/components/Preview/index.d.ts +1 -1
  213. package/build/components/types/src/components/Progress/Progress.d.ts +0 -1
  214. package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +13 -6
  215. package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +3 -3
  216. package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +1 -1
  217. package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +1 -1
  218. package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +1 -1
  219. package/build/components/types/src/components/Section/Section.d.ts +4 -1
  220. package/build/components/types/src/components/SocialButton/SocialButton.d.ts +13 -0
  221. package/build/components/types/src/components/SocialButton/index.d.ts +1 -0
  222. package/build/components/types/src/components/Stepbar/Stepbar.d.ts +0 -2
  223. package/build/components/types/src/components/Sticker/Sticker.d.ts +3 -3
  224. package/build/components/types/src/components/Table/Row.d.ts +1 -2
  225. package/build/components/types/src/components/Table/Table.d.ts +3 -3
  226. package/build/components/types/src/components/Table/docsData.d.ts +2 -0
  227. package/build/components/types/src/components/Table/index.d.ts +1 -1
  228. package/build/components/types/src/components/Table/types.d.ts +1 -0
  229. package/build/components/types/src/components/Tabs/Tabs.d.ts +0 -6
  230. package/build/components/types/src/components/Tabs/Tabs.static.d.ts +12 -0
  231. package/build/components/types/src/components/Tabs/index.d.ts +2 -2
  232. package/build/components/types/src/components/Tag/Tag.d.ts +0 -2
  233. package/build/components/types/src/components/Tag/index.d.ts +1 -1
  234. package/build/components/types/src/components/Testimonial/Testimonial.d.ts +2 -2
  235. package/build/components/types/src/components/Tile/Tile.d.ts +3 -10
  236. package/build/components/types/src/components/Tooltip/Tooltip.d.ts +0 -1
  237. package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +6 -2
  238. package/build/components/types/src/components/Tooltip/index.d.ts +1 -1
  239. package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +1 -1
  240. package/build/components/types/src/components/index.d.ts +22 -20
  241. package/build/components/types/src/docs/utils/SpacePreview.d.ts +1 -2
  242. package/build/components/types/src/scripts/index.d.ts +7 -8
  243. package/build/components/types/src/scripts/modules/SameHeight.d.ts +7 -0
  244. package/build/components/types/src/scripts/modules/SpacePreview/index.d.ts +1 -1
  245. package/build/components/types/src/styles/export/color.d.ts +105 -0
  246. package/build/components/types/src/utils/formatCode.d.ts +5 -0
  247. package/build/components/types/src/utils/hooks.d.ts +1 -1
  248. package/build/components/types/src/utils/index.d.ts +2 -2
  249. package/build/fonts/HelveticaNeue-Bold.woff2 +0 -0
  250. package/build/fonts/HelveticaNeue-Light.woff2 +0 -0
  251. package/build/fonts/HelveticaNeue-Roman.woff2 +0 -0
  252. package/build/googleplay.svg +52 -0
  253. package/build/lib/base.css +3 -0
  254. package/build/lib/base.css.map +1 -0
  255. package/build/lib/components.css +1 -1
  256. package/build/lib/components.css.map +1 -1
  257. package/build/lib/footer.css +1 -1
  258. package/build/lib/footer.css.map +1 -1
  259. package/build/lib/footer.js +2 -0
  260. package/build/lib/footer.js.map +1 -0
  261. package/build/lib/megamenu.css +1 -1
  262. package/build/lib/megamenu.css.map +1 -1
  263. package/build/lib/megamenu.js +1 -1
  264. package/build/lib/megamenu.js.map +1 -1
  265. package/build/lib/scripts.js +1 -9
  266. package/build/lib/scripts.js.map +1 -1
  267. package/build/lib/style.css +1 -1
  268. package/build/lib/style.css.map +1 -1
  269. package/build/lib/tsconfig.tsbuildinfo +1 -1
  270. package/build/lib/utilities.css +2 -0
  271. package/build/lib/utilities.css.map +1 -0
  272. package/build/plan-obnovy.svg +53 -0
  273. package/build/search-index.json +426 -0
  274. package/build/sprite.svg +1 -1
  275. package/package.json +92 -62
  276. package/public/fonts/HelveticaNeue-Bold.woff2 +0 -0
  277. package/public/fonts/HelveticaNeue-Light.woff2 +0 -0
  278. package/public/fonts/HelveticaNeue-Roman.woff2 +0 -0
  279. package/src/assets/icons/ai.svg +6 -0
  280. package/src/assets/icons/discount-price.svg +4 -0
  281. package/src/assets/icons/instagram.svg +5 -1
  282. package/src/assets/icons/linkedin-2.svg +3 -1
  283. package/src/assets/icons/pause.svg +5 -1
  284. package/src/assets/icons/pictogram-deezer--dark.svg +24 -0
  285. package/src/assets/icons/pictogram-deezer.svg +24 -0
  286. package/src/assets/icons/pictogram-discount-rental--dark.svg +11 -0
  287. package/src/assets/icons/pictogram-discount-rental.svg +11 -0
  288. package/src/assets/icons/pictogram-discount-tv-package--dark.svg +7 -0
  289. package/src/assets/icons/pictogram-discount-tv-package.svg +7 -0
  290. package/src/assets/icons/pictogram-disney--dark.svg +15 -0
  291. package/src/assets/icons/pictogram-disney.svg +10 -0
  292. package/src/assets/icons/pictogram-eset--dark.svg +10 -0
  293. package/src/assets/icons/pictogram-eset.svg +10 -0
  294. package/src/assets/icons/pictogram-ewatch--dark.svg +7 -0
  295. package/src/assets/icons/pictogram-ewatch.svg +7 -0
  296. package/src/assets/icons/pictogram-exclusive-package--dark.svg +5 -0
  297. package/src/assets/icons/pictogram-exclusive-package.svg +5 -0
  298. package/src/assets/icons/pictogram-fast-data--dark.svg +6 -0
  299. package/src/assets/icons/pictogram-fast-data.svg +6 -0
  300. package/src/assets/icons/pictogram-hbo-max--dark.svg +4 -5
  301. package/src/assets/icons/pictogram-hbo-max.svg +4 -5
  302. package/src/assets/icons/pictogram-interaction--dark.svg +20 -0
  303. package/src/assets/icons/pictogram-interaction.svg +20 -0
  304. package/src/assets/icons/pictogram-internet--dark.svg +15 -0
  305. package/src/assets/icons/pictogram-internet.svg +15 -0
  306. package/src/assets/icons/pictogram-my-orange--dark.svg +6 -0
  307. package/src/assets/icons/pictogram-my-orange.svg +6 -0
  308. package/src/assets/icons/pictogram-offer-package--dark.svg +7 -0
  309. package/src/assets/icons/pictogram-offer-package.svg +7 -0
  310. package/src/assets/icons/pictogram-prima-love--dark.svg +4 -0
  311. package/src/assets/icons/pictogram-prima-love.svg +4 -0
  312. package/src/assets/icons/pictogram-shared-data--dark.svg +8 -0
  313. package/src/assets/icons/pictogram-shared-data.svg +8 -0
  314. package/src/assets/icons/pictogram-tariffs--dark.svg +9 -0
  315. package/src/assets/icons/pictogram-tariffs.svg +9 -0
  316. package/src/assets/icons/pictogram-unlimited-data--dark.svg +19 -0
  317. package/src/assets/icons/pictogram-unlimited-data.svg +19 -0
  318. package/src/assets/icons/pinterest.svg +4 -0
  319. package/src/assets/icons/play.svg +4 -1
  320. package/src/assets/icons/quote.svg +4 -0
  321. package/src/assets/icons/snapchat.svg +4 -0
  322. package/src/assets/icons/tiktok.svg +4 -0
  323. package/src/assets/icons/whatsapp.svg +4 -0
  324. package/src/assets/icons/youtube.svg +3 -1
  325. package/src/components/Accordion/Accordion.static.ts +79 -30
  326. package/src/components/Accordion/Accordion.tsx +6 -7
  327. package/src/components/Accordion/AccordionHeader.tsx +1 -11
  328. package/src/components/Accordion/AccordionItem.tsx +3 -1
  329. package/src/components/Accordion/HeadingContext.tsx +1 -1
  330. package/src/components/Accordion/styles/config.scss +3 -2
  331. package/src/components/Accordion/styles/mixins.scss +10 -9
  332. package/src/components/Accordion/styles/style.scss +2 -2
  333. package/src/components/Accordion/tests/{Accordion.static.test.js → Accordion.static.test.jsx} +23 -23
  334. package/src/components/Accordion/tests/{Accordion.unit.test.js → Accordion.unit.test.jsx} +125 -31
  335. package/src/components/Alert/Alert.tsx +3 -10
  336. package/src/components/Alert/styles/config.scss +1 -1
  337. package/src/components/Alert/styles/mixins.scss +4 -1
  338. package/src/components/Alert/tests/{Alert.conformance.test.js → Alert.conformance.test.jsx} +2 -3
  339. package/src/components/Alert/tests/{Alert.test.js → Alert.test.jsx} +2 -16
  340. package/src/components/Alert/tests/Alert.visual.test.jsx +137 -0
  341. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-custom-title-chromium-linux.png +0 -0
  342. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-danger-chromium-linux.png +0 -0
  343. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-full-width-chromium-linux.png +0 -0
  344. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-success-chromium-linux.png +0 -0
  345. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-buttons-chromium-linux.png +0 -0
  346. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-chromium-linux.png +0 -0
  347. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-description-buttons-chromium-linux.png +0 -0
  348. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-description-chromium-linux.png +0 -0
  349. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-warning-chromium-linux.png +0 -0
  350. package/src/components/AnchorNavigation/AnchorNavigation.static.ts +746 -88
  351. package/src/components/AnchorNavigation/AnchorNavigation.tsx +5 -15
  352. package/src/components/AnchorNavigation/styles/mixins.scss +124 -15
  353. package/src/components/AnchorNavigation/tests/{AnchorNavigation.conformance.test.js → AnchorNavigation.conformance.test.jsx} +1 -10
  354. package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.jsx +801 -0
  355. package/src/components/Bar/Bar.tsx +1 -1
  356. package/src/components/Bar/BarBreak.tsx +1 -1
  357. package/src/components/Bar/BarItem.tsx +1 -1
  358. package/src/components/Bar/index.ts +1 -1
  359. package/src/components/Bar/styles/config.scss +4 -5
  360. package/src/components/Bar/styles/mixins.scss +11 -11
  361. package/src/components/Bar/tests/{Bar.conformance.test.js → Bar.conformance.test.jsx} +1 -1
  362. package/src/components/BlockAction/BlockAction.tsx +10 -3
  363. package/src/components/BlockAction/BlockActionControl.tsx +2 -3
  364. package/src/components/BlockAction/BlockActionIndicator.tsx +2 -3
  365. package/src/components/BlockAction/CloneElementWithClassName.tsx +1 -1
  366. package/src/components/BlockAction/Context.tsx +5 -1
  367. package/src/components/BlockAction/index.tsx +3 -8
  368. package/src/components/BlockAction/styles/config.scss +6 -6
  369. package/src/components/BlockAction/styles/mixins.scss +5 -0
  370. package/src/components/BlockAction/styles/style.scss +11 -4
  371. package/src/components/BlockAction/tests/{BlockAction.conformance.test.js → BlockAction.conformance.test.jsx} +1 -1
  372. package/src/components/BlockAction/tests/{BlockActionControl.unit.test.js → BlockActionControl.unit.test.jsx} +3 -3
  373. package/src/components/BodyBanner/BodyBanner.tsx +54 -78
  374. package/src/components/BodyBanner/styles/mixins.scss +50 -45
  375. package/src/components/BodyBanner/styles/style.scss +4 -18
  376. package/src/components/BodyBanner/tests/BodyBanner.conformance.test.jsx +84 -0
  377. package/src/components/BodyBanner/tests/BodyBanner.unit.test.jsx +201 -0
  378. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +17 -8
  379. package/src/components/Breadcrumbs/Breadcrumbs.tsx +4 -12
  380. package/src/components/Breadcrumbs/styles/mixins.scss +39 -10
  381. package/src/components/Breadcrumbs/styles/style.scss +2 -1
  382. package/src/components/Breadcrumbs/tests/{BreadcrumbItem.unit.test.js → BreadcrumbItem.unit.test.jsx} +14 -8
  383. package/src/components/Breadcrumbs/tests/{Breadcrumbs.conformance.test.js → Breadcrumbs.conformance.test.jsx} +1 -1
  384. package/src/components/Breadcrumbs/tests/{Breadcrumbs.integration.test.js → Breadcrumbs.integration.test.jsx} +14 -37
  385. package/src/components/Breadcrumbs/tests/{Breadcrumbs.unit.test.js → Breadcrumbs.unit.test.jsx} +19 -23
  386. package/src/components/Button/Button.tsx +3 -7
  387. package/src/components/Button/IconButton.tsx +7 -3
  388. package/src/components/Button/index.tsx +1 -3
  389. package/src/components/Button/styles/config.scss +5 -5
  390. package/src/components/Button/styles/mixins.scss +7 -2
  391. package/src/components/Button/styles/style.scss +4 -0
  392. package/src/components/Button/tests/{Button.conformance.test.js → Button.conformance.test.jsx} +1 -2
  393. package/src/components/Button/tests/{Button.test.js → Button.test.jsx} +1 -12
  394. package/src/components/Button/tests/{IconButton.unit.test.js → IconButton.unit.test.jsx} +0 -1
  395. package/src/components/Buttons/styles/mixins.scss +8 -13
  396. package/src/components/Buttons/tests/{Buttons.conformance.test.js → Buttons.conformance.test.jsx} +1 -1
  397. package/src/components/Card/Card.tsx +19 -16
  398. package/src/components/Card/CardProductHeader.tsx +1 -1
  399. package/src/components/Card/CardSection.tsx +6 -2
  400. package/src/components/Card/index.ts +2 -1
  401. package/src/components/Card/styles/config.scss +2 -2
  402. package/src/components/Card/styles/mixins.scss +7 -6
  403. package/src/components/Card/styles/style.scss +4 -0
  404. package/src/components/Card/tests/{Card.conformance.test.js → Card.conformance.test.jsx} +2 -2
  405. package/src/components/Card/tests/Card.unit.test.jsx +81 -0
  406. package/src/components/Card/tests/{CardProductHeader.unit.test.js → CardProductHeader.unit.test.jsx} +1 -1
  407. package/src/components/Card/tests/{CardSection.unit.test.js → CardSection.unit.test.jsx} +36 -3
  408. package/src/components/Carousel/Carousel.static.ts +637 -24
  409. package/src/components/Carousel/Carousel.tsx +50 -35
  410. package/src/components/Carousel/CarouselItem.tsx +1 -1
  411. package/src/components/Carousel/constants.ts +2 -0
  412. package/src/components/Carousel/styles/config.scss +1 -2
  413. package/src/components/Carousel/styles/mixins.scss +65 -6
  414. package/src/components/Carousel/styles/style.scss +8 -0
  415. package/src/components/Carousel/tests/{Carousel.conformance.test.js → Carousel.conformance.test.jsx} +2 -4
  416. package/src/components/Carousel/tests/Carousel.static.test.jsx +988 -0
  417. package/src/components/Carousel/tests/{Carousel.unit.test.js → Carousel.unit.test.jsx} +117 -12
  418. package/src/components/CarouselHero/CarouselHero.static.ts +68 -37
  419. package/src/components/CarouselHero/CarouselHero.tsx +101 -39
  420. package/src/components/CarouselHero/CarouselHeroItem.tsx +13 -14
  421. package/src/components/CarouselHero/constants.ts +1 -2
  422. package/src/components/CarouselHero/index.ts +1 -1
  423. package/src/components/CarouselHero/styles/mixins.scss +19 -32
  424. package/src/components/CarouselHero/styles/style.scss +4 -8
  425. package/src/components/CarouselHero/tests/{CarouselHero.conformance.test.js → CarouselHero.conformance.test.jsx} +45 -46
  426. package/src/components/CarouselHero/tests/{CarouselHero.unit.test.js → CarouselHero.unit.test.jsx} +184 -42
  427. package/src/components/CarouselHero/tests/CarouselHero.visual.test.jsx +90 -0
  428. package/src/components/CarouselHero/tests/{CarouselHeroItem.conformance.test.js → CarouselHeroItem.conformance.test.jsx} +19 -26
  429. package/src/components/CarouselHero/tests/{CarouselHeroItem.unit.test.js → CarouselHeroItem.unit.test.jsx} +26 -93
  430. package/src/components/CarouselPromotions/CarouselPromotions.static.ts +72 -13
  431. package/src/components/CarouselPromotions/CarouselPromotions.tsx +7 -13
  432. package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +3 -3
  433. package/src/components/CarouselPromotions/styles/mixins.scss +8 -5
  434. package/src/components/CarouselPromotions/tests/{CarouselPromotions.conformance.test.js → CarouselPromotions.conformance.test.jsx} +13 -6
  435. package/src/components/CarouselPromotions/tests/{CarouselPromotions.unit.test.js → CarouselPromotions.unit.test.jsx} +3 -22
  436. package/src/components/CartTable/CartTable.tsx +3 -4
  437. package/src/components/CartTable/FooterPriceColumn.tsx +6 -4
  438. package/src/components/CartTable/Price.tsx +2 -2
  439. package/src/components/CartTable/data.ts +1 -1
  440. package/src/components/CartTable/generateFooter.tsx +1 -1
  441. package/src/components/CartTable/generateRow.tsx +6 -8
  442. package/src/components/CartTable/styles/mixins.scss +46 -49
  443. package/src/components/CartTable/tests/{CartTable.conformance.test.js → CartTable.conformance.test.jsx} +1 -1
  444. package/src/components/Code/Code.tsx +1 -1
  445. package/src/components/Code/styles/style.scss +6 -5
  446. package/src/components/Container/Container.tsx +1 -1
  447. package/src/components/Container/styles/config.scss +2 -2
  448. package/src/components/Container/styles/mixins.scss +4 -4
  449. package/src/components/Container/tests/{Container.conformance.test.js → Container.conformance.test.jsx} +2 -6
  450. package/src/components/Container/tests/{Container.unit.test.js → Container.unit.test.jsx} +5 -4
  451. package/src/components/Controls/Controls.tsx +3 -8
  452. package/src/components/Controls/tests/{Controls.test.js → Controls.test.jsx} +14 -46
  453. package/src/components/Cover/Cover.tsx +22 -20
  454. package/src/components/Cover/index.ts +1 -0
  455. package/src/components/Cover/styles/config.scss +23 -12
  456. package/src/components/Cover/styles/mixins.scss +6 -5
  457. package/src/components/Cover/tests/Cover.conformance.test.jsx +27 -0
  458. package/src/components/Cover/tests/Cover.unit.test.jsx +115 -0
  459. package/src/components/Divider/Divider.tsx +3 -17
  460. package/src/components/Divider/styles/config.scss +0 -17
  461. package/src/components/Divider/styles/mixins.scss +12 -12
  462. package/src/components/Divider/styles/style.scss +2 -16
  463. package/src/components/Divider/tests/{Divider.conformance.test.js → Divider.conformance.test.jsx} +2 -2
  464. package/src/components/Divider/tests/{Divider.unit.test.js → Divider.unit.test.jsx} +0 -17
  465. package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +231 -9
  466. package/src/components/DocumentationSidebar/index.ts +2 -2
  467. package/src/components/DocumentationSidebar/styles/style.scss +76 -3
  468. package/src/components/Dropdown/Dropdown.static.ts +3 -2
  469. package/src/components/Dropdown/Dropdown.tsx +3 -5
  470. package/src/components/Dropdown/DropdownDivider.tsx +1 -1
  471. package/src/components/Dropdown/DropdownItem.tsx +1 -1
  472. package/src/components/Dropdown/DropdownToggleButton.tsx +1 -1
  473. package/src/components/Dropdown/index.ts +1 -1
  474. package/src/components/Dropdown/styles/mixins.scss +1 -1
  475. package/src/components/Dropdown/tests/{Dropdown.conformance.test.js → Dropdown.conformance.test.jsx} +2 -2
  476. package/src/components/Dropdown/tests/{Dropdown.unit.test.js → Dropdown.unit.test.jsx} +1 -2
  477. package/src/components/Expander/Expander.static.ts +22 -28
  478. package/src/components/Expander/Expander.tsx +21 -17
  479. package/src/components/Expander/styles/style.scss +18 -3
  480. package/src/components/Expander/tests/{Expander.conformance.test.js → Expander.conformance.test.jsx} +23 -13
  481. package/src/components/Expander/tests/Expander.unit.test.jsx +196 -0
  482. package/src/components/FeatureAccordion/FeatureAccordion.static.ts +93 -48
  483. package/src/components/FeatureAccordion/FeatureAccordion.tsx +83 -60
  484. package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +21 -8
  485. package/src/components/FeatureAccordion/styles/mixins.scss +25 -15
  486. package/src/components/FeatureAccordion/styles/style.scss +8 -6
  487. package/src/components/FeatureAccordion/tests/{FeatureAccordion.conformance.test.js → FeatureAccordion.conformance.test.jsx} +3 -1
  488. package/src/components/FeatureAccordion/tests/{FeatureAccordion.unit.test.js → FeatureAccordion.unit.test.jsx} +2 -8
  489. package/src/components/Footer/Footer.static.ts +130 -0
  490. package/src/components/Footer/Footer.tsx +157 -55
  491. package/src/components/Footer/PlanObnovy.tsx +211 -0
  492. package/src/components/Footer/constants.ts +12 -1
  493. package/src/components/Footer/data.ts +40 -0
  494. package/src/components/Footer/static.ts +59 -0
  495. package/src/components/Footer/styles/mixins.scss +133 -18
  496. package/src/components/Footer/styles/style.scss +67 -2
  497. package/src/components/Footer/tests/{Footer.conformance.test.js → Footer.conformance.test.jsx} +5 -9
  498. package/src/components/Footer/tests/{Footer.unit.test.js → Footer.unit.test.jsx} +7 -7
  499. package/src/components/Forms/Autocomplete/Autocomplete.static.ts +215 -2
  500. package/src/components/Forms/Autocomplete/Autocomplete.tsx +8 -3
  501. package/src/components/Forms/Autocomplete/styles/config.scss +3 -3
  502. package/src/components/Forms/Autocomplete/styles/style.scss +95 -0
  503. package/src/components/Forms/Autocomplete/tests/Autocomplete.static.test.ts +187 -0
  504. package/src/components/Forms/Checkbox/Checkbox.tsx +1 -1
  505. package/src/components/Forms/Checkbox/styles/config.scss +6 -3
  506. package/src/components/Forms/Checkbox/styles/mixins.scss +2 -2
  507. package/src/components/Forms/Checkbox/styles/style.scss +13 -6
  508. package/src/components/Forms/DatePicker/DatePicker.tsx +1 -2
  509. package/src/components/Forms/DatePicker/styles/style.scss +2 -3
  510. package/src/components/Forms/Field/Control.tsx +52 -49
  511. package/src/components/Forms/Field/Description.tsx +1 -1
  512. package/src/components/Forms/Field/Field.tsx +4 -4
  513. package/src/components/Forms/Field/Label.tsx +1 -1
  514. package/src/components/Forms/Field/Messages.tsx +2 -2
  515. package/src/components/Forms/Field/styles/config.scss +8 -8
  516. package/src/components/Forms/Field/styles/mixins.scss +13 -10
  517. package/src/components/Forms/Field/styles/style.scss +4 -0
  518. package/src/components/Forms/Field/tests/{Autocomplete.Field.conformance.test.js → Autocomplete.Field.conformance.test.jsx} +2 -2
  519. package/src/components/Forms/Field/tests/{Checkbox.Field.conformance.test.js → Checkbox.Field.conformance.test.jsx} +2 -1
  520. package/src/components/Forms/Field/tests/{File.Field.conformance.test.js → File.Field.conformance.test.jsx} +3 -2
  521. package/src/components/Forms/Field/tests/Group.Field.conformance.test.jsx +72 -0
  522. package/src/components/Forms/Field/tests/{Radio.Field.conformance.test.js → Radio.Field.conformance.test.jsx} +2 -1
  523. package/src/components/Forms/Field/tests/{Rangeslider.Field.test.js → Rangeslider.Field.test.jsx} +2 -1
  524. package/src/components/Forms/Field/tests/{Select.Field.conformance.test.js → Select.Field.conformance.test.jsx} +2 -1
  525. package/src/components/Forms/Field/tests/{Text.Field.conformance.test.js → Text.Field.conformance.test.jsx} +2 -1
  526. package/src/components/Forms/Field/tests/{Textarea.Field.conformance.test.js → Textarea.Field.conformance.test.jsx} +2 -1
  527. package/src/components/Forms/Field/tests/{Tooltip.unit.test.js → Tooltip.unit.test.jsx} +1 -2
  528. package/src/components/Forms/Fieldset/Fieldset.tsx +1 -1
  529. package/src/components/Forms/Fieldset/styles/mixins.scss +3 -3
  530. package/src/components/Forms/File/File.tsx +5 -3
  531. package/src/components/Forms/File/styles/config.scss +5 -5
  532. package/src/components/Forms/File/styles/mixins.scss +1 -1
  533. package/src/components/Forms/Group/Group.tsx +23 -12
  534. package/src/components/Forms/Group/Item.tsx +1 -1
  535. package/src/components/Forms/Group/styles/config.scss +1 -1
  536. package/src/components/Forms/Group/styles/mixins.scss +31 -0
  537. package/src/components/Forms/Group/tests/{Group.unit.test.js → Group.unit.test.jsx} +9 -0
  538. package/src/components/Forms/Hint/Hint.tsx +1 -1
  539. package/src/components/Forms/Hint/styles/config.scss +1 -1
  540. package/src/components/Forms/Hint/styles/mixins.scss +2 -2
  541. package/src/components/Forms/InputStepper/InputStepper.tsx +6 -5
  542. package/src/components/Forms/InputStepper/styles/style.scss +56 -110
  543. package/src/components/Forms/InputStepper/tests/{InputStepper.unit.test.js → InputStepper.unit.test.jsx} +8 -0
  544. package/src/components/Forms/Label/Label.tsx +1 -1
  545. package/src/components/Forms/Label/styles/config.scss +3 -0
  546. package/src/components/Forms/Label/styles/mixins.scss +2 -2
  547. package/src/components/Forms/Message/Message.tsx +9 -5
  548. package/src/components/Forms/Message/styles/config.scss +2 -1
  549. package/src/components/Forms/Radio/Radio.tsx +1 -1
  550. package/src/components/Forms/Radio/styles/config.scss +6 -3
  551. package/src/components/Forms/Radio/styles/mixins.scss +2 -2
  552. package/src/components/Forms/RangeSlider/RangeSlider.tsx +4 -1
  553. package/src/components/Forms/RangeSlider/styles/mixins.scss +1 -1
  554. package/src/components/Forms/Select/Select.tsx +1 -1
  555. package/src/components/Forms/Select/styles/mixins.scss +6 -6
  556. package/src/components/Forms/TextArea/TextArea.tsx +1 -1
  557. package/src/components/Forms/TextArea/styles/config.scss +1 -0
  558. package/src/components/Forms/TextArea/styles/mixins.scss +17 -10
  559. package/src/components/Forms/TextInput/TextInput.tsx +27 -2
  560. package/src/components/Forms/TextInput/styles/config.scss +4 -2
  561. package/src/components/Forms/TextInput/styles/mixins.scss +17 -11
  562. package/src/components/Forms/TextInput/styles/style.scss +67 -0
  563. package/src/components/Forms/index.ts +1 -1
  564. package/src/components/Forms/styles/config.scss +13 -10
  565. package/src/components/Gauge/Gauge.tsx +1 -1
  566. package/src/components/Gauge/GaugeMaker.tsx +5 -5
  567. package/src/components/Gauge/styles/style.scss +1 -1
  568. package/src/components/Gauge/tests/{Gauge.unit.test.js → Gauge.unit.test.jsx} +0 -1
  569. package/src/components/Grid/Grid.tsx +13 -4
  570. package/src/components/Grid/GridCol.tsx +21 -10
  571. package/src/components/Grid/styles/config.scss +7 -3
  572. package/src/components/Grid/styles/mixins.scss +63 -19
  573. package/src/components/Grid/styles/style.scss +15 -5
  574. package/src/components/Grid/tests/{Grid.unit.test.js → Grid.unit.test.jsx} +46 -6
  575. package/src/components/Grid/tests/{GridCol.unit.test.js → GridCol.unit.test.jsx} +1 -2
  576. package/src/components/Hero/Hero.tsx +3 -17
  577. package/src/components/Hero/styles/config.scss +0 -1
  578. package/src/components/Hero/styles/style.scss +0 -14
  579. package/src/components/Hero/tests/{Hero.conformance.test.js → Hero.conformance.test.jsx} +1 -2
  580. package/src/components/Hero/tests/Hero.unit.test.jsx +261 -0
  581. package/src/components/Hero/tests/data.js +26 -26
  582. package/src/components/Icon/Icon.tsx +1 -1
  583. package/src/components/Icon/IconSearch.jsx +15 -46
  584. package/src/components/Icon/PictogramSearch.jsx +123 -0
  585. package/src/components/Icon/PictogramSearchWrapper.tsx +31 -0
  586. package/src/components/Icon/SpritePathContext.tsx +1 -1
  587. package/src/components/Icon/iconSearchTags.ts +181 -173
  588. package/src/components/Icon/iconUtils.js +63 -0
  589. package/src/components/Icon/index.ts +1 -1
  590. package/src/components/Icon/styles/export/size.scss +2 -2
  591. package/src/components/Icon/styles/mixins.scss +3 -3
  592. package/src/components/Icon/styles/style.scss +43 -1
  593. package/src/components/Icon/tests/{Icon.conformance.test.js → Icon.conformance.test.jsx} +1 -2
  594. package/src/components/Icon/tests/{Icon.unit.test.js → Icon.unit.test.jsx} +2 -4
  595. package/src/components/Icon/tests/{Pictogram.unit.test.js → Pictogram.unit.test.jsx} +40 -21
  596. package/src/components/IconList/IconList.tsx +1 -1
  597. package/src/components/IconList/Item.tsx +15 -11
  598. package/src/components/IconList/styles/config.scss +2 -2
  599. package/src/components/IconList/styles/mixins.scss +5 -5
  600. package/src/components/IconList/styles/style.scss +1 -1
  601. package/src/components/IconList/tests/{IconList.conformance.test.js → IconList.conformance.test.jsx} +2 -3
  602. package/src/components/IconList/tests/IconList.unit.test.jsx +82 -0
  603. package/src/components/IconList/tests/{Item.unit.test.js → Item.unit.test.jsx} +1 -1
  604. package/src/components/Image/Image.tsx +1 -1
  605. package/src/components/Image/styles/mixins.scss +2 -2
  606. package/src/components/Image/tests/{Image.conformance.test.js → Image.conformance.test.jsx} +1 -1
  607. package/src/components/Image/tests/{Image.unit.test.js → Image.unit.test.jsx} +12 -4
  608. package/src/components/Link/Link.tsx +5 -6
  609. package/src/components/Link/styles/mixins.scss +8 -4
  610. package/src/components/Link/tests/{Link.conformance.test.js → Link.conformance.test.jsx} +3 -9
  611. package/src/components/Link/tests/{Link.unit.test.js → Link.unit.test.jsx} +6 -26
  612. package/src/components/List/ClickableControl.tsx +12 -12
  613. package/src/components/List/List.tsx +13 -13
  614. package/src/components/List/ListItem.tsx +11 -11
  615. package/src/components/List/styles/config.scss +12 -12
  616. package/src/components/List/styles/mixins.scss +16 -9
  617. package/src/components/List/tests/{ClickableControl.unit.test.js → ClickableControl.unit.test.jsx} +0 -1
  618. package/src/components/List/tests/{List.conformance.test.js → List.conformance.test.jsx} +16 -17
  619. package/src/components/List/tests/ListItem.unit.test.jsx +103 -0
  620. package/src/components/Loader/Loader.tsx +3 -11
  621. package/src/components/Loader/LoaderFullscreen.tsx +32 -0
  622. package/src/components/Loader/index.ts +1 -0
  623. package/src/components/Loader/styles/config.scss +5 -5
  624. package/src/components/Loader/styles/mixins.scss +25 -1
  625. package/src/components/Loader/styles/style.scss +13 -4
  626. package/src/components/Loader/tests/{Loader.conformance.test.js → Loader.conformance.test.jsx} +1 -1
  627. package/src/components/Loader/tests/LoaderFullscreen.conformance.test.jsx +21 -0
  628. package/src/components/Loader/tests/LoaderFullscreen.unit.test.jsx +41 -0
  629. package/src/components/Loader/tests/test.scss +1 -1
  630. package/src/components/Megamenu/BrandMark.tsx +15 -0
  631. package/src/components/Megamenu/Logo.tsx +13 -0
  632. package/src/components/Megamenu/LogoJeTu.tsx +60 -0
  633. package/src/components/Megamenu/MegaMenuIcon.tsx +1 -1
  634. package/src/components/Megamenu/Megamenu.static.ts +294 -98
  635. package/src/components/Megamenu/Megamenu.tsx +408 -594
  636. package/src/components/Megamenu/MegamenuBlog.tsx +211 -95
  637. package/src/components/Megamenu/MegamenuSearchContent.tsx +82 -0
  638. package/src/components/Megamenu/MyOrangeMobilePanel.tsx +126 -0
  639. package/src/components/Megamenu/constants.ts +21 -0
  640. package/src/components/Megamenu/data.ts +231 -0
  641. package/src/components/Megamenu/ids.ts +35 -0
  642. package/src/components/Megamenu/index.ts +1 -1
  643. package/src/components/Megamenu/static.ts +7 -13
  644. package/src/components/Megamenu/styles/mixins.scss +430 -65
  645. package/src/components/Megamenu/styles/style.scss +74 -0
  646. package/src/components/Megamenu/tests/Megamenu.unit.test.jsx +41 -0
  647. package/src/components/Modal/Modal.static.ts +77 -56
  648. package/src/components/Modal/Modal.tsx +38 -29
  649. package/src/components/Modal/ModalBody.tsx +27 -15
  650. package/src/components/Modal/ModalCloseButton.tsx +1 -1
  651. package/src/components/Modal/ModalProductFooter.tsx +1 -1
  652. package/src/components/Modal/ModalProductHeader.tsx +7 -3
  653. package/src/components/Modal/index.ts +2 -3
  654. package/src/components/Modal/styles/config.scss +4 -4
  655. package/src/components/Modal/styles/mixins.scss +22 -57
  656. package/src/components/Modal/styles/style.scss +1 -16
  657. package/src/components/Modal/tests/{Modal.conformance.test.js → Modal.conformance.test.jsx} +3 -4
  658. package/src/components/Modal/tests/{Modal.unit.test.js → Modal.unit.test.jsx} +0 -60
  659. package/src/components/Modal/tests/{ModalBody.unit.test.js → ModalBody.unit.test.jsx} +21 -12
  660. package/src/components/Modal/tests/{ModalProductHeader.unit.test.js → ModalProductHeader.unit.test.jsx} +12 -1
  661. package/src/components/Modal/tests/{ModalTitle.unit.test.js → ModalTitle.unit.test.jsx} +0 -1
  662. package/src/components/Pagination/Pagination.tsx +3 -14
  663. package/src/components/Pagination/PaginationItem.tsx +1 -1
  664. package/src/components/Pagination/Separator.tsx +1 -1
  665. package/src/components/Pagination/helpers.ts +6 -1
  666. package/src/components/Pagination/styles/mixins.scss +9 -7
  667. package/src/components/Pagination/styles/style.scss +0 -4
  668. package/src/components/Pagination/tests/Item.unit.test.jsx +95 -0
  669. package/src/components/Pagination/tests/{Pagination.conformance.test.js → Pagination.conformance.test.jsx} +7 -8
  670. package/src/components/Pagination/tests/Pagination.unit.test.jsx +107 -0
  671. package/src/components/Pagination/tests/Separator.unit.test.jsx +24 -0
  672. package/src/components/Pill/Pill.tsx +14 -7
  673. package/src/components/Pill/styles/config.scss +2 -17
  674. package/src/components/Pill/styles/style.scss +18 -6
  675. package/src/components/Pill/tests/{Pill.conformance.test.js → Pill.conformance.test.jsx} +9 -7
  676. package/src/components/Pill/tests/Pill.unit.test.jsx +148 -0
  677. package/src/components/Preview/CodeExample.tsx +72 -34
  678. package/src/components/Preview/Preview.tsx +28 -14
  679. package/src/components/Preview/PreviewGenerator.tsx +396 -65
  680. package/src/components/Preview/PreviewTitleBar.tsx +1 -1
  681. package/src/components/Preview/getElementDisplayName.ts +25 -0
  682. package/src/components/Preview/index.tsx +1 -1
  683. package/src/components/Preview/styles/style.scss +51 -1
  684. package/src/components/Progress/Progress.tsx +2 -14
  685. package/src/components/Progress/index.ts +1 -1
  686. package/src/components/Progress/styles/config.scss +4 -4
  687. package/src/components/Progress/styles/mixins.scss +9 -7
  688. package/src/components/Progress/tests/{Progress.conformance.test.js → Progress.conformance.test.jsx} +6 -7
  689. package/src/components/Progress/tests/Progress.unit.test.jsx +111 -0
  690. package/src/components/PromoBanner/PromoBanner.tsx +80 -40
  691. package/src/components/PromoBanner/styles/mixins.scss +62 -16
  692. package/src/components/PromoBanner/styles/style.scss +47 -6
  693. package/src/components/PromoBanner/tests/PromoBanner.conformance.test.jsx +784 -0
  694. package/src/components/PromoBanner/tests/PromoBanner.unit.test.jsx +596 -0
  695. package/src/components/PromotionCard/PromotionCard.tsx +12 -13
  696. package/src/components/PromotionCard/PromotionCardContent.tsx +8 -8
  697. package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +7 -9
  698. package/src/components/PromotionCard/PromotionCardSection.tsx +1 -1
  699. package/src/components/PromotionCard/PromotionCardTitle.tsx +11 -11
  700. package/src/components/PromotionCard/constants.ts +2 -2
  701. package/src/components/PromotionCard/styles/config.scss +2 -4
  702. package/src/components/PromotionCard/styles/mixins.scss +4 -2
  703. package/src/components/PromotionCard/tests/PromotionCard.conformance.test.jsx +565 -0
  704. package/src/components/PromotionCard/tests/PromotionCard.unit.test.jsx +437 -0
  705. package/src/components/Section/Section.tsx +21 -11
  706. package/src/components/Section/styles/mixins.scss +38 -13
  707. package/src/components/Section/styles/style.scss +1 -0
  708. package/src/components/Section/tests/{Section.conformance.test.js → Section.conformance.test.jsx} +27 -17
  709. package/src/components/Section/tests/{Section.unit.test.js → Section.unit.test.jsx} +54 -34
  710. package/src/components/Skeleton/Skeleton.tsx +1 -1
  711. package/src/components/Skeleton/styles/mixins.scss +3 -3
  712. package/src/components/Skeleton/tests/{Skeleton.conformance.test.js → Skeleton.conformance.test.jsx} +1 -1
  713. package/src/components/SkipLink/SkipLink.tsx +1 -1
  714. package/src/components/SkipLink/tests/{SkipLink.unit.test.js → SkipLink.unit.test.jsx} +1 -5
  715. package/src/components/SocialButton/SocialButton.tsx +67 -0
  716. package/src/components/SocialButton/index.ts +1 -0
  717. package/src/components/SocialButton/styles/config.scss +172 -0
  718. package/src/components/SocialButton/styles/mixins.scss +42 -0
  719. package/src/components/SocialButton/styles/style.scss +16 -0
  720. package/src/components/SocialButton/tests/SocialButton.unit.test.jsx +162 -0
  721. package/src/components/Stepbar/Stepbar.tsx +1 -6
  722. package/src/components/Stepbar/styles/config.scss +34 -17
  723. package/src/components/Stepbar/styles/mixins.scss +6 -4
  724. package/src/components/Stepbar/styles/style.scss +4 -2
  725. package/src/components/Stepbar/tests/{Stepbar.conformance.test.js → Stepbar.conformance.test.jsx} +1 -1
  726. package/src/components/Sticker/Sticker.tsx +14 -8
  727. package/src/components/Sticker/index.ts +1 -0
  728. package/src/components/Sticker/styles/mixins.scss +2 -2
  729. package/src/components/Sticker/tests/Sticker.conformance.test.jsx +16 -0
  730. package/src/components/Sticker/tests/Sticker.unit.test.jsx +39 -0
  731. package/src/components/Table/Header.tsx +1 -2
  732. package/src/components/Table/Row.tsx +10 -5
  733. package/src/components/Table/Rows.tsx +1 -2
  734. package/src/components/Table/Table.tsx +15 -11
  735. package/src/components/Table/TableContext.ts +1 -0
  736. package/src/components/Table/docsData.ts +25 -1
  737. package/src/components/Table/index.ts +1 -1
  738. package/src/components/Table/styles/mixins.scss +51 -11
  739. package/src/components/Table/styles/style.scss +6 -4
  740. package/src/components/Table/tests/{Footer.unit.test.js → Footer.unit.test.jsx} +1 -2
  741. package/src/components/Table/tests/{Header.unit.test.js → Header.unit.test.jsx} +1 -2
  742. package/src/components/Table/tests/{Row.unit.test.js → Row.unit.test.jsx} +1 -2
  743. package/src/components/Table/tests/{Rows.unit.test.js → Rows.unit.test.jsx} +1 -2
  744. package/src/components/Table/tests/{Table.conformance.test.js → Table.conformance.test.jsx} +11 -7
  745. package/src/components/Table/tests/{Table.unit.test.js → Table.unit.test.jsx} +1 -32
  746. package/src/components/Table/types.ts +1 -0
  747. package/src/components/Tabs/Tabs.static.ts +157 -30
  748. package/src/components/Tabs/Tabs.tsx +64 -74
  749. package/src/components/Tabs/index.ts +2 -2
  750. package/src/components/Tabs/styles/config.scss +18 -25
  751. package/src/components/Tabs/styles/mixins.scss +94 -29
  752. package/src/components/Tabs/styles/style.scss +4 -15
  753. package/src/components/Tabs/tests/{Tabs.unit.test.js → Tabs.unit.test.jsx} +112 -10
  754. package/src/components/Tag/Tag.tsx +1 -5
  755. package/src/components/Tag/TagButton.tsx +1 -1
  756. package/src/components/Tag/index.ts +1 -1
  757. package/src/components/Tag/styles/config.scss +31 -31
  758. package/src/components/Tag/styles/mixins.scss +3 -2
  759. package/src/components/Tag/styles/style.scss +55 -0
  760. package/src/components/Tag/tests/{Tag.conformance.test.js → Tag.conformance.test.jsx} +2 -3
  761. package/src/components/Tag/tests/{Tag.unit.test.js → Tag.unit.test.jsx} +5 -7
  762. package/src/components/Tag/tests/{TagButton.conformance.test.js → TagButton.conformance.test.jsx} +1 -1
  763. package/src/components/Tag/tests/{TagButton.unit.test.js → TagButton.unit.test.jsx} +4 -3
  764. package/src/components/Testimonial/Testimonial.tsx +15 -15
  765. package/src/components/Testimonial/styles/config.scss +25 -22
  766. package/src/components/Testimonial/styles/mixins.scss +36 -32
  767. package/src/components/Testimonial/tests/Testimonial.conformance.test.jsx +16 -0
  768. package/src/components/Testimonial/tests/Testimonial.unit.test.jsx +43 -0
  769. package/src/components/Tile/Tile.tsx +19 -36
  770. package/src/components/Tile/styles/mixins.scss +57 -44
  771. package/src/components/Tile/styles/style.scss +5 -33
  772. package/src/components/Tile/tests/{Tile.conformance.test.js → Tile.conformance.test.jsx} +1 -1
  773. package/src/components/Tile/tests/Tile.unit.test.jsx +64 -0
  774. package/src/components/Tooltip/InfoTooltip.tsx +2 -6
  775. package/src/components/Tooltip/Tooltip.static.ts +100 -66
  776. package/src/components/Tooltip/Tooltip.tsx +3 -13
  777. package/src/components/Tooltip/index.ts +1 -1
  778. package/src/components/Tooltip/styles/mixins.scss +14 -13
  779. package/src/components/Tooltip/tests/{Tooltip.conformance.test.js → Tooltip.conformance.test.jsx} +6 -2
  780. package/src/components/Tooltip/tests/{Tooltip.unit.test.js → Tooltip.unit.test.jsx} +41 -57
  781. package/src/components/index.ts +48 -37
  782. package/src/styles/base/globals-forms.scss +8 -0
  783. package/src/styles/base/globals.scss +68 -30
  784. package/src/styles/base/styleguide.scss +23 -18
  785. package/src/styles/export/base.js +2 -2
  786. package/src/styles/export/breakpoint.scss +1 -1
  787. package/src/styles/export/breakpoint.ts +7 -7
  788. package/src/styles/export/color.js +102 -20
  789. package/src/styles/export/color.scss +10 -20
  790. package/src/styles/export/space.scss +1 -1
  791. package/src/styles/shame.scss +16 -3
  792. package/src/styles/tokens/base.scss +1 -1
  793. package/src/styles/tokens/breakpoint.scss +64 -49
  794. package/src/styles/tokens/color-vars.scss +37 -0
  795. package/src/styles/tokens/color.scss +14 -14
  796. package/src/styles/tokens/space.scss +9 -9
  797. package/src/styles/tokens/tag-colors.scss +20 -0
  798. package/src/styles/tools/convert.scss +8 -0
  799. package/src/styles/tools/generate.scss +6 -6
  800. package/src/styles/tools/layout.scss +3 -3
  801. package/src/styles/tools/map.scss +2 -2
  802. package/src/styles/tools/text.scss +1 -1
  803. package/src/styles/typography/config.scss +102 -30
  804. package/src/styles/typography/mixins.scss +29 -17
  805. package/src/styles/typography/style.scss +19 -3
  806. package/src/styles/utilities/border.scss +1 -1
  807. package/src/styles/utilities/color.scss +45 -128
  808. package/src/styles/utilities/horizontal-scroll.scss +34 -12
  809. package/src/styles/utilities/index.scss +7 -6
  810. package/src/styles/utilities/layout.scss +18 -0
  811. package/src/styles/utilities/ordering.scss +44 -0
  812. package/src/styles/utilities/text.scss +43 -2
  813. package/src/styles/utilities/visibility.scss +2 -4
  814. package/build/components/index.css +0 -2
  815. package/build/components/index.css.map +0 -1
  816. package/build/components/types/src/components/Hero/HeroPlayground.d.ts +0 -2
  817. package/build/components/types/src/components/Modal/ModalProductBody.d.ts +0 -10
  818. package/build/lib/after-components.css +0 -2
  819. package/build/lib/after-components.css.map +0 -1
  820. package/build/lib/before-components.css +0 -3
  821. package/build/lib/before-components.css.map +0 -1
  822. package/build/lib/scripts.css +0 -2
  823. package/build/lib/scripts.css.map +0 -1
  824. package/src/components/Accordion/Accordion.mdx +0 -240
  825. package/src/components/Alert/Alert.mdx +0 -141
  826. package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.js +0 -163
  827. package/src/components/Bar/Bar.mdx +0 -203
  828. package/src/components/BlockAction/BlockAction.mdx +0 -244
  829. package/src/components/BodyBanner/BodyBanner.mdx +0 -268
  830. package/src/components/Breadcrumbs/Breadcrumbs.mdx +0 -84
  831. package/src/components/Button/Button.mdx +0 -273
  832. package/src/components/Buttons/Buttons.mdx +0 -39
  833. package/src/components/Card/Card.mdx +0 -334
  834. package/src/components/Card/tests/Card.unit.test.js +0 -42
  835. package/src/components/Carousel/Carousel.mdx +0 -159
  836. package/src/components/CarouselPromotions/CarouselPromotions.mdx +0 -246
  837. package/src/components/CartTable/CartTable.mdx +0 -129
  838. package/src/components/Container/Container.mdx +0 -73
  839. package/src/components/Controls/Controls.mdx +0 -469
  840. package/src/components/Cover/Cover.mdx +0 -87
  841. package/src/components/Cover/tests/Cover.conformance.test.js +0 -28
  842. package/src/components/Cover/tests/Cover.unit.test.js +0 -116
  843. package/src/components/Divider/Divider.mdx +0 -65
  844. package/src/components/Dropdown/Dropdown.mdx +0 -260
  845. package/src/components/Expander/Expander.mdx +0 -153
  846. package/src/components/Expander/tests/Expander.unit.test.js +0 -124
  847. package/src/components/FeatureAccordion/FeatureAccordion.mdx +0 -33
  848. package/src/components/Forms/Autocomplete/Autocomplete.mdx +0 -198
  849. package/src/components/Forms/Checkbox/Checkbox.mdx +0 -139
  850. package/src/components/Forms/DatePicker/DatePicker.mdx +0 -149
  851. package/src/components/Forms/Field/Field.mdx +0 -383
  852. package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +0 -47
  853. package/src/components/Forms/Fieldset/Fieldset.mdx +0 -178
  854. package/src/components/Forms/File/File.mdx +0 -88
  855. package/src/components/Forms/FormTooltip.mdx +0 -51
  856. package/src/components/Forms/Forms.mdx +0 -48
  857. package/src/components/Forms/Group/Group.mdx +0 -146
  858. package/src/components/Forms/Hint/Hint.mdx +0 -40
  859. package/src/components/Forms/InputStepper/InputStepper.mdx +0 -147
  860. package/src/components/Forms/Label/Label.mdx +0 -95
  861. package/src/components/Forms/Message/Message.mdx +0 -40
  862. package/src/components/Forms/Radio/Radio.mdx +0 -98
  863. package/src/components/Forms/RangeSlider/RangeSlider.mdx +0 -304
  864. package/src/components/Forms/Select/Select.mdx +0 -106
  865. package/src/components/Forms/TextArea/TextArea.mdx +0 -109
  866. package/src/components/Forms/TextInput/TextInput.mdx +0 -153
  867. package/src/components/Gauge/Gauge.mdx +0 -35
  868. package/src/components/Grid/Grid.mdx +0 -320
  869. package/src/components/Hero/Hero.mdx +0 -168
  870. package/src/components/Hero/HeroPlayground.tsx +0 -369
  871. package/src/components/Hero/tests/Hero.unit.test.js +0 -272
  872. package/src/components/Icon/Icon.mdx +0 -172
  873. package/src/components/IconList/IconList.mdx +0 -53
  874. package/src/components/IconList/tests/IconList.unit.test.js +0 -79
  875. package/src/components/Image/Image.mdx +0 -175
  876. package/src/components/Link/Link.mdx +0 -238
  877. package/src/components/List/List.mdx +0 -216
  878. package/src/components/List/tests/ListItem.unit.test.js +0 -104
  879. package/src/components/Loader/Loader.mdx +0 -148
  880. package/src/components/Modal/Modal.mdx +0 -565
  881. package/src/components/Modal/ModalProductBody.tsx +0 -52
  882. package/src/components/Pagination/Pagination.mdx +0 -45
  883. package/src/components/Pagination/tests/Item.unit.test.js +0 -96
  884. package/src/components/Pagination/tests/Pagination.unit.test.js +0 -108
  885. package/src/components/Pagination/tests/Separator.unit.test.js +0 -25
  886. package/src/components/Pagination/tests/utils.js +0 -12
  887. package/src/components/Pill/Pill.mdx +0 -41
  888. package/src/components/Pill/tests/Pill.unit.test.js +0 -108
  889. package/src/components/Progress/Progress.mdx +0 -119
  890. package/src/components/Progress/tests/Progress.unit.test.js +0 -108
  891. package/src/components/PromotionCard/PromotionCard.mdx +0 -191
  892. package/src/components/Section/Section.mdx +0 -397
  893. package/src/components/Skeleton/Skeleton.mdx +0 -90
  894. package/src/components/SkipLink/SkipLink.mdx +0 -23
  895. package/src/components/Stepbar/Stepbar.mdx +0 -137
  896. package/src/components/Sticker/Sticker.mdx +0 -50
  897. package/src/components/Sticker/tests/Sticker.conformance.test.js +0 -17
  898. package/src/components/Sticker/tests/Sticker.unit.test.js +0 -42
  899. package/src/components/Table/Table.mdx +0 -199
  900. package/src/components/Tabs/Tabs.mdx +0 -373
  901. package/src/components/Tag/Tag.mdx +0 -52
  902. package/src/components/Testimonial/Testimonial.mdx +0 -41
  903. package/src/components/Testimonial/tests/Testimonial.conformance.test.js +0 -17
  904. package/src/components/Testimonial/tests/Testimonial.unit.test.js +0 -44
  905. package/src/components/Tile/CHANGELOG.md +0 -14
  906. package/src/components/Tile/Tile.mdx +0 -163
  907. package/src/components/Tile/styles/config.scss +0 -18
  908. package/src/components/Tile/tests/Tile.unit.test.js +0 -126
  909. package/src/components/Tooltip/Tooltip.mdx +0 -227
  910. package/src/styles/after-components.scss +0 -2
  911. package/src/styles/before-components.scss +0 -18
  912. /package/build/lib/{after-components.js → base.js} +0 -0
  913. /package/build/lib/{before-components.js → utilities.js} +0 -0
  914. /package/src/components/Bar/tests/{Bar.unit.test.js → Bar.unit.test.jsx} +0 -0
  915. /package/src/components/Bar/tests/{BarBreak.unit.test.js → BarBreak.unit.test.jsx} +0 -0
  916. /package/src/components/Bar/tests/{BarItem.unit.test.js → BarItem.unit.test.jsx} +0 -0
  917. /package/src/components/BlockAction/tests/{BlockAction.unit.test.js → BlockAction.unit.test.jsx} +0 -0
  918. /package/src/components/BlockAction/tests/{BlockActionIndicator.unit.test.js → BlockActionIndicator.unit.test.jsx} +0 -0
  919. /package/src/components/BlockAction/tests/{CloneElementWithClassName.unit.test.js → CloneElementWithClassName.unit.test.jsx} +0 -0
  920. /package/src/components/Buttons/tests/{Buttons.unit.test.js → Buttons.unit.test.jsx} +0 -0
  921. /package/src/components/Carousel/tests/{CarouselItem.unit.test.js → CarouselItem.unit.test.jsx} +0 -0
  922. /package/src/components/CarouselPromotions/tests/{CarouselPromotionsItem.unit.test.js → CarouselPromotionsItem.unit.test.jsx} +0 -0
  923. /package/src/components/Forms/Checkbox/tests/{Checkbox.unit.test.js → Checkbox.unit.test.jsx} +0 -0
  924. /package/src/components/Forms/DatePicker/tests/{DatePicker.unit.test.js → DatePicker.unit.test.jsx} +0 -0
  925. /package/src/components/Forms/Field/tests/{Field.unit.test.js → Field.unit.test.jsx} +0 -0
  926. /package/src/components/Forms/Field/tests/{Label.unit.test.js → Label.unit.test.jsx} +0 -0
  927. /package/src/components/Forms/Field/tests/{Messages.unit.test.js → Messages.unit.test.jsx} +0 -0
  928. /package/src/components/Forms/Fieldset/tests/{Fieldset.unit.test.js → Fieldset.unit.test.jsx} +0 -0
  929. /package/src/components/Forms/Group/tests/{Item.unit.test.js → Item.unit.test.jsx} +0 -0
  930. /package/src/components/Forms/Hint/tests/{Hint.unit.test.js → Hint.unit.test.jsx} +0 -0
  931. /package/src/components/Forms/Label/tests/{Label.unit.test.js → Label.unit.test.jsx} +0 -0
  932. /package/src/components/Forms/Message/tests/{Message.unit.test.js → Message.unit.test.jsx} +0 -0
  933. /package/src/components/Forms/Radio/tests/{Radio.unit.test.js → Radio.unit.test.jsx} +0 -0
  934. /package/src/components/Forms/Select/tests/{Select.unit.test.js → Select.unit.test.jsx} +0 -0
  935. /package/src/components/Forms/TextArea/tests/{TextArea.unit.test.js → TextArea.unit.test.jsx} +0 -0
  936. /package/src/components/Forms/TextInput/tests/{TextInput.unit.test.js → TextInput.unit.test.jsx} +0 -0
  937. /package/src/components/Gauge/tests/{Gauge.conformance.test.js → Gauge.conformance.test.jsx} +0 -0
  938. /package/src/components/List/tests/{List.unit.test.js → List.unit.test.jsx} +0 -0
  939. /package/src/components/Loader/tests/{Loader.unit.test.js → Loader.unit.test.jsx} +0 -0
  940. /package/src/components/Modal/tests/{ModalCloseButton.unit.test.js → ModalCloseButton.unit.test.jsx} +0 -0
  941. /package/src/components/Skeleton/tests/{Skeleton.unit.test.js → Skeleton.unit.test.jsx} +0 -0
  942. /package/src/components/Stepbar/tests/{Stepbar.unit.test.js → Stepbar.unit.test.jsx} +0 -0
  943. /package/src/components/Table/tests/{Cell.unit.test.js → Cell.unit.test.jsx} +0 -0
  944. /package/src/components/Tabs/tests/{Tab.unit.test.js → Tab.unit.test.jsx} +0 -0
  945. /package/src/components/Tabs/tests/{TabPanel.unit.test.js → TabPanel.unit.test.jsx} +0 -0
  946. /package/src/components/Tooltip/tests/{InfoTooltip.unit.test.js → InfoTooltip.unit.test.jsx} +0 -0
@@ -73,16 +73,6 @@ describe("rendering Breadcrumbs", () => {
73
73
  );
74
74
  });
75
75
 
76
- it('has class osk-breadcrumbs--dark when colorScheme="dark" is passed', () => {
77
- const { container } = render(
78
- <Breadcrumbs items={[]} colorScheme="dark" />,
79
- );
80
- expect(container.getElementsByClassName("osk-breadcrumbs").length).toBe(
81
- 1,
82
- );
83
- expect(container.getElementsByClassName("is-dark").length).toBe(1);
84
- });
85
-
86
76
  it("combines multiple CSS classes correctly", () => {
87
77
  const { getByTestId } = render(
88
78
  <Breadcrumbs
@@ -104,12 +94,16 @@ describe("rendering Breadcrumbs", () => {
104
94
 
105
95
  itemsArr.map(({ url, text }, index) => {
106
96
  it(`renders BreadcrumbItem with text ${text} ${
107
- url ? "inside anchor element with url " + url : ""
97
+ url && index !== itemsArr.length - 1
98
+ ? "inside anchor element with url " + url
99
+ : ""
108
100
  }`, () => {
109
101
  const { container } = render(<Breadcrumbs items={itemsArr} />);
110
102
  const listElements = container.querySelectorAll("li");
111
103
  expect(listElements[index].textContent).toBe(text);
112
- if (url) {
104
+
105
+ // Only non-last items with URL should have anchors
106
+ if (url && index !== itemsArr.length - 1) {
113
107
  expect(listElements[index].children[0].getAttribute("href")).toBe(
114
108
  url,
115
109
  );
@@ -117,18 +111,18 @@ describe("rendering Breadcrumbs", () => {
117
111
  });
118
112
  });
119
113
 
120
- it("if last item renders anchor element, this element has aria-current attribute set to 'page'", () => {
114
+ it("last item does not render as anchor element", () => {
121
115
  const items = [
122
116
  { url: "/test1", text: "test1-text" },
123
117
  { url: "/test2", text: "test2-text" },
124
118
  { url: "/test3", text: "test3-text" },
125
119
  ];
126
120
  const { container } = render(<Breadcrumbs items={items} />);
127
- const anchors = container.querySelectorAll("a");
128
- expect(anchors[anchors.length - 1]).toHaveAttribute(
129
- "aria-current",
130
- "page",
131
- );
121
+ const listItems = container.querySelectorAll("li");
122
+ const lastItem = listItems[listItems.length - 1];
123
+
124
+ expect(lastItem).toHaveAttribute("aria-current", "page");
125
+ expect(lastItem.querySelector("a")).not.toBeInTheDocument();
132
126
  });
133
127
 
134
128
  it("marks last item as current page even without URL", () => {
@@ -167,6 +161,7 @@ describe("rendering Breadcrumbs", () => {
167
161
  const { container } = render(<Breadcrumbs items={complexItemsArr} />);
168
162
  const anchors = container.querySelectorAll("a");
169
163
 
164
+ // Only non-last items should have anchors (last item is current page, plain text)
170
165
  anchors.forEach((anchor) => {
171
166
  expect(anchor).toHaveClass("osk-breadcrumbs__link");
172
167
  });
@@ -187,7 +182,7 @@ describe("rendering Breadcrumbs", () => {
187
182
  expect(nav).toContainElement(ol);
188
183
  });
189
184
 
190
- it('last item has aria-current="page" when it has URL', () => {
185
+ it('last item has aria-current="page" and is not an anchor', () => {
191
186
  const itemsWithLastUrl = [
192
187
  { url: "/home", text: "Domov" },
193
188
  { url: "/current", text: "Aktuálna stránka" },
@@ -196,9 +191,9 @@ describe("rendering Breadcrumbs", () => {
196
191
  const { container } = render(<Breadcrumbs items={itemsWithLastUrl} />);
197
192
  const listElements = container.querySelectorAll("li");
198
193
  const lastItem = listElements[listElements.length - 1];
199
- const lastAnchor = lastItem.querySelector("a");
200
194
 
201
- expect(lastAnchor).toHaveAttribute("aria-current", "page");
195
+ expect(lastItem).toHaveAttribute("aria-current", "page");
196
+ expect(lastItem.querySelector("a")).not.toBeInTheDocument();
202
197
  });
203
198
 
204
199
  it("last item without URL is still marked as current", () => {
@@ -229,8 +224,9 @@ describe("rendering Breadcrumbs", () => {
229
224
  const anchor = container.querySelector("a");
230
225
 
231
226
  expect(listItems).toHaveLength(1);
232
- expect(anchor).toHaveAttribute("href", "/home");
233
- expect(anchor).toHaveAttribute("aria-current", "page");
227
+ // Single item is the last (current) item, so no anchor
228
+ expect(anchor).not.toBeInTheDocument();
229
+ expect(listItems[0]).toHaveAttribute("aria-current", "page");
234
230
  });
235
231
 
236
232
  it("handles items with special characters in text", () => {
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
 
4
4
  export type ButtonSize = "small" | "large";
5
5
  export type ButtonType = "primary" | "fill" | "ghost";
@@ -10,12 +10,12 @@ interface CommonProps {
10
10
  isActive?: boolean;
11
11
  isDefault?: boolean;
12
12
  isDisabled?: boolean;
13
- colorScheme?: "dark" | "light";
14
13
  isSquare?: boolean;
15
14
  size?: ButtonSize;
16
15
  type?: ButtonType;
17
16
  className?: string;
18
17
  children?: React.ReactNode;
18
+ preserveWidth?: boolean;
19
19
  }
20
20
 
21
21
  type AnchorProps = CommonProps &
@@ -45,9 +45,7 @@ const Button = React.forwardRef<any, ButtonProps>((props, ref) => {
45
45
  htmlType = "button",
46
46
  href,
47
47
  isActive,
48
- isDefault,
49
48
  isDisabled,
50
- colorScheme,
51
49
  size,
52
50
  isSquare,
53
51
  type,
@@ -61,9 +59,7 @@ const Button = React.forwardRef<any, ButtonProps>((props, ref) => {
61
59
  [`${CLASS_ROOT}--square`]: isSquare,
62
60
  [`${CLASS_ROOT}--${size}`]: size,
63
61
  [`${CLASS_ROOT}--${type}`]: type,
64
- [`${CLASS_ROOT}--default`]: isDefault,
65
- "is-dark": colorScheme === "dark",
66
- "is-light": colorScheme === "light",
62
+ [`${CLASS_ROOT}--preserve-width`]: props.preserveWidth,
67
63
  "is-active": isActive,
68
64
  },
69
65
  className,
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
 
4
4
  import { Icon } from "../Icon";
5
5
  import { Button, ButtonSize } from "./Button";
@@ -54,9 +54,13 @@ const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(
54
54
 
55
55
  return (
56
56
  <Button ref={ref} size={size} {...other}>
57
- {iconPosition === "left" && <IconComponent className="btn__icon-left" />}
57
+ {iconPosition === "left" && (
58
+ <IconComponent className="btn__icon-left" />
59
+ )}
58
60
  {children}
59
- {iconPosition === "right" && <IconComponent className="btn__icon-right" />}
61
+ {iconPosition === "right" && (
62
+ <IconComponent className="btn__icon-right" />
63
+ )}
60
64
  </Button>
61
65
  );
62
66
  },
@@ -1,5 +1,3 @@
1
- import React from "react";
2
-
3
1
  import { Button, ButtonProps } from "./Button";
4
2
  import { IconButton } from "./IconButton";
5
3
 
@@ -18,4 +16,4 @@ export const ButtonGhost = (props: ButtonProps) => (
18
16
  );
19
17
  ButtonGhost.displayName = "ButtonGhost";
20
18
 
21
- export { IconButton, Button };
19
+ export { Button, IconButton };
@@ -1,4 +1,5 @@
1
1
  @use "../../../styles/tokens/space";
2
+ @use "../../../styles/tokens/color";
2
3
  @use "../../../styles/tools/convert";
3
4
 
4
5
  $base: (
@@ -6,7 +7,6 @@ $base: (
6
7
  border: 2px solid transparent,
7
8
  font-size: convert.to-rem(18px),
8
9
  font-weight: bold,
9
- line-height: normal,
10
10
  border-radius: convert.to-rem(5px),
11
11
  ),
12
12
  active: (
@@ -46,7 +46,7 @@ $variants: (
46
46
  border-color: transparent,
47
47
  ),
48
48
  active: (
49
- color: var(--color-text-inverse),
49
+ color: color.$white,
50
50
  background-color: var(--color-fill-tertiary),
51
51
  border-color: transparent,
52
52
  ),
@@ -58,7 +58,7 @@ $variants: (
58
58
  ),
59
59
  "primary": (
60
60
  default: (
61
- color: var(--color-text-inverse),
61
+ color: color.$white,
62
62
  background-color: var(--color-fill-tertiary),
63
63
  border-color: transparent,
64
64
  ),
@@ -73,7 +73,7 @@ $variants: (
73
73
  border-color: var(--color-border-contrast),
74
74
  ),
75
75
  disabled: (
76
- color: var(--color-text-inverse),
76
+ color: color.$white,
77
77
  background-color: var(--color-fill-disabled),
78
78
  border-color: var(--color-fill-disabled),
79
79
  ),
@@ -90,7 +90,7 @@ $variants: (
90
90
  border-color: var(--color-border-contrast),
91
91
  ),
92
92
  active: (
93
- color: var(--color-text-inverse),
93
+ color: color.$white,
94
94
  background-color: var(--color-fill-tertiary),
95
95
  border-color: transparent,
96
96
  ),
@@ -17,7 +17,7 @@
17
17
  justify-content: center;
18
18
  text-align: center;
19
19
  text-decoration: none;
20
- vertical-align: baseline;
20
+ vertical-align: super;
21
21
  cursor: pointer;
22
22
 
23
23
  @media (hover: hover) {
@@ -47,7 +47,7 @@
47
47
 
48
48
  // Layout rules. Adds space between adjacent buttons and applies vertical spacing after a button.
49
49
  @mixin layout {
50
- margin-bottom: space.get();
50
+ margin-bottom: space.get("large");
51
51
 
52
52
  &:not(:last-of-type) {
53
53
  margin-right: space.get("small");
@@ -153,3 +153,8 @@
153
153
  cursor: not-allowed;
154
154
  }
155
155
  }
156
+
157
+ @mixin preserve-width {
158
+ width: initial !important;
159
+ min-width: initial !important;
160
+ }
@@ -43,4 +43,8 @@
43
43
  .btn--large .icon--large {
44
44
  @include mixins.large-button-large-icon-size-fix();
45
45
  }
46
+
47
+ .btn--preserve-width {
48
+ @include mixins.preserve-width;
49
+ }
46
50
  }
@@ -1,6 +1,5 @@
1
- import React from "react";
2
1
  import { render } from "@testing-library/react";
3
- import { axe } from "jest-axe";
2
+ import { axe } from "vitest-axe";
4
3
 
5
4
  import { Button, IconButton } from "..";
6
5
 
@@ -1,8 +1,7 @@
1
1
  /**
2
- * @jest-environment jsdom
2
+ * @vitest-environment jsdom
3
3
  */
4
4
 
5
- import React from "react";
6
5
  import { render } from "@testing-library/react";
7
6
 
8
7
  import { Button } from "../";
@@ -69,16 +68,6 @@ describe("rendering", () => {
69
68
  expect(getByText("Button")).toHaveClass("is-active");
70
69
  });
71
70
 
72
- it("has is-dark class when colorScheme is dark", () => {
73
- const { getByText } = render(<Button colorScheme="dark">Button</Button>);
74
- expect(getByText("Button")).toHaveClass("is-dark");
75
- });
76
-
77
- it("has is-light class when colorScheme is light", () => {
78
- const { getByText } = render(<Button colorScheme="light">Button</Button>);
79
- expect(getByText("Button")).toHaveClass("is-light");
80
- });
81
-
82
71
  it("has btn--square class when squared", () => {
83
72
  const { getByText } = render(<Button isSquare>Button</Button>);
84
73
  expect(getByText("Button")).toHaveClass("btn--square");
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { render } from "@testing-library/react";
3
2
 
4
3
  import { IconButton } from "../IconButton";
@@ -9,31 +9,26 @@
9
9
  ) {
10
10
  display: flex;
11
11
  flex-flow: row wrap;
12
- max-width: calc(100% - #{$spacing});
13
- margin: ($spacing * -1) ($spacing * -1) space.get() 0;
12
+ gap: $spacing;
13
+ margin: 0 0 space.get("large") 0;
14
14
 
15
15
  #{$button-selector},
16
- #{$button-selector}:last-child,
17
16
  #{$link-selector},
18
- #{$link-selector}:last-child,
19
- button#{$link-selector},
20
- button#{$link-selector}:last-child {
21
- margin: $spacing $spacing 0 0;
17
+ button#{$link-selector} {
18
+ margin: 0;
22
19
  }
23
20
  }
24
21
 
25
22
  @mixin stack-on-xs($spacing: config.$spacing, $button-selector: ".btn") {
26
23
  @include breakpoint.get("xs", "down") {
27
24
  flex-flow: column;
25
+ gap: $spacing;
28
26
  max-width: 100%;
29
27
  margin: 0 0 $spacing 0;
30
28
 
31
- #{$button-selector}:not(:last-child),
32
- #{$button-selector}:last-child,
33
- button.link:not(:last-child),
34
- button.link:last-child {
35
- margin-right: 0;
36
- margin-bottom: 0;
29
+ #{$button-selector},
30
+ button.link {
31
+ margin: 0;
37
32
  }
38
33
  }
39
34
  }
@@ -1,5 +1,5 @@
1
1
  import { render } from "@testing-library/react";
2
- import { axe } from "jest-axe";
2
+ import { axe } from "vitest-axe";
3
3
 
4
4
  import { Button } from "../../Button";
5
5
  import { Buttons } from "../";
@@ -1,36 +1,39 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
 
4
4
  export const cardColors = [
5
- "white",
6
- "black",
7
- "orange",
8
- "gray",
9
- "gray-lighter",
10
- "blue",
11
- "green",
12
- "pink",
13
- "yellow",
14
- "violet",
15
- "accent1-blog",
16
- "accent2-blog",
17
- "accent",
5
+ "background-primary",
6
+ "background-secondary",
7
+ "background-contrast",
8
+ "background-accent",
9
+ "background-accent1-blog",
10
+ "background-accent2-blog",
11
+ "fill-subtle",
12
+ "fill-accent1",
13
+ "fill-accent2",
14
+ "fill-accent3",
15
+ "fill-accent4",
16
+ "fill-accent5",
18
17
  ] as const;
19
18
  export type CardColor = (typeof cardColors)[number];
20
19
 
21
20
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
22
21
  /** Custom background color */
23
22
  color?: CardColor;
23
+ noBorder?: boolean;
24
24
  }
25
25
 
26
26
  export const CLASS_ROOT = "card";
27
27
 
28
28
  const Card = React.forwardRef<HTMLDivElement, CardProps>(
29
- ({ className, color = "white", ...other }, ref) => {
29
+ ({ className, color = "background-primary", noBorder, ...other }, ref) => {
30
30
  const classes = cx(
31
31
  CLASS_ROOT,
32
32
  {
33
- [`bg-${color}`]: color !== "white",
33
+ [color]:
34
+ color !== "background-primary" && color !== "background-contrast",
35
+ [`${color} text-inverse`]: color === "background-contrast",
36
+ [`${CLASS_ROOT}--no-border`]: noBorder,
34
37
  },
35
38
  className,
36
39
  );
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
 
4
4
  interface CardProductHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  image?: React.ReactNode;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
  import { cardColors } from "./Card";
4
4
 
5
5
  export type CardSectionColor = (typeof cardColors)[number];
@@ -20,7 +20,11 @@ const CardSection = React.forwardRef<HTMLDivElement, CardSectionProps>(
20
20
  const classes = cx(
21
21
  CLASS_ROOT,
22
22
  {
23
- [`bg-${color}`]: color,
23
+ [String(color)]:
24
+ color &&
25
+ color !== "background-primary" &&
26
+ color !== "background-contrast",
27
+ [`${color} text-inverse`]: color === "background-contrast",
24
28
  [`${CLASS_ROOT}--fill`]: isFilling,
25
29
  [`${CLASS_ROOT}--space-small`]: space === "small",
26
30
  },
@@ -1,3 +1,4 @@
1
+ export type { CardColor } from "./Card";
1
2
  export { Card } from "./Card";
2
- export { CardSection } from "./CardSection";
3
3
  export { CardProductHeader } from "./CardProductHeader";
4
+ export { CardSection } from "./CardSection";
@@ -4,9 +4,9 @@
4
4
 
5
5
  $card-base: (
6
6
  background-color: var(--color-surface-primary),
7
- margin-bottom: space.get(),
7
+ margin-bottom: space.get("large"),
8
8
  border-radius: convert.to-rem(10px),
9
- border: 1px solid var(--color-border-strong),
9
+ border: 1px solid var(--color-border-subtle),
10
10
  overflow: hidden,
11
11
  );
12
12
 
@@ -38,13 +38,14 @@
38
38
  @mixin card-section($spacing) {
39
39
  @include card-spacing($spacing);
40
40
 
41
- .btn,
42
- button {
43
- display: block;
44
- width: 100%;
41
+ > {
42
+ .btn,
43
+ button {
44
+ width: 100%;
45
45
 
46
- &:not(:last-child) {
47
- margin-bottom: space.get("small");
46
+ &:not(:last-child) {
47
+ margin-bottom: space.get("small");
48
+ }
48
49
  }
49
50
  }
50
51
 
@@ -35,5 +35,9 @@
35
35
  &__product-header--space-small &__product-content {
36
36
  @include mixins.card-product-header(space.get());
37
37
  }
38
+
39
+ &--no-border {
40
+ border: none;
41
+ }
38
42
  }
39
43
  }
@@ -1,7 +1,7 @@
1
1
  import { render } from "@testing-library/react";
2
- import { axe } from "jest-axe";
2
+ import { axe } from "vitest-axe";
3
3
 
4
- import { Card, CardSection, CardProductHeader } from "../";
4
+ import { Card, CardProductHeader, CardSection } from "../";
5
5
 
6
6
  const example = (
7
7
  <>
@@ -0,0 +1,81 @@
1
+ import { render } from "@testing-library/react";
2
+
3
+ import { Card } from "../Card";
4
+
5
+ describe("rendering Card", () => {
6
+ describe("initial state", () => {
7
+ it("has default class card", () => {
8
+ const { getByTestId } = render(<Card data-testid="test-id" />);
9
+ expect(getByTestId("test-id")).toHaveClass("card");
10
+ });
11
+ });
12
+
13
+ describe("passed props", () => {
14
+ it("renders children", () => {
15
+ const { getByText } = render(<Card>test</Card>);
16
+ expect(getByText("test")).toBeInTheDocument();
17
+ });
18
+
19
+ it("has additional class when className is set", () => {
20
+ const { getByTestId } = render(
21
+ <Card data-testid="test-id" className="test-class" />,
22
+ );
23
+ expect(getByTestId("test-id")).toHaveClass("card");
24
+ expect(getByTestId("test-id")).toHaveClass("test-class");
25
+ });
26
+
27
+ // Test semantic color classes (excluding background-primary and background-contrast)
28
+ [
29
+ "background-secondary",
30
+ "background-accent",
31
+ "background-accent1-blog",
32
+ "background-accent2-blog",
33
+ "fill-subtle",
34
+ "fill-accent1",
35
+ "fill-accent2",
36
+ "fill-accent3",
37
+ "fill-accent4",
38
+ "fill-accent5",
39
+ ].map((color) => {
40
+ it(`has ${color} class when color is ${color}`, () => {
41
+ const { getByTestId } = render(
42
+ <Card data-testid="test-id" color={color} />,
43
+ );
44
+ expect(getByTestId("test-id")).toHaveClass(color);
45
+ });
46
+ });
47
+
48
+ it(`has background-contrast and text-inverse classes when color is background-contrast`, () => {
49
+ const { getByTestId } = render(
50
+ <Card data-testid="test-id" color="background-contrast" />,
51
+ );
52
+ expect(getByTestId("test-id")).toHaveClass("background-contrast");
53
+ expect(getByTestId("test-id")).toHaveClass("text-inverse");
54
+ });
55
+
56
+ it(`doesn't have background-primary class when color is background-primary (default)`, () => {
57
+ const { getByTestId } = render(
58
+ <Card data-testid="test-id" color="background-primary" />,
59
+ );
60
+ expect(getByTestId("test-id")).not.toHaveClass("background-primary");
61
+ });
62
+
63
+ it(`doesn't have any color class when no color is specified (defaults to background-primary)`, () => {
64
+ const { getByTestId } = render(<Card data-testid="test-id" />);
65
+ expect(getByTestId("test-id")).not.toHaveClass("background-primary");
66
+ expect(getByTestId("test-id")).toHaveClass("card");
67
+ });
68
+
69
+ it(`has card--no-border class when noBorder is true`, () => {
70
+ const { getByTestId } = render(<Card data-testid="test-id" noBorder />);
71
+ expect(getByTestId("test-id")).toHaveClass("card--no-border");
72
+ });
73
+
74
+ it(`doesn't have card--no-border class when noBorder is false`, () => {
75
+ const { getByTestId } = render(
76
+ <Card data-testid="test-id" noBorder={false} />,
77
+ );
78
+ expect(getByTestId("test-id")).not.toHaveClass("card--no-border");
79
+ });
80
+ });
81
+ });
@@ -42,7 +42,7 @@ describe("rendering CardProductHeader", () => {
42
42
  "card__product-header--space-small",
43
43
  );
44
44
  });
45
-
45
+
46
46
  it("does not have card__product-header--space-small class when space is not set", () => {
47
47
  const { getByTestId } = render(<CardProductHeader data-testid="test-id" />);
48
48
  expect(getByTestId("test-id")).not.toHaveClass(
@@ -24,15 +24,48 @@ describe("rendering CardSection", () => {
24
24
  expect(getByTestId("test-id")).toHaveClass("test-class");
25
25
  });
26
26
 
27
- ["white", "black", "orange"].map((color) => {
28
- it(`bg-${color} class when color is ${color}`, () => {
27
+ // Test semantic color classes (excluding background-primary and background-contrast)
28
+ [
29
+ "background-secondary",
30
+ "background-accent",
31
+ "background-accent1-blog",
32
+ "background-accent2-blog",
33
+ "fill-subtle",
34
+ "fill-accent1",
35
+ "fill-accent2",
36
+ "fill-accent3",
37
+ "fill-accent4",
38
+ "fill-accent5",
39
+ ].map((color) => {
40
+ it(`has ${color} class when color is ${color}`, () => {
29
41
  const { getByTestId } = render(
30
42
  <CardSection data-testid="test-id" color={color} />,
31
43
  );
32
- expect(getByTestId("test-id")).toHaveClass(`bg-${color}`);
44
+ expect(getByTestId("test-id")).toHaveClass(color);
33
45
  });
34
46
  });
35
47
 
48
+ it(`has background-contrast and text-inverse classes when color is background-contrast`, () => {
49
+ const { getByTestId } = render(
50
+ <CardSection data-testid="test-id" color="background-contrast" />,
51
+ );
52
+ expect(getByTestId("test-id")).toHaveClass("background-contrast");
53
+ expect(getByTestId("test-id")).toHaveClass("text-inverse");
54
+ });
55
+
56
+ it(`doesn't have background-primary class when color is background-primary`, () => {
57
+ const { getByTestId } = render(
58
+ <CardSection data-testid="test-id" color="background-primary" />,
59
+ );
60
+ expect(getByTestId("test-id")).not.toHaveClass("background-primary");
61
+ });
62
+
63
+ it(`doesn't have any color class when no color is specified`, () => {
64
+ const { getByTestId } = render(<CardSection data-testid="test-id" />);
65
+ expect(getByTestId("test-id")).toHaveClass("card__section");
66
+ expect(getByTestId("test-id")).not.toHaveClass("background-primary");
67
+ });
68
+
36
69
  it(`has card__section--fill class when isFilling is passed`, () => {
37
70
  const { getByTestId } = render(
38
71
  <CardSection data-testid="test-id" isFilling />,