@orangesk/orange-design-system 2.0.0-beta.2 → 2.0.0-beta.20

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 (762) hide show
  1. package/README.md +346 -19
  2. package/build/components/Accordion/style.css +2 -0
  3. package/build/components/Accordion/style.css.map +1 -0
  4. package/build/components/Alert/style.css +2 -0
  5. package/build/components/Alert/style.css.map +1 -0
  6. package/build/components/AnchorNavigation/style.css +1 -1
  7. package/build/components/AnchorNavigation/style.css.map +1 -1
  8. package/build/components/Bar/style.css +2 -0
  9. package/build/components/Bar/style.css.map +1 -0
  10. package/build/components/BlockAction/style.css +2 -0
  11. package/build/components/BlockAction/style.css.map +1 -0
  12. package/build/components/BodyBanner/style.css +1 -1
  13. package/build/components/BodyBanner/style.css.map +1 -1
  14. package/build/components/Breadcrumbs/style.css +2 -0
  15. package/build/components/Breadcrumbs/style.css.map +1 -0
  16. package/build/components/Button/style.css +2 -0
  17. package/build/components/Button/style.css.map +1 -0
  18. package/build/components/Buttons/style.css +2 -0
  19. package/build/components/Buttons/style.css.map +1 -0
  20. package/build/components/Card/style.css +2 -0
  21. package/build/components/Card/style.css.map +1 -0
  22. package/build/components/Carousel/style.css +1 -1
  23. package/build/components/Carousel/style.css.map +1 -1
  24. package/build/components/CarouselHero/style.css +2 -0
  25. package/build/components/CarouselHero/style.css.map +1 -0
  26. package/build/components/CarouselPromotions/style.css +2 -0
  27. package/build/components/CarouselPromotions/style.css.map +1 -0
  28. package/build/components/CartTable/style.css +1 -1
  29. package/build/components/CartTable/style.css.map +1 -1
  30. package/build/components/Container/style.css +2 -0
  31. package/build/components/Container/style.css.map +1 -0
  32. package/build/components/Controls/style.css +2 -0
  33. package/build/components/Controls/style.css.map +1 -0
  34. package/build/components/Cover/style.css +2 -0
  35. package/build/components/Cover/style.css.map +1 -0
  36. package/build/components/Divider/style.css +2 -0
  37. package/build/components/Divider/style.css.map +1 -0
  38. package/build/components/DocumentationSidebar/style.css +1 -1
  39. package/build/components/DocumentationSidebar/style.css.map +1 -1
  40. package/build/components/Dropdown/style.css +1 -1
  41. package/build/components/Dropdown/style.css.map +1 -1
  42. package/build/components/Expander/style.css +2 -0
  43. package/build/components/Expander/style.css.map +1 -0
  44. package/build/components/FeatureAccordion/style.css +1 -1
  45. package/build/components/FeatureAccordion/style.css.map +1 -1
  46. package/build/components/Footer/style.css +1 -1
  47. package/build/components/Footer/style.css.map +1 -1
  48. package/build/components/Gauge/style.css +2 -0
  49. package/build/components/Gauge/style.css.map +1 -0
  50. package/build/components/Grid/style.css +1 -1
  51. package/build/components/Grid/style.css.map +1 -1
  52. package/build/components/Hero/style.css +1 -1
  53. package/build/components/Hero/style.css.map +1 -1
  54. package/build/components/Icon/style.css +2 -0
  55. package/build/components/Icon/style.css.map +1 -0
  56. package/build/components/IconList/style.css +1 -1
  57. package/build/components/IconList/style.css.map +1 -1
  58. package/build/components/Image/style.css +2 -0
  59. package/build/components/Image/style.css.map +1 -0
  60. package/build/components/Link/style.css +2 -0
  61. package/build/components/Link/style.css.map +1 -0
  62. package/build/components/List/style.css +2 -0
  63. package/build/components/List/style.css.map +1 -0
  64. package/build/components/Loader/style.css +2 -0
  65. package/build/components/Loader/style.css.map +1 -0
  66. package/build/components/Megamenu/style.css +2 -0
  67. package/build/components/Megamenu/style.css.map +1 -0
  68. package/build/components/Modal/style.css +2 -0
  69. package/build/components/Modal/style.css.map +1 -0
  70. package/build/components/Pagination/style.css +2 -0
  71. package/build/components/Pagination/style.css.map +1 -0
  72. package/build/components/Pill/style.css +2 -0
  73. package/build/components/Pill/style.css.map +1 -0
  74. package/build/components/Preview/style.css +1 -1
  75. package/build/components/Preview/style.css.map +1 -1
  76. package/build/components/Progress/style.css +2 -0
  77. package/build/components/Progress/style.css.map +1 -0
  78. package/build/components/PromoBanner/style.css +1 -1
  79. package/build/components/PromoBanner/style.css.map +1 -1
  80. package/build/components/PromotionCard/style.css +2 -0
  81. package/build/components/PromotionCard/style.css.map +1 -0
  82. package/build/components/Section/style.css +2 -0
  83. package/build/components/Section/style.css.map +1 -0
  84. package/build/components/Skeleton/style.css +2 -0
  85. package/build/components/Skeleton/style.css.map +1 -0
  86. package/build/components/SkipLink/style.css +2 -0
  87. package/build/components/SkipLink/style.css.map +1 -0
  88. package/build/components/Stepbar/style.css +2 -0
  89. package/build/components/Stepbar/style.css.map +1 -0
  90. package/build/components/Sticker/style.css +2 -0
  91. package/build/components/Sticker/style.css.map +1 -0
  92. package/build/components/Table/style.css +2 -0
  93. package/build/components/Table/style.css.map +1 -0
  94. package/build/components/Tabs/style.css +2 -0
  95. package/build/components/Tabs/style.css.map +1 -0
  96. package/build/components/Tag/style.css +2 -0
  97. package/build/components/Tag/style.css.map +1 -0
  98. package/build/components/Testimonial/style.css +2 -0
  99. package/build/components/Testimonial/style.css.map +1 -0
  100. package/build/components/Tile/style.css +2 -0
  101. package/build/components/Tile/style.css.map +1 -0
  102. package/build/components/Tooltip/style.css +1 -1
  103. package/build/components/Tooltip/style.css.map +1 -1
  104. package/build/components/index.js +1 -23
  105. package/build/components/index.js.map +1 -1
  106. package/build/components/tsconfig.tsbuildinfo +1 -1
  107. package/build/components/types/index.d.ts +1485 -0
  108. package/build/components/types/src/components/Accordion/Accordion.d.ts +2 -2
  109. package/build/components/types/src/components/Accordion/Accordion.static.d.ts +1 -0
  110. package/build/components/types/src/components/Alert/Alert.d.ts +0 -2
  111. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -2
  112. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +20 -17
  113. package/build/components/types/src/components/BlockAction/BlockAction.d.ts +2 -0
  114. package/build/components/types/src/components/BlockAction/Context.d.ts +2 -0
  115. package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +10 -10
  116. package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  117. package/build/components/types/src/components/Button/Button.d.ts +1 -1
  118. package/build/components/types/src/components/Button/index.d.ts +3 -4
  119. package/build/components/types/src/components/Card/Card.d.ts +2 -1
  120. package/build/components/types/src/components/Card/CardSection.d.ts +2 -2
  121. package/build/components/types/src/components/Card/index.d.ts +1 -0
  122. package/build/components/types/src/components/Carousel/Carousel.d.ts +4 -2
  123. package/build/components/types/src/components/Carousel/Carousel.static.d.ts +61 -7
  124. package/build/components/types/src/components/Carousel/constants.d.ts +2 -0
  125. package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +17 -0
  126. package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +47 -0
  127. package/build/components/types/src/components/CarouselHero/CarouselHeroItem.d.ts +8 -0
  128. package/build/components/types/src/components/CarouselHero/constants.d.ts +33 -0
  129. package/build/components/types/src/components/CarouselHero/index.d.ts +2 -0
  130. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +0 -1
  131. package/build/components/types/src/components/Controls/Controls.d.ts +0 -1
  132. package/build/components/types/src/components/Cover/Cover.d.ts +3 -3
  133. package/build/components/types/src/components/Divider/Divider.d.ts +0 -4
  134. package/build/components/types/src/components/DocumentationSidebar/DocumentationSidebar.d.ts +1 -0
  135. package/build/components/types/src/components/Expander/Expander.d.ts +2 -5
  136. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +1 -3
  137. package/build/components/types/src/components/Footer/Footer.d.ts +1 -5
  138. package/build/components/types/src/components/Footer/constants.d.ts +9 -0
  139. package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +0 -1
  140. package/build/components/types/src/components/Forms/Select/index.d.ts +1 -1
  141. package/build/components/types/src/components/Grid/Grid.d.ts +1 -1
  142. package/build/components/types/src/components/Grid/GridCol.d.ts +1 -1
  143. package/build/components/types/src/components/Hero/Hero.d.ts +0 -3
  144. package/build/components/types/src/components/Icon/IconSearch.d.ts +2 -2
  145. package/build/components/types/src/components/Icon/IconSearchWrapper.d.ts +1 -1
  146. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +255 -252
  147. package/build/components/types/src/components/Link/Link.d.ts +2 -2
  148. package/build/components/types/src/components/Megamenu/Megamenu.d.ts +6 -1
  149. package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +2 -1
  150. package/build/components/types/src/components/Megamenu/constants.d.ts +4 -0
  151. package/build/components/types/src/components/Megamenu/static.d.ts +2 -3
  152. package/build/components/types/src/components/Modal/Modal.d.ts +0 -4
  153. package/build/components/types/src/components/Modal/ModalBody.d.ts +3 -3
  154. package/build/components/types/src/components/Modal/ModalProductHeader.d.ts +2 -0
  155. package/build/components/types/src/components/Modal/index.d.ts +0 -1
  156. package/build/components/types/src/components/Pagination/Pagination.d.ts +2 -5
  157. package/build/components/types/src/components/Pagination/Separator.d.ts +2 -2
  158. package/build/components/types/src/components/Pill/Pill.d.ts +3 -1
  159. package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
  160. package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -0
  161. package/build/components/types/src/components/Preview/index.d.ts +1 -1
  162. package/build/components/types/src/components/Progress/Progress.d.ts +0 -1
  163. package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +9 -6
  164. package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +3 -3
  165. package/build/components/types/src/components/Section/Section.d.ts +4 -1
  166. package/build/components/types/src/components/Stepbar/Stepbar.d.ts +0 -2
  167. package/build/components/types/src/components/Table/Row.d.ts +1 -2
  168. package/build/components/types/src/components/Table/Table.d.ts +2 -2
  169. package/build/components/types/src/components/Table/docsData.d.ts +2 -0
  170. package/build/components/types/src/components/Table/types.d.ts +1 -0
  171. package/build/components/types/src/components/Tabs/Tabs.d.ts +0 -2
  172. package/build/components/types/src/components/Tag/Tag.d.ts +0 -2
  173. package/build/components/types/src/components/Tile/Tile.d.ts +2 -1
  174. package/build/components/types/src/components/Tooltip/Tooltip.d.ts +0 -1
  175. package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +1 -1
  176. package/build/components/types/src/components/index.d.ts +4 -5
  177. package/build/components/types/src/docs/utils/SpacePreview.d.ts +1 -2
  178. package/build/components/types/src/scripts/index.d.ts +12 -3
  179. package/build/components/types/src/scripts/modules/SameHeight.d.ts +3 -0
  180. package/build/components/types/src/styles/export/color.d.ts +105 -0
  181. package/build/fonts/HelveticaNeue-Bold.woff2 +0 -0
  182. package/build/fonts/HelveticaNeue-Light.woff2 +0 -0
  183. package/build/fonts/HelveticaNeue-Roman.woff2 +0 -0
  184. package/build/lib/base.css +3 -0
  185. package/build/lib/base.css.map +1 -0
  186. package/build/lib/components.css +1 -1
  187. package/build/lib/components.css.map +1 -1
  188. package/build/lib/footer.css +2 -0
  189. package/build/lib/footer.css.map +1 -0
  190. package/build/lib/megamenu.css +1 -1
  191. package/build/lib/megamenu.css.map +1 -1
  192. package/build/lib/megamenu.js +1 -1
  193. package/build/lib/megamenu.js.map +1 -1
  194. package/build/lib/scripts.js +1 -9
  195. package/build/lib/scripts.js.map +1 -1
  196. package/build/lib/style.css +1 -1
  197. package/build/lib/style.css.map +1 -1
  198. package/build/lib/tsconfig.tsbuildinfo +1 -1
  199. package/build/lib/utilities.css +2 -0
  200. package/build/lib/utilities.css.map +1 -0
  201. package/build/sprite.svg +1 -1
  202. package/package.json +46 -38
  203. package/public/fonts/HelveticaNeue-Bold.woff2 +0 -0
  204. package/public/fonts/HelveticaNeue-Light.woff2 +0 -0
  205. package/public/fonts/HelveticaNeue-Roman.woff2 +0 -0
  206. package/src/assets/icons/ai.svg +6 -0
  207. package/src/assets/icons/article.svg +7 -0
  208. package/src/assets/icons/pictogram-activation--dark.svg +10 -11
  209. package/src/assets/icons/pictogram-activation-free--dark.svg +4 -5
  210. package/src/assets/icons/pictogram-activation-free.svg +4 -5
  211. package/src/assets/icons/pictogram-activation.svg +10 -11
  212. package/src/assets/icons/pictogram-archive--dark.svg +3 -4
  213. package/src/assets/icons/pictogram-archive.svg +3 -4
  214. package/src/assets/icons/pictogram-calling-minutes--dark.svg +3 -4
  215. package/src/assets/icons/pictogram-calling-minutes.svg +3 -4
  216. package/src/assets/icons/pictogram-canal-plus--dark.svg +3 -4
  217. package/src/assets/icons/pictogram-canal-plus.svg +3 -4
  218. package/src/assets/icons/pictogram-competition-tickets--dark.svg +11 -12
  219. package/src/assets/icons/pictogram-competition-tickets.svg +11 -12
  220. package/src/assets/icons/pictogram-device-discount--dark.svg +7 -6
  221. package/src/assets/icons/pictogram-device-discount.svg +5 -6
  222. package/src/assets/icons/pictogram-discount-general--dark.svg +5 -6
  223. package/src/assets/icons/pictogram-discount-general.svg +5 -6
  224. package/src/assets/icons/pictogram-discount-price--dark.svg +5 -6
  225. package/src/assets/icons/pictogram-discount-price.svg +5 -6
  226. package/src/assets/icons/pictogram-extra-data--dark.svg +6 -7
  227. package/src/assets/icons/pictogram-extra-data.svg +6 -7
  228. package/src/assets/icons/pictogram-free-payment--dark.svg +5 -6
  229. package/src/assets/icons/pictogram-free-payment.svg +3 -6
  230. package/src/assets/icons/pictogram-gift--dark.svg +12 -13
  231. package/src/assets/icons/pictogram-gift-one-benefit--dark.svg +7 -8
  232. package/src/assets/icons/pictogram-gift-one-benefit.svg +7 -8
  233. package/src/assets/icons/pictogram-gift-two-benefits--dark.svg +8 -9
  234. package/src/assets/icons/pictogram-gift-two-benefits.svg +8 -9
  235. package/src/assets/icons/pictogram-gift.svg +3 -4
  236. package/src/assets/icons/pictogram-hbo-max--dark.svg +5 -6
  237. package/src/assets/icons/pictogram-hbo-max.svg +5 -6
  238. package/src/assets/icons/pictogram-infinite-sms--dark.svg +3 -4
  239. package/src/assets/icons/pictogram-infinite-sms.svg +3 -4
  240. package/src/assets/icons/pictogram-installation--dark.svg +4 -5
  241. package/src/assets/icons/pictogram-installation-free--dark.svg +4 -5
  242. package/src/assets/icons/pictogram-installation-free.svg +4 -5
  243. package/src/assets/icons/pictogram-installation.svg +4 -5
  244. package/src/assets/icons/pictogram-max--dark.svg +3 -4
  245. package/src/assets/icons/pictogram-max-canal-plus--dark.svg +5 -6
  246. package/src/assets/icons/pictogram-max-canal-plus.svg +5 -6
  247. package/src/assets/icons/pictogram-max.svg +3 -4
  248. package/src/assets/icons/pictogram-moj-orange-app--dark.svg +3 -4
  249. package/src/assets/icons/pictogram-moj-orange-app.svg +3 -4
  250. package/src/assets/icons/pictogram-movie-storage--dark.svg +4 -5
  251. package/src/assets/icons/pictogram-movie-storage.svg +4 -5
  252. package/src/assets/icons/pictogram-online-protection--dark.svg +3 -4
  253. package/src/assets/icons/pictogram-online-protection.svg +3 -4
  254. package/src/assets/icons/pictogram-random-damage--dark.svg +4 -8
  255. package/src/assets/icons/pictogram-random-damage.svg +4 -8
  256. package/src/assets/icons/pictogram-recycling--dark.svg +7 -8
  257. package/src/assets/icons/pictogram-recycling.svg +14 -15
  258. package/src/assets/icons/pictogram-repair--dark.svg +12 -13
  259. package/src/assets/icons/pictogram-repair.svg +12 -13
  260. package/src/assets/icons/pictogram-roaming--dark.svg +3 -4
  261. package/src/assets/icons/pictogram-roaming-discount--dark.svg +3 -16
  262. package/src/assets/icons/pictogram-roaming-discount.svg +15 -16
  263. package/src/assets/icons/pictogram-roaming.svg +3 -4
  264. package/src/assets/icons/pictogram-skylink--dark.svg +10 -11
  265. package/src/assets/icons/pictogram-skylink-live-tv--dark.svg +7 -8
  266. package/src/assets/icons/pictogram-skylink-live-tv.svg +7 -8
  267. package/src/assets/icons/pictogram-skylink.svg +10 -11
  268. package/src/assets/icons/pictogram-sms--dark.svg +5 -6
  269. package/src/assets/icons/pictogram-sms.svg +5 -6
  270. package/src/assets/icons/pictogram-theft--dark.svg +3 -7
  271. package/src/assets/icons/pictogram-theft.svg +3 -7
  272. package/src/assets/icons/pictogram-three-devices--dark.svg +4 -8
  273. package/src/assets/icons/pictogram-three-devices.svg +4 -8
  274. package/src/assets/icons/pictogram-trust--dark.svg +3 -4
  275. package/src/assets/icons/pictogram-trust.svg +3 -4
  276. package/src/assets/icons/pictogram-water-damage--dark.svg +5 -6
  277. package/src/assets/icons/pictogram-water-damage.svg +5 -6
  278. package/src/assets/icons/play.svg +4 -1
  279. package/src/assets/icons/quote.svg +4 -0
  280. package/src/components/Accordion/Accordion.static.ts +36 -30
  281. package/src/components/Accordion/Accordion.tsx +4 -4
  282. package/src/components/Accordion/AccordionHeader.tsx +0 -10
  283. package/src/components/Accordion/AccordionItem.tsx +1 -0
  284. package/src/components/Accordion/styles/config.scss +5 -4
  285. package/src/components/Accordion/styles/mixins.scss +12 -11
  286. package/src/components/Accordion/styles/style.scss +2 -2
  287. package/src/components/Accordion/tests/Accordion.unit.test.js +12 -26
  288. package/src/components/Alert/Alert.tsx +0 -6
  289. package/src/components/Alert/styles/config.scss +1 -1
  290. package/src/components/Alert/styles/mixins.scss +3 -1
  291. package/src/components/Alert/tests/Alert.test.js +0 -14
  292. package/src/components/AnchorNavigation/AnchorNavigation.static.ts +296 -72
  293. package/src/components/AnchorNavigation/AnchorNavigation.tsx +21 -26
  294. package/src/components/AnchorNavigation/styles/mixins.scss +23 -32
  295. package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.js +58 -0
  296. package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.js +163 -0
  297. package/src/components/Bar/styles/config.scss +4 -5
  298. package/src/components/Bar/styles/mixins.scss +11 -11
  299. package/src/components/BlockAction/BlockAction.tsx +10 -3
  300. package/src/components/BlockAction/Context.tsx +4 -0
  301. package/src/components/BlockAction/styles/mixins.scss +6 -6
  302. package/src/components/BlockAction/styles/style.scss +5 -0
  303. package/src/components/BodyBanner/BodyBanner.tsx +52 -73
  304. package/src/components/BodyBanner/styles/mixins.scss +39 -33
  305. package/src/components/BodyBanner/styles/style.scss +4 -18
  306. package/src/components/BodyBanner/tests/BodyBanner.conformance.test.js +67 -0
  307. package/src/components/BodyBanner/tests/BodyBanner.unit.test.js +194 -0
  308. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +16 -7
  309. package/src/components/Breadcrumbs/Breadcrumbs.tsx +4 -12
  310. package/src/components/Breadcrumbs/styles/mixins.scss +2 -4
  311. package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +14 -8
  312. package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +14 -37
  313. package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +19 -23
  314. package/src/components/Button/Button.tsx +2 -6
  315. package/src/components/Button/styles/config.scss +5 -5
  316. package/src/components/Button/styles/mixins.scss +6 -1
  317. package/src/components/Button/styles/style.scss +4 -0
  318. package/src/components/Button/tests/Button.test.js +0 -10
  319. package/src/components/Buttons/styles/mixins.scss +1 -1
  320. package/src/components/Card/Card.tsx +20 -3
  321. package/src/components/Card/CardSection.tsx +7 -11
  322. package/src/components/Card/index.ts +1 -0
  323. package/src/components/Card/styles/config.scss +2 -2
  324. package/src/components/Card/styles/mixins.scss +8 -6
  325. package/src/components/Card/styles/style.scss +4 -0
  326. package/src/components/Card/tests/Card.unit.test.js +45 -6
  327. package/src/components/Card/tests/CardSection.unit.test.js +36 -3
  328. package/src/components/Carousel/Carousel.static.ts +371 -10
  329. package/src/components/Carousel/Carousel.tsx +41 -24
  330. package/src/components/Carousel/constants.ts +2 -0
  331. package/src/components/Carousel/styles/config.scss +1 -2
  332. package/src/components/Carousel/styles/mixins.scss +42 -3
  333. package/src/components/Carousel/styles/style.scss +8 -0
  334. package/src/components/Carousel/tests/Carousel.static.test.js +616 -0
  335. package/src/components/Carousel/tests/Carousel.unit.test.js +117 -12
  336. package/src/components/CarouselHero/CarouselHero.static.ts +528 -0
  337. package/src/components/CarouselHero/CarouselHero.tsx +139 -0
  338. package/src/components/CarouselHero/CarouselHeroItem.tsx +40 -0
  339. package/src/components/CarouselHero/constants.ts +36 -0
  340. package/src/components/CarouselHero/index.ts +2 -0
  341. package/src/components/CarouselHero/styles/config.scss +54 -0
  342. package/src/components/CarouselHero/styles/mixins.scss +278 -0
  343. package/src/components/CarouselHero/styles/style.scss +63 -0
  344. package/src/components/CarouselHero/tests/CarouselHero.conformance.test.js +129 -0
  345. package/src/components/CarouselHero/tests/CarouselHero.unit.test.js +332 -0
  346. package/src/components/CarouselHero/tests/CarouselHeroItem.conformance.test.js +135 -0
  347. package/src/components/CarouselHero/tests/CarouselHeroItem.unit.test.js +143 -0
  348. package/src/components/CarouselPromotions/CarouselPromotions.tsx +1 -6
  349. package/src/components/CarouselPromotions/styles/mixins.scss +8 -5
  350. package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +0 -17
  351. package/src/components/CartTable/FooterPriceColumn.tsx +5 -3
  352. package/src/components/CartTable/Price.tsx +1 -1
  353. package/src/components/Code/styles/style.scss +6 -5
  354. package/src/components/Controls/Controls.tsx +2 -7
  355. package/src/components/Controls/styles/config.scss +2 -2
  356. package/src/components/Controls/tests/Controls.test.js +0 -32
  357. package/src/components/Cover/Cover.tsx +22 -20
  358. package/src/components/Cover/styles/config.scss +23 -12
  359. package/src/components/Cover/styles/mixins.scss +6 -5
  360. package/src/components/Cover/tests/Cover.unit.test.js +52 -52
  361. package/src/components/Divider/Divider.tsx +2 -16
  362. package/src/components/Divider/styles/config.scss +0 -17
  363. package/src/components/Divider/styles/mixins.scss +8 -10
  364. package/src/components/Divider/styles/style.scss +2 -16
  365. package/src/components/Divider/tests/Divider.conformance.test.js +1 -1
  366. package/src/components/Divider/tests/Divider.unit.test.js +0 -17
  367. package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +188 -2
  368. package/src/components/DocumentationSidebar/styles/style.scss +76 -3
  369. package/src/components/Dropdown/styles/mixins.scss +1 -1
  370. package/src/components/Expander/Expander.static.ts +11 -12
  371. package/src/components/Expander/Expander.tsx +4 -8
  372. package/src/components/Expander/styles/style.scss +12 -3
  373. package/src/components/Expander/tests/Expander.conformance.test.js +8 -12
  374. package/src/components/Expander/tests/Expander.unit.test.js +37 -47
  375. package/src/components/FeatureAccordion/FeatureAccordion.tsx +3 -13
  376. package/src/components/FeatureAccordion/styles/mixins.scss +6 -14
  377. package/src/components/FeatureAccordion/styles/style.scss +2 -4
  378. package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +2 -0
  379. package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +0 -5
  380. package/src/components/Footer/Footer.tsx +86 -70
  381. package/src/components/Footer/constants.ts +10 -0
  382. package/src/components/Footer/styles/config.scss +1 -0
  383. package/src/components/Footer/styles/mixins.scss +173 -0
  384. package/src/components/Footer/styles/style.scss +48 -0
  385. package/src/components/Footer/tests/Footer.conformance.test.js +133 -8
  386. package/src/components/Footer/tests/Footer.unit.test.js +71 -6
  387. package/src/components/Forms/DatePicker/styles/style.scss +1 -1
  388. package/src/components/Forms/Field/styles/config.scss +8 -8
  389. package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +1 -1
  390. package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +1 -0
  391. package/src/components/Forms/Field/tests/File.Field.conformance.test.js +1 -0
  392. package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +1 -0
  393. package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +1 -0
  394. package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +1 -0
  395. package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +1 -0
  396. package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +1 -0
  397. package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +1 -0
  398. package/src/components/Forms/Fieldset/styles/mixins.scss +3 -3
  399. package/src/components/Forms/File/styles/mixins.scss +1 -1
  400. package/src/components/Forms/Group/styles/mixins.scss +14 -0
  401. package/src/components/Forms/InputStepper/InputStepper.tsx +0 -4
  402. package/src/components/Forms/InputStepper/styles/style.scss +0 -66
  403. package/src/components/Forms/Label/styles/config.scss +3 -0
  404. package/src/components/Forms/RangeSlider/styles/mixins.scss +1 -1
  405. package/src/components/Forms/TextInput/styles/config.scss +1 -1
  406. package/src/components/Forms/styles/config.scss +3 -3
  407. package/src/components/Gauge/styles/style.scss +1 -1
  408. package/src/components/Grid/Grid.tsx +1 -1
  409. package/src/components/Grid/styles/config.scss +5 -3
  410. package/src/components/Grid/styles/mixins.scss +29 -19
  411. package/src/components/Grid/tests/Grid.unit.test.js +11 -0
  412. package/src/components/Hero/Hero.tsx +2 -16
  413. package/src/components/Hero/styles/style.scss +0 -14
  414. package/src/components/Hero/tests/Hero.unit.test.js +109 -119
  415. package/src/components/Icon/iconSearchTags.ts +435 -432
  416. package/src/components/Icon/styles/style.scss +15 -0
  417. package/src/components/Icon/tests/Pictogram.unit.test.js +38 -0
  418. package/src/components/IconList/styles/mixins.scss +5 -5
  419. package/src/components/Image/styles/mixins.scss +2 -2
  420. package/src/components/Link/Link.tsx +4 -5
  421. package/src/components/Link/styles/mixins.scss +9 -3
  422. package/src/components/Link/styles/style.scss +4 -2
  423. package/src/components/Link/tests/Link.conformance.test.js +6 -27
  424. package/src/components/Link/tests/Link.unit.test.js +1 -30
  425. package/src/components/List/styles/config.scss +12 -12
  426. package/src/components/List/styles/mixins.scss +16 -9
  427. package/src/components/Loader/Loader.tsx +2 -10
  428. package/src/components/Loader/styles/mixins.scss +1 -1
  429. package/src/components/Loader/styles/style.scss +6 -4
  430. package/src/components/Megamenu/Megamenu.static.ts +2 -0
  431. package/src/components/Megamenu/Megamenu.tsx +730 -650
  432. package/src/components/Megamenu/MegamenuBlog.tsx +201 -183
  433. package/src/components/Megamenu/constants.ts +4 -0
  434. package/src/components/Megamenu/static.ts +5 -11
  435. package/src/components/Megamenu/styles/mixins.scss +50 -3
  436. package/src/components/Megamenu/styles/style.scss +10 -0
  437. package/src/components/Modal/Modal.tsx +1 -14
  438. package/src/components/Modal/ModalBody.tsx +26 -14
  439. package/src/components/Modal/ModalProductHeader.tsx +6 -2
  440. package/src/components/Modal/index.ts +0 -1
  441. package/src/components/Modal/styles/config.scss +4 -4
  442. package/src/components/Modal/styles/mixins.scss +18 -57
  443. package/src/components/Modal/styles/style.scss +1 -16
  444. package/src/components/Modal/tests/Modal.unit.test.js +0 -59
  445. package/src/components/Modal/tests/ModalBody.unit.test.js +21 -12
  446. package/src/components/Modal/tests/ModalProductHeader.unit.test.js +12 -0
  447. package/src/components/Pagination/Pagination.tsx +3 -13
  448. package/src/components/Pagination/styles/mixins.scss +1 -1
  449. package/src/components/Pill/Pill.tsx +17 -5
  450. package/src/components/Pill/styles/config.scss +2 -1
  451. package/src/components/Pill/styles/style.scss +17 -1
  452. package/src/components/Pill/tests/Pill.conformance.test.js +9 -3
  453. package/src/components/Pill/tests/Pill.unit.test.js +87 -9
  454. package/src/components/Preview/PreviewGenerator.tsx +50 -29
  455. package/src/components/Progress/Progress.tsx +1 -13
  456. package/src/components/Progress/styles/config.scss +4 -4
  457. package/src/components/Progress/styles/mixins.scss +9 -7
  458. package/src/components/PromoBanner/PromoBanner.tsx +70 -43
  459. package/src/components/PromoBanner/styles/mixins.scss +39 -17
  460. package/src/components/PromoBanner/styles/style.scss +5 -7
  461. package/src/components/PromoBanner/tests/PromoBanner.conformance.test.js +783 -0
  462. package/src/components/PromoBanner/tests/PromoBanner.unit.test.js +549 -0
  463. package/src/components/PromotionCard/PromotionCard.tsx +12 -13
  464. package/src/components/PromotionCard/styles/mixins.scss +2 -1
  465. package/src/components/PromotionCard/tests/PromotionCard.conformance.test.js +566 -0
  466. package/src/components/PromotionCard/tests/PromotionCard.unit.test.js +438 -0
  467. package/src/components/Section/Section.tsx +20 -10
  468. package/src/components/Section/styles/config.scss +18 -16
  469. package/src/components/Section/styles/mixins.scss +16 -13
  470. package/src/components/Section/styles/style.scss +1 -0
  471. package/src/components/Section/tests/Section.conformance.test.js +23 -12
  472. package/src/components/Section/tests/Section.unit.test.js +53 -32
  473. package/src/components/Stepbar/Stepbar.tsx +0 -5
  474. package/src/components/Stepbar/styles/mixins.scss +1 -1
  475. package/src/components/Table/Row.tsx +9 -3
  476. package/src/components/Table/Table.tsx +11 -6
  477. package/src/components/Table/TableContext.ts +1 -0
  478. package/src/components/Table/docsData.ts +25 -0
  479. package/src/components/Table/styles/mixins.scss +41 -5
  480. package/src/components/Table/styles/style.scss +6 -0
  481. package/src/components/Table/tests/Table.conformance.test.js +5 -1
  482. package/src/components/Table/tests/Table.unit.test.js +0 -31
  483. package/src/components/Table/types.ts +1 -0
  484. package/src/components/Tabs/Tabs.tsx +0 -5
  485. package/src/components/Tabs/styles/mixins.scss +1 -1
  486. package/src/components/Tabs/tests/Tabs.unit.test.js +0 -8
  487. package/src/components/Tag/Tag.tsx +0 -4
  488. package/src/components/Tag/styles/config.scss +19 -23
  489. package/src/components/Tag/styles/style.scss +33 -0
  490. package/src/components/Tile/CHANGELOG.md +15 -1
  491. package/src/components/Tile/Tile.tsx +11 -3
  492. package/src/components/Tile/styles/config.scss +0 -11
  493. package/src/components/Tile/styles/mixins.scss +1 -0
  494. package/src/components/Tile/styles/style.scss +1 -5
  495. package/src/components/Tile/tests/Tile.unit.test.js +10 -3
  496. package/src/components/Tooltip/InfoTooltip.tsx +1 -5
  497. package/src/components/Tooltip/Tooltip.tsx +1 -10
  498. package/src/components/Tooltip/tests/Tooltip.conformance.test.js +5 -1
  499. package/src/components/Tooltip/tests/Tooltip.unit.test.js +0 -29
  500. package/src/components/index.ts +7 -4
  501. package/src/styles/base/globals-forms.scss +8 -0
  502. package/src/styles/base/globals.scss +26 -22
  503. package/src/styles/base/styleguide.scss +22 -17
  504. package/src/styles/export/base.js +1 -1
  505. package/src/styles/export/color.js +102 -20
  506. package/src/styles/export/color.scss +10 -20
  507. package/src/styles/shame.scss +1 -0
  508. package/src/styles/tokens/color-vars.scss +39 -0
  509. package/src/styles/tokens/color.scss +14 -14
  510. package/src/styles/tokens/tag-colors.scss +20 -0
  511. package/src/styles/typography/config.scss +83 -37
  512. package/src/styles/typography/mixins.scss +29 -15
  513. package/src/styles/typography/style.scss +6 -3
  514. package/src/styles/utilities/border.scss +1 -1
  515. package/src/styles/utilities/color.scss +99 -20
  516. package/src/styles/utilities/horizontal-scroll.scss +1 -1
  517. package/src/styles/utilities/index.scss +1 -0
  518. package/src/styles/utilities/layout.scss +27 -0
  519. package/src/styles/utilities/ordering.scss +44 -0
  520. package/src/styles/utilities/text.scss +44 -2
  521. package/src/styles/utilities/visibility.scss +2 -4
  522. package/build/components/Accordion/index.js +0 -16
  523. package/build/components/Accordion/index.js.map +0 -1
  524. package/build/components/Accordion/tsconfig.tsbuildinfo +0 -1
  525. package/build/components/Alert/index.js +0 -16
  526. package/build/components/Alert/index.js.map +0 -1
  527. package/build/components/Alert/tsconfig.tsbuildinfo +0 -1
  528. package/build/components/AnchorNavigation/index.js +0 -16
  529. package/build/components/AnchorNavigation/index.js.map +0 -1
  530. package/build/components/AnchorNavigation/tsconfig.tsbuildinfo +0 -1
  531. package/build/components/Bar/index.js +0 -16
  532. package/build/components/Bar/index.js.map +0 -1
  533. package/build/components/Bar/tsconfig.tsbuildinfo +0 -1
  534. package/build/components/BlockAction/index.js +0 -16
  535. package/build/components/BlockAction/index.js.map +0 -1
  536. package/build/components/BlockAction/tsconfig.tsbuildinfo +0 -1
  537. package/build/components/BodyBanner/index.js +0 -16
  538. package/build/components/BodyBanner/index.js.map +0 -1
  539. package/build/components/BodyBanner/tsconfig.tsbuildinfo +0 -1
  540. package/build/components/Breadcrumbs/index.js +0 -16
  541. package/build/components/Breadcrumbs/index.js.map +0 -1
  542. package/build/components/Breadcrumbs/tsconfig.tsbuildinfo +0 -1
  543. package/build/components/Button/index.js +0 -16
  544. package/build/components/Button/index.js.map +0 -1
  545. package/build/components/Button/tsconfig.tsbuildinfo +0 -1
  546. package/build/components/Buttons/index.js +0 -16
  547. package/build/components/Buttons/index.js.map +0 -1
  548. package/build/components/Buttons/tsconfig.tsbuildinfo +0 -1
  549. package/build/components/Card/index.js +0 -16
  550. package/build/components/Card/index.js.map +0 -1
  551. package/build/components/Card/tsconfig.tsbuildinfo +0 -1
  552. package/build/components/Carousel/index.js +0 -16
  553. package/build/components/Carousel/index.js.map +0 -1
  554. package/build/components/Carousel/tsconfig.tsbuildinfo +0 -1
  555. package/build/components/CarouselPromotions/index.js +0 -16
  556. package/build/components/CarouselPromotions/index.js.map +0 -1
  557. package/build/components/CarouselPromotions/tsconfig.tsbuildinfo +0 -1
  558. package/build/components/CartTable/index.js +0 -16
  559. package/build/components/CartTable/index.js.map +0 -1
  560. package/build/components/CartTable/tsconfig.tsbuildinfo +0 -1
  561. package/build/components/Code/index.js +0 -11
  562. package/build/components/Code/index.js.map +0 -1
  563. package/build/components/Code/tsconfig.tsbuildinfo +0 -1
  564. package/build/components/Container/index.js +0 -16
  565. package/build/components/Container/index.js.map +0 -1
  566. package/build/components/Container/tsconfig.tsbuildinfo +0 -1
  567. package/build/components/Controls/index.js +0 -16
  568. package/build/components/Controls/index.js.map +0 -1
  569. package/build/components/Controls/tsconfig.tsbuildinfo +0 -1
  570. package/build/components/Cover/index.js +0 -16
  571. package/build/components/Cover/index.js.map +0 -1
  572. package/build/components/Cover/tsconfig.tsbuildinfo +0 -1
  573. package/build/components/Divider/index.js +0 -16
  574. package/build/components/Divider/index.js.map +0 -1
  575. package/build/components/Divider/tsconfig.tsbuildinfo +0 -1
  576. package/build/components/DocumentationSidebar/index.js +0 -16
  577. package/build/components/DocumentationSidebar/index.js.map +0 -1
  578. package/build/components/DocumentationSidebar/tsconfig.tsbuildinfo +0 -1
  579. package/build/components/Dropdown/index.js +0 -16
  580. package/build/components/Dropdown/index.js.map +0 -1
  581. package/build/components/Dropdown/tsconfig.tsbuildinfo +0 -1
  582. package/build/components/Expander/index.js +0 -16
  583. package/build/components/Expander/index.js.map +0 -1
  584. package/build/components/Expander/tsconfig.tsbuildinfo +0 -1
  585. package/build/components/FeatureAccordion/index.js +0 -16
  586. package/build/components/FeatureAccordion/index.js.map +0 -1
  587. package/build/components/FeatureAccordion/tsconfig.tsbuildinfo +0 -1
  588. package/build/components/Footer/index.js +0 -16
  589. package/build/components/Footer/index.js.map +0 -1
  590. package/build/components/Footer/tsconfig.tsbuildinfo +0 -1
  591. package/build/components/Forms/index.js +0 -20
  592. package/build/components/Forms/index.js.map +0 -1
  593. package/build/components/Forms/style.css +0 -2
  594. package/build/components/Forms/style.css.map +0 -1
  595. package/build/components/Forms/tsconfig.tsbuildinfo +0 -1
  596. package/build/components/Gauge/index.js +0 -16
  597. package/build/components/Gauge/index.js.map +0 -1
  598. package/build/components/Gauge/tsconfig.tsbuildinfo +0 -1
  599. package/build/components/Grid/index.js +0 -16
  600. package/build/components/Grid/index.js.map +0 -1
  601. package/build/components/Grid/tsconfig.tsbuildinfo +0 -1
  602. package/build/components/Hero/index.js +0 -16
  603. package/build/components/Hero/index.js.map +0 -1
  604. package/build/components/Hero/tsconfig.tsbuildinfo +0 -1
  605. package/build/components/Icon/index.js +0 -11
  606. package/build/components/Icon/index.js.map +0 -1
  607. package/build/components/Icon/tsconfig.tsbuildinfo +0 -1
  608. package/build/components/IconList/index.js +0 -16
  609. package/build/components/IconList/index.js.map +0 -1
  610. package/build/components/IconList/tsconfig.tsbuildinfo +0 -1
  611. package/build/components/Image/index.js +0 -16
  612. package/build/components/Image/index.js.map +0 -1
  613. package/build/components/Image/tsconfig.tsbuildinfo +0 -1
  614. package/build/components/Link/index.js +0 -7
  615. package/build/components/Link/index.js.map +0 -1
  616. package/build/components/Link/tsconfig.tsbuildinfo +0 -1
  617. package/build/components/List/index.js +0 -16
  618. package/build/components/List/index.js.map +0 -1
  619. package/build/components/List/tsconfig.tsbuildinfo +0 -1
  620. package/build/components/Loader/index.js +0 -16
  621. package/build/components/Loader/index.js.map +0 -1
  622. package/build/components/Loader/tsconfig.tsbuildinfo +0 -1
  623. package/build/components/Megamenu/index.js +0 -16
  624. package/build/components/Megamenu/index.js.map +0 -1
  625. package/build/components/Megamenu/tsconfig.tsbuildinfo +0 -1
  626. package/build/components/Modal/index.js +0 -20
  627. package/build/components/Modal/index.js.map +0 -1
  628. package/build/components/Modal/tsconfig.tsbuildinfo +0 -1
  629. package/build/components/Pagination/index.js +0 -16
  630. package/build/components/Pagination/index.js.map +0 -1
  631. package/build/components/Pagination/tsconfig.tsbuildinfo +0 -1
  632. package/build/components/Pill/index.js +0 -16
  633. package/build/components/Pill/index.js.map +0 -1
  634. package/build/components/Pill/tsconfig.tsbuildinfo +0 -1
  635. package/build/components/Preview/index.js +0 -77
  636. package/build/components/Preview/index.js.map +0 -1
  637. package/build/components/Preview/tsconfig.tsbuildinfo +0 -1
  638. package/build/components/Progress/index.js +0 -16
  639. package/build/components/Progress/index.js.map +0 -1
  640. package/build/components/Progress/tsconfig.tsbuildinfo +0 -1
  641. package/build/components/PromoBanner/index.js +0 -16
  642. package/build/components/PromoBanner/index.js.map +0 -1
  643. package/build/components/PromoBanner/tsconfig.tsbuildinfo +0 -1
  644. package/build/components/PromotionCard/index.js +0 -16
  645. package/build/components/PromotionCard/index.js.map +0 -1
  646. package/build/components/PromotionCard/tsconfig.tsbuildinfo +0 -1
  647. package/build/components/Section/index.js +0 -16
  648. package/build/components/Section/index.js.map +0 -1
  649. package/build/components/Section/tsconfig.tsbuildinfo +0 -1
  650. package/build/components/Skeleton/index.js +0 -16
  651. package/build/components/Skeleton/index.js.map +0 -1
  652. package/build/components/Skeleton/tsconfig.tsbuildinfo +0 -1
  653. package/build/components/SkipLink/index.js +0 -16
  654. package/build/components/SkipLink/index.js.map +0 -1
  655. package/build/components/SkipLink/tsconfig.tsbuildinfo +0 -1
  656. package/build/components/Stepbar/index.js +0 -16
  657. package/build/components/Stepbar/index.js.map +0 -1
  658. package/build/components/Stepbar/tsconfig.tsbuildinfo +0 -1
  659. package/build/components/Sticker/index.js +0 -16
  660. package/build/components/Sticker/index.js.map +0 -1
  661. package/build/components/Sticker/tsconfig.tsbuildinfo +0 -1
  662. package/build/components/Table/index.js +0 -16
  663. package/build/components/Table/index.js.map +0 -1
  664. package/build/components/Table/tsconfig.tsbuildinfo +0 -1
  665. package/build/components/Tabs/index.js +0 -16
  666. package/build/components/Tabs/index.js.map +0 -1
  667. package/build/components/Tabs/tsconfig.tsbuildinfo +0 -1
  668. package/build/components/Tag/index.js +0 -16
  669. package/build/components/Tag/index.js.map +0 -1
  670. package/build/components/Tag/tsconfig.tsbuildinfo +0 -1
  671. package/build/components/Testimonial/index.js +0 -16
  672. package/build/components/Testimonial/index.js.map +0 -1
  673. package/build/components/Testimonial/tsconfig.tsbuildinfo +0 -1
  674. package/build/components/Tile/index.js +0 -16
  675. package/build/components/Tile/index.js.map +0 -1
  676. package/build/components/Tile/tsconfig.tsbuildinfo +0 -1
  677. package/build/components/Tooltip/index.js +0 -16
  678. package/build/components/Tooltip/index.js.map +0 -1
  679. package/build/components/Tooltip/tsconfig.tsbuildinfo +0 -1
  680. package/build/components/index.css +0 -3
  681. package/build/components/index.css.map +0 -1
  682. package/build/components/static.css +0 -2
  683. package/build/components/static.css.map +0 -1
  684. package/build/components/static.js +0 -10
  685. package/build/components/static.js.map +0 -1
  686. package/build/components/types/src/components/Hero/HeroPlayground.d.ts +0 -2
  687. package/build/components/types/src/components/Modal/ModalProductBody.d.ts +0 -10
  688. package/build/lib/after-components.css +0 -2
  689. package/build/lib/after-components.css.map +0 -1
  690. package/build/lib/before-components.css +0 -3
  691. package/build/lib/before-components.css.map +0 -1
  692. package/build/lib/scripts.css +0 -2
  693. package/build/lib/scripts.css.map +0 -1
  694. package/src/components/Accordion/Accordion.mdx +0 -240
  695. package/src/components/Alert/Alert.mdx +0 -141
  696. package/src/components/Bar/Bar.mdx +0 -203
  697. package/src/components/BlockAction/BlockAction.mdx +0 -244
  698. package/src/components/BodyBanner/BodyBanner.mdx +0 -268
  699. package/src/components/Breadcrumbs/Breadcrumbs.mdx +0 -84
  700. package/src/components/Button/Button.mdx +0 -273
  701. package/src/components/Buttons/Buttons.mdx +0 -39
  702. package/src/components/Card/Card.mdx +0 -334
  703. package/src/components/Carousel/Carousel.mdx +0 -159
  704. package/src/components/CarouselPromotions/CarouselPromotions.mdx +0 -246
  705. package/src/components/CartTable/CartTable.mdx +0 -129
  706. package/src/components/Container/Container.mdx +0 -73
  707. package/src/components/Controls/Controls.mdx +0 -469
  708. package/src/components/Cover/Cover.mdx +0 -87
  709. package/src/components/Divider/Divider.mdx +0 -65
  710. package/src/components/Dropdown/Dropdown.mdx +0 -260
  711. package/src/components/Expander/Expander.mdx +0 -153
  712. package/src/components/FeatureAccordion/FeatureAccordion.mdx +0 -33
  713. package/src/components/Forms/Autocomplete/Autocomplete.mdx +0 -198
  714. package/src/components/Forms/Checkbox/Checkbox.mdx +0 -139
  715. package/src/components/Forms/DatePicker/DatePicker.mdx +0 -149
  716. package/src/components/Forms/Field/Field.mdx +0 -383
  717. package/src/components/Forms/Fieldset/Fieldset.mdx +0 -178
  718. package/src/components/Forms/File/File.mdx +0 -88
  719. package/src/components/Forms/FormTooltip.mdx +0 -51
  720. package/src/components/Forms/Forms.mdx +0 -48
  721. package/src/components/Forms/Group/Group.mdx +0 -146
  722. package/src/components/Forms/Hint/Hint.mdx +0 -40
  723. package/src/components/Forms/InputStepper/InputStepper.mdx +0 -147
  724. package/src/components/Forms/Label/Label.mdx +0 -95
  725. package/src/components/Forms/Message/Message.mdx +0 -40
  726. package/src/components/Forms/Radio/Radio.mdx +0 -98
  727. package/src/components/Forms/RangeSlider/RangeSlider.mdx +0 -304
  728. package/src/components/Forms/Select/Select.mdx +0 -106
  729. package/src/components/Forms/TextArea/TextArea.mdx +0 -109
  730. package/src/components/Forms/TextInput/TextInput.mdx +0 -153
  731. package/src/components/Gauge/Gauge.mdx +0 -35
  732. package/src/components/Grid/Grid.mdx +0 -320
  733. package/src/components/Hero/Hero.mdx +0 -168
  734. package/src/components/Hero/HeroPlayground.tsx +0 -369
  735. package/src/components/Icon/Icon.mdx +0 -172
  736. package/src/components/IconList/IconList.mdx +0 -53
  737. package/src/components/Image/Image.mdx +0 -175
  738. package/src/components/Link/Link.mdx +0 -238
  739. package/src/components/List/List.mdx +0 -216
  740. package/src/components/Loader/Loader.mdx +0 -148
  741. package/src/components/Modal/Modal.mdx +0 -565
  742. package/src/components/Modal/ModalProductBody.tsx +0 -52
  743. package/src/components/Pagination/Pagination.mdx +0 -45
  744. package/src/components/Pagination/tests/utils.js +0 -12
  745. package/src/components/Pill/Pill.mdx +0 -41
  746. package/src/components/Progress/Progress.mdx +0 -119
  747. package/src/components/PromotionCard/PromotionCard.mdx +0 -191
  748. package/src/components/Section/Section.mdx +0 -397
  749. package/src/components/Skeleton/Skeleton.mdx +0 -90
  750. package/src/components/SkipLink/SkipLink.mdx +0 -23
  751. package/src/components/Stepbar/Stepbar.mdx +0 -137
  752. package/src/components/Sticker/Sticker.mdx +0 -50
  753. package/src/components/Table/Table.mdx +0 -199
  754. package/src/components/Tabs/Tabs.mdx +0 -373
  755. package/src/components/Tag/Tag.mdx +0 -52
  756. package/src/components/Testimonial/Testimonial.mdx +0 -41
  757. package/src/components/Tile/Tile.mdx +0 -163
  758. package/src/components/Tooltip/Tooltip.mdx +0 -227
  759. package/src/styles/after-components.scss +0 -2
  760. package/src/styles/before-components.scss +0 -18
  761. /package/build/lib/{after-components.js → base.js} +0 -0
  762. /package/build/lib/{before-components.js → utilities.js} +0 -0
@@ -1,268 +0,0 @@
1
- ---
2
- title: BodyBanner
3
- description: A versatile banner component for displaying content with images and call-to-action buttons
4
- ---
5
-
6
- import { BodyBanner } from './BodyBanner';
7
- import { BodyBannerClientWrapper } from '../../app/components/body-banner/BodyBannerClientWrapper';
8
-
9
- # BodyBanner
10
-
11
- The BodyBanner component is a flexible banner that displays content with optional images and call-to-action buttons. It supports different sizes, color schemes, and layouts.
12
-
13
- ## Props
14
-
15
- | Prop | Type | Required | Default | Description |
16
- |------|------|----------|---------|-------------|
17
- | `size` | `"small" \| "large"` | Yes | - | Size variant of the banner |
18
- | `colorScheme` | `"light" \| "dark"` | Yes | - | Color scheme for the entire banner |
19
- | `color` | `"gray" \| "orange"` | No | - | Background color variant |
20
- | `className` | `string` | No | - | Additional CSS classes |
21
- | `imageUrl` | `string` | No | - | URL of the banner image |
22
- | `title` | `string` | No | - | Banner title |
23
- | `description` | `string` | No | - | Banner description text |
24
- | `buttonText` | `string` | No | - | Text for the call-to-action button |
25
-
26
- ## Size Variants
27
-
28
- ### Small Banner
29
-
30
- The small banner displays content in a compact layout with the image positioned above the text content.
31
-
32
- <BodyBannerClientWrapper>
33
- <BodyBanner
34
- size="small"
35
- title="Small Banner Example"
36
- description="This is a small banner with compact layout and image positioned above the content."
37
- buttonText="Learn More"
38
- imageUrl="/images/hero/example-lg.jpg"
39
- />
40
- </BodyBannerClientWrapper>
41
-
42
- ```jsx
43
- <BodyBanner
44
- size="small"
45
- title="Small Banner Example"
46
- description="This is a small banner with compact layout and image positioned above the content."
47
- buttonText="Learn More"
48
- imageUrl="/images/hero/example-lg.jpg"
49
- />
50
- ```
51
-
52
- ### Large Banner
53
-
54
- The large banner displays content in a two-column layout with the image positioned beside the text content.
55
-
56
- <BodyBannerClientWrapper>
57
- <BodyBanner
58
- size="large"
59
- title="Large Banner Example"
60
- description="This is a large banner with two-column layout and image positioned beside the content."
61
- buttonText="Get Started"
62
- imageUrl="/images/hero/example-lg.jpg"
63
- />
64
- </BodyBannerClientWrapper>
65
-
66
- ```jsx
67
- <BodyBanner
68
- size="large"
69
- title="Large Banner Example"
70
- description="This is a large banner with two-column layout and image positioned beside the content."
71
- buttonText="Get Started"
72
- imageUrl="/images/hero/example-lg.jpg"
73
- />
74
- ```
75
-
76
- ## Color Schemes
77
-
78
- ### Light Color Scheme
79
-
80
- <BodyBannerClientWrapper>
81
- <BodyBanner
82
- size="small"
83
- colorScheme="light"
84
- title="Light Banner"
85
- description="This banner uses a light color scheme."
86
- buttonText="Learn More"
87
- imageUrl="/images/hero/example-lg.jpg"
88
- />
89
- </BodyBannerClientWrapper>
90
-
91
- ```jsx
92
- <BodyBanner
93
- size="small"
94
- colorScheme="light"
95
- title="Light Banner"
96
- description="This banner uses a light color scheme."
97
- buttonText="Learn More"
98
- imageUrl="/images/hero/example-lg.jpg"
99
- />
100
- ```
101
-
102
- ### Dark Color Scheme
103
-
104
- <BodyBannerClientWrapper>
105
- <BodyBanner
106
- size="small"
107
- colorScheme="dark"
108
- title="Dark Banner"
109
- description="This banner uses a dark color scheme."
110
- buttonText="Learn More"
111
- imageUrl="/images/hero/example-lg.jpg"
112
- />
113
- </BodyBannerClientWrapper>
114
-
115
- ```jsx
116
- <BodyBanner
117
- size="small"
118
- colorScheme="dark"
119
- title="Dark Banner"
120
- description="This banner uses a dark color scheme."
121
- buttonText="Learn More"
122
- imageUrl="/images/hero/example-lg.jpg"
123
- />
124
- ```
125
-
126
- ## Color Variants
127
-
128
- ### Gray Background
129
-
130
- <BodyBannerClientWrapper>
131
- <BodyBanner
132
- size="small"
133
- colorScheme="light"
134
- color="gray"
135
- title="Gray Banner"
136
- description="This banner has a gray background color."
137
- buttonText="Learn More"
138
- imageUrl="/images/hero/example-lg.jpg"
139
- />
140
- </BodyBannerClientWrapper>
141
-
142
- ```jsx
143
- <BodyBanner
144
- size="small"
145
- colorScheme="light"
146
- color="gray"
147
- title="Gray Banner"
148
- description="This banner has a gray background color."
149
- buttonText="Learn More"
150
- imageUrl="/images/hero/example-lg.jpg"
151
- />
152
- ```
153
-
154
- ### Orange Background
155
-
156
- <BodyBannerClientWrapper>
157
- <BodyBanner
158
- size="small"
159
- colorScheme="light"
160
- color="orange"
161
- title="Orange Banner"
162
- description="This banner has an orange background color."
163
- buttonText="Learn More"
164
- imageUrl="/images/hero/example-lg.jpg"
165
- />
166
- </BodyBannerClientWrapper>
167
-
168
- ```jsx
169
- <BodyBanner
170
- size="small"
171
- colorScheme="light"
172
- color="orange"
173
- title="Orange Banner"
174
- description="This banner has an orange background color."
175
- buttonText="Learn More"
176
- imageUrl="/images/hero/example-lg.jpg"
177
- />
178
- ```
179
-
180
- ## Combined Examples
181
-
182
- ### Large Dark Banner with Orange Background
183
-
184
- <BodyBannerClientWrapper>
185
- <BodyBanner
186
- size="large"
187
- colorScheme="dark"
188
- color="orange"
189
- title="Large Dark Orange Banner"
190
- description="This is a large banner with dark color scheme and orange background."
191
- buttonText="Get Started"
192
- imageUrl="/images/hero/example-lg.jpg"
193
- />
194
- </BodyBannerClientWrapper>
195
-
196
- ```jsx
197
- <BodyBanner
198
- size="large"
199
- colorScheme="dark"
200
- color="orange"
201
- title="Large Dark Orange Banner"
202
- description="This is a large banner with dark color scheme and orange background."
203
- buttonText="Get Started"
204
- imageUrl="/images/hero/example-lg.jpg"
205
- />
206
- ```
207
-
208
- ### Small Light Banner with Gray Background
209
-
210
- <BodyBannerClientWrapper>
211
- <BodyBanner
212
- size="small"
213
- colorScheme="light"
214
- color="gray"
215
- title="Small Light Gray Banner"
216
- description="This is a small banner with light color scheme and gray background."
217
- buttonText="Learn More"
218
- imageUrl="/images/hero/example-lg.jpg"
219
- />
220
- </BodyBannerClientWrapper>
221
-
222
- ```jsx
223
- <BodyBanner
224
- size="small"
225
- colorScheme="light"
226
- color="gray"
227
- title="Small Light Gray Banner"
228
- description="This is a small banner with light color scheme and gray background."
229
- buttonText="Learn More"
230
- imageUrl="/images/hero/example-lg.jpg"
231
- />
232
- ```
233
-
234
- ## Banner Without Image
235
-
236
- You can also use the BodyBanner without an image:
237
-
238
- <BodyBannerClientWrapper>
239
- <BodyBanner
240
- size="small"
241
- colorScheme="light"
242
- title="Banner Without Image"
243
- description="This banner doesn't include an image, focusing purely on the text content and call-to-action."
244
- buttonText="Learn More"
245
- />
246
- </BodyBannerClientWrapper>
247
-
248
- ```jsx
249
- <BodyBanner
250
- size="small"
251
- colorScheme="light"
252
- title="Banner Without Image"
253
- description="This banner doesn't include an image, focusing purely on the text content and call-to-action."
254
- buttonText="Learn More"
255
- />
256
- ```
257
-
258
- ## Usage Guidelines
259
-
260
- - Use **small** banners for compact content displays or when space is limited
261
- - Use **large** banners for prominent content that needs more visual impact
262
- - The **colorScheme** prop is required and determines the overall color scheme (light/dark)
263
- - Choose **light** color scheme for better readability on light backgrounds
264
- - Choose **dark** color scheme for better contrast on dark backgrounds
265
- - The **color** prop provides additional background color options (gray, orange)
266
- - Always provide meaningful `alt` text for images through the Image component
267
- - Ensure button text is clear and actionable
268
- - Consider the content hierarchy when choosing between title and description text
@@ -1,84 +0,0 @@
1
- import { ComponentDocs, md, Dos, Donts } from '@lighting-beetle/lighter-styleguide';
2
- import { Preview } from '../../styleguide/';
3
-
4
- import Breadcrumbs from './index';
5
- import Grid, { GridCol } from '../Grid';
6
-
7
- export const breadcrumbsItems = [
8
- {
9
- text: 'Home',
10
- url: '/styleguide',
11
- },
12
- {
13
- text: 'Components',
14
- url: '/components',
15
- },
16
- {
17
- text: 'Breadcrumbs',
18
- url: '#main',
19
- },
20
- ];
21
-
22
- # Breadcrumbs
23
-
24
- Help users understand where they are within a website’s structure and move between levels.
25
-
26
- <Preview>
27
- <Breadcrumbs label="Breadcrumbs" items={breadcrumbsItems} />
28
- </Preview>
29
-
30
- <Grid>
31
- <GridCol size={{ md: 6 }}>
32
- <Dos>
33
- <p>
34
- Use the breadcrumbs component on every page, where you need to help
35
- users understand and move between the multiple levels of a website.
36
- That means virtually every page except the homepage and checkout.
37
- </p>
38
- <p>Include the current page to indicate current location.</p>
39
- </Dos>
40
- </GridCol>
41
- <GridCol size={{ md: 6 }}>
42
- <Donts>
43
- <p>
44
- Don’t use the breadcrumbs to show progress through a linear journey or
45
- transaction.
46
- </p>
47
- </Donts>
48
- </GridCol>
49
- </Grid>
50
-
51
- ## Higlighting current page to screen readers
52
-
53
- If your application implements HTML5 landmarks (it should if possible), breadcrumbs should not be a part of the main region, current page hyperlink should point to the main region and be identified with `aria-current="page"` attribute. Otherwise, current page should not be a hyperlink and the `aria-current="page"` is applied to its wrapping `<li />`.
54
-
55
- ### Current page item as hyperlink
56
-
57
- <Preview>
58
- <Breadcrumbs label="Breadcrumbs" items={breadcrumbsItems} />
59
- </Preview>
60
-
61
- ### Current page item without hyperlink
62
-
63
- <Preview>
64
- <Breadcrumbs label="Breadcrumbs" items={[ breadcrumbsItems[0], breadcrumbsItems[1], { text: 'Breadcrumbs'} ]} />
65
- </Preview>
66
-
67
- ## Dark mode
68
-
69
- <Preview>
70
- <Breadcrumbs darkMode label="Breadcrumbs" items={breadcrumbsItems} />
71
- </Preview>
72
-
73
- ## Props
74
-
75
- <ComponentDocs title="<Breadcrumbs />" component={Breadcrumbs} />
76
-
77
- ## Accessibility
78
-
79
- The breadcrumb component is built according to [WAI-ARIA authoring practices 1.1](https://www.w3.org/TR/wai-aria-practices-1.1/#breadcrumb).
80
-
81
- ## Notes
82
-
83
- * On small screens, breadcrumbs collapse and show only the parent page of the current location to provide a simple back button.
84
- * This component can be used as a separate package. The only asset required for proper use is a stylesheet, located in `lib/breadcrumbs.css`.
@@ -1,273 +0,0 @@
1
- import { ComponentDocs, Code } from '@lighting-beetle/lighter-styleguide';
2
-
3
- import { Preview } from '../../styleguide/';
4
- import { Grid, GridCol, Icon, Bar, BarItem } from '../';
5
-
6
- import Button from './Button';
7
- import IconButton from './IconButton';
8
-
9
- export const buttonVariants = ['default', 'primary', 'fill', 'ghost'];
10
-
11
- # Button
12
-
13
- Buttons are control elements used for navigating and operating a page and form submission.
14
-
15
- ## Example
16
-
17
- <Button>Button</Button>
18
-
19
- ## Elements
20
-
21
- The `<Button />` component can render as `<a>` or `<button>`. Take care to always use the appropriate element:
22
-
23
- - `<a>` if it takes you somewhere (on page or elsewhere)
24
- - `<button>` if it does something (controls a section, submits a form, etc.)
25
-
26
- [Additional resources](#additional-resources)
27
-
28
- <Preview>
29
- <Button>Button</Button>
30
- <br />
31
- <Button href="#">Anchor</Button>
32
- </Preview>
33
-
34
- ## Arrangement
35
-
36
- The Button component implements right and bottom margin to ensure horizontal flow between multiple button elements and vertical flow with regular text. In case your buttons might break into multiple lines, use the [Buttons component](/components/buttons). The following example shows, that buttons flow nicely between paragraphs and the non-ideal case when they break into multiple lines.
37
-
38
- <Preview>
39
- <p>
40
- Buttons sit next to each other and provide necessary spacing when used in
41
- regular text
42
- </p>
43
- <Button>Button 1</Button>
44
- <Button>Button 2</Button>
45
- <p>This paragraph is offset byt the bottom margin of preceeding buttons</p>
46
- <Button>Don't do this</Button>
47
- <br />
48
- <Button href="/components/buttons">Wrap us in Buttons</Button>
49
- <p>
50
- When buttons might break into multiple lines, wrap them usng{' '}
51
- <a href="/components/buttons">Buttons component</a> for better vertical
52
- spacing.
53
- </p>
54
- </Preview>
55
-
56
- ## Variants
57
-
58
- <React.Fragment>
59
- {buttonVariants.map(variant => {
60
- const variantProp = variant === 'default' ? undefined : variant;
61
- const variantName = variant.charAt(0).toUpperCase() + variant.slice(1);
62
- return (
63
- <React.Fragment key={variant}>
64
- <h3>{variantName}</h3>
65
- <Preview>
66
- <Button type={variantProp}>{variantName}</Button>
67
- <Button type={variantProp} isActive>
68
- {variantName} active
69
- </Button>
70
- <Button type={variantProp} isDisabled>
71
- {variantName} disabled
72
- </Button>
73
- </Preview>
74
- </React.Fragment>
75
- );
76
- })}
77
- </React.Fragment>
78
- <React.Fragment>
79
- {buttonVariants.map(variant => {
80
- const variantProp = variant === 'default' ? undefined : variant;
81
- const variantName = variant.charAt(0).toUpperCase() + variant.slice(1);
82
- return (
83
- <React.Fragment key={variant}>
84
- <h3>{variantName} inverse </h3>
85
- <Preview bgTheme="black">
86
- <Button isInverse type={variantProp}>
87
- {variantName} inverse
88
- </Button>
89
- <Button isInverse type={variantProp} isActive>
90
- {variantName} inverse active
91
- </Button>
92
- <Button isInverse type={variantProp} isDisabled>
93
- {variantName} inverse disabled
94
- </Button>
95
- </Preview>
96
- </React.Fragment>
97
- );
98
- })}
99
- </React.Fragment>
100
-
101
- ## Default important
102
-
103
- When white background is used inside black background, button uses style defined for black one and therefore has incorrect colour scheme. For this case we have class .btn--default that forces button to use default styles.
104
-
105
- <Preview
106
- code={
107
- <div className="bg-black">
108
- <div className="bg-white">
109
- <Button isDefault>button</Button>
110
- <Button>button</Button>
111
- </div>
112
- </div>
113
- }
114
- >
115
- <div className="bg-black" style={{ padding: '15px', paddingTop: '30px' }}>
116
- <div className="bg-white">
117
- <Bar>
118
- <BarItem>
119
- <Button isDefault>button</Button>
120
- </BarItem>
121
- <BarItem>{'<-- button with btn--default class'}</BarItem>
122
- </Bar>
123
- <Bar className="mb-none">
124
- <BarItem>
125
- <Button>button</Button>
126
- </BarItem>
127
- <BarItem>{"<-- there's a button"}</BarItem>
128
- </Bar>
129
- </div>
130
- </div>
131
- </Preview>
132
-
133
- ## Sizes
134
-
135
- <Preview>
136
- <Button size="large">Large</Button>
137
- <Button>Default</Button>
138
- <Button size="small">Small</Button>
139
- </Preview>
140
-
141
- ## Square
142
-
143
- Square buttons maintain their shape, no matter what you throw inside. They should be used for [icons](#icon-only).
144
-
145
- <Preview>
146
- <Button isSquare size="small">
147
- A
148
- </Button>
149
- <Button isSquare>A</Button>
150
- <Button isSquare size="large">
151
- A
152
- </Button>
153
- <br />
154
- <Button isSquare size="small">
155
- Overflow
156
- </Button>
157
- <Button isSquare>Overflow</Button>
158
- <Button isSquare size="large">
159
- Overflow
160
- </Button>
161
- </Preview>
162
-
163
- ## Icons
164
-
165
- ### Icon only
166
-
167
- <Preview>
168
- <IconButton size="small" isSquare iconName="settings">
169
- Settings
170
- </IconButton>
171
- <IconButton isSquare iconName="settings">
172
- Settings
173
- </IconButton>
174
- <IconButton size="large" isSquare iconName="settings">
175
- Settings
176
- </IconButton>
177
- <br />
178
- <IconButton type="ghost" size="small" isSquare iconName="settings">
179
- Settings
180
- </IconButton>
181
- <IconButton type="ghost" isSquare iconName="settings">
182
- Settings
183
- </IconButton>
184
- <IconButton type="ghost" size="large" isSquare iconName="settings">
185
- Settings
186
- </IconButton>
187
- </Preview>
188
-
189
- ### Icon and text
190
-
191
- <Preview>
192
- <IconButton type="primary" size="small" iconName="add">
193
- Pridať
194
- </IconButton>
195
- <IconButton type="primary" iconName="add">
196
- Pridať
197
- </IconButton>
198
- <IconButton type="primary" size="large" iconName="add">
199
- Pridať
200
- </IconButton>
201
- <br />
202
- <IconButton size="small" iconName="chevron-down" iconPosition="right">
203
- Vybrať
204
- </IconButton>
205
- <IconButton iconName="chevron-down" iconPosition="right">
206
- Vybrať
207
- </IconButton>
208
- <IconButton size="large" iconName="chevron-down" iconPosition="right">
209
- Vybrať
210
- </IconButton>
211
- <br />
212
- <IconButton
213
- type="ghost"
214
- size="small"
215
- iconName="chevron-right"
216
- iconPosition="right"
217
- >
218
- Ďalej
219
- </IconButton>
220
- <IconButton type="ghost" iconName="chevron-right" iconPosition="right">
221
- Ďalej
222
- </IconButton>
223
- <IconButton
224
- type="ghost"
225
- size="large"
226
- iconName="chevron-right"
227
- iconPosition="right"
228
- >
229
- Ďalej
230
- </IconButton>
231
- </Preview>
232
-
233
- ## Props
234
-
235
- <ComponentDocs title="<Button />" component={Button} />
236
- <ComponentDocs title="<IconButton />" component={IconButton} />
237
-
238
- ## Accessibility
239
-
240
- The `<Button />` component can render as `<a>` or `<button>`. Take care to always use the appropriate element. The rule of thumb is to use `<a>` if it takes you somewhere, `<button>` if it does something and `<button type="submit/rest">` if it's used as a form control. Check the [articles below](#additional-resources) for more information.
241
-
242
- ### Color contrast
243
-
244
- Buttons do not meet [Success Criterion 1.4.3: Contrast (Minimum)](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html) due to insufficient contrast between white and orange brand colors.
245
-
246
- [Technique G145](https://www.w3.org/WAI/WCAG21/Techniques/general/G145) describes that increasing font size is sufficient to meet [Success Criterion 1.4.3: Contrast (Minimum)](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html), but a business decision has been made not to follow this for aesthetics reasons.
247
-
248
- ### Don't disable buttons
249
-
250
- Especially form submit buttons. A disabled button is not keyboard focusable. Instead of using the `[disabled]` attribute, it's advised to rather use `[aria-disabled=true]` - it still remains focusable, and a screenreader can find it and announce it's contents, along with the information that it's disabled.
251
-
252
- Users should be able to submit incomplete and invalid forms, and should get relevant validation feedback, which explains what went wrong and how to fix it. It's considered a bad practice to let the user figure out thier errors themselves.
253
-
254
- ### Icons
255
-
256
- While it's recommended to always show a textual label acompanying an icon, this rule can't be always followed. When this happens, always make sure there is a textual alternative readable by assistive technology. There are three options:
257
-
258
- - alt attribute on the icon OR
259
- - `[aria-label]` on the button element OR
260
- - a visually visually hidden but accessible element (e.g. `.sr-only`)
261
-
262
- ### Additional resources
263
-
264
- - [When Is A Button Not A Button?](https://www.smashingmagazine.com/2019/02/buttons-interfaces/)
265
- - [Anchors, Buttons, And Accessibility](https://formidable.com/blog/2014/05/08/anchors-buttons-and-accessibility/)
266
-
267
- ## Aliases
268
-
269
- ```
270
- <ButtonPrimary /> === <Button type="primary" />
271
- <ButtonFill /> === <Button type="fill" />
272
- <ButtonGhost /> === <Button type="ghost" />
273
- ```
@@ -1,39 +0,0 @@
1
- import { ComponentDocs } from '@lighting-beetle/lighter-styleguide';
2
-
3
- import { Preview } from '../../styleguide/';
4
- import { Buttons, Button } from '../';
5
-
6
- # Buttons
7
-
8
- Help arrange multiple buttons
9
-
10
- ## Usage
11
-
12
- <Preview>
13
- <Buttons>
14
- <Button>There are example buttons</Button>
15
- <Button>They can break into multiple lines</Button>
16
- <button className="link">And look fabulous doing it</button>
17
- </Buttons>
18
- </Preview>
19
-
20
- ## Stack on XS
21
-
22
- Buttons can be forced to stack and span the available width only on XS viewport when used on crossroads pages with two available actions. For example:
23
-
24
- - Login prompt: "Login" and "Continue as new customer"
25
- - Upsell/crossel prompt: "Show offer" and "Skip"
26
-
27
- Button stacks must not be used in wizards to stack continue/back buttons.
28
- Button stacks must not be used with only one button. The maximum recommended number of stacked buttons is two.
29
-
30
- <Preview>
31
- <Buttons isStackedOnXs>
32
- <Button type="primary">Log in</Button>
33
- <Button>Continue as new customer</Button>
34
- </Buttons>
35
- </Preview>
36
-
37
- Button width is always determined by it's content and Button stack scenario is the only exception. If you need vertical navigation, use the [List component](/components/list).
38
-
39
- <ComponentDocs title="<Buttons />" component={Buttons} />