@jumpgroup/jump-design-system 1.0.16 → 1.0.18

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 (35) hide show
  1. package/dist/cjs/jump-card-ecommerce-showcase.cjs.entry.js +101 -0
  2. package/dist/cjs/jump-card-ecommerce-showcase.cjs.entry.js.map +1 -0
  3. package/dist/cjs/jump-card-ecommerce.cjs.entry.js +1 -1
  4. package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -1
  5. package/dist/cjs/jump-design-system.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +1 -0
  8. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +1 -1
  9. package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.css +275 -0
  10. package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.js +440 -0
  11. package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.js.map +1 -0
  12. package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.js +144 -0
  13. package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.js.map +1 -0
  14. package/dist/components/jump-card-ecommerce-showcase.d.ts +11 -0
  15. package/dist/components/jump-card-ecommerce-showcase.js +141 -0
  16. package/dist/components/jump-card-ecommerce-showcase.js.map +1 -0
  17. package/dist/components/jump-card-ecommerce.js +1 -1
  18. package/dist/components/jump-card-ecommerce.js.map +1 -1
  19. package/dist/esm/jump-card-ecommerce-showcase.entry.js +97 -0
  20. package/dist/esm/jump-card-ecommerce-showcase.entry.js.map +1 -0
  21. package/dist/esm/jump-card-ecommerce.entry.js +1 -1
  22. package/dist/esm/jump-card-ecommerce.entry.js.map +1 -1
  23. package/dist/esm/jump-design-system.js +1 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  26. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  27. package/dist/jump-design-system/p-3952598a.entry.js +2 -0
  28. package/dist/jump-design-system/p-3952598a.entry.js.map +1 -0
  29. package/dist/jump-design-system/{p-33b60b54.entry.js → p-6ce30870.entry.js} +2 -2
  30. package/dist/jump-design-system/{p-33b60b54.entry.js.map → p-6ce30870.entry.js.map} +1 -1
  31. package/dist/jump-design-system-elements.json +110 -0
  32. package/dist/types/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.d.ts +49 -0
  33. package/dist/types/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.d.ts +112 -0
  34. package/dist/types/components.d.ts +157 -0
  35. package/package.json +1 -1
@@ -8,6 +8,7 @@
8
8
  "components/jump-button/jump-button.js",
9
9
  "components/jump-card/jump-card.js",
10
10
  "components/jump-card-ecommerce-option/jump-card-ecommerce-option.js",
11
+ "components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.js",
11
12
  "components/jump-filter/jump-filter.js",
12
13
  "components/jump-filter-checkbox/jump-filter-checkbox.js",
13
14
  "components/jump-filter-range/jump-filter-range.js",
@@ -206,7 +206,7 @@
206
206
  align-items: flex-start;
207
207
  }
208
208
  :host .Body.is-vertical .Body__Top .Subtitle {
209
- min-height: 2.2rem;
209
+ min-height: 3.5rem;
210
210
  }
211
211
  @container (max-width: 239px) {
212
212
  :host .Body.is-vertical .Body__Top .Subtitle {
@@ -0,0 +1,275 @@
1
+ :host {
2
+ --card-max-width: 450px;
3
+ --jump-card-ecommerce-showcase-max-width-horizontal: 100%;
4
+ --jump-card-ecommerce-showcase-color: var(--neutral-grey-primary);
5
+ --jump-card-ecommerce-showcase-background: transparent;
6
+ --jump-card-ecommerce-showcase-border-color: var(--neutral-grey-background);
7
+ --jump-card-ecommerce-showcase-padding: 0.5rem;
8
+ --jump-card-ecommerce-showcase-out-of-stock-color: var(--status-danger-standard);
9
+ --jump-card-ecommerce-showcase-available-color: var(--status-success-standard);
10
+ --jump-card-ecommerce-showcase-discount-color: var(--status-danger-standard);
11
+ --image-object-fit: cover;
12
+ --jump-card-ecommerce-showcase-hide-discover-button-visibility: block;
13
+ --jump-card-ecommerce-showcase-discount-badge-bg-color: var(--neutral-white);
14
+ --jump-card-ecommerce-showcase-discount-badge-text-color: var(--primary-standard);
15
+ --jump-card-ecommerce-showcase-discount-badge-padding: 4px 12px;
16
+ --jump-card-ecommerce-showcase-discount-badge-border-radius: 50px;
17
+ max-width: var(--card-max-width);
18
+ overflow: hidden;
19
+ display: flex;
20
+ flex-direction: column;
21
+ position: relative;
22
+ width: 100%;
23
+ font-family: var(--ff-primary, "Arial"), sans-serif;
24
+ line-height: var(--lh-400, 1.3);
25
+ background-color: var(--jump-card-ecommerce-showcase-background);
26
+ color: var(--jump-card-ecommerce-showcase-color);
27
+ }
28
+ :host .DiscountBadge {
29
+ position: absolute;
30
+ bottom: 1rem;
31
+ right: 0.2rem;
32
+ z-index: 2;
33
+ border: 2px solid var(--jump-card-ecommerce-showcase-discount-badge-text-color);
34
+ color: var(--jump-card-ecommerce-showcase-discount-badge-text-color);
35
+ background-color: var(--jump-card-ecommerce-showcase-discount-badge-bg-color);
36
+ font-size: var(--fs-300);
37
+ font-weight: var(--fw-900);
38
+ padding: var(--jump-card-ecommerce-showcase-discount-badge-padding);
39
+ border-radius: var(--jump-card-ecommerce-showcase-discount-badge-border-radius);
40
+ line-height: 1.2;
41
+ }
42
+ :host .Footer,
43
+ :host .Body {
44
+ display: flex;
45
+ width: 100%;
46
+ }
47
+ :host .Footer {
48
+ container-type: inline-size;
49
+ flex-direction: row;
50
+ }
51
+ @container (max-width: 239px) {
52
+ :host .Footer {
53
+ flex-direction: column;
54
+ }
55
+ :host .Footer .OutOfStock {
56
+ margin-bottom: 0.25rem;
57
+ }
58
+ }
59
+ :host jump-badge {
60
+ position: absolute;
61
+ top: 1rem;
62
+ left: 1rem;
63
+ z-index: 2;
64
+ }
65
+ :host .Media {
66
+ container-type: inline-size;
67
+ }
68
+ @container (max-width: 239px) {
69
+ :host .Media jump-badge {
70
+ top: auto;
71
+ bottom: 1rem;
72
+ left: 0.2rem;
73
+ right: auto;
74
+ }
75
+ }
76
+ :host .Media {
77
+ overflow: hidden;
78
+ position: relative;
79
+ border-radius: 3px;
80
+ aspect-ratio: 1/1;
81
+ }
82
+ :host .Media .Images {
83
+ height: 100%;
84
+ margin: 0;
85
+ position: relative;
86
+ }
87
+ :host .Media .Images img {
88
+ height: 100%;
89
+ width: 100%;
90
+ position: absolute;
91
+ top: 0;
92
+ left: 0;
93
+ overflow: hidden;
94
+ object-fit: var(--image-object-fit, cover);
95
+ }
96
+ :host .Media .Images__Front {
97
+ z-index: 1;
98
+ transition: opacity 0.5s linear;
99
+ cursor: pointer;
100
+ }
101
+ :host .Media.hasBackground {
102
+ background-color: var(--neutral-white);
103
+ }
104
+ :host .Media.hasBackground.iconOnly {
105
+ border-top-left-radius: 6px;
106
+ border-top-right-radius: 6px;
107
+ padding: var(--jump-card-ecommerce-showcase-padding) var(--jump-card-ecommerce-showcase-padding) 0;
108
+ }
109
+ :host .Media.hasBackground.iconOnly img {
110
+ border-radius: 6px;
111
+ }
112
+ :host .Media.iconOnly {
113
+ border-bottom-right-radius: 0;
114
+ }
115
+ :host .Media.is-mini {
116
+ max-width: 180px;
117
+ }
118
+ :host .Content {
119
+ container-type: inline-size;
120
+ display: flex;
121
+ flex-grow: 1;
122
+ flex-direction: column;
123
+ }
124
+ @container (max-width: 239px) {
125
+ :host .Content {
126
+ flex-direction: row;
127
+ }
128
+ }
129
+ :host .Content.hasBackground {
130
+ background-color: var(--neutral-white);
131
+ padding: calc(var(--jump-card-ecommerce-showcase-padding) * 2);
132
+ }
133
+ :host .Content.iconOnly {
134
+ padding: calc(var(--jump-card-ecommerce-showcase-padding) * 2) var(--jump-card-ecommerce-showcase-padding);
135
+ }
136
+ :host .Content.is-mini {
137
+ max-width: 180px;
138
+ }
139
+ :host .Body {
140
+ display: flex;
141
+ flex-direction: column;
142
+ gap: 0.75rem;
143
+ padding: var(--jump-card-ecommerce-showcase-padding) 0;
144
+ container-type: inline-size;
145
+ }
146
+ :host .Body > * {
147
+ display: flex;
148
+ flex-direction: row;
149
+ justify-content: space-between;
150
+ }
151
+ :host .Body > * > * {
152
+ flex: 0 1 auto;
153
+ }
154
+ :host .Body .Body__Top {
155
+ display: flex;
156
+ flex-direction: row;
157
+ }
158
+ :host .Body .Body__Bottom {
159
+ display: flex;
160
+ flex-direction: row;
161
+ }
162
+ :host .Body.is-vertical .Body__Top {
163
+ flex-direction: column;
164
+ align-items: flex-start;
165
+ }
166
+ :host .Body.is-vertical .Body__Top .Subtitle {
167
+ min-height: 3.5rem;
168
+ }
169
+ @container (max-width: 239px) {
170
+ :host .Body.is-vertical .Body__Top .Subtitle {
171
+ min-height: 3.2rem;
172
+ }
173
+ }
174
+ :host .Body.is-vertical .Price {
175
+ justify-items: start;
176
+ margin-top: 0.5rem;
177
+ column-gap: 0;
178
+ display: flex;
179
+ flex-direction: column-reverse;
180
+ align-items: flex-start;
181
+ }
182
+ @container (max-width: 239px) {
183
+ :host .Body .Body__Top {
184
+ flex-direction: column;
185
+ }
186
+ :host .Body .Body__Bottom {
187
+ flex-direction: column;
188
+ }
189
+ :host .Body .SelectVariations {
190
+ max-width: 100%;
191
+ margin-bottom: 0.5rem;
192
+ }
193
+ :host .Body .SelectVariations select {
194
+ width: 100%;
195
+ }
196
+ :host .Body .Price {
197
+ display: flex;
198
+ flex-direction: column-reverse;
199
+ margin-top: 0.5rem;
200
+ align-items: start;
201
+ }
202
+ }
203
+ :host .Body.hasBackground {
204
+ padding: 0 0 var(--jump-card-padding);
205
+ }
206
+ :host .Body.iconOnly {
207
+ padding: 0;
208
+ }
209
+ :host .Body.is-mini {
210
+ padding: calc(var(--jump-card-padding) / 2) 0;
211
+ }
212
+ :host .Body.is-mini > * {
213
+ flex-direction: column;
214
+ }
215
+ :host .Product {
216
+ font-size: var(--fs-400);
217
+ color: var(--neutral-grey-primary);
218
+ text-decoration: none;
219
+ }
220
+ :host .Subtitle {
221
+ font-size: var(--fs-300);
222
+ color: var(--neutral-grey-secondary);
223
+ line-height: 1.2;
224
+ }
225
+ :host .Subtitle:hover {
226
+ cursor: pointer;
227
+ }
228
+ :host .OutOfStock {
229
+ justify-items: start;
230
+ font-size: var(--fs-300);
231
+ font-weight: var(--fw-900);
232
+ color: var(--jump-card-ecommerce-showcase-out-of-stock-color);
233
+ }
234
+ :host .Price {
235
+ position: relative;
236
+ display: grid;
237
+ grid-template-columns: auto auto;
238
+ grid-template-rows: 1.5rem 1.5rem auto;
239
+ justify-items: end;
240
+ align-items: end;
241
+ column-gap: 0.5rem;
242
+ margin-top: 0;
243
+ font-size: var(--fs-500);
244
+ font-weight: var(--fw-900);
245
+ line-height: var(--lh-400);
246
+ }
247
+ :host .Price > * {
248
+ display: inline-flex;
249
+ }
250
+ :host .Price__Regular {
251
+ text-align: right;
252
+ }
253
+ :host .Price__Regular.sale {
254
+ text-decoration: line-through;
255
+ color: var(--neutral-grey-secondary);
256
+ font-weight: var(--fw-400);
257
+ font-size: var(--fs-400);
258
+ grid-column: 2;
259
+ grid-row: 1;
260
+ }
261
+ :host .Price__Sale {
262
+ grid-column: 2;
263
+ grid-row: 2;
264
+ }
265
+ :host .Price__Discount {
266
+ color: var(--jump-card-ecommerce-showcase-discount-color);
267
+ font-weight: var(--fw-400);
268
+ font-size: var(--fs-300);
269
+ grid-column: 1;
270
+ grid-row: 1;
271
+ }
272
+ :host .Price.is-mini {
273
+ display: flex;
274
+ font-size: var(--fs-400);
275
+ }