@jumpgroup/jump-design-system 0.1.9 → 0.2.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 (120) hide show
  1. package/dist/cjs/{index-46644e39.js → index-79e97f36.js} +25 -4
  2. package/dist/cjs/index-79e97f36.js.map +1 -0
  3. package/dist/cjs/jump-badge.cjs.entry.js +24 -0
  4. package/dist/cjs/jump-badge.cjs.entry.js.map +1 -0
  5. package/dist/cjs/jump-button.cjs.entry.js +2 -2
  6. package/dist/cjs/jump-card.cjs.entry.js +34 -0
  7. package/dist/cjs/jump-card.cjs.entry.js.map +1 -0
  8. package/dist/cjs/jump-design-system.cjs.js +3 -3
  9. package/dist/cjs/jump-design-system.cjs.js.map +1 -1
  10. package/dist/cjs/jump-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/jump-pagination.cjs.entry.js +4 -4
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/collection/collection-manifest.json +4 -2
  14. package/dist/collection/components/jump-badge/jump-badge.css +25 -0
  15. package/dist/collection/components/jump-badge/jump-badge.js +62 -0
  16. package/dist/collection/components/jump-badge/jump-badge.js.map +1 -0
  17. package/dist/collection/components/jump-badge/jump-badge.stories.js +26 -0
  18. package/dist/collection/components/jump-badge/jump-badge.stories.js.map +1 -0
  19. package/dist/collection/components/jump-badge/test/jump-badge.e2e.js +10 -0
  20. package/dist/collection/components/jump-badge/test/jump-badge.e2e.js.map +1 -0
  21. package/dist/collection/components/jump-badge/test/jump-badge.spec.js +18 -0
  22. package/dist/collection/components/jump-badge/test/jump-badge.spec.js.map +1 -0
  23. package/dist/collection/components/jump-button/{jump-button.stories.js → jump-button-filled.stories.js} +12 -10
  24. package/dist/collection/components/jump-button/jump-button-filled.stories.js.map +1 -0
  25. package/dist/collection/components/jump-button/jump-button-outline.stories.js +376 -0
  26. package/dist/collection/components/jump-button/jump-button-outline.stories.js.map +1 -0
  27. package/dist/collection/components/jump-button/jump-button.js +1 -1
  28. package/dist/collection/components/jump-card/jump-card-border-radius.stories.js +114 -0
  29. package/dist/collection/components/jump-card/jump-card-border-radius.stories.js.map +1 -0
  30. package/dist/collection/components/jump-card/jump-card-border.stories.js +113 -0
  31. package/dist/collection/components/jump-card/jump-card-border.stories.js.map +1 -0
  32. package/dist/collection/components/jump-card/jump-card-boxed.stories.js +114 -0
  33. package/dist/collection/components/jump-card/jump-card-boxed.stories.js.map +1 -0
  34. package/dist/collection/components/jump-card/jump-card-horizontal.stories.js +114 -0
  35. package/dist/collection/components/jump-card/jump-card-horizontal.stories.js.map +1 -0
  36. package/dist/collection/components/jump-card/jump-card-media-rounded.stories.js +125 -0
  37. package/dist/collection/components/jump-card/jump-card-media-rounded.stories.js.map +1 -0
  38. package/dist/collection/components/jump-card/jump-card-no-image.stories.js +112 -0
  39. package/dist/collection/components/jump-card/jump-card-no-image.stories.js.map +1 -0
  40. package/dist/collection/components/jump-card/jump-card-shadow.stories.js +113 -0
  41. package/dist/collection/components/jump-card/jump-card-shadow.stories.js.map +1 -0
  42. package/dist/collection/components/jump-card/jump-card-top-border-content-radius.stories.js +114 -0
  43. package/dist/collection/components/jump-card/jump-card-top-border-content-radius.stories.js.map +1 -0
  44. package/dist/collection/components/jump-card/jump-card-video.stories.js +111 -0
  45. package/dist/collection/components/jump-card/jump-card-video.stories.js.map +1 -0
  46. package/dist/collection/components/jump-card/jump-card.css +99 -0
  47. package/dist/collection/components/jump-card/jump-card.js +232 -0
  48. package/dist/collection/components/jump-card/jump-card.js.map +1 -0
  49. package/dist/collection/components/jump-card/jump-card.stories.js +113 -0
  50. package/dist/collection/components/jump-card/jump-card.stories.js.map +1 -0
  51. package/dist/collection/components/jump-card/test/jump-card.e2e.js +10 -0
  52. package/dist/collection/components/jump-card/test/jump-card.e2e.js.map +1 -0
  53. package/dist/collection/components/jump-card/test/jump-card.spec.js +18 -0
  54. package/dist/collection/components/jump-card/test/jump-card.spec.js.map +1 -0
  55. package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js +94 -0
  56. package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js.map +1 -0
  57. package/dist/collection/components/jump-pagination/{jump-pagination.stories.js → jump-pagination-products.stories.js} +18 -18
  58. package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js.map +1 -0
  59. package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
  60. package/dist/components/jump-badge.d.ts +11 -0
  61. package/dist/components/jump-badge.js +40 -0
  62. package/dist/components/jump-badge.js.map +1 -0
  63. package/dist/components/jump-button.js +1 -1
  64. package/dist/components/jump-card.d.ts +11 -0
  65. package/dist/components/jump-card.js +59 -0
  66. package/dist/components/jump-card.js.map +1 -0
  67. package/dist/components/jump-pagination.js +3 -3
  68. package/dist/esm/{index-b0176170.js → index-7feee8ea.js} +25 -4
  69. package/dist/esm/index-7feee8ea.js.map +1 -0
  70. package/dist/esm/jump-badge.entry.js +20 -0
  71. package/dist/esm/jump-badge.entry.js.map +1 -0
  72. package/dist/esm/jump-button.entry.js +2 -2
  73. package/dist/esm/jump-card.entry.js +30 -0
  74. package/dist/esm/jump-card.entry.js.map +1 -0
  75. package/dist/esm/jump-design-system.js +4 -4
  76. package/dist/esm/jump-design-system.js.map +1 -1
  77. package/dist/esm/jump-icon.entry.js +1 -1
  78. package/dist/esm/jump-pagination.entry.js +4 -4
  79. package/dist/esm/loader.js +3 -3
  80. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  81. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  82. package/dist/jump-design-system/p-7cfed9c6.entry.js +2 -0
  83. package/dist/jump-design-system/p-7cfed9c6.entry.js.map +1 -0
  84. package/dist/jump-design-system/{p-0d2b55a8.entry.js → p-8ec7e589.entry.js} +2 -2
  85. package/dist/jump-design-system/p-99238e3f.entry.js +2 -0
  86. package/dist/jump-design-system/p-99238e3f.entry.js.map +1 -0
  87. package/dist/jump-design-system/{p-c34f0f2c.entry.js → p-9fd6e0a0.entry.js} +2 -2
  88. package/dist/jump-design-system/{p-3cbc3a68.entry.js → p-bc02e346.entry.js} +2 -2
  89. package/dist/jump-design-system/p-c560071a.js +3 -0
  90. package/dist/jump-design-system/p-c560071a.js.map +1 -0
  91. package/dist/jump-design-system-elements.json +78 -0
  92. package/dist/types/components/jump-badge/jump-badge.d.ts +11 -0
  93. package/dist/types/components/jump-badge/jump-badge.stories.d.ts +19 -0
  94. package/dist/types/components/jump-button/jump-button-outline.stories.d.ts +164 -0
  95. package/dist/types/components/jump-card/jump-card-border-radius.stories.d.ts +77 -0
  96. package/dist/types/components/jump-card/jump-card-border.stories.d.ts +77 -0
  97. package/dist/types/components/jump-card/jump-card-boxed.stories.d.ts +77 -0
  98. package/dist/types/components/jump-card/jump-card-horizontal.stories.d.ts +77 -0
  99. package/dist/types/components/jump-card/jump-card-media-rounded.stories.d.ts +79 -0
  100. package/dist/types/components/jump-card/jump-card-no-image.stories.d.ts +77 -0
  101. package/dist/types/components/jump-card/jump-card-shadow.stories.d.ts +77 -0
  102. package/dist/types/components/jump-card/jump-card-top-border-content-radius.stories.d.ts +77 -0
  103. package/dist/types/components/jump-card/jump-card-video.stories.d.ts +77 -0
  104. package/dist/types/components/jump-card/jump-card.d.ts +47 -0
  105. package/dist/types/components/jump-card/jump-card.stories.d.ts +77 -0
  106. package/dist/types/components/jump-pagination/jump-pagination-pages.stories.d.ts +69 -0
  107. package/dist/types/components/jump-pagination/{jump-pagination.stories.d.ts → jump-pagination-products.stories.d.ts} +0 -2
  108. package/dist/types/components.d.ts +130 -0
  109. package/package.json +1 -1
  110. package/readme.md +4 -3
  111. package/dist/cjs/index-46644e39.js.map +0 -1
  112. package/dist/collection/components/jump-button/jump-button.stories.js.map +0 -1
  113. package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +0 -1
  114. package/dist/esm/index-b0176170.js.map +0 -1
  115. package/dist/jump-design-system/p-68bce598.js +0 -3
  116. package/dist/jump-design-system/p-68bce598.js.map +0 -1
  117. /package/dist/jump-design-system/{p-0d2b55a8.entry.js.map → p-8ec7e589.entry.js.map} +0 -0
  118. /package/dist/jump-design-system/{p-c34f0f2c.entry.js.map → p-9fd6e0a0.entry.js.map} +0 -0
  119. /package/dist/jump-design-system/{p-3cbc3a68.entry.js.map → p-bc02e346.entry.js.map} +0 -0
  120. /package/dist/types/components/jump-button/{jump-button.stories.d.ts → jump-button-filled.stories.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-card-no-image.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-no-image.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,8EAA8E;YAC3F,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,mCAAmC;YACnC,cAAc;YACd,IAAI;SACL;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,yBAAyB;YACzB,cAAc;YACd,IAAI;SACL;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO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CAAC,CAAC,EAAE;IAC3C,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;IAC/B,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE;IACtE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;IACjC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;;eAQxB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACtB,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/NoImageCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" \n ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithoutImage = Template.bind({});\nCardWithoutImage.args = {\n imgSrc: '',\n border: true,\n};"]}
@@ -0,0 +1,113 @@
1
+ export default {
2
+ title: 'Components/Card/ShadowCard',
3
+ tags: ['autodocs'],
4
+ argTypes: {
5
+ horizontal: {
6
+ name: 'Direzione della card',
7
+ description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',
8
+ control: 'boolean',
9
+ defaultValue: false
10
+ },
11
+ dark: {
12
+ name: 'Card di colore scuro',
13
+ description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',
14
+ control: 'boolean',
15
+ defaultValue: false
16
+ },
17
+ border: {
18
+ name: 'Card con bordo',
19
+ control: 'boolean',
20
+ defaultValue: false
21
+ },
22
+ shadow: {
23
+ name: 'Card con ombra',
24
+ control: 'boolean',
25
+ defaultValue: false
26
+ },
27
+ borderRadius: {
28
+ name: 'Bordi arrotondati',
29
+ description: 'Imposta i bordi della card arrotondati',
30
+ control: 'boolean',
31
+ // if:{
32
+ // arg: 'topBorderContentRadius',
33
+ // eq: false
34
+ // }
35
+ },
36
+ topBorderContentRadius: {
37
+ name: 'Border top Content',
38
+ description: 'Border top del Content (esclusa la sezione media) arrotondato',
39
+ control: 'boolean',
40
+ // if:{
41
+ // arg: 'borderRadius',
42
+ // eq: false
43
+ // }
44
+ },
45
+ boxed: {
46
+ name: 'Boxed',
47
+ description: 'Imposta un padding intorno al media',
48
+ control: 'boolean',
49
+ },
50
+ roundedMedia: {
51
+ name: 'Immagine o Video arrotondati',
52
+ description: 'Imposta l\'immagine o il video arrotondati e senza sfondo',
53
+ control: 'boolean',
54
+ },
55
+ imgSrc: {
56
+ name: 'Url del\'immagine',
57
+ description: 'Url dell\'immagine da visualizzare, si attiva solo se non è presente videoSrc',
58
+ control: 'text',
59
+ if: {
60
+ arg: 'videoSrc',
61
+ exists: false
62
+ }
63
+ },
64
+ imgAlt: {
65
+ name: 'Alt dell\'immagine',
66
+ description: 'Alt dell\'immagine da visualizzare, si attiva solo se è presente imgSrc',
67
+ control: 'text',
68
+ if: {
69
+ arg: 'imgSrc',
70
+ exists: true
71
+ }
72
+ },
73
+ videoSrc: {
74
+ name: 'Url del video',
75
+ description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',
76
+ control: 'text',
77
+ if: {
78
+ arg: 'imgSrc',
79
+ exists: false
80
+ }
81
+ },
82
+ }
83
+ };
84
+ const Template = (args) => {
85
+ var _a;
86
+ return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}"
87
+ ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''}
88
+ ${args.imgSrc ? `img-src="${args.imgSrc}"` : ''}
89
+ ${args.imgAlt ? `img-alt="${args.imgAlt}"` : ''}
90
+ ${args.border == true ? 'border' : ''}
91
+ ${args.horizontal == true ? 'horizontal' : ''}
92
+ ${args.dark == true ? 'dark' : ''}
93
+ ${args.borderRadius == true ? 'border-radius' : ''}
94
+ ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''}
95
+ ${args.boxed == true ? 'boxed' : ''}
96
+ ${args.roundedMedia == true ? 'rounded-media' : ''}
97
+ ${args.shadow == true ? 'shadow' : ''}
98
+ >
99
+ <div class="ContentWrapper" slot="body">
100
+ <h3 style="margin-top: 0">Titolo della card</h3>
101
+ <p>Testo della card</p>
102
+ </div>
103
+ <jump-button slot="footer" id="#card" class=" "variant="secondary" size="medium" href="#" target="_self" ariaLabel="sono un bottone" text>
104
+ Scopri di più<jump-icon slot="suffix" name="arrow-right"></jump-icon></jump-button>
105
+ </jump-card>`;
106
+ };
107
+ export const CardWithShadow = Template.bind({});
108
+ CardWithShadow.args = {
109
+ imgSrc: 'https://picsum.photos/300/200',
110
+ imgAlt: 'Immagine',
111
+ shadow: true,
112
+ };
113
+ //# sourceMappingURL=jump-card-shadow.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-card-shadow.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-shadow.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,8EAA8E;YAC3F,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,mCAAmC;YACnC,cAAc;YACd,IAAI;SACL;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,yBAAyB;YACzB,cAAc;YACd,IAAI;SACL;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE,SAAS;SACnB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,8BAA8B;YACpC,WAAW,EAAE,2DAA2D;YACxE,OAAO,EAAE,SAAS;SACnB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,+EAA+E;YAC5F,OAAO,EAAE,MAAM;YACf,EAAE,EAAC;gBACD,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AAE;IACtE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;IACjC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;;eAQxB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACpB,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/ShadowCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" \n ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithShadow = Template.bind({});\nCardWithShadow.args = {\n imgSrc: 'https://picsum.photos/300/200',\n imgAlt: 'Immagine',\n shadow: true,\n};"]}
@@ -0,0 +1,114 @@
1
+ export default {
2
+ title: 'Components/Card/TopBorderContentCard',
3
+ tags: ['autodocs'],
4
+ argTypes: {
5
+ horizontal: {
6
+ name: 'Direzione della card',
7
+ description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',
8
+ control: 'boolean',
9
+ defaultValue: false
10
+ },
11
+ dark: {
12
+ name: 'Card di colore scuro',
13
+ description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',
14
+ control: 'boolean',
15
+ defaultValue: false
16
+ },
17
+ border: {
18
+ name: 'Card con bordo',
19
+ control: 'boolean',
20
+ defaultValue: false
21
+ },
22
+ shadow: {
23
+ name: 'Card con ombra',
24
+ control: 'boolean',
25
+ defaultValue: false
26
+ },
27
+ borderRadius: {
28
+ name: 'Bordi arrotondati',
29
+ description: 'Imposta i bordi della card arrotondati',
30
+ control: 'boolean',
31
+ // if:{
32
+ // arg: 'topBorderContentRadius',
33
+ // eq: false
34
+ // }
35
+ },
36
+ topBorderContentRadius: {
37
+ name: 'Border top Content',
38
+ description: 'Border top del Content (esclusa la sezione media) arrotondato',
39
+ control: 'boolean',
40
+ // if:{
41
+ // arg: 'borderRadius',
42
+ // eq: false
43
+ // }
44
+ },
45
+ boxed: {
46
+ name: 'Boxed',
47
+ description: 'Imposta un padding intorno al media',
48
+ control: 'boolean',
49
+ },
50
+ roundedMedia: {
51
+ name: 'Immagine o Video arrotondati',
52
+ description: 'Imposta l\'immagine o il video arrotondati e senza sfondo',
53
+ control: 'boolean',
54
+ },
55
+ imgSrc: {
56
+ name: 'Url del\'immagine',
57
+ description: 'Url dell\'immagine da visualizzare, si attiva solo se non è presente videoSrc',
58
+ control: 'text',
59
+ if: {
60
+ arg: 'videoSrc',
61
+ exists: false
62
+ }
63
+ },
64
+ imgAlt: {
65
+ name: 'Alt dell\'immagine',
66
+ description: 'Alt dell\'immagine da visualizzare, si attiva solo se è presente imgSrc',
67
+ control: 'text',
68
+ if: {
69
+ arg: 'imgSrc',
70
+ exists: true
71
+ }
72
+ },
73
+ videoSrc: {
74
+ name: 'Url del video',
75
+ description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',
76
+ control: 'text',
77
+ if: {
78
+ arg: 'imgSrc',
79
+ exists: false
80
+ }
81
+ },
82
+ }
83
+ };
84
+ const Template = (args) => {
85
+ var _a;
86
+ return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}"
87
+ ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''}
88
+ ${args.imgSrc ? `img-src="${args.imgSrc}"` : ''}
89
+ ${args.imgAlt ? `img-alt="${args.imgAlt}"` : ''}
90
+ ${args.border == true ? 'border' : ''}
91
+ ${args.horizontal == true ? 'horizontal' : ''}
92
+ ${args.dark == true ? 'dark' : ''}
93
+ ${args.borderRadius == true ? 'border-radius' : ''}
94
+ ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''}
95
+ ${args.boxed == true ? 'boxed' : ''}
96
+ ${args.roundedMedia == true ? 'rounded-media' : ''}
97
+ ${args.shadow == true ? 'shadow' : ''}
98
+ >
99
+ <div class="ContentWrapper" slot="body">
100
+ <h3 style="margin-top: 0">Titolo della card</h3>
101
+ <p>Testo della card</p>
102
+ </div>
103
+ <jump-button slot="footer" id="#card" class=" "variant="secondary" size="medium" href="#" target="_self" ariaLabel="sono un bottone" text>
104
+ Scopri di più<jump-icon slot="suffix" name="arrow-right"></jump-icon></jump-button>
105
+ </jump-card>`;
106
+ };
107
+ export const CardWithTopBorderRadius = Template.bind({});
108
+ CardWithTopBorderRadius.args = {
109
+ imgSrc: 'https://picsum.photos/300/200',
110
+ imgAlt: 'Immagine',
111
+ topBorderContentRadius: true,
112
+ border: true
113
+ };
114
+ //# sourceMappingURL=jump-card-top-border-content-radius.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-card-top-border-content-radius.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-top-border-content-radius.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,sCAAsC;IAC7C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB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C,EAAE;IAChD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;;eAQxB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC7B,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,UAAU;IAClB,sBAAsB,EAAE,IAAI;IAC5B,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/TopBorderContentCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" \n ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithTopBorderRadius = Template.bind({});\nCardWithTopBorderRadius.args = {\n imgSrc: 'https://picsum.photos/300/200',\n imgAlt: 'Immagine',\n topBorderContentRadius: true,\n border: true\n};\n"]}
@@ -0,0 +1,111 @@
1
+ export default {
2
+ title: 'Components/Card/VideoCard',
3
+ tags: ['autodocs'],
4
+ argTypes: {
5
+ horizontal: {
6
+ name: 'Direzione della card',
7
+ description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',
8
+ control: 'boolean',
9
+ defaultValue: false
10
+ },
11
+ dark: {
12
+ name: 'Card di colore scuro',
13
+ description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',
14
+ control: 'boolean',
15
+ defaultValue: false
16
+ },
17
+ border: {
18
+ name: 'Card con bordo',
19
+ control: 'boolean',
20
+ defaultValue: false
21
+ },
22
+ shadow: {
23
+ name: 'Card con ombra',
24
+ control: 'boolean',
25
+ defaultValue: false
26
+ },
27
+ borderRadius: {
28
+ name: 'Bordi arrotondati',
29
+ description: 'Imposta i bordi della card arrotondati',
30
+ control: 'boolean',
31
+ // if:{
32
+ // arg: 'topBorderContentRadius',
33
+ // eq: false
34
+ // }
35
+ },
36
+ topBorderContentRadius: {
37
+ name: 'Border top Content',
38
+ description: 'Border top del Content (esclusa la sezione media) arrotondato',
39
+ control: 'boolean',
40
+ // if:{
41
+ // arg: 'borderRadius',
42
+ // eq: false
43
+ // }
44
+ },
45
+ boxed: {
46
+ name: 'Boxed',
47
+ description: 'Imposta un padding intorno al media',
48
+ control: 'boolean',
49
+ },
50
+ roundedMedia: {
51
+ name: 'Immagine o Video arrotondati',
52
+ description: 'Imposta l\'immagine o il video arrotondati e senza sfondo',
53
+ control: 'boolean',
54
+ },
55
+ imgSrc: {
56
+ name: 'Url del\'immagine',
57
+ description: 'Url dell\'immagine da visualizzare, si attiva solo se non è presente videoSrc',
58
+ control: 'text',
59
+ if: {
60
+ arg: 'videoSrc',
61
+ exists: false
62
+ }
63
+ },
64
+ imgAlt: {
65
+ name: 'Alt dell\'immagine',
66
+ description: 'Alt dell\'immagine da visualizzare, si attiva solo se è presente imgSrc',
67
+ control: 'text',
68
+ if: {
69
+ arg: 'imgSrc',
70
+ exists: true
71
+ }
72
+ },
73
+ videoSrc: {
74
+ name: 'Url del video',
75
+ description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',
76
+ control: 'text',
77
+ if: {
78
+ arg: 'imgSrc',
79
+ exists: false
80
+ }
81
+ },
82
+ }
83
+ };
84
+ const Template = (args) => {
85
+ var _a;
86
+ return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}"
87
+ ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''}
88
+ ${args.imgSrc ? `img-src="${args.imgSrc}"` : ''}
89
+ ${args.imgAlt ? `img-alt="${args.imgAlt}"` : ''}
90
+ ${args.border == true ? 'border' : ''}
91
+ ${args.horizontal == true ? 'horizontal' : ''}
92
+ ${args.dark == true ? 'dark' : ''}
93
+ ${args.borderRadius == true ? 'border-radius' : ''}
94
+ ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''}
95
+ ${args.boxed == true ? 'boxed' : ''}
96
+ ${args.roundedMedia == true ? 'rounded-media' : ''}
97
+ ${args.shadow == true ? 'shadow' : ''}
98
+ >
99
+ <div class="ContentWrapper" slot="body">
100
+ <h3 style="margin-top: 0">Titolo della card</h3>
101
+ <p>Testo della card</p>
102
+ </div>
103
+ <jump-button slot="footer" id="#card" class=" "variant="secondary" size="medium" href="#" target="_self" ariaLabel="sono un bottone" text>
104
+ Scopri di più<jump-icon slot="suffix" name="arrow-right"></jump-icon></jump-button>
105
+ </jump-card>`;
106
+ };
107
+ export const CardVideo = Template.bind({});
108
+ CardVideo.args = {
109
+ videoSrc: 'https://media.jumpgroup.it/jumpguides/uploads/2021/06/Tutorial-Asana-e-Harvest.mov',
110
+ };
111
+ //# sourceMappingURL=jump-card-video.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-card-video.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-video.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,8EAA8E;YAC3F,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,IAAI,EAAE;Y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AS,GAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,SAAS,CAAC,IAAI,GAAG;IACf,QAAQ,EAAE,oFAAoF;CAC/F,CAAC","sourcesContent":["export default {\n title: 'Components/Card/VideoCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" \n ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardVideo= Template.bind({});\nCardVideo.args = {\n videoSrc: 'https://media.jumpgroup.it/jumpguides/uploads/2021/06/Tutorial-Asana-e-Harvest.mov',\n};"]}
@@ -0,0 +1,99 @@
1
+ jump-card {
2
+ display: flex;
3
+ flex-direction: column;
4
+ position: relative;
5
+ --jump-card-max-width-horizontal: 100%;
6
+ --jump-card-color: var(--neutral-grey-primary);
7
+ --jump-card-background: #fff;
8
+ --jump-card-color-dark: #fff;
9
+ --jump-card-border-color: var(--neutral-grey-background);
10
+ --jump-card-border-radius: 6px;
11
+ --jump-card-border-top-radius: 1rem;
12
+ --jump-card-top-border-body-radius: 1.5rem 1rem;
13
+ --jump-card-padding: 1rem 1.25rem;
14
+ font-family: var(--ff-primary, "Arial"), sans-serif;
15
+ line-height: var(--lh-400, 1.3);
16
+ background-color: var(--jump-card-background);
17
+ color: var(--jump-card-color);
18
+ overflow: hidden;
19
+ }
20
+ jump-card img,
21
+ jump-card video {
22
+ aspect-ratio: 4/3;
23
+ overflow: hidden;
24
+ position: relative;
25
+ }
26
+ jump-card .Content {
27
+ padding: 1.5rem 1rem;
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 0.75rem;
31
+ flex: 1;
32
+ background-color: var(--jump-card-background);
33
+ }
34
+ jump-card[dark] {
35
+ background-color: var(--neutral-grey-primary);
36
+ color: var(--jump-card-color-dark);
37
+ }
38
+ jump-card[dark] .Content {
39
+ background-color: var(--neutral-grey-primary);
40
+ color: var(--jump-card-color-dark);
41
+ }
42
+ jump-card[border] {
43
+ border: 1px solid var(--jump-card-border-color);
44
+ }
45
+ jump-card[border-radius] {
46
+ border-radius: var(--jump-card-border-radius);
47
+ }
48
+ jump-card[top-border-content-radius] {
49
+ border-radius: var(--jump-card-border-top-radius);
50
+ }
51
+ jump-card[top-border-content-radius] .Content {
52
+ border-top-left-radius: var(--jump-card-border-top-radius);
53
+ border-top-right-radius: var(--jump-card-border-top-radius);
54
+ margin-top: -1rem;
55
+ z-index: 2;
56
+ }
57
+ jump-card[boxed] {
58
+ border-radius: var(--jump-card-border-radius);
59
+ }
60
+ jump-card[boxed] img,
61
+ jump-card[boxed] video {
62
+ border-radius: var(--jump-card-border-radius);
63
+ background-color: var(--jump-card-background);
64
+ margin: 0.5rem 0.5rem 0;
65
+ }
66
+ jump-card[horizontal] {
67
+ flex-direction: row;
68
+ gap: 0.5rem;
69
+ align-items: center;
70
+ max-width: var(--jump-card-max-width-horizontal);
71
+ }
72
+ jump-card[rounded-media] {
73
+ align-items: center;
74
+ justify-content: center;
75
+ text-align: center;
76
+ background-color: transparent;
77
+ }
78
+ jump-card[rounded-media] img,
79
+ jump-card[rounded-media] video {
80
+ background-color: transparent;
81
+ border-radius: 50%;
82
+ aspect-ratio: 1;
83
+ object-fit: cover;
84
+ width: 100%;
85
+ flex: 0 1 40%;
86
+ }
87
+ jump-card[rounded-media] .Content {
88
+ background-color: transparent;
89
+ align-items: center;
90
+ }
91
+ jump-card[rounded-media][horizontal] {
92
+ text-align: left;
93
+ }
94
+ jump-card[rounded-media][horizontal] .Content {
95
+ align-items: flex-start;
96
+ }
97
+ jump-card[shadow] {
98
+ box-shadow: 0px 2px 25px 0px hsla(0, 0%, 0%, 0.1);
99
+ }