@eventlook/sdk 1.4.49-beta.6 → 1.4.49-beta.7
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/dist/cjs/form/merchandise/MerchandiseSlider.js +1 -1
- package/dist/cjs/form/merchandise/MerchandiseSlider.js.map +1 -1
- package/dist/esm/form/merchandise/MerchandiseSlider.js +1 -1
- package/dist/esm/form/merchandise/MerchandiseSlider.js.map +1 -1
- package/package.json +1 -1
- package/src/form/merchandise/MerchandiseSlider.tsx +1 -1
|
@@ -15,7 +15,7 @@ const MerchandiseSlider = ({ eventProducts, eventId, sx }) => {
|
|
|
15
15
|
React.createElement(material.Box, { sx: {
|
|
16
16
|
overflow: 'hidden',
|
|
17
17
|
padding: theme.spacing(8, 3),
|
|
18
|
-
margin: theme.spacing(-8, -
|
|
18
|
+
margin: theme.spacing(-8, -2.5),
|
|
19
19
|
} },
|
|
20
20
|
React.createElement(material.Box, { ref: emblaRef, className: "embla", sx: { overflow: 'visible' } },
|
|
21
21
|
React.createElement(material.Box, { className: "embla__container", sx: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchandiseSlider.js","sources":["../../../../src/form/merchandise/MerchandiseSlider.tsx"],"sourcesContent":["import React from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\nimport { Box, SxProps } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IEventProduct } from '@utils/types/event-product.type';\nimport ProductCard from '@form/product/ProductCard';\n\ninterface Props {\n sx?: SxProps;\n eventProducts: IEventProduct[];\n eventId: number;\n}\n\nconst MerchandiseSlider: React.FC<Props> = ({ eventProducts, eventId, sx }) => {\n const [emblaRef] = useEmblaCarousel();\n const theme = useTheme();\n\n return (\n <Box sx={sx}>\n <Box\n sx={{\n overflow: 'hidden',\n padding: theme.spacing(8, 3),\n margin: theme.spacing(-8, -
|
|
1
|
+
{"version":3,"file":"MerchandiseSlider.js","sources":["../../../../src/form/merchandise/MerchandiseSlider.tsx"],"sourcesContent":["import React from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\nimport { Box, SxProps } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IEventProduct } from '@utils/types/event-product.type';\nimport ProductCard from '@form/product/ProductCard';\n\ninterface Props {\n sx?: SxProps;\n eventProducts: IEventProduct[];\n eventId: number;\n}\n\nconst MerchandiseSlider: React.FC<Props> = ({ eventProducts, eventId, sx }) => {\n const [emblaRef] = useEmblaCarousel();\n const theme = useTheme();\n\n return (\n <Box sx={sx}>\n <Box\n sx={{\n overflow: 'hidden',\n padding: theme.spacing(8, 3),\n margin: theme.spacing(-8, -2.5),\n }}\n >\n <Box ref={emblaRef} className=\"embla\" sx={{ overflow: 'visible' }}>\n <Box\n className=\"embla__container\"\n sx={{\n display: 'flex',\n }}\n >\n {eventProducts.map((eventProduct, index) => (\n <Box\n key={`event-slide-${index}`}\n className=\"embla__slide\"\n sx={{\n flex: `0 0 ${eventProducts.length > 1 ? '78%' : '100%'}`,\n minWidth: 0,\n maxWidth: 220,\n margin: `0 ${theme.spacing(0.5)}`,\n transition: 'opacity 0.2s ease',\n [theme.breakpoints.up('sm')]: {\n flex: '0 0 43%',\n },\n [theme.breakpoints.up('md')]: {\n flex: '0 0 33.3333%',\n },\n }}\n >\n <ProductCard eventProduct={eventProduct} eventId={eventId} isOnlyMerchandise />\n </Box>\n ))}\n </Box>\n </Box>\n </Box>\n </Box>\n );\n};\n\nexport default MerchandiseSlider;\n"],"names":["useTheme","Box","ProductCard"],"mappings":";;;;;;;;;;AAaA,MAAM,iBAAiB,GAAoB,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE,KAAI;AAC5E,IAAA,MAAM,CAAC,QAAQ,CAAC,GAAG,gBAAgB,EAAE;AACrC,IAAA,MAAM,KAAK,GAAGA,eAAQ,EAAE;AAExB,IAAA,QACE,KAAA,CAAA,aAAA,CAACC,YAAG,EAAA,EAAC,EAAE,EAAE,E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B,yBAAA;AACF,qBAAA,EAAA;oBAED,KAAA,CAAA,aAAA,CAACC,mBAAW,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAA,IAAA,EAAA,CAAG,CAC3E,CACP,CAAC,CACE,CACF,CACF,CACF;AAEV;;;;"}
|
|
@@ -11,7 +11,7 @@ const MerchandiseSlider = ({ eventProducts, eventId, sx }) => {
|
|
|
11
11
|
React.createElement(Box, { sx: {
|
|
12
12
|
overflow: 'hidden',
|
|
13
13
|
padding: theme.spacing(8, 3),
|
|
14
|
-
margin: theme.spacing(-8, -
|
|
14
|
+
margin: theme.spacing(-8, -2.5),
|
|
15
15
|
} },
|
|
16
16
|
React.createElement(Box, { ref: emblaRef, className: "embla", sx: { overflow: 'visible' } },
|
|
17
17
|
React.createElement(Box, { className: "embla__container", sx: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchandiseSlider.js","sources":["../../../../src/form/merchandise/MerchandiseSlider.tsx"],"sourcesContent":["import React from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\nimport { Box, SxProps } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IEventProduct } from '@utils/types/event-product.type';\nimport ProductCard from '@form/product/ProductCard';\n\ninterface Props {\n sx?: SxProps;\n eventProducts: IEventProduct[];\n eventId: number;\n}\n\nconst MerchandiseSlider: React.FC<Props> = ({ eventProducts, eventId, sx }) => {\n const [emblaRef] = useEmblaCarousel();\n const theme = useTheme();\n\n return (\n <Box sx={sx}>\n <Box\n sx={{\n overflow: 'hidden',\n padding: theme.spacing(8, 3),\n margin: theme.spacing(-8, -
|
|
1
|
+
{"version":3,"file":"MerchandiseSlider.js","sources":["../../../../src/form/merchandise/MerchandiseSlider.tsx"],"sourcesContent":["import React from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\nimport { Box, SxProps } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IEventProduct } from '@utils/types/event-product.type';\nimport ProductCard from '@form/product/ProductCard';\n\ninterface Props {\n sx?: SxProps;\n eventProducts: IEventProduct[];\n eventId: number;\n}\n\nconst MerchandiseSlider: React.FC<Props> = ({ eventProducts, eventId, sx }) => {\n const [emblaRef] = useEmblaCarousel();\n const theme = useTheme();\n\n return (\n <Box sx={sx}>\n <Box\n sx={{\n overflow: 'hidden',\n padding: theme.spacing(8, 3),\n margin: theme.spacing(-8, -2.5),\n }}\n >\n <Box ref={emblaRef} className=\"embla\" sx={{ overflow: 'visible' }}>\n <Box\n className=\"embla__container\"\n sx={{\n display: 'flex',\n }}\n >\n {eventProducts.map((eventProduct, index) => (\n <Box\n key={`event-slide-${index}`}\n className=\"embla__slide\"\n sx={{\n flex: `0 0 ${eventProducts.length > 1 ? '78%' : '100%'}`,\n minWidth: 0,\n maxWidth: 220,\n margin: `0 ${theme.spacing(0.5)}`,\n transition: 'opacity 0.2s ease',\n [theme.breakpoints.up('sm')]: {\n flex: '0 0 43%',\n },\n [theme.breakpoints.up('md')]: {\n flex: '0 0 33.3333%',\n },\n }}\n >\n <ProductCard eventProduct={eventProduct} eventId={eventId} isOnlyMerchandise />\n </Box>\n ))}\n </Box>\n </Box>\n </Box>\n </Box>\n );\n};\n\nexport default MerchandiseSlider;\n"],"names":[],"mappings":";;;;;;AAaA,MAAM,iBAAiB,GAAoB,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE,KAAI;AAC5E,IAAA,MAAM,CAAC,QAAQ,CAAC,GAAG,gBAAgB,EAAE;AACrC,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE;AAExB,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA;QACT,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EACF,EAAE,EAAE;AACF,gBAAA,QAAQ,EAAE,QAAQ;gBAClB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC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,CACE,CACF,CACF,CACF;AAEV;;;;"}
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ const MerchandiseSlider: React.FC<Props> = ({ eventProducts, eventId, sx }) => {
|
|
|
21
21
|
sx={{
|
|
22
22
|
overflow: 'hidden',
|
|
23
23
|
padding: theme.spacing(8, 3),
|
|
24
|
-
margin: theme.spacing(-8, -
|
|
24
|
+
margin: theme.spacing(-8, -2.5),
|
|
25
25
|
}}
|
|
26
26
|
>
|
|
27
27
|
<Box ref={emblaRef} className="embla" sx={{ overflow: 'visible' }}>
|