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

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 (211) hide show
  1. package/README.md +9 -3
  2. package/build/components/BodyBanner/style.css +1 -1
  3. package/build/components/BodyBanner/style.css.map +1 -1
  4. package/build/components/Megamenu/style.css +1 -1
  5. package/build/components/Megamenu/style.css.map +1 -1
  6. package/build/components/Table/style.css +1 -1
  7. package/build/components/Table/style.css.map +1 -1
  8. package/build/components/index.js +1 -1
  9. package/build/components/index.js.map +1 -1
  10. package/build/components/tsconfig.tsbuildinfo +1 -1
  11. package/build/components/types/index.d.ts +11 -1
  12. package/build/components/types/src/components/Carousel/Carousel.static.d.ts +2 -0
  13. package/build/components/types/src/components/Forms/TextInput/TextInput.d.ts +3 -0
  14. package/build/components/types/src/components/Icon/index.d.ts +1 -0
  15. package/build/components/types/src/components/Megamenu/Megamenu.static.d.ts +2 -0
  16. package/build/components/types/src/components/Megamenu/constants.d.ts +4 -0
  17. package/build/components/types/src/components/index.d.ts +2 -2
  18. package/build/lib/components.css +1 -1
  19. package/build/lib/components.css.map +1 -1
  20. package/build/lib/footer.js.map +1 -1
  21. package/build/lib/megamenu.css +1 -1
  22. package/build/lib/megamenu.css.map +1 -1
  23. package/build/lib/megamenu.js +1 -1
  24. package/build/lib/megamenu.js.map +1 -1
  25. package/build/lib/scripts.js +1 -1
  26. package/build/lib/scripts.js.map +1 -1
  27. package/build/lib/style.css +1 -1
  28. package/build/lib/style.css.map +1 -1
  29. package/build/lib/tsconfig.tsbuildinfo +1 -1
  30. package/build/search-index.json +4 -4
  31. package/package.json +22 -13
  32. package/src/components/Accordion/tests/{Accordion.static.test.js → Accordion.static.test.jsx} +23 -23
  33. package/src/components/Accordion/tests/{Accordion.unit.test.js → Accordion.unit.test.jsx} +1 -1
  34. package/src/components/Alert/tests/{Alert.conformance.test.js → Alert.conformance.test.jsx} +1 -1
  35. package/src/components/Alert/tests/{Alert.test.js → Alert.test.jsx} +1 -1
  36. package/src/components/Alert/tests/Alert.visual.test.jsx +138 -0
  37. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-custom-title-chromium-linux.png +0 -0
  38. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-danger-chromium-linux.png +0 -0
  39. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-full-width-chromium-linux.png +0 -0
  40. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-success-chromium-linux.png +0 -0
  41. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-buttons-chromium-linux.png +0 -0
  42. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-chromium-linux.png +0 -0
  43. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-description-buttons-chromium-linux.png +0 -0
  44. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-description-chromium-linux.png +0 -0
  45. package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-warning-chromium-linux.png +0 -0
  46. package/src/components/AnchorNavigation/tests/{AnchorNavigation.conformance.test.js → AnchorNavigation.conformance.test.jsx} +1 -1
  47. package/src/components/Bar/tests/{Bar.conformance.test.js → Bar.conformance.test.jsx} +1 -1
  48. package/src/components/BlockAction/tests/{BlockAction.conformance.test.js → BlockAction.conformance.test.jsx} +1 -1
  49. package/src/components/BlockAction/tests/{BlockActionControl.unit.test.js → BlockActionControl.unit.test.jsx} +2 -2
  50. package/src/components/BodyBanner/styles/mixins.scss +1 -5
  51. package/src/components/BodyBanner/tests/{BodyBanner.conformance.test.js → BodyBanner.conformance.test.jsx} +1 -1
  52. package/src/components/Breadcrumbs/tests/{Breadcrumbs.conformance.test.js → Breadcrumbs.conformance.test.jsx} +1 -1
  53. package/src/components/Button/tests/{Button.conformance.test.js → Button.conformance.test.jsx} +1 -1
  54. package/src/components/Button/tests/{Button.test.js → Button.test.jsx} +1 -1
  55. package/src/components/Buttons/tests/{Buttons.conformance.test.js → Buttons.conformance.test.jsx} +1 -1
  56. package/src/components/Card/tests/{Card.conformance.test.js → Card.conformance.test.jsx} +1 -1
  57. package/src/components/Carousel/Carousel.static.ts +40 -0
  58. package/src/components/Carousel/tests/{Carousel.conformance.test.js → Carousel.conformance.test.jsx} +1 -1
  59. package/src/components/Carousel/tests/{Carousel.static.test.js → Carousel.static.test.jsx} +74 -42
  60. package/src/components/CarouselHero/tests/{CarouselHero.conformance.test.js → CarouselHero.conformance.test.jsx} +25 -9
  61. package/src/components/CarouselHero/tests/{CarouselHeroItem.conformance.test.js → CarouselHeroItem.conformance.test.jsx} +1 -1
  62. package/src/components/CarouselPromotions/tests/{CarouselPromotions.conformance.test.js → CarouselPromotions.conformance.test.jsx} +12 -3
  63. package/src/components/CarouselPromotions/tests/{CarouselPromotions.unit.test.js → CarouselPromotions.unit.test.jsx} +2 -3
  64. package/src/components/CartTable/tests/{CartTable.conformance.test.js → CartTable.conformance.test.jsx} +1 -1
  65. package/src/components/Container/tests/{Container.conformance.test.js → Container.conformance.test.jsx} +2 -6
  66. package/src/components/Container/tests/{Container.unit.test.js → Container.unit.test.jsx} +2 -2
  67. package/src/components/Controls/tests/{Controls.test.js → Controls.test.jsx} +12 -12
  68. package/src/components/Cover/tests/{Cover.conformance.test.js → Cover.conformance.test.jsx} +1 -1
  69. package/src/components/Divider/tests/{Divider.conformance.test.js → Divider.conformance.test.jsx} +1 -1
  70. package/src/components/Dropdown/tests/{Dropdown.conformance.test.js → Dropdown.conformance.test.jsx} +1 -1
  71. package/src/components/Expander/tests/{Expander.conformance.test.js → Expander.conformance.test.jsx} +1 -1
  72. package/src/components/FeatureAccordion/tests/{FeatureAccordion.conformance.test.js → FeatureAccordion.conformance.test.jsx} +1 -1
  73. package/src/components/Footer/tests/{Footer.conformance.test.js → Footer.conformance.test.jsx} +1 -5
  74. package/src/components/Forms/Autocomplete/Autocomplete.static.ts +36 -0
  75. package/src/components/Forms/Autocomplete/styles/style.scss +42 -0
  76. package/src/components/Forms/Field/tests/{Autocomplete.Field.conformance.test.js → Autocomplete.Field.conformance.test.jsx} +1 -1
  77. package/src/components/Forms/Field/tests/{Checkbox.Field.conformance.test.js → Checkbox.Field.conformance.test.jsx} +1 -1
  78. package/src/components/Forms/Field/tests/{File.Field.conformance.test.js → File.Field.conformance.test.jsx} +2 -2
  79. package/src/components/Forms/Field/tests/{Group.Field.conformance.test.js → Group.Field.conformance.test.jsx} +1 -1
  80. package/src/components/Forms/Field/tests/{Radio.Field.conformance.test.js → Radio.Field.conformance.test.jsx} +1 -1
  81. package/src/components/Forms/Field/tests/{Rangeslider.Field.test.js → Rangeslider.Field.test.jsx} +1 -1
  82. package/src/components/Forms/Field/tests/{Select.Field.conformance.test.js → Select.Field.conformance.test.jsx} +1 -1
  83. package/src/components/Forms/Field/tests/{Text.Field.conformance.test.js → Text.Field.conformance.test.jsx} +1 -1
  84. package/src/components/Forms/Field/tests/{Textarea.Field.conformance.test.js → Textarea.Field.conformance.test.jsx} +1 -1
  85. package/src/components/Forms/TextInput/TextInput.tsx +30 -3
  86. package/src/components/Forms/TextInput/styles/style.scss +62 -0
  87. package/src/components/Grid/tests/{GridCol.unit.test.js → GridCol.unit.test.jsx} +1 -1
  88. package/src/components/Hero/tests/{Hero.conformance.test.js → Hero.conformance.test.jsx} +1 -1
  89. package/src/components/Icon/index.ts +1 -0
  90. package/src/components/Icon/tests/{Icon.conformance.test.js → Icon.conformance.test.jsx} +1 -1
  91. package/src/components/Icon/tests/{Icon.unit.test.js → Icon.unit.test.jsx} +1 -1
  92. package/src/components/Icon/tests/{Pictogram.unit.test.js → Pictogram.unit.test.jsx} +2 -20
  93. package/src/components/IconList/tests/{IconList.conformance.test.js → IconList.conformance.test.jsx} +2 -2
  94. package/src/components/IconList/tests/{IconList.unit.test.js → IconList.unit.test.jsx} +1 -1
  95. package/src/components/IconList/tests/{Item.unit.test.js → Item.unit.test.jsx} +1 -1
  96. package/src/components/Image/tests/{Image.conformance.test.js → Image.conformance.test.jsx} +1 -1
  97. package/src/components/Image/tests/{Image.unit.test.js → Image.unit.test.jsx} +12 -3
  98. package/src/components/Link/tests/{Link.conformance.test.js → Link.conformance.test.jsx} +2 -2
  99. package/src/components/Link/tests/{Link.unit.test.js → Link.unit.test.jsx} +5 -5
  100. package/src/components/List/tests/{List.conformance.test.js → List.conformance.test.jsx} +1 -1
  101. package/src/components/Loader/tests/{Loader.conformance.test.js → Loader.conformance.test.jsx} +1 -1
  102. package/src/components/Megamenu/Megamenu.static.ts +59 -8
  103. package/src/components/Megamenu/MegamenuBlog.tsx +5 -1
  104. package/src/components/Megamenu/MegamenuSearchContent.tsx +22 -14
  105. package/src/components/Megamenu/constants.ts +4 -0
  106. package/src/components/Megamenu/styles/mixins.scss +48 -3
  107. package/src/components/Megamenu/styles/style.scss +8 -0
  108. package/src/components/Modal/tests/{Modal.conformance.test.js → Modal.conformance.test.jsx} +2 -2
  109. package/src/components/Pagination/tests/{Item.unit.test.js → Item.unit.test.jsx} +1 -1
  110. package/src/components/Pagination/tests/{Pagination.conformance.test.js → Pagination.conformance.test.jsx} +1 -1
  111. package/src/components/Pagination/tests/{Separator.unit.test.js → Separator.unit.test.jsx} +1 -1
  112. package/src/components/Pill/tests/{Pill.conformance.test.js → Pill.conformance.test.jsx} +1 -1
  113. package/src/components/Progress/tests/{Progress.conformance.test.js → Progress.conformance.test.jsx} +1 -1
  114. package/src/components/PromoBanner/tests/{PromoBanner.conformance.test.js → PromoBanner.conformance.test.jsx} +7 -7
  115. package/src/components/PromoBanner/tests/{PromoBanner.unit.test.js → PromoBanner.unit.test.jsx} +1 -1
  116. package/src/components/PromotionCard/tests/{PromotionCard.conformance.test.js → PromotionCard.conformance.test.jsx} +4 -4
  117. package/src/components/PromotionCard/tests/{PromotionCard.unit.test.js → PromotionCard.unit.test.jsx} +1 -1
  118. package/src/components/Section/tests/{Section.conformance.test.js → Section.conformance.test.jsx} +4 -4
  119. package/src/components/Section/tests/{Section.unit.test.js → Section.unit.test.jsx} +1 -1
  120. package/src/components/Skeleton/tests/{Skeleton.conformance.test.js → Skeleton.conformance.test.jsx} +1 -1
  121. package/src/components/SkipLink/tests/{SkipLink.unit.test.js → SkipLink.unit.test.jsx} +2 -2
  122. package/src/components/SocialButton/tests/{SocialButton.unit.test.js → SocialButton.unit.test.jsx} +2 -2
  123. package/src/components/Stepbar/tests/{Stepbar.conformance.test.js → Stepbar.conformance.test.jsx} +1 -1
  124. package/src/components/Sticker/tests/{Sticker.conformance.test.js → Sticker.conformance.test.jsx} +1 -1
  125. package/src/components/Table/styles/mixins.scss +0 -4
  126. package/src/components/Table/styles/style.scss +0 -4
  127. package/src/components/Table/tests/{Table.conformance.test.js → Table.conformance.test.jsx} +1 -1
  128. package/src/components/Tabs/tests/{Tabs.unit.test.js → Tabs.unit.test.jsx} +1 -1
  129. package/src/components/Tag/tests/{Tag.conformance.test.js → Tag.conformance.test.jsx} +1 -1
  130. package/src/components/Tag/tests/{Tag.unit.test.js → Tag.unit.test.jsx} +4 -4
  131. package/src/components/Tag/tests/{TagButton.conformance.test.js → TagButton.conformance.test.jsx} +1 -1
  132. package/src/components/Tag/tests/{TagButton.unit.test.js → TagButton.unit.test.jsx} +3 -2
  133. package/src/components/Testimonial/tests/{Testimonial.conformance.test.js → Testimonial.conformance.test.jsx} +1 -1
  134. package/src/components/Tile/tests/{Tile.conformance.test.js → Tile.conformance.test.jsx} +1 -1
  135. package/src/components/Tile/tests/{Tile.unit.test.js → Tile.unit.test.jsx} +2 -2
  136. package/src/components/Tooltip/tests/{Tooltip.conformance.test.js → Tooltip.conformance.test.jsx} +1 -1
  137. package/src/components/Tooltip/tests/{Tooltip.unit.test.js → Tooltip.unit.test.jsx} +9 -5
  138. package/src/components/index.ts +3 -1
  139. /package/src/components/AnchorNavigation/tests/{AnchorNavigation.unit.test.js → AnchorNavigation.unit.test.jsx} +0 -0
  140. /package/src/components/Bar/tests/{Bar.unit.test.js → Bar.unit.test.jsx} +0 -0
  141. /package/src/components/Bar/tests/{BarBreak.unit.test.js → BarBreak.unit.test.jsx} +0 -0
  142. /package/src/components/Bar/tests/{BarItem.unit.test.js → BarItem.unit.test.jsx} +0 -0
  143. /package/src/components/BlockAction/tests/{BlockAction.unit.test.js → BlockAction.unit.test.jsx} +0 -0
  144. /package/src/components/BlockAction/tests/{BlockActionIndicator.unit.test.js → BlockActionIndicator.unit.test.jsx} +0 -0
  145. /package/src/components/BlockAction/tests/{CloneElementWithClassName.unit.test.js → CloneElementWithClassName.unit.test.jsx} +0 -0
  146. /package/src/components/BodyBanner/tests/{BodyBanner.unit.test.js → BodyBanner.unit.test.jsx} +0 -0
  147. /package/src/components/Breadcrumbs/tests/{BreadcrumbItem.unit.test.js → BreadcrumbItem.unit.test.jsx} +0 -0
  148. /package/src/components/Breadcrumbs/tests/{Breadcrumbs.integration.test.js → Breadcrumbs.integration.test.jsx} +0 -0
  149. /package/src/components/Breadcrumbs/tests/{Breadcrumbs.unit.test.js → Breadcrumbs.unit.test.jsx} +0 -0
  150. /package/src/components/Button/tests/{IconButton.unit.test.js → IconButton.unit.test.jsx} +0 -0
  151. /package/src/components/Buttons/tests/{Buttons.unit.test.js → Buttons.unit.test.jsx} +0 -0
  152. /package/src/components/Card/tests/{Card.unit.test.js → Card.unit.test.jsx} +0 -0
  153. /package/src/components/Card/tests/{CardProductHeader.unit.test.js → CardProductHeader.unit.test.jsx} +0 -0
  154. /package/src/components/Card/tests/{CardSection.unit.test.js → CardSection.unit.test.jsx} +0 -0
  155. /package/src/components/Carousel/tests/{Carousel.unit.test.js → Carousel.unit.test.jsx} +0 -0
  156. /package/src/components/Carousel/tests/{CarouselItem.unit.test.js → CarouselItem.unit.test.jsx} +0 -0
  157. /package/src/components/CarouselHero/tests/{CarouselHero.unit.test.js → CarouselHero.unit.test.jsx} +0 -0
  158. /package/src/components/CarouselHero/tests/{CarouselHeroItem.unit.test.js → CarouselHeroItem.unit.test.jsx} +0 -0
  159. /package/src/components/CarouselPromotions/tests/{CarouselPromotionsItem.unit.test.js → CarouselPromotionsItem.unit.test.jsx} +0 -0
  160. /package/src/components/Cover/tests/{Cover.unit.test.js → Cover.unit.test.jsx} +0 -0
  161. /package/src/components/Divider/tests/{Divider.unit.test.js → Divider.unit.test.jsx} +0 -0
  162. /package/src/components/Dropdown/tests/{Dropdown.unit.test.js → Dropdown.unit.test.jsx} +0 -0
  163. /package/src/components/Expander/tests/{Expander.unit.test.js → Expander.unit.test.jsx} +0 -0
  164. /package/src/components/FeatureAccordion/tests/{FeatureAccordion.unit.test.js → FeatureAccordion.unit.test.jsx} +0 -0
  165. /package/src/components/Footer/tests/{Footer.unit.test.js → Footer.unit.test.jsx} +0 -0
  166. /package/src/components/Forms/Checkbox/tests/{Checkbox.unit.test.js → Checkbox.unit.test.jsx} +0 -0
  167. /package/src/components/Forms/DatePicker/tests/{DatePicker.unit.test.js → DatePicker.unit.test.jsx} +0 -0
  168. /package/src/components/Forms/Field/tests/{Field.unit.test.js → Field.unit.test.jsx} +0 -0
  169. /package/src/components/Forms/Field/tests/{Label.unit.test.js → Label.unit.test.jsx} +0 -0
  170. /package/src/components/Forms/Field/tests/{Messages.unit.test.js → Messages.unit.test.jsx} +0 -0
  171. /package/src/components/Forms/Field/tests/{Tooltip.unit.test.js → Tooltip.unit.test.jsx} +0 -0
  172. /package/src/components/Forms/Fieldset/tests/{Fieldset.unit.test.js → Fieldset.unit.test.jsx} +0 -0
  173. /package/src/components/Forms/Group/tests/{Group.unit.test.js → Group.unit.test.jsx} +0 -0
  174. /package/src/components/Forms/Group/tests/{Item.unit.test.js → Item.unit.test.jsx} +0 -0
  175. /package/src/components/Forms/Hint/tests/{Hint.unit.test.js → Hint.unit.test.jsx} +0 -0
  176. /package/src/components/Forms/InputStepper/tests/{InputStepper.unit.test.js → InputStepper.unit.test.jsx} +0 -0
  177. /package/src/components/Forms/Label/tests/{Label.unit.test.js → Label.unit.test.jsx} +0 -0
  178. /package/src/components/Forms/Message/tests/{Message.unit.test.js → Message.unit.test.jsx} +0 -0
  179. /package/src/components/Forms/Radio/tests/{Radio.unit.test.js → Radio.unit.test.jsx} +0 -0
  180. /package/src/components/Forms/Select/tests/{Select.unit.test.js → Select.unit.test.jsx} +0 -0
  181. /package/src/components/Forms/TextArea/tests/{TextArea.unit.test.js → TextArea.unit.test.jsx} +0 -0
  182. /package/src/components/Forms/TextInput/tests/{TextInput.unit.test.js → TextInput.unit.test.jsx} +0 -0
  183. /package/src/components/Gauge/tests/{Gauge.conformance.test.js → Gauge.conformance.test.jsx} +0 -0
  184. /package/src/components/Gauge/tests/{Gauge.unit.test.js → Gauge.unit.test.jsx} +0 -0
  185. /package/src/components/Grid/tests/{Grid.unit.test.js → Grid.unit.test.jsx} +0 -0
  186. /package/src/components/Hero/tests/{Hero.unit.test.js → Hero.unit.test.jsx} +0 -0
  187. /package/src/components/List/tests/{ClickableControl.unit.test.js → ClickableControl.unit.test.jsx} +0 -0
  188. /package/src/components/List/tests/{List.unit.test.js → List.unit.test.jsx} +0 -0
  189. /package/src/components/List/tests/{ListItem.unit.test.js → ListItem.unit.test.jsx} +0 -0
  190. /package/src/components/Loader/tests/{Loader.unit.test.js → Loader.unit.test.jsx} +0 -0
  191. /package/src/components/Modal/tests/{Modal.unit.test.js → Modal.unit.test.jsx} +0 -0
  192. /package/src/components/Modal/tests/{ModalBody.unit.test.js → ModalBody.unit.test.jsx} +0 -0
  193. /package/src/components/Modal/tests/{ModalCloseButton.unit.test.js → ModalCloseButton.unit.test.jsx} +0 -0
  194. /package/src/components/Modal/tests/{ModalProductHeader.unit.test.js → ModalProductHeader.unit.test.jsx} +0 -0
  195. /package/src/components/Modal/tests/{ModalTitle.unit.test.js → ModalTitle.unit.test.jsx} +0 -0
  196. /package/src/components/Pagination/tests/{Pagination.unit.test.js → Pagination.unit.test.jsx} +0 -0
  197. /package/src/components/Pill/tests/{Pill.unit.test.js → Pill.unit.test.jsx} +0 -0
  198. /package/src/components/Progress/tests/{Progress.unit.test.js → Progress.unit.test.jsx} +0 -0
  199. /package/src/components/Skeleton/tests/{Skeleton.unit.test.js → Skeleton.unit.test.jsx} +0 -0
  200. /package/src/components/Stepbar/tests/{Stepbar.unit.test.js → Stepbar.unit.test.jsx} +0 -0
  201. /package/src/components/Sticker/tests/{Sticker.unit.test.js → Sticker.unit.test.jsx} +0 -0
  202. /package/src/components/Table/tests/{Cell.unit.test.js → Cell.unit.test.jsx} +0 -0
  203. /package/src/components/Table/tests/{Footer.unit.test.js → Footer.unit.test.jsx} +0 -0
  204. /package/src/components/Table/tests/{Header.unit.test.js → Header.unit.test.jsx} +0 -0
  205. /package/src/components/Table/tests/{Row.unit.test.js → Row.unit.test.jsx} +0 -0
  206. /package/src/components/Table/tests/{Rows.unit.test.js → Rows.unit.test.jsx} +0 -0
  207. /package/src/components/Table/tests/{Table.unit.test.js → Table.unit.test.jsx} +0 -0
  208. /package/src/components/Tabs/tests/{Tab.unit.test.js → Tab.unit.test.jsx} +0 -0
  209. /package/src/components/Tabs/tests/{TabPanel.unit.test.js → TabPanel.unit.test.jsx} +0 -0
  210. /package/src/components/Testimonial/tests/{Testimonial.unit.test.js → Testimonial.unit.test.jsx} +0 -0
  211. /package/src/components/Tooltip/tests/{InfoTooltip.unit.test.js → InfoTooltip.unit.test.jsx} +0 -0
@@ -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 { Skeleton } from "../";
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @jest-environment jsdom
2
+ * @vitest-environment jsdom
3
3
  */
4
4
  import React from "react";
5
5
  import { render, screen } from "@testing-library/react";
@@ -76,7 +76,7 @@ describe("keyboard navigation", () => {
76
76
  expect(screen.getByTestId("skip-link")).toHaveFocus();
77
77
  });
78
78
 
79
- it.failing("focuses main on click", async () => {
79
+ it.fails("focuses main on click", async () => {
80
80
  render(<TestBase />);
81
81
 
82
82
  const { tab, keyboard } = userEvent.setup();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @jest-environment jsdom
2
+ * @vitest-environment jsdom
3
3
  */
4
4
 
5
5
  import React from "react";
@@ -64,7 +64,7 @@ describe("rendering SocialButton", () => {
64
64
  });
65
65
 
66
66
  it("passes onClick handler", () => {
67
- const onClick = jest.fn();
67
+ const onClick = vi.fn();
68
68
  const { getByRole } = render(<SocialButton name="x" onClick={onClick} />);
69
69
  getByRole("button").click();
70
70
  expect(onClick).toHaveBeenCalled();
@@ -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 { Stepbar } from "../";
5
5
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import { axe } from 'jest-axe';
3
+ import { axe } from 'vitest-axe';
4
4
 
5
5
  import { Sticker } from '../';
6
6
 
@@ -36,10 +36,6 @@
36
36
  font-weight: 400;
37
37
  }
38
38
 
39
- @mixin rows-first-cell {
40
- padding-left: 0;
41
- }
42
-
43
39
  @mixin body-sibling {
44
40
  border-top: config.$fat-border-size solid var(--color-border-strong);
45
41
  }
@@ -27,10 +27,6 @@
27
27
  @include mixins.body-header-cells;
28
28
  }
29
29
 
30
- tr > *:first-of-type {
31
- @include mixins.rows-first-cell;
32
- }
33
-
34
30
  tbody + tbody {
35
31
  @include mixins.body-sibling;
36
32
  }
@@ -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 "../../../../__mocks__/resizeObserverMock";
5
5
  import { Table } from "../";
@@ -181,7 +181,7 @@ describe("rendering Tabs", () => {
181
181
  tabs = screen.getAllByRole("tab");
182
182
  });
183
183
  beforeAll(() => {
184
- window.document.getSelection = jest.fn();
184
+ window.document.getSelection = vi.fn();
185
185
  });
186
186
  it('"ArrowLeft" moves focus left and loops from first to last item', async () => {
187
187
  expect.assertions(3);
@@ -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 { colors } from "../Tag";
5
5
  import { Tag, TagButton } from "..";
@@ -58,7 +58,7 @@ describe("rendering", () => {
58
58
  describe("interactive functionality", () => {
59
59
  describe("onClick prop", () => {
60
60
  it("renders as button when onClick is provided", () => {
61
- const handleClick = jest.fn();
61
+ const handleClick = vi.fn();
62
62
  const { getByRole } = render(
63
63
  <Tag onClick={handleClick}>Clickable Tag</Tag>,
64
64
  );
@@ -67,7 +67,7 @@ describe("rendering", () => {
67
67
  });
68
68
 
69
69
  it("calls onClick when clicked", () => {
70
- const handleClick = jest.fn();
70
+ const handleClick = vi.fn();
71
71
  const { getByRole } = render(
72
72
  <Tag onClick={handleClick}>Clickable Tag</Tag>,
73
73
  );
@@ -76,7 +76,7 @@ describe("rendering", () => {
76
76
  });
77
77
 
78
78
  it("does not call onClick when disabled", () => {
79
- const handleClick = jest.fn();
79
+ const handleClick = vi.fn();
80
80
  const { getByRole } = render(
81
81
  <Tag onClick={handleClick} isDisabled>
82
82
  Disabled Clickable Tag
@@ -87,7 +87,7 @@ describe("rendering", () => {
87
87
  });
88
88
 
89
89
  it("has button type set to 'button'", () => {
90
- const handleClick = jest.fn();
90
+ const handleClick = vi.fn();
91
91
  const { getByRole } = render(
92
92
  <Tag onClick={handleClick}>Clickable Tag</Tag>,
93
93
  );
@@ -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 { TagButton } from "../TagButton";
5
5
 
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { render, fireEvent } from "@testing-library/react";
2
3
 
3
4
  import { TagButton } from "../TagButton";
@@ -61,7 +62,7 @@ describe("TagButton", () => {
61
62
 
62
63
  describe("interaction", () => {
63
64
  it("calls onClick when clicked", () => {
64
- const handleClick = jest.fn();
65
+ const handleClick = vi.fn();
65
66
  const { getByRole } = render(
66
67
  <TagButton iconName="close" ariaLabel="Close" onClick={handleClick} />,
67
68
  );
@@ -71,7 +72,7 @@ describe("TagButton", () => {
71
72
  });
72
73
 
73
74
  it("does not call onClick when disabled", () => {
74
- const handleClick = jest.fn();
75
+ const handleClick = vi.fn();
75
76
  const { getByRole } = render(
76
77
  <TagButton
77
78
  iconName="close"
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import { axe } from 'jest-axe';
3
+ import { axe } from 'vitest-axe';
4
4
 
5
5
  import { Testimonial } from '../';
6
6
 
@@ -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 { Tile } from "../";
5
5
 
@@ -60,8 +60,8 @@ describe("rendering Tile", () => {
60
60
  backgroundImage={{ src: "./test.png", alt: "test" }}
61
61
  />,
62
62
  );
63
- expect(container.querySelector("img").src).toBe(
64
- "http://localhost/test.png",
63
+ expect(new URL(container.querySelector("img").src).pathname).toBe(
64
+ "/test.png",
65
65
  );
66
66
  });
67
67
  it("background image has alt set to backgroundImage.alt", () => {
@@ -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 { Tooltip } from "../";
@@ -1,4 +1,4 @@
1
- import { render, fireEvent } from "@testing-library/react";
1
+ import { render, fireEvent, waitFor } from "@testing-library/react";
2
2
 
3
3
  import { Tooltip } from "../Tooltip";
4
4
 
@@ -281,17 +281,21 @@ describe("rendering Tooltip", () => {
281
281
  fireEvent.mouseLeave(container.querySelector("button"));
282
282
  expect(getByTestId("test-id")).not.toHaveClass("is-visible");
283
283
  });
284
- it("has hidden attribute set to true after mouse leaves button", () => {
284
+ it("keeps hidden attribute unset after mouse leaves button", async () => {
285
285
  const { getByTestId, container } = tooltip;
286
286
  fireEvent.mouseEnter(container.querySelector("button"));
287
287
  fireEvent.mouseLeave(container.querySelector("button"));
288
- expect(getByTestId("test-id").hidden).toBe(true);
288
+ await waitFor(() => {
289
+ expect(getByTestId("test-id").hidden).toBe(false);
290
+ });
289
291
  });
290
- it("has hidden attribute set to true after button blur", () => {
292
+ it("keeps hidden attribute unset after button blur", async () => {
291
293
  const { getByTestId, container } = tooltip;
292
294
  fireEvent.focus(container.querySelector("button"));
293
295
  fireEvent.blur(container.querySelector("button"));
294
- expect(getByTestId("test-id").hidden).toBe(true);
296
+ await waitFor(() => {
297
+ expect(getByTestId("test-id").hidden).toBe(false);
298
+ });
295
299
  });
296
300
  });
297
301
  });
@@ -35,7 +35,7 @@ import {
35
35
  import { Expander } from "./Expander/Expander";
36
36
  import { FeatureAccordion, FeatureAccordionItem } from "./FeatureAccordion";
37
37
  import { Card, CardSection, CardProductHeader } from "./Card";
38
- import { Icon, Pictogram } from "./Icon";
38
+ import { Icon, Pictogram, SpritePathContext, SpritePathProvider } from "./Icon";
39
39
  import { Gauge } from "./Gauge";
40
40
  import { Grid, GridCol } from "./Grid";
41
41
  import { Image } from "./Image";
@@ -166,6 +166,8 @@ export {
166
166
  ModalTitle,
167
167
  Pagination,
168
168
  Pictogram,
169
+ SpritePathContext,
170
+ SpritePathProvider,
169
171
  Pill,
170
172
  Progress,
171
173
  PromoBanner,