@jumpgroup/jump-design-system 0.2.7 → 0.3.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 (324) hide show
  1. package/dist/cjs/{index-41aaa52a.js → index-674508e2.js} +153 -4
  2. package/dist/cjs/index-674508e2.js.map +1 -0
  3. package/dist/cjs/jump-accordion.cjs.entry.js +22 -0
  4. package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -0
  5. package/dist/cjs/jump-badge.cjs.entry.js +6 -3
  6. package/dist/cjs/jump-badge.cjs.entry.js.map +1 -1
  7. package/dist/cjs/jump-button_2.cjs.entry.js +631 -0
  8. package/dist/cjs/jump-button_2.cjs.entry.js.map +1 -0
  9. package/dist/cjs/jump-card-ecommerce.cjs.entry.js +121 -0
  10. package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -0
  11. package/dist/cjs/jump-card.cjs.entry.js +4 -4
  12. package/dist/cjs/jump-card.cjs.entry.js.map +1 -1
  13. package/dist/cjs/jump-design-system.cjs.js +2 -2
  14. package/dist/cjs/jump-filter.cjs.entry.js +59 -0
  15. package/dist/cjs/jump-filter.cjs.entry.js.map +1 -0
  16. package/dist/cjs/jump-filtergroup.cjs.entry.js +119 -0
  17. package/dist/cjs/jump-filtergroup.cjs.entry.js.map +1 -0
  18. package/dist/cjs/jump-pagination-table.cjs.entry.js +24 -5
  19. package/dist/cjs/jump-pagination-table.cjs.entry.js.map +1 -1
  20. package/dist/cjs/jump-pagination.cjs.entry.js +19 -5
  21. package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
  22. package/dist/cjs/jump-quantity.cjs.entry.js +77 -0
  23. package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -0
  24. package/dist/cjs/jump-tab-item.cjs.entry.js +40 -0
  25. package/dist/cjs/jump-tab-item.cjs.entry.js.map +1 -0
  26. package/dist/cjs/jump-tab-panel.cjs.entry.js +24 -0
  27. package/dist/cjs/jump-tab-panel.cjs.entry.js.map +1 -0
  28. package/dist/cjs/jump-tab.cjs.entry.js +72 -9
  29. package/dist/cjs/jump-tab.cjs.entry.js.map +1 -1
  30. package/dist/cjs/loader.cjs.js +2 -2
  31. package/dist/collection/collection-manifest.json +8 -1
  32. package/dist/collection/components/jump-accordion/jump-accordion.css +3 -0
  33. package/dist/collection/components/jump-accordion/jump-accordion.js +19 -0
  34. package/dist/collection/components/jump-accordion/jump-accordion.js.map +1 -0
  35. package/dist/collection/components/jump-accordion/test/jump-accordion.e2e.js +10 -0
  36. package/dist/collection/components/jump-accordion/test/jump-accordion.e2e.js.map +1 -0
  37. package/dist/collection/components/jump-accordion/test/jump-accordion.spec.js +18 -0
  38. package/dist/collection/components/jump-accordion/test/jump-accordion.spec.js.map +1 -0
  39. package/dist/collection/components/jump-badge/jump-badge.css +90 -12
  40. package/dist/collection/components/jump-badge/jump-badge.js +61 -3
  41. package/dist/collection/components/jump-badge/jump-badge.js.map +1 -1
  42. package/dist/collection/components/jump-badge/jump-badge.stories.js +93 -8
  43. package/dist/collection/components/jump-badge/jump-badge.stories.js.map +1 -1
  44. package/dist/collection/components/jump-button/jump-button-anchor.stories.js +38 -29
  45. package/dist/collection/components/jump-button/jump-button-anchor.stories.js.map +1 -1
  46. package/dist/collection/components/jump-button/jump-button-dimension.stories.js +4 -9
  47. package/dist/collection/components/jump-button/jump-button-dimension.stories.js.map +1 -1
  48. package/dist/collection/components/jump-button/jump-button-filled.stories.js +15 -24
  49. package/dist/collection/components/jump-button/jump-button-filled.stories.js.map +1 -1
  50. package/dist/collection/components/jump-button/jump-button-only-icon.stories.js +43 -73
  51. package/dist/collection/components/jump-button/jump-button-only-icon.stories.js.map +1 -1
  52. package/dist/collection/components/jump-button/jump-button.css +2 -1
  53. package/dist/collection/components/jump-button/jump-button.js +1 -1
  54. package/dist/collection/components/jump-button/jump-button.stories.js +199 -0
  55. package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -0
  56. package/dist/collection/components/jump-card/jump-card.css +2 -2
  57. package/dist/collection/components/jump-card/jump-card.js +2 -2
  58. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +183 -0
  59. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +583 -0
  60. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js.map +1 -0
  61. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js +205 -0
  62. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js.map +1 -0
  63. package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.e2e.js +10 -0
  64. package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.e2e.js.map +1 -0
  65. package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.spec.js +18 -0
  66. package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.spec.js.map +1 -0
  67. package/dist/collection/components/jump-filter/jump-filter.css +8 -0
  68. package/dist/collection/components/jump-filter/jump-filter.js +212 -0
  69. package/dist/collection/components/jump-filter/jump-filter.js.map +1 -0
  70. package/dist/collection/components/jump-filter/jump-filter.stories.js +122 -0
  71. package/dist/collection/components/jump-filter/jump-filter.stories.js.map +1 -0
  72. package/dist/collection/components/jump-filtergroup/jump-filtergroup.css +17 -0
  73. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +328 -0
  74. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js.map +1 -0
  75. package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js +49 -0
  76. package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js.map +1 -0
  77. package/dist/collection/components/jump-icon/jump-icon-custom.stories.js +67 -0
  78. package/dist/collection/components/jump-icon/jump-icon-custom.stories.js.map +1 -0
  79. package/dist/collection/components/jump-icon/jump-icon-fa-brands.stories.js +73 -0
  80. package/dist/collection/components/jump-icon/jump-icon-fa-brands.stories.js.map +1 -0
  81. package/dist/collection/components/jump-icon/jump-icon-fa-duotone.stories.js +73 -0
  82. package/dist/collection/components/jump-icon/jump-icon-fa-duotone.stories.js.map +1 -0
  83. package/dist/collection/components/jump-icon/jump-icon-fa-light.stories.js +73 -0
  84. package/dist/collection/components/jump-icon/jump-icon-fa-light.stories.js.map +1 -0
  85. package/dist/collection/components/jump-icon/jump-icon-fa-regular.stories.js +73 -0
  86. package/dist/collection/components/jump-icon/jump-icon-fa-regular.stories.js.map +1 -0
  87. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-light.stories.js +73 -0
  88. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-light.stories.js.map +1 -0
  89. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-regular.stories.js +73 -0
  90. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-regular.stories.js.map +1 -0
  91. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-solid.stories.js +73 -0
  92. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-solid.stories.js.map +1 -0
  93. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-thin.stories.js +73 -0
  94. package/dist/collection/components/jump-icon/jump-icon-fa-sharp-thin.stories.js.map +1 -0
  95. package/dist/collection/components/jump-icon/jump-icon-fa-solid.stories.js +73 -0
  96. package/dist/collection/components/jump-icon/jump-icon-fa-solid.stories.js.map +1 -0
  97. package/dist/collection/components/jump-icon/jump-icon-fa-thin.stories.js +73 -0
  98. package/dist/collection/components/jump-icon/jump-icon-fa-thin.stories.js.map +1 -0
  99. package/dist/collection/components/jump-icon/jump-icon-lucide.stories.js +67 -0
  100. package/dist/collection/components/jump-icon/jump-icon-lucide.stories.js.map +1 -0
  101. package/dist/collection/components/jump-icon/jump-icon.css +61 -15
  102. package/dist/collection/components/jump-icon/jump-icon.js +132 -12
  103. package/dist/collection/components/jump-icon/jump-icon.js.map +1 -1
  104. package/dist/collection/components/jump-pagination/jump-pagination.css +1 -0
  105. package/dist/collection/components/jump-pagination/jump-pagination.js +21 -6
  106. package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
  107. package/dist/collection/components/jump-pagination/jump-pagination.stories.js +6 -4
  108. package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -1
  109. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +28 -9
  110. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js.map +1 -1
  111. package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js +25 -7
  112. package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js.map +1 -1
  113. package/dist/collection/components/jump-quantity/jump-quantity.css +52 -0
  114. package/dist/collection/components/jump-quantity/jump-quantity.js +245 -0
  115. package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -0
  116. package/dist/collection/components/jump-quantity/jump-quantity.stories.js +103 -0
  117. package/dist/collection/components/jump-quantity/jump-quantity.stories.js.map +1 -0
  118. package/dist/collection/components/jump-tab/jump-tab.css +9 -0
  119. package/dist/collection/components/jump-tab/jump-tab.js +107 -21
  120. package/dist/collection/components/jump-tab/jump-tab.js.map +1 -1
  121. package/dist/collection/components/jump-tab/jump-tab.stories.js +129 -0
  122. package/dist/collection/components/jump-tab/jump-tab.stories.js.map +1 -0
  123. package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js +54 -0
  124. package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js.map +1 -0
  125. package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js +54 -0
  126. package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js.map +1 -0
  127. package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js +41 -0
  128. package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js.map +1 -0
  129. package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js +42 -0
  130. package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js.map +1 -0
  131. package/dist/collection/components/jump-tab-item/jump-tab-item.css +109 -0
  132. package/dist/collection/components/jump-tab-item/jump-tab-item.js +173 -0
  133. package/dist/collection/components/jump-tab-item/jump-tab-item.js.map +1 -0
  134. package/dist/collection/components/jump-tab-item/test/jump-tab-item.e2e.js +10 -0
  135. package/dist/collection/components/jump-tab-item/test/jump-tab-item.e2e.js.map +1 -0
  136. package/dist/collection/components/jump-tab-item/test/jump-tab-item.spec.js +18 -0
  137. package/dist/collection/components/jump-tab-item/test/jump-tab-item.spec.js.map +1 -0
  138. package/dist/collection/components/jump-tab-panel/jump-tab-panel.css +11 -0
  139. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +63 -0
  140. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js.map +1 -0
  141. package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.e2e.js +10 -0
  142. package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.e2e.js.map +1 -0
  143. package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.spec.js +18 -0
  144. package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.spec.js.map +1 -0
  145. package/dist/collection/utils/utils.js +41 -8
  146. package/dist/collection/utils/utils.js.map +1 -1
  147. package/dist/components/jump-accordion.d.ts +11 -0
  148. package/dist/components/jump-accordion.js +36 -0
  149. package/dist/components/jump-accordion.js.map +1 -0
  150. package/dist/components/jump-badge.js +1 -33
  151. package/dist/components/jump-badge.js.map +1 -1
  152. package/dist/components/jump-badge2.js +44 -0
  153. package/dist/components/jump-badge2.js.map +1 -0
  154. package/dist/components/jump-button.js +1 -65
  155. package/dist/components/jump-button.js.map +1 -1
  156. package/dist/components/jump-button2.js +69 -0
  157. package/dist/components/jump-button2.js.map +1 -0
  158. package/dist/components/jump-card-ecommerce.d.ts +11 -0
  159. package/dist/components/jump-card-ecommerce.js +177 -0
  160. package/dist/components/jump-card-ecommerce.js.map +1 -0
  161. package/dist/components/jump-card.js +3 -3
  162. package/dist/components/jump-card.js.map +1 -1
  163. package/dist/components/jump-filter.d.ts +11 -0
  164. package/dist/components/jump-filter.js +96 -0
  165. package/dist/components/jump-filter.js.map +1 -0
  166. package/dist/components/jump-filtergroup.d.ts +11 -0
  167. package/dist/components/jump-filtergroup.js +161 -0
  168. package/dist/components/jump-filtergroup.js.map +1 -0
  169. package/dist/components/jump-icon2.js +556 -2375
  170. package/dist/components/jump-icon2.js.map +1 -1
  171. package/dist/components/jump-pagination-table.js +30 -5
  172. package/dist/components/jump-pagination-table.js.map +1 -1
  173. package/dist/components/jump-pagination.js +27 -6
  174. package/dist/components/jump-pagination.js.map +1 -1
  175. package/dist/components/jump-quantity.d.ts +11 -0
  176. package/dist/components/jump-quantity.js +109 -0
  177. package/dist/components/jump-quantity.js.map +1 -0
  178. package/dist/components/jump-tab-item.d.ts +11 -0
  179. package/dist/components/jump-tab-item.js +68 -0
  180. package/dist/components/jump-tab-item.js.map +1 -0
  181. package/dist/components/jump-tab-panel.d.ts +11 -0
  182. package/dist/components/jump-tab-panel.js +41 -0
  183. package/dist/components/jump-tab-panel.js.map +1 -0
  184. package/dist/components/jump-tab.js +75 -12
  185. package/dist/components/jump-tab.js.map +1 -1
  186. package/dist/esm/{index-192aeaf1.js → index-70f1949a.js} +153 -5
  187. package/dist/esm/index-70f1949a.js.map +1 -0
  188. package/dist/esm/jump-accordion.entry.js +18 -0
  189. package/dist/esm/jump-accordion.entry.js.map +1 -0
  190. package/dist/esm/jump-badge.entry.js +6 -3
  191. package/dist/esm/jump-badge.entry.js.map +1 -1
  192. package/dist/esm/jump-button_2.entry.js +626 -0
  193. package/dist/esm/jump-button_2.entry.js.map +1 -0
  194. package/dist/esm/jump-card-ecommerce.entry.js +117 -0
  195. package/dist/esm/jump-card-ecommerce.entry.js.map +1 -0
  196. package/dist/esm/jump-card.entry.js +4 -4
  197. package/dist/esm/jump-card.entry.js.map +1 -1
  198. package/dist/esm/jump-design-system.js +3 -3
  199. package/dist/esm/jump-filter.entry.js +55 -0
  200. package/dist/esm/jump-filter.entry.js.map +1 -0
  201. package/dist/esm/jump-filtergroup.entry.js +115 -0
  202. package/dist/esm/jump-filtergroup.entry.js.map +1 -0
  203. package/dist/esm/jump-pagination-table.entry.js +24 -5
  204. package/dist/esm/jump-pagination-table.entry.js.map +1 -1
  205. package/dist/esm/jump-pagination.entry.js +19 -5
  206. package/dist/esm/jump-pagination.entry.js.map +1 -1
  207. package/dist/esm/jump-quantity.entry.js +73 -0
  208. package/dist/esm/jump-quantity.entry.js.map +1 -0
  209. package/dist/esm/jump-tab-item.entry.js +36 -0
  210. package/dist/esm/jump-tab-item.entry.js.map +1 -0
  211. package/dist/esm/jump-tab-panel.entry.js +20 -0
  212. package/dist/esm/jump-tab-panel.entry.js.map +1 -0
  213. package/dist/esm/jump-tab.entry.js +72 -9
  214. package/dist/esm/jump-tab.entry.js.map +1 -1
  215. package/dist/esm/loader.js +3 -3
  216. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  217. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  218. package/dist/jump-design-system/p-2cb7d817.entry.js +2 -0
  219. package/dist/jump-design-system/p-2cb7d817.entry.js.map +1 -0
  220. package/dist/jump-design-system/p-34a46a10.entry.js +2 -0
  221. package/dist/jump-design-system/p-34a46a10.entry.js.map +1 -0
  222. package/dist/jump-design-system/p-377a769b.entry.js +2 -0
  223. package/dist/jump-design-system/p-377a769b.entry.js.map +1 -0
  224. package/dist/jump-design-system/p-493c7f4a.entry.js +2 -0
  225. package/dist/jump-design-system/p-493c7f4a.entry.js.map +1 -0
  226. package/dist/jump-design-system/p-4d6cc90d.js +3 -0
  227. package/dist/jump-design-system/p-4d6cc90d.js.map +1 -0
  228. package/dist/jump-design-system/p-56609b82.entry.js +2 -0
  229. package/dist/jump-design-system/p-56609b82.entry.js.map +1 -0
  230. package/dist/jump-design-system/p-5a6fbc53.entry.js +2 -0
  231. package/dist/jump-design-system/p-5a6fbc53.entry.js.map +1 -0
  232. package/dist/jump-design-system/p-5d713084.entry.js +2 -0
  233. package/dist/jump-design-system/p-5d713084.entry.js.map +1 -0
  234. package/dist/jump-design-system/p-7696c03d.entry.js +2 -0
  235. package/dist/jump-design-system/p-7696c03d.entry.js.map +1 -0
  236. package/dist/jump-design-system/p-8343b4f5.entry.js +2 -0
  237. package/dist/jump-design-system/p-8343b4f5.entry.js.map +1 -0
  238. package/dist/jump-design-system/p-a6fc23f7.entry.js +2 -0
  239. package/dist/jump-design-system/p-a6fc23f7.entry.js.map +1 -0
  240. package/dist/jump-design-system/p-c1665537.entry.js +2 -0
  241. package/dist/jump-design-system/p-c1665537.entry.js.map +1 -0
  242. package/dist/jump-design-system/p-c2bc6395.entry.js +66 -0
  243. package/dist/jump-design-system/p-c2bc6395.entry.js.map +1 -0
  244. package/dist/jump-design-system/p-fafe6478.entry.js +2 -0
  245. package/dist/jump-design-system/p-fafe6478.entry.js.map +1 -0
  246. package/dist/jump-design-system-elements.json +396 -9
  247. package/dist/types/components/jump-accordion/jump-accordion.d.ts +3 -0
  248. package/dist/types/components/jump-badge/jump-badge.d.ts +13 -1
  249. package/dist/types/components/jump-badge/jump-badge.stories.d.ts +22 -0
  250. package/dist/types/components/jump-button/jump-button-anchor.stories.d.ts +18 -4
  251. package/dist/types/components/jump-button/jump-button-dimension.stories.d.ts +0 -5
  252. package/dist/types/components/jump-button/jump-button-only-icon.stories.d.ts +4 -11
  253. package/dist/types/components/jump-button/jump-button.stories.d.ts +98 -0
  254. package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.d.ts +65 -0
  255. package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.stories.d.ts +117 -0
  256. package/dist/types/components/jump-filter/jump-filter.d.ts +22 -0
  257. package/dist/types/components/jump-filter/jump-filter.stories.d.ts +40 -0
  258. package/dist/types/components/jump-filtergroup/jump-filtergroup.d.ts +24 -0
  259. package/dist/types/components/jump-filtergroup/jump-filtergroup.stories.d.ts +43 -0
  260. package/dist/types/components/jump-icon/jump-icon-custom.stories.d.ts +40 -0
  261. package/dist/types/components/{jump-button/jump-button-outline.stories.d.ts → jump-icon/jump-icon-fa-brands.stories.d.ts} +19 -30
  262. package/dist/types/components/jump-icon/jump-icon-fa-duotone.stories.d.ts +45 -0
  263. package/dist/types/components/jump-icon/jump-icon-fa-light.stories.d.ts +45 -0
  264. package/dist/types/components/jump-icon/jump-icon-fa-regular.stories.d.ts +45 -0
  265. package/dist/types/components/jump-icon/jump-icon-fa-sharp-light.stories.d.ts +45 -0
  266. package/dist/types/components/jump-icon/jump-icon-fa-sharp-regular.stories.d.ts +45 -0
  267. package/dist/types/components/jump-icon/jump-icon-fa-sharp-solid.stories.d.ts +45 -0
  268. package/dist/types/components/jump-icon/jump-icon-fa-sharp-thin.stories.d.ts +45 -0
  269. package/dist/types/components/jump-icon/jump-icon-fa-solid.stories.d.ts +45 -0
  270. package/dist/types/components/jump-icon/jump-icon-fa-thin.stories.d.ts +45 -0
  271. package/dist/types/components/{jump-button/jump-button-text.stories.d.ts → jump-icon/jump-icon-lucide.stories.d.ts} +16 -16
  272. package/dist/types/components/jump-icon/jump-icon.d.ts +29 -4
  273. package/dist/types/components/jump-pagination/jump-pagination.d.ts +9 -0
  274. package/dist/types/components/jump-pagination-table/jump-pagination-table.d.ts +18 -2
  275. package/dist/types/components/jump-pagination-table/jump-pagination-table.stories.d.ts +5 -1
  276. package/dist/types/components/jump-quantity/jump-quantity.d.ts +24 -0
  277. package/dist/types/components/jump-quantity/jump-quantity.stories.d.ts +41 -0
  278. package/dist/types/components/jump-tab/jump-tab.d.ts +11 -3
  279. package/dist/types/components/jump-tab/jump-tab.stories.d.ts +27 -0
  280. package/dist/types/components/jump-tab-item/jump-tab-item-boxed.stories.d.ts +39 -0
  281. package/dist/types/components/jump-tab-item/jump-tab-item-inline.stories.d.ts +39 -0
  282. package/dist/types/components/jump-tab-item/jump-tab-item-rounded.stories.d.ts +28 -0
  283. package/dist/types/components/jump-tab-item/jump-tab-item-sheet.stories.d.ts +28 -0
  284. package/dist/types/components/jump-tab-item/jump-tab-item.d.ts +29 -0
  285. package/dist/types/components/jump-tab-panel/jump-tab-panel.d.ts +5 -0
  286. package/dist/types/components.d.ts +563 -8
  287. package/dist/types/utils/utils.d.ts +2 -0
  288. package/package.json +3 -2
  289. package/dist/cjs/index-41aaa52a.js.map +0 -1
  290. package/dist/cjs/jump-button.cjs.entry.js +0 -41
  291. package/dist/cjs/jump-button.cjs.entry.js.map +0 -1
  292. package/dist/cjs/jump-icon.cjs.entry.js +0 -2422
  293. package/dist/cjs/jump-icon.cjs.entry.js.map +0 -1
  294. package/dist/collection/components/jump-button/jump-button-outline.stories.js +0 -111
  295. package/dist/collection/components/jump-button/jump-button-outline.stories.js.map +0 -1
  296. package/dist/collection/components/jump-button/jump-button-text.stories.js +0 -83
  297. package/dist/collection/components/jump-button/jump-button-text.stories.js.map +0 -1
  298. package/dist/collection/components/jump-icon/jump-icon.stories.js +0 -35
  299. package/dist/collection/components/jump-icon/jump-icon.stories.js.map +0 -1
  300. package/dist/collection/components/jump-tab/jump-tab-inline.stories.js +0 -28
  301. package/dist/collection/components/jump-tab/jump-tab-inline.stories.js.map +0 -1
  302. package/dist/esm/index-192aeaf1.js.map +0 -1
  303. package/dist/esm/jump-button.entry.js +0 -37
  304. package/dist/esm/jump-button.entry.js.map +0 -1
  305. package/dist/esm/jump-icon.entry.js +0 -2418
  306. package/dist/esm/jump-icon.entry.js.map +0 -1
  307. package/dist/jump-design-system/p-02914b1e.entry.js +0 -2
  308. package/dist/jump-design-system/p-02914b1e.entry.js.map +0 -1
  309. package/dist/jump-design-system/p-1a533536.entry.js +0 -2
  310. package/dist/jump-design-system/p-1a533536.entry.js.map +0 -1
  311. package/dist/jump-design-system/p-20ceb40c.js +0 -3
  312. package/dist/jump-design-system/p-20ceb40c.js.map +0 -1
  313. package/dist/jump-design-system/p-93d8245f.entry.js +0 -2
  314. package/dist/jump-design-system/p-93d8245f.entry.js.map +0 -1
  315. package/dist/jump-design-system/p-e69ee35f.entry.js +0 -2
  316. package/dist/jump-design-system/p-e69ee35f.entry.js.map +0 -1
  317. package/dist/jump-design-system/p-eb16952a.entry.js +0 -2
  318. package/dist/jump-design-system/p-eb16952a.entry.js.map +0 -1
  319. package/dist/jump-design-system/p-ed65e359.entry.js +0 -2
  320. package/dist/jump-design-system/p-ed65e359.entry.js.map +0 -1
  321. package/dist/jump-design-system/p-fa148b53.entry.js +0 -331
  322. package/dist/jump-design-system/p-fa148b53.entry.js.map +0 -1
  323. package/dist/types/components/jump-icon/jump-icon.stories.d.ts +0 -21
  324. package/dist/types/components/jump-tab/jump-tab-inline.stories.d.ts +0 -18
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-674508e2.js');
6
+
7
+ const jumpTabPanelCss = ":host{display:block}.JumpTabPanel__Content{display:none;padding:1rem 0}.JumpTabPanel__Content.active{display:block}";
8
+ const JumpTabPanelStyle0 = jumpTabPanelCss;
9
+
10
+ const JumpTabPanel = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.identifier = undefined;
14
+ this.active = false;
15
+ }
16
+ render() {
17
+ return (index.h(index.Host, { key: '90108df0339c76ec7ffef78722400cbd5e5b125d', class: "JumpTabPanel", id: this.identifier }, index.h("div", { key: '4e127ffdeb05efdd63dc538cb38976252ff5a060', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, index.h("slot", { key: '5e54c0eaed6558e97226ffdc347e0ca8c0d9aa1b' }))));
18
+ }
19
+ };
20
+ JumpTabPanel.style = JumpTabPanelStyle0;
21
+
22
+ exports.jump_tab_panel = JumpTabPanel;
23
+
24
+ //# sourceMappingURL=jump-tab-panel.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"jump-tab-panel.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,qHAAqH,CAAC;AAC9I,2BAAe,eAAe;;MCMjB,YAAY;;;0BAEM,SAAS;sBACZ,KAAK;;IAE/B,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAC,cAAc,EAAC,EAAE,EAAE,IAAI,CAAC,UAAU,IAC5CD,kEAAK,KAAK,EAAE,wBAAwB,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,GAAG,EAAE,CAAC,IAClEA,oEAAa,CACT,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/jump-tab-panel/jump-tab-panel.scss?tag=jump-tab-panel&encapsulation=shadow","src/components/jump-tab-panel/jump-tab-panel.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n\n.JumpTabPanel {\n \n &__Content { \n display: none;\n padding: 1rem 0;\n\n &.active {\n display: block;\n }\n }\n}","import { Component, Prop, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'jump-tab-panel',\n styleUrl: 'jump-tab-panel.scss',\n shadow: true,\n})\nexport class JumpTabPanel {\n\n @Prop() identifier: string = undefined;\n @Prop() active: boolean = false;\n\n render() {\n return (\n <Host class=\"JumpTabPanel\" id={this.identifier}>\n <div class={\"JumpTabPanel__Content \" + (this.active ? 'active' : '')}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -2,24 +2,87 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-41aaa52a.js');
5
+ const index = require('./index-674508e2.js');
6
6
 
7
- const jumpTabCss = ":host{display:block}";
7
+ const jumpTabCss = ":host{display:block;--jump-tab-bg-color:var(--gray-ultralight, #f8f8f8)}:host .Wrapper{display:flex;width:fit-content}:host .Wrapper.rounded{border-radius:50px;background-color:#f8f8f8}";
8
8
  const JumpTabStyle0 = jumpTabCss;
9
9
 
10
10
  const JumpTab = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
- this.activeTab = undefined;
14
- this.tabNames = undefined;
13
+ this.setActiveTab = index.createEvent(this, "jump-change-activetab", 7);
14
+ this.tabGroupName = undefined;
15
+ this.variant = 'inline';
15
16
  }
16
- componentWillLoad() {
17
- console.log('Component is about to be rendered');
18
- console.log('active', this.activeTab);
19
- console.log('tabNames', this.tabNames);
17
+ changeActiveTabHandler(event) {
18
+ this.setActiveTab.emit(event.detail);
19
+ // Recupera il valore della variabile CSS
20
+ const rootStyles = getComputedStyle(document.documentElement);
21
+ const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();
22
+ let items = this.JumpTabEl.querySelectorAll('jump-tab-item');
23
+ if (items.length > 0) {
24
+ items.forEach((item) => {
25
+ if (item.getAttribute('identifier') === event.detail.id) {
26
+ item.setAttribute('active', '');
27
+ if (this.variant === 'sheet') {
28
+ // Aggiungi il bordo ai fratelli dell'elemento attivo tranne l'ultimo
29
+ items.forEach((sibling, index) => {
30
+ if (sibling !== item && index !== items.length - 1) {
31
+ sibling.style.borderRight = `1px solid ${primaryColor}`; // Usa i backticks
32
+ }
33
+ else {
34
+ sibling.style.borderRight = '1px solid transparent';
35
+ }
36
+ });
37
+ // Rimuovi il bordo dal fratello precedente
38
+ let previousSibling = item.previousElementSibling;
39
+ if (previousSibling) {
40
+ previousSibling.style.borderRight = '1px solid transparent';
41
+ }
42
+ }
43
+ }
44
+ else {
45
+ item.removeAttribute('active');
46
+ }
47
+ });
48
+ }
49
+ let panel = this.JumpTabEl.querySelectorAll('jump-tab-panel');
50
+ if (panel.length > 0) {
51
+ panel.forEach((panel) => {
52
+ if (panel.getAttribute('identifier') === event.detail.id) {
53
+ panel.setAttribute('active', '');
54
+ }
55
+ else {
56
+ panel.removeAttribute('active');
57
+ }
58
+ });
59
+ }
60
+ }
61
+ componentDidLoad() {
62
+ console.log('Component has been rendered');
63
+ if (this.variant === 'sheet') {
64
+ // Recupera il valore della variabile CSS
65
+ const rootStyles = getComputedStyle(document.documentElement);
66
+ const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();
67
+ // Seleziona tutti gli elementi jump-tab-item
68
+ let items = this.JumpTabEl.querySelectorAll('jump-tab-item');
69
+ if (items.length > 0) {
70
+ items.forEach((item, index) => {
71
+ // Aggiungi bordo destro a tutti tranne:
72
+ // - l'ultimo elemento
73
+ // - l'elemento attivo (avente classe "active")
74
+ if (index === items.length - 1 || item.classList.contains('active')) {
75
+ item.style.borderRight = '1px solid transparent';
76
+ }
77
+ else {
78
+ item.style.borderRight = `1px solid ${primaryColor}`;
79
+ }
80
+ });
81
+ }
82
+ }
20
83
  }
21
84
  render() {
22
- return (index.h(index.Host, { key: '6d974852fbbf04550ddd7eaad3dafbf784513c78', class: "JumpTab" }, (this.tabNames && this.activeTab) && this.tabNames.map((tabName) => (index.h("div", { class: `JumpTab__Tab ${this.activeTab === tabName ? 'active' : ''}` }, tabName)))));
85
+ return (index.h(index.Host, { key: '325ebf63677d7b1307ebb5be3d521d06efa22a5a', class: "JumpTab", id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, index.h("div", { key: 'afa4eb17c8582aa59f8f3b55237de34fa04871d5', class: "Wrapper " + this.variant }, index.h("slot", { key: '69023d9ae6ae85ef8270d7c8ea4c881c60889f63', name: "tab-item" })), index.h("div", { key: '28257b0f8de4c3ef1b7dd7adb58dc2d0ce342164' }, index.h("slot", { key: '3097cf4876730499e2067aed722ff822582e173f', name: "tab-content" }))));
23
86
  }
24
87
  };
25
88
  JumpTab.style = JumpTabStyle0;
@@ -1 +1 @@
1
- {"file":"jump-tab.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAC1C,sBAAe,UAAU;;MCMZ,OAAO;;;yBAGU,SAAS;wBACH,SAAS;;IAE3C,iBAAiB;QACf,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACjD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACvC;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAC,SAAS,IAClB,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,MAC9DD,iBAAK,KAAK,EAAE,gBAAgB,IAAI,CAAC,SAAS,KAAK,OAAO,GAAG,QAAQ,GAAG,EAAE,EAAE,IACrE,OAAO,CACJ,CACP,CAAC,CACG,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/jump-tab/jump-tab.scss?tag=jump-tab&encapsulation=shadow","src/components/jump-tab/jump-tab.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'jump-tab',\n styleUrl: 'jump-tab.scss',\n shadow: true,\n})\nexport class JumpTab {\n\n /* ---------------------- @PROPERTIES ------------------------- */\n @Prop() activeTab: string = undefined;\n @Prop() tabNames: Array<string> = undefined;\n\n componentWillLoad() {\n console.log('Component is about to be rendered');\n console.log('active',this.activeTab);\n console.log('tabNames',this.tabNames);\n }\n\n render() {\n return (\n <Host class=\"JumpTab\">\n {(this.tabNames && this.activeTab) && this.tabNames.map((tabName) => (\n <div class={`JumpTab__Tab ${this.activeTab === tabName ? 'active' : ''}`}>\n {tabName}\n </div>\n ))}\n </Host>\n );\n }\n\n}\n"],"version":3}
1
+ {"file":"jump-tab.entry.cjs.js","mappings":"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","names":["h","Host"],"sources":["src/components/jump-tab/jump-tab.scss?tag=jump-tab&encapsulation=shadow","src/components/jump-tab/jump-tab.tsx"],"sourcesContent":[":host {\n display: block;\n\n --jump-tab-bg-color: var(--gray-ultralight, #f8f8f8);\n \n .Wrapper {\n display: flex;\n width: fit-content;\n \n &.rounded {\n border-radius: 50px;\n background-color: #f8f8f8; // dovrà andarci var(--jump-tab-bg-color)\n }\n }\n}","import { Component, Host, Event, EventEmitter, Prop, h, Listen } from '@stencil/core';\n\n@Component({\n tag: 'jump-tab',\n styleUrl: 'jump-tab.scss',\n shadow: true,\n})\nexport class JumpTab {\n\n JumpTabEl: HTMLElement;\n /* ---------------------- @PROPERTIES ------------------------- */\n @Prop() tabGroupName: string = undefined;\n\n /**\n * The style of the tab. The same value must be passed to all the items.\n * Choosed from \"inline\", \"boxed\", \"sheet\", \"rounded\"\n */\n @Prop() variant: string = 'inline';\n\n @Event({ eventName: 'jump-change-activetab'}) setActiveTab: EventEmitter;\n\n @Listen('jump-change-active-tab')\n changeActiveTabHandler(event: CustomEvent) {\n this.setActiveTab.emit(event.detail);\n\n // Recupera il valore della variabile CSS\n const rootStyles = getComputedStyle(document.documentElement);\n const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();\n\n let items = this.JumpTabEl.querySelectorAll('jump-tab-item');\n if (items.length > 0) {\n items.forEach((item) => {\n if (item.getAttribute('identifier') === event.detail.id) {\n item.setAttribute('active', '');\n\n if (this.variant === 'sheet') {\n // Aggiungi il bordo ai fratelli dell'elemento attivo tranne l'ultimo\n items.forEach((sibling, index) => {\n if (sibling !== item && index !== items.length - 1) {\n sibling.style.borderRight = `1px solid ${primaryColor}`; // Usa i backticks\n } else {\n sibling.style.borderRight = '1px solid transparent';\n }\n });\n\n // Rimuovi il bordo dal fratello precedente\n let previousSibling = item.previousElementSibling as any;\n if (previousSibling) {\n previousSibling.style.borderRight = '1px solid transparent';\n }\n }\n\n } else {\n item.removeAttribute('active');\n }\n });\n }\n\n let panel = this.JumpTabEl.querySelectorAll('jump-tab-panel');\n if (panel.length > 0) {\n panel.forEach((panel) => {\n if (panel.getAttribute('identifier') === event.detail.id) {\n panel.setAttribute('active', '');\n } else {\n panel.removeAttribute('active');\n }\n });\n }\n }\n\n\n componentDidLoad() {\n console.log('Component has been rendered');\n if(this.variant === 'sheet') {\n // Recupera il valore della variabile CSS\n const rootStyles = getComputedStyle(document.documentElement);\n const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();\n\n // Seleziona tutti gli elementi jump-tab-item\n let items = this.JumpTabEl.querySelectorAll('jump-tab-item');\n if (items.length > 0) {\n items.forEach((item, index) => {\n // Aggiungi bordo destro a tutti tranne:\n // - l'ultimo elemento\n // - l'elemento attivo (avente classe \"active\")\n if (index === items.length - 1 || item.classList.contains('active')) {\n item.style.borderRight = '1px solid transparent';\n } else {\n item.style.borderRight = `1px solid ${primaryColor}`;\n }\n });\n }\n }\n\n }\n\n render() {\n return (\n <Host class=\"JumpTab\" id={this.tabGroupName} ref={(el) => {this.JumpTabEl = el;}}> \n <div class={\"Wrapper \" + this.variant}>\n <slot name=\"tab-item\"></slot>\n </div>\n <div>\n <slot name=\"tab-content\"></slot>\n </div>\n </Host>\n );\n }\n}"],"version":3}
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-41aaa52a.js');
5
+ const index = require('./index-674508e2.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
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-pagination.cjs",[[0,"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-badge.cjs",[[0,"jump-badge",{"label":[1],"variant":[1]}]]],["jump-button.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"]}]]],["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",{"activeTab":[1,"active-tab"],"tabNames":[16]}]]],["jump-icon.cjs",[[0,"jump-icon",{"name":[1],"class":[1],"size":[1]}]]]], 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],"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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "entries": [
3
+ "components/jump-accordion/jump-accordion.js",
3
4
  "components/jump-badge/jump-badge.js",
4
5
  "components/jump-button/jump-button.js",
5
6
  "components/jump-card/jump-card.js",
7
+ "components/jump-card-ecommerce/jump-card-ecommerce.js",
8
+ "components/jump-filter/jump-filter.js",
9
+ "components/jump-filtergroup/jump-filtergroup.js",
6
10
  "components/jump-icon/jump-icon.js",
7
11
  "components/jump-pagination/jump-pagination.js",
8
12
  "components/jump-pagination-table/jump-pagination-table.js",
9
- "components/jump-tab/jump-tab.js"
13
+ "components/jump-quantity/jump-quantity.js",
14
+ "components/jump-tab/jump-tab.js",
15
+ "components/jump-tab-item/jump-tab-item.js",
16
+ "components/jump-tab-panel/jump-tab-panel.js"
10
17
  ],
11
18
  "compiler": {
12
19
  "name": "@stencil/core",
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: block;
3
+ }
@@ -0,0 +1,19 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class JumpAccordion {
3
+ render() {
4
+ return (h(Host, { key: '08c6f14d1b4c9fcd99c62679bbc16b02b985644f' }, h("slot", { key: 'd86efa130f7c545957223bfe25bd016d52031095' })));
5
+ }
6
+ static get is() { return "jump-accordion"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["jump-accordion.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["jump-accordion.css"]
16
+ };
17
+ }
18
+ }
19
+ //# sourceMappingURL=jump-accordion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-accordion.js","sourceRoot":"","sources":["../../../src/components/jump-accordion/jump-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,aAAa;IAExB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'jump-accordion',\n styleUrl: 'jump-accordion.scss',\n shadow: true,\n})\nexport class JumpAccordion {\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('jump-accordion', () => {
3
+ it('renders', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent('<jump-accordion></jump-accordion>');
6
+ const element = await page.find('jump-accordion');
7
+ expect(element).toHaveClass('hydrated');
8
+ });
9
+ });
10
+ //# sourceMappingURL=jump-accordion.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-accordion.e2e.js","sourceRoot":"","sources":["../../../../src/components/jump-accordion/test/jump-accordion.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,mCAAmC,CAAC,CAAC;QAE3D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('jump-accordion', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<jump-accordion></jump-accordion>');\n\n const element = await page.find('jump-accordion');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,18 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { JumpAccordion } from "../jump-accordion";
3
+ describe('jump-accordion', () => {
4
+ it('renders', async () => {
5
+ const page = await newSpecPage({
6
+ components: [JumpAccordion],
7
+ html: `<jump-accordion></jump-accordion>`,
8
+ });
9
+ expect(page.root).toEqualHtml(`
10
+ <jump-accordion>
11
+ <mock:shadow-root>
12
+ <slot></slot>
13
+ </mock:shadow-root>
14
+ </jump-accordion>
15
+ `);
16
+ });
17
+ });
18
+ //# sourceMappingURL=jump-accordion.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-accordion.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-accordion/test/jump-accordion.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,mCAAmC;SAC1C,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 { JumpAccordion } from '../jump-accordion';\n\ndescribe('jump-accordion', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [JumpAccordion],\n html: `<jump-accordion></jump-accordion>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-accordion>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-accordion>\n `);\n });\n});\n"]}
@@ -1,26 +1,104 @@
1
- jump-badge {
1
+ :host {
2
2
  --jump-badge-background: var(--primary-standard);
3
- --jump-badge-color: #fff;
4
- --jump-bafge-border-radius: 50px;
5
- display: inline-flex;
3
+ --jump-badge-color: var(--neutral-white);
4
+ --jump-badge-border-radius: 50px;
5
+ --jump-badge-border: var(--primary-standard);
6
+ --jump-badge-padding: 4px 12px;
7
+ display: flex;
8
+ width: fit-content;
9
+ gap: 0.5rem;
6
10
  color: var(--jump-badge-color);
7
11
  background-color: var(--jump-badge-background);
8
12
  align-items: center;
9
13
  justify-content: center;
10
14
  font-family: var(--ff-primary, "Arial"), sans-serif;
11
- font-size: var(--fs-300);
15
+ font-size: var(--fs-500);
12
16
  font-weight: var(--fw-900);
13
- line-height: 1;
14
- border-radius: var(--jump-bafge-border-radius);
15
- border: solid 1px var(--jump-bafge-border-radius);
17
+ line-height: 1.2;
18
+ border-radius: var(--jump-badge-border-radius);
19
+ border: solid 1px var(--jump-badge-border);
16
20
  white-space: nowrap;
17
- padding: 0.35em 0.6em;
21
+ padding: var(--jump-badge-padding);
18
22
  user-select: none;
19
23
  cursor: inherit;
20
24
  }
21
- jump-badge[variant=primary] {
22
- --jump-badge-background: var(--primary-standard);
25
+
26
+ :host([variant=primary]):host([soft]) {
27
+ --jump-badge-background: var(--primary-soft);
28
+ --jump-badge-color: var(--primary-standard);
29
+ --jump-badge-border: var(--primary-soft);
23
30
  }
24
- jump-badge[variant=secondary] {
31
+
32
+ :host([variant=secondary]) {
25
33
  --jump-badge-background: var(--secondary-standard);
34
+ --jump-badge-border: var(--secondary-standard);
35
+ }
36
+ :host([variant=secondary]):host([soft]) {
37
+ --jump-badge-background: var(--secondary-soft);
38
+ --jump-badge-color: var(--secondary-standard);
39
+ --jump-badge-border: var(--secondary-soft);
40
+ }
41
+
42
+ :host([variant=neutral]) {
43
+ --jump-badge-background: var(--neutral-grey-secondary);
44
+ --jump-badge-border: var(--neutral-grey-secondary);
45
+ }
46
+ :host([variant=neutral]):host([soft]) {
47
+ --jump-badge-background: var(--neutral-grey-disabled);
48
+ --jump-badge-color: var(--neutral-grey-secondary);
49
+ --jump-badge-border: var(--neutral-grey-disabled);
50
+ }
51
+
52
+ :host([variant=danger]) {
53
+ --jump-badge-background: var(--status-danger-standard);
54
+ --jump-badge-border: var(--status-danger-standard);
55
+ }
56
+ :host([variant=danger]):host([soft]) {
57
+ --jump-badge-background: var(--status-danger-soft);
58
+ --jump-badge-color: var(--status-danger-standard);
59
+ --jump-badge-border: var(--status-danger-soft);
60
+ }
61
+
62
+ :host([variant=success]) {
63
+ --jump-badge-background: var(--status-success-standard);
64
+ --jump-badge-border: var(--status-success-standard);
65
+ }
66
+ :host([variant=success]):host([soft]) {
67
+ --jump-badge-background: var(--status-success-soft);
68
+ --jump-badge-color: var(--status-success-standard);
69
+ --jump-badge-border: var(--status-success-soft);
70
+ }
71
+
72
+ :host([variant=warning]) {
73
+ --jump-badge-background: var(--status-warning-standard);
74
+ --jump-badge-border: var(--status-warning-standard);
75
+ }
76
+ :host([variant=warning]):host([soft]) {
77
+ --jump-badge-background: var(--status-warning-soft);
78
+ --jump-badge-color: var(--status-warning-standard);
79
+ --jump-badge-border: var(--status-warning-soft);
80
+ }
81
+
82
+ :host([dimension=small]) {
83
+ font-size: var(--fs-300);
84
+ }
85
+
86
+ :host([dimension=dot]) {
87
+ font-size: var(--fs-300);
88
+ --jump-badge-padding: 0 5px;
89
+ --jump-badge-border-radius: 50%;
90
+ }
91
+
92
+ :host([dimension=microdot]) {
93
+ width: 0.5rem;
94
+ height: 0.5rem;
95
+ padding: 0;
96
+ --jump-badge-border-radius: 50%;
97
+ }
98
+
99
+ :host([outline]) {
100
+ background-color: var(--jump-badge-background-outline);
101
+ border: 1px solid var(--jump-badge-background);
102
+ color: var(--jump-badge-background);
103
+ background-color: transparent;
26
104
  }
@@ -3,11 +3,15 @@ export class AppBadge {
3
3
  constructor() {
4
4
  this.label = '';
5
5
  this.variant = 'primary';
6
+ this.dimension = 'large';
7
+ this.soft = false;
8
+ this.outline = false;
6
9
  }
7
10
  render() {
8
- return (h(Host, { key: '1a0a2b2bf95c1217ca9546b19c4ff6b25ca2a86a', variant: this.variant }, this.label));
11
+ return (h(Host, { key: 'c820f0fd33cdbcf6d4269a8346085f1efdf87aab' }, h("slot", { key: '704280d65559cbcb283aeead333ddb27636f905b', name: "prefix" }), this.label));
9
12
  }
10
13
  static get is() { return "jump-badge"; }
14
+ static get encapsulation() { return "shadow"; }
11
15
  static get originalStyleUrls() {
12
16
  return {
13
17
  "$": ["jump-badge.scss"]
@@ -42,8 +46,8 @@ export class AppBadge {
42
46
  "type": "string",
43
47
  "mutable": false,
44
48
  "complexType": {
45
- "original": "'primary'|'secondary'",
46
- "resolved": "\"primary\" | \"secondary\"",
49
+ "original": "'primary'|'secondary'|'neutral'|'warning'|'success'|'danger'",
50
+ "resolved": "\"danger\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
47
51
  "references": {}
48
52
  },
49
53
  "required": false,
@@ -55,6 +59,60 @@ export class AppBadge {
55
59
  "attribute": "variant",
56
60
  "reflect": false,
57
61
  "defaultValue": "'primary'"
62
+ },
63
+ "dimension": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "'large'|'small'|'dot'|'microdot'",
68
+ "resolved": "\"dot\" | \"large\" | \"microdot\" | \"small\"",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Indicates the variant of the badge"
76
+ },
77
+ "attribute": "dimension",
78
+ "reflect": false,
79
+ "defaultValue": "'large'"
80
+ },
81
+ "soft": {
82
+ "type": "boolean",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "boolean",
86
+ "resolved": "boolean",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Indicates the variant of the badge"
94
+ },
95
+ "attribute": "soft",
96
+ "reflect": false,
97
+ "defaultValue": "false"
98
+ },
99
+ "outline": {
100
+ "type": "boolean",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "boolean",
104
+ "resolved": "boolean",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "Indicates the variant of the badge"
112
+ },
113
+ "attribute": "outline",
114
+ "reflect": false,
115
+ "defaultValue": "false"
58
116
  }
59
117
  };
60
118
  }
@@ -1 +1 @@
1
- {"version":3,"file":"jump-badge.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,QAAQ;;qBAIK,EAAE;uBAKe,SAAS;;IAElD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,IACxB,IAAI,CAAC,KAAK,CACN,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["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 AppBadge {\n /**\n * Indicates the label of the badge\n */\n @Prop() label: string = '';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() variant: 'primary'|'secondary' = 'primary';\n\n render() {\n return (\n <Host variant={this.variant}>\n {this.label}\n </Host>\n );\n }\n\n}\n"]}
1
+ {"version":3,"file":"jump-badge.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,QAAQ;;qBAIK,EAAE;uBAKsD,SAAS;yBAKnC,OAAO;oBAKrC,KAAK;uBAKF,KAAK;;IAEhC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,6DAAM,IAAI,EAAC,QAAQ,GAAQ;YAC1B,IAAI,CAAC,KAAK,CACN,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-badge',\n styleUrl: 'jump-badge.scss',\n shadow: true,\n})\nexport class AppBadge {\n /**\n * Indicates the label of the badge\n */\n @Prop() label: string = '';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() variant: 'primary'|'secondary'|'neutral'|'warning'|'success'|'danger' = 'primary';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() dimension: 'large'|'small'|'dot'|'microdot' = 'large';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() soft: boolean = false;\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() outline: boolean = false;\n\n render() {\n return (\n <Host>\n <slot name=\"prefix\"></slot>\n {this.label}\n </Host>\n );\n }\n\n}\n"]}
@@ -1,26 +1,111 @@
1
+ import { generateAttributesFromArgs } from "../../utils/utils";
1
2
  export default {
2
- title: 'Components/Badge/Primary',
3
+ title: 'Components/Badge/Badge',
3
4
  tags: ['autodocs'],
4
5
  argTypes: {
5
6
  label: {
6
- name: 'Scritta dentro il badge',
7
+ name: 'label',
7
8
  description: 'inserire la scritta che sarà visualizzata nel badge',
8
9
  control: 'text',
9
10
  },
10
11
  variant: {
11
- name: 'Colore del badge',
12
+ name: 'variant',
12
13
  description: 'scegliere il colore dell badge',
13
- control: 'options',
14
- options: ['primary', 'secondary'],
14
+ control: 'select',
15
+ options: [
16
+ 'primary',
17
+ 'secondary',
18
+ 'neutral',
19
+ 'warning',
20
+ 'success',
21
+ 'danger',
22
+ ],
23
+ },
24
+ outline: {
25
+ name: 'outline',
26
+ description: 'scegliere se il badge deve essere pieno o solo il contorno',
27
+ control: 'boolean',
28
+ },
29
+ soft: {
30
+ name: 'soft',
31
+ description: 'scegliere se il badge deve avere i bordi arrotondati',
32
+ control: 'boolean',
33
+ },
34
+ dimension: {
35
+ name: 'dimension',
36
+ description: 'scegliere la dimensione del badge',
37
+ control: 'select',
38
+ options: [
39
+ 'large',
40
+ 'small',
41
+ 'dot',
42
+ 'microdot',
43
+ ],
15
44
  },
16
45
  }
17
46
  };
18
47
  const Template = (args) => {
19
- var _a;
20
- return `<jump-badge class="${(_a = args.class) !== null && _a !== void 0 ? _a : ''}">${args.label}</jump-badge>`;
48
+ const attributes = generateAttributesFromArgs(args);
49
+ return `<jump-badge ${attributes}>${args.label}</jump-badge>`;
50
+ };
51
+ const TemplateIcon = (args) => {
52
+ const attributes = generateAttributesFromArgs(args);
53
+ return `<jump-badge ${attributes}><jump-icon slot="prefix" name="circle-exclamation" category="regular"></jump-icon> ${args.label}</jump-badge>`;
21
54
  };
22
55
  export const Badge = Template.bind({});
23
56
  Badge.args = {
24
- label: 'badge'
57
+ label: 'badge',
58
+ variant: 'primary',
59
+ outline: false,
60
+ soft: false,
61
+ dimension: 'large'
62
+ };
63
+ export const IconBadge = TemplateIcon.bind({});
64
+ IconBadge.args = {
65
+ label: 'badge',
66
+ variant: 'secondary',
67
+ outline: false,
68
+ soft: false,
69
+ dimension: 'large'
70
+ };
71
+ export const Outline = Template.bind({});
72
+ Outline.args = {
73
+ label: 'badge',
74
+ variant: 'secondary',
75
+ outline: true,
76
+ soft: false,
77
+ dimension: 'large'
78
+ };
79
+ export const Soft = Template.bind({});
80
+ Soft.args = {
81
+ label: 'badge',
82
+ variant: 'neutral',
83
+ outline: false,
84
+ soft: true,
85
+ dimension: 'large'
86
+ };
87
+ export const Small = Template.bind({});
88
+ Small.args = {
89
+ label: 'badge',
90
+ variant: 'warning',
91
+ outline: false,
92
+ soft: true,
93
+ dimension: 'small'
94
+ };
95
+ export const Dot = Template.bind({});
96
+ Dot.args = {
97
+ label: '1',
98
+ variant: 'success',
99
+ outline: false,
100
+ soft: true,
101
+ dimension: 'dot'
102
+ };
103
+ export const MicroDot = Template.bind({});
104
+ MicroDot.args = {
105
+ label: '',
106
+ variant: 'danger',
107
+ outline: false,
108
+ soft: false,
109
+ dimension: 'microdot'
25
110
  };
26
111
  //# sourceMappingURL=jump-badge.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jump-badge.stories.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,MAAM;SAChB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;SAClC;KACF;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;;IACxB,OAAO,sBAAsB,MAAA,IAAI,CAAC,KAAK,mCAAI,EAAE,KAAK,IAAI,CAAC,KAAK,eAAe,CAAA;AAC7E,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACX,KAAK,EAAE,OAAO;CACf,CAAC","sourcesContent":["export default {\n title: 'Components/Badge/Primary',\n tags: ['autodocs'],\n argTypes: {\n label: {\n name: 'Scritta dentro il badge',\n description: 'inserire la scritta che sarà visualizzata nel badge',\n control: 'text',\n },\n variant: {\n name: 'Colore del badge',\n description: 'scegliere il colore dell badge',\n control: 'options',\n options: ['primary', 'secondary'],\n },\n }\n};\n\nconst Template = (args) => {\n return `<jump-badge class=\"${args.class ?? ''}\">${args.label}</jump-badge>`\n}\n\nexport const Badge = Template.bind({});\nBadge.args = {\n label: 'badge'\n};\n"]}
1
+ {"version":3,"file":"jump-badge.stories.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Badge/Badge',\n tags: ['autodocs'],\n argTypes: {\n label: {\n name: 'label',\n description: 'inserire la scritta che sarà visualizzata nel badge',\n control: 'text',\n },\n variant: {\n name: 'variant',\n description: 'scegliere il colore dell badge',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'warning',\n 'success',\n 'danger',\n ],\n },\n outline: {\n name: 'outline',\n description: 'scegliere se il badge deve essere pieno o solo il contorno',\n control: 'boolean',\n },\n soft: {\n name: 'soft',\n description: 'scegliere se il badge deve avere i bordi arrotondati',\n control: 'boolean',\n },\n dimension: {\n name: 'dimension',\n description: 'scegliere la dimensione del badge',\n control: 'select',\n options: [\n 'large',\n 'small',\n 'dot',\n 'microdot',\n ],\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-badge ${attributes}>${args.label}</jump-badge>`\n}\n\nconst TemplateIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-badge ${attributes}><jump-icon slot=\"prefix\" name=\"circle-exclamation\" category=\"regular\"></jump-icon> ${args.label}</jump-badge>`\n}\n\nexport const Badge = Template.bind({});\nBadge.args = {\n label: 'badge',\n variant: 'primary',\n outline: false,\n soft: false,\n dimension: 'large'\n};\n\nexport const IconBadge = TemplateIcon.bind({});\nIconBadge.args = {\n label: 'badge',\n variant: 'secondary',\n outline: false,\n soft: false,\n dimension: 'large'\n};\n\nexport const Outline = Template.bind({});\nOutline.args = {\n label: 'badge',\n variant: 'secondary',\n outline: true,\n soft: false,\n dimension: 'large'\n};\n\nexport const Soft = Template.bind({});\nSoft.args = {\n label: 'badge',\n variant: 'neutral',\n outline: false,\n soft: true,\n dimension: 'large'\n};\n\nexport const Small = Template.bind({});\nSmall.args = {\n label: 'badge',\n variant: 'warning',\n outline: false,\n soft: true,\n dimension: 'small'\n};\n\nexport const Dot = Template.bind({});\nDot.args = {\n label: '1',\n variant: 'success',\n outline: false,\n soft: true,\n dimension: 'dot'\n};\n\nexport const MicroDot = Template.bind({});\nMicroDot.args = {\n label: '',\n variant: 'danger',\n outline: false,\n soft: false,\n dimension: 'microdot'\n};\n"]}