oddsgate-ds 1.0.63 → 1.0.64

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.
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ISlider } from './Slider.interface';
3
- declare const Slider: ({ arrows, dots, slidesToShow, slidesToScroll, infinite, autoplay, spacing, mediaQueries, className, style, children, onSlide, ...props }: ISlider) => React.JSX.Element;
3
+ declare const Slider: ({ arrows, dots, slidesToShow, slidesToScroll, infinite, autoplay, spacing, mediaQueries, mobileOnly, className, style, children, onSlide, ...props }: ISlider) => React.JSX.Element;
4
4
  export default Slider;
@@ -9,6 +9,8 @@ export interface ISlider {
9
9
  autoplay?: boolean;
10
10
  spacing?: string;
11
11
  mediaQueries?: object;
12
+ $mobileOnly?: boolean;
13
+ mobileOnly?: boolean;
12
14
  onSlide?: () => void;
13
15
  className?: string;
14
16
  style?: CSSProperties;
@@ -3,3 +3,4 @@ import { ISlider } from './Slider.interface';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  export declare const Simple: StoryObj<ISlider>;
6
+ export declare const MobileOnly: StoryObj<ISlider>;
@@ -1,19 +1,28 @@
1
- <svg width="225" height="57" viewBox="0 0 225 57" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M75.7613 56.4777H77.1134L66.4297 33.448H65.3658L54.8373 56.4777H56.1894L65.8756 35.1326L75.7613 56.4777Z" fill="#111314"/>
3
- <path d="M103.18 33.448V34.6449H114.506V56.4777H115.703V34.6449H126.874V33.448H103.18Z" fill="#111314"/>
4
- <path d="M150.104 33.448V54.7267L134.189 33.448H132.815V56.4777H134.012V35.2212L149.926 56.4777H151.301V33.448H150.104Z" fill="#111314"/>
5
- <path d="M177.389 34.6449V33.448H162.339V56.4777H177.389V55.2808H163.536V45.5724H177.389V44.3755H163.536V34.6449H177.389Z" fill="#111314"/>
6
- <path d="M217.819 44.065C214.583 43.0897 211.546 42.1588 211.546 38.7231C211.546 36.2628 214.006 34.6669 217.796 34.6669C219.769 34.6669 221.919 35.2432 223.294 36.1298L223.537 36.285L224.158 35.3097L223.936 35.1545C222.363 34.1349 219.947 33.47 217.796 33.47C213.275 33.47 210.349 35.5313 210.349 38.7231C210.349 43.0675 213.94 44.1536 217.42 45.2176C220.7 46.215 223.803 47.146 223.781 50.7589C223.781 53.5296 221.143 55.3028 217.087 55.3028C214.472 55.3028 211.701 54.1724 210.061 52.4213L209.861 52.2218L209.019 53.0641L209.219 53.2636C211.147 55.2363 214.25 56.4997 217.109 56.4997C221.897 56.4997 225 54.2389 225 50.7589C225.022 46.2372 221.365 45.1289 217.819 44.065Z" fill="#111314"/>
7
- <path d="M200.973 56.4776H202.325L197.227 45.4614C200.064 44.9294 202.17 42.4469 202.17 39.5211C202.17 36.1741 199.444 33.47 196.119 33.47H185.413V56.4997H186.61V45.5944H195.919L200.973 56.4776ZM200.973 39.5211C200.973 42.2031 198.801 44.3753 196.119 44.3753H186.61V34.6669H196.119C198.779 34.6447 200.973 36.8391 200.973 39.5211Z" fill="#111314"/>
8
- <path d="M52.2218 37.5266C52.1996 37.4379 52.1553 37.3271 52.1109 37.2384C52.0666 37.1498 52.0444 37.0611 52.0001 36.9946C51.9558 36.9059 51.9114 36.8173 51.8671 36.7286C51.8228 36.64 51.7784 36.5513 51.7341 36.4848C51.6898 36.4183 51.6455 36.3296 51.6011 36.2631C51.5568 36.1745 51.4903 36.0858 51.4238 36.0193C51.3795 35.9528 51.3351 35.8863 51.2686 35.8198C51.2021 35.7312 51.1356 35.6425 51.0692 35.576C51.0248 35.5317 50.9805 35.4874 50.914 35.4209C50.8253 35.3322 50.7588 35.2435 50.6702 35.177C50.6258 35.1549 50.6037 35.1106 50.5594 35.0884L50.515 35.0662C50.4264 34.9776 50.3155 34.8889 50.2269 34.8224L50.116 34.7337C50.0052 34.6451 49.8944 34.5564 49.7614 34.4899L49.7171 34.4678C48.9413 33.9801 48.099 33.6698 47.1902 33.559C46.9242 33.5368 46.6804 33.5146 46.4366 33.5146H35.7529V56.5444H36.9499V45.6391H46.4588C46.6804 45.6391 46.9242 45.6169 47.1902 45.5947C48.099 45.4839 48.9413 45.1736 49.7171 44.686L49.7614 44.6638C49.8722 44.5751 49.9831 44.5086 50.116 44.42L50.2269 44.3313C50.3155 44.2427 50.4264 44.1762 50.5372 44.0653C50.5815 44.021 50.6258 43.9988 50.648 43.9545C50.7367 43.8658 50.8032 43.7994 50.914 43.6885C50.9583 43.6442 51.0027 43.5999 51.047 43.5334C51.1135 43.4447 51.18 43.3782 51.2465 43.2895C51.2908 43.2231 51.3351 43.1566 51.4016 43.0901C51.4681 43.0014 51.5125 42.9127 51.579 42.8462C51.6233 42.7797 51.6676 42.6911 51.7119 42.6246C51.7563 42.5359 51.8006 42.4473 51.8449 42.3586C51.8893 42.2699 51.9336 42.1813 51.9779 42.0926C52.0223 42.004 52.0444 41.9153 52.0888 41.8488C52.1331 41.7601 52.1553 41.6493 52.1996 41.5607L52.2218 41.5163C52.2439 41.4498 52.2661 41.3833 52.2882 41.3168C52.3104 41.206 52.3547 41.0952 52.3769 40.9844L52.3991 40.9179C52.4212 40.8514 52.4212 40.807 52.4434 40.7405C52.4656 40.6297 52.4877 40.4967 52.5099 40.3637V40.2972C52.5099 40.2529 52.5321 40.2086 52.5321 40.1642C52.5542 39.9648 52.5542 39.7653 52.5542 39.5658C52.5542 39.3663 52.5542 39.1668 52.5321 38.9673C52.5321 38.923 52.5099 38.8787 52.5099 38.8343L52.4877 38.7457C52.4656 38.6348 52.4656 38.5018 52.4212 38.391C52.3991 38.3245 52.3991 38.2802 52.3769 38.2137L52.3547 38.1472C52.3326 38.0364 52.3104 37.9255 52.2661 37.8369C52.2439 37.7704 52.2217 37.7039 52.1996 37.6152L52.2218 37.5266ZM51.3573 39.5214C51.3573 42.2034 49.1851 44.3756 46.5031 44.3756H37.0164V34.6672H46.5253C49.1851 34.6451 51.3573 36.8394 51.3573 39.5214Z" fill="#111314"/>
9
- <path d="M98.2147 56.4776H99.5668L94.4688 45.4614C97.3059 44.9294 99.4116 42.4469 99.4116 39.5211C99.4116 36.1741 96.6853 33.47 93.3605 33.47H82.6547V56.4997H83.8516V45.5944H93.161L98.2147 56.4776ZM98.2147 39.5211C98.2147 42.2031 96.0425 44.3753 93.3605 44.3753H83.8516V34.6669H93.3605C96.0203 34.6447 98.2147 36.8391 98.2147 39.5211Z" fill="#111314"/>
10
- <path d="M14.7625 33.448H13.5656V56.4777H14.7625V33.448Z" fill="#111314"/>
11
- <path d="M25.6677 44.3757H2.63794V45.5727H25.6677V44.3757Z" fill="#111314"/>
12
- <path d="M114.129 4.7877V28.6376H109.341V4.7877H100.254V0H123.217V4.7877H114.129Z" fill="#111314"/>
13
- <path d="M40.5625 4.7877V11.9249H56.189V16.7126H40.5625V23.8499H56.189V28.6376H35.7305V0H56.189V4.7877H40.5625Z" fill="#111314"/>
14
- <path d="M157.617 16.6683C157.617 24.1158 152.941 28.6597 145.271 28.6597C137.58 28.6597 132.881 24.1158 132.881 16.6683V0H137.669V16.1807C137.669 20.9684 140.639 23.872 145.316 23.872C149.948 23.872 152.83 21.0349 152.83 16.1807V0H157.617V16.6683Z" fill="#111314"/>
15
- <path d="M85.8461 28.6597L70.5964 8.06817V28.6597H65.8087V0H70.5964L85.8461 20.5251V0H90.656V28.6597H85.8461Z" fill="#111314"/>
16
- <path d="M167.215 28.6597H172.003V16.7348H181.135L185.657 28.6597H190.865L185.989 16.4467C188.782 15.4935 190.865 12.2574 190.865 8.37848C190.865 8.35632 190.865 8.33415 190.865 8.31199C190.865 8.28982 190.865 8.26766 190.865 8.22333C190.865 5.98463 190.134 3.96759 188.959 2.48251L188.937 2.46035C188.893 2.39385 188.826 2.32736 188.76 2.26086C187.607 0.864447 186.056 0 184.327 0H184.216H167.215V28.6597ZM182.221 11.9249H172.025V4.7877H182.221C184.194 4.7877 185.79 6.38361 185.79 8.35632C185.79 10.329 184.172 11.9249 182.221 11.9249Z" fill="#111314"/>
17
- <path d="M28.1721 0H22.9854L14.075 21.8328L5.18668 0H0L11.6811 28.6597H16.491L28.1721 0Z" fill="#111314"/>
18
- <path d="M213.031 0H208.221L196.54 28.6597H201.726L210.615 6.80475L219.525 28.6597H224.712L213.031 0Z" fill="#111314"/>
1
+ <svg width="326" height="312" viewBox="0 0 326 312" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <ellipse cx="85.5" cy="156" rx="85" ry="84" fill="#FC3151"/>
3
+ <ellipse cx="240.5" cy="228" rx="85" ry="84" fill="#FC3151"/>
4
+ <g clip-path="url(#clip0_3960_7751)">
5
+ <mask id="mask0_3960_7751" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="77" y="30" width="146" height="147">
6
+ <ellipse cx="74.1657" cy="71.0964" rx="74.1657" ry="71.0964" transform="matrix(-0.707107 -0.707107 -0.707107 0.707107 252.971 105.64)" fill="#D9D9D9"/>
7
+ </mask>
8
+ <g mask="url(#mask0_3960_7751)">
9
+ <rect width="150.458" height="71.3627" transform="matrix(-0.707107 -0.707107 -0.707107 0.707107 254.1 106.015)" fill="#FC3151"/>
10
+ </g>
11
+ </g>
12
+ <g clip-path="url(#clip1_3960_7751)">
13
+ <mask id="mask1_3960_7751" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="7" y="168" width="149" height="143">
14
+ <ellipse cx="74.1657" cy="71.0964" rx="74.1657" ry="71.0964" transform="matrix(1 0 0 -1 7.5 310.83)" fill="#D9D9D9"/>
15
+ </mask>
16
+ <g mask="url(#mask1_3960_7751)">
17
+ <rect width="150.458" height="71.3627" transform="matrix(1 0 0 -1 6.4375 311.362)" fill="#FC3151"/>
18
+ </g>
19
+ </g>
20
+ <defs>
21
+ <clipPath id="clip0_3960_7751">
22
+ <rect width="148.331" height="71.8952" fill="white" transform="translate(202.887 155.724) rotate(-135)"/>
23
+ </clipPath>
24
+ <clipPath id="clip1_3960_7751">
25
+ <rect width="148.331" height="71.8952" fill="white" transform="translate(7.5 240)"/>
26
+ </clipPath>
27
+ </defs>
19
28
  </svg>
Binary file
package/dist/types.d.ts CHANGED
@@ -557,13 +557,15 @@ interface ISlider {
557
557
  autoplay?: boolean;
558
558
  spacing?: string;
559
559
  mediaQueries?: object;
560
+ $mobileOnly?: boolean;
561
+ mobileOnly?: boolean;
560
562
  onSlide?: () => void;
561
563
  className?: string;
562
564
  style?: CSSProperties;
563
565
  children: React.ReactNode;
564
566
  }
565
567
 
566
- declare const Slider: ({ arrows, dots, slidesToShow, slidesToScroll, infinite, autoplay, spacing, mediaQueries, className, style, children, onSlide, ...props }: ISlider) => React__default.JSX.Element;
568
+ declare const Slider: ({ arrows, dots, slidesToShow, slidesToScroll, infinite, autoplay, spacing, mediaQueries, mobileOnly, className, style, children, onSlide, ...props }: ISlider) => React__default.JSX.Element;
567
569
 
568
570
  type ICover = {
569
571
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -19,13 +19,17 @@
19
19
  "build-storybook": "storybook build",
20
20
  "bump-version": "npm version patch --no-git-tag-version",
21
21
  "lint:css": "stylelint './src/**/*.tsx'",
22
- "clean": "rimraf dist"
22
+ "clean": "rimraf dist",
23
+ "chromatic": "npx chromatic --project-token=chpt_b2130961bd49687"
23
24
  },
24
25
  "repository": {
25
26
  "type": "git",
26
27
  "url": "git+https://github.com/wearemiew/miewtheme-ds.git"
27
28
  },
28
- "author": "Rui Correia <rui.correia@miew.pt>",
29
+ "author": {
30
+ "name": "Rui Correia",
31
+ "email": "rui.correia@miew.pt"
32
+ },
29
33
  "license": "MIT",
30
34
  "devDependencies": {
31
35
  "@chromatic-com/storybook": "^1",
@@ -1,19 +1,28 @@
1
- <svg width="225" height="57" viewBox="0 0 225 57" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M75.7613 56.4777H77.1134L66.4297 33.448H65.3658L54.8373 56.4777H56.1894L65.8756 35.1326L75.7613 56.4777Z" fill="#111314"/>
3
- <path d="M103.18 33.448V34.6449H114.506V56.4777H115.703V34.6449H126.874V33.448H103.18Z" fill="#111314"/>
4
- <path d="M150.104 33.448V54.7267L134.189 33.448H132.815V56.4777H134.012V35.2212L149.926 56.4777H151.301V33.448H150.104Z" fill="#111314"/>
5
- <path d="M177.389 34.6449V33.448H162.339V56.4777H177.389V55.2808H163.536V45.5724H177.389V44.3755H163.536V34.6449H177.389Z" fill="#111314"/>
6
- <path d="M217.819 44.065C214.583 43.0897 211.546 42.1588 211.546 38.7231C211.546 36.2628 214.006 34.6669 217.796 34.6669C219.769 34.6669 221.919 35.2432 223.294 36.1298L223.537 36.285L224.158 35.3097L223.936 35.1545C222.363 34.1349 219.947 33.47 217.796 33.47C213.275 33.47 210.349 35.5313 210.349 38.7231C210.349 43.0675 213.94 44.1536 217.42 45.2176C220.7 46.215 223.803 47.146 223.781 50.7589C223.781 53.5296 221.143 55.3028 217.087 55.3028C214.472 55.3028 211.701 54.1724 210.061 52.4213L209.861 52.2218L209.019 53.0641L209.219 53.2636C211.147 55.2363 214.25 56.4997 217.109 56.4997C221.897 56.4997 225 54.2389 225 50.7589C225.022 46.2372 221.365 45.1289 217.819 44.065Z" fill="#111314"/>
7
- <path d="M200.973 56.4776H202.325L197.227 45.4614C200.064 44.9294 202.17 42.4469 202.17 39.5211C202.17 36.1741 199.444 33.47 196.119 33.47H185.413V56.4997H186.61V45.5944H195.919L200.973 56.4776ZM200.973 39.5211C200.973 42.2031 198.801 44.3753 196.119 44.3753H186.61V34.6669H196.119C198.779 34.6447 200.973 36.8391 200.973 39.5211Z" fill="#111314"/>
8
- <path d="M52.2218 37.5266C52.1996 37.4379 52.1553 37.3271 52.1109 37.2384C52.0666 37.1498 52.0444 37.0611 52.0001 36.9946C51.9558 36.9059 51.9114 36.8173 51.8671 36.7286C51.8228 36.64 51.7784 36.5513 51.7341 36.4848C51.6898 36.4183 51.6455 36.3296 51.6011 36.2631C51.5568 36.1745 51.4903 36.0858 51.4238 36.0193C51.3795 35.9528 51.3351 35.8863 51.2686 35.8198C51.2021 35.7312 51.1356 35.6425 51.0692 35.576C51.0248 35.5317 50.9805 35.4874 50.914 35.4209C50.8253 35.3322 50.7588 35.2435 50.6702 35.177C50.6258 35.1549 50.6037 35.1106 50.5594 35.0884L50.515 35.0662C50.4264 34.9776 50.3155 34.8889 50.2269 34.8224L50.116 34.7337C50.0052 34.6451 49.8944 34.5564 49.7614 34.4899L49.7171 34.4678C48.9413 33.9801 48.099 33.6698 47.1902 33.559C46.9242 33.5368 46.6804 33.5146 46.4366 33.5146H35.7529V56.5444H36.9499V45.6391H46.4588C46.6804 45.6391 46.9242 45.6169 47.1902 45.5947C48.099 45.4839 48.9413 45.1736 49.7171 44.686L49.7614 44.6638C49.8722 44.5751 49.9831 44.5086 50.116 44.42L50.2269 44.3313C50.3155 44.2427 50.4264 44.1762 50.5372 44.0653C50.5815 44.021 50.6258 43.9988 50.648 43.9545C50.7367 43.8658 50.8032 43.7994 50.914 43.6885C50.9583 43.6442 51.0027 43.5999 51.047 43.5334C51.1135 43.4447 51.18 43.3782 51.2465 43.2895C51.2908 43.2231 51.3351 43.1566 51.4016 43.0901C51.4681 43.0014 51.5125 42.9127 51.579 42.8462C51.6233 42.7797 51.6676 42.6911 51.7119 42.6246C51.7563 42.5359 51.8006 42.4473 51.8449 42.3586C51.8893 42.2699 51.9336 42.1813 51.9779 42.0926C52.0223 42.004 52.0444 41.9153 52.0888 41.8488C52.1331 41.7601 52.1553 41.6493 52.1996 41.5607L52.2218 41.5163C52.2439 41.4498 52.2661 41.3833 52.2882 41.3168C52.3104 41.206 52.3547 41.0952 52.3769 40.9844L52.3991 40.9179C52.4212 40.8514 52.4212 40.807 52.4434 40.7405C52.4656 40.6297 52.4877 40.4967 52.5099 40.3637V40.2972C52.5099 40.2529 52.5321 40.2086 52.5321 40.1642C52.5542 39.9648 52.5542 39.7653 52.5542 39.5658C52.5542 39.3663 52.5542 39.1668 52.5321 38.9673C52.5321 38.923 52.5099 38.8787 52.5099 38.8343L52.4877 38.7457C52.4656 38.6348 52.4656 38.5018 52.4212 38.391C52.3991 38.3245 52.3991 38.2802 52.3769 38.2137L52.3547 38.1472C52.3326 38.0364 52.3104 37.9255 52.2661 37.8369C52.2439 37.7704 52.2217 37.7039 52.1996 37.6152L52.2218 37.5266ZM51.3573 39.5214C51.3573 42.2034 49.1851 44.3756 46.5031 44.3756H37.0164V34.6672H46.5253C49.1851 34.6451 51.3573 36.8394 51.3573 39.5214Z" fill="#111314"/>
9
- <path d="M98.2147 56.4776H99.5668L94.4688 45.4614C97.3059 44.9294 99.4116 42.4469 99.4116 39.5211C99.4116 36.1741 96.6853 33.47 93.3605 33.47H82.6547V56.4997H83.8516V45.5944H93.161L98.2147 56.4776ZM98.2147 39.5211C98.2147 42.2031 96.0425 44.3753 93.3605 44.3753H83.8516V34.6669H93.3605C96.0203 34.6447 98.2147 36.8391 98.2147 39.5211Z" fill="#111314"/>
10
- <path d="M14.7625 33.448H13.5656V56.4777H14.7625V33.448Z" fill="#111314"/>
11
- <path d="M25.6677 44.3757H2.63794V45.5727H25.6677V44.3757Z" fill="#111314"/>
12
- <path d="M114.129 4.7877V28.6376H109.341V4.7877H100.254V0H123.217V4.7877H114.129Z" fill="#111314"/>
13
- <path d="M40.5625 4.7877V11.9249H56.189V16.7126H40.5625V23.8499H56.189V28.6376H35.7305V0H56.189V4.7877H40.5625Z" fill="#111314"/>
14
- <path d="M157.617 16.6683C157.617 24.1158 152.941 28.6597 145.271 28.6597C137.58 28.6597 132.881 24.1158 132.881 16.6683V0H137.669V16.1807C137.669 20.9684 140.639 23.872 145.316 23.872C149.948 23.872 152.83 21.0349 152.83 16.1807V0H157.617V16.6683Z" fill="#111314"/>
15
- <path d="M85.8461 28.6597L70.5964 8.06817V28.6597H65.8087V0H70.5964L85.8461 20.5251V0H90.656V28.6597H85.8461Z" fill="#111314"/>
16
- <path d="M167.215 28.6597H172.003V16.7348H181.135L185.657 28.6597H190.865L185.989 16.4467C188.782 15.4935 190.865 12.2574 190.865 8.37848C190.865 8.35632 190.865 8.33415 190.865 8.31199C190.865 8.28982 190.865 8.26766 190.865 8.22333C190.865 5.98463 190.134 3.96759 188.959 2.48251L188.937 2.46035C188.893 2.39385 188.826 2.32736 188.76 2.26086C187.607 0.864447 186.056 0 184.327 0H184.216H167.215V28.6597ZM182.221 11.9249H172.025V4.7877H182.221C184.194 4.7877 185.79 6.38361 185.79 8.35632C185.79 10.329 184.172 11.9249 182.221 11.9249Z" fill="#111314"/>
17
- <path d="M28.1721 0H22.9854L14.075 21.8328L5.18668 0H0L11.6811 28.6597H16.491L28.1721 0Z" fill="#111314"/>
18
- <path d="M213.031 0H208.221L196.54 28.6597H201.726L210.615 6.80475L219.525 28.6597H224.712L213.031 0Z" fill="#111314"/>
1
+ <svg width="326" height="312" viewBox="0 0 326 312" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <ellipse cx="85.5" cy="156" rx="85" ry="84" fill="#FC3151"/>
3
+ <ellipse cx="240.5" cy="228" rx="85" ry="84" fill="#FC3151"/>
4
+ <g clip-path="url(#clip0_3960_7751)">
5
+ <mask id="mask0_3960_7751" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="77" y="30" width="146" height="147">
6
+ <ellipse cx="74.1657" cy="71.0964" rx="74.1657" ry="71.0964" transform="matrix(-0.707107 -0.707107 -0.707107 0.707107 252.971 105.64)" fill="#D9D9D9"/>
7
+ </mask>
8
+ <g mask="url(#mask0_3960_7751)">
9
+ <rect width="150.458" height="71.3627" transform="matrix(-0.707107 -0.707107 -0.707107 0.707107 254.1 106.015)" fill="#FC3151"/>
10
+ </g>
11
+ </g>
12
+ <g clip-path="url(#clip1_3960_7751)">
13
+ <mask id="mask1_3960_7751" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="7" y="168" width="149" height="143">
14
+ <ellipse cx="74.1657" cy="71.0964" rx="74.1657" ry="71.0964" transform="matrix(1 0 0 -1 7.5 310.83)" fill="#D9D9D9"/>
15
+ </mask>
16
+ <g mask="url(#mask1_3960_7751)">
17
+ <rect width="150.458" height="71.3627" transform="matrix(1 0 0 -1 6.4375 311.362)" fill="#FC3151"/>
18
+ </g>
19
+ </g>
20
+ <defs>
21
+ <clipPath id="clip0_3960_7751">
22
+ <rect width="148.331" height="71.8952" fill="white" transform="translate(202.887 155.724) rotate(-135)"/>
23
+ </clipPath>
24
+ <clipPath id="clip1_3960_7751">
25
+ <rect width="148.331" height="71.8952" fill="white" transform="translate(7.5 240)"/>
26
+ </clipPath>
27
+ </defs>
19
28
  </svg>
Binary file
@@ -15,6 +15,7 @@ const Slider = ({
15
15
  autoplay,
16
16
  spacing,
17
17
  mediaQueries,
18
+ mobileOnly,
18
19
  className,
19
20
  style,
20
21
  children,
@@ -106,6 +107,7 @@ const Slider = ({
106
107
  return (
107
108
  <StyledSlider
108
109
  $responsiveCSS={responsiveCSS}
110
+ $mobileOnly={mobileOnly}
109
111
  className={className}
110
112
  style={style}
111
113
  >
@@ -10,6 +10,8 @@ export interface ISlider {
10
10
  autoplay?: boolean
11
11
  spacing?: string
12
12
  mediaQueries?: object
13
+ $mobileOnly?: boolean
14
+ mobileOnly?: boolean
13
15
  onSlide?: () => void
14
16
  className?: string
15
17
  style?: CSSProperties
@@ -71,3 +71,43 @@ export const Simple: StoryObj<ISlider> = {
71
71
  dots: true
72
72
  }
73
73
  }
74
+
75
+
76
+ export const MobileOnly: StoryObj<ISlider> = {
77
+ render: args => (
78
+ <div
79
+ style={{
80
+ maxWidth: '750px',
81
+ margin: 'auto'
82
+ }}
83
+ >
84
+ <Slider
85
+ slidesToShow={2}
86
+ slidesToScroll={1}
87
+ infinite={false}
88
+ spacing={'1rem'}
89
+ mediaQueries={{
90
+ 900: {
91
+ slidesToShow: 2
92
+ },
93
+ 500: {
94
+ slidesToShow: 1
95
+ }
96
+ }}
97
+ {...args}
98
+ >
99
+ <div>{image}</div>
100
+ <div>{image}</div>
101
+ <div>{image}</div>
102
+ <div>{image}</div>
103
+ <div>{image}</div>
104
+ <div>{image}</div>
105
+ </Slider>
106
+ </div>
107
+ ),
108
+ args: {
109
+ ...Simple.args,
110
+ mobileOnly: true
111
+ }
112
+ }
113
+
@@ -120,5 +120,19 @@ export const StyledSlider = styled.div<ISlider>`
120
120
  ${({ $responsiveCSS }) => $responsiveCSS && `
121
121
  ${$responsiveCSS};
122
122
  `}
123
+
124
+ ${({ $mobileOnly }) => $mobileOnly && `
125
+ .blaze-track{
126
+ flex-flow: row wrap;
127
+ width: 100% !important;
128
+ max-width: 100% !important;
129
+ transform: none !important;
130
+ }
131
+
132
+ .blaze-arrows,
133
+ .blaze-controls{
134
+ display:none;
135
+ }
136
+ `}
123
137
  }
124
138
  `;
@@ -47,11 +47,13 @@ export const StyledTabsContent = styled.div<ITabsItem>`
47
47
  border-radius: 48px 0;
48
48
  padding: 36px;
49
49
 
50
- min-height: 40rem;
51
-
52
50
  opacity: 0;
53
51
  transform: translateY(40px);
54
52
 
53
+ @media only screen and (min-width: ${responsiveMedia}) {
54
+ min-height: 40rem;
55
+ }
56
+
55
57
  & > span{
56
58
  display: flex;
57
59
  align-items:center;