@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.
- package/AppShell/AppShellHeader/index.tsx +5 -6
- package/AppShell/DesktopNavBar.tsx +1 -1
- package/AppShell/ForwardButton.tsx +3 -3
- package/AppShell/FullPageShellBase.tsx +1 -1
- package/AppShell/MenuFab.tsx +7 -4
- package/Blog/BlogTitle/index.tsx +1 -1
- package/Button/index.tsx +11 -4
- package/ButtonLink/index.tsx +2 -1
- package/CHANGELOG.md +59 -0
- package/ChipMenu/index.tsx +4 -12
- package/ContainerWithHeader/index.tsx +1 -1
- package/Form/InputCheckmark.tsx +13 -2
- package/FramerScroller/components/SidebarGallery.tsx +70 -58
- package/FramerScroller/components/SidebarSlider.tsx +24 -22
- package/IconHeader/index.tsx +2 -6
- package/Pagination/index.tsx +6 -12
- package/Row/ParagraphWithSidebarSlide/index.tsx +5 -34
- package/Row/RowImageTextBoxed/index.tsx +2 -2
- package/Row/index.tsx +1 -4
- package/Snackbar/MessageSnackbarImpl.tsx +2 -7
- package/StarRatingField/index.tsx +13 -22
- package/SvgImage/SvgImageSimple.tsx +51 -21
- package/TextInputNumber/index.tsx +3 -6
- package/Theme/types.ts +0 -13
- package/Title/index.tsx +2 -9
- package/UspList/UspListItem.tsx +18 -11
- package/UspList/index.tsx +4 -3
- package/icons/accessibility-human.svg +1 -0
- package/icons/accessibility.svg +1 -0
- package/icons/activity.svg +1 -0
- package/icons/add-to-list.svg +1 -0
- package/icons/add.svg +1 -0
- package/icons/alarm.svg +1 -0
- package/icons/align-center.svg +1 -0
- package/icons/align-left.svg +1 -0
- package/icons/align-right.svg +1 -0
- package/icons/anchor.svg +1 -0
- package/icons/aperture.svg +1 -0
- package/icons/apps-alt.svg +1 -0
- package/icons/apps.svg +1 -0
- package/icons/arrow-down-circle.svg +1 -0
- package/icons/arrow-down.svg +1 -0
- package/icons/arrow-left-bottom.svg +1 -0
- package/icons/arrow-left-circle.svg +1 -0
- package/icons/arrow-left-top.svg +1 -0
- package/icons/arrow-left.svg +1 -0
- package/icons/arrow-right-bottom.svg +1 -0
- package/icons/arrow-right-circle.svg +1 -0
- package/icons/arrow-right-top.svg +1 -0
- package/icons/arrow-right.svg +1 -0
- package/icons/arrow-up-circle.svg +1 -0
- package/icons/arrow-up.svg +1 -0
- package/icons/back-alt.svg +1 -0
- package/icons/back-left.svg +1 -0
- package/icons/back-right.svg +1 -0
- package/icons/back.svg +1 -0
- package/icons/bag.svg +1 -0
- package/icons/basket.svg +1 -0
- package/icons/basketball.svg +1 -0
- package/icons/battery-alt.svg +1 -0
- package/icons/battery-charging.svg +1 -0
- package/icons/battery-full.svg +1 -0
- package/icons/battery-low.svg +1 -0
- package/icons/battery-medium.svg +1 -0
- package/icons/battery.svg +1 -0
- package/icons/bell.svg +1 -0
- package/icons/bike.svg +1 -0
- package/icons/bin.svg +1 -0
- package/icons/bluetooth.svg +1 -0
- package/icons/bolt.svg +1 -0
- package/icons/book-opened.svg +1 -0
- package/icons/book.svg +1 -0
- package/icons/bookmark.svg +1 -0
- package/icons/box-alt.svg +1 -0
- package/icons/box-alt2.svg +1 -0
- package/icons/box.svg +1 -0
- package/icons/brightness.svg +1 -0
- package/icons/bug.svg +1 -0
- package/icons/calendar-add.svg +1 -0
- package/icons/calendar-decline.svg +1 -0
- package/icons/calendar-event.svg +1 -0
- package/icons/calendar.svg +1 -0
- package/icons/camera-rear.svg +1 -0
- package/icons/camera.svg +1 -0
- package/icons/cancel.svg +1 -0
- package/icons/car-alt.svg +1 -0
- package/icons/car.svg +1 -0
- package/icons/cards.svg +1 -0
- package/icons/cart-add.svg +1 -0
- package/icons/cart.svg +1 -0
- package/icons/celluar.svg +1 -0
- package/icons/chart.svg +1 -0
- package/icons/chat-add.svg +1 -0
- package/icons/chat-alt.svg +1 -0
- package/icons/chat-remove.svg +1 -0
- package/icons/chat-warning.svg +1 -0
- package/icons/chat.svg +1 -0
- package/icons/checkbox-intermediate.svg +1 -0
- package/icons/checkbox.svg +1 -0
- package/icons/chevron-down.svg +1 -0
- package/icons/chevron-left.svg +1 -0
- package/icons/chevron-right.svg +1 -0
- package/icons/chevron-up.svg +1 -0
- package/icons/chevrons-down.svg +1 -0
- package/icons/chevrons-left.svg +1 -0
- package/icons/chevrons-right.svg +1 -0
- package/icons/chevrons-up.svg +1 -0
- package/icons/circle.svg +1 -0
- package/icons/clip.svg +1 -0
- package/icons/clipboard.svg +1 -0
- package/icons/close.svg +1 -0
- package/icons/cloud-crossed.svg +1 -0
- package/icons/cloud-upload.svg +1 -0
- package/icons/cloud.svg +1 -0
- package/icons/code-alt.svg +1 -0
- package/icons/code.svg +1 -0
- package/icons/coffee.svg +1 -0
- package/icons/colours.svg +1 -0
- package/icons/component.svg +1 -0
- package/icons/contact-book.svg +1 -0
- package/icons/contrast.svg +1 -0
- package/icons/control-centre.svg +1 -0
- package/icons/controls-alt.svg +1 -0
- package/icons/controls-vertical-alt.svg +1 -0
- package/icons/controls.svg +1 -0
- package/icons/copy.svg +1 -0
- package/icons/credit-card.svg +1 -0
- package/icons/crop.svg +1 -0
- package/icons/crossing.svg +1 -0
- package/icons/cup.svg +1 -0
- package/icons/cursor.svg +1 -0
- package/icons/cut.svg +1 -0
- package/icons/danger.svg +1 -0
- package/icons/dashboard.svg +1 -0
- package/icons/delete.svg +1 -0
- package/icons/dialpad.svg +1 -0
- package/icons/diamond.svg +1 -0
- package/icons/direction-left.svg +1 -0
- package/icons/direction-right.svg +1 -0
- package/icons/directions-left.svg +1 -0
- package/icons/directions-right.svg +1 -0
- package/icons/disc.svg +1 -0
- package/icons/dolar.svg +1 -0
- package/icons/download.svg +1 -0
- package/icons/drop.svg +1 -0
- package/icons/ear.svg +1 -0
- package/icons/edit.svg +1 -0
- package/icons/ellypsis-vertical.svg +1 -0
- package/icons/ellypsis.svg +1 -0
- package/icons/entrance.svg +1 -0
- package/icons/envelope-alt.svg +1 -0
- package/icons/envelope.svg +1 -0
- package/icons/error.svg +1 -0
- package/icons/exit.svg +1 -0
- package/icons/explore.svg +1 -0
- package/icons/extension.svg +1 -0
- package/icons/eye-closed.svg +1 -0
- package/icons/eye-crossed.svg +1 -0
- package/icons/eye.svg +1 -0
- package/icons/favourite.svg +1 -0
- package/icons/feather.svg +1 -0
- package/icons/feed.svg +1 -0
- package/icons/file.svg +1 -0
- package/icons/film.svg +1 -0
- package/icons/filter.svg +1 -0
- package/icons/fit.svg +1 -0
- package/icons/flag.svg +1 -0
- package/icons/flower.svg +1 -0
- package/icons/folder-add.svg +1 -0
- package/icons/folder-remove.svg +1 -0
- package/icons/folder-warning.svg +1 -0
- package/icons/folder.svg +1 -0
- package/icons/forward.svg +1 -0
- package/icons/glasses.svg +1 -0
- package/icons/grid-alt.svg +1 -0
- package/icons/grid-small.svg +1 -0
- package/icons/grid.svg +1 -0
- package/icons/hamburger.svg +1 -0
- package/icons/happy-face.svg +1 -0
- package/icons/hash.svg +1 -0
- package/icons/hdr.svg +1 -0
- package/icons/headphones.svg +1 -0
- package/icons/hearing-disability.svg +1 -0
- package/icons/help.svg +1 -0
- package/icons/history.svg +1 -0
- package/icons/home-alt.svg +1 -0
- package/icons/home-alt2.svg +1 -0
- package/icons/home.svg +1 -0
- package/icons/horn.svg +1 -0
- package/icons/hourglass.svg +1 -0
- package/icons/image.svg +1 -0
- package/icons/inbox-alt.svg +1 -0
- package/icons/inbox.svg +1 -0
- package/icons/index.tsx +36 -42
- package/icons/info.svg +1 -0
- package/icons/iphone.svg +1 -0
- package/icons/justify.svg +1 -0
- package/icons/key.svg +1 -0
- package/icons/language.svg +1 -0
- package/icons/laptop.svg +1 -0
- package/icons/layers.svg +1 -0
- package/icons/layout-left.svg +1 -0
- package/icons/layout-right.svg +1 -0
- package/icons/lightbulb.svg +1 -0
- package/icons/line-chart.svg +1 -0
- package/icons/link.svg +1 -0
- package/icons/list-alt.svg +1 -0
- package/icons/list-view.svg +1 -0
- package/icons/list.svg +1 -0
- package/icons/location.svg +1 -0
- package/icons/lock-alt-open.svg +1 -0
- package/icons/lock-alt.svg +1 -0
- package/icons/lock-open.svg +1 -0
- package/icons/lock.svg +1 -0
- package/icons/map.svg +1 -0
- package/icons/marker.svg +1 -0
- package/icons/mask.svg +1 -0
- package/icons/maximise.svg +1 -0
- package/icons/microphone.svg +1 -0
- package/icons/minimise.svg +1 -0
- package/icons/minus.svg +1 -0
- package/icons/moon.svg +1 -0
- package/icons/mouse.svg +1 -0
- package/icons/music.svg +1 -0
- package/icons/mute.svg +1 -0
- package/icons/neutral-face.svg +1 -0
- package/icons/new.svg +1 -0
- package/icons/news.svg +1 -0
- package/icons/next-alt.svg +1 -0
- package/icons/next.svg +1 -0
- package/icons/night-mode.svg +1 -0
- package/icons/no-entry.svg +1 -0
- package/icons/not-allowed.svg +1 -0
- package/icons/notebook.svg +1 -0
- package/icons/octagon.svg +1 -0
- package/icons/ok-circle.svg +1 -0
- package/icons/ok.svg +1 -0
- package/icons/origin.svg +1 -0
- package/icons/pan.svg +1 -0
- package/icons/paperclip.svg +1 -0
- package/icons/pause-circle.svg +1 -0
- package/icons/pause.svg +1 -0
- package/icons/pen.svg +1 -0
- package/icons/people.svg +1 -0
- package/icons/person-add.svg +1 -0
- package/icons/person-alt.svg +1 -0
- package/icons/person.svg +1 -0
- package/icons/phone.svg +1 -0
- package/icons/pie-chart.svg +1 -0
- package/icons/pizza.svg +1 -0
- package/icons/placeholder.svg +1 -0
- package/icons/plane.svg +1 -0
- package/icons/play.svg +1 -0
- package/icons/plus.svg +1 -0
- package/icons/poll.svg +1 -0
- package/icons/power.svg +1 -0
- package/icons/presentation.svg +1 -0
- package/icons/previous-alt.svg +1 -0
- package/icons/previous.svg +1 -0
- package/icons/print.svg +1 -0
- package/icons/qr.svg +1 -0
- package/icons/radio-button-selected.svg +1 -0
- package/icons/radio-button.svg +1 -0
- package/icons/radio.svg +1 -0
- package/icons/rain.svg +1 -0
- package/icons/rectangle.svg +1 -0
- package/icons/redo.svg +1 -0
- package/icons/refresh.svg +1 -0
- package/icons/remove.svg +1 -0
- package/icons/repeat.svg +1 -0
- package/icons/restaurant.svg +1 -0
- package/icons/return.svg +1 -0
- package/icons/retweet.svg +1 -0
- package/icons/rocket.svg +1 -0
- package/icons/rotate.svg +1 -0
- package/icons/rss.svg +1 -0
- package/icons/sad-face.svg +1 -0
- package/icons/save.svg +1 -0
- package/icons/search.svg +1 -0
- package/icons/send.svg +1 -0
- package/icons/settings.svg +1 -0
- package/icons/share-android.svg +1 -0
- package/icons/share-ios.svg +1 -0
- package/icons/share.svg +1 -0
- package/icons/shield.svg +1 -0
- package/icons/shift.svg +1 -0
- package/icons/shuffle.svg +1 -0
- package/icons/sign-language.svg +1 -0
- package/icons/signal-alt.svg +1 -0
- package/icons/signal.svg +1 -0
- package/icons/skull.svg +1 -0
- package/icons/smartphone.svg +1 -0
- package/icons/snow.svg +1 -0
- package/icons/sort-down.svg +1 -0
- package/icons/sort-up.svg +1 -0
- package/icons/sorting.svg +1 -0
- package/icons/sounds.svg +1 -0
- package/icons/spam.svg +1 -0
- package/icons/stack.svg +1 -0
- package/icons/star.svg +1 -0
- package/icons/stats-alt.svg +1 -0
- package/icons/stats.svg +1 -0
- package/icons/sticker.svg +1 -0
- package/icons/stop.svg +1 -0
- package/icons/stopwatch.svg +1 -0
- package/icons/suitcase-alt.svg +1 -0
- package/icons/suitcase.svg +1 -0
- package/icons/sun-cloud.svg +1 -0
- package/icons/sun.svg +1 -0
- package/icons/sunset.svg +1 -0
- package/icons/support-alt.svg +1 -0
- package/icons/support.svg +1 -0
- package/icons/swap-horizontal.svg +1 -0
- package/icons/swap-vertical.svg +1 -0
- package/icons/switch-off.svg +1 -0
- package/icons/switch-on.svg +1 -0
- package/icons/table-horizontal.svg +1 -0
- package/icons/table-vertical.svg +1 -0
- package/icons/tag-alt.svg +1 -0
- package/icons/tag.svg +1 -0
- package/icons/text.svg +1 -0
- package/icons/thermometer.svg +1 -0
- package/icons/thumb-down.svg +1 -0
- package/icons/thumb-up.svg +1 -0
- package/icons/thunder.svg +1 -0
- package/icons/time.svg +1 -0
- package/icons/timer.svg +1 -0
- package/icons/tool.svg +1 -0
- package/icons/train.svg +1 -0
- package/icons/transport.svg +1 -0
- package/icons/trending-down.svg +1 -0
- package/icons/trending-up.svg +1 -0
- package/icons/turn-left.svg +1 -0
- package/icons/turn-right.svg +1 -0
- package/icons/tv.svg +1 -0
- package/icons/typography.svg +1 -0
- package/icons/umbrella.svg +1 -0
- package/icons/undo.svg +1 -0
- package/icons/upload.svg +1 -0
- package/icons/user.svg +1 -0
- package/icons/verified.svg +1 -0
- package/icons/vertical.svg +1 -0
- package/icons/video.svg +1 -0
- package/icons/voicemail.svg +1 -0
- package/icons/volume-loud.svg +1 -0
- package/icons/volume-off.svg +1 -0
- package/icons/volume-quiet.svg +1 -0
- package/icons/walking.svg +1 -0
- package/icons/wallpaper.svg +1 -0
- package/icons/watch.svg +1 -0
- package/icons/wheelchair.svg +1 -0
- package/icons/wifi.svg +1 -0
- package/icons/window.svg +1 -0
- package/icons/wine.svg +1 -0
- package/icons/zoom-in.svg +1 -0
- package/icons/zoom-out.svg +1 -0
- package/index.ts +0 -2
- package/package.json +11 -11
- package/icons/icon_addresses.svg +0 -17
- package/icons/icon_arrow_back.svg +0 -1
- package/icons/icon_arrow_forward.svg +0 -1
- package/icons/icon_box.svg +0 -6
- package/icons/icon_chat.svg +0 -1
- package/icons/icon_checkmark.svg +0 -1
- package/icons/icon_checkmark_green.svg +0 -1
- package/icons/icon_chevron_back.svg +0 -8
- package/icons/icon_chevron_down.svg +0 -8
- package/icons/icon_chevron_left.svg +0 -8
- package/icons/icon_chevron_right.svg +0 -8
- package/icons/icon_chevron_up.svg +0 -8
- package/icons/icon_close.svg +0 -6
- package/icons/icon_close_circle.svg +0 -1
- package/icons/icon_customer_service.svg +0 -6
- package/icons/icon_email.svg +0 -1
- package/icons/icon_email_outline.svg +0 -6
- package/icons/icon_fullscreen.svg +0 -1
- package/icons/icon_fullscreen_exit.svg +0 -1
- package/icons/icon_heart.svg +0 -15
- package/icons/icon_home.svg +0 -6
- package/icons/icon_id.svg +0 -6
- package/icons/icon_invoice_red.svg +0 -7
- package/icons/icon_location_red.svg +0 -7
- package/icons/icon_lock.svg +0 -6
- package/icons/icon_menu.svg +0 -1
- package/icons/icon_min.svg +0 -1
- package/icons/icon_newspaper.svg +0 -6
- package/icons/icon_party.svg +0 -7
- package/icons/icon_person.svg +0 -6
- package/icons/icon_person_alt.svg +0 -6
- package/icons/icon_person_alt_big.svg +0 -15
- package/icons/icon_phone.svg +0 -1
- package/icons/icon_plus.svg +0 -1
- package/icons/icon_sad_face.svg +0 -11
- package/icons/icon_sad_shoppingbag.svg +0 -16
- package/icons/icon_search.svg +0 -1
- package/icons/icon_shopping_bag.svg +0 -7
- package/icons/icon_shutdown.svg +0 -6
- package/icons/icon_star.svg +0 -6
- package/icons/icon_star_filled_muted.svg +0 -6
- package/icons/icon_star_yellow.svg +0 -6
- 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.
|
|
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
|
-
<
|
|
318
|
+
<SvgImageSimple src={iconClose} />
|
|
318
319
|
</Fab>
|
|
319
320
|
) : (
|
|
320
321
|
<PageLink href='/' passHref>
|
|
321
322
|
<Fab size='small' classes={{ root: classes.fab }}>
|
|
322
|
-
<
|
|
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()}
|
|
@@ -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
|
|
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
|
-
<
|
|
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:
|
|
11
|
+
background: theme.palette.background.default,
|
|
12
12
|
minHeight: '100vh',
|
|
13
13
|
display: 'grid',
|
|
14
14
|
gridTemplateRows: `auto 1fr auto`,
|
package/AppShell/MenuFab.tsx
CHANGED
|
@@ -50,10 +50,13 @@ const useStyles = makeStyles(
|
|
|
50
50
|
minWidth: responsiveVal(200, 280),
|
|
51
51
|
},
|
|
52
52
|
menuItemText: {
|
|
53
|
-
|
|
54
|
-
fontWeight:
|
|
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
|
|
88
|
+
<SvgImageSimple src={iconMenu} inverted />
|
|
86
89
|
</Fab>
|
|
87
90
|
|
|
88
91
|
<Menu
|
package/Blog/BlogTitle/index.tsx
CHANGED
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:
|
|
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
|
-
|
|
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
|
-
|
|
80
|
+
//
|
|
80
81
|
},
|
|
81
82
|
pillSizeSmall: {
|
|
82
|
-
|
|
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,
|
package/ButtonLink/index.tsx
CHANGED
|
@@ -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 ?? <
|
|
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
|
|
package/ChipMenu/index.tsx
CHANGED
|
@@ -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
|
-
<
|
|
80
|
+
<SvgImageSimple src={iconCloseCircle} />
|
|
80
81
|
) : (
|
|
81
|
-
<
|
|
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='
|
|
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}>
|
package/Form/InputCheckmark.tsx
CHANGED
|
@@ -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
|
|
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 <
|
|
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
|
-
<
|
|
229
|
-
<m.div
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
)
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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={
|
|
280
|
-
<
|
|
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
|
-
<
|
|
73
|
-
<
|
|
74
|
-
<div className={classes.
|
|
75
|
-
<div
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
</
|
|
95
|
-
</
|
|
96
|
+
</ScrollerProvider>
|
|
97
|
+
</Row>
|
|
96
98
|
)
|
|
97
99
|
}
|
package/IconHeader/index.tsx
CHANGED
|
@@ -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
|
-
<
|
|
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'
|
package/Pagination/index.tsx
CHANGED
|
@@ -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
|
-
<
|
|
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
|
-
<
|
|
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 (
|