@jumpgroup/jump-design-system 0.2.2 → 0.2.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 (158) hide show
  1. package/dist/cjs/{index-79e97f36.js → index-41aaa52a.js} +181 -11
  2. package/dist/cjs/index-41aaa52a.js.map +1 -0
  3. package/dist/cjs/jump-badge.cjs.entry.js +6 -6
  4. package/dist/cjs/jump-badge.cjs.entry.js.map +1 -1
  5. package/dist/cjs/jump-button.cjs.entry.js +10 -6
  6. package/dist/cjs/jump-button.cjs.entry.js.map +1 -1
  7. package/dist/cjs/jump-card.cjs.entry.js +4 -4
  8. package/dist/cjs/jump-card.cjs.entry.js.map +1 -1
  9. package/dist/cjs/jump-design-system.cjs.js +3 -3
  10. package/dist/cjs/jump-design-system.cjs.js.map +1 -1
  11. package/dist/cjs/jump-icon.cjs.entry.js +5 -5
  12. package/dist/cjs/jump-icon.cjs.entry.js.map +1 -1
  13. package/dist/cjs/jump-pagination.cjs.entry.js +32 -10
  14. package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
  15. package/dist/cjs/jump-tab.cjs.entry.js +29 -0
  16. package/dist/cjs/jump-tab.cjs.entry.js.map +1 -0
  17. package/dist/cjs/loader.cjs.js +2 -2
  18. package/dist/collection/collection-manifest.json +5 -4
  19. package/dist/collection/components/jump-badge/jump-badge.css +1 -1
  20. package/dist/collection/components/jump-badge/jump-badge.js +4 -4
  21. package/dist/collection/components/jump-badge/jump-badge.js.map +1 -1
  22. package/dist/collection/components/jump-badge/test/jump-badge.spec.js +2 -2
  23. package/dist/collection/components/jump-badge/test/jump-badge.spec.js.map +1 -1
  24. package/dist/collection/components/jump-button/jump-button-anchor.stories.js +87 -0
  25. package/dist/collection/components/jump-button/jump-button-anchor.stories.js.map +1 -0
  26. package/dist/collection/components/jump-button/jump-button-dimension.stories.js +74 -0
  27. package/dist/collection/components/jump-button/jump-button-dimension.stories.js.map +1 -0
  28. package/dist/collection/components/jump-button/jump-button-filled.stories.js +14 -482
  29. package/dist/collection/components/jump-button/jump-button-filled.stories.js.map +1 -1
  30. package/dist/collection/components/jump-button/jump-button-only-icon.stories.js +109 -0
  31. package/dist/collection/components/jump-button/jump-button-only-icon.stories.js.map +1 -0
  32. package/dist/collection/components/jump-button/jump-button-outline.stories.js +20 -285
  33. package/dist/collection/components/jump-button/jump-button-outline.stories.js.map +1 -1
  34. package/dist/collection/components/jump-button/jump-button-text.stories.js +83 -0
  35. package/dist/collection/components/jump-button/jump-button-text.stories.js.map +1 -0
  36. package/dist/collection/components/jump-button/jump-button.css +103 -50
  37. package/dist/collection/components/jump-button/jump-button.js +41 -19
  38. package/dist/collection/components/jump-button/jump-button.js.map +1 -1
  39. package/dist/collection/components/jump-button/test/jump-button.spec.js +2 -2
  40. package/dist/collection/components/jump-button/test/jump-button.spec.js.map +1 -1
  41. package/dist/collection/components/jump-card/jump-card-border-radius.stories.js +2 -14
  42. package/dist/collection/components/jump-card/jump-card-border-radius.stories.js.map +1 -1
  43. package/dist/collection/components/jump-card/jump-card-top-border-content-radius.stories.js +1 -2
  44. package/dist/collection/components/jump-card/jump-card-top-border-content-radius.stories.js.map +1 -1
  45. package/dist/collection/components/jump-card/jump-card.css +50 -1
  46. package/dist/collection/components/jump-card/jump-card.js +13 -13
  47. package/dist/collection/components/jump-card/jump-card.js.map +1 -1
  48. package/dist/collection/components/{app-icon → jump-icon}/jump-icon.js +2 -2
  49. package/dist/collection/components/jump-icon/jump-icon.js.map +1 -0
  50. package/dist/collection/components/{app-icon → jump-icon}/jump-icon.stories.js +1 -1
  51. package/dist/collection/components/jump-icon/jump-icon.stories.js.map +1 -0
  52. package/dist/collection/components/jump-icon/test/jump-icon.e2e.js.map +1 -0
  53. package/dist/collection/components/{app-icon → jump-icon}/test/jump-icon.spec.js +2 -2
  54. package/dist/collection/components/jump-icon/test/jump-icon.spec.js.map +1 -0
  55. package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js +41 -24
  56. package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js.map +1 -1
  57. package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js +19 -40
  58. package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js.map +1 -1
  59. package/dist/collection/components/jump-pagination/jump-pagination.css +13 -0
  60. package/dist/collection/components/jump-pagination/jump-pagination.js +64 -31
  61. package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
  62. package/dist/collection/components/jump-tab/jump-tab-inline.stories.js +28 -0
  63. package/dist/collection/components/jump-tab/jump-tab-inline.stories.js.map +1 -0
  64. package/dist/collection/components/jump-tab/jump-tab.css +3 -0
  65. package/dist/collection/components/jump-tab/jump-tab.js +71 -0
  66. package/dist/collection/components/jump-tab/jump-tab.js.map +1 -0
  67. package/dist/collection/components/jump-tab/test/jump-tab.e2e.js +10 -0
  68. package/dist/collection/components/jump-tab/test/jump-tab.e2e.js.map +1 -0
  69. package/dist/collection/components/jump-tab/test/jump-tab.spec.js +18 -0
  70. package/dist/collection/components/jump-tab/test/jump-tab.spec.js.map +1 -0
  71. package/dist/collection/utils/utils.js +29 -3
  72. package/dist/collection/utils/utils.js.map +1 -1
  73. package/dist/components/jump-badge.js +7 -7
  74. package/dist/components/jump-badge.js.map +1 -1
  75. package/dist/components/jump-button.js +26 -20
  76. package/dist/components/jump-button.js.map +1 -1
  77. package/dist/components/jump-card.js +14 -14
  78. package/dist/components/jump-card.js.map +1 -1
  79. package/dist/components/jump-icon.js +2 -2
  80. package/dist/components/jump-icon2.js +4 -4
  81. package/dist/components/jump-icon2.js.map +1 -1
  82. package/dist/components/jump-pagination.js +38 -13
  83. package/dist/components/jump-pagination.js.map +1 -1
  84. package/dist/components/jump-tab.d.ts +11 -0
  85. package/dist/components/jump-tab.js +46 -0
  86. package/dist/components/jump-tab.js.map +1 -0
  87. package/dist/esm/{index-7feee8ea.js → index-192aeaf1.js} +181 -12
  88. package/dist/esm/index-192aeaf1.js.map +1 -0
  89. package/dist/esm/jump-badge.entry.js +6 -6
  90. package/dist/esm/jump-badge.entry.js.map +1 -1
  91. package/dist/esm/jump-button.entry.js +10 -6
  92. package/dist/esm/jump-button.entry.js.map +1 -1
  93. package/dist/esm/jump-card.entry.js +4 -4
  94. package/dist/esm/jump-card.entry.js.map +1 -1
  95. package/dist/esm/jump-design-system.js +4 -4
  96. package/dist/esm/jump-design-system.js.map +1 -1
  97. package/dist/esm/jump-icon.entry.js +5 -5
  98. package/dist/esm/jump-icon.entry.js.map +1 -1
  99. package/dist/esm/jump-pagination.entry.js +32 -10
  100. package/dist/esm/jump-pagination.entry.js.map +1 -1
  101. package/dist/esm/jump-tab.entry.js +25 -0
  102. package/dist/esm/jump-tab.entry.js.map +1 -0
  103. package/dist/esm/loader.js +3 -3
  104. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  105. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  106. package/dist/jump-design-system/p-20ceb40c.js +3 -0
  107. package/dist/jump-design-system/p-20ceb40c.js.map +1 -0
  108. package/dist/jump-design-system/{p-bc02e346.entry.js → p-511d4425.entry.js} +3 -3
  109. package/dist/jump-design-system/p-511d4425.entry.js.map +1 -0
  110. package/dist/jump-design-system/p-61729377.entry.js +2 -0
  111. package/dist/jump-design-system/p-61729377.entry.js.map +1 -0
  112. package/dist/jump-design-system/p-700b96b4.entry.js +2 -0
  113. package/dist/jump-design-system/p-700b96b4.entry.js.map +1 -0
  114. package/dist/jump-design-system/p-87256ed6.entry.js +2 -0
  115. package/dist/jump-design-system/p-87256ed6.entry.js.map +1 -0
  116. package/dist/jump-design-system/{p-99238e3f.entry.js → p-8f5caf32.entry.js} +2 -2
  117. package/dist/jump-design-system/p-8f5caf32.entry.js.map +1 -0
  118. package/dist/jump-design-system/p-9e47f451.entry.js +2 -0
  119. package/dist/jump-design-system/p-9e47f451.entry.js.map +1 -0
  120. package/dist/jump-design-system-elements.json +20 -7
  121. package/dist/types/components/jump-badge/jump-badge.d.ts +1 -1
  122. package/dist/types/components/jump-button/jump-button-anchor.stories.d.ts +44 -0
  123. package/dist/types/components/jump-button/jump-button-dimension.stories.d.ts +43 -0
  124. package/dist/types/components/jump-button/jump-button-filled.stories.d.ts +1 -120
  125. package/dist/types/components/jump-button/jump-button-only-icon.stories.d.ts +53 -0
  126. package/dist/types/components/jump-button/jump-button-outline.stories.d.ts +4 -112
  127. package/dist/types/components/jump-button/jump-button-text.stories.d.ts +40 -0
  128. package/dist/types/components/jump-button/jump-button.d.ts +7 -2
  129. package/dist/types/components/{app-icon → jump-icon}/jump-icon.d.ts +1 -1
  130. package/dist/types/components/jump-pagination/jump-pagination-pages.stories.d.ts +2 -1
  131. package/dist/types/components/jump-pagination/jump-pagination-products.stories.d.ts +2 -2
  132. package/dist/types/components/jump-pagination/jump-pagination.d.ts +10 -8
  133. package/dist/types/components/jump-tab/jump-tab-inline.stories.d.ts +18 -0
  134. package/dist/types/components/jump-tab/jump-tab.d.ts +6 -0
  135. package/dist/types/components.d.ts +47 -14
  136. package/dist/types/utils/utils.d.ts +2 -1
  137. package/package.json +3 -2
  138. package/dist/cjs/index-79e97f36.js.map +0 -1
  139. package/dist/collection/components/app-icon/jump-icon.js.map +0 -1
  140. package/dist/collection/components/app-icon/jump-icon.stories.js.map +0 -1
  141. package/dist/collection/components/app-icon/test/jump-icon.e2e.js.map +0 -1
  142. package/dist/collection/components/app-icon/test/jump-icon.spec.js.map +0 -1
  143. package/dist/collection/utils/utils.spec.js +0 -16
  144. package/dist/collection/utils/utils.spec.js.map +0 -1
  145. package/dist/esm/index-7feee8ea.js.map +0 -1
  146. package/dist/jump-design-system/p-7cfed9c6.entry.js +0 -2
  147. package/dist/jump-design-system/p-7cfed9c6.entry.js.map +0 -1
  148. package/dist/jump-design-system/p-99238e3f.entry.js.map +0 -1
  149. package/dist/jump-design-system/p-9fd6e0a0.entry.js +0 -2
  150. package/dist/jump-design-system/p-9fd6e0a0.entry.js.map +0 -1
  151. package/dist/jump-design-system/p-bc02e346.entry.js.map +0 -1
  152. package/dist/jump-design-system/p-c560071a.js +0 -3
  153. package/dist/jump-design-system/p-c560071a.js.map +0 -1
  154. package/dist/jump-design-system/p-ddb6c98c.entry.js +0 -2
  155. package/dist/jump-design-system/p-ddb6c98c.entry.js.map +0 -1
  156. /package/dist/collection/components/{app-icon → jump-icon}/jump-icon.css +0 -0
  157. /package/dist/collection/components/{app-icon → jump-icon}/test/jump-icon.e2e.js +0 -0
  158. /package/dist/types/components/{app-icon → jump-icon}/jump-icon.stories.d.ts +0 -0
@@ -1,5 +1,54 @@
1
- jump-button button,
2
- jump-button a {
1
+ :root {
2
+ /*BASE COLOR RULES*/
3
+ --neutral-grey-background: #eeeeee;
4
+ --neutral-grey-disabled: #cbcbcb;
5
+ --neutral-grey-primary: #282828;
6
+ --neutral-grey-secondary: #707070;
7
+ --neutral-white: #ffffff;
8
+ --primary-hard: #e75a50;
9
+ --primary-soft: #ffeae9;
10
+ --primary-standard: #fa7268;
11
+ --secondary-hard: #435171;
12
+ --secondary-soft: #dde3ed;
13
+ --secondary-standard: #5e79ba;
14
+ --status-danger-hard: #ba250a;
15
+ --status-danger-soft: #fdd3d1;
16
+ --status-danger-standard: #d72c0d;
17
+ --status-interaction-hard: #22559e;
18
+ --status-interaction-soft: #f2f7fe;
19
+ --status-interaction-standard: #2c6ecb;
20
+ --status-success-hard: #156048;
21
+ --status-success-soft: #f1f8f5;
22
+ --status-success-standard: #1d7f60;
23
+ --status-warning-hard: #987100;
24
+ --status-warning-soft: #fef5ea;
25
+ --status-warning-standard: #b98900;
26
+ /*TYPOGRAPHY RULES*/
27
+ --ff-primary: "Inter";
28
+ --ff-secondary: "Prompt";
29
+ --lh-300: 1.25rem;
30
+ --lh-400: 1.5rem;
31
+ --lh-500: 1.625rem;
32
+ --lh-600: 2rem;
33
+ --lh-700: 2.75rem;
34
+ --lh-800: 3.5rem;
35
+ --lh-850: 4.375rem;
36
+ --lh-900: 5.5rem;
37
+ --fs-300: 0.875rem;
38
+ --fs-400: 1rem;
39
+ --fs-500: 1.125rem;
40
+ --fs-600: 1.5rem;
41
+ --fs-700: 2.25rem;
42
+ --fs-800: 3rem;
43
+ --fs-850: 3.75rem;
44
+ --fs-900: 4.5rem;
45
+ --fw-300: 300;
46
+ --fw-400: 400;
47
+ --fw-900: 700;
48
+ }
49
+
50
+ :host button,
51
+ :host a {
3
52
  background-color: transparent;
4
53
  border: none;
5
54
  padding: 0;
@@ -9,9 +58,7 @@ jump-button a {
9
58
  cursor: pointer;
10
59
  }
11
60
 
12
- jump-button {
13
- display: inline-flex;
14
- align-items: center;
61
+ :host {
15
62
  --jump-button-color: #ffffff;
16
63
  --jump-button-color-disabled: #cbcbcb;
17
64
  --jump-button-background: var(--primary-standard);
@@ -21,8 +68,8 @@ jump-button {
21
68
  --jump-button-border-radius: var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem);
22
69
  --jump-button-padding: 1rem 1.25rem;
23
70
  }
24
- jump-button button,
25
- jump-button a {
71
+ :host button,
72
+ :host a {
26
73
  background-color: var(--jump-button-background);
27
74
  border-radius: var(--jump-button-border-radius);
28
75
  color: var(--jump-button-color);
@@ -37,109 +84,115 @@ jump-button a {
37
84
  text-decoration: none;
38
85
  padding: var(--jump-button-padding);
39
86
  }
40
- jump-button button:hover,
41
- jump-button a:hover {
87
+ :host button:hover,
88
+ :host a:hover {
42
89
  background-color: var(--jump-button-background-hover);
43
90
  color: var(--jump-button-color-hover);
44
91
  }
45
- jump-button button[data-variant=primary],
46
- jump-button a[data-variant=primary] {
92
+ :host button[data-variant=primary],
93
+ :host a[data-variant=primary] {
47
94
  --jump-button-color: var(--neutral-white);
48
95
  --jump-button-background: var(--primary-standard);
49
96
  --jump-button-color-hover: var(--neutral-white);
50
97
  --jump-button-background-hover: var(--primary-hard);
51
98
  }
52
- jump-button button[data-variant=secondary],
53
- jump-button a[data-variant=secondary] {
99
+ :host button[data-variant=secondary],
100
+ :host a[data-variant=secondary] {
54
101
  --jump-button-color: var(--neutral-white);
55
102
  --jump-button-background: var(--secondary-standard);
56
103
  --jump-button-color-hover: var(--neutral-white);
57
104
  --jump-button-background-hover: var(--secondary-hard);
58
105
  }
59
- jump-button button[data-variant=neutral],
60
- jump-button a[data-variant=neutral] {
106
+ :host button[data-variant=neutral],
107
+ :host a[data-variant=neutral] {
61
108
  --jump-button-color: var(--neutral-white);
62
109
  --jump-button-background: var(--neutral-grey-secondary);
63
110
  --jump-button-color-hover: var(--neutral-white);
64
111
  --jump-button-background-hover: var(--neutral-grey-primary);
65
112
  }
66
- jump-button button[data-variant=white],
67
- jump-button a[data-variant=white] {
113
+ :host button[data-variant=white],
114
+ :host a[data-variant=white] {
68
115
  --jump-button-color: var(--neutral-grey-primary);
69
116
  --jump-button-background: var(--neutral-white);
70
117
  --jump-button-color-hover: var(--neutral-grey-primary);
71
118
  --jump-button-background-hover: var(--neutral-grey-background);
72
119
  }
73
- jump-button button[disabled],
74
- jump-button a[disabled] {
120
+ :host button[disabled],
121
+ :host a[disabled] {
75
122
  --jump-button-background: var(--jump-button-color-disabled);
76
123
  --jump-button-background-hover: var(--jump-button-color-disabled);
77
124
  cursor: not-allowed;
78
125
  }
79
- jump-button button[data-pill],
80
- jump-button a[data-pill] {
126
+ :host button[data-pill],
127
+ :host a[data-pill] {
81
128
  border-radius: 100rem;
82
129
  }
83
- jump-button button[data-size=small],
84
- jump-button a[data-size=small] {
130
+ :host button[data-size=small],
131
+ :host a[data-size=small] {
85
132
  font-size: var(--fs-300, 0.875rem);
86
133
  line-height: var(--lh-300, 1.2);
87
- --jump-button-padding: 0.5rem 1rem;
134
+ --jump-button-padding: 0.65rem 1rem;
88
135
  }
89
- jump-button button[data-size=medium],
90
- jump-button a[data-size=medium] {
136
+ :host button[data-size=medium],
137
+ :host a[data-size=medium] {
91
138
  font-size: var(--fs-400, 1rem);
92
139
  line-height: var(--lh-400, 1.3);
140
+ --jump-button-padding: 0.75rem 1.25rem;
93
141
  }
94
- jump-button button[data-size=large],
95
- jump-button a[data-size=large] {
142
+ :host button[data-size=large],
143
+ :host a[data-size=large] {
96
144
  font-size: var(--fs-500, 1.125rem);
97
145
  line-height: var(--lh-500, 1.4);
98
- --jump-button-padding: 1.125rem 1.5rem;
146
+ --jump-button-padding: 1rem 1.5rem;
147
+ }
148
+ :host button[data-full],
149
+ :host a[data-full] {
150
+ width: 100%;
151
+ justify-content: center;
99
152
  }
100
- jump-button button[data-outline],
101
- jump-button a[data-outline] {
153
+ :host button[data-outline],
154
+ :host a[data-outline] {
102
155
  background-color: var(--jump-button-background-outline);
103
156
  border: 1px solid var(--jump-button-background);
104
157
  color: var(--jump-button-background);
105
158
  }
106
- jump-button button[data-outline]:hover,
107
- jump-button a[data-outline]:hover {
159
+ :host button[data-outline]:hover,
160
+ :host a[data-outline]:hover {
108
161
  background-color: var(--jump-button-background-hover);
109
162
  border: 1px solid var(--jump-button-background-hover);
110
163
  color: var(--jump-button-color-hover);
111
164
  }
112
- jump-button button[data-text],
113
- jump-button a[data-text] {
165
+ :host button[data-text],
166
+ :host a[data-text] {
114
167
  background-color: transparent;
115
168
  border: none;
116
169
  color: var(--jump-button-background);
117
170
  padding: 0;
118
171
  }
119
- jump-button button[data-text]:hover,
120
- jump-button a[data-text]:hover {
172
+ :host button[data-text]:hover,
173
+ :host a[data-text]:hover {
121
174
  background-color: transparent;
122
175
  border: none;
123
176
  color: var(--jump-button-background-hover);
124
177
  }
125
- jump-button button[data-only-icon],
126
- jump-button a[data-only-icon] {
127
- --jump-button-padding: 1.125rem;
178
+ :host button[data-only-icon],
179
+ :host a[data-only-icon] {
180
+ --jump-button-padding: 0.5rem;
128
181
  }
129
- jump-button button[data-only-icon][data-size=small],
130
- jump-button a[data-only-icon][data-size=small] {
182
+ :host button[data-only-icon][data-size=small],
183
+ :host a[data-only-icon][data-size=small] {
131
184
  --jump-button-padding: 0.5rem;
132
185
  }
133
- jump-button button[data-only-icon][data-size=medium],
134
- jump-button a[data-only-icon][data-size=medium] {
135
- --jump-button-padding: 1rem;
186
+ :host button[data-only-icon][data-size=medium],
187
+ :host a[data-only-icon][data-size=medium] {
188
+ --jump-button-padding: 0.875rem;
136
189
  }
137
- jump-button button[data-only-icon][data-size=large],
138
- jump-button a[data-only-icon][data-size=large] {
139
- --jump-button-padding: 1.125rem;
190
+ :host button[data-only-icon][data-size=large],
191
+ :host a[data-only-icon][data-size=large] {
192
+ --jump-button-padding: 1rem;
140
193
  }
141
- jump-button button.chat,
142
- jump-button a.chat {
194
+ :host button.chat,
195
+ :host a.chat {
143
196
  --jump-button-color: var(--neutral-white);
144
197
  --jump-button-background: hsla(133, 54%, 58%, 1);
145
198
  --jump-button-color-hover: var(--neutral-white);
@@ -1,10 +1,11 @@
1
1
  import { Host, h } from "@stencil/core";
2
- export class AppButton {
2
+ export class JumpButton {
3
3
  constructor() {
4
4
  this.disabled = false;
5
5
  this.variant = 'primary';
6
6
  this.outline = false;
7
7
  this.size = 'medium';
8
+ this.full = false;
8
9
  this.pill = false;
9
10
  this.text = false;
10
11
  this.onlyIcon = false;
@@ -17,10 +18,14 @@ export class AppButton {
17
18
  this.class = undefined;
18
19
  this.buttonId = undefined;
19
20
  }
21
+ componentWillLoad() {
22
+ this.target = this.href ? this.target : '_self';
23
+ }
20
24
  render() {
21
- 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" })))));
25
+ return (h(Host, { key: '2f1a96f504d7f273bfdf0b49d7a708aea570f59f' }, 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-full": this.full, "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-full": this.full, "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" })))));
22
26
  }
23
27
  static get is() { return "jump-button"; }
28
+ static get encapsulation() { return "shadow"; }
24
29
  static get originalStyleUrls() {
25
30
  return {
26
31
  "$": ["jump-button.scss"]
@@ -55,8 +60,8 @@ export class AppButton {
55
60
  "type": "string",
56
61
  "mutable": false,
57
62
  "complexType": {
58
- "original": "'primary'|'secondary'|'tertiary'|'neutral'",
59
- "resolved": "\"neutral\" | \"primary\" | \"secondary\" | \"tertiary\"",
63
+ "original": "'primary'|'secondary'|'white'|'neutral'",
64
+ "resolved": "\"neutral\" | \"primary\" | \"secondary\" | \"white\"",
60
65
  "references": {}
61
66
  },
62
67
  "required": false,
@@ -66,7 +71,7 @@ export class AppButton {
66
71
  "text": "Indicates the variant of the button"
67
72
  },
68
73
  "attribute": "variant",
69
- "reflect": true,
74
+ "reflect": false,
70
75
  "defaultValue": "'primary'"
71
76
  },
72
77
  "outline": {
@@ -84,7 +89,7 @@ export class AppButton {
84
89
  "text": "Indicates the button as outline"
85
90
  },
86
91
  "attribute": "outline",
87
- "reflect": true,
92
+ "reflect": false,
88
93
  "defaultValue": "false"
89
94
  },
90
95
  "size": {
@@ -102,9 +107,27 @@ export class AppButton {
102
107
  "text": "Indicates the size of the button"
103
108
  },
104
109
  "attribute": "size",
105
- "reflect": true,
110
+ "reflect": false,
106
111
  "defaultValue": "'medium'"
107
112
  },
113
+ "full": {
114
+ "type": "boolean",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "boolean",
118
+ "resolved": "boolean",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "Indicates if the button is full width"
126
+ },
127
+ "attribute": "full",
128
+ "reflect": false,
129
+ "defaultValue": "false"
130
+ },
108
131
  "pill": {
109
132
  "type": "boolean",
110
133
  "mutable": false,
@@ -120,7 +143,7 @@ export class AppButton {
120
143
  "text": "Indicates the button as pill"
121
144
  },
122
145
  "attribute": "pill",
123
- "reflect": true,
146
+ "reflect": false,
124
147
  "defaultValue": "false"
125
148
  },
126
149
  "text": {
@@ -138,7 +161,7 @@ export class AppButton {
138
161
  "text": "Indicates the button as text"
139
162
  },
140
163
  "attribute": "text",
141
- "reflect": true,
164
+ "reflect": false,
142
165
  "defaultValue": "false"
143
166
  },
144
167
  "onlyIcon": {
@@ -156,7 +179,7 @@ export class AppButton {
156
179
  "text": "Indicates the button as only icon"
157
180
  },
158
181
  "attribute": "only-icon",
159
- "reflect": true,
182
+ "reflect": false,
160
183
  "defaultValue": "false"
161
184
  },
162
185
  "href": {
@@ -174,8 +197,7 @@ export class AppButton {
174
197
  "text": "Indicates if button becames a anchor"
175
198
  },
176
199
  "attribute": "href",
177
- "reflect": true,
178
- "defaultValue": "undefined"
200
+ "reflect": false
179
201
  },
180
202
  "target": {
181
203
  "type": "string",
@@ -192,7 +214,7 @@ export class AppButton {
192
214
  "text": "Indicates the type of anchor's target"
193
215
  },
194
216
  "attribute": "target",
195
- "reflect": true
217
+ "reflect": false
196
218
  },
197
219
  "type": {
198
220
  "type": "string",
@@ -209,7 +231,7 @@ export class AppButton {
209
231
  "text": "Indicates type button"
210
232
  },
211
233
  "attribute": "type",
212
- "reflect": true,
234
+ "reflect": false,
213
235
  "defaultValue": "'button'"
214
236
  },
215
237
  "name": {
@@ -227,7 +249,7 @@ export class AppButton {
227
249
  "text": "Indicates the name that the sender button will send"
228
250
  },
229
251
  "attribute": "name",
230
- "reflect": true,
252
+ "reflect": false,
231
253
  "defaultValue": "undefined"
232
254
  },
233
255
  "value": {
@@ -245,7 +267,7 @@ export class AppButton {
245
267
  "text": "Indicates the value that the sender button will send"
246
268
  },
247
269
  "attribute": "value",
248
- "reflect": true,
270
+ "reflect": false,
249
271
  "defaultValue": "undefined"
250
272
  },
251
273
  "ariaLabel": {
@@ -263,7 +285,7 @@ export class AppButton {
263
285
  "text": "Indicates the value of text alternative to an element that has no visible text on the screen"
264
286
  },
265
287
  "attribute": "aria-label",
266
- "reflect": true,
288
+ "reflect": false,
267
289
  "defaultValue": "undefined"
268
290
  },
269
291
  "class": {
@@ -281,7 +303,7 @@ export class AppButton {
281
303
  "text": "Indicates classes of the component"
282
304
  },
283
305
  "attribute": "class",
284
- "reflect": true,
306
+ "reflect": false,
285
307
  "defaultValue": "undefined"
286
308
  },
287
309
  "buttonId": {
@@ -299,7 +321,7 @@ export class AppButton {
299
321
  "text": "Indicates classes of the component"
300
322
  },
301
323
  "attribute": "button-id",
302
- "reflect": true,
324
+ "reflect": false,
303
325
  "defaultValue": "undefined"
304
326
  }
305
327
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jump-button.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,SAAS;;wBAIQ,KAAK;uBAK4C,SAAS;uBAK5C,KAAK;oBAKT,QAAQ;oBAKP,KAAK;oBAKL,KAAK;wBAKD,KAAK;oBAKV,SAAS;;oBAUU,QAAQ;oBAK3B,SAAS;q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-button',\n styleUrl: 'jump-button.scss',\n shadow: false,\n})\nexport class AppButton {\n /**\n * Set the button as disabled; Vale solo per i bottoni\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates the variant of the button\n */\n @Prop({reflect: true}) variant: 'primary'|'secondary'|'tertiary'|'neutral' = 'primary';\n\n /**\n * Indicates the button as outline\n */\n @Prop({reflect: true}) outline: boolean = false;\n\n /**\n * Indicates the size of the button\n */\n @Prop({reflect: true}) size: string = 'medium';\n\n /**\n * Indicates the button as pill\n */\n @Prop({reflect: true}) pill: boolean = false;\n\n /**\n * Indicates the button as text\n */\n @Prop({reflect: true}) text: boolean = false;\n\n /**\n * Indicates the button as only icon\n **/\n @Prop({reflect: true}) onlyIcon: boolean = false;\n\n /**\n * Indicates if button becames a anchor\n **/\n @Prop({reflect: true}) href: string = undefined;\n\n /**\n * Indicates the type of anchor's target \n **/\n @Prop({reflect: true}) target: '_blank' | '_parent' | '_self' | '_top'\n\n /**\n * Indicates type button\n **/\n @Prop({reflect: true}) type: 'button'|'submit'|'reset' = 'button';\n\n /**\n * Indicates the name that the sender button will send\n **/\n @Prop({reflect: true}) name: string = undefined;\n\n /**\n * Indicates the value that the sender button will send\n **/\n @Prop({reflect: true}) value: string = undefined;\n\n /**\n * Indicates the value of text alternative to an element that has no visible text on the screen\n **/\n @Prop({reflect: true}) ariaLabel: string = undefined;\n\n /**\n * Indicates classes of the component\n **/\n @Prop({reflect: true}) class: string = undefined;\n\n /**\n * Indicates classes of the component\n **/\n @Prop({reflect: true}) buttonId: string = undefined;\n\n render() {\n return (\n <Host>\n {this.href ? (\n <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}>\n <slot name=\"prefix\"></slot>\n {!this.onlyIcon && <slot></slot>}\n <slot name=\"suffix\"></slot>\n </a>\n ) : ( \n <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}>\n <slot name=\"prefix\"></slot>\n {!this.onlyIcon && <slot></slot> }\n <slot name=\"suffix\"></slot>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}
1
+ {"version":3,"file":"jump-button.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,UAAU;;wBAIO,KAAK;uBAK0B,SAAS;uBAKzC,KAAK;oBAKT,QAAQ;oBAKP,KAAK;oBAKL,KAAK;oBAKL,KAAK;wBAKD,KAAK;;;oBAeS,QAAQ;oBAK3B,SAAS;qBAKR,SAAS;yBAKL,SAAS;qBAKb,SAAS;wBAKN,SAAS;;IAEpC,iBAAiB;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAClD,CAAC;IAED,MAAM;QAEJ,OAAO,CACL,EAAC,IAAI,uDACF,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-button',\n styleUrl: 'jump-button.scss',\n shadow: true,\n})\nexport class JumpButton {\n /**\n * Set the button as disabled; Vale solo per i bottoni\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates the variant of the button\n */\n @Prop() variant: 'primary'|'secondary'|'white'|'neutral' = 'primary';\n\n /**\n * Indicates the button as outline\n */\n @Prop() outline: boolean = false;\n\n /**\n * Indicates the size of the button\n */\n @Prop() size: string = 'medium';\n\n /**\n * Indicates if the button is full width\n */\n @Prop() full: boolean = false;\n\n /**\n * Indicates the button as pill\n */\n @Prop() pill: boolean = false;\n\n /**\n * Indicates the button as text\n */\n @Prop() text: boolean = false;\n\n /**\n * Indicates the button as only icon\n **/\n @Prop() onlyIcon: boolean = false;\n\n /**\n * Indicates if button becames a anchor\n **/\n @Prop() href: string;\n\n /**\n * Indicates the type of anchor's target \n **/\n @Prop() target: '_blank' | '_parent' | '_self' | '_top'\n\n /**\n * Indicates type button\n **/\n @Prop() type: 'button'|'submit'|'reset' = 'button';\n\n /**\n * Indicates the name that the sender button will send\n **/\n @Prop() name: string = undefined;\n\n /**\n * Indicates the value that the sender button will send\n **/\n @Prop() value: string = undefined;\n\n /**\n * Indicates the value of text alternative to an element that has no visible text on the screen\n **/\n @Prop() ariaLabel: string = undefined;\n\n /**\n * Indicates classes of the component\n **/\n @Prop() class: string = undefined;\n\n /**\n * Indicates classes of the component\n **/\n @Prop() buttonId: string = undefined;\n\n componentWillLoad() {\n this.target = this.href ? this.target : '_self';\n }\n\n render() {\n \n return (\n <Host>\n {this.href ? (\n <a href={this.href} id={this.buttonId} class={this.class} data-variant={this.variant} data-outline={this.outline} data-size={this.size} data-full={this.full} data-pill={this.pill} data-text={this.text} data-only-icon={this.onlyIcon} aria-label={this.ariaLabel} target={this.target}>\n <slot name=\"prefix\"></slot>\n {!this.onlyIcon && <slot></slot>}\n <slot name=\"suffix\"></slot>\n </a>\n ) : ( \n <button id={this.buttonId} class={this.class} data-variant={this.variant} data-outline={this.outline} data-size={this.size} data-full={this.full} 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}>\n <slot name=\"prefix\"></slot>\n {!this.onlyIcon && <slot></slot> }\n <slot name=\"suffix\"></slot>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { newSpecPage } from "@stencil/core/testing";
2
- import { AppButton } from "../jump-button";
2
+ import { JumpButton } from "../jump-button";
3
3
  describe('jump-button', () => {
4
4
  it('renders', async () => {
5
5
  const page = await newSpecPage({
6
- components: [AppButton],
6
+ components: [JumpButton],
7
7
  html: `<jump-button></jump-button>`,
8
8
  });
9
9
  expect(page.root).toEqualHtml(`
@@ -1 +1 @@
1
- {"version":3,"file":"jump-button.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-button/test/jump-button.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,SAAS,CAAC;YACvB,IAAI,EAAE,6BAA6B;SACpC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { AppButton } from '../jump-button';\n\ndescribe('jump-button', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [AppButton],\n html: `<jump-button></jump-button>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-button>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-button>\n `);\n });\n});\n"]}
1
+ {"version":3,"file":"jump-button.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-button/test/jump-button.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,6BAA6B;SACpC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { JumpButton } from '../jump-button';\n\ndescribe('jump-button', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [JumpButton],\n html: `<jump-button></jump-button>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-button>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-button>\n `);\n });\n});\n"]}
@@ -83,19 +83,7 @@ export default {
83
83
  };
84
84
  const Template = (args) => {
85
85
  var _a;
86
- return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}"
87
- ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''}
88
- ${args.imgSrc ? `img-src="${args.imgSrc}"` : ''}
89
- ${args.imgAlt ? `img-alt="${args.imgAlt}"` : ''}
90
- ${args.border == true ? 'border' : ''}
91
- ${args.horizontal == true ? 'horizontal' : ''}
92
- ${args.dark == true ? 'dark' : ''}
93
- ${args.borderRadius == true ? 'border-radius' : ''}
94
- ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''}
95
- ${args.boxed == true ? 'boxed' : ''}
96
- ${args.roundedMedia == true ? 'rounded-media' : ''}
97
- ${args.shadow == true ? 'shadow' : ''}
98
- >
86
+ return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}" ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''} ${args.imgSrc ? `img-src="${args.imgSrc}"` : ''} ${args.imgAlt ? `img-alt="${args.imgAlt}"` : ''} ${args.border == true ? 'border' : ''} ${args.horizontal == true ? 'horizontal' : ''} ${args.dark == true ? 'dark' : ''} ${args.borderRadius == true ? 'border-radius' : ''} ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} ${args.boxed == true ? 'boxed' : ''} ${args.roundedMedia == true ? 'rounded-media' : ''} ${args.shadow == true ? 'shadow' : ''}>
99
87
  <div class="ContentWrapper" slot="body">
100
88
  <h3 style="margin-top: 0">Titolo della card</h3>
101
89
  <p>Testo della card</p>
@@ -106,7 +94,7 @@ const Template = (args) => {
106
94
  };
107
95
  export const CardWithBorderRadius = Template.bind({});
108
96
  CardWithBorderRadius.args = {
109
- imgSrc: 'https://picsum.photos/300/200',
97
+ imgSrc: 'https://media.jumpgroup.it/taurus1908/uploads/2024/03/accessori-jpeg.webp',
110
98
  imgAlt: 'Immagine',
111
99
  borderRadius: true,
112
100
  shadow: true,
@@ -1 +1 @@
1
- {"version":3,"file":"jump-card-border-radius.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-border-radius.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,kCAAkC;IACzC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,E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AChD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;;eAQxB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC1B,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/BorderRadiusCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" \n ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithBorderRadius = Template.bind({});\nCardWithBorderRadius.args = {\n imgSrc: 'https://picsum.photos/300/200',\n imgAlt: 'Immagine',\n borderRadius: true,\n shadow: true,\n};"]}
1
+ {"version":3,"file":"jump-card-border-radius.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-border-radius.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,kCAAkC;IACzC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU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M,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;eAOhjB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC1B,MAAM,EAAE,2EAA2E;IACnF,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/BorderRadiusCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} ${args.border == true ? 'border' : ''} ${args.horizontal == true ? 'horizontal' : ''} ${args.dark == true ? 'dark' : ''} ${args.borderRadius == true ? 'border-radius' : ''} ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} ${args.boxed == true ? 'boxed' : ''} ${args.roundedMedia == true ? 'rounded-media' : ''} ${args.shadow == true ? 'shadow' : ''}> \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithBorderRadius = Template.bind({});\nCardWithBorderRadius.args = {\n imgSrc: 'https://media.jumpgroup.it/taurus1908/uploads/2024/03/accessori-jpeg.webp',\n imgAlt: 'Immagine',\n borderRadius: true,\n shadow: true,\n};"]}
@@ -83,8 +83,7 @@ export default {
83
83
  };
84
84
  const Template = (args) => {
85
85
  var _a;
86
- return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}"
87
- ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''}
86
+ return `<jump-card class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}" ${args.videoSrc ? `video-src="${args.videoSrc}"` : ''}
88
87
  ${args.imgSrc ? `img-src="${args.imgSrc}"` : ''}
89
88
  ${args.imgAlt ? `img-alt="${args.imgAlt}"` : ''}
90
89
  ${args.border == true ? 'border' : ''}
@@ -1 +1 @@
1
- {"version":3,"file":"jump-card-top-border-content-radius.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-top-border-content-radius.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,sCAAsC;IAC7C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,8EAA8E;YAC3F,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,mCAAmC;YACnC,cAAc;YACd,IAAI;SACL;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,yBAAyB;YACzB,cAAc;YACd,IAAI;SACL;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE,SAAS;SACnB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE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,CAAC,EAAE;IAC/B,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE;IACtE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;IACjC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;;eAQxB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC7B,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,UAAU;IAClB,sBAAsB,EAAE,IAAI;IAC5B,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/TopBorderContentCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" \n ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithTopBorderRadius = Template.bind({});\nCardWithTopBorderRadius.args = {\n imgSrc: 'https://picsum.photos/300/200',\n imgAlt: 'Immagine',\n topBorderContentRadius: true,\n border: true\n};\n"]}
1
+ {"version":3,"file":"jump-card-top-border-content-radius.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card/jump-card-top-border-content-radius.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,sCAAsC;IAC7C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,8EAA8E;YAC3F,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAC;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;SACpB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,mCAAmC;YACnC,cAAc;YACd,IAAI;SACL;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,yBAAyB;YACzB,cAAc;YACd,IAAI;SACL;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE,SAAS;SACnB;QACD,YAAY,EAAE;YACZ,IA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C,CAAC,CAAC,EAAE;IAC/B,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE;IACtE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;IACjC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAChD,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;;;;;;;eAQxB,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC7B,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,UAAU;IAClB,sBAAsB,EAAE,IAAI;IAC5B,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Card/TopBorderContentCard',\n tags: ['autodocs'],\n argTypes: {\n horizontal: {\n name: 'Direzione della card',\n description: 'Di default è verticale, se si imposta horizontal su true diventa Orizzontale',\n control: 'boolean',\n defaultValue: false\n },\n dark: {\n name: 'Card di colore scuro',\n description: 'Di default ha lo sfondo bianco, se si imposta dark su true diventa con sfondo grigio scuro',\n control: 'boolean',\n defaultValue: false\n },\n border:{\n name: 'Card con bordo',\n control: 'boolean',\n defaultValue: false\n },\n shadow:{\n name: 'Card con ombra',\n control: 'boolean',\n defaultValue: false\n },\n borderRadius: {\n name: 'Bordi arrotondati',\n description: 'Imposta i bordi della card arrotondati',\n control: 'boolean',\n // if:{\n // arg: 'topBorderContentRadius',\n // eq: false\n // }\n },\n topBorderContentRadius: {\n name: 'Border top Content',\n description: 'Border top del Content (esclusa la sezione media) arrotondato',\n control: 'boolean',\n // if:{\n // arg: 'borderRadius',\n // eq: false\n // }\n },\n boxed: {\n name: 'Boxed',\n description: 'Imposta un padding intorno al media',\n control: 'boolean',\n },\n roundedMedia: {\n name: 'Immagine o Video arrotondati',\n description: 'Imposta l\\'immagine o il video arrotondati e senza sfondo',\n control: 'boolean',\n },\n imgSrc: {\n name: 'Url del\\'immagine',\n description: 'Url dell\\'immagine da visualizzare, si attiva solo se non è presente videoSrc',\n control: 'text',\n if:{\n arg: 'videoSrc',\n exists: false\n }\n },\n imgAlt: {\n name: 'Alt dell\\'immagine',\n description: 'Alt dell\\'immagine da visualizzare, si attiva solo se è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: true\n }\n },\n videoSrc: {\n name: 'Url del video',\n description: 'Url del video da visualizzare, si attiva solo se non è presente imgSrc',\n control: 'text',\n if:{\n arg: 'imgSrc',\n exists: false\n }\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-card class=\"${args.class ?? ''}\" ${args.videoSrc ? `video-src=\"${args.videoSrc}\"` : ''} \n ${args.imgSrc ? `img-src=\"${args.imgSrc}\"` : ''} \n ${args.imgAlt ? `img-alt=\"${args.imgAlt}\"` : ''} \n ${args.border == true ? 'border' : ''} \n ${args.horizontal == true ? 'horizontal' : ''} \n ${args.dark == true ? 'dark' : ''} \n ${args.borderRadius == true ? 'border-radius' : ''} \n ${args.topBorderContentRadius == true ? 'top-border-content-radius' : ''} \n ${args.boxed == true ? 'boxed' : ''} \n ${args.roundedMedia == true ? 'rounded-media' : ''} \n ${args.shadow == true ? 'shadow' : ''} \n > \n <div class=\"ContentWrapper\" slot=\"body\">\n <h3 style=\"margin-top: 0\">Titolo della card</h3>\n <p>Testo della card</p>\n </div>\n <jump-button slot=\"footer\" id=\"#card\" class=\" \"variant=\"secondary\" size=\"medium\" href=\"#\" target=\"_self\" ariaLabel=\"sono un bottone\" text>\n Scopri di più<jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon></jump-button>\n </jump-card>`\n}\n\nexport const CardWithTopBorderRadius = Template.bind({});\nCardWithTopBorderRadius.args = {\n imgSrc: 'https://picsum.photos/300/200',\n imgAlt: 'Immagine',\n topBorderContentRadius: true,\n border: true\n};\n"]}