@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,40 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const jumpBadgeCss = "jump-badge{--jump-badge-background:var(--primary-standard);--jump-badge-color:#fff;--jump-bafge-border-radius:50px;display:inline-flex;color:var(--jump-badge-color);background-color:var(--jump-badge-background);align-items:center;justify-content:center;font-size:var(--fs-300);font-weight:var(--fw-900);line-height:1;border-radius:var(--jump-bafge-border-radius);border:solid 1px var(--jump-bafge-border-radius);white-space:nowrap;padding:0.35em 0.6em;user-select:none;cursor:inherit}jump-badge[variant=primary]{--jump-badge-background:var(--primary-standard)}jump-badge[variant=secondary]{--jump-badge-background:var(--secondary-standard)}";
4
+ const JumpBadgeStyle0 = jumpBadgeCss;
5
+
6
+ const AppCard = /*@__PURE__*/ proxyCustomElement(class AppCard extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.label = '';
11
+ this.variant = 'primary';
12
+ }
13
+ render() {
14
+ return (h(Host, { key: '8a7bf8245f0edf5aa45f70be833001e7c2899a5e', variant: this.variant }, this.label));
15
+ }
16
+ static get style() { return JumpBadgeStyle0; }
17
+ }, [0, "jump-badge", {
18
+ "label": [513],
19
+ "variant": [513]
20
+ }]);
21
+ function defineCustomElement$1() {
22
+ if (typeof customElements === "undefined") {
23
+ return;
24
+ }
25
+ const components = ["jump-badge"];
26
+ components.forEach(tagName => { switch (tagName) {
27
+ case "jump-badge":
28
+ if (!customElements.get(tagName)) {
29
+ customElements.define(tagName, AppCard);
30
+ }
31
+ break;
32
+ } });
33
+ }
34
+
35
+ const JumpBadge = AppCard;
36
+ const defineCustomElement = defineCustomElement$1;
37
+
38
+ export { JumpBadge, defineCustomElement };
39
+
40
+ //# sourceMappingURL=jump-badge.js.map
@@ -0,0 +1 @@
1
+ {"file":"jump-badge.js","mappings":";;AAAA,MAAM,YAAY,GAAG,koBAAkoB,CAAC;AACxpB,wBAAe,YAAY;;MCMd,OAAO;;;;qBAIqB,EAAE;uBAKe,SAAS;;IAEjE,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,IACxB,IAAI,CAAC,KAAK,CACN,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/jump-badge/jump-badge.scss?tag=jump-badge","src/components/jump-badge/jump-badge.tsx"],"sourcesContent":["jump-badge {\n --jump-badge-background: var(--primary-standard);\n --jump-badge-color: #fff;\n --jump-bafge-border-radius: 50px;\n\n display: inline-flex;\n color: var(--jump-badge-color);\n background-color: var(--jump-badge-background);\n align-items: center;\n justify-content: center;\n font-size: var(--fs-300);\n font-weight: var(--fw-900);\n line-height: 1;\n border-radius: var(--jump-bafge-border-radius);\n border: solid 1px var(--jump-bafge-border-radius);\n white-space: nowrap;\n padding: 0.35em 0.6em;\n user-select: none;\n cursor: inherit;\n\n &[variant='primary'] {\n --jump-badge-background: var(--primary-standard);\n }\n\n &[variant='secondary'] {\n --jump-badge-background: var(--secondary-standard);\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-badge',\n styleUrl: 'jump-badge.scss',\n shadow: false,\n})\nexport class AppCard {\n /**\n * Indicates the label of the badge\n */\n @Prop({reflect: true}) label: string = '';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop({reflect: true}) variant: 'primary'|'secondary' = 'primary';\n\n render() {\n return (\n <Host variant={this.variant}>\n {this.label}\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -24,7 +24,7 @@ const AppButton = /*@__PURE__*/ proxyCustomElement(class AppButton extends HTMLE
24
24
  this.buttonId = undefined;
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '99f1066ec9ae582f15275114e8cf95f37d3914d0' }, this.href ? (h("a", { href: this.href, id: this.buttonId, class: this.class, "data-variant": this.variant, "data-outline": this.outline, "data-size": this.size, "data-pill": this.pill, "data-text": this.text, "data-only-icon": this.onlyIcon, "aria-label": this.ariaLabel, target: this.target }, h("slot", { name: "prefix" }), !this.onlyIcon && h("slot", null), h("slot", { name: "suffix" }))) : (h("button", { id: this.buttonId, class: this.class, "data-variant": this.variant, "data-outline": this.outline, "data-size": this.size, "data-pill": this.pill, "data-text": this.text, "data-only-icon": this.onlyIcon, disabled: this.disabled, "aria-label": this.ariaLabel, type: this.type, name: this.name, value: this.value }, h("slot", { name: "prefix" }), !this.onlyIcon && h("slot", null), h("slot", { name: "suffix" })))));
27
+ return (h(Host, { key: '21647cd89a0a179d5c035f5e7f533f54375311cf' }, this.href ? (h("a", { href: this.href, id: this.buttonId, class: this.class, "data-variant": this.variant, "data-outline": this.outline, "data-size": this.size, "data-pill": this.pill, "data-text": this.text, "data-only-icon": this.onlyIcon, "aria-label": this.ariaLabel, target: this.target }, h("slot", { name: "prefix" }), !this.onlyIcon && h("slot", null), h("slot", { name: "suffix" }))) : (h("button", { id: this.buttonId, class: this.class, "data-variant": this.variant, "data-outline": this.outline, "data-size": this.size, "data-pill": this.pill, "data-text": this.text, "data-only-icon": this.onlyIcon, disabled: this.disabled, "aria-label": this.ariaLabel, type: this.type, name: this.name, value: this.value }, h("slot", { name: "prefix" }), !this.onlyIcon && h("slot", null), h("slot", { name: "suffix" })))));
28
28
  }
29
29
  static get style() { return JumpButtonStyle0; }
30
30
  }, [4, "jump-button", {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface JumpCard extends Components.JumpCard, HTMLElement {}
4
+ export const JumpCard: {
5
+ prototype: JumpCard;
6
+ new (): JumpCard;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,59 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const jumpCardCss = "jump-card{display:flex;flex-direction:column;position:relative;--jump-card-max-width-horizontal:100%;--jump-card-color:var(--neutral-grey-primary);--jump-card-background:#fff;--jump-card-color-dark:#fff;--jump-card-border-color:var(--neutral-grey-background);--jump-card-border-radius:6px;--jump-card-border-top-radius:1rem;--jump-card-top-border-body-radius:1.5rem 1rem;--jump-card-padding:1rem 1.25rem;font-family:var(--ff-primary, \"Arial\"), sans-serif;line-height:var(--lh-400, 1.3);background-color:var(--jump-card-background);color:var(--jump-card-color);overflow:hidden}jump-card img,jump-card video{aspect-ratio:4/3;overflow:hidden;position:relative}jump-card .Content{padding:1.5rem 1rem;display:flex;flex-direction:column;gap:0.75rem;flex:1;background-color:var(--jump-card-background)}jump-card[dark]{background-color:var(--neutral-grey-primary);color:var(--jump-card-color-dark)}jump-card[dark] .Content{background-color:var(--neutral-grey-primary);color:var(--jump-card-color-dark)}jump-card[border]{border:1px solid var(--jump-card-border-color)}jump-card[border-radius]{border-radius:var(--jump-card-border-radius)}jump-card[top-border-content-radius]{border-radius:var(--jump-card-border-top-radius)}jump-card[top-border-content-radius] .Content{border-top-left-radius:var(--jump-card-border-top-radius);border-top-right-radius:var(--jump-card-border-top-radius);margin-top:-1rem;z-index:2}jump-card[boxed]{border-radius:var(--jump-card-border-radius)}jump-card[boxed] img,jump-card[boxed] video{border-radius:var(--jump-card-border-radius);background-color:var(--jump-card-background);margin:0.5rem 0.5rem 0}jump-card[horizontal]{flex-direction:row;gap:0.5rem;align-items:center;max-width:var(--jump-card-max-width-horizontal)}jump-card[rounded-media]{align-items:center;justify-content:center;text-align:center;background-color:transparent}jump-card[rounded-media] img,jump-card[rounded-media] video{background-color:transparent;border-radius:50%;aspect-ratio:1;object-fit:cover;width:100%;flex:0 1 40%}jump-card[rounded-media] .Content{background-color:transparent;align-items:center}jump-card[rounded-media][horizontal]{text-align:left}jump-card[rounded-media][horizontal] .Content{align-items:flex-start}jump-card[shadow]{box-shadow:0px 2px 25px 0px hsla(0, 0%, 0%, 0.1)}";
4
+ const JumpCardStyle0 = jumpCardCss;
5
+
6
+ const AppCard = /*@__PURE__*/ proxyCustomElement(class AppCard extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.horizontal = false;
11
+ this.dark = false;
12
+ this.shadow = undefined;
13
+ this.border = undefined;
14
+ this.borderRadius = false;
15
+ this.topBorderContentRadius = false;
16
+ this.boxed = false;
17
+ this.roundedMedia = false;
18
+ this.imgSrc = '';
19
+ this.imgAlt = '';
20
+ this.videoSrc = '';
21
+ }
22
+ render() {
23
+ return (h(Host, { key: 'a1f0752a89731d2f493060b79548fa69e99e1e68', horizontal: this.horizontal, "border-radius": this.borderRadius, "rounded-media": this.roundedMedia, "top-border-content-radius": this.topBorderContentRadius, boxed: this.boxed, shadow: this.shadow, border: this.border }, this.imgSrc && !this.videoSrc ? h("img", { src: this.imgSrc, alt: this.imgAlt }) : '', this.videoSrc && !this.imgSrc ?
24
+ 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", { key: 'a7d7a20a7a5960f3fab3d417d224dd711d119e0b', class: "Content" }, h("slot", { key: '7667cd1ea36b6f2115174f0fa39a6368bc020b16', name: "body" }), h("slot", { key: 'bbaded488f7b0603a9aa19e1549ba41e524ad322', name: "footer" }))));
25
+ }
26
+ static get style() { return JumpCardStyle0; }
27
+ }, [4, "jump-card", {
28
+ "horizontal": [516],
29
+ "dark": [516],
30
+ "shadow": [516],
31
+ "border": [516],
32
+ "borderRadius": [516, "border-radius"],
33
+ "topBorderContentRadius": [516, "top-border-content-radius"],
34
+ "boxed": [516],
35
+ "roundedMedia": [516, "rounded-media"],
36
+ "imgSrc": [513, "img-src"],
37
+ "imgAlt": [513, "img-alt"],
38
+ "videoSrc": [513, "video-src"]
39
+ }]);
40
+ function defineCustomElement$1() {
41
+ if (typeof customElements === "undefined") {
42
+ return;
43
+ }
44
+ const components = ["jump-card"];
45
+ components.forEach(tagName => { switch (tagName) {
46
+ case "jump-card":
47
+ if (!customElements.get(tagName)) {
48
+ customElements.define(tagName, AppCard);
49
+ }
50
+ break;
51
+ } });
52
+ }
53
+
54
+ const JumpCard = AppCard;
55
+ const defineCustomElement = defineCustomElement$1;
56
+
57
+ export { JumpCard, defineCustomElement };
58
+
59
+ //# sourceMappingURL=jump-card.js.map
@@ -0,0 +1 @@
1
+ {"file":"jump-card.js","mappings":";;AAAA,MAAM,WAAW,GAAG,uvEAAuvE,CAAC;AAC5wE,uBAAe,WAAW;;MCMb,OAAO;;;;0BAI2B,KAAK;oBAKX,KAAK;;;4BAeG,KAAK;sCAKK,KAAK;qBAKtB,KAAK;4BAKE,KAAK;sBAKZ,EAAE;sBAKF,EAAE;wBAKA,EAAE;;IAE5C,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,UAAU,EAAE,IAAI,CAAC,UAAU,mBAAiB,IAAI,CAAC,YAAY,mBAAiB,IAAI,CAAC,YAAY,+BAA6B,IAAI,CAAC,sBAAsB,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IACvN,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,WAAK,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,MAAM,GAAQ,GAAG,EAAE,EACpF,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM;YAC5B,aAAO,QAAQ,UACb,cAAQ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAC,WAAW,GAAE,EAC9C,cAAQ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAC,WAAW,GAAE,EAC9C,cAAQ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAC,YAAY,GAAE,CACzC,GAAG,EAAE,EACf,4DAAK,KAAK,EAAC,SAAS,IAClB,6DAAM,IAAI,EAAC,MAAM,GAAQ,EACzB,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/jump-card/jump-card.scss?tag=jump-card","src/components/jump-card/jump-card.tsx"],"sourcesContent":["jump-card {\n display: flex;\n flex-direction: column;\n position: relative;\n // --jump-card-max-width: 320px;\n --jump-card-max-width-horizontal: 100%;\n --jump-card-color: var(--neutral-grey-primary);\n --jump-card-background: #fff;\n --jump-card-color-dark: #fff;\n --jump-card-border-color: var(--neutral-grey-background);\n --jump-card-border-radius: 6px;\n --jump-card-border-top-radius: 1rem;\n --jump-card-top-border-body-radius: 1.5rem 1rem;\n --jump-card-padding: 1rem 1.25rem;\n\n font-family: var(--ff-primary, 'Arial'), sans-serif;\n line-height: var(--lh-400, 1.3);\n background-color: var(--jump-card-background);\n color: var(--jump-card-color);\n // max-width: var(--jump-card-max-width);\n overflow: hidden;\n\n img,\n video {\n aspect-ratio: 4/3;\n overflow: hidden;\n position: relative;\n }\n\n .Content {\n padding: 1.5rem 1rem;\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n flex: 1;\n background-color: var(--jump-card-background);\n }\n\n &[dark] {\n background-color: var(--neutral-grey-primary);\n color: var(--jump-card-color-dark);\n\n .Content {\n background-color: var(--neutral-grey-primary);\n color: var(--jump-card-color-dark);\n }\n }\n\n &[border] {\n border: 1px solid var(--jump-card-border-color);\n }\n\n &[border-radius] {\n border-radius: var(--jump-card-border-radius);\n }\n\n &[top-border-content-radius] {\n border-radius: var(--jump-card-border-top-radius);\n\n .Content {\n border-top-left-radius: var(--jump-card-border-top-radius);\n border-top-right-radius: var(--jump-card-border-top-radius);\n margin-top: -1rem;\n z-index: 2;\n }\n }\n\n &[boxed] {\n border-radius: var(--jump-card-border-radius);\n\n img,\n video {\n border-radius: var(--jump-card-border-radius);\n background-color: var(--jump-card-background);\n margin: 0.5rem 0.5rem 0;\n }\n }\n\n &[horizontal] {\n flex-direction: row;\n gap: 0.5rem;\n align-items: center;\n max-width: var(--jump-card-max-width-horizontal);\n }\n\n &[rounded-media] {\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: transparent;\n\n img,\n video {\n background-color: transparent;\n border-radius: 50%;\n aspect-ratio: 1;\n object-fit: cover;\n width: 100%;\n flex: 0 1 40%;\n }\n\n .Content {\n background-color: transparent;\n align-items: center;\n }\n }\n\n &[rounded-media][horizontal] {\n text-align: left;\n\n .Content {\n align-items: flex-start;\n }\n }\n\n &[shadow] {\n box-shadow: 0px 2px 25px 0px hsla(0, 0%, 0%, 0.1);\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-card',\n styleUrl: 'jump-card.scss',\n shadow: false,\n})\nexport class AppCard {\n /**\n * Indicates if the card is horizontal\n */\n @Prop({reflect: true}) horizontal: boolean = false;\n\n /**\n * Indicates if the card is horizontal\n */\n @Prop({reflect: true}) dark: boolean = false;\n\n /**\n * Indicates if card has shadow\n */\n @Prop({reflect: true}) shadow: boolean;\n\n /**\n * Indicates if card has borders\n */\n @Prop({reflect: true}) border: boolean;\n\n /**\n * Indicates if borders of the entire card are rounded\n */\n @Prop({reflect: true}) borderRadius: boolean = false;\n\n /**\n * Indicates if border top of the body is rounded; Not compatible with boxed\n */\n @Prop({reflect: true}) topBorderContentRadius: boolean = false;\n\n /**\n * Indicates if media has padding; Not compatible with roundedMedia\n */\n @Prop({reflect: true}) boxed: boolean = false;\n\n /**\n * Indicates if image is rounded and there isnt a bg\n */\n @Prop({reflect: true}) roundedMedia: boolean = false;\n\n /**\n * Indicates the imgSrc of the card\n */\n @Prop({reflect: true}) imgSrc: string = '';\n\n /**\n * Indicates the img's alt of the card\n */\n @Prop({reflect: true}) imgAlt: string = '';\n\n /**\n * Indicates the videoSrc of the card\n */\n @Prop({reflect: true}) videoSrc: string = '';\n\n render() {\n return (\n <Host horizontal={this.horizontal} border-radius={this.borderRadius} rounded-media={this.roundedMedia} top-border-content-radius={this.topBorderContentRadius} boxed={this.boxed} shadow={this.shadow} border={this.border}>\n {this.imgSrc && !this.videoSrc ? <img src={this.imgSrc} alt={this.imgAlt}></img> : ''}\n {this.videoSrc && !this.imgSrc ? \n <video autoplay> \n <source src={this.videoSrc} type=\"video/mp4\"/> \n <source src={this.videoSrc} type=\"video/mov\"/> \n <source src={this.videoSrc} type=\"video/webm\"/> \n </video> : ''}\n <div class=\"Content\">\n <slot name=\"body\"></slot>\n <slot name=\"footer\"></slot>\n </div>\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -19,11 +19,11 @@ const JumpPagination$1 = /*@__PURE__*/ proxyCustomElement(class JumpPagination e
19
19
  }
20
20
  render() {
21
21
  var _a;
22
- return (h(Host, { key: 'eacb989c1eafddab001bce8a3e7618b42e281604', class: "JumpPagination" }, h("div", { key: '52ebe6a91e9cde9f4bdcbad4be0a7e16d0a3867f', class: "JumpPagination__Wrapper" }, this.completeVersion &&
23
- h("div", { class: "elementsPerPage" }, h("label", { htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { name: "elements", id: "elements" }, this.elementsRanges.map((range) => (h("option", { value: range }, range))))), h("div", { key: '97a70fd1f86f644ee0199f0a6f1945988579705c', class: "indicators" }, h("div", { key: '9e9a1c2f541b3aaad78105a58f051127770b6e4d', class: "elements" }, this.completeVersion ?
22
+ return (h(Host, { key: 'e19fd7770573042573cc19152c02c74054c80ca0', class: "JumpPagination" }, h("div", { key: '293584737d7a7d04e6d35756736f5041e79057bc', class: "JumpPagination__Wrapper" }, this.completeVersion &&
23
+ h("div", { class: "elementsPerPage" }, h("label", { htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { name: "elements", id: "elements" }, this.elementsRanges.map((range) => (h("option", { value: range }, range))))), h("div", { key: 'abcc46875ebf0e3d6197b964b6ae5fc7d3478bd8', class: "indicators" }, h("div", { key: '4bf7e8c0470eb551389f35ac9325162a01ebdde2', class: "elements" }, this.completeVersion ?
24
24
  h("span", null, h("span", null, this.firstPage), " - ", h("span", null, this.currentPage), " di ", h("span", null, this.totalElements))
25
25
  :
26
- h("span", null, h("span", null, this.currentPage), " di ", h("span", null, this.lastPage))), h("div", { key: 'e7fe2402c2c6a1906f9f3bfc70cfde428590c964', class: "arrow" }, this.showAdditionalChrevrons && h("jump-icon", { name: "chevrons-left" }), h("jump-icon", { key: 'dadb4d94ce1bf31219adfa554a47b33f19b9b3a7', name: "chevron-left" }), h("jump-icon", { key: '841030e266c11bda6d75800bbc61f7e0899fd1ae', name: "chevron-right" }), this.showAdditionalChrevrons && h("jump-icon", { name: "chevrons-right" }))))));
26
+ h("span", null, h("span", null, this.currentPage), " di ", h("span", null, this.lastPage))), h("div", { key: '977288ffe184d14a7bf5b3fe8cb0d252324b303c', class: "arrow" }, this.showAdditionalChrevrons && h("jump-icon", { name: "chevrons-left" }), h("jump-icon", { key: 'b4707986287695a858e70ad2765f2b7e6a3d144c', name: "chevron-left" }), h("jump-icon", { key: '2cbe3824ee94c3d893784ffb78fefff385c714d3', name: "chevron-right" }), this.showAdditionalChrevrons && h("jump-icon", { name: "chevrons-right" }))))));
27
27
  }
28
28
  static get style() { return JumpPaginationStyle0; }
29
29
  }, [0, "jump-pagination", {
@@ -420,6 +420,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
420
420
  * @returns the newly created node
421
421
  */
422
422
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
423
+ var _a;
423
424
  // tslint:disable-next-line: prefer-const
424
425
  const newVNode = newParentVNode.$children$[childIndex];
425
426
  let i = 0;
@@ -478,6 +479,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
478
479
  elm['s-cr'] = contentRef;
479
480
  // remember the slot name, or empty string for default slot
480
481
  elm['s-sn'] = newVNode.$name$ || '';
482
+ // remember the ref callback function
483
+ elm['s-rf'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.ref;
481
484
  // check if we've got an old vnode for this slot
482
485
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
483
486
  if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
@@ -493,7 +496,15 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
493
496
  };
494
497
  const putBackInOriginalLocation = (parentElm, recursive) => {
495
498
  plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
496
- const oldSlotChildNodes = parentElm.childNodes;
499
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
500
+ if (parentElm['s-sr'] && BUILD.experimentalSlotFixes) {
501
+ let node = parentElm;
502
+ while ((node = node.nextSibling)) {
503
+ if (node && node['s-sn'] === parentElm['s-sn'] && node['s-sh'] === hostTagName) {
504
+ oldSlotChildNodes.push(node);
505
+ }
506
+ }
507
+ }
497
508
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
498
509
  const childNode = oldSlotChildNodes[i];
499
510
  if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
@@ -1195,7 +1206,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1195
1206
  // If the node we're currently planning on inserting the new node before is an element,
1196
1207
  // we need to do some additional checks to make sure we're inserting the node in the correct order.
1197
1208
  // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1198
- // to make sure they get inserted into their new how in the same order they were declared in their original location.
1209
+ // to make sure they get inserted into their new home in the same order they were declared in their original location.
1199
1210
  //
1200
1211
  // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1201
1212
  {
@@ -1236,6 +1247,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1236
1247
  }
1237
1248
  }
1238
1249
  }
1250
+ nodeToRelocate && typeof slotRefNode['s-rf'] === 'function' && slotRefNode['s-rf'](nodeToRelocate);
1239
1251
  }
1240
1252
  else {
1241
1253
  // this node doesn't have a slot home to go to, so let's hide it
@@ -1675,7 +1687,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1675
1687
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1676
1688
  // Let the runtime know that the component has been initialized
1677
1689
  hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1678
- {
1690
+ const bundleId = cmpMeta.$lazyBundleId$;
1691
+ if (bundleId) {
1679
1692
  // lazy loaded components
1680
1693
  // request the component's implementation to be
1681
1694
  // wired up with the host element
@@ -1712,6 +1725,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1712
1725
  }
1713
1726
  endNewInstance();
1714
1727
  }
1728
+ else {
1729
+ // sync constructor component
1730
+ Cstr = elm.constructor;
1731
+ // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1732
+ // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1733
+ // Stencil has completed instantiating the component.
1734
+ customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1735
+ }
1715
1736
  if (Cstr.style) {
1716
1737
  // this component has styles but we haven't registered them yet
1717
1738
  let style = Cstr.style;
@@ -2081,4 +2102,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2081
2102
 
2082
2103
  export { Host as H, bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
2083
2104
 
2084
- //# sourceMappingURL=index-b0176170.js.map
2105
+ //# sourceMappingURL=index-7feee8ea.js.map