@jumpgroup/jump-design-system 0.2.3 → 0.2.5

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 (149) hide show
  1. package/dist/cjs/{index-12f40d28.js → index-41aaa52a.js} +125 -5
  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 +4 -3
  6. package/dist/cjs/jump-button.cjs.entry.js.map +1 -1
  7. package/dist/cjs/jump-card.cjs.entry.js +3 -3
  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 +14 -181
  25. package/dist/collection/components/jump-button/jump-button-anchor.stories.js.map +1 -1
  26. package/dist/collection/components/jump-button/jump-button-dimension.stories.js +10 -172
  27. package/dist/collection/components/jump-button/jump-button-dimension.stories.js.map +1 -1
  28. package/dist/collection/components/jump-button/jump-button-filled.stories.js +13 -227
  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 +12 -245
  31. package/dist/collection/components/jump-button/jump-button-only-icon.stories.js.map +1 -1
  32. package/dist/collection/components/jump-button/jump-button-outline.stories.js +18 -214
  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 +10 -216
  35. package/dist/collection/components/jump-button/jump-button-text.stories.js.map +1 -1
  36. package/dist/collection/components/jump-button/jump-button.css +17 -7
  37. package/dist/collection/components/jump-button/jump-button.js +22 -3
  38. package/dist/collection/components/jump-button/jump-button.js.map +1 -1
  39. package/dist/collection/components/jump-card/jump-card.js +13 -13
  40. package/dist/collection/components/jump-card/jump-card.js.map +1 -1
  41. package/dist/collection/components/{app-icon → jump-icon}/jump-icon.js +2 -2
  42. package/dist/collection/components/jump-icon/jump-icon.js.map +1 -0
  43. package/dist/collection/components/{app-icon → jump-icon}/jump-icon.stories.js +1 -1
  44. package/dist/collection/components/jump-icon/jump-icon.stories.js.map +1 -0
  45. package/dist/collection/components/jump-icon/test/jump-icon.e2e.js.map +1 -0
  46. package/dist/collection/components/{app-icon → jump-icon}/test/jump-icon.spec.js +2 -2
  47. package/dist/collection/components/jump-icon/test/jump-icon.spec.js.map +1 -0
  48. package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js +41 -24
  49. package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js.map +1 -1
  50. package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js +19 -40
  51. package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js.map +1 -1
  52. package/dist/collection/components/jump-pagination/jump-pagination.css +13 -0
  53. package/dist/collection/components/jump-pagination/jump-pagination.js +64 -31
  54. package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
  55. package/dist/collection/components/jump-tab/jump-tab-inline.stories.js +28 -0
  56. package/dist/collection/components/jump-tab/jump-tab-inline.stories.js.map +1 -0
  57. package/dist/collection/components/jump-tab/jump-tab.css +3 -0
  58. package/dist/collection/components/jump-tab/jump-tab.js +71 -0
  59. package/dist/collection/components/jump-tab/jump-tab.js.map +1 -0
  60. package/dist/collection/components/jump-tab/test/jump-tab.e2e.js +10 -0
  61. package/dist/collection/components/jump-tab/test/jump-tab.e2e.js.map +1 -0
  62. package/dist/collection/components/jump-tab/test/jump-tab.spec.js +18 -0
  63. package/dist/collection/components/jump-tab/test/jump-tab.spec.js.map +1 -0
  64. package/dist/collection/utils/utils.js +17 -4
  65. package/dist/collection/utils/utils.js.map +1 -1
  66. package/dist/components/jump-badge.js +7 -7
  67. package/dist/components/jump-badge.js.map +1 -1
  68. package/dist/components/jump-button.js +4 -2
  69. package/dist/components/jump-button.js.map +1 -1
  70. package/dist/components/jump-card.js +13 -13
  71. package/dist/components/jump-card.js.map +1 -1
  72. package/dist/components/jump-icon.js +2 -2
  73. package/dist/components/jump-icon2.js +4 -4
  74. package/dist/components/jump-icon2.js.map +1 -1
  75. package/dist/components/jump-pagination.js +38 -13
  76. package/dist/components/jump-pagination.js.map +1 -1
  77. package/dist/components/jump-tab.d.ts +11 -0
  78. package/dist/components/jump-tab.js +46 -0
  79. package/dist/components/jump-tab.js.map +1 -0
  80. package/dist/esm/{index-d09b8a38.js → index-192aeaf1.js} +125 -6
  81. package/dist/esm/index-192aeaf1.js.map +1 -0
  82. package/dist/esm/jump-badge.entry.js +6 -6
  83. package/dist/esm/jump-badge.entry.js.map +1 -1
  84. package/dist/esm/jump-button.entry.js +4 -3
  85. package/dist/esm/jump-button.entry.js.map +1 -1
  86. package/dist/esm/jump-card.entry.js +3 -3
  87. package/dist/esm/jump-card.entry.js.map +1 -1
  88. package/dist/esm/jump-design-system.js +4 -4
  89. package/dist/esm/jump-design-system.js.map +1 -1
  90. package/dist/esm/jump-icon.entry.js +5 -5
  91. package/dist/esm/jump-icon.entry.js.map +1 -1
  92. package/dist/esm/jump-pagination.entry.js +32 -10
  93. package/dist/esm/jump-pagination.entry.js.map +1 -1
  94. package/dist/esm/jump-tab.entry.js +25 -0
  95. package/dist/esm/jump-tab.entry.js.map +1 -0
  96. package/dist/esm/loader.js +3 -3
  97. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  98. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  99. package/dist/jump-design-system/p-20ceb40c.js +3 -0
  100. package/dist/jump-design-system/p-20ceb40c.js.map +1 -0
  101. package/dist/jump-design-system/{p-b2967e30.entry.js → p-511d4425.entry.js} +3 -3
  102. package/dist/jump-design-system/p-511d4425.entry.js.map +1 -0
  103. package/dist/jump-design-system/p-61729377.entry.js +2 -0
  104. package/dist/jump-design-system/p-61729377.entry.js.map +1 -0
  105. package/dist/jump-design-system/{p-fea57bd7.entry.js → p-700b96b4.entry.js} +2 -2
  106. package/dist/jump-design-system/{p-fea57bd7.entry.js.map → p-700b96b4.entry.js.map} +1 -1
  107. package/dist/jump-design-system/p-87256ed6.entry.js +2 -0
  108. package/dist/jump-design-system/p-87256ed6.entry.js.map +1 -0
  109. package/dist/jump-design-system/{p-81fba573.entry.js → p-8f5caf32.entry.js} +2 -2
  110. package/dist/jump-design-system/p-8f5caf32.entry.js.map +1 -0
  111. package/dist/jump-design-system/p-960188c6.entry.js +2 -0
  112. package/dist/jump-design-system/p-960188c6.entry.js.map +1 -0
  113. package/dist/jump-design-system-elements.json +20 -7
  114. package/dist/types/components/jump-badge/jump-badge.d.ts +1 -1
  115. package/dist/types/components/jump-button/jump-button-anchor.stories.d.ts +0 -116
  116. package/dist/types/components/jump-button/jump-button-dimension.stories.d.ts +2 -117
  117. package/dist/types/components/jump-button/jump-button-filled.stories.d.ts +1 -107
  118. package/dist/types/components/jump-button/jump-button-only-icon.stories.d.ts +4 -115
  119. package/dist/types/components/jump-button/jump-button-outline.stories.d.ts +4 -110
  120. package/dist/types/components/jump-button/jump-button-text.stories.d.ts +2 -123
  121. package/dist/types/components/jump-button/jump-button.d.ts +5 -1
  122. package/dist/types/components/{app-icon → jump-icon}/jump-icon.d.ts +1 -1
  123. package/dist/types/components/jump-pagination/jump-pagination-pages.stories.d.ts +2 -1
  124. package/dist/types/components/jump-pagination/jump-pagination-products.stories.d.ts +2 -2
  125. package/dist/types/components/jump-pagination/jump-pagination.d.ts +10 -8
  126. package/dist/types/components/jump-tab/jump-tab-inline.stories.d.ts +18 -0
  127. package/dist/types/components/jump-tab/jump-tab.d.ts +6 -0
  128. package/dist/types/components.d.ts +47 -14
  129. package/dist/types/utils/utils.d.ts +1 -1
  130. package/package.json +3 -2
  131. package/dist/cjs/index-12f40d28.js.map +0 -1
  132. package/dist/collection/components/app-icon/jump-icon.js.map +0 -1
  133. package/dist/collection/components/app-icon/jump-icon.stories.js.map +0 -1
  134. package/dist/collection/components/app-icon/test/jump-icon.e2e.js.map +0 -1
  135. package/dist/collection/components/app-icon/test/jump-icon.spec.js.map +0 -1
  136. package/dist/collection/utils/utils.spec.js +0 -16
  137. package/dist/collection/utils/utils.spec.js.map +0 -1
  138. package/dist/esm/index-d09b8a38.js.map +0 -1
  139. package/dist/jump-design-system/p-062fa189.entry.js +0 -2
  140. package/dist/jump-design-system/p-062fa189.entry.js.map +0 -1
  141. package/dist/jump-design-system/p-407027a9.js +0 -3
  142. package/dist/jump-design-system/p-407027a9.js.map +0 -1
  143. package/dist/jump-design-system/p-81fba573.entry.js.map +0 -1
  144. package/dist/jump-design-system/p-b2967e30.entry.js.map +0 -1
  145. package/dist/jump-design-system/p-e0c9453d.entry.js +0 -2
  146. package/dist/jump-design-system/p-e0c9453d.entry.js.map +0 -1
  147. /package/dist/collection/components/{app-icon → jump-icon}/jump-icon.css +0 -0
  148. /package/dist/collection/components/{app-icon → jump-icon}/test/jump-icon.e2e.js +0 -0
  149. /package/dist/types/components/{app-icon → jump-icon}/jump-icon.stories.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"jump-button-outline.stories.js","sourceRoot":"","sources":["../../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AS;IAClB,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,KAAK;IACX,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvC,YAAY,EAAE,MAAM;IACpB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,iBAAiB;CAC7B,CAAC","sourcesContent":["import feather from 'feather-icons';\nimport { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Outline',\n tags: ['autodocs'],\n argTypes: {\n label: {\n name: 'Etichetta',\n description: 'Imposta il testo del bottone',\n control: 'text'\n },\n variant: {\n name: 'Variante',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n outline : {\n name: 'Outline',\n description: 'Imposta se il bottone deve avere il solo bordo',\n control: 'boolean'\n },\n size: {\n name: 'Dimensione',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large'\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande'\n }\n },\n pill: {\n name: 'Bordo a Pillola',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n disabled: {\n name: 'Disabilitato',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n text: {\n name: 'Testo',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n showIcon: {\n name: 'Mostra Icona',\n description: 'Imposta se il bottone deve mostrare un\\'icona',\n control: 'boolean'\n },\n iconOnly: {\n name: 'Mostra solo Icona',\n description: 'Imposta se il bottone deve mostrare solo l\\'icona',\n control: 'boolean',\n if: {\n arg: 'showIcon',\n eq: true\n },\n },\n iconName: {\n name: 'Nome Icona',\n control: 'select',\n options: Object.keys(feather.icons),\n description: 'Seleziona il nome dell\\'icona dal menu a tendina',\n defaultValue: Object.keys(feather.icons)[0],\n if: {\n arg: 'showIcon',\n eq: true\n },\n },\n iconPosition: {\n name: 'Posizione Icona',\n description: 'Imposta la posizione dell\\'icona',\n defaultValue: 'left',\n control: 'select',\n options: [\n 'left',\n 'right'\n ],\n if: {\n arg: 'showIcon',\n eq: true\n },\n labels: {\n left: 'Sinistra',\n right: 'Destra'\n }\n },\n type: {\n name: 'Tipo di bottone',\n description: 'Imposta il tipo di bottone',\n default: 'button',\n control: 'select',\n if:{\n arg: 'href',\n exists: false\n },\n options: [\n 'button',\n 'submit',\n 'reset'\n ],\n labels: {\n button: 'button',\n submit: 'submit',\n reset: 'reset',\n }\n },\n name: {\n name: 'Nome del bottone',\n description: 'Imposta il nome del bottone',\n control: 'text',\n if:{\n arg: 'href',\n exists: false\n }\n },\n value: {\n name: 'Value del bottone',\n description: 'Imposta il value del bottone',\n control: 'text',\n if:{\n arg: 'href',\n exists: false\n }\n },\n ariaLabel: {\n name: 'Aria Label',\n description: 'Imposta aria label',\n control: 'text',\n },\n href: {\n name: 'Href',\n description: 'Imposta l\\'href del link',\n control: 'text',\n },\n target: {\n name: 'Target',\n description: 'Imposta il target del link',\n default: '_self',\n control: 'select',\n if:{\n arg: 'href',\n exists: true\n },\n options: [\n '_blank',\n '_parent',\n '_self',\n '_top'\n ],\n labels: {\n _blank: '_blank',\n _parent: '_parent',\n _self: '_self',\n _top: '_top'\n }\n },\n id: {\n name: 'ID',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes} ${ !args.label ? ' only-icon' : ''}> ${args.iconPosition == 'left' && args.showIcon ? `<jump-icon slot=\"prefix\" name=\"${args.iconName}\"></jump-icon>` : ''} ${ !args.iconOnly ? args.label : ''} ${args.iconPosition == 'right' && args.showIcon ? `<jump-icon slot=\"suffix\" name=\"${args.iconName}\"></jump-icon>` : ''} </jump-button>`\n}\n\nexport const OutlinePrimary = Template.bind({});\nOutlinePrimary.args = {\n label: 'Outline Primary',\n variant: 'primary',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const OutlineSecondary = Template.bind({});\nOutlineSecondary.args = {\n label: 'Outline Secondary',\n variant: 'secondary',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const OutlineGrey = Template.bind({});\nOutlineGrey.args = {\n label: 'Outline Neutral',\n variant: 'neutral',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const OutlineWhite = Template.bind({});\nOutlineWhite.args = {\n label: 'Outline White',\n variant: 'white',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const OutlinePillPrimary = Template.bind({});\nOutlinePillPrimary.args = {\n label: 'Pill Primary',\n variant: 'primary',\n outline: true,\n pill: true,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const ButtonWithIcon = Template.bind({});\nButtonWithIcon.args = {\n label: 'Primary',\n variant: 'primary',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: true,\n iconName: 'home',\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n label: 'Disabled',\n variant: 'primary',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: true,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n"]}
1
+ {"version":3,"file":"jump-button-outline.stories.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button-outline.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2CAA2C;YACxD,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,SAAS;gBACT,WAAW;gBACX,SAAS;gBACT,OAAO;aACR;SACF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,OAAO;gBACP,QAAQ;gBACR,OAAO;aACR;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,QAAQ;aAChB;SACF;QACD,IAA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QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,iBAAiB;IACxB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,OAAO;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,eAAe;IACtB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,QAAQ,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,QAAQ;CACf,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Outline',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'Variante',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n size: {\n name: 'Dimensione',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large'\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande'\n }\n },\n pill: {\n name: 'Bordo a Pillola',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n disabled: {\n name: 'Disabilitato',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n full: {\n name: 'Full Width',\n description: 'Imposta se il bottone sarà largo tutto lo spazio che può occupare',\n control: 'boolean'\n },\n text: {\n name: 'Testo',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n id: {\n name: 'ID',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes} outline name=\"scopri\" value=\"value\" aria-label=\"Scopri di più\"> Scopri di più </jump-button>`\n}\n\nconst TemplateWithIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes} outline name=\"scopri\" value=\"value\" aria-label=\"Scopri di più\"> <jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon> Scopri di più </jump-button>`\n}\n\nexport const OutlinePrimary = Template.bind({});\nOutlinePrimary.args = {\n variant: 'primary',\n size: 'small',\n};\n\nexport const OutlineSecondary = Template.bind({});\nOutlineSecondary.args = {\n label: 'Outline Secondary',\n variant: 'secondary',\n size: 'medium',\n};\n\nexport const OutlineGrey = Template.bind({});\nOutlineGrey.args = {\n label: 'Outline Neutral',\n variant: 'neutral',\n size: 'large',\n};\n\nexport const OutlineWhite = Template.bind({});\nOutlineWhite.args = {\n label: 'Outline White',\n variant: 'white',\n size: 'medium',\n};\n\nexport const outlinePill = Template.bind({});\noutlinePill.args = {\n label: 'Pill Primary',\n variant: 'primary',\n pill: true,\n size: 'medium',\n};\n\nexport const withIcon = TemplateWithIcon.bind({});\nwithIcon.args = {\n label: 'Primary',\n variant: 'primary',\n size: 'medium',\n full: true,\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n label: 'Disabled',\n variant: 'primary',\n disabled: true,\n size: 'medium',\n};\n"]}
@@ -1,14 +1,8 @@
1
- import feather from "feather-icons";
2
1
  import { generateAttributesFromArgs } from "../../utils/utils";
3
2
  export default {
4
3
  title: 'Components/Button/Text',
5
4
  tags: ['autodocs'],
6
5
  argTypes: {
7
- label: {
8
- name: 'Etichetta',
9
- description: 'Imposta il testo del bottone',
10
- control: 'text'
11
- },
12
6
  variant: {
13
7
  name: 'Variante',
14
8
  description: 'Imposta la variante di colore del bottone',
@@ -20,11 +14,6 @@ export default {
20
14
  'white'
21
15
  ],
22
16
  },
23
- outline: {
24
- name: 'Outline',
25
- description: 'Imposta se il bottone deve avere il solo bordo',
26
- control: 'boolean'
27
- },
28
17
  size: {
29
18
  name: 'Dimensione',
30
19
  description: 'Imposta la dimensione del bottone',
@@ -40,134 +29,11 @@ export default {
40
29
  large: 'Grande'
41
30
  }
42
31
  },
43
- pill: {
44
- name: 'Bordo a Pillola',
45
- description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',
46
- control: 'boolean'
47
- },
48
32
  disabled: {
49
33
  name: 'Disabilitato',
50
34
  description: 'Imposta se il bottone deve essere disabilitato',
51
35
  control: 'boolean'
52
36
  },
53
- text: {
54
- name: 'Testo',
55
- description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',
56
- control: 'boolean'
57
- },
58
- showIcon: {
59
- name: 'Mostra Icona',
60
- description: 'Imposta se il bottone deve mostrare un\'icona',
61
- control: 'boolean'
62
- },
63
- iconOnly: {
64
- name: 'Mostra solo Icona',
65
- description: 'Imposta se il bottone deve mostrare solo l\'icona',
66
- control: 'boolean',
67
- if: {
68
- arg: 'showIcon',
69
- eq: true
70
- },
71
- },
72
- iconName: {
73
- name: 'Nome Icona',
74
- control: 'select',
75
- options: Object.keys(feather.icons),
76
- description: 'Seleziona il nome dell\'icona dal menu a tendina',
77
- defaultValue: Object.keys(feather.icons)[0],
78
- if: {
79
- arg: 'showIcon',
80
- eq: true
81
- },
82
- },
83
- iconPosition: {
84
- name: 'Posizione Icona',
85
- description: 'Imposta la posizione dell\'icona',
86
- defaultValue: 'left',
87
- control: 'select',
88
- options: [
89
- 'left',
90
- 'right'
91
- ],
92
- if: {
93
- arg: 'showIcon',
94
- eq: true
95
- },
96
- labels: {
97
- left: 'Sinistra',
98
- right: 'Destra'
99
- }
100
- },
101
- type: {
102
- name: 'Tipo di bottone',
103
- description: 'Imposta il tipo di bottone',
104
- default: 'button',
105
- control: 'select',
106
- if: {
107
- arg: 'href',
108
- exists: false
109
- },
110
- options: [
111
- 'button',
112
- 'submit',
113
- 'reset'
114
- ],
115
- labels: {
116
- button: 'button',
117
- submit: 'submit',
118
- reset: 'reset',
119
- }
120
- },
121
- name: {
122
- name: 'Nome del bottone',
123
- description: 'Imposta il nome del bottone',
124
- control: 'text',
125
- if: {
126
- arg: 'href',
127
- exists: false
128
- }
129
- },
130
- value: {
131
- name: 'Value del bottone',
132
- description: 'Imposta il value del bottone',
133
- control: 'text',
134
- if: {
135
- arg: 'href',
136
- exists: false
137
- }
138
- },
139
- ariaLabel: {
140
- name: 'Aria Label',
141
- description: 'Imposta aria label',
142
- control: 'text',
143
- },
144
- href: {
145
- name: 'Href',
146
- description: 'Imposta l\'href del link',
147
- control: 'text',
148
- },
149
- target: {
150
- name: 'Target',
151
- description: 'Imposta il target del link',
152
- default: '_self',
153
- control: 'select',
154
- if: {
155
- arg: 'href',
156
- exists: true
157
- },
158
- options: [
159
- '_blank',
160
- '_parent',
161
- '_self',
162
- '_top'
163
- ],
164
- labels: {
165
- _blank: '_blank',
166
- _parent: '_parent',
167
- _self: '_self',
168
- _top: '_top'
169
- }
170
- },
171
37
  id: {
172
38
  name: 'ID',
173
39
  description: 'Imposta l\'id del bottone',
@@ -177,113 +43,41 @@ export default {
177
43
  };
178
44
  const Template = (args) => {
179
45
  const attributes = generateAttributesFromArgs(args);
180
- return `<jump-button ${attributes} ${!args.label ? ' only-icon' : ''}> ${args.iconPosition == 'left' && args.showIcon ? `<jump-icon slot="prefix" name="${args.iconName}"></jump-icon>` : ''} ${!args.iconOnly ? args.label : ''} ${args.iconPosition == 'right' && args.showIcon ? `<jump-icon slot="suffix" name="${args.iconName}"></jump-icon>` : ''} </jump-button>`;
46
+ return `<jump-button ${attributes} text name="scopri" value="value" aria-label="Scopri di più"> Scopri di più </jump-button>`;
47
+ };
48
+ const TemplateWithIcon = (args) => {
49
+ const attributes = generateAttributesFromArgs(args);
50
+ return `<jump-button ${attributes} text name="scopri" value="value" aria-label="Scopri di più"> <jump-icon slot="suffix" name="arrow-right"></jump-icon> Scopri di più </jump-button>`;
181
51
  };
182
52
  export const TextPrimary = Template.bind({});
183
53
  TextPrimary.args = {
184
- label: 'Button Text Primary',
185
54
  variant: 'primary',
186
- outline: false,
187
- pill: false,
188
55
  size: 'medium',
189
- disabled: false,
190
- text: true,
191
- showIcon: false,
192
- iconOnly: false,
193
- iconName: Object.keys(feather.icons)[0],
194
- iconPosition: 'left',
195
- type: 'button',
196
- name: 'nome bottone',
197
- value: 'value bottone',
198
- ariaLabel: 'sono un bottone'
199
56
  };
200
57
  export const TextSecondary = Template.bind({});
201
58
  TextSecondary.args = {
202
- label: 'Button Text Secondary',
203
59
  variant: 'secondary',
204
- outline: false,
205
- pill: false,
206
60
  size: 'medium',
207
- disabled: false,
208
- text: true,
209
- showIcon: false,
210
- iconOnly: false,
211
- iconName: Object.keys(feather.icons)[0],
212
- iconPosition: 'left',
213
- type: 'button',
214
- name: 'nome bottone',
215
- value: 'value bottone',
216
- ariaLabel: 'sono un bottone'
217
61
  };
218
62
  export const TextGrey = Template.bind({});
219
63
  TextGrey.args = {
220
- label: 'Button Text Neutral',
221
64
  variant: 'neutral',
222
- outline: false,
223
- pill: false,
224
65
  size: 'medium',
225
- disabled: false,
226
- text: true,
227
- showIcon: false,
228
- iconOnly: false,
229
- iconName: Object.keys(feather.icons)[0],
230
- iconPosition: 'left',
231
- type: 'button',
232
- name: 'nome bottone',
233
- value: 'value bottone',
234
- ariaLabel: 'sono un bottone'
235
66
  };
236
67
  export const TextWhite = Template.bind({});
237
68
  TextWhite.args = {
238
- label: 'Button Text White',
239
69
  variant: 'white',
240
- outline: false,
241
- pill: false,
242
70
  size: 'medium',
243
- disabled: false,
244
- text: true,
245
- showIcon: false,
246
- iconOnly: false,
247
- iconName: Object.keys(feather.icons)[0],
248
- iconPosition: 'left',
249
- type: 'button',
250
- name: 'nome bottone',
251
- value: 'value bottone',
252
- ariaLabel: 'sono un bottone'
253
71
  };
254
- export const ButtonTextWithIcon = Template.bind({});
255
- ButtonTextWithIcon.args = {
256
- label: 'Button Text with Icon',
72
+ export const withIcon = TemplateWithIcon.bind({});
73
+ withIcon.args = {
257
74
  variant: 'primary',
258
- outline: false,
259
- pill: false,
260
75
  size: 'medium',
261
- disabled: false,
262
- text: true,
263
- showIcon: true,
264
- iconName: 'home',
265
- iconPosition: 'left',
266
- type: 'button',
267
- name: 'nome bottone',
268
- value: 'value bottone',
269
- ariaLabel: 'sono un bottone'
270
76
  };
271
- export const TextDisabled = Template.bind({});
272
- TextDisabled.args = {
273
- label: 'Disabled',
77
+ export const disabled = Template.bind({});
78
+ disabled.args = {
274
79
  variant: 'primary',
275
- outline: false,
276
- pill: false,
277
80
  size: 'medium',
278
- disabled: true,
279
- text: true,
280
- showIcon: false,
281
- iconOnly: false,
282
- iconName: Object.keys(feather.icons)[0],
283
- iconPosition: 'left',
284
- type: 'button',
285
- name: 'nome bottone',
286
- value: 'value bottone',
287
- ariaLabel: 'sono un bottone'
81
+ disabled: true
288
82
  };
289
83
  //# sourceMappingURL=jump-button-text.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jump-button-text.stories.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button-text.stories.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAA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,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACxB,KAAK,EAAE,uBAAuB;IAC9B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,MAAM;IACpB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,iBAAiB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvC,YAAY,EAAE,MAAM;IACpB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,iBAAiB;CAC7B,CAAC","sourcesContent":["import feather from 'feather-icons';\nimport { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Text',\n tags: ['autodocs'],\n argTypes: {\n label: {\n name: 'Etichetta',\n description: 'Imposta il testo del bottone',\n control: 'text'\n },\n variant: {\n name: 'Variante',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n outline : {\n name: 'Outline',\n description: 'Imposta se il bottone deve avere il solo bordo',\n control: 'boolean'\n },\n size: {\n name: 'Dimensione',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large'\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande'\n }\n },\n pill: {\n name: 'Bordo a Pillola',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n disabled: {\n name: 'Disabilitato',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n text: {\n name: 'Testo',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n showIcon: {\n name: 'Mostra Icona',\n description: 'Imposta se il bottone deve mostrare un\\'icona',\n control: 'boolean'\n },\n iconOnly: {\n name: 'Mostra solo Icona',\n description: 'Imposta se il bottone deve mostrare solo l\\'icona',\n control: 'boolean',\n if: {\n arg: 'showIcon',\n eq: true\n },\n },\n iconName: {\n name: 'Nome Icona',\n control: 'select',\n options: Object.keys(feather.icons),\n description: 'Seleziona il nome dell\\'icona dal menu a tendina',\n defaultValue: Object.keys(feather.icons)[0],\n if: {\n arg: 'showIcon',\n eq: true\n },\n },\n iconPosition: {\n name: 'Posizione Icona',\n description: 'Imposta la posizione dell\\'icona',\n defaultValue: 'left',\n control: 'select',\n options: [\n 'left',\n 'right'\n ],\n if: {\n arg: 'showIcon',\n eq: true\n },\n labels: {\n left: 'Sinistra',\n right: 'Destra'\n }\n },\n type: {\n name: 'Tipo di bottone',\n description: 'Imposta il tipo di bottone',\n default: 'button',\n control: 'select',\n if:{\n arg: 'href',\n exists: false\n },\n options: [\n 'button',\n 'submit',\n 'reset'\n ],\n labels: {\n button: 'button',\n submit: 'submit',\n reset: 'reset',\n }\n },\n name: {\n name: 'Nome del bottone',\n description: 'Imposta il nome del bottone',\n control: 'text',\n if:{\n arg: 'href',\n exists: false\n }\n },\n value: {\n name: 'Value del bottone',\n description: 'Imposta il value del bottone',\n control: 'text',\n if:{\n arg: 'href',\n exists: false\n }\n },\n ariaLabel: {\n name: 'Aria Label',\n description: 'Imposta aria label',\n control: 'text',\n },\n href: {\n name: 'Href',\n description: 'Imposta l\\'href del link',\n control: 'text',\n },\n target: {\n name: 'Target',\n description: 'Imposta il target del link',\n default: '_self',\n control: 'select',\n if:{\n arg: 'href',\n exists: true\n },\n options: [\n '_blank',\n '_parent',\n '_self',\n '_top'\n ],\n labels: {\n _blank: '_blank',\n _parent: '_parent',\n _self: '_self',\n _top: '_top'\n }\n },\n id: {\n name: 'ID',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes} ${ !args.label ? ' only-icon' : ''}> ${args.iconPosition == 'left' && args.showIcon ? `<jump-icon slot=\"prefix\" name=\"${args.iconName}\"></jump-icon>` : ''} ${ !args.iconOnly ? args.label : ''} ${args.iconPosition == 'right' && args.showIcon ? `<jump-icon slot=\"suffix\" name=\"${args.iconName}\"></jump-icon>` : ''} </jump-button>`\n}\n\nexport const TextPrimary = Template.bind({});\nTextPrimary.args = {\n label: 'Button Text Primary',\n variant: 'primary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: true,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const TextSecondary = Template.bind({});\nTextSecondary.args = {\n label: 'Button Text Secondary',\n variant: 'secondary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: true,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const TextGrey = Template.bind({});\nTextGrey.args = {\n label: 'Button Text Neutral',\n variant: 'neutral',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: true,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const TextWhite = Template.bind({});\nTextWhite.args = {\n label: 'Button Text White',\n variant: 'white',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: true,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const ButtonTextWithIcon = Template.bind({});\nButtonTextWithIcon.args = {\n label: 'Button Text with Icon',\n variant: 'primary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: true,\n showIcon: true,\n iconName: 'home',\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n\nexport const TextDisabled = Template.bind({});\nTextDisabled.args = {\n label: 'Disabled',\n variant: 'primary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: true,\n text: true,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left',\n type: 'button',\n name: 'nome bottone',\n value: 'value bottone',\n ariaLabel: 'sono un bottone'\n};\n"]}
1
+ {"version":3,"file":"jump-button-text.stories.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button-text.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2C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;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IACf,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;CACf,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Text',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'Variante',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n size: {\n name: 'Dimensione',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large'\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande'\n }\n },\n disabled: {\n name: 'Disabilitato',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n id: {\n name: 'ID',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes} text name=\"scopri\" value=\"value\" aria-label=\"Scopri di più\"> Scopri di più </jump-button>`\n}\n\nconst TemplateWithIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes} text name=\"scopri\" value=\"value\" aria-label=\"Scopri di più\"> <jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon> Scopri di più </jump-button>`\n}\n\nexport const TextPrimary = Template.bind({});\nTextPrimary.args = {\n variant: 'primary',\n size: 'medium',\n};\n\nexport const TextSecondary = Template.bind({});\nTextSecondary.args = {\n variant: 'secondary',\n size: 'medium',\n};\n\nexport const TextGrey = Template.bind({});\nTextGrey.args = {\n variant: 'neutral',\n size: 'medium',\n};\n\nexport const TextWhite = Template.bind({});\nTextWhite.args = {\n variant: 'white',\n size: 'medium',\n};\n\nexport const withIcon = TemplateWithIcon.bind({});\nwithIcon.args = {\n variant: 'primary',\n size: 'medium',\n};\n\nexport const disabled = Template.bind({});\ndisabled.args = {\n variant: 'primary',\n size: 'medium',\n disabled: true\n};\n"]}
@@ -59,8 +59,6 @@
59
59
  }
60
60
 
61
61
  :host {
62
- display: inline-flex;
63
- align-items: center;
64
62
  --jump-button-color: #ffffff;
65
63
  --jump-button-color-disabled: #cbcbcb;
66
64
  --jump-button-background: var(--primary-standard);
@@ -133,18 +131,19 @@
133
131
  :host a[data-size=small] {
134
132
  font-size: var(--fs-300, 0.875rem);
135
133
  line-height: var(--lh-300, 1.2);
136
- --jump-button-padding: 0.5rem 1rem;
134
+ --jump-button-padding: 0.65rem 1rem;
137
135
  }
138
136
  :host button[data-size=medium],
139
137
  :host a[data-size=medium] {
140
138
  font-size: var(--fs-400, 1rem);
141
139
  line-height: var(--lh-400, 1.3);
140
+ --jump-button-padding: 0.75rem 1.25rem;
142
141
  }
143
142
  :host button[data-size=large],
144
143
  :host a[data-size=large] {
145
144
  font-size: var(--fs-500, 1.125rem);
146
145
  line-height: var(--lh-500, 1.4);
147
- --jump-button-padding: 1.125rem 1.5rem;
146
+ --jump-button-padding: 1rem 1.5rem;
148
147
  }
149
148
  :host button[data-outline],
150
149
  :host a[data-outline] {
@@ -173,7 +172,7 @@
173
172
  }
174
173
  :host button[data-only-icon],
175
174
  :host a[data-only-icon] {
176
- --jump-button-padding: 1.125rem;
175
+ --jump-button-padding: 0.5rem;
177
176
  }
178
177
  :host button[data-only-icon][data-size=small],
179
178
  :host a[data-only-icon][data-size=small] {
@@ -181,11 +180,11 @@
181
180
  }
182
181
  :host button[data-only-icon][data-size=medium],
183
182
  :host a[data-only-icon][data-size=medium] {
184
- --jump-button-padding: 1rem;
183
+ --jump-button-padding: 0.875rem;
185
184
  }
186
185
  :host button[data-only-icon][data-size=large],
187
186
  :host a[data-only-icon][data-size=large] {
188
- --jump-button-padding: 1.125rem;
187
+ --jump-button-padding: 1rem;
189
188
  }
190
189
  :host button.chat,
191
190
  :host a.chat {
@@ -193,4 +192,15 @@
193
192
  --jump-button-background: hsla(133, 54%, 58%, 1);
194
193
  --jump-button-color-hover: var(--neutral-white);
195
194
  --jump-button-background-hover: hsla(161, 63%, 31%, 1);
195
+ }
196
+ :host button[data-full] {
197
+ width: 100%;
198
+ justify-content: center;
199
+ }
200
+ :host a {
201
+ display: inline-flex;
202
+ }
203
+ :host a[data-full] {
204
+ width: 100%;
205
+ justify-content: center;
196
206
  }
@@ -5,6 +5,7 @@ export class JumpButton {
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;
@@ -21,7 +22,7 @@ export class JumpButton {
21
22
  this.target = this.href ? this.target : '_self';
22
23
  }
23
24
  render() {
24
- return (h(Host, { key: '6b61dcd618e7aee12b9f539c6a092d524566ba47' }, 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" })))));
25
26
  }
26
27
  static get is() { return "jump-button"; }
27
28
  static get encapsulation() { return "shadow"; }
@@ -59,8 +60,8 @@ export class JumpButton {
59
60
  "type": "string",
60
61
  "mutable": false,
61
62
  "complexType": {
62
- "original": "'primary'|'secondary'|'tertiary'|'neutral'",
63
- "resolved": "\"neutral\" | \"primary\" | \"secondary\" | \"tertiary\"",
63
+ "original": "'primary'|'secondary'|'white'|'neutral'",
64
+ "resolved": "\"neutral\" | \"primary\" | \"secondary\" | \"white\"",
64
65
  "references": {}
65
66
  },
66
67
  "required": false,
@@ -109,6 +110,24 @@ export class JumpButton {
109
110
  "reflect": false,
110
111
  "defaultValue": "'medium'"
111
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
+ },
112
131
  "pill": {
113
132
  "type": "boolean",
114
133
  "mutable": false,
@@ -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,UAAU;;wBAIO,KAAK;uBAK6B,SAAS;uBAK5C,KAAK;oBAKT,QAAQ;oBAKP,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,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,kBAAgB,IAAI,CAAC,OAAO,kBAAgB,IAAI,CAAC,OAAO,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,oBAAkB,IAAI,CAAC,QAAQ,gBAAc,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM;YAChQ,YAAM,IAAI,EAAC,QAAQ,GAAQ;YAC1B,CAAC,IAAI,CAAC,QAAQ,IAAI,eAAa;YAChC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACzB,CACL,CAAC,CAAC,CAAC,CACF,cAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,kBAAgB,IAAI,CAAC,OAAO,kBAAgB,IAAI,CAAC,OAAO,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,oBAAkB,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBAAc,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK;YAC7S,YAAM,IAAI,EAAC,QAAQ,GAAQ;YAC1B,CAAC,IAAI,CAAC,QAAQ,IAAI,eAAa;YAChC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACpB,CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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'|'tertiary'|'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 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-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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,kBAAgB,IAAI,CAAC,OAAO,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,oBAAkB,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBAAc,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK;YACnU,YAAM,IAAI,EAAC,QAAQ,GAAQ;YAC1B,CAAC,IAAI,CAAC,QAAQ,IAAI,eAAa;YAChC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACpB,CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"]}
@@ -14,8 +14,8 @@ export class AppCard {
14
14
  this.videoSrc = '';
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: 'a1f0752a89731d2f493060b79548fa69e99e1e68', horizontal: this.horizontal, "border-radius": this.borderRadius, "rounded-media": this.roundedMedia, "top-border-content-radius": this.topBorderContentRadius, boxed: this.boxed, shadow: this.shadow, border: this.border }, this.imgSrc && !this.videoSrc ? h("img", { src: this.imgSrc, alt: this.imgAlt }) : '', this.videoSrc && !this.imgSrc ?
18
- h("video", { autoplay: true }, h("source", { src: this.videoSrc, type: "video/mp4" }), h("source", { src: this.videoSrc, type: "video/mov" }), h("source", { src: this.videoSrc, type: "video/webm" })) : '', h("div", { key: 'a7d7a20a7a5960f3fab3d417d224dd711d119e0b', class: "Content" }, h("slot", { key: '7667cd1ea36b6f2115174f0fa39a6368bc020b16', name: "body" }), h("slot", { key: 'bbaded488f7b0603a9aa19e1549ba41e524ad322', name: "footer" }))));
17
+ return (h(Host, { key: '990d2452fd2b295b5b5c78a5cbd311c938318ee7', horizontal: this.horizontal, "border-radius": this.borderRadius, "rounded-media": this.roundedMedia, "top-border-content-radius": this.topBorderContentRadius, boxed: this.boxed, shadow: this.shadow, border: this.border }, this.imgSrc && !this.videoSrc ? h("img", { src: this.imgSrc, alt: this.imgAlt }) : '', this.videoSrc && !this.imgSrc ?
18
+ h("video", { autoplay: true }, h("source", { src: this.videoSrc, type: "video/mp4" }), h("source", { src: this.videoSrc, type: "video/mov" }), h("source", { src: this.videoSrc, type: "video/webm" })) : '', h("div", { key: 'cb2ca9a506ac28a88fb3e4fb7fe6626f9af6daf5', class: "Content" }, h("slot", { key: '8e893537441beedf925094a99a886f9d5c1a1377', name: "body" }), h("slot", { key: '9436fd7c5030bf0405bb88ab43ca21a4bb7e5e35', name: "footer" }))));
19
19
  }
20
20
  static get is() { return "jump-card"; }
21
21
  static get originalStyleUrls() {
@@ -45,7 +45,7 @@ export class AppCard {
45
45
  "text": "Indicates if the card is horizontal"
46
46
  },
47
47
  "attribute": "horizontal",
48
- "reflect": true,
48
+ "reflect": false,
49
49
  "defaultValue": "false"
50
50
  },
51
51
  "dark": {
@@ -63,7 +63,7 @@ export class AppCard {
63
63
  "text": "Indicates if the card is horizontal"
64
64
  },
65
65
  "attribute": "dark",
66
- "reflect": true,
66
+ "reflect": false,
67
67
  "defaultValue": "false"
68
68
  },
69
69
  "shadow": {
@@ -81,7 +81,7 @@ export class AppCard {
81
81
  "text": "Indicates if card has shadow"
82
82
  },
83
83
  "attribute": "shadow",
84
- "reflect": true
84
+ "reflect": false
85
85
  },
86
86
  "border": {
87
87
  "type": "boolean",
@@ -98,7 +98,7 @@ export class AppCard {
98
98
  "text": "Indicates if card has borders"
99
99
  },
100
100
  "attribute": "border",
101
- "reflect": true
101
+ "reflect": false
102
102
  },
103
103
  "borderRadius": {
104
104
  "type": "boolean",
@@ -115,7 +115,7 @@ export class AppCard {
115
115
  "text": "Indicates if borders of the entire card are rounded"
116
116
  },
117
117
  "attribute": "border-radius",
118
- "reflect": true,
118
+ "reflect": false,
119
119
  "defaultValue": "false"
120
120
  },
121
121
  "topBorderContentRadius": {
@@ -133,7 +133,7 @@ export class AppCard {
133
133
  "text": "Indicates if border top of the body is rounded; Not compatible with boxed"
134
134
  },
135
135
  "attribute": "top-border-content-radius",
136
- "reflect": true,
136
+ "reflect": false,
137
137
  "defaultValue": "false"
138
138
  },
139
139
  "boxed": {
@@ -151,7 +151,7 @@ export class AppCard {
151
151
  "text": "Indicates if media has padding; Not compatible with roundedMedia"
152
152
  },
153
153
  "attribute": "boxed",
154
- "reflect": true,
154
+ "reflect": false,
155
155
  "defaultValue": "false"
156
156
  },
157
157
  "roundedMedia": {
@@ -169,7 +169,7 @@ export class AppCard {
169
169
  "text": "Indicates if image is rounded and there isnt a bg"
170
170
  },
171
171
  "attribute": "rounded-media",
172
- "reflect": true,
172
+ "reflect": false,
173
173
  "defaultValue": "false"
174
174
  },
175
175
  "imgSrc": {
@@ -187,7 +187,7 @@ export class AppCard {
187
187
  "text": "Indicates the imgSrc of the card"
188
188
  },
189
189
  "attribute": "img-src",
190
- "reflect": true,
190
+ "reflect": false,
191
191
  "defaultValue": "''"
192
192
  },
193
193
  "imgAlt": {
@@ -205,7 +205,7 @@ export class AppCard {
205
205
  "text": "Indicates the img's alt of the card"
206
206
  },
207
207
  "attribute": "img-alt",
208
- "reflect": true,
208
+ "reflect": false,
209
209
  "defaultValue": "''"
210
210
  },
211
211
  "videoSrc": {
@@ -223,7 +223,7 @@ export class AppCard {
223
223
  "text": "Indicates the videoSrc of the card"
224
224
  },
225
225
  "attribute": "video-src",
226
- "reflect": true,
226
+ "reflect": false,
227
227
  "defaultValue": "''"
228
228
  }
229
229
  };