@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.
- package/dist/cjs/{index-41aaa52a.js → index-674508e2.js} +153 -4
- package/dist/cjs/index-674508e2.js.map +1 -0
- package/dist/cjs/jump-accordion.cjs.entry.js +22 -0
- package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-badge.cjs.entry.js +6 -3
- package/dist/cjs/jump-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-button_2.cjs.entry.js +631 -0
- package/dist/cjs/jump-button_2.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +121 -0
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-card.cjs.entry.js +4 -4
- package/dist/cjs/jump-card.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-design-system.cjs.js +2 -2
- package/dist/cjs/jump-filter.cjs.entry.js +59 -0
- package/dist/cjs/jump-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-filtergroup.cjs.entry.js +119 -0
- package/dist/cjs/jump-filtergroup.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-pagination-table.cjs.entry.js +24 -5
- package/dist/cjs/jump-pagination-table.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination.cjs.entry.js +19 -5
- package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-quantity.cjs.entry.js +77 -0
- package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-tab-item.cjs.entry.js +40 -0
- package/dist/cjs/jump-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/jump-tab-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-tab.cjs.entry.js +72 -9
- package/dist/cjs/jump-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/jump-accordion/jump-accordion.css +3 -0
- package/dist/collection/components/jump-accordion/jump-accordion.js +19 -0
- package/dist/collection/components/jump-accordion/jump-accordion.js.map +1 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.e2e.js +10 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.e2e.js.map +1 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.spec.js +18 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.spec.js.map +1 -0
- package/dist/collection/components/jump-badge/jump-badge.css +90 -12
- package/dist/collection/components/jump-badge/jump-badge.js +61 -3
- package/dist/collection/components/jump-badge/jump-badge.js.map +1 -1
- package/dist/collection/components/jump-badge/jump-badge.stories.js +93 -8
- package/dist/collection/components/jump-badge/jump-badge.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-anchor.stories.js +38 -29
- package/dist/collection/components/jump-button/jump-button-anchor.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-dimension.stories.js +4 -9
- package/dist/collection/components/jump-button/jump-button-dimension.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-filled.stories.js +15 -24
- package/dist/collection/components/jump-button/jump-button-filled.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-only-icon.stories.js +43 -73
- package/dist/collection/components/jump-button/jump-button-only-icon.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button.css +2 -1
- package/dist/collection/components/jump-button/jump-button.js +1 -1
- package/dist/collection/components/jump-button/jump-button.stories.js +199 -0
- package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -0
- package/dist/collection/components/jump-card/jump-card.css +2 -2
- package/dist/collection/components/jump-card/jump-card.js +2 -2
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +183 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +583 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js +205 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.e2e.js +10 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.e2e.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.spec.js +18 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.spec.js.map +1 -0
- package/dist/collection/components/jump-filter/jump-filter.css +8 -0
- package/dist/collection/components/jump-filter/jump-filter.js +212 -0
- package/dist/collection/components/jump-filter/jump-filter.js.map +1 -0
- package/dist/collection/components/jump-filter/jump-filter.stories.js +122 -0
- package/dist/collection/components/jump-filter/jump-filter.stories.js.map +1 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.css +17 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +328 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js.map +1 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js +49 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-custom.stories.js +67 -0
- package/dist/collection/components/jump-icon/jump-icon-custom.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-brands.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-brands.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-duotone.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-duotone.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-light.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-light.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-regular.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-regular.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-light.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-light.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-regular.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-regular.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-solid.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-solid.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-thin.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-thin.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-solid.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-solid.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-thin.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-thin.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-lucide.stories.js +67 -0
- package/dist/collection/components/jump-icon/jump-icon-lucide.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon.css +61 -15
- package/dist/collection/components/jump-icon/jump-icon.js +132 -12
- package/dist/collection/components/jump-icon/jump-icon.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.css +1 -0
- package/dist/collection/components/jump-pagination/jump-pagination.js +21 -6
- package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js +6 -4
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -1
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +28 -9
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js.map +1 -1
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js +25 -7
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js.map +1 -1
- package/dist/collection/components/jump-quantity/jump-quantity.css +52 -0
- package/dist/collection/components/jump-quantity/jump-quantity.js +245 -0
- package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -0
- package/dist/collection/components/jump-quantity/jump-quantity.stories.js +103 -0
- package/dist/collection/components/jump-quantity/jump-quantity.stories.js.map +1 -0
- package/dist/collection/components/jump-tab/jump-tab.css +9 -0
- package/dist/collection/components/jump-tab/jump-tab.js +107 -21
- package/dist/collection/components/jump-tab/jump-tab.js.map +1 -1
- package/dist/collection/components/jump-tab/jump-tab.stories.js +129 -0
- package/dist/collection/components/jump-tab/jump-tab.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js +54 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js +54 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js +41 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js +42 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item.css +109 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item.js +173 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item.js.map +1 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.e2e.js +10 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.e2e.js.map +1 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.spec.js +18 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.spec.js.map +1 -0
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.css +11 -0
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +63 -0
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js.map +1 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.e2e.js +10 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.e2e.js.map +1 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.spec.js +18 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.spec.js.map +1 -0
- package/dist/collection/utils/utils.js +41 -8
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/jump-accordion.d.ts +11 -0
- package/dist/components/jump-accordion.js +36 -0
- package/dist/components/jump-accordion.js.map +1 -0
- package/dist/components/jump-badge.js +1 -33
- package/dist/components/jump-badge.js.map +1 -1
- package/dist/components/jump-badge2.js +44 -0
- package/dist/components/jump-badge2.js.map +1 -0
- package/dist/components/jump-button.js +1 -65
- package/dist/components/jump-button.js.map +1 -1
- package/dist/components/jump-button2.js +69 -0
- package/dist/components/jump-button2.js.map +1 -0
- package/dist/components/jump-card-ecommerce.d.ts +11 -0
- package/dist/components/jump-card-ecommerce.js +177 -0
- package/dist/components/jump-card-ecommerce.js.map +1 -0
- package/dist/components/jump-card.js +3 -3
- package/dist/components/jump-card.js.map +1 -1
- package/dist/components/jump-filter.d.ts +11 -0
- package/dist/components/jump-filter.js +96 -0
- package/dist/components/jump-filter.js.map +1 -0
- package/dist/components/jump-filtergroup.d.ts +11 -0
- package/dist/components/jump-filtergroup.js +161 -0
- package/dist/components/jump-filtergroup.js.map +1 -0
- package/dist/components/jump-icon2.js +556 -2375
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-pagination-table.js +30 -5
- package/dist/components/jump-pagination-table.js.map +1 -1
- package/dist/components/jump-pagination.js +27 -6
- package/dist/components/jump-pagination.js.map +1 -1
- package/dist/components/jump-quantity.d.ts +11 -0
- package/dist/components/jump-quantity.js +109 -0
- package/dist/components/jump-quantity.js.map +1 -0
- package/dist/components/jump-tab-item.d.ts +11 -0
- package/dist/components/jump-tab-item.js +68 -0
- package/dist/components/jump-tab-item.js.map +1 -0
- package/dist/components/jump-tab-panel.d.ts +11 -0
- package/dist/components/jump-tab-panel.js +41 -0
- package/dist/components/jump-tab-panel.js.map +1 -0
- package/dist/components/jump-tab.js +75 -12
- package/dist/components/jump-tab.js.map +1 -1
- package/dist/esm/{index-192aeaf1.js → index-70f1949a.js} +153 -5
- package/dist/esm/index-70f1949a.js.map +1 -0
- package/dist/esm/jump-accordion.entry.js +18 -0
- package/dist/esm/jump-accordion.entry.js.map +1 -0
- package/dist/esm/jump-badge.entry.js +6 -3
- package/dist/esm/jump-badge.entry.js.map +1 -1
- package/dist/esm/jump-button_2.entry.js +626 -0
- package/dist/esm/jump-button_2.entry.js.map +1 -0
- package/dist/esm/jump-card-ecommerce.entry.js +117 -0
- package/dist/esm/jump-card-ecommerce.entry.js.map +1 -0
- package/dist/esm/jump-card.entry.js +4 -4
- package/dist/esm/jump-card.entry.js.map +1 -1
- package/dist/esm/jump-design-system.js +3 -3
- package/dist/esm/jump-filter.entry.js +55 -0
- package/dist/esm/jump-filter.entry.js.map +1 -0
- package/dist/esm/jump-filtergroup.entry.js +115 -0
- package/dist/esm/jump-filtergroup.entry.js.map +1 -0
- package/dist/esm/jump-pagination-table.entry.js +24 -5
- package/dist/esm/jump-pagination-table.entry.js.map +1 -1
- package/dist/esm/jump-pagination.entry.js +19 -5
- package/dist/esm/jump-pagination.entry.js.map +1 -1
- package/dist/esm/jump-quantity.entry.js +73 -0
- package/dist/esm/jump-quantity.entry.js.map +1 -0
- package/dist/esm/jump-tab-item.entry.js +36 -0
- package/dist/esm/jump-tab-item.entry.js.map +1 -0
- package/dist/esm/jump-tab-panel.entry.js +20 -0
- package/dist/esm/jump-tab-panel.entry.js.map +1 -0
- package/dist/esm/jump-tab.entry.js +72 -9
- package/dist/esm/jump-tab.entry.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-2cb7d817.entry.js +2 -0
- package/dist/jump-design-system/p-2cb7d817.entry.js.map +1 -0
- package/dist/jump-design-system/p-34a46a10.entry.js +2 -0
- package/dist/jump-design-system/p-34a46a10.entry.js.map +1 -0
- package/dist/jump-design-system/p-377a769b.entry.js +2 -0
- package/dist/jump-design-system/p-377a769b.entry.js.map +1 -0
- package/dist/jump-design-system/p-493c7f4a.entry.js +2 -0
- package/dist/jump-design-system/p-493c7f4a.entry.js.map +1 -0
- package/dist/jump-design-system/p-4d6cc90d.js +3 -0
- package/dist/jump-design-system/p-4d6cc90d.js.map +1 -0
- package/dist/jump-design-system/p-56609b82.entry.js +2 -0
- package/dist/jump-design-system/p-56609b82.entry.js.map +1 -0
- package/dist/jump-design-system/p-5a6fbc53.entry.js +2 -0
- package/dist/jump-design-system/p-5a6fbc53.entry.js.map +1 -0
- package/dist/jump-design-system/p-5d713084.entry.js +2 -0
- package/dist/jump-design-system/p-5d713084.entry.js.map +1 -0
- package/dist/jump-design-system/p-7696c03d.entry.js +2 -0
- package/dist/jump-design-system/p-7696c03d.entry.js.map +1 -0
- package/dist/jump-design-system/p-8343b4f5.entry.js +2 -0
- package/dist/jump-design-system/p-8343b4f5.entry.js.map +1 -0
- package/dist/jump-design-system/p-a6fc23f7.entry.js +2 -0
- package/dist/jump-design-system/p-a6fc23f7.entry.js.map +1 -0
- package/dist/jump-design-system/p-c1665537.entry.js +2 -0
- package/dist/jump-design-system/p-c1665537.entry.js.map +1 -0
- package/dist/jump-design-system/p-c2bc6395.entry.js +66 -0
- package/dist/jump-design-system/p-c2bc6395.entry.js.map +1 -0
- package/dist/jump-design-system/p-fafe6478.entry.js +2 -0
- package/dist/jump-design-system/p-fafe6478.entry.js.map +1 -0
- package/dist/jump-design-system-elements.json +396 -9
- package/dist/types/components/jump-accordion/jump-accordion.d.ts +3 -0
- package/dist/types/components/jump-badge/jump-badge.d.ts +13 -1
- package/dist/types/components/jump-badge/jump-badge.stories.d.ts +22 -0
- package/dist/types/components/jump-button/jump-button-anchor.stories.d.ts +18 -4
- package/dist/types/components/jump-button/jump-button-dimension.stories.d.ts +0 -5
- package/dist/types/components/jump-button/jump-button-only-icon.stories.d.ts +4 -11
- package/dist/types/components/jump-button/jump-button.stories.d.ts +98 -0
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.d.ts +65 -0
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.stories.d.ts +117 -0
- package/dist/types/components/jump-filter/jump-filter.d.ts +22 -0
- package/dist/types/components/jump-filter/jump-filter.stories.d.ts +40 -0
- package/dist/types/components/jump-filtergroup/jump-filtergroup.d.ts +24 -0
- package/dist/types/components/jump-filtergroup/jump-filtergroup.stories.d.ts +43 -0
- package/dist/types/components/jump-icon/jump-icon-custom.stories.d.ts +40 -0
- package/dist/types/components/{jump-button/jump-button-outline.stories.d.ts → jump-icon/jump-icon-fa-brands.stories.d.ts} +19 -30
- package/dist/types/components/jump-icon/jump-icon-fa-duotone.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-light.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-regular.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-light.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-regular.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-solid.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-thin.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-solid.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-thin.stories.d.ts +45 -0
- package/dist/types/components/{jump-button/jump-button-text.stories.d.ts → jump-icon/jump-icon-lucide.stories.d.ts} +16 -16
- package/dist/types/components/jump-icon/jump-icon.d.ts +29 -4
- package/dist/types/components/jump-pagination/jump-pagination.d.ts +9 -0
- package/dist/types/components/jump-pagination-table/jump-pagination-table.d.ts +18 -2
- package/dist/types/components/jump-pagination-table/jump-pagination-table.stories.d.ts +5 -1
- package/dist/types/components/jump-quantity/jump-quantity.d.ts +24 -0
- package/dist/types/components/jump-quantity/jump-quantity.stories.d.ts +41 -0
- package/dist/types/components/jump-tab/jump-tab.d.ts +11 -3
- package/dist/types/components/jump-tab/jump-tab.stories.d.ts +27 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-boxed.stories.d.ts +39 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-inline.stories.d.ts +39 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-rounded.stories.d.ts +28 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-sheet.stories.d.ts +28 -0
- package/dist/types/components/jump-tab-item/jump-tab-item.d.ts +29 -0
- package/dist/types/components/jump-tab-panel/jump-tab-panel.d.ts +5 -0
- package/dist/types/components.d.ts +563 -8
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +3 -2
- package/dist/cjs/index-41aaa52a.js.map +0 -1
- package/dist/cjs/jump-button.cjs.entry.js +0 -41
- package/dist/cjs/jump-button.cjs.entry.js.map +0 -1
- package/dist/cjs/jump-icon.cjs.entry.js +0 -2422
- package/dist/cjs/jump-icon.cjs.entry.js.map +0 -1
- package/dist/collection/components/jump-button/jump-button-outline.stories.js +0 -111
- package/dist/collection/components/jump-button/jump-button-outline.stories.js.map +0 -1
- package/dist/collection/components/jump-button/jump-button-text.stories.js +0 -83
- package/dist/collection/components/jump-button/jump-button-text.stories.js.map +0 -1
- package/dist/collection/components/jump-icon/jump-icon.stories.js +0 -35
- package/dist/collection/components/jump-icon/jump-icon.stories.js.map +0 -1
- package/dist/collection/components/jump-tab/jump-tab-inline.stories.js +0 -28
- package/dist/collection/components/jump-tab/jump-tab-inline.stories.js.map +0 -1
- package/dist/esm/index-192aeaf1.js.map +0 -1
- package/dist/esm/jump-button.entry.js +0 -37
- package/dist/esm/jump-button.entry.js.map +0 -1
- package/dist/esm/jump-icon.entry.js +0 -2418
- package/dist/esm/jump-icon.entry.js.map +0 -1
- package/dist/jump-design-system/p-02914b1e.entry.js +0 -2
- package/dist/jump-design-system/p-02914b1e.entry.js.map +0 -1
- package/dist/jump-design-system/p-1a533536.entry.js +0 -2
- package/dist/jump-design-system/p-1a533536.entry.js.map +0 -1
- package/dist/jump-design-system/p-20ceb40c.js +0 -3
- package/dist/jump-design-system/p-20ceb40c.js.map +0 -1
- package/dist/jump-design-system/p-93d8245f.entry.js +0 -2
- package/dist/jump-design-system/p-93d8245f.entry.js.map +0 -1
- package/dist/jump-design-system/p-e69ee35f.entry.js +0 -2
- package/dist/jump-design-system/p-e69ee35f.entry.js.map +0 -1
- package/dist/jump-design-system/p-eb16952a.entry.js +0 -2
- package/dist/jump-design-system/p-eb16952a.entry.js.map +0 -1
- package/dist/jump-design-system/p-ed65e359.entry.js +0 -2
- package/dist/jump-design-system/p-ed65e359.entry.js.map +0 -1
- package/dist/jump-design-system/p-fa148b53.entry.js +0 -331
- package/dist/jump-design-system/p-fa148b53.entry.js.map +0 -1
- package/dist/types/components/jump-icon/jump-icon.stories.d.ts +0 -21
- package/dist/types/components/jump-tab/jump-tab-inline.stories.d.ts +0 -18
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { generateAttributesFromArgs } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Button/Button',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
variant: {
|
|
7
|
+
name: 'variant',
|
|
8
|
+
description: 'Imposta la variante di colore del bottone',
|
|
9
|
+
control: 'select',
|
|
10
|
+
options: [
|
|
11
|
+
'primary',
|
|
12
|
+
'secondary',
|
|
13
|
+
'neutral',
|
|
14
|
+
'white'
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
outline: {
|
|
18
|
+
name: 'outline',
|
|
19
|
+
description: 'Imposta se il bottone deve avere il solo bordo',
|
|
20
|
+
control: 'boolean'
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
name: 'size',
|
|
24
|
+
description: 'Imposta la dimensione del bottone',
|
|
25
|
+
control: 'select',
|
|
26
|
+
options: [
|
|
27
|
+
'small',
|
|
28
|
+
'medium',
|
|
29
|
+
'large',
|
|
30
|
+
],
|
|
31
|
+
labels: {
|
|
32
|
+
small: 'Piccolo',
|
|
33
|
+
medium: 'Medio',
|
|
34
|
+
large: 'Grande',
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
pill: {
|
|
38
|
+
name: 'pill',
|
|
39
|
+
description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',
|
|
40
|
+
control: 'boolean'
|
|
41
|
+
},
|
|
42
|
+
name: {
|
|
43
|
+
name: 'name',
|
|
44
|
+
description: 'Imposta il name del bottone, va impostato solo se non è un link',
|
|
45
|
+
control: 'text'
|
|
46
|
+
},
|
|
47
|
+
value: {
|
|
48
|
+
name: 'value',
|
|
49
|
+
description: 'Imposta il value del bottone, va impostato solo se non è un link',
|
|
50
|
+
control: 'text'
|
|
51
|
+
},
|
|
52
|
+
ariaLabel: {
|
|
53
|
+
name: 'ariaLabel',
|
|
54
|
+
description: 'Imposta l\'aria label del bottone, va impostato solo se non è un link',
|
|
55
|
+
control: 'text'
|
|
56
|
+
},
|
|
57
|
+
text: {
|
|
58
|
+
name: 'text',
|
|
59
|
+
description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',
|
|
60
|
+
control: 'boolean'
|
|
61
|
+
},
|
|
62
|
+
onlyIcon: {
|
|
63
|
+
name: 'onlyIcon',
|
|
64
|
+
description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',
|
|
65
|
+
control: 'boolean'
|
|
66
|
+
},
|
|
67
|
+
full: {
|
|
68
|
+
name: 'full',
|
|
69
|
+
description: 'Imposta se il bottone sarà largo tutto lo spazio che può occupare',
|
|
70
|
+
control: 'boolean'
|
|
71
|
+
},
|
|
72
|
+
href: {
|
|
73
|
+
name: 'href',
|
|
74
|
+
description: 'Imposta l\'href del link, va impostato solo se non è un button ma è un link',
|
|
75
|
+
control: 'text'
|
|
76
|
+
},
|
|
77
|
+
target: {
|
|
78
|
+
name: 'target',
|
|
79
|
+
description: 'Imposta il target del link, va impostato solo se non è un button ma è un link',
|
|
80
|
+
control: 'select',
|
|
81
|
+
options: [
|
|
82
|
+
'_self',
|
|
83
|
+
'_blank',
|
|
84
|
+
'_parent',
|
|
85
|
+
'_top'
|
|
86
|
+
],
|
|
87
|
+
labels: {
|
|
88
|
+
_self: '_self',
|
|
89
|
+
_blank: '_blank',
|
|
90
|
+
_parent: '_parent',
|
|
91
|
+
_top: '_top'
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
id: {
|
|
95
|
+
name: 'id',
|
|
96
|
+
description: 'Imposta l\'id del bottone',
|
|
97
|
+
control: 'text'
|
|
98
|
+
},
|
|
99
|
+
disabled: {
|
|
100
|
+
name: 'disabled',
|
|
101
|
+
description: 'Imposta se il bottone deve essere disabilitato',
|
|
102
|
+
control: 'boolean'
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const Template = (args) => {
|
|
107
|
+
const attributes = generateAttributesFromArgs(args);
|
|
108
|
+
return `<jump-button ${attributes}> Scopri di più </jump-button>`;
|
|
109
|
+
};
|
|
110
|
+
const TemplateWithIcon = (args) => {
|
|
111
|
+
const attributes = generateAttributesFromArgs(args);
|
|
112
|
+
return `<jump-button ${attributes}> <jump-icon slot="suffix" name="arrow-right"></jump-icon> Scopri di più </jump-button>`;
|
|
113
|
+
};
|
|
114
|
+
export const ButtonWithIcon = TemplateWithIcon.bind({});
|
|
115
|
+
ButtonWithIcon.args = {
|
|
116
|
+
variant: 'primary',
|
|
117
|
+
size: 'small',
|
|
118
|
+
outline: false,
|
|
119
|
+
pill: false,
|
|
120
|
+
name: 'scopri',
|
|
121
|
+
value: 'value',
|
|
122
|
+
ariaLabel: 'Scopri di più',
|
|
123
|
+
text: false,
|
|
124
|
+
full: false,
|
|
125
|
+
id: 'button',
|
|
126
|
+
disabled: false,
|
|
127
|
+
onlyIcon: false,
|
|
128
|
+
};
|
|
129
|
+
export const ButtonWithoutIcon = Template.bind({});
|
|
130
|
+
ButtonWithoutIcon.args = {
|
|
131
|
+
variant: 'primary',
|
|
132
|
+
size: 'small',
|
|
133
|
+
outline: false,
|
|
134
|
+
pill: false,
|
|
135
|
+
name: 'scopri',
|
|
136
|
+
value: 'value',
|
|
137
|
+
text: false,
|
|
138
|
+
full: false,
|
|
139
|
+
id: 'button',
|
|
140
|
+
disabled: false,
|
|
141
|
+
onlyIcon: false,
|
|
142
|
+
};
|
|
143
|
+
export const Outline = Template.bind({});
|
|
144
|
+
Outline.args = {
|
|
145
|
+
variant: 'primary',
|
|
146
|
+
size: 'small',
|
|
147
|
+
outline: true,
|
|
148
|
+
pill: false,
|
|
149
|
+
name: 'scopri',
|
|
150
|
+
value: 'value',
|
|
151
|
+
ariaLabel: 'Scopri di più',
|
|
152
|
+
text: false,
|
|
153
|
+
full: false,
|
|
154
|
+
id: 'button',
|
|
155
|
+
disabled: false,
|
|
156
|
+
onlyIcon: false,
|
|
157
|
+
};
|
|
158
|
+
export const Pill = Template.bind({});
|
|
159
|
+
Pill.args = {
|
|
160
|
+
variant: 'primary',
|
|
161
|
+
size: 'small',
|
|
162
|
+
outline: false,
|
|
163
|
+
pill: true,
|
|
164
|
+
name: 'scopri',
|
|
165
|
+
value: 'value',
|
|
166
|
+
ariaLabel: 'Scopri di più',
|
|
167
|
+
text: false,
|
|
168
|
+
full: false,
|
|
169
|
+
id: 'button',
|
|
170
|
+
disabled: false,
|
|
171
|
+
onlyIcon: false,
|
|
172
|
+
};
|
|
173
|
+
export const Text = Template.bind({});
|
|
174
|
+
Text.args = {
|
|
175
|
+
variant: 'primary',
|
|
176
|
+
size: 'small',
|
|
177
|
+
outline: false,
|
|
178
|
+
pill: false,
|
|
179
|
+
name: 'scopri',
|
|
180
|
+
value: 'value',
|
|
181
|
+
text: true,
|
|
182
|
+
full: false,
|
|
183
|
+
id: 'button',
|
|
184
|
+
disabled: false,
|
|
185
|
+
onlyIcon: false,
|
|
186
|
+
};
|
|
187
|
+
export const Disabled = Template.bind({});
|
|
188
|
+
Disabled.args = {
|
|
189
|
+
variant: 'primary',
|
|
190
|
+
size: 'small',
|
|
191
|
+
disabled: true,
|
|
192
|
+
};
|
|
193
|
+
export const CustomButton = Template.bind({});
|
|
194
|
+
CustomButton.args = {
|
|
195
|
+
pill: true,
|
|
196
|
+
size: 'small',
|
|
197
|
+
class: 'chat'
|
|
198
|
+
};
|
|
199
|
+
//# sourceMappingURL=jump-button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-button.stories.js","sourceRoot":"","sources":["../../../src/components/jump-button/jump-button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2CAA2C;YACxD,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,SAAS;gBACT,WAAW;gBACX,SAAS;gBACT,OAAO;aACR;SACF;QACD,OAAO,EAAG;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gDAAgD;YAC7D,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,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,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4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b,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,MAAM;CACd,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Button/Button',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'variant',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'white'\n ],\n },\n outline : {\n name: 'outline',\n description: 'Imposta se il bottone deve avere il solo bordo',\n control: 'boolean'\n },\n size: {\n name: 'size',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large',\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande',\n }\n },\n pill: {\n name: 'pill',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n name: {\n name: 'name',\n description: 'Imposta il name del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n value: {\n name: 'value',\n description: 'Imposta il value del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n ariaLabel: {\n name: 'ariaLabel',\n description: 'Imposta l\\'aria label del bottone, va impostato solo se non è un link',\n control: 'text'\n },\n text: {\n name: 'text',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n onlyIcon: {\n name: 'onlyIcon',\n description: 'Imposta se il bottone è solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n full: {\n name: 'full',\n description: 'Imposta se il bottone sarà largo tutto lo spazio che può occupare',\n control: 'boolean'\n },\n href:{\n name: 'href',\n description: 'Imposta l\\'href del link, va impostato solo se non è un button ma è un link',\n control: 'text'\n },\n target:{\n name: 'target',\n description: 'Imposta il target del link, va impostato solo se non è un button ma è un link',\n control: 'select',\n options: [\n '_self',\n '_blank',\n '_parent',\n '_top'\n ],\n labels: {\n _self: '_self',\n _blank: '_blank',\n _parent: '_parent',\n _top: '_top'\n },\n },\n id: {\n name: 'id',\n description: 'Imposta l\\'id del bottone',\n control: 'text'\n },\n disabled: {\n name: 'disabled',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes}> Scopri di più </jump-button>`\n}\n\nconst TemplateWithIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-button ${attributes}> <jump-icon slot=\"suffix\" name=\"arrow-right\"></jump-icon> Scopri di più </jump-button>`\n}\n\nexport const ButtonWithIcon = TemplateWithIcon.bind({});\nButtonWithIcon.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const ButtonWithoutIcon = Template.bind({});\nButtonWithoutIcon.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Outline = Template.bind({});\nOutline.args = {\n variant: 'primary',\n size: 'small',\n outline: true,\n pill: false,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Pill = Template.bind({});\nPill.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: true,\n name: 'scopri',\n value: 'value',\n ariaLabel: 'Scopri di più',\n text: false,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Text = Template.bind({});\nText.args = {\n variant: 'primary',\n size: 'small',\n outline: false,\n pill: false,\n name: 'scopri',\n value: 'value',\n text: true,\n full: false,\n id: 'button',\n disabled: false,\n onlyIcon: false,\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n variant: 'primary',\n size: 'small',\n disabled: true,\n};\n\nexport const CustomButton = Template.bind({});\nCustomButton.args = {\n pill: true,\n size: 'small',\n class: 'chat'\n};"]}
|
|
@@ -4,8 +4,8 @@ jump-card {
|
|
|
4
4
|
position: relative;
|
|
5
5
|
--jump-card-max-width-horizontal: 100%;
|
|
6
6
|
--jump-card-color: var(--neutral-grey-primary);
|
|
7
|
-
--jump-card-background:
|
|
8
|
-
--jump-card-color-dark:
|
|
7
|
+
--jump-card-background: var(--neutral-white);
|
|
8
|
+
--jump-card-color-dark: var(--neutral-white);
|
|
9
9
|
--jump-card-border-color: var(--neutral-grey-background);
|
|
10
10
|
--jump-card-border-radius: 6px;
|
|
11
11
|
--jump-card-border-top-radius: 1rem;
|
|
@@ -14,8 +14,8 @@ export class AppCard {
|
|
|
14
14
|
this.videoSrc = '';
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
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: '
|
|
17
|
+
return (h(Host, { key: '7cb28f9f3ef1a64c859b7b4de719ca9dc58eea8d', 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: 'dabe68c686a49f1af7386182ad4b14181d7c7bcc', class: "Content" }, h("slot", { key: '18be998730900c91de0e93e410ae34abccff4bfc', name: "body" }), h("slot", { key: 'd9dfbf2a4cf014ceb761432cd435179689d5baa6', name: "footer" }))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "jump-card"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--card-max-width: 450px;
|
|
3
|
+
--jump-card-max-width-horizontal: 100%;
|
|
4
|
+
--jump-card-color: var(--neutral-grey-primary);
|
|
5
|
+
--jump-card-background: transparent;
|
|
6
|
+
--jump-card-border-color: var(--neutral-grey-background);
|
|
7
|
+
--jump-card-padding: 0.5rem;
|
|
8
|
+
max-width: var(--card-max-width);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
position: relative;
|
|
13
|
+
width: 100%;
|
|
14
|
+
font-family: var(--ff-primary, "Arial"), sans-serif;
|
|
15
|
+
line-height: var(--lh-400, 1.3);
|
|
16
|
+
background-color: var(--jump-card-background);
|
|
17
|
+
color: var(--jump-card-color);
|
|
18
|
+
}
|
|
19
|
+
:host .Footer,
|
|
20
|
+
:host .Body {
|
|
21
|
+
display: flex;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
:host jump-badge {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 1rem;
|
|
27
|
+
left: 1rem;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
}
|
|
30
|
+
:host jump-badge.hasBackground.iconOnly {
|
|
31
|
+
top: calc(1rem + 8px);
|
|
32
|
+
left: calc(1rem + 8px);
|
|
33
|
+
}
|
|
34
|
+
:host .Favorite {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 1rem;
|
|
37
|
+
right: 1rem;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
40
|
+
:host .Favorite.hasBackground.iconOnly {
|
|
41
|
+
top: calc(1rem + 8px);
|
|
42
|
+
right: calc(1rem + 8px);
|
|
43
|
+
}
|
|
44
|
+
:host .Media {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
position: relative;
|
|
47
|
+
border-top-left-radius: 3px;
|
|
48
|
+
border-top-right-radius: 3px;
|
|
49
|
+
aspect-ratio: 1/1;
|
|
50
|
+
}
|
|
51
|
+
:host .Media img {
|
|
52
|
+
height: 100%;
|
|
53
|
+
width: 100%;
|
|
54
|
+
object-fit: cover;
|
|
55
|
+
}
|
|
56
|
+
:host .Media.hasBackground {
|
|
57
|
+
background-color: var(--neutral-white);
|
|
58
|
+
}
|
|
59
|
+
:host .Media.hasBackground.iconOnly {
|
|
60
|
+
border-top-left-radius: 6px;
|
|
61
|
+
border-top-right-radius: 6px;
|
|
62
|
+
padding: var(--jump-card-padding) var(--jump-card-padding) 0;
|
|
63
|
+
}
|
|
64
|
+
:host .Media.hasBackground.iconOnly img {
|
|
65
|
+
border-radius: 6px;
|
|
66
|
+
}
|
|
67
|
+
:host .NotificationCart {
|
|
68
|
+
display: none;
|
|
69
|
+
position: absolute;
|
|
70
|
+
bottom: 0px;
|
|
71
|
+
width: 100%;
|
|
72
|
+
padding: 2rem 1rem;
|
|
73
|
+
background-color: hsla(0, 0%, 0%, 0.35);
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
}
|
|
76
|
+
:host .NotificationCart.is-active {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
}
|
|
81
|
+
:host .Content.hasBackground {
|
|
82
|
+
background-color: var(--neutral-white);
|
|
83
|
+
padding: calc(var(--jump-card-padding) * 2);
|
|
84
|
+
}
|
|
85
|
+
:host .Content.iconOnly {
|
|
86
|
+
padding: calc(var(--jump-card-padding) * 2) var(--jump-card-padding);
|
|
87
|
+
}
|
|
88
|
+
:host .Body {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 0.75rem;
|
|
92
|
+
padding: var(--jump-card-padding) 0;
|
|
93
|
+
}
|
|
94
|
+
:host .Body > * {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: row;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
}
|
|
99
|
+
:host .Body > * > * {
|
|
100
|
+
flex: 0 1 auto;
|
|
101
|
+
}
|
|
102
|
+
:host .Body.hasBackground {
|
|
103
|
+
padding: 0 0 var(--jump-card-padding);
|
|
104
|
+
}
|
|
105
|
+
:host .Body.iconOnly {
|
|
106
|
+
padding: 0;
|
|
107
|
+
}
|
|
108
|
+
:host .Product {
|
|
109
|
+
font-size: var(--fs-400);
|
|
110
|
+
}
|
|
111
|
+
:host .Subtitle {
|
|
112
|
+
font-size: var(--fs-300);
|
|
113
|
+
color: var(--neutral-grey-secondary);
|
|
114
|
+
}
|
|
115
|
+
:host .Footer {
|
|
116
|
+
line-height: var(--lh-400);
|
|
117
|
+
justify-content: end;
|
|
118
|
+
padding: var(--jump-card-padding) 0;
|
|
119
|
+
align-items: flex-end;
|
|
120
|
+
}
|
|
121
|
+
:host .Footer.justify-between {
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
}
|
|
124
|
+
:host .Footer.hasBackground {
|
|
125
|
+
padding-bottom: 0;
|
|
126
|
+
}
|
|
127
|
+
:host .Footer.iconOnly {
|
|
128
|
+
padding: 0;
|
|
129
|
+
}
|
|
130
|
+
:host .OutOfStock {
|
|
131
|
+
justify-items: start;
|
|
132
|
+
font-size: var(--fs-300);
|
|
133
|
+
font-weight: var(--fw-900);
|
|
134
|
+
color: var(--status-danger-standard);
|
|
135
|
+
}
|
|
136
|
+
:host .OnlyIconButton {
|
|
137
|
+
position: absolute;
|
|
138
|
+
bottom: 0;
|
|
139
|
+
right: 0;
|
|
140
|
+
background: var(--neutral-white);
|
|
141
|
+
border-top-left-radius: 20px;
|
|
142
|
+
padding: 8px 8px 0px 8px;
|
|
143
|
+
}
|
|
144
|
+
:host .Price {
|
|
145
|
+
position: relative;
|
|
146
|
+
display: grid;
|
|
147
|
+
grid-template-columns: auto auto;
|
|
148
|
+
grid-template-rows: 1.5rem 1.5rem auto;
|
|
149
|
+
justify-items: end;
|
|
150
|
+
align-items: end;
|
|
151
|
+
font-size: var(--fs-500);
|
|
152
|
+
font-weight: var(--fw-900);
|
|
153
|
+
line-height: var(--lh-400);
|
|
154
|
+
}
|
|
155
|
+
:host .Price > * {
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
}
|
|
158
|
+
:host .Price__Regular {
|
|
159
|
+
text-align: right;
|
|
160
|
+
}
|
|
161
|
+
:host .Price__Regular.sale {
|
|
162
|
+
text-decoration: line-through;
|
|
163
|
+
color: var(--neutral-grey-secondary);
|
|
164
|
+
font-weight: var(--fw-400);
|
|
165
|
+
font-size: var(--fs-400);
|
|
166
|
+
grid-column: 2;
|
|
167
|
+
grid-row: 1;
|
|
168
|
+
}
|
|
169
|
+
:host .Price__Sale {
|
|
170
|
+
grid-column: 2;
|
|
171
|
+
grid-row: 2;
|
|
172
|
+
}
|
|
173
|
+
:host .Price__Discount {
|
|
174
|
+
color: var(--status-danger-standard);
|
|
175
|
+
font-weight: var(--fw-400);
|
|
176
|
+
font-size: var(--fs-300);
|
|
177
|
+
grid-column: 1;
|
|
178
|
+
grid-row: 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:host(.Pippo) {
|
|
182
|
+
background-color: red;
|
|
183
|
+
}
|