@orangesk/orange-design-system 2.0.0-beta.36 → 2.0.0-beta.37

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 (337) hide show
  1. package/README.md +8 -2
  2. package/build/components/Icon/style.css +1 -1
  3. package/build/components/Icon/style.css.map +1 -1
  4. package/build/components/PromoBanner/style.css +1 -1
  5. package/build/components/PromoBanner/style.css.map +1 -1
  6. package/build/components/index.js +1 -1
  7. package/build/components/index.js.map +1 -1
  8. package/build/components/tsconfig.tsbuildinfo +1 -1
  9. package/build/components/types/index.d.ts +729 -729
  10. package/build/components/types/src/components/Bar/index.d.ts +1 -1
  11. package/build/components/types/src/components/BlockAction/Context.d.ts +1 -1
  12. package/build/components/types/src/components/BlockAction/index.d.ts +2 -4
  13. package/build/components/types/src/components/Button/index.d.ts +1 -1
  14. package/build/components/types/src/components/Card/index.d.ts +2 -2
  15. package/build/components/types/src/components/Carousel/Carousel.d.ts +1 -1
  16. package/build/components/types/src/components/Carousel/CarouselItem.d.ts +1 -1
  17. package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +1 -1
  18. package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +1 -1
  19. package/build/components/types/src/components/CarouselHero/CarouselHeroItem.d.ts +1 -1
  20. package/build/components/types/src/components/CarouselHero/index.d.ts +1 -1
  21. package/build/components/types/src/components/CartTable/CartTable.d.ts +1 -1
  22. package/build/components/types/src/components/CartTable/data.d.ts +1 -1
  23. package/build/components/types/src/components/Code/Code.d.ts +1 -1
  24. package/build/components/types/src/components/Divider/Divider.d.ts +1 -1
  25. package/build/components/types/src/components/DocumentationSidebar/index.d.ts +1 -1
  26. package/build/components/types/src/components/Dropdown/index.d.ts +1 -1
  27. package/build/components/types/src/components/Forms/Group/Group.d.ts +1 -1
  28. package/build/components/types/src/components/Forms/Group/Item.d.ts +1 -1
  29. package/build/components/types/src/components/Forms/index.d.ts +1 -1
  30. package/build/components/types/src/components/Grid/GridCol.d.ts +3 -3
  31. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +1 -0
  32. package/build/components/types/src/components/Icon/index.d.ts +1 -2
  33. package/build/components/types/src/components/IconList/Item.d.ts +1 -1
  34. package/build/components/types/src/components/List/ClickableControl.d.ts +1 -1
  35. package/build/components/types/src/components/List/List.d.ts +3 -3
  36. package/build/components/types/src/components/List/ListItem.d.ts +1 -1
  37. package/build/components/types/src/components/Megamenu/index.d.ts +1 -1
  38. package/build/components/types/src/components/Modal/ModalCloseButton.d.ts +1 -1
  39. package/build/components/types/src/components/Modal/index.d.ts +2 -2
  40. package/build/components/types/src/components/Pagination/helpers.d.ts +1 -1
  41. package/build/components/types/src/components/Pill/Pill.d.ts +1 -1
  42. package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
  43. package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -1
  44. package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +1 -1
  45. package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +1 -1
  46. package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +1 -1
  47. package/build/components/types/src/components/Sticker/Sticker.d.ts +3 -3
  48. package/build/components/types/src/components/Table/Table.d.ts +1 -1
  49. package/build/components/types/src/components/Table/index.d.ts +1 -1
  50. package/build/components/types/src/components/Tabs/index.d.ts +2 -2
  51. package/build/components/types/src/components/Tag/index.d.ts +1 -1
  52. package/build/components/types/src/components/Testimonial/Testimonial.d.ts +2 -2
  53. package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +6 -2
  54. package/build/components/types/src/components/Tooltip/index.d.ts +1 -1
  55. package/build/components/types/src/components/index.d.ts +20 -20
  56. package/build/components/types/src/scripts/index.d.ts +5 -5
  57. package/build/components/types/src/scripts/modules/SpacePreview/index.d.ts +1 -1
  58. package/build/components/types/src/utils/hooks.d.ts +1 -1
  59. package/build/components/types/src/utils/index.d.ts +2 -2
  60. package/build/lib/base.css +1 -1
  61. package/build/lib/base.css.map +1 -1
  62. package/build/lib/components.css +1 -1
  63. package/build/lib/components.css.map +1 -1
  64. package/build/lib/footer.js +1 -1
  65. package/build/lib/footer.js.map +1 -1
  66. package/build/lib/megamenu.js +1 -1
  67. package/build/lib/megamenu.js.map +1 -1
  68. package/build/lib/scripts.js +1 -1
  69. package/build/lib/scripts.js.map +1 -1
  70. package/build/lib/style.css +1 -1
  71. package/build/lib/style.css.map +1 -1
  72. package/build/lib/tsconfig.tsbuildinfo +1 -1
  73. package/build/search-index.json +3 -3
  74. package/build/sprite.svg +1 -1
  75. package/package.json +28 -26
  76. package/src/assets/icons/discount-price.svg +4 -0
  77. package/src/components/Accordion/Accordion.tsx +2 -3
  78. package/src/components/Accordion/AccordionHeader.tsx +1 -1
  79. package/src/components/Accordion/AccordionItem.tsx +2 -1
  80. package/src/components/Accordion/HeadingContext.tsx +1 -1
  81. package/src/components/Accordion/tests/Accordion.unit.test.jsx +3 -4
  82. package/src/components/Alert/Alert.tsx +3 -4
  83. package/src/components/Alert/tests/Alert.conformance.test.jsx +2 -3
  84. package/src/components/Alert/tests/Alert.test.jsx +1 -1
  85. package/src/components/Alert/tests/Alert.visual.test.jsx +1 -2
  86. package/src/components/AnchorNavigation/AnchorNavigation.tsx +3 -3
  87. package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.jsx +1 -1
  88. package/src/components/Bar/Bar.tsx +1 -1
  89. package/src/components/Bar/BarBreak.tsx +1 -1
  90. package/src/components/Bar/BarItem.tsx +1 -1
  91. package/src/components/Bar/index.ts +1 -1
  92. package/src/components/Bar/tests/Bar.conformance.test.jsx +1 -1
  93. package/src/components/BlockAction/BlockAction.tsx +1 -1
  94. package/src/components/BlockAction/BlockActionControl.tsx +2 -3
  95. package/src/components/BlockAction/BlockActionIndicator.tsx +2 -3
  96. package/src/components/BlockAction/CloneElementWithClassName.tsx +1 -1
  97. package/src/components/BlockAction/Context.tsx +1 -1
  98. package/src/components/BlockAction/index.tsx +3 -8
  99. package/src/components/BlockAction/tests/BlockActionControl.unit.test.jsx +1 -1
  100. package/src/components/BodyBanner/BodyBanner.tsx +2 -2
  101. package/src/components/BodyBanner/tests/BodyBanner.conformance.test.jsx +1 -1
  102. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +1 -1
  103. package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.jsx +1 -1
  104. package/src/components/Button/Button.tsx +1 -1
  105. package/src/components/Button/IconButton.tsx +7 -3
  106. package/src/components/Button/index.tsx +1 -3
  107. package/src/components/Button/tests/Button.conformance.test.jsx +1 -2
  108. package/src/components/Button/tests/Button.test.jsx +0 -1
  109. package/src/components/Button/tests/IconButton.unit.test.jsx +0 -1
  110. package/src/components/Buttons/tests/Buttons.conformance.test.jsx +1 -1
  111. package/src/components/Card/Card.tsx +1 -1
  112. package/src/components/Card/CardProductHeader.tsx +1 -1
  113. package/src/components/Card/CardSection.tsx +1 -1
  114. package/src/components/Card/index.ts +2 -2
  115. package/src/components/Card/tests/Card.conformance.test.jsx +2 -2
  116. package/src/components/Card/tests/CardProductHeader.unit.test.jsx +1 -1
  117. package/src/components/Carousel/Carousel.static.ts +15 -15
  118. package/src/components/Carousel/Carousel.tsx +9 -11
  119. package/src/components/Carousel/CarouselItem.tsx +1 -1
  120. package/src/components/Carousel/tests/Carousel.conformance.test.jsx +2 -4
  121. package/src/components/CarouselHero/CarouselHero.static.ts +15 -15
  122. package/src/components/CarouselHero/CarouselHero.tsx +12 -13
  123. package/src/components/CarouselHero/CarouselHeroItem.tsx +2 -2
  124. package/src/components/CarouselHero/index.ts +1 -1
  125. package/src/components/CarouselHero/tests/CarouselHeroItem.conformance.test.jsx +1 -1
  126. package/src/components/CarouselPromotions/CarouselPromotions.static.ts +10 -10
  127. package/src/components/CarouselPromotions/CarouselPromotions.tsx +6 -7
  128. package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +3 -3
  129. package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.jsx +1 -3
  130. package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.jsx +1 -2
  131. package/src/components/CartTable/CartTable.tsx +3 -4
  132. package/src/components/CartTable/FooterPriceColumn.tsx +1 -1
  133. package/src/components/CartTable/Price.tsx +1 -1
  134. package/src/components/CartTable/data.ts +1 -1
  135. package/src/components/CartTable/generateFooter.tsx +1 -1
  136. package/src/components/CartTable/generateRow.tsx +6 -8
  137. package/src/components/CartTable/tests/CartTable.conformance.test.jsx +1 -1
  138. package/src/components/Code/Code.tsx +1 -1
  139. package/src/components/Container/Container.tsx +1 -1
  140. package/src/components/Container/tests/Container.unit.test.jsx +3 -2
  141. package/src/components/Controls/Controls.tsx +1 -1
  142. package/src/components/Controls/tests/Controls.test.jsx +2 -2
  143. package/src/components/Cover/Cover.tsx +1 -1
  144. package/src/components/Cover/index.ts +1 -0
  145. package/src/components/Cover/tests/Cover.conformance.test.jsx +8 -9
  146. package/src/components/Cover/tests/Cover.unit.test.jsx +0 -1
  147. package/src/components/Divider/Divider.tsx +1 -1
  148. package/src/components/Divider/tests/Divider.conformance.test.jsx +1 -1
  149. package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +7 -7
  150. package/src/components/DocumentationSidebar/index.ts +2 -2
  151. package/src/components/Dropdown/Dropdown.static.ts +1 -1
  152. package/src/components/Dropdown/Dropdown.tsx +3 -5
  153. package/src/components/Dropdown/DropdownDivider.tsx +1 -1
  154. package/src/components/Dropdown/DropdownItem.tsx +1 -1
  155. package/src/components/Dropdown/DropdownToggleButton.tsx +1 -1
  156. package/src/components/Dropdown/index.ts +1 -1
  157. package/src/components/Dropdown/tests/Dropdown.conformance.test.jsx +2 -2
  158. package/src/components/Dropdown/tests/Dropdown.unit.test.jsx +1 -2
  159. package/src/components/Expander/Expander.tsx +1 -1
  160. package/src/components/Expander/tests/Expander.conformance.test.jsx +2 -4
  161. package/src/components/Expander/tests/Expander.unit.test.jsx +2 -4
  162. package/src/components/FeatureAccordion/FeatureAccordion.tsx +2 -2
  163. package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +2 -1
  164. package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.jsx +1 -1
  165. package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.jsx +2 -3
  166. package/src/components/Footer/Footer.tsx +4 -5
  167. package/src/components/Footer/static.ts +2 -2
  168. package/src/components/Footer/tests/Footer.unit.test.jsx +1 -1
  169. package/src/components/Forms/Autocomplete/Autocomplete.tsx +2 -2
  170. package/src/components/Forms/Checkbox/Checkbox.tsx +1 -1
  171. package/src/components/Forms/DatePicker/DatePicker.tsx +1 -2
  172. package/src/components/Forms/Field/Control.tsx +3 -3
  173. package/src/components/Forms/Field/Description.tsx +1 -1
  174. package/src/components/Forms/Field/Field.tsx +4 -4
  175. package/src/components/Forms/Field/Label.tsx +1 -1
  176. package/src/components/Forms/Field/Messages.tsx +2 -2
  177. package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.jsx +1 -1
  178. package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.jsx +1 -1
  179. package/src/components/Forms/Field/tests/File.Field.conformance.test.jsx +1 -1
  180. package/src/components/Forms/Field/tests/Group.Field.conformance.test.jsx +1 -1
  181. package/src/components/Forms/Field/tests/Radio.Field.conformance.test.jsx +1 -1
  182. package/src/components/Forms/Field/tests/Rangeslider.Field.test.jsx +1 -1
  183. package/src/components/Forms/Field/tests/Select.Field.conformance.test.jsx +1 -1
  184. package/src/components/Forms/Field/tests/Text.Field.conformance.test.jsx +1 -1
  185. package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.jsx +1 -1
  186. package/src/components/Forms/Field/tests/Tooltip.unit.test.jsx +1 -2
  187. package/src/components/Forms/Fieldset/Fieldset.tsx +1 -1
  188. package/src/components/Forms/File/File.tsx +4 -7
  189. package/src/components/Forms/Group/Group.tsx +2 -3
  190. package/src/components/Forms/Group/Item.tsx +1 -1
  191. package/src/components/Forms/Hint/Hint.tsx +1 -1
  192. package/src/components/Forms/InputStepper/InputStepper.tsx +1 -1
  193. package/src/components/Forms/Label/Label.tsx +1 -1
  194. package/src/components/Forms/Message/Message.tsx +9 -5
  195. package/src/components/Forms/Radio/Radio.tsx +1 -1
  196. package/src/components/Forms/RangeSlider/RangeSlider.tsx +1 -1
  197. package/src/components/Forms/Select/Select.tsx +1 -1
  198. package/src/components/Forms/TextArea/TextArea.tsx +1 -1
  199. package/src/components/Forms/TextInput/TextInput.tsx +3 -5
  200. package/src/components/Forms/index.ts +1 -1
  201. package/src/components/Gauge/Gauge.tsx +1 -1
  202. package/src/components/Gauge/GaugeMaker.tsx +3 -3
  203. package/src/components/Gauge/tests/Gauge.unit.test.jsx +0 -1
  204. package/src/components/Grid/Grid.tsx +1 -1
  205. package/src/components/Grid/GridCol.tsx +21 -10
  206. package/src/components/Grid/tests/Grid.unit.test.jsx +0 -1
  207. package/src/components/Grid/tests/GridCol.unit.test.jsx +0 -1
  208. package/src/components/Hero/Hero.tsx +1 -1
  209. package/src/components/Hero/tests/Hero.conformance.test.jsx +1 -2
  210. package/src/components/Hero/tests/Hero.unit.test.jsx +0 -1
  211. package/src/components/Hero/tests/data.js +26 -26
  212. package/src/components/Icon/Icon.tsx +1 -1
  213. package/src/components/Icon/IconSearch.jsx +4 -4
  214. package/src/components/Icon/PictogramSearch.jsx +3 -14
  215. package/src/components/Icon/iconSearchTags.ts +1 -0
  216. package/src/components/Icon/index.ts +1 -2
  217. package/src/components/Icon/styles/style.scss +30 -0
  218. package/src/components/Icon/tests/Icon.conformance.test.jsx +1 -2
  219. package/src/components/Icon/tests/Icon.unit.test.jsx +1 -3
  220. package/src/components/Icon/tests/Pictogram.unit.test.jsx +1 -2
  221. package/src/components/IconList/IconList.tsx +1 -1
  222. package/src/components/IconList/Item.tsx +15 -11
  223. package/src/components/IconList/tests/IconList.conformance.test.jsx +1 -2
  224. package/src/components/IconList/tests/IconList.unit.test.jsx +29 -26
  225. package/src/components/Image/Image.tsx +1 -1
  226. package/src/components/Image/tests/Image.conformance.test.jsx +1 -1
  227. package/src/components/Image/tests/Image.unit.test.jsx +0 -1
  228. package/src/components/Link/Link.tsx +1 -1
  229. package/src/components/Link/tests/Link.conformance.test.jsx +1 -1
  230. package/src/components/Link/tests/Link.unit.test.jsx +1 -1
  231. package/src/components/List/ClickableControl.tsx +12 -12
  232. package/src/components/List/List.tsx +13 -13
  233. package/src/components/List/ListItem.tsx +11 -11
  234. package/src/components/List/tests/ClickableControl.unit.test.jsx +0 -1
  235. package/src/components/List/tests/List.conformance.test.jsx +16 -17
  236. package/src/components/List/tests/ListItem.unit.test.jsx +46 -47
  237. package/src/components/Loader/Loader.tsx +1 -1
  238. package/src/components/Loader/tests/Loader.conformance.test.jsx +1 -1
  239. package/src/components/Megamenu/MegaMenuIcon.tsx +1 -1
  240. package/src/components/Megamenu/Megamenu.static.ts +5 -5
  241. package/src/components/Megamenu/Megamenu.tsx +28 -29
  242. package/src/components/Megamenu/MegamenuBlog.tsx +17 -19
  243. package/src/components/Megamenu/MegamenuSearchContent.tsx +2 -2
  244. package/src/components/Megamenu/MyOrangeMobilePanel.tsx +11 -12
  245. package/src/components/Megamenu/index.ts +1 -1
  246. package/src/components/Megamenu/static.ts +2 -2
  247. package/src/components/Modal/Modal.tsx +3 -4
  248. package/src/components/Modal/ModalBody.tsx +1 -1
  249. package/src/components/Modal/ModalCloseButton.tsx +1 -1
  250. package/src/components/Modal/ModalProductFooter.tsx +1 -1
  251. package/src/components/Modal/ModalProductHeader.tsx +1 -1
  252. package/src/components/Modal/index.ts +2 -2
  253. package/src/components/Modal/tests/Modal.conformance.test.jsx +2 -3
  254. package/src/components/Modal/tests/Modal.unit.test.jsx +0 -1
  255. package/src/components/Modal/tests/ModalProductHeader.unit.test.jsx +0 -1
  256. package/src/components/Modal/tests/ModalTitle.unit.test.jsx +0 -1
  257. package/src/components/Pagination/Pagination.tsx +2 -3
  258. package/src/components/Pagination/PaginationItem.tsx +1 -1
  259. package/src/components/Pagination/Separator.tsx +1 -1
  260. package/src/components/Pagination/helpers.ts +6 -1
  261. package/src/components/Pagination/tests/Item.unit.test.jsx +38 -39
  262. package/src/components/Pagination/tests/Pagination.conformance.test.jsx +7 -8
  263. package/src/components/Pagination/tests/Pagination.unit.test.jsx +39 -40
  264. package/src/components/Pagination/tests/Separator.unit.test.jsx +10 -11
  265. package/src/components/Pill/Pill.tsx +1 -1
  266. package/src/components/Pill/tests/Pill.conformance.test.jsx +1 -1
  267. package/src/components/Preview/CodeExample.tsx +6 -9
  268. package/src/components/Preview/Preview.tsx +2 -1
  269. package/src/components/Preview/PreviewGenerator.tsx +8 -8
  270. package/src/components/Preview/PreviewTitleBar.tsx +1 -1
  271. package/src/components/Preview/index.tsx +1 -1
  272. package/src/components/Progress/Progress.tsx +1 -1
  273. package/src/components/Progress/index.ts +1 -1
  274. package/src/components/Progress/tests/Progress.conformance.test.jsx +6 -7
  275. package/src/components/Progress/tests/Progress.unit.test.jsx +42 -39
  276. package/src/components/PromoBanner/PromoBanner.tsx +1 -1
  277. package/src/components/PromoBanner/styles/style.scss +2 -2
  278. package/src/components/PromoBanner/tests/PromoBanner.conformance.test.jsx +1 -2
  279. package/src/components/PromoBanner/tests/PromoBanner.unit.test.jsx +0 -1
  280. package/src/components/PromotionCard/PromotionCard.tsx +1 -1
  281. package/src/components/PromotionCard/PromotionCardContent.tsx +8 -8
  282. package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +7 -9
  283. package/src/components/PromotionCard/PromotionCardSection.tsx +1 -1
  284. package/src/components/PromotionCard/PromotionCardTitle.tsx +11 -11
  285. package/src/components/PromotionCard/constants.ts +2 -2
  286. package/src/components/PromotionCard/tests/PromotionCard.conformance.test.jsx +1 -2
  287. package/src/components/PromotionCard/tests/PromotionCard.unit.test.jsx +0 -1
  288. package/src/components/Section/Section.tsx +1 -1
  289. package/src/components/Section/tests/Section.conformance.test.jsx +1 -2
  290. package/src/components/Section/tests/Section.unit.test.jsx +0 -1
  291. package/src/components/Skeleton/Skeleton.tsx +1 -1
  292. package/src/components/Skeleton/tests/Skeleton.conformance.test.jsx +1 -1
  293. package/src/components/SkipLink/SkipLink.tsx +1 -1
  294. package/src/components/SkipLink/tests/SkipLink.unit.test.jsx +0 -4
  295. package/src/components/SocialButton/SocialButton.tsx +1 -1
  296. package/src/components/SocialButton/tests/SocialButton.unit.test.jsx +1 -1
  297. package/src/components/Stepbar/Stepbar.tsx +1 -1
  298. package/src/components/Stepbar/tests/Stepbar.conformance.test.jsx +1 -1
  299. package/src/components/Sticker/Sticker.tsx +14 -8
  300. package/src/components/Sticker/index.ts +1 -0
  301. package/src/components/Sticker/tests/Sticker.conformance.test.jsx +5 -6
  302. package/src/components/Sticker/tests/Sticker.unit.test.jsx +16 -19
  303. package/src/components/Table/Header.tsx +1 -2
  304. package/src/components/Table/Row.tsx +1 -2
  305. package/src/components/Table/Rows.tsx +1 -2
  306. package/src/components/Table/Table.tsx +4 -5
  307. package/src/components/Table/index.ts +1 -1
  308. package/src/components/Table/tests/Footer.unit.test.jsx +1 -2
  309. package/src/components/Table/tests/Header.unit.test.jsx +1 -2
  310. package/src/components/Table/tests/Row.unit.test.jsx +1 -2
  311. package/src/components/Table/tests/Rows.unit.test.jsx +1 -2
  312. package/src/components/Table/tests/Table.conformance.test.jsx +6 -6
  313. package/src/components/Table/tests/Table.unit.test.jsx +1 -1
  314. package/src/components/Tabs/Tabs.tsx +2 -2
  315. package/src/components/Tabs/index.ts +2 -2
  316. package/src/components/Tabs/tests/Tabs.unit.test.jsx +2 -3
  317. package/src/components/Tag/Tag.tsx +1 -1
  318. package/src/components/Tag/TagButton.tsx +1 -1
  319. package/src/components/Tag/index.ts +1 -1
  320. package/src/components/Tag/tests/Tag.conformance.test.jsx +2 -3
  321. package/src/components/Tag/tests/Tag.unit.test.jsx +1 -3
  322. package/src/components/Tag/tests/TagButton.conformance.test.jsx +1 -1
  323. package/src/components/Tag/tests/TagButton.unit.test.jsx +1 -1
  324. package/src/components/Testimonial/Testimonial.tsx +15 -15
  325. package/src/components/Testimonial/tests/Testimonial.conformance.test.jsx +5 -6
  326. package/src/components/Testimonial/tests/Testimonial.unit.test.jsx +22 -23
  327. package/src/components/Tile/Tile.tsx +2 -3
  328. package/src/components/Tile/tests/Tile.conformance.test.jsx +1 -1
  329. package/src/components/Tooltip/InfoTooltip.tsx +1 -1
  330. package/src/components/Tooltip/Tooltip.static.ts +100 -66
  331. package/src/components/Tooltip/Tooltip.tsx +2 -3
  332. package/src/components/Tooltip/index.ts +1 -1
  333. package/src/components/Tooltip/tests/Tooltip.conformance.test.jsx +1 -1
  334. package/src/components/Tooltip/tests/Tooltip.unit.test.jsx +43 -34
  335. package/src/components/index.ts +39 -39
  336. package/src/styles/base/globals.scss +17 -1
  337. package/src/styles/export/breakpoint.ts +7 -7
@@ -1,81 +1,84 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
1
+ import { render } from "@testing-library/react";
3
2
 
4
- import { Progress } from '../Progress';
3
+ import { Progress } from "../Progress";
5
4
 
6
5
  // value and label props is required
7
- describe('rendering Progress', () => {
8
- describe('initial state', () => {
9
- it('has default class progress', () => {
6
+ describe("rendering Progress", () => {
7
+ describe("initial state", () => {
8
+ it("has default class progress", () => {
10
9
  const { getByTestId } = render(
11
- <Progress value="test-value" label="test-label" data-testid="test-id" />
10
+ <Progress
11
+ value="test-value"
12
+ label="test-label"
13
+ data-testid="test-id"
14
+ />,
12
15
  );
13
- expect(getByTestId('test-id')).toHaveClass('progress');
16
+ expect(getByTestId("test-id")).toHaveClass("progress");
14
17
  });
15
- it('has default class progress__label', () => {
18
+ it("has default class progress__label", () => {
16
19
  const { container } = render(
17
- <Progress value="test-value" label="test-label" />
20
+ <Progress value="test-value" label="test-label" />,
18
21
  );
19
- expect(container.getElementsByClassName('progress__label').length).toBe(
20
- 1
22
+ expect(container.getElementsByClassName("progress__label").length).toBe(
23
+ 1,
21
24
  );
22
25
  });
23
- it('has default class progress__bar', () => {
26
+ it("has default class progress__bar", () => {
24
27
  const { container } = render(
25
- <Progress value="test-value" label="test-label" />
28
+ <Progress value="test-value" label="test-label" />,
26
29
  );
27
- expect(container.getElementsByClassName('progress__bar').length).toBe(1);
30
+ expect(container.getElementsByClassName("progress__bar").length).toBe(1);
28
31
  });
29
- it('has default class progress__indicator', () => {
32
+ it("has default class progress__indicator", () => {
30
33
  const { container } = render(
31
- <Progress value="test-value" label="test-label" />
34
+ <Progress value="test-value" label="test-label" />,
32
35
  );
33
36
  expect(
34
- container.getElementsByClassName('progress__indicator').length
37
+ container.getElementsByClassName("progress__indicator").length,
35
38
  ).toBe(1);
36
39
  });
37
- it('has default class progress__value', () => {
40
+ it("has default class progress__value", () => {
38
41
  const { container } = render(
39
- <Progress value="test-value" label="test-label" />
42
+ <Progress value="test-value" label="test-label" />,
40
43
  );
41
- expect(container.getElementsByClassName('progress__value').length).toBe(
42
- 1
44
+ expect(container.getElementsByClassName("progress__value").length).toBe(
45
+ 1,
43
46
  );
44
47
  });
45
48
  });
46
49
 
47
- describe('passed props', () => {
48
- it('renders value', () => {
50
+ describe("passed props", () => {
51
+ it("renders value", () => {
49
52
  const { getByText } = render(
50
53
  <Progress value="test-value" label="test-label">
51
54
  test-value
52
- </Progress>
55
+ </Progress>,
53
56
  );
54
- expect(getByText('test-value')).toBeInTheDocument();
57
+ expect(getByText("test-value")).toBeInTheDocument();
55
58
  });
56
- it('renders label', () => {
59
+ it("renders label", () => {
57
60
  const { getByText } = render(
58
61
  <Progress value="test-value" label="test-label">
59
62
  test-label
60
- </Progress>
63
+ </Progress>,
61
64
  );
62
- expect(getByText('test-label')).toBeInTheDocument();
65
+ expect(getByText("test-label")).toBeInTheDocument();
63
66
  });
64
67
 
65
- it('has additional class when className is set', () => {
68
+ it("has additional class when className is set", () => {
66
69
  const { getByTestId } = render(
67
70
  <Progress
68
71
  value="test-value"
69
72
  label="test-label"
70
73
  data-testid="test-id"
71
74
  className="test-class"
72
- />
75
+ />,
73
76
  );
74
- expect(getByTestId('test-id')).toHaveClass('progress');
75
- expect(getByTestId('test-id')).toHaveClass('test-class');
77
+ expect(getByTestId("test-id")).toHaveClass("progress");
78
+ expect(getByTestId("test-id")).toHaveClass("test-class");
76
79
  });
77
80
 
78
- ['green', 'yellow', 'red', 'blue'].forEach(color => {
81
+ ["green", "yellow", "red", "blue"].forEach((color) => {
79
82
  it(`has progress__indicator--${color} class when color is ${color}`, () => {
80
83
  const { container } = render(
81
84
  <Progress
@@ -83,11 +86,11 @@ describe('rendering Progress', () => {
83
86
  color={color}
84
87
  value="test-value"
85
88
  label="test-label"
86
- />
89
+ />,
87
90
  );
88
91
  expect(
89
92
  container.getElementsByClassName(`progress__indicator--${color}`)
90
- .length
93
+ .length,
91
94
  ).toBe(1);
92
95
  });
93
96
  });
@@ -95,13 +98,13 @@ describe('rendering Progress', () => {
95
98
  const { container } = render(
96
99
  <Progress
97
100
  data-testid="test-id"
98
- color={'orange'}
101
+ color={"orange"}
99
102
  value="test-value"
100
103
  label="test-label"
101
- />
104
+ />,
102
105
  );
103
106
  expect(
104
- container.getElementsByClassName('progress__indicator--orange').length
107
+ container.getElementsByClassName("progress__indicator--orange").length,
105
108
  ).toBe(0);
106
109
  });
107
110
  });
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
  import { Grid, GridCol } from "../Grid";
4
4
  import { Image } from "../Image";
5
5
 
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  &--vertical {
29
- .promo-banner__item.grid__col,
29
+ .promo-banner__item[class*="grid__col"],
30
30
  .promo-banner__image.grid__col:not(.promo-banner__image--bleed-right) {
31
31
  padding-left: 0 !important;
32
32
  padding-right: 0 !important;
@@ -35,7 +35,7 @@
35
35
 
36
36
  &--reverse {
37
37
  @include breakpoint.get("md") {
38
- .promo-banner__item.grid__col {
38
+ .promo-banner__item[class*="grid__col"] {
39
39
  padding-left: space.get("medium") !important;
40
40
  padding-right: 0 !important;
41
41
  }
@@ -1,7 +1,6 @@
1
- import React from "react";
2
1
  import { render, screen } from "@testing-library/react";
3
- import { axe } from 'vitest-axe';
4
2
  import userEvent from "@testing-library/user-event";
3
+ import { axe } from "vitest-axe";
5
4
 
6
5
  import { PromoBanner } from "../";
7
6
 
@@ -2,7 +2,6 @@
2
2
  * @vitest-environment jsdom
3
3
  */
4
4
 
5
- import React from "react";
6
5
  import { render, screen } from "@testing-library/react";
7
6
 
8
7
  import { PromoBanner } from "../";
@@ -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 { Card, CardColor } from "../Card";
5
5
 
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import cx from 'classnames';
1
+ import cx from "classnames";
2
+ import React from "react";
3
3
 
4
- import { CLASS_CONTENT } from './constants';
4
+ import { CLASS_CONTENT } from "./constants";
5
5
 
6
6
  interface PromotionCardContentProps {
7
7
  className?: string;
@@ -9,10 +9,10 @@ interface PromotionCardContentProps {
9
9
  [key: string]: any;
10
10
  }
11
11
 
12
- export const PromotionCardContent: React.FC<PromotionCardContentProps> = ({
13
- className,
14
- children,
15
- ...other
12
+ export const PromotionCardContent: React.FC<PromotionCardContentProps> = ({
13
+ className,
14
+ children,
15
+ ...other
16
16
  }) => {
17
17
  const classes = cx(CLASS_CONTENT, className);
18
18
  return (
@@ -22,4 +22,4 @@ export const PromotionCardContent: React.FC<PromotionCardContentProps> = ({
22
22
  );
23
23
  };
24
24
 
25
- PromotionCardContent.displayName = 'PromotionCardContent';
25
+ PromotionCardContent.displayName = "PromotionCardContent";
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import cx from 'classnames';
1
+ import cx from "classnames";
2
+ import React from "react";
3
3
 
4
- import { CLASS_IMAGE_WRAPPER } from './constants';
4
+ import { CLASS_IMAGE_WRAPPER } from "./constants";
5
5
 
6
6
  interface PromotionCardImageWrapperProps {
7
7
  className?: string;
@@ -9,11 +9,9 @@ interface PromotionCardImageWrapperProps {
9
9
  [key: string]: any;
10
10
  }
11
11
 
12
- export const PromotionCardImageWrapper: React.FC<PromotionCardImageWrapperProps> = ({
13
- className,
14
- children,
15
- ...other
16
- }) => {
12
+ export const PromotionCardImageWrapper: React.FC<
13
+ PromotionCardImageWrapperProps
14
+ > = ({ className, children, ...other }) => {
17
15
  const classes = cx(CLASS_IMAGE_WRAPPER, className);
18
16
  return (
19
17
  <div className={classes} {...other}>
@@ -22,4 +20,4 @@ export const PromotionCardImageWrapper: React.FC<PromotionCardImageWrapperProps>
22
20
  );
23
21
  };
24
22
 
25
- PromotionCardImageWrapper.displayName = 'PromotionCardImageWrapper';
23
+ PromotionCardImageWrapper.displayName = "PromotionCardImageWrapper";
@@ -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 { CardSection } from "../Card";
5
5
 
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import cx from 'classnames';
1
+ import cx from "classnames";
2
+ import React from "react";
3
3
 
4
- import { CLASS_TITLE } from './constants';
4
+ import { CLASS_TITLE } from "./constants";
5
5
 
6
6
  interface PromotionCardTitleProps {
7
7
  className?: string;
@@ -9,16 +9,16 @@ interface PromotionCardTitleProps {
9
9
  [key: string]: any;
10
10
  }
11
11
 
12
- export const PromotionCardTitle: React.FC<PromotionCardTitleProps> = ({
13
- className,
14
- children,
15
- ...other
12
+ export const PromotionCardTitle: React.FC<PromotionCardTitleProps> = ({
13
+ className,
14
+ children,
15
+ ...other
16
16
  }) => {
17
17
  const classes = cx(CLASS_TITLE, className);
18
- return React.cloneElement(children, {
19
- className: classes,
20
- ...other
18
+ return React.cloneElement(children, {
19
+ className: classes,
20
+ ...other,
21
21
  } as React.HTMLAttributes<HTMLElement>);
22
22
  };
23
23
 
24
- PromotionCardTitle.displayName = 'PromotionCardTitle';
24
+ PromotionCardTitle.displayName = "PromotionCardTitle";
@@ -1,5 +1,5 @@
1
- export const CLASS_ROOT = 'promotion-card';
1
+ export const CLASS_ROOT = "promotion-card";
2
2
  export const CLASS_SECTION = `${CLASS_ROOT}__section`;
3
3
  export const CLASS_CONTENT = `${CLASS_ROOT}__content`;
4
4
  export const CLASS_IMAGE_WRAPPER = `${CLASS_ROOT}__image-wrapper`;
5
- export const CLASS_TITLE = `${CLASS_ROOT}__title`;
5
+ export const CLASS_TITLE = `${CLASS_ROOT}__title`;
@@ -1,7 +1,6 @@
1
- import React from "react";
2
1
  import { render, screen } from "@testing-library/react";
3
- import { axe } from 'vitest-axe';
4
2
  import userEvent from "@testing-library/user-event";
3
+ import { axe } from "vitest-axe";
5
4
 
6
5
  import { PromotionCard } from "../";
7
6
 
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { render, screen } from "@testing-library/react";
3
2
 
4
3
  import { PromotionCard } from "../PromotionCard";
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
  import { Container } from "../Container";
4
4
 
5
5
  export const sectionColors = [
@@ -1,7 +1,6 @@
1
- import React from "react";
2
1
  import { render, screen } from "@testing-library/react";
3
- import { axe } from 'vitest-axe';
4
2
  import userEvent from "@testing-library/user-event";
3
+ import { axe } from "vitest-axe";
5
4
 
6
5
  import { Section } from "../";
7
6
 
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { render, screen } from "@testing-library/react";
3
2
 
4
3
  import { Section } from "../Section";
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
 
4
4
  const CLASS_ROOT = "skeleton";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { render } from "@testing-library/react";
2
- import { axe } from 'vitest-axe';
2
+ import { axe } from "vitest-axe";
3
3
 
4
4
  import { Skeleton } from "../";
5
5
 
@@ -1,5 +1,5 @@
1
- import React, { AnchorHTMLAttributes } from "react";
2
1
  import cx from "classnames";
2
+ import React, { AnchorHTMLAttributes } from "react";
3
3
 
4
4
  interface SkipLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
5
5
  href?: string;
@@ -1,7 +1,3 @@
1
- /**
2
- * @vitest-environment jsdom
3
- */
4
- import React from "react";
5
1
  import { render, screen } from "@testing-library/react";
6
2
  import userEvent from "@testing-library/user-event";
7
3
 
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import cx from "classnames";
2
+ import React from "react";
3
3
  import { Icon } from "../Icon";
4
4
 
5
5
  const CLASS_ROOT = "social-button";
@@ -2,8 +2,8 @@
2
2
  * @vitest-environment jsdom
3
3
  */
4
4
 
5
- import React from "react";
6
5
  import { render } from "@testing-library/react";
6
+ import React from "react";
7
7
 
8
8
  import { SocialButton } from "../";
9
9
 
@@ -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 const showTitlesFromOptions = ["md", "lg", "xl"] as const;
5
5
  export const variantOptions = ["default", "inverse"] as const;
@@ -1,5 +1,5 @@
1
1
  import { render } from "@testing-library/react";
2
- import { axe } from 'vitest-axe';
2
+ import { axe } from "vitest-axe";
3
3
 
4
4
  import { Stepbar } from "../";
5
5
 
@@ -1,24 +1,30 @@
1
- import React from 'react';
2
- import cx from 'classnames';
1
+ import cx from "classnames";
2
+ import React from "react";
3
3
 
4
4
  interface StickerProps {
5
- color?: 'black' | 'orange';
6
- size?: 'small';
5
+ color?: "black" | "orange";
6
+ size?: "small";
7
7
  children?: React.ReactNode;
8
8
  className?: string;
9
9
  [key: string]: any;
10
10
  }
11
11
 
12
- const CLASS_ROOT = 'sticker';
12
+ const CLASS_ROOT = "sticker";
13
13
 
14
- export const Sticker: React.FC<StickerProps> = ({ color, size, children, className, ...other }) => {
14
+ export const Sticker: React.FC<StickerProps> = ({
15
+ color,
16
+ size,
17
+ children,
18
+ className,
19
+ ...other
20
+ }) => {
15
21
  const classes = cx(
16
22
  CLASS_ROOT,
17
23
  {
18
24
  [`${CLASS_ROOT}--${color}`]: color,
19
25
  [`${CLASS_ROOT}--${size}`]: size,
20
26
  },
21
- className
27
+ className,
22
28
  );
23
29
 
24
30
  return (
@@ -28,4 +34,4 @@ export const Sticker: React.FC<StickerProps> = ({ color, size, children, classNa
28
34
  );
29
35
  };
30
36
 
31
- Sticker.displayName = 'Sticker';
37
+ Sticker.displayName = "Sticker";
@@ -1,2 +1,3 @@
1
1
  import { Sticker } from "./Sticker";
2
+
2
3
  export { Sticker };
@@ -1,17 +1,16 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
- import { axe } from 'vitest-axe';
1
+ import { render } from "@testing-library/react";
2
+ import { axe } from "vitest-axe";
4
3
 
5
- import { Sticker } from '../';
4
+ import { Sticker } from "../";
6
5
 
7
6
  const example = <Sticker color="black">Black sticker</Sticker>;
8
7
 
9
- it('is valid html', () => {
8
+ it("is valid html", () => {
10
9
  const { container } = render(example);
11
10
  expect(container).toHTMLValidate();
12
11
  });
13
12
 
14
- it('is accessible', async () => {
13
+ it("is accessible", async () => {
15
14
  const { container } = render(example);
16
15
  expect(await axe(container)).toHaveNoViolations();
17
16
  });
@@ -1,42 +1,39 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
1
+ import { render } from "@testing-library/react";
3
2
 
4
- import { Sticker } from '../Sticker';
3
+ import { Sticker } from "../Sticker";
5
4
 
6
- describe('rendering Sticker', () => {
7
- describe('initial state', () => {
8
- it('has default class sticker', () => {
5
+ describe("rendering Sticker", () => {
6
+ describe("initial state", () => {
7
+ it("has default class sticker", () => {
9
8
  const { getByTestId } = render(<Sticker data-testid="test-id" />);
10
- expect(getByTestId('test-id')).toHaveClass('sticker');
9
+ expect(getByTestId("test-id")).toHaveClass("sticker");
11
10
  });
12
11
  });
13
12
 
14
- describe('passed props', () => {
15
- it('renders children', () => {
13
+ describe("passed props", () => {
14
+ it("renders children", () => {
16
15
  const { getByText } = render(<Sticker>test</Sticker>);
17
- expect(getByText('test')).toBeInTheDocument();
16
+ expect(getByText("test")).toBeInTheDocument();
18
17
  });
19
18
 
20
- it('has class test-class when className is set to test-class', () => {
19
+ it("has class test-class when className is set to test-class", () => {
21
20
  const { getByTestId } = render(
22
- <Sticker data-testid="test-id" className="test-class" />
21
+ <Sticker data-testid="test-id" className="test-class" />,
23
22
  );
24
- expect(getByTestId('test-id')).toHaveClass('test-class');
23
+ expect(getByTestId("test-id")).toHaveClass("test-class");
25
24
  });
26
- ['black', 'orange'].map(color => {
25
+ ["black", "orange"].map((color) => {
27
26
  it(`has sticker--${color} class when color is ${color}`, () => {
28
27
  const { container } = render(<Sticker color={color} />);
29
28
  expect(
30
- container.getElementsByClassName(`sticker--${color}`).length
29
+ container.getElementsByClassName(`sticker--${color}`).length,
31
30
  ).toBe(1);
32
31
  });
33
32
  });
34
33
 
35
- it('has sticker--small class when size is small', () => {
34
+ it("has sticker--small class when size is small", () => {
36
35
  const { container } = render(<Sticker size="small" />);
37
- expect(
38
- container.getElementsByClassName('sticker--small').length
39
- ).toBe(1);
36
+ expect(container.getElementsByClassName("sticker--small").length).toBe(1);
40
37
  });
41
38
  });
42
39
  });
@@ -1,9 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import React from "react";
4
-
5
- import TableContext from "./TableContext";
6
4
  import { Cell } from "./Cell";
5
+ import TableContext from "./TableContext";
7
6
  import { TableHeader } from "./types";
8
7
 
9
8
  interface SortOptions {
@@ -4,9 +4,8 @@ import React from "react";
4
4
 
5
5
  import { Button } from "../Button/";
6
6
  import { Icon } from "../Icon/";
7
-
8
- import TableContext from "./TableContext";
9
7
  import { Cell } from "./Cell";
8
+ import TableContext from "./TableContext";
10
9
  import { TableRow } from "./types";
11
10
 
12
11
  interface RowProps {
@@ -1,9 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import React from "react";
4
-
5
- import TableContext from "./TableContext";
6
4
  import { Row } from "./Row";
5
+ import TableContext from "./TableContext";
7
6
  import { TableRow } from "./types";
8
7
 
9
8
  const Rows: React.FC = () => {
@@ -1,17 +1,16 @@
1
1
  "use client";
2
2
 
3
- import React, { useId } from "react";
4
3
  import cx from "classnames";
4
+ import React, { useId } from "react";
5
5
 
6
6
  import ConditionalWrapper from "../../utils/ConditionalWrapper";
7
7
  import { useStatic } from "../../utils/hooks";
8
-
8
+ import { Footer } from "./Footer";
9
9
  import { Header } from "./Header";
10
- import TableContext from "./TableContext";
11
10
  import { Rows } from "./Rows";
12
- import { Footer } from "./Footer";
13
11
  import TableStatic from "./Table.static";
14
- import { TableHeader, TableRow, ExpandableRowsCaptions } from "./types";
12
+ import TableContext from "./TableContext";
13
+ import { ExpandableRowsCaptions, TableHeader, TableRow } from "./types";
15
14
 
16
15
  interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
17
16
  /** Caption helps users with screen readers to find a table and understand what it's about and decide if they want to read it. */
@@ -1,2 +1,2 @@
1
- export { Table } from "./Table";
2
1
  export { Footer } from "./Footer";
2
+ export { Table } from "./Table";
@@ -1,7 +1,6 @@
1
1
  import { render } from "@testing-library/react";
2
-
3
- import TableContext from "../TableContext";
4
2
  import { Footer } from "../Footer";
3
+ import TableContext from "../TableContext";
5
4
 
6
5
  describe("rendering Footer", () => {
7
6
  const footers = [