@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,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-674508e2.js');
|
|
6
|
+
|
|
7
|
+
const jumpTabPanelCss = ":host{display:block}.JumpTabPanel__Content{display:none;padding:1rem 0}.JumpTabPanel__Content.active{display:block}";
|
|
8
|
+
const JumpTabPanelStyle0 = jumpTabPanelCss;
|
|
9
|
+
|
|
10
|
+
const JumpTabPanel = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.identifier = undefined;
|
|
14
|
+
this.active = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (index.h(index.Host, { key: '90108df0339c76ec7ffef78722400cbd5e5b125d', class: "JumpTabPanel", id: this.identifier }, index.h("div", { key: '4e127ffdeb05efdd63dc538cb38976252ff5a060', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, index.h("slot", { key: '5e54c0eaed6558e97226ffdc347e0ca8c0d9aa1b' }))));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
JumpTabPanel.style = JumpTabPanelStyle0;
|
|
21
|
+
|
|
22
|
+
exports.jump_tab_panel = JumpTabPanel;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=jump-tab-panel.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"jump-tab-panel.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,qHAAqH,CAAC;AAC9I,2BAAe,eAAe;;MCMjB,YAAY;;;0BAEM,SAAS;sBACZ,KAAK;;IAE/B,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAC,cAAc,EAAC,EAAE,EAAE,IAAI,CAAC,UAAU,IAC5CD,kEAAK,KAAK,EAAE,wBAAwB,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,GAAG,EAAE,CAAC,IAClEA,oEAAa,CACT,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/jump-tab-panel/jump-tab-panel.scss?tag=jump-tab-panel&encapsulation=shadow","src/components/jump-tab-panel/jump-tab-panel.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n\n.JumpTabPanel {\n \n &__Content { \n display: none;\n padding: 1rem 0;\n\n &.active {\n display: block;\n }\n }\n}","import { Component, Prop, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'jump-tab-panel',\n styleUrl: 'jump-tab-panel.scss',\n shadow: true,\n})\nexport class JumpTabPanel {\n\n @Prop() identifier: string = undefined;\n @Prop() active: boolean = false;\n\n render() {\n return (\n <Host class=\"JumpTabPanel\" id={this.identifier}>\n <div class={\"JumpTabPanel__Content \" + (this.active ? 'active' : '')}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n\n}\n"],"version":3}
|
|
@@ -2,24 +2,87 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-674508e2.js');
|
|
6
6
|
|
|
7
|
-
const jumpTabCss = ":host{display:block}";
|
|
7
|
+
const jumpTabCss = ":host{display:block;--jump-tab-bg-color:var(--gray-ultralight, #f8f8f8)}:host .Wrapper{display:flex;width:fit-content}:host .Wrapper.rounded{border-radius:50px;background-color:#f8f8f8}";
|
|
8
8
|
const JumpTabStyle0 = jumpTabCss;
|
|
9
9
|
|
|
10
10
|
const JumpTab = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
13
|
+
this.setActiveTab = index.createEvent(this, "jump-change-activetab", 7);
|
|
14
|
+
this.tabGroupName = undefined;
|
|
15
|
+
this.variant = 'inline';
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
changeActiveTabHandler(event) {
|
|
18
|
+
this.setActiveTab.emit(event.detail);
|
|
19
|
+
// Recupera il valore della variabile CSS
|
|
20
|
+
const rootStyles = getComputedStyle(document.documentElement);
|
|
21
|
+
const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();
|
|
22
|
+
let items = this.JumpTabEl.querySelectorAll('jump-tab-item');
|
|
23
|
+
if (items.length > 0) {
|
|
24
|
+
items.forEach((item) => {
|
|
25
|
+
if (item.getAttribute('identifier') === event.detail.id) {
|
|
26
|
+
item.setAttribute('active', '');
|
|
27
|
+
if (this.variant === 'sheet') {
|
|
28
|
+
// Aggiungi il bordo ai fratelli dell'elemento attivo tranne l'ultimo
|
|
29
|
+
items.forEach((sibling, index) => {
|
|
30
|
+
if (sibling !== item && index !== items.length - 1) {
|
|
31
|
+
sibling.style.borderRight = `1px solid ${primaryColor}`; // Usa i backticks
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
sibling.style.borderRight = '1px solid transparent';
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
// Rimuovi il bordo dal fratello precedente
|
|
38
|
+
let previousSibling = item.previousElementSibling;
|
|
39
|
+
if (previousSibling) {
|
|
40
|
+
previousSibling.style.borderRight = '1px solid transparent';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
item.removeAttribute('active');
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
let panel = this.JumpTabEl.querySelectorAll('jump-tab-panel');
|
|
50
|
+
if (panel.length > 0) {
|
|
51
|
+
panel.forEach((panel) => {
|
|
52
|
+
if (panel.getAttribute('identifier') === event.detail.id) {
|
|
53
|
+
panel.setAttribute('active', '');
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
panel.removeAttribute('active');
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
componentDidLoad() {
|
|
62
|
+
console.log('Component has been rendered');
|
|
63
|
+
if (this.variant === 'sheet') {
|
|
64
|
+
// Recupera il valore della variabile CSS
|
|
65
|
+
const rootStyles = getComputedStyle(document.documentElement);
|
|
66
|
+
const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();
|
|
67
|
+
// Seleziona tutti gli elementi jump-tab-item
|
|
68
|
+
let items = this.JumpTabEl.querySelectorAll('jump-tab-item');
|
|
69
|
+
if (items.length > 0) {
|
|
70
|
+
items.forEach((item, index) => {
|
|
71
|
+
// Aggiungi bordo destro a tutti tranne:
|
|
72
|
+
// - l'ultimo elemento
|
|
73
|
+
// - l'elemento attivo (avente classe "active")
|
|
74
|
+
if (index === items.length - 1 || item.classList.contains('active')) {
|
|
75
|
+
item.style.borderRight = '1px solid transparent';
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
item.style.borderRight = `1px solid ${primaryColor}`;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
20
83
|
}
|
|
21
84
|
render() {
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
85
|
+
return (index.h(index.Host, { key: '325ebf63677d7b1307ebb5be3d521d06efa22a5a', class: "JumpTab", id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, index.h("div", { key: 'afa4eb17c8582aa59f8f3b55237de34fa04871d5', class: "Wrapper " + this.variant }, index.h("slot", { key: '69023d9ae6ae85ef8270d7c8ea4c881c60889f63', name: "tab-item" })), index.h("div", { key: '28257b0f8de4c3ef1b7dd7adb58dc2d0ce342164' }, index.h("slot", { key: '3097cf4876730499e2067aed722ff822582e173f', name: "tab-content" }))));
|
|
23
86
|
}
|
|
24
87
|
};
|
|
25
88
|
JumpTab.style = JumpTabStyle0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"jump-tab.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,
|
|
1
|
+
{"file":"jump-tab.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,2LAA2L,CAAC;AAC/M,sBAAe,UAAU;;MCMZ,OAAO;;;;4BAIa,SAAS;uBAMd,QAAQ;;IAKlC,sBAAsB,CAAC,KAAkB;QACvC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;QAGrC,MAAM,UAAU,GAAG,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAC9D,MAAM,YAAY,GAAG,UAAU,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC,IAAI,EAAE,CAAC;QAEpF,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;QAC7D,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;gBACjB,IAAI,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE;oBACvD,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;oBAEhC,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO,EAAE;;wBAE5B,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,KAAK;4BAC3B,IAAI,OAAO,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gCAClD,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG,aAAa,YAAY,EAAE,CAAC;6BACzD;iCAAM;gCACL,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG,uBAAuB,CAAC;6BACrD;yBACF,CAAC,CAAC;;wBAGH,IAAI,eAAe,GAAG,IAAI,CAAC,sBAA6B,CAAC;wBACzD,IAAI,eAAe,EAAE;4BACnB,eAAe,CAAC,KAAK,CAAC,WAAW,GAAG,uBAAuB,CAAC;yBAC7D;qBACF;iBAEF;qBAAM;oBACL,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;iBAChC;aACF,CAAC,CAAC;SACJ;QAED,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QAC9D,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK;gBAClB,IAAI,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE;oBACxD,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;iBAClC;qBAAM;oBACL,KAAK,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;iBACjC;aACF,CAAC,CAAC;SACJ;KACF;IAGD,gBAAgB;QACd,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QAC3C,IAAG,IAAI,CAAC,OAAO,KAAK,OAAO,EAAE;;YAE3B,MAAM,UAAU,GAAG,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAC9D,MAAM,YAAY,GAAG,UAAU,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC,IAAI,EAAE,CAAC;;YAGpF,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;YAC7D,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACpB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK;;;;oBAIxB,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;wBACnE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,uBAAuB,CAAC;qBAClD;yBAAM;wBACL,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,aAAa,YAAY,EAAE,CAAC;qBACtD;iBACF,CAAC,CAAC;aACJ;SACF;KAEF;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAC,SAAS,EAAC,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,EAAE,OAAM,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,EAAC,IAC9ED,kEAAK,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC,OAAO,IACnCA,mEAAM,IAAI,EAAC,UAAU,GAAQ,CACzB,EACNA,oEACEA,mEAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/jump-tab/jump-tab.scss?tag=jump-tab&encapsulation=shadow","src/components/jump-tab/jump-tab.tsx"],"sourcesContent":[":host {\n display: block;\n\n --jump-tab-bg-color: var(--gray-ultralight, #f8f8f8);\n \n .Wrapper {\n display: flex;\n width: fit-content;\n \n &.rounded {\n border-radius: 50px;\n background-color: #f8f8f8; // dovrà andarci var(--jump-tab-bg-color)\n }\n }\n}","import { Component, Host, Event, EventEmitter, Prop, h, Listen } from '@stencil/core';\n\n@Component({\n tag: 'jump-tab',\n styleUrl: 'jump-tab.scss',\n shadow: true,\n})\nexport class JumpTab {\n\n JumpTabEl: HTMLElement;\n /* ---------------------- @PROPERTIES ------------------------- */\n @Prop() tabGroupName: string = undefined;\n\n /**\n * The style of the tab. The same value must be passed to all the items.\n * Choosed from \"inline\", \"boxed\", \"sheet\", \"rounded\"\n */\n @Prop() variant: string = 'inline';\n\n @Event({ eventName: 'jump-change-activetab'}) setActiveTab: EventEmitter;\n\n @Listen('jump-change-active-tab')\n changeActiveTabHandler(event: CustomEvent) {\n this.setActiveTab.emit(event.detail);\n\n // Recupera il valore della variabile CSS\n const rootStyles = getComputedStyle(document.documentElement);\n const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();\n\n let items = this.JumpTabEl.querySelectorAll('jump-tab-item');\n if (items.length > 0) {\n items.forEach((item) => {\n if (item.getAttribute('identifier') === event.detail.id) {\n item.setAttribute('active', '');\n\n if (this.variant === 'sheet') {\n // Aggiungi il bordo ai fratelli dell'elemento attivo tranne l'ultimo\n items.forEach((sibling, index) => {\n if (sibling !== item && index !== items.length - 1) {\n sibling.style.borderRight = `1px solid ${primaryColor}`; // Usa i backticks\n } else {\n sibling.style.borderRight = '1px solid transparent';\n }\n });\n\n // Rimuovi il bordo dal fratello precedente\n let previousSibling = item.previousElementSibling as any;\n if (previousSibling) {\n previousSibling.style.borderRight = '1px solid transparent';\n }\n }\n\n } else {\n item.removeAttribute('active');\n }\n });\n }\n\n let panel = this.JumpTabEl.querySelectorAll('jump-tab-panel');\n if (panel.length > 0) {\n panel.forEach((panel) => {\n if (panel.getAttribute('identifier') === event.detail.id) {\n panel.setAttribute('active', '');\n } else {\n panel.removeAttribute('active');\n }\n });\n }\n }\n\n\n componentDidLoad() {\n console.log('Component has been rendered');\n if(this.variant === 'sheet') {\n // Recupera il valore della variabile CSS\n const rootStyles = getComputedStyle(document.documentElement);\n const primaryColor = rootStyles.getPropertyValue('--neutral-grey-secondary').trim();\n\n // Seleziona tutti gli elementi jump-tab-item\n let items = this.JumpTabEl.querySelectorAll('jump-tab-item');\n if (items.length > 0) {\n items.forEach((item, index) => {\n // Aggiungi bordo destro a tutti tranne:\n // - l'ultimo elemento\n // - l'elemento attivo (avente classe \"active\")\n if (index === items.length - 1 || item.classList.contains('active')) {\n item.style.borderRight = '1px solid transparent';\n } else {\n item.style.borderRight = `1px solid ${primaryColor}`;\n }\n });\n }\n }\n\n }\n\n render() {\n return (\n <Host class=\"JumpTab\" id={this.tabGroupName} ref={(el) => {this.JumpTabEl = el;}}> \n <div class={\"Wrapper \" + this.variant}>\n <slot name=\"tab-item\"></slot>\n </div>\n <div>\n <slot name=\"tab-content\"></slot>\n </div>\n </Host>\n );\n }\n}"],"version":3}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-674508e2.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["jump-
|
|
11
|
+
return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"],"addedToCart":[4,"added-to-cart"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addtoCartText":[1,"addto-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"changedVariation":[4,"changed-variation"]}]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]]]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]}]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[16],"elPerPage":[2,"el-per-page"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"]},null,{"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[32],"getValue":[64]},null,{"value":["onValueChange"]}]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion.cjs",[[1,"jump-accordion"]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-tab.cjs",[[1,"jump-tab",{"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[1],"dimension":[1],"soft":[4],"outline":[4]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
+
"components/jump-accordion/jump-accordion.js",
|
|
3
4
|
"components/jump-badge/jump-badge.js",
|
|
4
5
|
"components/jump-button/jump-button.js",
|
|
5
6
|
"components/jump-card/jump-card.js",
|
|
7
|
+
"components/jump-card-ecommerce/jump-card-ecommerce.js",
|
|
8
|
+
"components/jump-filter/jump-filter.js",
|
|
9
|
+
"components/jump-filtergroup/jump-filtergroup.js",
|
|
6
10
|
"components/jump-icon/jump-icon.js",
|
|
7
11
|
"components/jump-pagination/jump-pagination.js",
|
|
8
12
|
"components/jump-pagination-table/jump-pagination-table.js",
|
|
9
|
-
"components/jump-
|
|
13
|
+
"components/jump-quantity/jump-quantity.js",
|
|
14
|
+
"components/jump-tab/jump-tab.js",
|
|
15
|
+
"components/jump-tab-item/jump-tab-item.js",
|
|
16
|
+
"components/jump-tab-panel/jump-tab-panel.js"
|
|
10
17
|
],
|
|
11
18
|
"compiler": {
|
|
12
19
|
"name": "@stencil/core",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JumpAccordion {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: '08c6f14d1b4c9fcd99c62679bbc16b02b985644f' }, h("slot", { key: 'd86efa130f7c545957223bfe25bd016d52031095' })));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "jump-accordion"; }
|
|
7
|
+
static get encapsulation() { return "shadow"; }
|
|
8
|
+
static get originalStyleUrls() {
|
|
9
|
+
return {
|
|
10
|
+
"$": ["jump-accordion.scss"]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static get styleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["jump-accordion.css"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=jump-accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-accordion.js","sourceRoot":"","sources":["../../../src/components/jump-accordion/jump-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,aAAa;IAExB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'jump-accordion',\n styleUrl: 'jump-accordion.scss',\n shadow: true,\n})\nexport class JumpAccordion {\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('jump-accordion', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<jump-accordion></jump-accordion>');
|
|
6
|
+
const element = await page.find('jump-accordion');
|
|
7
|
+
expect(element).toHaveClass('hydrated');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=jump-accordion.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-accordion.e2e.js","sourceRoot":"","sources":["../../../../src/components/jump-accordion/test/jump-accordion.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,mCAAmC,CAAC,CAAC;QAE3D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('jump-accordion', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<jump-accordion></jump-accordion>');\n\n const element = await page.find('jump-accordion');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { JumpAccordion } from "../jump-accordion";
|
|
3
|
+
describe('jump-accordion', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [JumpAccordion],
|
|
7
|
+
html: `<jump-accordion></jump-accordion>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<jump-accordion>
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
</jump-accordion>
|
|
15
|
+
`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=jump-accordion.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-accordion.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-accordion/test/jump-accordion.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,mCAAmC;SAC1C,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { JumpAccordion } from '../jump-accordion';\n\ndescribe('jump-accordion', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [JumpAccordion],\n html: `<jump-accordion></jump-accordion>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-accordion>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-accordion>\n `);\n });\n});\n"]}
|
|
@@ -1,26 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
:host {
|
|
2
2
|
--jump-badge-background: var(--primary-standard);
|
|
3
|
-
--jump-badge-color:
|
|
4
|
-
--jump-
|
|
5
|
-
|
|
3
|
+
--jump-badge-color: var(--neutral-white);
|
|
4
|
+
--jump-badge-border-radius: 50px;
|
|
5
|
+
--jump-badge-border: var(--primary-standard);
|
|
6
|
+
--jump-badge-padding: 4px 12px;
|
|
7
|
+
display: flex;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
gap: 0.5rem;
|
|
6
10
|
color: var(--jump-badge-color);
|
|
7
11
|
background-color: var(--jump-badge-background);
|
|
8
12
|
align-items: center;
|
|
9
13
|
justify-content: center;
|
|
10
14
|
font-family: var(--ff-primary, "Arial"), sans-serif;
|
|
11
|
-
font-size: var(--fs-
|
|
15
|
+
font-size: var(--fs-500);
|
|
12
16
|
font-weight: var(--fw-900);
|
|
13
|
-
line-height: 1;
|
|
14
|
-
border-radius: var(--jump-
|
|
15
|
-
border: solid 1px var(--jump-
|
|
17
|
+
line-height: 1.2;
|
|
18
|
+
border-radius: var(--jump-badge-border-radius);
|
|
19
|
+
border: solid 1px var(--jump-badge-border);
|
|
16
20
|
white-space: nowrap;
|
|
17
|
-
padding:
|
|
21
|
+
padding: var(--jump-badge-padding);
|
|
18
22
|
user-select: none;
|
|
19
23
|
cursor: inherit;
|
|
20
24
|
}
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
|
|
26
|
+
:host([variant=primary]):host([soft]) {
|
|
27
|
+
--jump-badge-background: var(--primary-soft);
|
|
28
|
+
--jump-badge-color: var(--primary-standard);
|
|
29
|
+
--jump-badge-border: var(--primary-soft);
|
|
23
30
|
}
|
|
24
|
-
|
|
31
|
+
|
|
32
|
+
:host([variant=secondary]) {
|
|
25
33
|
--jump-badge-background: var(--secondary-standard);
|
|
34
|
+
--jump-badge-border: var(--secondary-standard);
|
|
35
|
+
}
|
|
36
|
+
:host([variant=secondary]):host([soft]) {
|
|
37
|
+
--jump-badge-background: var(--secondary-soft);
|
|
38
|
+
--jump-badge-color: var(--secondary-standard);
|
|
39
|
+
--jump-badge-border: var(--secondary-soft);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([variant=neutral]) {
|
|
43
|
+
--jump-badge-background: var(--neutral-grey-secondary);
|
|
44
|
+
--jump-badge-border: var(--neutral-grey-secondary);
|
|
45
|
+
}
|
|
46
|
+
:host([variant=neutral]):host([soft]) {
|
|
47
|
+
--jump-badge-background: var(--neutral-grey-disabled);
|
|
48
|
+
--jump-badge-color: var(--neutral-grey-secondary);
|
|
49
|
+
--jump-badge-border: var(--neutral-grey-disabled);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([variant=danger]) {
|
|
53
|
+
--jump-badge-background: var(--status-danger-standard);
|
|
54
|
+
--jump-badge-border: var(--status-danger-standard);
|
|
55
|
+
}
|
|
56
|
+
:host([variant=danger]):host([soft]) {
|
|
57
|
+
--jump-badge-background: var(--status-danger-soft);
|
|
58
|
+
--jump-badge-color: var(--status-danger-standard);
|
|
59
|
+
--jump-badge-border: var(--status-danger-soft);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([variant=success]) {
|
|
63
|
+
--jump-badge-background: var(--status-success-standard);
|
|
64
|
+
--jump-badge-border: var(--status-success-standard);
|
|
65
|
+
}
|
|
66
|
+
:host([variant=success]):host([soft]) {
|
|
67
|
+
--jump-badge-background: var(--status-success-soft);
|
|
68
|
+
--jump-badge-color: var(--status-success-standard);
|
|
69
|
+
--jump-badge-border: var(--status-success-soft);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([variant=warning]) {
|
|
73
|
+
--jump-badge-background: var(--status-warning-standard);
|
|
74
|
+
--jump-badge-border: var(--status-warning-standard);
|
|
75
|
+
}
|
|
76
|
+
:host([variant=warning]):host([soft]) {
|
|
77
|
+
--jump-badge-background: var(--status-warning-soft);
|
|
78
|
+
--jump-badge-color: var(--status-warning-standard);
|
|
79
|
+
--jump-badge-border: var(--status-warning-soft);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([dimension=small]) {
|
|
83
|
+
font-size: var(--fs-300);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([dimension=dot]) {
|
|
87
|
+
font-size: var(--fs-300);
|
|
88
|
+
--jump-badge-padding: 0 5px;
|
|
89
|
+
--jump-badge-border-radius: 50%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([dimension=microdot]) {
|
|
93
|
+
width: 0.5rem;
|
|
94
|
+
height: 0.5rem;
|
|
95
|
+
padding: 0;
|
|
96
|
+
--jump-badge-border-radius: 50%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host([outline]) {
|
|
100
|
+
background-color: var(--jump-badge-background-outline);
|
|
101
|
+
border: 1px solid var(--jump-badge-background);
|
|
102
|
+
color: var(--jump-badge-background);
|
|
103
|
+
background-color: transparent;
|
|
26
104
|
}
|
|
@@ -3,11 +3,15 @@ export class AppBadge {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.label = '';
|
|
5
5
|
this.variant = 'primary';
|
|
6
|
+
this.dimension = 'large';
|
|
7
|
+
this.soft = false;
|
|
8
|
+
this.outline = false;
|
|
6
9
|
}
|
|
7
10
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'c820f0fd33cdbcf6d4269a8346085f1efdf87aab' }, h("slot", { key: '704280d65559cbcb283aeead333ddb27636f905b', name: "prefix" }), this.label));
|
|
9
12
|
}
|
|
10
13
|
static get is() { return "jump-badge"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
11
15
|
static get originalStyleUrls() {
|
|
12
16
|
return {
|
|
13
17
|
"$": ["jump-badge.scss"]
|
|
@@ -42,8 +46,8 @@ export class AppBadge {
|
|
|
42
46
|
"type": "string",
|
|
43
47
|
"mutable": false,
|
|
44
48
|
"complexType": {
|
|
45
|
-
"original": "'primary'|'secondary'",
|
|
46
|
-
"resolved": "\"primary\" | \"secondary\"",
|
|
49
|
+
"original": "'primary'|'secondary'|'neutral'|'warning'|'success'|'danger'",
|
|
50
|
+
"resolved": "\"danger\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
|
|
47
51
|
"references": {}
|
|
48
52
|
},
|
|
49
53
|
"required": false,
|
|
@@ -55,6 +59,60 @@ export class AppBadge {
|
|
|
55
59
|
"attribute": "variant",
|
|
56
60
|
"reflect": false,
|
|
57
61
|
"defaultValue": "'primary'"
|
|
62
|
+
},
|
|
63
|
+
"dimension": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "'large'|'small'|'dot'|'microdot'",
|
|
68
|
+
"resolved": "\"dot\" | \"large\" | \"microdot\" | \"small\"",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": "Indicates the variant of the badge"
|
|
76
|
+
},
|
|
77
|
+
"attribute": "dimension",
|
|
78
|
+
"reflect": false,
|
|
79
|
+
"defaultValue": "'large'"
|
|
80
|
+
},
|
|
81
|
+
"soft": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "boolean",
|
|
86
|
+
"resolved": "boolean",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": "Indicates the variant of the badge"
|
|
94
|
+
},
|
|
95
|
+
"attribute": "soft",
|
|
96
|
+
"reflect": false,
|
|
97
|
+
"defaultValue": "false"
|
|
98
|
+
},
|
|
99
|
+
"outline": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "boolean",
|
|
104
|
+
"resolved": "boolean",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "Indicates the variant of the badge"
|
|
112
|
+
},
|
|
113
|
+
"attribute": "outline",
|
|
114
|
+
"reflect": false,
|
|
115
|
+
"defaultValue": "false"
|
|
58
116
|
}
|
|
59
117
|
};
|
|
60
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jump-badge.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,QAAQ;;qBAIK,EAAE;
|
|
1
|
+
{"version":3,"file":"jump-badge.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,QAAQ;;qBAIK,EAAE;uBAKsD,SAAS;yBAKnC,OAAO;oBAKrC,KAAK;uBAKF,KAAK;;IAEhC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,6DAAM,IAAI,EAAC,QAAQ,GAAQ;YAC1B,IAAI,CAAC,KAAK,CACN,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-badge',\n styleUrl: 'jump-badge.scss',\n shadow: true,\n})\nexport class AppBadge {\n /**\n * Indicates the label of the badge\n */\n @Prop() label: string = '';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() variant: 'primary'|'secondary'|'neutral'|'warning'|'success'|'danger' = 'primary';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() dimension: 'large'|'small'|'dot'|'microdot' = 'large';\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() soft: boolean = false;\n\n /**\n * Indicates the variant of the badge\n */\n @Prop() outline: boolean = false;\n\n render() {\n return (\n <Host>\n <slot name=\"prefix\"></slot>\n {this.label}\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,26 +1,111 @@
|
|
|
1
|
+
import { generateAttributesFromArgs } from "../../utils/utils";
|
|
1
2
|
export default {
|
|
2
|
-
title: 'Components/Badge/
|
|
3
|
+
title: 'Components/Badge/Badge',
|
|
3
4
|
tags: ['autodocs'],
|
|
4
5
|
argTypes: {
|
|
5
6
|
label: {
|
|
6
|
-
name: '
|
|
7
|
+
name: 'label',
|
|
7
8
|
description: 'inserire la scritta che sarà visualizzata nel badge',
|
|
8
9
|
control: 'text',
|
|
9
10
|
},
|
|
10
11
|
variant: {
|
|
11
|
-
name: '
|
|
12
|
+
name: 'variant',
|
|
12
13
|
description: 'scegliere il colore dell badge',
|
|
13
|
-
control: '
|
|
14
|
-
options: [
|
|
14
|
+
control: 'select',
|
|
15
|
+
options: [
|
|
16
|
+
'primary',
|
|
17
|
+
'secondary',
|
|
18
|
+
'neutral',
|
|
19
|
+
'warning',
|
|
20
|
+
'success',
|
|
21
|
+
'danger',
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
outline: {
|
|
25
|
+
name: 'outline',
|
|
26
|
+
description: 'scegliere se il badge deve essere pieno o solo il contorno',
|
|
27
|
+
control: 'boolean',
|
|
28
|
+
},
|
|
29
|
+
soft: {
|
|
30
|
+
name: 'soft',
|
|
31
|
+
description: 'scegliere se il badge deve avere i bordi arrotondati',
|
|
32
|
+
control: 'boolean',
|
|
33
|
+
},
|
|
34
|
+
dimension: {
|
|
35
|
+
name: 'dimension',
|
|
36
|
+
description: 'scegliere la dimensione del badge',
|
|
37
|
+
control: 'select',
|
|
38
|
+
options: [
|
|
39
|
+
'large',
|
|
40
|
+
'small',
|
|
41
|
+
'dot',
|
|
42
|
+
'microdot',
|
|
43
|
+
],
|
|
15
44
|
},
|
|
16
45
|
}
|
|
17
46
|
};
|
|
18
47
|
const Template = (args) => {
|
|
19
|
-
|
|
20
|
-
return `<jump-badge
|
|
48
|
+
const attributes = generateAttributesFromArgs(args);
|
|
49
|
+
return `<jump-badge ${attributes}>${args.label}</jump-badge>`;
|
|
50
|
+
};
|
|
51
|
+
const TemplateIcon = (args) => {
|
|
52
|
+
const attributes = generateAttributesFromArgs(args);
|
|
53
|
+
return `<jump-badge ${attributes}><jump-icon slot="prefix" name="circle-exclamation" category="regular"></jump-icon> ${args.label}</jump-badge>`;
|
|
21
54
|
};
|
|
22
55
|
export const Badge = Template.bind({});
|
|
23
56
|
Badge.args = {
|
|
24
|
-
label: 'badge'
|
|
57
|
+
label: 'badge',
|
|
58
|
+
variant: 'primary',
|
|
59
|
+
outline: false,
|
|
60
|
+
soft: false,
|
|
61
|
+
dimension: 'large'
|
|
62
|
+
};
|
|
63
|
+
export const IconBadge = TemplateIcon.bind({});
|
|
64
|
+
IconBadge.args = {
|
|
65
|
+
label: 'badge',
|
|
66
|
+
variant: 'secondary',
|
|
67
|
+
outline: false,
|
|
68
|
+
soft: false,
|
|
69
|
+
dimension: 'large'
|
|
70
|
+
};
|
|
71
|
+
export const Outline = Template.bind({});
|
|
72
|
+
Outline.args = {
|
|
73
|
+
label: 'badge',
|
|
74
|
+
variant: 'secondary',
|
|
75
|
+
outline: true,
|
|
76
|
+
soft: false,
|
|
77
|
+
dimension: 'large'
|
|
78
|
+
};
|
|
79
|
+
export const Soft = Template.bind({});
|
|
80
|
+
Soft.args = {
|
|
81
|
+
label: 'badge',
|
|
82
|
+
variant: 'neutral',
|
|
83
|
+
outline: false,
|
|
84
|
+
soft: true,
|
|
85
|
+
dimension: 'large'
|
|
86
|
+
};
|
|
87
|
+
export const Small = Template.bind({});
|
|
88
|
+
Small.args = {
|
|
89
|
+
label: 'badge',
|
|
90
|
+
variant: 'warning',
|
|
91
|
+
outline: false,
|
|
92
|
+
soft: true,
|
|
93
|
+
dimension: 'small'
|
|
94
|
+
};
|
|
95
|
+
export const Dot = Template.bind({});
|
|
96
|
+
Dot.args = {
|
|
97
|
+
label: '1',
|
|
98
|
+
variant: 'success',
|
|
99
|
+
outline: false,
|
|
100
|
+
soft: true,
|
|
101
|
+
dimension: 'dot'
|
|
102
|
+
};
|
|
103
|
+
export const MicroDot = Template.bind({});
|
|
104
|
+
MicroDot.args = {
|
|
105
|
+
label: '',
|
|
106
|
+
variant: 'danger',
|
|
107
|
+
outline: false,
|
|
108
|
+
soft: false,
|
|
109
|
+
dimension: 'microdot'
|
|
25
110
|
};
|
|
26
111
|
//# sourceMappingURL=jump-badge.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jump-badge.stories.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"jump-badge.stories.js","sourceRoot":"","sources":["../../../src/components/jump-badge/jump-badge.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Badge/Badge',\n tags: ['autodocs'],\n argTypes: {\n label: {\n name: 'label',\n description: 'inserire la scritta che sarà visualizzata nel badge',\n control: 'text',\n },\n variant: {\n name: 'variant',\n description: 'scegliere il colore dell badge',\n control: 'select',\n options: [\n 'primary',\n 'secondary',\n 'neutral',\n 'warning',\n 'success',\n 'danger',\n ],\n },\n outline: {\n name: 'outline',\n description: 'scegliere se il badge deve essere pieno o solo il contorno',\n control: 'boolean',\n },\n soft: {\n name: 'soft',\n description: 'scegliere se il badge deve avere i bordi arrotondati',\n control: 'boolean',\n },\n dimension: {\n name: 'dimension',\n description: 'scegliere la dimensione del badge',\n control: 'select',\n options: [\n 'large',\n 'small',\n 'dot',\n 'microdot',\n ],\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-badge ${attributes}>${args.label}</jump-badge>`\n}\n\nconst TemplateIcon = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-badge ${attributes}><jump-icon slot=\"prefix\" name=\"circle-exclamation\" category=\"regular\"></jump-icon> ${args.label}</jump-badge>`\n}\n\nexport const Badge = Template.bind({});\nBadge.args = {\n label: 'badge',\n variant: 'primary',\n outline: false,\n soft: false,\n dimension: 'large'\n};\n\nexport const IconBadge = TemplateIcon.bind({});\nIconBadge.args = {\n label: 'badge',\n variant: 'secondary',\n outline: false,\n soft: false,\n dimension: 'large'\n};\n\nexport const Outline = Template.bind({});\nOutline.args = {\n label: 'badge',\n variant: 'secondary',\n outline: true,\n soft: false,\n dimension: 'large'\n};\n\nexport const Soft = Template.bind({});\nSoft.args = {\n label: 'badge',\n variant: 'neutral',\n outline: false,\n soft: true,\n dimension: 'large'\n};\n\nexport const Small = Template.bind({});\nSmall.args = {\n label: 'badge',\n variant: 'warning',\n outline: false,\n soft: true,\n dimension: 'small'\n};\n\nexport const Dot = Template.bind({});\nDot.args = {\n label: '1',\n variant: 'success',\n outline: false,\n soft: true,\n dimension: 'dot'\n};\n\nexport const MicroDot = Template.bind({});\nMicroDot.args = {\n label: '',\n variant: 'danger',\n outline: false,\n soft: false,\n dimension: 'microdot'\n};\n"]}
|