@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.
- package/dist/cjs/jump-card-ecommerce-showcase.cjs.entry.js +101 -0
- package/dist/cjs/jump-card-ecommerce-showcase.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +1 -1
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +1 -1
- package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.css +275 -0
- package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.js +440 -0
- package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.js +144 -0
- package/dist/collection/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.js.map +1 -0
- package/dist/components/jump-card-ecommerce-showcase.d.ts +11 -0
- package/dist/components/jump-card-ecommerce-showcase.js +141 -0
- package/dist/components/jump-card-ecommerce-showcase.js.map +1 -0
- package/dist/components/jump-card-ecommerce.js +1 -1
- package/dist/components/jump-card-ecommerce.js.map +1 -1
- package/dist/esm/jump-card-ecommerce-showcase.entry.js +97 -0
- package/dist/esm/jump-card-ecommerce-showcase.entry.js.map +1 -0
- package/dist/esm/jump-card-ecommerce.entry.js +1 -1
- package/dist/esm/jump-card-ecommerce.entry.js.map +1 -1
- package/dist/esm/jump-design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-3952598a.entry.js +2 -0
- package/dist/jump-design-system/p-3952598a.entry.js.map +1 -0
- package/dist/jump-design-system/{p-33b60b54.entry.js → p-6ce30870.entry.js} +2 -2
- package/dist/jump-design-system/{p-33b60b54.entry.js.map → p-6ce30870.entry.js.map} +1 -1
- package/dist/jump-design-system-elements.json +110 -0
- package/dist/types/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.d.ts +49 -0
- package/dist/types/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.d.ts +112 -0
- package/dist/types/components.d.ts +157 -0
- package/package.json +1 -1
package/dist/types/components/jump-card-ecommerce-showcase/jump-card-ecommerce-showcase.stories.d.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
argTypes: {
|
|
5
|
+
verticalCard: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
control: string;
|
|
9
|
+
defaultValue: boolean;
|
|
10
|
+
};
|
|
11
|
+
badge: {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
link: {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
21
|
+
img: {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
control: string;
|
|
25
|
+
defaultValue: string;
|
|
26
|
+
if: {
|
|
27
|
+
arg: string;
|
|
28
|
+
exists: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
imgAlt: {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
control: string;
|
|
35
|
+
if: {
|
|
36
|
+
arg: string;
|
|
37
|
+
exists: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
hoverImg: {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
control: string;
|
|
44
|
+
defaultValue: string;
|
|
45
|
+
if: {
|
|
46
|
+
arg: string;
|
|
47
|
+
exists: boolean;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
productName: {
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
control: string;
|
|
54
|
+
};
|
|
55
|
+
subtitle: {
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
58
|
+
control: string;
|
|
59
|
+
};
|
|
60
|
+
productId: {
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
control: string;
|
|
64
|
+
};
|
|
65
|
+
price: {
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
control: string;
|
|
69
|
+
};
|
|
70
|
+
salePrice: {
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
control: string;
|
|
74
|
+
};
|
|
75
|
+
hideDiscountIfLessThreshold: {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
control: string;
|
|
79
|
+
};
|
|
80
|
+
badgeColor: {
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
control: string;
|
|
84
|
+
options: string[];
|
|
85
|
+
};
|
|
86
|
+
outOfStock: {
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
control: string;
|
|
90
|
+
defaultValue: boolean;
|
|
91
|
+
};
|
|
92
|
+
outOfStockText: {
|
|
93
|
+
name: string;
|
|
94
|
+
description: string;
|
|
95
|
+
control: string;
|
|
96
|
+
};
|
|
97
|
+
availableText: {
|
|
98
|
+
name: string;
|
|
99
|
+
description: string;
|
|
100
|
+
control: string;
|
|
101
|
+
};
|
|
102
|
+
imageObjectFit: {
|
|
103
|
+
name: string;
|
|
104
|
+
description: string;
|
|
105
|
+
control: string;
|
|
106
|
+
options: string[];
|
|
107
|
+
defaultValue: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export default _default;
|
|
112
|
+
export declare const Card: any;
|
|
@@ -342,6 +342,75 @@ export namespace Components {
|
|
|
342
342
|
"sku": string;
|
|
343
343
|
"taxonomy": string;
|
|
344
344
|
}
|
|
345
|
+
interface JumpCardEcommerceShowcase {
|
|
346
|
+
"availableText": string;
|
|
347
|
+
/**
|
|
348
|
+
* Indicates the badge of the card
|
|
349
|
+
*/
|
|
350
|
+
"badge": string;
|
|
351
|
+
/**
|
|
352
|
+
* Indicates the variant of the button
|
|
353
|
+
*/
|
|
354
|
+
"badgeColor": 'primary' | 'secondary' | 'neutral' | 'warning' | 'success' | 'danger';
|
|
355
|
+
/**
|
|
356
|
+
* Indicates the currency of the card
|
|
357
|
+
*/
|
|
358
|
+
"currency": string;
|
|
359
|
+
/**
|
|
360
|
+
* Indicates the threshold below which the discount will be hidden
|
|
361
|
+
*/
|
|
362
|
+
"hideDiscountIfLessThreshold": number;
|
|
363
|
+
/**
|
|
364
|
+
* Controlla il comportamento dell'object-fit delle immagini
|
|
365
|
+
*/
|
|
366
|
+
"imageObjectFit": 'cover' | 'scale-down' | 'contain' | 'fill' | 'none';
|
|
367
|
+
/**
|
|
368
|
+
* Indicates the image's src of the card
|
|
369
|
+
*/
|
|
370
|
+
"img": string;
|
|
371
|
+
/**
|
|
372
|
+
* Indicates the img's alt of the card
|
|
373
|
+
*/
|
|
374
|
+
"imgAlt": string;
|
|
375
|
+
/**
|
|
376
|
+
* Indicates the link of the card
|
|
377
|
+
*/
|
|
378
|
+
"link": string;
|
|
379
|
+
/**
|
|
380
|
+
* Indicates if the product is outOfStock
|
|
381
|
+
*/
|
|
382
|
+
"outOfStock": boolean;
|
|
383
|
+
/**
|
|
384
|
+
* Indicates the outOfStockText of the product
|
|
385
|
+
*/
|
|
386
|
+
"outOfStockText": string;
|
|
387
|
+
/**
|
|
388
|
+
* Indicates the price of the card
|
|
389
|
+
*/
|
|
390
|
+
"price": number;
|
|
391
|
+
/**
|
|
392
|
+
* Indicates the ID of the product, can be also a SKU
|
|
393
|
+
*/
|
|
394
|
+
"productId": string;
|
|
395
|
+
/**
|
|
396
|
+
* Indicates the title of the card
|
|
397
|
+
*/
|
|
398
|
+
"productName": string;
|
|
399
|
+
/**
|
|
400
|
+
* Indicates the sale price of the card
|
|
401
|
+
*/
|
|
402
|
+
"salePrice": number;
|
|
403
|
+
/**
|
|
404
|
+
* Set the price of the product
|
|
405
|
+
* @param price
|
|
406
|
+
* @param salePrice
|
|
407
|
+
*/
|
|
408
|
+
"setPrice": (price: number, salePrice: number) => Promise<void>;
|
|
409
|
+
/**
|
|
410
|
+
* Indicates the subtitle of the card
|
|
411
|
+
*/
|
|
412
|
+
"subtitle": string;
|
|
413
|
+
}
|
|
345
414
|
interface JumpFilter {
|
|
346
415
|
"direction": 'horizontal' | 'vertical';
|
|
347
416
|
"filterButtonIcon": string;
|
|
@@ -784,6 +853,10 @@ export interface JumpCardEcommerceOptionCustomEvent<T> extends CustomEvent<T> {
|
|
|
784
853
|
detail: T;
|
|
785
854
|
target: HTMLJumpCardEcommerceOptionElement;
|
|
786
855
|
}
|
|
856
|
+
export interface JumpCardEcommerceShowcaseCustomEvent<T> extends CustomEvent<T> {
|
|
857
|
+
detail: T;
|
|
858
|
+
target: HTMLJumpCardEcommerceShowcaseElement;
|
|
859
|
+
}
|
|
787
860
|
export interface JumpFilterCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
788
861
|
detail: T;
|
|
789
862
|
target: HTMLJumpFilterCheckboxElement;
|
|
@@ -924,6 +997,23 @@ declare global {
|
|
|
924
997
|
prototype: HTMLJumpCardEcommerceOptionElement;
|
|
925
998
|
new (): HTMLJumpCardEcommerceOptionElement;
|
|
926
999
|
};
|
|
1000
|
+
interface HTMLJumpCardEcommerceShowcaseElementEventMap {
|
|
1001
|
+
"jump-card-go-to-product-page": any;
|
|
1002
|
+
}
|
|
1003
|
+
interface HTMLJumpCardEcommerceShowcaseElement extends Components.JumpCardEcommerceShowcase, HTMLStencilElement {
|
|
1004
|
+
addEventListener<K extends keyof HTMLJumpCardEcommerceShowcaseElementEventMap>(type: K, listener: (this: HTMLJumpCardEcommerceShowcaseElement, ev: JumpCardEcommerceShowcaseCustomEvent<HTMLJumpCardEcommerceShowcaseElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1005
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1006
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1007
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1008
|
+
removeEventListener<K extends keyof HTMLJumpCardEcommerceShowcaseElementEventMap>(type: K, listener: (this: HTMLJumpCardEcommerceShowcaseElement, ev: JumpCardEcommerceShowcaseCustomEvent<HTMLJumpCardEcommerceShowcaseElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1009
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1010
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1011
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1012
|
+
}
|
|
1013
|
+
var HTMLJumpCardEcommerceShowcaseElement: {
|
|
1014
|
+
prototype: HTMLJumpCardEcommerceShowcaseElement;
|
|
1015
|
+
new (): HTMLJumpCardEcommerceShowcaseElement;
|
|
1016
|
+
};
|
|
927
1017
|
interface HTMLJumpFilterElement extends Components.JumpFilter, HTMLStencilElement {
|
|
928
1018
|
}
|
|
929
1019
|
var HTMLJumpFilterElement: {
|
|
@@ -1238,6 +1328,7 @@ declare global {
|
|
|
1238
1328
|
"jump-card": HTMLJumpCardElement;
|
|
1239
1329
|
"jump-card-ecommerce": HTMLJumpCardEcommerceElement;
|
|
1240
1330
|
"jump-card-ecommerce-option": HTMLJumpCardEcommerceOptionElement;
|
|
1331
|
+
"jump-card-ecommerce-showcase": HTMLJumpCardEcommerceShowcaseElement;
|
|
1241
1332
|
"jump-filter": HTMLJumpFilterElement;
|
|
1242
1333
|
"jump-filter-checkbox": HTMLJumpFilterCheckboxElement;
|
|
1243
1334
|
"jump-filter-range": HTMLJumpFilterRangeElement;
|
|
@@ -1578,6 +1669,70 @@ declare namespace LocalJSX {
|
|
|
1578
1669
|
"sku"?: string;
|
|
1579
1670
|
"taxonomy"?: string;
|
|
1580
1671
|
}
|
|
1672
|
+
interface JumpCardEcommerceShowcase {
|
|
1673
|
+
"availableText"?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* Indicates the badge of the card
|
|
1676
|
+
*/
|
|
1677
|
+
"badge"?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* Indicates the variant of the button
|
|
1680
|
+
*/
|
|
1681
|
+
"badgeColor"?: 'primary' | 'secondary' | 'neutral' | 'warning' | 'success' | 'danger';
|
|
1682
|
+
/**
|
|
1683
|
+
* Indicates the currency of the card
|
|
1684
|
+
*/
|
|
1685
|
+
"currency"?: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* Indicates the threshold below which the discount will be hidden
|
|
1688
|
+
*/
|
|
1689
|
+
"hideDiscountIfLessThreshold"?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* Controlla il comportamento dell'object-fit delle immagini
|
|
1692
|
+
*/
|
|
1693
|
+
"imageObjectFit"?: 'cover' | 'scale-down' | 'contain' | 'fill' | 'none';
|
|
1694
|
+
/**
|
|
1695
|
+
* Indicates the image's src of the card
|
|
1696
|
+
*/
|
|
1697
|
+
"img"?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Indicates the img's alt of the card
|
|
1700
|
+
*/
|
|
1701
|
+
"imgAlt"?: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* Indicates the link of the card
|
|
1704
|
+
*/
|
|
1705
|
+
"link"?: string;
|
|
1706
|
+
"onJump-card-go-to-product-page"?: (event: JumpCardEcommerceShowcaseCustomEvent<any>) => void;
|
|
1707
|
+
/**
|
|
1708
|
+
* Indicates if the product is outOfStock
|
|
1709
|
+
*/
|
|
1710
|
+
"outOfStock"?: boolean;
|
|
1711
|
+
/**
|
|
1712
|
+
* Indicates the outOfStockText of the product
|
|
1713
|
+
*/
|
|
1714
|
+
"outOfStockText"?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Indicates the price of the card
|
|
1717
|
+
*/
|
|
1718
|
+
"price"?: number;
|
|
1719
|
+
/**
|
|
1720
|
+
* Indicates the ID of the product, can be also a SKU
|
|
1721
|
+
*/
|
|
1722
|
+
"productId"?: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* Indicates the title of the card
|
|
1725
|
+
*/
|
|
1726
|
+
"productName"?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Indicates the sale price of the card
|
|
1729
|
+
*/
|
|
1730
|
+
"salePrice"?: number;
|
|
1731
|
+
/**
|
|
1732
|
+
* Indicates the subtitle of the card
|
|
1733
|
+
*/
|
|
1734
|
+
"subtitle"?: string;
|
|
1735
|
+
}
|
|
1581
1736
|
interface JumpFilter {
|
|
1582
1737
|
"direction"?: 'horizontal' | 'vertical';
|
|
1583
1738
|
"filterButtonIcon"?: string;
|
|
@@ -1999,6 +2154,7 @@ declare namespace LocalJSX {
|
|
|
1999
2154
|
"jump-card": JumpCard;
|
|
2000
2155
|
"jump-card-ecommerce": JumpCardEcommerce;
|
|
2001
2156
|
"jump-card-ecommerce-option": JumpCardEcommerceOption;
|
|
2157
|
+
"jump-card-ecommerce-showcase": JumpCardEcommerceShowcase;
|
|
2002
2158
|
"jump-filter": JumpFilter;
|
|
2003
2159
|
"jump-filter-checkbox": JumpFilterCheckbox;
|
|
2004
2160
|
"jump-filter-range": JumpFilterRange;
|
|
@@ -2032,6 +2188,7 @@ declare module "@stencil/core" {
|
|
|
2032
2188
|
"jump-card": LocalJSX.JumpCard & JSXBase.HTMLAttributes<HTMLJumpCardElement>;
|
|
2033
2189
|
"jump-card-ecommerce": LocalJSX.JumpCardEcommerce & JSXBase.HTMLAttributes<HTMLJumpCardEcommerceElement>;
|
|
2034
2190
|
"jump-card-ecommerce-option": LocalJSX.JumpCardEcommerceOption & JSXBase.HTMLAttributes<HTMLJumpCardEcommerceOptionElement>;
|
|
2191
|
+
"jump-card-ecommerce-showcase": LocalJSX.JumpCardEcommerceShowcase & JSXBase.HTMLAttributes<HTMLJumpCardEcommerceShowcaseElement>;
|
|
2035
2192
|
"jump-filter": LocalJSX.JumpFilter & JSXBase.HTMLAttributes<HTMLJumpFilterElement>;
|
|
2036
2193
|
"jump-filter-checkbox": LocalJSX.JumpFilterCheckbox & JSXBase.HTMLAttributes<HTMLJumpFilterCheckboxElement>;
|
|
2037
2194
|
"jump-filter-range": LocalJSX.JumpFilterRange & JSXBase.HTMLAttributes<HTMLJumpFilterRangeElement>;
|