@jumpgroup/jump-design-system 0.3.1 → 0.3.4

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 (101) hide show
  1. package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js +34 -0
  2. package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js.map +1 -0
  3. package/dist/cjs/jump-card-ecommerce.cjs.entry.js +46 -28
  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/jump-filter.cjs.entry.js +2 -2
  7. package/dist/cjs/jump-filtergroup.cjs.entry.js +2 -2
  8. package/dist/cjs/jump-pagination-table.cjs.entry.js +3 -3
  9. package/dist/cjs/jump-pagination.cjs.entry.js +3 -3
  10. package/dist/cjs/jump-quantity.cjs.entry.js +7 -4
  11. package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -1
  12. package/dist/cjs/jump-tab-item.cjs.entry.js +2 -2
  13. package/dist/cjs/jump-tab-panel.cjs.entry.js +1 -1
  14. package/dist/cjs/jump-tab.cjs.entry.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/collection-manifest.json +1 -0
  17. package/dist/collection/components/jump-button/jump-button.stories.js +1 -1
  18. package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -1
  19. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +67 -5
  20. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +131 -46
  21. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js.map +1 -1
  22. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js +119 -75
  23. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js.map +1 -1
  24. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.css +3 -0
  25. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.js +122 -0
  26. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.js.map +1 -0
  27. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.js +11 -0
  28. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.js.map +1 -0
  29. package/dist/collection/components/jump-filter/jump-filter.js +2 -2
  30. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +2 -2
  31. package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
  32. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
  33. package/dist/collection/components/jump-quantity/jump-quantity.js +43 -11
  34. package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -1
  35. package/dist/collection/components/jump-tab/jump-tab.js +1 -1
  36. package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
  37. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
  38. package/dist/components/jump-card-ecommerce-option.d.ts +11 -0
  39. package/dist/components/jump-card-ecommerce-option.js +53 -0
  40. package/dist/components/jump-card-ecommerce-option.js.map +1 -0
  41. package/dist/components/jump-card-ecommerce.js +54 -32
  42. package/dist/components/jump-card-ecommerce.js.map +1 -1
  43. package/dist/components/jump-filter.js +2 -2
  44. package/dist/components/jump-filtergroup.js +2 -2
  45. package/dist/components/jump-pagination-table.js +3 -3
  46. package/dist/components/jump-pagination.js +3 -3
  47. package/dist/components/jump-quantity.js +10 -6
  48. package/dist/components/jump-quantity.js.map +1 -1
  49. package/dist/components/jump-tab-item.js +2 -2
  50. package/dist/components/jump-tab-panel.js +1 -1
  51. package/dist/components/jump-tab.js +1 -1
  52. package/dist/esm/jump-card-ecommerce-option.entry.js +30 -0
  53. package/dist/esm/jump-card-ecommerce-option.entry.js.map +1 -0
  54. package/dist/esm/jump-card-ecommerce.entry.js +46 -28
  55. package/dist/esm/jump-card-ecommerce.entry.js.map +1 -1
  56. package/dist/esm/jump-design-system.js +1 -1
  57. package/dist/esm/jump-filter.entry.js +2 -2
  58. package/dist/esm/jump-filtergroup.entry.js +2 -2
  59. package/dist/esm/jump-pagination-table.entry.js +3 -3
  60. package/dist/esm/jump-pagination.entry.js +3 -3
  61. package/dist/esm/jump-quantity.entry.js +7 -4
  62. package/dist/esm/jump-quantity.entry.js.map +1 -1
  63. package/dist/esm/jump-tab-item.entry.js +2 -2
  64. package/dist/esm/jump-tab-panel.entry.js +1 -1
  65. package/dist/esm/jump-tab.entry.js +1 -1
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  68. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  69. package/dist/jump-design-system/p-4e4cbdaf.entry.js +2 -0
  70. package/dist/jump-design-system/p-4e4cbdaf.entry.js.map +1 -0
  71. package/dist/jump-design-system/{p-5d713084.entry.js → p-529a09f6.entry.js} +2 -2
  72. package/dist/jump-design-system/{p-377a769b.entry.js → p-594b15ee.entry.js} +2 -2
  73. package/dist/jump-design-system/p-5da7839d.entry.js +2 -0
  74. package/dist/jump-design-system/{p-a6fc23f7.entry.js → p-65ac4e72.entry.js} +2 -2
  75. package/dist/jump-design-system/{p-493c7f4a.entry.js → p-8efeaa79.entry.js} +2 -2
  76. package/dist/jump-design-system/{p-2cb7d817.entry.js → p-95460fa4.entry.js} +2 -2
  77. package/dist/jump-design-system/p-b92e6459.entry.js +2 -0
  78. package/dist/jump-design-system/p-b92e6459.entry.js.map +1 -0
  79. package/dist/jump-design-system/p-bc64407a.entry.js +2 -0
  80. package/dist/jump-design-system/p-bc64407a.entry.js.map +1 -0
  81. package/dist/jump-design-system/{p-34a46a10.entry.js → p-d2ee7b9b.entry.js} +2 -2
  82. package/dist/jump-design-system-elements.json +50 -9
  83. package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.d.ts +21 -7
  84. package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.stories.d.ts +26 -1
  85. package/dist/types/components/jump-card-ecommerce-option/jump-card-ecommerce-option.d.ts +9 -0
  86. package/dist/types/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.d.ts +6 -0
  87. package/dist/types/components/jump-quantity/jump-quantity.d.ts +3 -2
  88. package/dist/types/components.d.ts +79 -21
  89. package/package.json +1 -1
  90. package/dist/jump-design-system/p-5a6fbc53.entry.js +0 -2
  91. package/dist/jump-design-system/p-7696c03d.entry.js +0 -2
  92. package/dist/jump-design-system/p-7696c03d.entry.js.map +0 -1
  93. package/dist/jump-design-system/p-fafe6478.entry.js +0 -2
  94. package/dist/jump-design-system/p-fafe6478.entry.js.map +0 -1
  95. /package/dist/jump-design-system/{p-5d713084.entry.js.map → p-529a09f6.entry.js.map} +0 -0
  96. /package/dist/jump-design-system/{p-377a769b.entry.js.map → p-594b15ee.entry.js.map} +0 -0
  97. /package/dist/jump-design-system/{p-5a6fbc53.entry.js.map → p-5da7839d.entry.js.map} +0 -0
  98. /package/dist/jump-design-system/{p-a6fc23f7.entry.js.map → p-65ac4e72.entry.js.map} +0 -0
  99. /package/dist/jump-design-system/{p-493c7f4a.entry.js.map → p-8efeaa79.entry.js.map} +0 -0
  100. /package/dist/jump-design-system/{p-2cb7d817.entry.js.map → p-95460fa4.entry.js.map} +0 -0
  101. /package/dist/jump-design-system/{p-34a46a10.entry.js.map → p-d2ee7b9b.entry.js.map} +0 -0
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"],"addedToCart":[4,"added-to-cart"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addtoCartText":[1,"addto-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"changedVariation":[4,"changed-variation"]}]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]]]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]}]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[16],"elPerPage":[2,"el-per-page"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"]},null,{"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[32],"getValue":[64]},null,{"value":["onValueChange"]}]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion.cjs",[[1,"jump-accordion"]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-tab.cjs",[[1,"jump-tab",{"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[1],"dimension":[1],"soft":[4],"outline":[4]}]]]], options);
11
+ return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"hasFavorite":[4,"has-favorite"],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"hoverImg":[1,"hover-img"],"hoverImgAlt":[1,"hover-img-alt"],"videoSrc":[1,"video-src"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addToCartText":[1,"add-to-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"addedToCart":[4,"added-to-cart"],"endAddedToCart":[4,"end-added-to-cart"],"variations":[32]},[[0,"jump-card-ecommerce-option-connected","addOption"]]]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]]]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]}]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[16],"elPerPage":[2,"el-per-page"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"]},null,{"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[2],"getValue":[64],"reset":[64]},null,{"value":["onValueChange"]}]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion.cjs",[[1,"jump-accordion"]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-card-ecommerce-option.cjs",[[1,"jump-card-ecommerce-option",{"code":[1],"imgUrl":[1,"img-url"],"label":[1],"sku":[1]}]]],["jump-tab.cjs",[[1,"jump-tab",{"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[1],"dimension":[1],"soft":[4],"outline":[4]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -5,6 +5,7 @@
5
5
  "components/jump-button/jump-button.js",
6
6
  "components/jump-card/jump-card.js",
7
7
  "components/jump-card-ecommerce/jump-card-ecommerce.js",
8
+ "components/jump-card-ecommerce-option/jump-card-ecommerce-option.js",
8
9
  "components/jump-filter/jump-filter.js",
9
10
  "components/jump-filtergroup/jump-filtergroup.js",
10
11
  "components/jump-icon/jump-icon.js",
@@ -60,7 +60,7 @@ export default {
60
60
  control: 'boolean'
61
61
  },
62
62
  onlyIcon: {
63
- name: 'onlyIcon',
63
+ name: 'only-icon',
64
64
  description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',
65
65
  control: 'boolean'
66
66
  },
@@ -1 +1 @@
1
- {"version":3,"file":"jump-button.stories.js","sourceRoot":"","sources":["../../../src/components/j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AAE,IAAI;IACV,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,eAAe;IAC1B,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,EAAE,EAAE,QAAQ;IACZ,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtC,IAAI,CAAC,IAAI,GAAG;IACV,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,KAAK;IACX,EAAE,EAAE,QAAQ;IACZ,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,MAAM;CACd,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Button',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'variant',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n outline : {\n name: 'outline',\n description: 'Imposta se il bottone deve avere il solo bordo',\n control: 'boolean'\n },\n size: {\n name: 'size',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large',\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande',\n }\n },\n pill: {\n name: 'pill',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n name: {\n name: 'name',\n description: 'Imposta il name del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n value: {\n name: 'value',\n description: 'Imposta il value del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n ariaLabel: {\n name: 'ariaLabel',\n description: 'Imposta l\\'aria label del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n text: {\n name: 'text',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n onlyIcon: {\n name: 'onlyIcon',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n full: {\n name: 'full',\n description: 'Imposta se il bottone sarà largo tutto lo spazio che può occupare',\n control: 'boolean'\n },\n href:{\n name: 'href',\n description: 'Imposta l\\'href del link, va impostato solo se non è un button ma è un link',\n control: 'text'\n },\n target:{\n name: 'target',\n description: 'Imposta il target del link, va impostato solo se non è un button ma è un link',\n control: 'select',\n options: [\n '_self',\n '_blank',\n '_parent',\n '_top'\n ],\n labels: {\n _self: '_self',\n _blank: '_blank',\n _parent: '_parent',\n _top: '_top'\n },\n },\n id: {\n name: 'id',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n disabled: {\n name: 'disabled',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes}> Scopri di più </jump-button>`\n}\n\nconst TemplateWithIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes}> <jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon> Scopri di più </jump-button>`\n}\n\nexport const ButtonWithIcon = TemplateWithIcon.bind({});\nButtonWithIcon.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const ButtonWithoutIcon = Template.bind({});\nButtonWithoutIcon.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Outline = Template.bind({});\nOutline.args = {\n variant: 'primary',\n size: 'small',\n outline: true,\n pill: false,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Pill = Template.bind({});\nPill.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: true,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Text = Template.bind({});\nText.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n text: true,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n variant: 'primary',\n size: 'small',\n disabled: true,\n};\n\nexport const CustomButton = Template.bind({});\nCustomButton.args = {\n pill: true,\n size: 'small',\n class: 'chat'\n};"]}
1
+ {"version":3,"file":"jump-button.stories.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,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,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtC,IAAI,CAAC,IAAI,GAAG;IACV,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,KAAK;IACX,EAAE,EAAE,QAAQ;IACZ,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,MAAM;CACd,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Button',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'variant',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n outline : {\n name: 'outline',\n description: 'Imposta se il bottone deve avere il solo bordo',\n control: 'boolean'\n },\n size: {\n name: 'size',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large',\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande',\n }\n },\n pill: {\n name: 'pill',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n name: {\n name: 'name',\n description: 'Imposta il name del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n value: {\n name: 'value',\n description: 'Imposta il value del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n ariaLabel: {\n name: 'ariaLabel',\n description: 'Imposta l\\'aria label del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n text: {\n name: 'text',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n onlyIcon: {\n name: 'only-icon',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n full: {\n name: 'full',\n description: 'Imposta se il bottone sarà largo tutto lo spazio che può occupare',\n control: 'boolean'\n },\n href:{\n name: 'href',\n description: 'Imposta l\\'href del link, va impostato solo se non è un button ma è un link',\n control: 'text'\n },\n target:{\n name: 'target',\n description: 'Imposta il target del link, va impostato solo se non è un button ma è un link',\n control: 'select',\n options: [\n '_self',\n '_blank',\n '_parent',\n '_top'\n ],\n labels: {\n _self: '_self',\n _blank: '_blank',\n _parent: '_parent',\n _top: '_top'\n },\n },\n id: {\n name: 'id',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n disabled: {\n name: 'disabled',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes}> Scopri di più </jump-button>`\n}\n\nconst TemplateWithIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes}> <jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon> Scopri di più </jump-button>`\n}\n\nexport const ButtonWithIcon = TemplateWithIcon.bind({});\nButtonWithIcon.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const ButtonWithoutIcon = Template.bind({});\nButtonWithoutIcon.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Outline = Template.bind({});\nOutline.args = {\n variant: 'primary',\n size: 'small',\n outline: true,\n pill: false,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Pill = Template.bind({});\nPill.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: true,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Text = Template.bind({});\nText.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n text: true,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n variant: 'primary',\n size: 'small',\n disabled: true,\n};\n\nexport const CustomButton = Template.bind({});\nCustomButton.args = {\n pill: true,\n size: 'small',\n class: 'chat'\n};"]}
@@ -25,7 +25,7 @@
25
25
  position: absolute;
26
26
  top: 1rem;
27
27
  left: 1rem;
28
- z-index: 1;
28
+ z-index: 2;
29
29
  }
30
30
  :host jump-badge.hasBackground.iconOnly {
31
31
  top: calc(1rem + 8px);
@@ -35,7 +35,7 @@
35
35
  position: absolute;
36
36
  top: 1rem;
37
37
  right: 1rem;
38
- z-index: 1;
38
+ z-index: 2;
39
39
  }
40
40
  :host .Favorite.hasBackground.iconOnly {
41
41
  top: calc(1rem + 8px);
@@ -48,10 +48,27 @@
48
48
  border-top-right-radius: 3px;
49
49
  aspect-ratio: 1/1;
50
50
  }
51
- :host .Media img {
51
+ :host .Media .Images {
52
+ height: 100%;
53
+ margin: 0;
54
+ position: relative;
55
+ }
56
+ :host .Media .Images img {
52
57
  height: 100%;
53
58
  width: 100%;
54
59
  object-fit: cover;
60
+ position: absolute;
61
+ top: 0;
62
+ left: 0;
63
+ overflow: hidden;
64
+ }
65
+ :host .Media .Images__Front {
66
+ z-index: 1;
67
+ transition: opacity 0.5s linear;
68
+ cursor: pointer;
69
+ }
70
+ :host .Media .Images.has-hover-image:hover .Images__Front {
71
+ opacity: 0;
55
72
  }
56
73
  :host .Media.hasBackground {
57
74
  background-color: var(--neutral-white);
@@ -72,6 +89,8 @@
72
89
  padding: 2rem 1rem;
73
90
  background-color: hsla(0, 0%, 0%, 0.35);
74
91
  box-sizing: border-box;
92
+ z-index: 2;
93
+ transform: translate3d(0, 0, 0);
75
94
  }
76
95
  :host .NotificationCart.is-active {
77
96
  display: flex;
@@ -111,6 +130,7 @@
111
130
  :host .Subtitle {
112
131
  font-size: var(--fs-300);
113
132
  color: var(--neutral-grey-secondary);
133
+ line-height: 1.2;
114
134
  }
115
135
  :host .Footer {
116
136
  line-height: var(--lh-400);
@@ -140,6 +160,7 @@
140
160
  background: var(--neutral-white);
141
161
  border-top-left-radius: 20px;
142
162
  padding: 8px 8px 0px 8px;
163
+ z-index: 2;
143
164
  }
144
165
  :host .Price {
145
166
  position: relative;
@@ -148,6 +169,7 @@
148
169
  grid-template-rows: 1.5rem 1.5rem auto;
149
170
  justify-items: end;
150
171
  align-items: end;
172
+ column-gap: 0.5rem;
151
173
  font-size: var(--fs-500);
152
174
  font-weight: var(--fw-900);
153
175
  line-height: var(--lh-400);
@@ -177,7 +199,47 @@
177
199
  grid-column: 1;
178
200
  grid-row: 1;
179
201
  }
202
+ :host .SelectVariations select {
203
+ appearance: none;
204
+ background-color: transparent;
205
+ border: 1px solid var(--neutral-grey-secondary);
206
+ border-radius: 3px;
207
+ color: var(--neutral-grey-secondary);
208
+ font-size: var(--fs-300);
209
+ padding: 0.5rem 0.75rem;
210
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
211
+ background-position: right 0.5rem center;
212
+ background-repeat: no-repeat;
213
+ background-size: 1.5em 1.5em;
214
+ padding-right: 2.5rem;
215
+ -webkit-print-color-adjust: exact;
216
+ }
217
+
218
+ .slide-in-bottom {
219
+ animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
220
+ }
221
+
222
+ .slide-out-bottom {
223
+ animation: slide-out-bottom 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
224
+ }
225
+
226
+ .fade-in-out {
227
+ animation-name: fade-in-out;
228
+ animation-duration: 6s;
229
+ animation-timing-function: ease-in-out;
230
+ }
180
231
 
181
- :host(.Pippo) {
182
- background-color: red;
232
+ @keyframes fade-in-out {
233
+ from {
234
+ opacity: 0;
235
+ transform: translateY(100px);
236
+ }
237
+ 50% {
238
+ opacity: 1;
239
+ transform: translateY(0);
240
+ }
241
+ to {
242
+ opacity: 0;
243
+ transform: translateY(100px);
244
+ }
183
245
  }
@@ -5,25 +5,36 @@ export class JumpCardEcommerce {
5
5
  this.hasBackground = false;
6
6
  this.badge = undefined;
7
7
  this.favorite = false;
8
+ this.hasFavorite = false;
8
9
  this.link = undefined;
9
10
  this.img = undefined;
10
11
  this.imgAlt = undefined;
12
+ this.hoverImg = undefined;
13
+ this.hoverImgAlt = undefined;
11
14
  this.videoSrc = undefined;
12
- this.addedToCart = false;
13
15
  this.notificationUrl = undefined;
14
- this.notificationText = 'Aggiunto al carrello';
16
+ this.notificationText = '';
15
17
  this.productName = undefined;
16
18
  this.subtitle = undefined;
17
19
  this.productId = undefined;
18
20
  this.price = undefined;
19
21
  this.salePrice = undefined;
20
- this.currency = undefined;
22
+ this.currency = '€';
21
23
  this.outOfStock = false;
22
24
  this.outOfStockText = undefined;
23
- this.addtoCartText = undefined;
25
+ this.addToCartText = undefined;
24
26
  this.waitingListText = undefined;
25
27
  this.addToWaitingList = false;
26
- this.changedVariation = false;
28
+ this.addedToCart = false;
29
+ this.endAddedToCart = false;
30
+ this.variations = [];
31
+ }
32
+ addOption(e) {
33
+ let props = e.detail; // es {code: 'sku1', imageUrl: 'https://google.com/'}
34
+ this.variations = [...this.variations, Object.assign({}, props)];
35
+ }
36
+ onVariationSelected(variation) {
37
+ this.variationSelected.emit(variation); // verificare se corretto: emetto l'evento
27
38
  }
28
39
  /* ---------------------- @LIFECYCLE ------------------------- */
29
40
  componentWillLoad() { }
@@ -34,7 +45,6 @@ export class JumpCardEcommerce {
34
45
  this.quantity = this.jumpQuantityEl.getValue().then((quantity) => {
35
46
  this.quantity = quantity;
36
47
  });
37
- console.log('Quantity:', this.quantity);
38
48
  }
39
49
  }
40
50
  disconnectedCallback() {
@@ -45,7 +55,8 @@ export class JumpCardEcommerce {
45
55
  }
46
56
  /* ---------------------- @METHODS ------------------------- */
47
57
  onQuantityChange(e) {
48
- this.quantity = e.detail.value;
58
+ var _a;
59
+ this.quantity = (_a = e.detail.value) !== null && _a !== void 0 ? _a : false;
49
60
  }
50
61
  onToggleFavorite() {
51
62
  this.favorite = !this.favorite;
@@ -55,15 +66,17 @@ export class JumpCardEcommerce {
55
66
  });
56
67
  }
57
68
  addProductToCart() {
69
+ var _a;
58
70
  this.addedToCart = true;
59
71
  const payload = {
60
72
  productId: this.productId,
61
73
  addedToCart: this.addedToCart,
62
- quantity: this.quantity
63
- // mancano le variazioni
74
+ quantity: (_a = this.quantity) !== null && _a !== void 0 ? _a : null
64
75
  };
65
76
  this.productAddToCart.emit(payload);
66
- console.log("productAddToCart payload:", payload);
77
+ setTimeout(() => {
78
+ this.addedToCart = false;
79
+ }, 6000);
67
80
  }
68
81
  waitingList() {
69
82
  this.addToWaitingList = true;
@@ -72,33 +85,38 @@ export class JumpCardEcommerce {
72
85
  addToWaitingList: this.addToWaitingList
73
86
  });
74
87
  }
75
- changeVariationBody(event) {
76
- const selectElement = event.target;
77
- const selectedValue = selectElement.value;
78
- this.changedVariation = true;
79
- const payload = {
80
- productId: this.productId,
81
- changedVariation: this.changedVariation,
82
- variation: selectedValue // da sostituire
83
- };
84
- this.changeVariation.emit(payload);
85
- console.log("changeVariation payload:", payload);
86
- }
87
88
  render() {
88
89
  const backgroundClass = this.hasBackground ? 'hasBackground' : '';
89
90
  const iconOnlyClass = this.onlyIconButton ? 'iconOnly' : '';
90
91
  const justifyClass = this.outOfStock ? 'justify-between' : '';
92
+ const hasImageOnHover = this.hoverImg ? 'has-hover-image' : '';
91
93
  function calculateDiscount(price, salePrice) {
92
94
  const discount = ((price - salePrice) / price) * 100;
93
95
  return discount.toFixed(0);
94
96
  }
95
97
  ;
96
- return (h(Host, null, this.badge ? h("jump-badge", { class: `${backgroundClass} ${iconOnlyClass}`, variant: "secondary", dimension: "small", label: this.badge }) : '', h("jump-button", { onClick: () => this.onToggleFavorite(), class: `Favorite ${backgroundClass} ${iconOnlyClass}`, variant: this.favorite ? 'neutral' : 'primary', size: "small", text: true, onlyIcon: true }, h("jump-icon", { slot: "prefix", name: "heart", category: this.favorite ? 'light' : 'solid', size: "medium" })), h("div", { class: `Media ${iconOnlyClass} ${backgroundClass}` }, h("a", { href: this.link }, this.img && !this.videoSrc ? h("img", { src: this.img, alt: this.imgAlt }) : '', this.videoSrc && !this.img ?
97
- h("video", { autoplay: true }, h("source", { src: this.videoSrc, type: "video/mp4" }), h("source", { src: this.videoSrc, type: "video/mov" }), h("source", { src: this.videoSrc, type: "video/webm" })) : ''), h("div", { class: `NotificationCart ${this.addedToCart == true ? 'is-active' : ''}` }, h("jump-button", { href: this.notificationUrl, variant: "white", text: true }, h("jump-icon", { slot: "prefix", name: "check" }), h("span", null, " ", this.notificationText, " "))), this.onlyIconButton ?
98
+ return (h(Host, null, this.badge ? h("jump-badge", { class: `${backgroundClass} ${iconOnlyClass}`, variant: "secondary", dimension: "small", label: this.badge }) : '', this.hasFavorite ?
99
+ h("jump-button", { onClick: () => this.onToggleFavorite(), class: `Favorite ${backgroundClass} ${iconOnlyClass}`, variant: this.favorite ? 'primary' : 'neutral', size: "small", text: true, onlyIcon: true }, h("jump-icon", { slot: "prefix", name: "heart", category: this.favorite ? 'solid' : 'light', size: "medium" }))
100
+ : null, h("div", { class: `Media ${iconOnlyClass} ${backgroundClass}` }, h("a", { href: this.link }, h("figure", { class: `Images ${hasImageOnHover} ` }, this.img && !this.videoSrc ? h("img", { class: "Images__Front", src: this.img, alt: this.imgAlt }) : '', this.hoverImg && !this.videoSrc ? h("img", { class: "Images__OnHover", src: this.hoverImg, alt: this.hoverImgAlt }) : ''), this.videoSrc && !this.img ?
101
+ h("video", { autoplay: true }, h("source", { src: this.videoSrc, type: "video/mp4" }), h("source", { src: this.videoSrc, type: "video/mov" }), h("source", { src: this.videoSrc, type: "video/webm" })) : ''), h("div", { class: `NotificationCart ${this.addedToCart == true ? 'is-active fade-in-out' : ''}` }, h("jump-button", { href: this.notificationUrl, variant: "white", text: true }, h("jump-icon", { slot: "prefix", name: "check" }), h("span", null, " ", this.notificationText, " "))), this.onlyIconButton ?
98
102
  h("div", { class: "OnlyIconButton" }, h("jump-button", { variant: "secondary", size: "large", pill: true, onlyIcon: true, onClick: () => this.addProductToCart() }, h("jump-icon", { slot: "prefix", name: 'cart-shopping', category: "regular" })))
99
- : ''), h("div", { class: `Content ${backgroundClass} ${iconOnlyClass}` }, h("div", { class: `Body ${backgroundClass} ${iconOnlyClass}` }, h("div", null, h("div", { class: "Info" }, h("div", { class: "Product" }, this.productName), h("div", { class: "Subtitle" }, this.subtitle)), h("div", { class: "Price" }, h("div", { class: "Price__Discount" }, calculateDiscount(this.price, this.salePrice), "%"), h("div", { class: `Price__Regular ${this.salePrice ? 'sale' : ''}` }, this.currency, this.price), h("div", { class: "Price__Sale" }, this.currency, this.salePrice))), h("div", null, h("slot", { name: "select" }), h("slot", { name: "quantity" }))), h("div", { class: `Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass}` }, this.outOfStock ? h("div", { class: "OutOfStock" }, this.outOfStockText ? this.outOfStockText : 'Esaurito') : '', this.outOfStock ?
103
+ : ''), h("div", { class: `Content ${backgroundClass} ${iconOnlyClass}` }, h("div", { class: `Body ${backgroundClass} ${iconOnlyClass}` }, h("div", null, h("div", { class: "Info" }, h("div", { class: "Product" }, this.productName), this.subtitle ? h("div", { class: "Subtitle" }, this.subtitle) : null), this.price ?
104
+ h("div", { class: "Price" }, this.salePrice && this.salePrice != 0 ?
105
+ h("div", { class: "Price__Discount" }, " ", calculateDiscount(this.price, this.salePrice), "% ")
106
+ : null, h("div", { class: `Price__Regular ${this.salePrice ? 'sale' : ''}` }, this.currency, this.price), this.salePrice ?
107
+ h("div", { class: "Price__Sale" }, this.currency, this.salePrice)
108
+ : null)
109
+ : null), h("div", { class: "SelectVariations" }, this.variations.length != 0 ?
110
+ h("select", { ref: (el) => (this.variationSelectEl = el), onChange: () => {
111
+ let currentValue = this.variationSelectEl.value;
112
+ let currentVariation = this.variations.find((variation) => variation.code == currentValue);
113
+ this.onVariationSelected(currentVariation);
114
+ } }, this.variations
115
+ .filter((variation) => !variation.imgUrl)
116
+ .map((variation) => (h("option", { value: variation.code }, variation.label))))
117
+ : null), h("slot", { name: "quantity" })), h("div", { class: `Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass}` }, this.outOfStock ? h("div", { class: "OutOfStock" }, this.outOfStockText ? this.outOfStockText : 'Esaurito') : '', this.outOfStock ?
100
118
  h("jump-button", { variant: "secondary", size: "small", text: true, onClick: () => this.waitingList() }, h("jump-icon", { slot: "prefix", name: !this.outOfStock ? 'cart-shopping' : 'bell', category: "regular", size: "small" }), this.waitingListText ? this.waitingListText : 'Notifica disponibilità') : '', !this.outOfStock && !this.onlyIconButton ?
101
- h("jump-button", { variant: "secondary", size: "small", text: true, onClick: () => this.addProductToCart() }, h("jump-icon", { slot: "prefix", name: !this.outOfStock ? 'cart-shopping' : 'bell', category: "regular", size: "small" }), this.addtoCartText ? this.addtoCartText : 'Aggiungi al carrello') : ''))));
119
+ h("jump-button", { variant: "secondary", size: "small", text: true, onClick: () => this.addProductToCart() }, h("jump-icon", { slot: "prefix", name: !this.outOfStock ? 'cart-shopping' : 'bell', category: "regular", size: "small" }), this.addToCartText ? this.addToCartText : 'Aggiungi al carrello') : ''))));
102
120
  }
103
121
  static get is() { return "jump-card-ecommerce"; }
104
122
  static get encapsulation() { return "shadow"; }
@@ -185,6 +203,24 @@ export class JumpCardEcommerce {
185
203
  "reflect": true,
186
204
  "defaultValue": "false"
187
205
  },
206
+ "hasFavorite": {
207
+ "type": "boolean",
208
+ "mutable": false,
209
+ "complexType": {
210
+ "original": "boolean",
211
+ "resolved": "boolean",
212
+ "references": {}
213
+ },
214
+ "required": false,
215
+ "optional": false,
216
+ "docs": {
217
+ "tags": [],
218
+ "text": "Indicate if the whislist is active in shop"
219
+ },
220
+ "attribute": "has-favorite",
221
+ "reflect": false,
222
+ "defaultValue": "false"
223
+ },
188
224
  "link": {
189
225
  "type": "string",
190
226
  "mutable": false,
@@ -236,7 +272,7 @@ export class JumpCardEcommerce {
236
272
  "attribute": "img-alt",
237
273
  "reflect": false
238
274
  },
239
- "videoSrc": {
275
+ "hoverImg": {
240
276
  "type": "string",
241
277
  "mutable": false,
242
278
  "complexType": {
@@ -248,28 +284,44 @@ export class JumpCardEcommerce {
248
284
  "optional": false,
249
285
  "docs": {
250
286
  "tags": [],
251
- "text": "Indicates the videoSrc of the card"
287
+ "text": "Indicates the over image's src of the card"
252
288
  },
253
- "attribute": "video-src",
289
+ "attribute": "hover-img",
254
290
  "reflect": false
255
291
  },
256
- "addedToCart": {
257
- "type": "boolean",
292
+ "hoverImgAlt": {
293
+ "type": "string",
258
294
  "mutable": false,
259
295
  "complexType": {
260
- "original": "boolean",
261
- "resolved": "boolean",
296
+ "original": "string",
297
+ "resolved": "string",
262
298
  "references": {}
263
299
  },
264
300
  "required": false,
265
301
  "optional": false,
266
302
  "docs": {
267
303
  "tags": [],
268
- "text": "Indicate if the product is added to cart"
304
+ "text": "Indicates the hover img's alt of the card"
269
305
  },
270
- "attribute": "added-to-cart",
271
- "reflect": false,
272
- "defaultValue": "false"
306
+ "attribute": "hover-img-alt",
307
+ "reflect": false
308
+ },
309
+ "videoSrc": {
310
+ "type": "string",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "string",
314
+ "resolved": "string",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": "Indicates the videoSrc of the card"
322
+ },
323
+ "attribute": "video-src",
324
+ "reflect": false
273
325
  },
274
326
  "notificationUrl": {
275
327
  "type": "string",
@@ -304,7 +356,7 @@ export class JumpCardEcommerce {
304
356
  },
305
357
  "attribute": "notification-text",
306
358
  "reflect": false,
307
- "defaultValue": "'Aggiunto al carrello'"
359
+ "defaultValue": "''"
308
360
  },
309
361
  "productName": {
310
362
  "type": "string",
@@ -406,7 +458,8 @@ export class JumpCardEcommerce {
406
458
  "text": "Indicates the currency of the card"
407
459
  },
408
460
  "attribute": "currency",
409
- "reflect": false
461
+ "reflect": false,
462
+ "defaultValue": "'\u20AC'"
410
463
  },
411
464
  "outOfStock": {
412
465
  "type": "boolean",
@@ -443,7 +496,7 @@ export class JumpCardEcommerce {
443
496
  "attribute": "out-of-stock-text",
444
497
  "reflect": false
445
498
  },
446
- "addtoCartText": {
499
+ "addToCartText": {
447
500
  "type": "string",
448
501
  "mutable": false,
449
502
  "complexType": {
@@ -457,7 +510,7 @@ export class JumpCardEcommerce {
457
510
  "tags": [],
458
511
  "text": "Indicates the button class of the add to cart / notification button"
459
512
  },
460
- "attribute": "addto-cart-text",
513
+ "attribute": "add-to-cart-text",
461
514
  "reflect": false
462
515
  },
463
516
  "waitingListText": {
@@ -495,7 +548,25 @@ export class JumpCardEcommerce {
495
548
  "reflect": false,
496
549
  "defaultValue": "false"
497
550
  },
498
- "changedVariation": {
551
+ "addedToCart": {
552
+ "type": "boolean",
553
+ "mutable": false,
554
+ "complexType": {
555
+ "original": "boolean",
556
+ "resolved": "boolean",
557
+ "references": {}
558
+ },
559
+ "required": false,
560
+ "optional": false,
561
+ "docs": {
562
+ "tags": [],
563
+ "text": "Indicate if the product is added to cart --> non deve esserci nelle storie!"
564
+ },
565
+ "attribute": "added-to-cart",
566
+ "reflect": false,
567
+ "defaultValue": "false"
568
+ },
569
+ "endAddedToCart": {
499
570
  "type": "boolean",
500
571
  "mutable": false,
501
572
  "complexType": {
@@ -507,14 +578,19 @@ export class JumpCardEcommerce {
507
578
  "optional": false,
508
579
  "docs": {
509
580
  "tags": [],
510
- "text": "Indicate if the variation is change"
581
+ "text": ""
511
582
  },
512
- "attribute": "changed-variation",
583
+ "attribute": "end-added-to-cart",
513
584
  "reflect": false,
514
585
  "defaultValue": "false"
515
586
  }
516
587
  };
517
588
  }
589
+ static get states() {
590
+ return {
591
+ "variations": {}
592
+ };
593
+ }
518
594
  static get events() {
519
595
  return [{
520
596
  "method": "toggleFavorite",
@@ -562,8 +638,8 @@ export class JumpCardEcommerce {
562
638
  "references": {}
563
639
  }
564
640
  }, {
565
- "method": "changeVariation",
566
- "name": "jump-change-variation",
641
+ "method": "variationSelected",
642
+ "name": "jump-variation-selected",
567
643
  "bubbles": true,
568
644
  "cancelable": true,
569
645
  "composed": true,
@@ -579,5 +655,14 @@ export class JumpCardEcommerce {
579
655
  }];
580
656
  }
581
657
  static get elementRef() { return "JumpCardEcommerce"; }
658
+ static get listeners() {
659
+ return [{
660
+ "name": "jump-card-ecommerce-option-connected",
661
+ "method": "addOption",
662
+ "target": undefined,
663
+ "capture": false,
664
+ "passive": false
665
+ }];
666
+ }
582
667
  }
583
668
  //# sourceMappingURL=jump-card-ecommerce.js.map