@graphcommerce/next-ui 3.10.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/AppShell/AppShellHeader/index.tsx +5 -6
  2. package/AppShell/DesktopNavBar.tsx +1 -1
  3. package/AppShell/ForwardButton.tsx +3 -3
  4. package/AppShell/FullPageShellBase.tsx +1 -1
  5. package/AppShell/MenuFab.tsx +7 -4
  6. package/Blog/BlogTitle/index.tsx +1 -1
  7. package/Button/index.tsx +11 -4
  8. package/ButtonLink/index.tsx +2 -1
  9. package/CHANGELOG.md +59 -0
  10. package/ChipMenu/index.tsx +4 -12
  11. package/ContainerWithHeader/index.tsx +1 -1
  12. package/Form/InputCheckmark.tsx +13 -2
  13. package/FramerScroller/components/SidebarGallery.tsx +70 -58
  14. package/FramerScroller/components/SidebarSlider.tsx +24 -22
  15. package/IconHeader/index.tsx +2 -6
  16. package/Pagination/index.tsx +6 -12
  17. package/Row/ParagraphWithSidebarSlide/index.tsx +5 -34
  18. package/Row/RowImageTextBoxed/index.tsx +2 -2
  19. package/Row/index.tsx +1 -4
  20. package/Snackbar/MessageSnackbarImpl.tsx +2 -7
  21. package/StarRatingField/index.tsx +13 -22
  22. package/SvgImage/SvgImageSimple.tsx +51 -21
  23. package/TextInputNumber/index.tsx +3 -6
  24. package/Theme/types.ts +0 -13
  25. package/Title/index.tsx +2 -9
  26. package/UspList/UspListItem.tsx +18 -11
  27. package/UspList/index.tsx +4 -3
  28. package/icons/accessibility-human.svg +1 -0
  29. package/icons/accessibility.svg +1 -0
  30. package/icons/activity.svg +1 -0
  31. package/icons/add-to-list.svg +1 -0
  32. package/icons/add.svg +1 -0
  33. package/icons/alarm.svg +1 -0
  34. package/icons/align-center.svg +1 -0
  35. package/icons/align-left.svg +1 -0
  36. package/icons/align-right.svg +1 -0
  37. package/icons/anchor.svg +1 -0
  38. package/icons/aperture.svg +1 -0
  39. package/icons/apps-alt.svg +1 -0
  40. package/icons/apps.svg +1 -0
  41. package/icons/arrow-down-circle.svg +1 -0
  42. package/icons/arrow-down.svg +1 -0
  43. package/icons/arrow-left-bottom.svg +1 -0
  44. package/icons/arrow-left-circle.svg +1 -0
  45. package/icons/arrow-left-top.svg +1 -0
  46. package/icons/arrow-left.svg +1 -0
  47. package/icons/arrow-right-bottom.svg +1 -0
  48. package/icons/arrow-right-circle.svg +1 -0
  49. package/icons/arrow-right-top.svg +1 -0
  50. package/icons/arrow-right.svg +1 -0
  51. package/icons/arrow-up-circle.svg +1 -0
  52. package/icons/arrow-up.svg +1 -0
  53. package/icons/back-alt.svg +1 -0
  54. package/icons/back-left.svg +1 -0
  55. package/icons/back-right.svg +1 -0
  56. package/icons/back.svg +1 -0
  57. package/icons/bag.svg +1 -0
  58. package/icons/basket.svg +1 -0
  59. package/icons/basketball.svg +1 -0
  60. package/icons/battery-alt.svg +1 -0
  61. package/icons/battery-charging.svg +1 -0
  62. package/icons/battery-full.svg +1 -0
  63. package/icons/battery-low.svg +1 -0
  64. package/icons/battery-medium.svg +1 -0
  65. package/icons/battery.svg +1 -0
  66. package/icons/bell.svg +1 -0
  67. package/icons/bike.svg +1 -0
  68. package/icons/bin.svg +1 -0
  69. package/icons/bluetooth.svg +1 -0
  70. package/icons/bolt.svg +1 -0
  71. package/icons/book-opened.svg +1 -0
  72. package/icons/book.svg +1 -0
  73. package/icons/bookmark.svg +1 -0
  74. package/icons/box-alt.svg +1 -0
  75. package/icons/box-alt2.svg +1 -0
  76. package/icons/box.svg +1 -0
  77. package/icons/brightness.svg +1 -0
  78. package/icons/bug.svg +1 -0
  79. package/icons/calendar-add.svg +1 -0
  80. package/icons/calendar-decline.svg +1 -0
  81. package/icons/calendar-event.svg +1 -0
  82. package/icons/calendar.svg +1 -0
  83. package/icons/camera-rear.svg +1 -0
  84. package/icons/camera.svg +1 -0
  85. package/icons/cancel.svg +1 -0
  86. package/icons/car-alt.svg +1 -0
  87. package/icons/car.svg +1 -0
  88. package/icons/cards.svg +1 -0
  89. package/icons/cart-add.svg +1 -0
  90. package/icons/cart.svg +1 -0
  91. package/icons/celluar.svg +1 -0
  92. package/icons/chart.svg +1 -0
  93. package/icons/chat-add.svg +1 -0
  94. package/icons/chat-alt.svg +1 -0
  95. package/icons/chat-remove.svg +1 -0
  96. package/icons/chat-warning.svg +1 -0
  97. package/icons/chat.svg +1 -0
  98. package/icons/checkbox-intermediate.svg +1 -0
  99. package/icons/checkbox.svg +1 -0
  100. package/icons/chevron-down.svg +1 -0
  101. package/icons/chevron-left.svg +1 -0
  102. package/icons/chevron-right.svg +1 -0
  103. package/icons/chevron-up.svg +1 -0
  104. package/icons/chevrons-down.svg +1 -0
  105. package/icons/chevrons-left.svg +1 -0
  106. package/icons/chevrons-right.svg +1 -0
  107. package/icons/chevrons-up.svg +1 -0
  108. package/icons/circle.svg +1 -0
  109. package/icons/clip.svg +1 -0
  110. package/icons/clipboard.svg +1 -0
  111. package/icons/close.svg +1 -0
  112. package/icons/cloud-crossed.svg +1 -0
  113. package/icons/cloud-upload.svg +1 -0
  114. package/icons/cloud.svg +1 -0
  115. package/icons/code-alt.svg +1 -0
  116. package/icons/code.svg +1 -0
  117. package/icons/coffee.svg +1 -0
  118. package/icons/colours.svg +1 -0
  119. package/icons/component.svg +1 -0
  120. package/icons/contact-book.svg +1 -0
  121. package/icons/contrast.svg +1 -0
  122. package/icons/control-centre.svg +1 -0
  123. package/icons/controls-alt.svg +1 -0
  124. package/icons/controls-vertical-alt.svg +1 -0
  125. package/icons/controls.svg +1 -0
  126. package/icons/copy.svg +1 -0
  127. package/icons/credit-card.svg +1 -0
  128. package/icons/crop.svg +1 -0
  129. package/icons/crossing.svg +1 -0
  130. package/icons/cup.svg +1 -0
  131. package/icons/cursor.svg +1 -0
  132. package/icons/cut.svg +1 -0
  133. package/icons/danger.svg +1 -0
  134. package/icons/dashboard.svg +1 -0
  135. package/icons/delete.svg +1 -0
  136. package/icons/dialpad.svg +1 -0
  137. package/icons/diamond.svg +1 -0
  138. package/icons/direction-left.svg +1 -0
  139. package/icons/direction-right.svg +1 -0
  140. package/icons/directions-left.svg +1 -0
  141. package/icons/directions-right.svg +1 -0
  142. package/icons/disc.svg +1 -0
  143. package/icons/dolar.svg +1 -0
  144. package/icons/download.svg +1 -0
  145. package/icons/drop.svg +1 -0
  146. package/icons/ear.svg +1 -0
  147. package/icons/edit.svg +1 -0
  148. package/icons/ellypsis-vertical.svg +1 -0
  149. package/icons/ellypsis.svg +1 -0
  150. package/icons/entrance.svg +1 -0
  151. package/icons/envelope-alt.svg +1 -0
  152. package/icons/envelope.svg +1 -0
  153. package/icons/error.svg +1 -0
  154. package/icons/exit.svg +1 -0
  155. package/icons/explore.svg +1 -0
  156. package/icons/extension.svg +1 -0
  157. package/icons/eye-closed.svg +1 -0
  158. package/icons/eye-crossed.svg +1 -0
  159. package/icons/eye.svg +1 -0
  160. package/icons/favourite.svg +1 -0
  161. package/icons/feather.svg +1 -0
  162. package/icons/feed.svg +1 -0
  163. package/icons/file.svg +1 -0
  164. package/icons/film.svg +1 -0
  165. package/icons/filter.svg +1 -0
  166. package/icons/fit.svg +1 -0
  167. package/icons/flag.svg +1 -0
  168. package/icons/flower.svg +1 -0
  169. package/icons/folder-add.svg +1 -0
  170. package/icons/folder-remove.svg +1 -0
  171. package/icons/folder-warning.svg +1 -0
  172. package/icons/folder.svg +1 -0
  173. package/icons/forward.svg +1 -0
  174. package/icons/glasses.svg +1 -0
  175. package/icons/grid-alt.svg +1 -0
  176. package/icons/grid-small.svg +1 -0
  177. package/icons/grid.svg +1 -0
  178. package/icons/hamburger.svg +1 -0
  179. package/icons/happy-face.svg +1 -0
  180. package/icons/hash.svg +1 -0
  181. package/icons/hdr.svg +1 -0
  182. package/icons/headphones.svg +1 -0
  183. package/icons/hearing-disability.svg +1 -0
  184. package/icons/help.svg +1 -0
  185. package/icons/history.svg +1 -0
  186. package/icons/home-alt.svg +1 -0
  187. package/icons/home-alt2.svg +1 -0
  188. package/icons/home.svg +1 -0
  189. package/icons/horn.svg +1 -0
  190. package/icons/hourglass.svg +1 -0
  191. package/icons/image.svg +1 -0
  192. package/icons/inbox-alt.svg +1 -0
  193. package/icons/inbox.svg +1 -0
  194. package/icons/index.tsx +36 -42
  195. package/icons/info.svg +1 -0
  196. package/icons/iphone.svg +1 -0
  197. package/icons/justify.svg +1 -0
  198. package/icons/key.svg +1 -0
  199. package/icons/language.svg +1 -0
  200. package/icons/laptop.svg +1 -0
  201. package/icons/layers.svg +1 -0
  202. package/icons/layout-left.svg +1 -0
  203. package/icons/layout-right.svg +1 -0
  204. package/icons/lightbulb.svg +1 -0
  205. package/icons/line-chart.svg +1 -0
  206. package/icons/link.svg +1 -0
  207. package/icons/list-alt.svg +1 -0
  208. package/icons/list-view.svg +1 -0
  209. package/icons/list.svg +1 -0
  210. package/icons/location.svg +1 -0
  211. package/icons/lock-alt-open.svg +1 -0
  212. package/icons/lock-alt.svg +1 -0
  213. package/icons/lock-open.svg +1 -0
  214. package/icons/lock.svg +1 -0
  215. package/icons/map.svg +1 -0
  216. package/icons/marker.svg +1 -0
  217. package/icons/mask.svg +1 -0
  218. package/icons/maximise.svg +1 -0
  219. package/icons/microphone.svg +1 -0
  220. package/icons/minimise.svg +1 -0
  221. package/icons/minus.svg +1 -0
  222. package/icons/moon.svg +1 -0
  223. package/icons/mouse.svg +1 -0
  224. package/icons/music.svg +1 -0
  225. package/icons/mute.svg +1 -0
  226. package/icons/neutral-face.svg +1 -0
  227. package/icons/new.svg +1 -0
  228. package/icons/news.svg +1 -0
  229. package/icons/next-alt.svg +1 -0
  230. package/icons/next.svg +1 -0
  231. package/icons/night-mode.svg +1 -0
  232. package/icons/no-entry.svg +1 -0
  233. package/icons/not-allowed.svg +1 -0
  234. package/icons/notebook.svg +1 -0
  235. package/icons/octagon.svg +1 -0
  236. package/icons/ok-circle.svg +1 -0
  237. package/icons/ok.svg +1 -0
  238. package/icons/origin.svg +1 -0
  239. package/icons/pan.svg +1 -0
  240. package/icons/paperclip.svg +1 -0
  241. package/icons/pause-circle.svg +1 -0
  242. package/icons/pause.svg +1 -0
  243. package/icons/pen.svg +1 -0
  244. package/icons/people.svg +1 -0
  245. package/icons/person-add.svg +1 -0
  246. package/icons/person-alt.svg +1 -0
  247. package/icons/person.svg +1 -0
  248. package/icons/phone.svg +1 -0
  249. package/icons/pie-chart.svg +1 -0
  250. package/icons/pizza.svg +1 -0
  251. package/icons/placeholder.svg +1 -0
  252. package/icons/plane.svg +1 -0
  253. package/icons/play.svg +1 -0
  254. package/icons/plus.svg +1 -0
  255. package/icons/poll.svg +1 -0
  256. package/icons/power.svg +1 -0
  257. package/icons/presentation.svg +1 -0
  258. package/icons/previous-alt.svg +1 -0
  259. package/icons/previous.svg +1 -0
  260. package/icons/print.svg +1 -0
  261. package/icons/qr.svg +1 -0
  262. package/icons/radio-button-selected.svg +1 -0
  263. package/icons/radio-button.svg +1 -0
  264. package/icons/radio.svg +1 -0
  265. package/icons/rain.svg +1 -0
  266. package/icons/rectangle.svg +1 -0
  267. package/icons/redo.svg +1 -0
  268. package/icons/refresh.svg +1 -0
  269. package/icons/remove.svg +1 -0
  270. package/icons/repeat.svg +1 -0
  271. package/icons/restaurant.svg +1 -0
  272. package/icons/return.svg +1 -0
  273. package/icons/retweet.svg +1 -0
  274. package/icons/rocket.svg +1 -0
  275. package/icons/rotate.svg +1 -0
  276. package/icons/rss.svg +1 -0
  277. package/icons/sad-face.svg +1 -0
  278. package/icons/save.svg +1 -0
  279. package/icons/search.svg +1 -0
  280. package/icons/send.svg +1 -0
  281. package/icons/settings.svg +1 -0
  282. package/icons/share-android.svg +1 -0
  283. package/icons/share-ios.svg +1 -0
  284. package/icons/share.svg +1 -0
  285. package/icons/shield.svg +1 -0
  286. package/icons/shift.svg +1 -0
  287. package/icons/shuffle.svg +1 -0
  288. package/icons/sign-language.svg +1 -0
  289. package/icons/signal-alt.svg +1 -0
  290. package/icons/signal.svg +1 -0
  291. package/icons/skull.svg +1 -0
  292. package/icons/smartphone.svg +1 -0
  293. package/icons/snow.svg +1 -0
  294. package/icons/sort-down.svg +1 -0
  295. package/icons/sort-up.svg +1 -0
  296. package/icons/sorting.svg +1 -0
  297. package/icons/sounds.svg +1 -0
  298. package/icons/spam.svg +1 -0
  299. package/icons/stack.svg +1 -0
  300. package/icons/star.svg +1 -0
  301. package/icons/stats-alt.svg +1 -0
  302. package/icons/stats.svg +1 -0
  303. package/icons/sticker.svg +1 -0
  304. package/icons/stop.svg +1 -0
  305. package/icons/stopwatch.svg +1 -0
  306. package/icons/suitcase-alt.svg +1 -0
  307. package/icons/suitcase.svg +1 -0
  308. package/icons/sun-cloud.svg +1 -0
  309. package/icons/sun.svg +1 -0
  310. package/icons/sunset.svg +1 -0
  311. package/icons/support-alt.svg +1 -0
  312. package/icons/support.svg +1 -0
  313. package/icons/swap-horizontal.svg +1 -0
  314. package/icons/swap-vertical.svg +1 -0
  315. package/icons/switch-off.svg +1 -0
  316. package/icons/switch-on.svg +1 -0
  317. package/icons/table-horizontal.svg +1 -0
  318. package/icons/table-vertical.svg +1 -0
  319. package/icons/tag-alt.svg +1 -0
  320. package/icons/tag.svg +1 -0
  321. package/icons/text.svg +1 -0
  322. package/icons/thermometer.svg +1 -0
  323. package/icons/thumb-down.svg +1 -0
  324. package/icons/thumb-up.svg +1 -0
  325. package/icons/thunder.svg +1 -0
  326. package/icons/time.svg +1 -0
  327. package/icons/timer.svg +1 -0
  328. package/icons/tool.svg +1 -0
  329. package/icons/train.svg +1 -0
  330. package/icons/transport.svg +1 -0
  331. package/icons/trending-down.svg +1 -0
  332. package/icons/trending-up.svg +1 -0
  333. package/icons/turn-left.svg +1 -0
  334. package/icons/turn-right.svg +1 -0
  335. package/icons/tv.svg +1 -0
  336. package/icons/typography.svg +1 -0
  337. package/icons/umbrella.svg +1 -0
  338. package/icons/undo.svg +1 -0
  339. package/icons/upload.svg +1 -0
  340. package/icons/user.svg +1 -0
  341. package/icons/verified.svg +1 -0
  342. package/icons/vertical.svg +1 -0
  343. package/icons/video.svg +1 -0
  344. package/icons/voicemail.svg +1 -0
  345. package/icons/volume-loud.svg +1 -0
  346. package/icons/volume-off.svg +1 -0
  347. package/icons/volume-quiet.svg +1 -0
  348. package/icons/walking.svg +1 -0
  349. package/icons/wallpaper.svg +1 -0
  350. package/icons/watch.svg +1 -0
  351. package/icons/wheelchair.svg +1 -0
  352. package/icons/wifi.svg +1 -0
  353. package/icons/window.svg +1 -0
  354. package/icons/wine.svg +1 -0
  355. package/icons/zoom-in.svg +1 -0
  356. package/icons/zoom-out.svg +1 -0
  357. package/index.ts +0 -2
  358. package/package.json +11 -11
  359. package/icons/icon_addresses.svg +0 -17
  360. package/icons/icon_arrow_back.svg +0 -1
  361. package/icons/icon_arrow_forward.svg +0 -1
  362. package/icons/icon_box.svg +0 -6
  363. package/icons/icon_chat.svg +0 -1
  364. package/icons/icon_checkmark.svg +0 -1
  365. package/icons/icon_checkmark_green.svg +0 -1
  366. package/icons/icon_chevron_back.svg +0 -8
  367. package/icons/icon_chevron_down.svg +0 -8
  368. package/icons/icon_chevron_left.svg +0 -8
  369. package/icons/icon_chevron_right.svg +0 -8
  370. package/icons/icon_chevron_up.svg +0 -8
  371. package/icons/icon_close.svg +0 -6
  372. package/icons/icon_close_circle.svg +0 -1
  373. package/icons/icon_customer_service.svg +0 -6
  374. package/icons/icon_email.svg +0 -1
  375. package/icons/icon_email_outline.svg +0 -6
  376. package/icons/icon_fullscreen.svg +0 -1
  377. package/icons/icon_fullscreen_exit.svg +0 -1
  378. package/icons/icon_heart.svg +0 -15
  379. package/icons/icon_home.svg +0 -6
  380. package/icons/icon_id.svg +0 -6
  381. package/icons/icon_invoice_red.svg +0 -7
  382. package/icons/icon_location_red.svg +0 -7
  383. package/icons/icon_lock.svg +0 -6
  384. package/icons/icon_menu.svg +0 -1
  385. package/icons/icon_min.svg +0 -1
  386. package/icons/icon_newspaper.svg +0 -6
  387. package/icons/icon_party.svg +0 -7
  388. package/icons/icon_person.svg +0 -6
  389. package/icons/icon_person_alt.svg +0 -6
  390. package/icons/icon_person_alt_big.svg +0 -15
  391. package/icons/icon_phone.svg +0 -1
  392. package/icons/icon_plus.svg +0 -1
  393. package/icons/icon_sad_face.svg +0 -11
  394. package/icons/icon_sad_shoppingbag.svg +0 -16
  395. package/icons/icon_search.svg +0 -1
  396. package/icons/icon_shopping_bag.svg +0 -7
  397. package/icons/icon_shutdown.svg +0 -6
  398. package/icons/icon_star.svg +0 -6
  399. package/icons/icon_star_filled_muted.svg +0 -6
  400. package/icons/icon_star_yellow.svg +0 -6
  401. package/useIntersectionObserver/index.tsx +0 -31
@@ -7,6 +7,7 @@ import React, { useCallback, useEffect } from 'react'
7
7
  import Button from '../../Button'
8
8
  import { UseStyles } from '../../Styles'
9
9
  import SvgImage from '../../SvgImage'
10
+ import SvgImageSimple from '../../SvgImage/SvgImageSimple'
10
11
  import { iconChevronLeft, iconClose } from '../../icons'
11
12
  import useAppShellHeaderContext from './useAppShellHeaderContext'
12
13
 
@@ -180,7 +181,7 @@ const useStyles = makeStyles(
180
181
  },
181
182
  },
182
183
  backButton: {
183
- background: theme.palette.background.default,
184
+ background: theme.palette.background.paper,
184
185
  color: theme.palette.text.primary,
185
186
  '&:hover': {
186
187
  background: theme.palette.background.highlight,
@@ -314,19 +315,17 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
314
315
  classes={{ root: classes.fab }}
315
316
  onClick={() => router.go(closeSteps * -1)}
316
317
  >
317
- <SvgImage src={iconClose} mobileSize={20} size={20} alt='Close overlay' loading='eager' />
318
+ <SvgImageSimple src={iconClose} />
318
319
  </Fab>
319
320
  ) : (
320
321
  <PageLink href='/' passHref>
321
322
  <Fab size='small' classes={{ root: classes.fab }}>
322
- <SvgImage src={iconClose} alt='Close overlay' size={20} mobileSize={20} loading='eager' />
323
+ <SvgImageSimple src={iconClose} />
323
324
  </Fab>
324
325
  </PageLink>
325
326
  ))
326
327
 
327
- const backIcon = (
328
- <SvgImage src={iconChevronLeft} alt='chevron back' loading='eager' size={26} mobileSize={30} />
329
- )
328
+ const backIcon = <SvgImageSimple src={iconChevronLeft} />
330
329
  let back = backSteps > 0 && (
331
330
  <Button
332
331
  onClick={() => router.back()}
@@ -57,7 +57,7 @@ const useStyles = makeStyles(
57
57
  },
58
58
  link: {
59
59
  whiteSpace: 'nowrap',
60
- color: 'black',
60
+ color: theme.palette.text.primary,
61
61
  '&:hover': {
62
62
  textDecoration: 'none',
63
63
  },
@@ -1,8 +1,8 @@
1
1
  import { ButtonProps, makeStyles, Theme } from '@material-ui/core'
2
2
  import React from 'react'
3
+ import { SvgImageSimple } from '..'
3
4
  import Button from '../Button'
4
5
  import { UseStyles } from '../Styles'
5
- import SvgImage from '../SvgImage'
6
6
  import { iconChevronRight } from '../icons'
7
7
 
8
8
  const useStyles = makeStyles(
@@ -39,14 +39,14 @@ const useStyles = makeStyles(
39
39
 
40
40
  export type ForwardButtonProps = UseStyles<typeof useStyles> & ButtonProps & { down?: boolean }
41
41
 
42
- const ForwardButton = React.forwardRef((props: ForwardButtonProps, ref) => {
42
+ const ForwardButton = React.forwardRef((props: ForwardButtonProps) => {
43
43
  const { text, icon, ...classes } = useStyles(props)
44
44
  const { children, down, ...fabProps } = props
45
45
 
46
46
  return (
47
47
  <Button variant='pill' classes={classes} {...fabProps}>
48
48
  <span className={text}>{children}</span>
49
- <SvgImage src={iconChevronRight} alt='chevron right' size='small' classes={{ root: icon }} />
49
+ <SvgImageSimple src={iconChevronRight} size='small' className={classes.root} />
50
50
  </Button>
51
51
  )
52
52
  })
@@ -8,7 +8,7 @@ import ShellBase, { PageLayoutBaseProps } from './ShellBase'
8
8
  const useStyles = makeStyles(
9
9
  (theme: Theme) => ({
10
10
  root: {
11
- background: '#fff',
11
+ background: theme.palette.background.default,
12
12
  minHeight: '100vh',
13
13
  display: 'grid',
14
14
  gridTemplateRows: `auto 1fr auto`,
@@ -50,10 +50,13 @@ const useStyles = makeStyles(
50
50
  minWidth: responsiveVal(200, 280),
51
51
  },
52
52
  menuItemText: {
53
- fontSize: '1.5em',
54
- fontWeight: 500,
55
- letterSpacing: '-0.0375em',
53
+ ...theme.typography.h3,
54
+ fontWeight: 550,
56
55
  lineHeight: 1,
56
+ // fontSize: '1.6em',
57
+ // fontWeight: 550,
58
+ // letterSpacing: '-0.0375em',
59
+ // lineHeight: 1,
57
60
  },
58
61
  menuItem: {},
59
62
  }),
@@ -82,7 +85,7 @@ export default function MenuFab(props: MenuFabProps) {
82
85
  onClick={(event) => setOpenEl(event.currentTarget)}
83
86
  className={classes.menuFab}
84
87
  >
85
- <SvgImageSimple src={iconMenu} inverted alt='menu' loading='eager' />
88
+ <SvgImageSimple src={iconMenu} inverted />
86
89
  </Fab>
87
90
 
88
91
  <Menu
@@ -23,7 +23,7 @@ export default function BlogTitle(props: BlogTitleProps) {
23
23
 
24
24
  return (
25
25
  <div className={classes.wrapper}>
26
- <AppShellTitle variant='h2'>{title}</AppShellTitle>
26
+ <AppShellTitle variant='h1'>{title}</AppShellTitle>
27
27
  </div>
28
28
  )
29
29
  }
package/Button/index.tsx CHANGED
@@ -22,6 +22,7 @@ type ButtonClassKey =
22
22
  | 'textBold'
23
23
  | 'withStartIcon'
24
24
  | 'startIconText'
25
+ | 'loading'
25
26
 
26
27
  type ClassKeys = ButtonClassKey | MuiButtonClassKey
27
28
  type Text = 'normal' | 'bold'
@@ -54,7 +55,7 @@ const useStyles = makeStyles<
54
55
  },
55
56
  },
56
57
  pill: {
57
- borderRadius: 40 / 2,
58
+ borderRadius: '99em',
58
59
  },
59
60
  pillLink: {
60
61
  [theme.breakpoints.up('md')]: {
@@ -63,7 +64,7 @@ const useStyles = makeStyles<
63
64
  boxShadow: theme.shadows[6],
64
65
  borderRadius: 25,
65
66
  padding: '6px 16px',
66
- fontWeight: theme.typography.fontWeightBold,
67
+
67
68
  '&:hover': {
68
69
  background: theme.palette.secondary.dark,
69
70
  },
@@ -76,10 +77,10 @@ const useStyles = makeStyles<
76
77
  //
77
78
  },
78
79
  pillSizeLarge: {
79
- borderRadius: 59 / 2,
80
+ //
80
81
  },
81
82
  pillSizeSmall: {
82
- borderRadius: 33 / 2,
83
+ //
83
84
  },
84
85
  pillNoElevation: {
85
86
  /* disableElevation does not stop adding box shadow on active... ?! */
@@ -96,6 +97,11 @@ const useStyles = makeStyles<
96
97
  display: 'unset',
97
98
  },
98
99
  },
100
+ loading: {
101
+ '& svg': {
102
+ stroke: theme.palette.text.disabled,
103
+ },
104
+ },
99
105
  }),
100
106
  { name: 'MuiPillButton' },
101
107
  )
@@ -156,6 +162,7 @@ export default React.forwardRef<any, ButtonProps>((props, ref) => {
156
162
  [pillClasses.pillNoElevation]: buttonProps.disableElevation,
157
163
  [pillClasses.pillLink]: variant === 'pill-link',
158
164
  [pillClasses.textBold]: text === 'bold',
165
+ [pillClasses.loading]: loading,
159
166
  [pillClasses.withStartIcon]: withIcon,
160
167
  },
161
168
  className,
@@ -4,6 +4,7 @@ import React from 'react'
4
4
  import Button, { ButtonProps } from '../Button'
5
5
  import { UseStyles } from '../Styles'
6
6
  import SvgImage from '../SvgImage'
7
+ import SvgImageSimple from '../SvgImage/SvgImageSimple'
7
8
  import { iconChevronRight } from '../icons'
8
9
 
9
10
  const useStyles = makeStyles((theme: Theme) => ({
@@ -38,7 +39,7 @@ export default function ButtonLink(props: ButtonLinkProps) {
38
39
  <PageLink href={url} passHref>
39
40
  <Button {...buttonProps} className={classes.buttonLink}>
40
41
  <span>{title}</span>
41
- {endIcon ?? <SvgImage src={iconChevronRight} alt='chevron right' />}
42
+ {endIcon ?? <SvgImageSimple src={iconChevronRight} />}
42
43
  </Button>
43
44
  </PageLink>
44
45
  )
package/CHANGELOG.md CHANGED
@@ -3,6 +3,65 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.11.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.11.0...@graphcommerce/next-ui@3.11.1) (2021-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.11.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.10.2...@graphcommerce/next-ui@3.11.0) (2021-10-28)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * add missing row container for consistent margins ([10869b8](https://github.com/ho-nl/m2-pwa/commit/10869b8a7ab9579306b268b22a0af47c1a2e2e25))
23
+ * alt person icon ([d80d180](https://github.com/ho-nl/m2-pwa/commit/d80d18043a86551feaf5ce49a30752c93ee27924))
24
+ * base icon size on responsiveVal ([3bbd2a7](https://github.com/ho-nl/m2-pwa/commit/3bbd2a7be4853b284f90603056ae8990e5d62040))
25
+ * build ([25582a4](https://github.com/ho-nl/m2-pwa/commit/25582a496039c704e75bb969d4fa06c13ee6267d))
26
+ * build missing import ([5850f25](https://github.com/ho-nl/m2-pwa/commit/5850f2561a2d9d72d4ebe0da5c964b6571a72b03))
27
+ * build, remove unused imports ([af6d72c](https://github.com/ho-nl/m2-pwa/commit/af6d72c6e70f670effb4d9e0c1fd883bf771f99d))
28
+ * consistent margin product page ([1c65ff6](https://github.com/ho-nl/m2-pwa/commit/1c65ff6b19ebb3fed70abf8326f4e593d77c70da))
29
+ * force object-fit image ([df049f7](https://github.com/ho-nl/m2-pwa/commit/df049f727a26aa049c6c9d3aa338223ce442bffd))
30
+ * icon size ([6063855](https://github.com/ho-nl/m2-pwa/commit/6063855d9c7360f0ea69ffdb22292de6c93e5f27))
31
+ * loading state icon muted ([f7c3a6b](https://github.com/ho-nl/m2-pwa/commit/f7c3a6be199f2d05d1ad918043bf199544824ff6))
32
+ * make pill buttons always completely rounded ([9d8e211](https://github.com/ho-nl/m2-pwa/commit/9d8e211303ac6cd371a834bf73fb10a6345ca13a))
33
+ * pagination size ([7d16290](https://github.com/ho-nl/m2-pwa/commit/7d16290d8180a2eb06755859cb9dcdbd44e7d59b))
34
+ * remove double icons ([1654e34](https://github.com/ho-nl/m2-pwa/commit/1654e3441911f3c7c1600357f8f8e3032f5ee729))
35
+ * remove laggy animation ([3ca0922](https://github.com/ho-nl/m2-pwa/commit/3ca09221ecd6e533063c42ec9fbe11f9484099bc))
36
+ * remove unused breakpoint ([19dc4c4](https://github.com/ho-nl/m2-pwa/commit/19dc4c4bde18bec74c8f3e13e3769b929f2e9d57))
37
+ * small sized chevron for service page links ([1748418](https://github.com/ho-nl/m2-pwa/commit/17484186ae20e8002f38f1dcb820f942023f5bbc))
38
+ * smaller icons for search and menu ([f8e8949](https://github.com/ho-nl/m2-pwa/commit/f8e89494f358f9d2868c75901abaca2bffe38bdc))
39
+ * strokeWidth for xxl icons ([da131e2](https://github.com/ho-nl/m2-pwa/commit/da131e20beb5bdf94c99de6237d7563b187f20da))
40
+ * SvgImage to SvgImageSimple ([0004269](https://github.com/ho-nl/m2-pwa/commit/00042694f89e4a5fc17a4b74a16185cada14b80a))
41
+ * SvgImage to SvgImageSimple ([9722167](https://github.com/ho-nl/m2-pwa/commit/9722167cd3c6032b4251ef4a4921d727eb92167e))
42
+ * SvgImage to SvgImageSimple ([793fac7](https://github.com/ho-nl/m2-pwa/commit/793fac769f045d283817fe47fbed77d38d282f3c))
43
+ * tuning sizeLarge, adjust muted and inverted styles ([49d69ee](https://github.com/ho-nl/m2-pwa/commit/49d69ee8d9a04a87fbd9979594c5a3b445f7dd58))
44
+ * update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
45
+ * use font from theme for menu ([74522ae](https://github.com/ho-nl/m2-pwa/commit/74522ae9bababbf204d925ae96997dc45f611bfc))
46
+ * usp fontsize ([1164907](https://github.com/ho-nl/m2-pwa/commit/1164907be4fa7ed3a517f66b2af67a54df55a38f))
47
+
48
+
49
+ ### Features
50
+
51
+ * add default iconset ([eb78d4c](https://github.com/ho-nl/m2-pwa/commit/eb78d4c081937bc56ce1c593a6632a4ff32e611e))
52
+ * dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
53
+ * icon references ([b477029](https://github.com/ho-nl/m2-pwa/commit/b47702955cf47b19fb0861c0d40751ac43e8eeab))
54
+ * mobile menu styling ([3cc3085](https://github.com/ho-nl/m2-pwa/commit/3cc308585d4ded68d2ac8ebf97f96288424ee914))
55
+ * more spacious row margins for mobile ([0b3e973](https://github.com/ho-nl/m2-pwa/commit/0b3e9734aa01fcc0801fa12281edd224d9600464))
56
+ * rebuild to support svg imports ([59fbda3](https://github.com/ho-nl/m2-pwa/commit/59fbda300ce88c51a5d1c6a7ea457cb3b323b24d))
57
+ * replace icons with icon pack ([60951d5](https://github.com/ho-nl/m2-pwa/commit/60951d57684637da8c4aed94f28e69f18129bbd0))
58
+ * set correct font sizes ([9317448](https://github.com/ho-nl/m2-pwa/commit/9317448c94a9fb4408dfbcaa320adccc363964d0))
59
+ * UspList styling and svg support ([70f472b](https://github.com/ho-nl/m2-pwa/commit/70f472bb143aae86879e69dc911bbbdf229b39b9))
60
+
61
+
62
+
63
+
64
+
6
65
  # [3.10.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.9.0...@graphcommerce/next-ui@3.10.0) (2021-10-27)
7
66
 
8
67
 
@@ -4,6 +4,7 @@ import React, { PropsWithChildren, useState } from 'react'
4
4
  import SectionHeader from '../SectionHeader'
5
5
  import responsiveVal from '../Styles/responsiveVal'
6
6
  import SvgImage from '../SvgImage'
7
+ import SvgImageSimple from '../SvgImage/SvgImageSimple'
7
8
  import { iconChevronDown, iconChevronUp, iconCloseCircle } from '../icons'
8
9
 
9
10
  export const useChipMenuStyles = makeStyles(
@@ -76,20 +77,11 @@ export default function ChipMenu(props: ChipMenuProps) {
76
77
  const classes = useChipMenuStyles(props)
77
78
 
78
79
  let deleteIcon = selected ? (
79
- <SvgImage size='medium' src={iconCloseCircle} alt='close' shade='default' />
80
+ <SvgImageSimple src={iconCloseCircle} />
80
81
  ) : (
81
- <SvgImage
82
- size='medium'
83
- src={iconChevronDown}
84
- alt='chevron down'
85
- loading='eager'
86
- shade='muted'
87
- />
82
+ <SvgImageSimple src={iconChevronDown} />
88
83
  )
89
- if (openEl)
90
- deleteIcon = (
91
- <SvgImage size='medium' src={iconChevronUp} alt='chevron up' loading='eager' shade='muted' />
92
- )
84
+ if (openEl) deleteIcon = <SvgImageSimple src={iconChevronUp} />
93
85
 
94
86
  const selectedAndMenuHidden = selected && !openEl && selectedLabel
95
87
 
@@ -36,7 +36,7 @@ export default function ContainerWithHeader(props: ContainerWithHeaderProps) {
36
36
  return (
37
37
  <Row>
38
38
  <div className={classes.head}>
39
- <Typography variant='h3' component='h2' className={classes.title}>
39
+ <Typography variant='h5' component='h2' className={classes.title}>
40
40
  {title}
41
41
  </Typography>
42
42
  <Typography component='div' variant='subtitle1' className={classes.right}>
@@ -1,8 +1,18 @@
1
+ import { makeStyles, Theme } from '@material-ui/core'
1
2
  import React, { PropsWithChildren } from 'react'
2
3
  import SvgImage from '../SvgImage'
3
- import { iconCheckmarkGreen } from '../icons'
4
+ import SvgImageSimple from '../SvgImage/SvgImageSimple'
5
+ import { iconCheckmark } from '../icons'
4
6
 
5
7
  export type InputCheckmarkProps = PropsWithChildren<{ show?: boolean }>
8
+ const useStyles = makeStyles(
9
+ (theme: Theme) => ({
10
+ iconCheckmark: {
11
+ stroke: '#01D26A',
12
+ },
13
+ }),
14
+ { name: 'InputCheckmark' },
15
+ )
6
16
 
7
17
  /**
8
18
  * When the `valid` prop is passed it will render a CheckIcon, else it will render children.
@@ -13,7 +23,8 @@ export type InputCheckmarkProps = PropsWithChildren<{ show?: boolean }>
13
23
  */
14
24
  export default function InputCheckmark(props: InputCheckmarkProps) {
15
25
  const { show: valid, children } = props
26
+ const classes = useStyles()
16
27
 
17
28
  if (!valid) return <>{children}</>
18
- return <SvgImage src={iconCheckmarkGreen} alt='checkmark' />
29
+ return <SvgImageSimple src={iconCheckmark} className={classes.iconCheckmark} />
19
30
  }
@@ -14,6 +14,7 @@ import clsx from 'clsx'
14
14
  import { m, useDomEvent, useMotionValue } from 'framer-motion'
15
15
  import { useRouter } from 'next/router'
16
16
  import React, { useEffect, useRef } from 'react'
17
+ import { Row } from '../..'
17
18
  import { UseStyles } from '../../Styles'
18
19
  import responsiveVal from '../../Styles/responsiveVal'
19
20
  import SvgImage from '../../SvgImage'
@@ -35,7 +36,6 @@ const useStyles = makeStyles(
35
36
  },
36
37
  background: theme.palette.background.highlight,
37
38
  paddingRight: `calc((100% - ${theme.breakpoints.values.lg}px) / 2)`,
38
- marginBottom: theme.spacings.lg,
39
39
  },
40
40
  rootZoomed: {
41
41
  position: 'relative',
@@ -225,68 +225,80 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
225
225
 
226
226
  return (
227
227
  <ScrollerProvider scrollSnapAlign='center'>
228
- <m.div layout className={clsxZoom('root')}>
229
- <m.div
230
- layout
231
- className={clsxZoom('scrollerContainer')}
232
- onLayoutAnimationComplete={() => {
233
- if (!zoomed) document.body.style.overflow = ''
234
- }}
235
- >
236
- <Scroller
237
- className={clsxZoom('scroller')}
238
- hideScrollbar
239
- onMouseDown={onMouseDownScroller}
240
- onMouseUp={onMouseUpScroller}
228
+ <Row maxWidth={false} disableGutters>
229
+ <m.div layout className={clsxZoom('root')}>
230
+ <m.div
231
+ layout
232
+ className={clsxZoom('scrollerContainer')}
233
+ onLayoutAnimationComplete={() => {
234
+ if (!zoomed) document.body.style.overflow = ''
235
+ }}
241
236
  >
242
- {images.map((image, idx) => (
243
- <CenterSlide key={typeof image.src === 'string' ? image.src : idx}>
244
- <MotionImageAspect
245
- layout
246
- src={image.src}
247
- width={image.width}
248
- height={image.height}
249
- loading={idx === 0 ? 'eager' : 'lazy'}
250
- sizes={{
251
- 0: '100vw',
252
- [theme.breakpoints.values.md]: zoomed ? '100vw' : '60vw',
253
- }}
254
- dontReportWronglySizedImages
255
- />
256
- </CenterSlide>
257
- ))}
258
- </Scroller>
259
- <m.div layout className={classes.topRight}>
260
- <Fab color='inherit' size='small' className={classes.toggleIcon} onMouseUp={toggle}>
261
- {!zoomed ? (
262
- <SvgImage src={iconFullscreen} alt='Zoom in' loading='eager' size='small' />
263
- ) : (
264
- <SvgImage src={iconFullscreenExit} alt='Zoom out' loading='eager' size='small' />
265
- )}
266
- </Fab>
237
+ <Scroller
238
+ className={clsxZoom('scroller')}
239
+ hideScrollbar
240
+ onMouseDown={onMouseDownScroller}
241
+ onMouseUp={onMouseUpScroller}
242
+ >
243
+ {images.map((image, idx) => (
244
+ <CenterSlide key={typeof image.src === 'string' ? image.src : idx}>
245
+ <MotionImageAspect
246
+ layout
247
+ src={image.src}
248
+ width={image.width}
249
+ height={image.height}
250
+ loading={idx === 0 ? 'eager' : 'lazy'}
251
+ sizes={{
252
+ 0: '100vw',
253
+ [theme.breakpoints.values.md]: zoomed ? '100vw' : '60vw',
254
+ }}
255
+ dontReportWronglySizedImages
256
+ />
257
+ </CenterSlide>
258
+ ))}
259
+ </Scroller>
260
+ <m.div layout className={classes.topRight}>
261
+ <Fab color='inherit' size='small' className={classes.toggleIcon} onMouseUp={toggle}>
262
+ {!zoomed ? (
263
+ <SvgImageSimple src={iconFullscreen} />
264
+ ) : (
265
+ <SvgImageSimple src={iconFullscreenExit} />
266
+ )}
267
+ </Fab>
268
+ </m.div>
269
+ <div className={classes.centerLeft}>
270
+ <ScrollerButton
271
+ layout
272
+ direction='left'
273
+ size='small'
274
+ className={classes.sliderButtons}
275
+ >
276
+ <SvgImageSimple src={iconChevronLeft} />
277
+ </ScrollerButton>
278
+ </div>
279
+ <div className={classes.centerRight}>
280
+ <ScrollerButton
281
+ layout
282
+ direction='right'
283
+ size='small'
284
+ className={classes.sliderButtons}
285
+ >
286
+ <SvgImageSimple src={iconChevronRight} />
287
+ </ScrollerButton>
288
+ </div>
289
+
290
+ <div className={classes.bottomCenter}>
291
+ <ScrollerDots layout classes={{ dots: classes.dots }} />
292
+ </div>
267
293
  </m.div>
268
- <div className={classes.centerLeft}>
269
- <ScrollerButton layout direction='left' size='small' className={classes.sliderButtons}>
270
- <SvgImageSimple src={iconChevronLeft} />
271
- </ScrollerButton>
272
- </div>
273
- <div className={classes.centerRight}>
274
- <ScrollerButton layout direction='right' size='small' className={classes.sliderButtons}>
275
- <SvgImageSimple src={iconChevronRight} />
276
- </ScrollerButton>
277
- </div>
278
294
 
279
- <div className={classes.bottomCenter}>
280
- <ScrollerDots layout classes={{ dots: classes.dots }} />
295
+ <div className={clsxZoom('sidebarWrapper')}>
296
+ <m.div layout className={clsxZoom('sidebar')}>
297
+ {sidebar}
298
+ </m.div>
281
299
  </div>
282
300
  </m.div>
283
-
284
- <div className={clsxZoom('sidebarWrapper')}>
285
- <m.div layout className={clsxZoom('sidebar')}>
286
- {sidebar}
287
- </m.div>
288
- </div>
289
- </m.div>
301
+ </Row>
290
302
  </ScrollerProvider>
291
303
  )
292
304
  }
@@ -6,6 +6,7 @@ import {
6
6
  } from '@graphcommerce/framer-scroller'
7
7
  import { Theme, makeStyles } from '@material-ui/core'
8
8
  import React, { ReactNode } from 'react'
9
+ import Row from '../../Row'
9
10
  import { UseStyles } from '../../Styles'
10
11
  import responsiveVal from '../../Styles/responsiveVal'
11
12
  import SvgImageSimple from '../../SvgImage/SvgImageSimple'
@@ -17,7 +18,6 @@ const useStyles = makeStyles(
17
18
  display: 'grid',
18
19
  gridTemplateColumns: 'minmax(150px, 25%) 1fr',
19
20
  maxWidth: '100%',
20
- marginBottom: `${theme.spacings.xl}`,
21
21
  },
22
22
  sidebar: {
23
23
  display: 'grid',
@@ -69,29 +69,31 @@ export default function SidebarSlider(props: SidebarSliderProps) {
69
69
  const classes = useStyles(props)
70
70
 
71
71
  return (
72
- <ScrollerProvider scrollSnapAlign='start'>
73
- <div className={classes.root}>
74
- <div className={classes.sidebar}>
75
- <div>{sidebar}</div>
76
- <ScrollerPageCounter />
77
- </div>
78
-
79
- <div className={classes.scrollerContainer}>
80
- <Scroller className={classes.scroller} hideScrollbar>
81
- {children}
82
- </Scroller>
83
- <div className={classes.centerLeft}>
84
- <ScrollerButton layout direction='left' className={classes.sliderButtons}>
85
- <SvgImageSimple src={iconChevronLeft} />
86
- </ScrollerButton>
72
+ <Row maxWidth={false} disableGutters>
73
+ <ScrollerProvider scrollSnapAlign='start'>
74
+ <div className={classes.root}>
75
+ <div className={classes.sidebar}>
76
+ <div>{sidebar}</div>
77
+ <ScrollerPageCounter />
87
78
  </div>
88
- <div className={classes.centerRight}>
89
- <ScrollerButton layout direction='right' className={classes.sliderButtons}>
90
- <SvgImageSimple src={iconChevronRight} />
91
- </ScrollerButton>
79
+
80
+ <div className={classes.scrollerContainer}>
81
+ <Scroller className={classes.scroller} hideScrollbar>
82
+ {children}
83
+ </Scroller>
84
+ <div className={classes.centerLeft}>
85
+ <ScrollerButton layout direction='left' className={classes.sliderButtons}>
86
+ <SvgImageSimple src={iconChevronLeft} />
87
+ </ScrollerButton>
88
+ </div>
89
+ <div className={classes.centerRight}>
90
+ <ScrollerButton layout direction='right' className={classes.sliderButtons}>
91
+ <SvgImageSimple src={iconChevronRight} />
92
+ </ScrollerButton>
93
+ </div>
92
94
  </div>
93
95
  </div>
94
- </div>
95
- </ScrollerProvider>
96
+ </ScrollerProvider>
97
+ </Row>
96
98
  )
97
99
  }
@@ -1,6 +1,7 @@
1
1
  import { makeStyles, Theme, Typography } from '@material-ui/core'
2
2
  import clsx from 'clsx'
3
3
  import React from 'react'
4
+ import { SvgImageSimple } from '..'
4
5
  import responsiveVal from '../Styles/responsiveVal'
5
6
  import SvgImage, { SvgImageProps } from '../SvgImage'
6
7
 
@@ -87,12 +88,7 @@ export default function IconHeader(props: IconHeaderProps) {
87
88
  return (
88
89
  <div className={clsx(classes.container, !noMargin && classes.margin)}>
89
90
  <div className={clsx(classes.innerContainer, !stayInline && classes.breakColumnsDesktop)}>
90
- <SvgImage
91
- {...svgImageProps}
92
- size={iconSize ?? iconSizes[size]}
93
- mobileSize={iconSizeMobile ?? iconMobileSizes[size]}
94
- loading='eager'
95
- />
91
+ <SvgImageSimple {...svgImageProps} />
96
92
  <Typography
97
93
  variant={variants[size]}
98
94
  component='h2'
@@ -3,6 +3,7 @@ import { PaginationProps, usePagination } from '@material-ui/lab'
3
3
  import React from 'react'
4
4
  import { UseStyles } from '../Styles'
5
5
  import SvgImage from '../SvgImage'
6
+ import SvgImageSimple from '../SvgImage/SvgImageSimple'
6
7
  import { iconChevronLeft, iconChevronRight } from '../icons'
7
8
 
8
9
  const useStyles = makeStyles((theme: Theme) => ({
@@ -51,15 +52,18 @@ const useStyles = makeStyles((theme: Theme) => ({
51
52
  },
52
53
  },
53
54
  icon: {
55
+ display: 'flex',
54
56
  borderRadius: '100%',
55
57
  padding: 6,
56
58
  height: 40,
57
59
  width: 40,
58
60
  },
59
61
  label: {
62
+ ...theme.typography.body1,
60
63
  textAlign: 'center',
61
64
  },
62
65
  labelTitle: {
66
+ ...theme.typography.body1,
63
67
  display: 'inline',
64
68
  [theme.breakpoints.down('xs')]: {
65
69
  display: 'block',
@@ -93,21 +97,11 @@ export default function Pagination(props: PagePaginationProps) {
93
97
  const nextBtnProps = items[items.length - 1]
94
98
 
95
99
  const chevronLeft = (
96
- <SvgImage
97
- src={iconChevronLeft}
98
- alt='chevron left'
99
- shade={page === 1 ? 'muted' : undefined}
100
- classes={{ root: classes.icon }}
101
- />
100
+ <SvgImageSimple src={iconChevronLeft} muted={page === 1} className={classes.icon} />
102
101
  )
103
102
 
104
103
  const chevronRight = (
105
- <SvgImage
106
- src={iconChevronRight}
107
- alt='chevron right'
108
- shade={page === count ? 'muted' : undefined}
109
- classes={{ root: classes.icon }}
110
- />
104
+ <SvgImageSimple src={iconChevronRight} muted={page === count} className={classes.icon} />
111
105
  )
112
106
 
113
107
  return (