@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,328 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JumpFiltergroup {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.name = 'tax-name';
|
|
5
|
+
this.heading = 'Titolo del filtro';
|
|
6
|
+
this.otherLabel = 'Mostra altro';
|
|
7
|
+
this.lessLabel = 'Mostra meno';
|
|
8
|
+
this.maxElements = 8;
|
|
9
|
+
this.variant = 'default';
|
|
10
|
+
this.values = [];
|
|
11
|
+
this.value = '';
|
|
12
|
+
this.slotItems = undefined;
|
|
13
|
+
this.inputs = [];
|
|
14
|
+
this.showMore = true;
|
|
15
|
+
}
|
|
16
|
+
async getValues() {
|
|
17
|
+
return this.values;
|
|
18
|
+
}
|
|
19
|
+
async getActiveAmount() {
|
|
20
|
+
return this.values.length;
|
|
21
|
+
}
|
|
22
|
+
async getInputs() {
|
|
23
|
+
return this.inputs;
|
|
24
|
+
}
|
|
25
|
+
async getName() {
|
|
26
|
+
return this.name;
|
|
27
|
+
}
|
|
28
|
+
toggleHiddenItems() {
|
|
29
|
+
this.slotItemsWrapper.assignedElements().forEach((item, index) => {
|
|
30
|
+
if (index > this.maxElements) {
|
|
31
|
+
item.setAttribute('data-hide', this.showMore ? 'true' : 'false');
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
handleShowMore() {
|
|
36
|
+
this.showMore = !this.showMore;
|
|
37
|
+
this.toggleHiddenItems();
|
|
38
|
+
}
|
|
39
|
+
handleChange(event) {
|
|
40
|
+
const target = event.target;
|
|
41
|
+
const newValue = target.value;
|
|
42
|
+
if (target.tagName === 'INPUT') {
|
|
43
|
+
if (target.type === 'checkbox') {
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
if (target.checked) {
|
|
46
|
+
this.values.push(newValue);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const index = this.values.indexOf(newValue);
|
|
50
|
+
if (index !== -1) {
|
|
51
|
+
this.values.splice(index, 1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else if (target.type === 'radio') {
|
|
56
|
+
// Se è un input radio selezionato, imposta il valore e aggiorna this.values
|
|
57
|
+
this.value = newValue;
|
|
58
|
+
this.values = [newValue]; // Assicurati che this.values contenga solo il valore selezionato
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else if (target.tagName === 'SELECT') {
|
|
62
|
+
// Se è un select, aggiorna semplicemente il valore
|
|
63
|
+
this.value = newValue;
|
|
64
|
+
this.values = [newValue];
|
|
65
|
+
}
|
|
66
|
+
// Emit event con i valori aggiornati
|
|
67
|
+
this.change.emit({
|
|
68
|
+
name: this.name,
|
|
69
|
+
values: this.values,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
componentDidLoad() {
|
|
73
|
+
this.slotItems = this.slotItemsWrapper.assignedElements();
|
|
74
|
+
this.slotItemsWrapper.addEventListener('change', this.handleChange.bind(this));
|
|
75
|
+
let index = 0;
|
|
76
|
+
this.slotItems.forEach((item) => {
|
|
77
|
+
if (index > this.maxElements) {
|
|
78
|
+
item.setAttribute('data-hide', 'true');
|
|
79
|
+
}
|
|
80
|
+
if (item.tagName === 'INPUT' || item.tagName === 'SELECT') {
|
|
81
|
+
this.inputs.push(item);
|
|
82
|
+
if (item.tagName === 'INPUT' && item.type === 'radio') {
|
|
83
|
+
item.name = this.name;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const inputs = item.querySelectorAll('input, select');
|
|
88
|
+
if (inputs.length > 0) {
|
|
89
|
+
inputs.forEach((input) => {
|
|
90
|
+
this.inputs.push(input);
|
|
91
|
+
if (input.tagName === 'INPUT' && input.type === 'radio') {
|
|
92
|
+
input.name = this.name;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
index++;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
return (h(Host, { key: '6ea498729a7279ad7b686ef158e6d912c7ec86ce' }, this.heading && h("h5", { key: 'a4d4a1b71dec49d90bd92a30c2335c8a69034906' }, this.heading), h("div", { key: '215a8386f89ba7026b2e1b05aad67157e7f512d6', class: "filterGroup" }, h("slot", { key: '6e96d228078df165e364adccae8d6dceac8626f4', ref: (el) => (this.slotItemsWrapper = el) })), this.inputs.length > this.maxElements &&
|
|
102
|
+
h("jump-button", { key: '6f1a595c19d8d7528b8f99d3665607e56b4c1d27', variant: "primary", size: "small", text: true, name: this.showMore ? this.otherLabel : this.lessLabel, "aria-label": this.showMore ? this.otherLabel : this.lessLabel, onClick: () => this.handleShowMore() }, this.showMore ? this.otherLabel : this.lessLabel, h("jump-icon", { key: '79e9c1540e53fee842bc5ba0658b0437eddbf47d', slot: "suffix", name: this.showMore ? 'chevron-down' : 'chevron-down' }))));
|
|
103
|
+
}
|
|
104
|
+
static get is() { return "jump-filtergroup"; }
|
|
105
|
+
static get encapsulation() { return "shadow"; }
|
|
106
|
+
static get originalStyleUrls() {
|
|
107
|
+
return {
|
|
108
|
+
"$": ["jump-filtergroup.scss"]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get styleUrls() {
|
|
112
|
+
return {
|
|
113
|
+
"$": ["jump-filtergroup.css"]
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static get properties() {
|
|
117
|
+
return {
|
|
118
|
+
"name": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "string",
|
|
123
|
+
"resolved": "string",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"attribute": "name",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "'tax-name'"
|
|
135
|
+
},
|
|
136
|
+
"heading": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": ""
|
|
149
|
+
},
|
|
150
|
+
"attribute": "heading",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "'Titolo del filtro'"
|
|
153
|
+
},
|
|
154
|
+
"otherLabel": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "string",
|
|
159
|
+
"resolved": "string",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": ""
|
|
167
|
+
},
|
|
168
|
+
"attribute": "other-label",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "'Mostra altro'"
|
|
171
|
+
},
|
|
172
|
+
"lessLabel": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": ""
|
|
185
|
+
},
|
|
186
|
+
"attribute": "less-label",
|
|
187
|
+
"reflect": false,
|
|
188
|
+
"defaultValue": "'Mostra meno'"
|
|
189
|
+
},
|
|
190
|
+
"maxElements": {
|
|
191
|
+
"type": "number",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "number",
|
|
195
|
+
"resolved": "number",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": ""
|
|
203
|
+
},
|
|
204
|
+
"attribute": "max-elements",
|
|
205
|
+
"reflect": false,
|
|
206
|
+
"defaultValue": "8"
|
|
207
|
+
},
|
|
208
|
+
"variant": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "'accordion' | 'default'",
|
|
213
|
+
"resolved": "\"accordion\" | \"default\"",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"attribute": "variant",
|
|
223
|
+
"reflect": false,
|
|
224
|
+
"defaultValue": "'default'"
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
static get states() {
|
|
229
|
+
return {
|
|
230
|
+
"values": {},
|
|
231
|
+
"value": {},
|
|
232
|
+
"slotItems": {},
|
|
233
|
+
"inputs": {},
|
|
234
|
+
"showMore": {}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
static get events() {
|
|
238
|
+
return [{
|
|
239
|
+
"method": "change",
|
|
240
|
+
"name": "jump-filterchange",
|
|
241
|
+
"bubbles": true,
|
|
242
|
+
"cancelable": true,
|
|
243
|
+
"composed": true,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "any",
|
|
250
|
+
"resolved": "any",
|
|
251
|
+
"references": {}
|
|
252
|
+
}
|
|
253
|
+
}];
|
|
254
|
+
}
|
|
255
|
+
static get methods() {
|
|
256
|
+
return {
|
|
257
|
+
"getValues": {
|
|
258
|
+
"complexType": {
|
|
259
|
+
"signature": "() => Promise<string[]>",
|
|
260
|
+
"parameters": [],
|
|
261
|
+
"references": {
|
|
262
|
+
"Promise": {
|
|
263
|
+
"location": "global",
|
|
264
|
+
"id": "global::Promise"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"return": "Promise<string[]>"
|
|
268
|
+
},
|
|
269
|
+
"docs": {
|
|
270
|
+
"text": "",
|
|
271
|
+
"tags": []
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"getActiveAmount": {
|
|
275
|
+
"complexType": {
|
|
276
|
+
"signature": "() => Promise<number>",
|
|
277
|
+
"parameters": [],
|
|
278
|
+
"references": {
|
|
279
|
+
"Promise": {
|
|
280
|
+
"location": "global",
|
|
281
|
+
"id": "global::Promise"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"return": "Promise<number>"
|
|
285
|
+
},
|
|
286
|
+
"docs": {
|
|
287
|
+
"text": "",
|
|
288
|
+
"tags": []
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"getInputs": {
|
|
292
|
+
"complexType": {
|
|
293
|
+
"signature": "() => Promise<any>",
|
|
294
|
+
"parameters": [],
|
|
295
|
+
"references": {
|
|
296
|
+
"Promise": {
|
|
297
|
+
"location": "global",
|
|
298
|
+
"id": "global::Promise"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"return": "Promise<any>"
|
|
302
|
+
},
|
|
303
|
+
"docs": {
|
|
304
|
+
"text": "",
|
|
305
|
+
"tags": []
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"getName": {
|
|
309
|
+
"complexType": {
|
|
310
|
+
"signature": "() => Promise<string>",
|
|
311
|
+
"parameters": [],
|
|
312
|
+
"references": {
|
|
313
|
+
"Promise": {
|
|
314
|
+
"location": "global",
|
|
315
|
+
"id": "global::Promise"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"return": "Promise<string>"
|
|
319
|
+
},
|
|
320
|
+
"docs": {
|
|
321
|
+
"text": "",
|
|
322
|
+
"tags": []
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
//# sourceMappingURL=jump-filtergroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-filtergroup.js","sourceRoot":"","sources":["../../../src/components/jump-filtergroup/jump-filtergroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAO/E,MAAM,OAAO,eAAe;;oBACH,UAAU;uBACP,mBAAmB;0BAChB,cAAc;yBACf,aAAa;2BACX,CAAC;uBAEY,S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CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,gBAC9E,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,EAC5D,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE;oBAC9C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS;oBACjD,kEAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,GAAc,CAChF,CAEX,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Event, Method } from '@stencil/core';\n\n@Component({\n tag: 'jump-filtergroup',\n styleUrl: 'jump-filtergroup.scss',\n shadow: true,\n})\nexport class JumpFiltergroup {\n @Prop() name: string = 'tax-name';\n @Prop() heading: string = 'Titolo del filtro';\n @Prop() otherLabel: string = 'Mostra altro';\n @Prop() lessLabel: string = 'Mostra meno';\n @Prop() maxElements: number = 8;\n //TODO: Add Accordion variant within jump-acccordion component\n @Prop() variant: 'accordion' | 'default' = 'default';\n\n @State() values: string[] = [];\n @State() value: string = '';\n @State() slotItems: any;\n @State() inputs: any = [];\n @State() showMore: boolean = true;\n\n @Event({ eventName: 'jump-filterchange' }) change;\n\n slotItemsWrapper: HTMLSlotElement;\n\n @Method('getValues')\n async getValues() {\n return this.values;\n }\n\n @Method('getActiveAmount')\n async getActiveAmount() {\n return this.values.length;\n }\n\n @Method('getInputs')\n async getInputs() {\n return this.inputs;\n }\n\n @Method('getName')\n async getName() {\n return this.name;\n }\n\n toggleHiddenItems() {\n this.slotItemsWrapper.assignedElements().forEach((item, index) => {\n if(index > this.maxElements) {\n item.setAttribute('data-hide', this.showMore ? 'true' : 'false');\n }\n });\n }\n\n handleShowMore() {\n this.showMore = !this.showMore;\n this.toggleHiddenItems();\n }\n\n handleChange(event: Event) {\n const target = event.target as HTMLInputElement | HTMLSelectElement;\n const newValue = target.value;\n\n if (target.tagName === 'INPUT') {\n if (target.type === 'checkbox') {\n // @ts-ignore\n if (target.checked) {\n this.values.push(newValue);\n } else {\n const index = this.values.indexOf(newValue);\n if (index !== -1) {\n this.values.splice(index, 1);\n }\n }\n } else if (target.type === 'radio') {\n // Se è un input radio selezionato, imposta il valore e aggiorna this.values\n this.value = newValue;\n this.values = [newValue]; // Assicurati che this.values contenga solo il valore selezionato\n }\n } else if (target.tagName === 'SELECT') {\n // Se è un select, aggiorna semplicemente il valore\n this.value = newValue;\n this.values = [newValue];\n }\n\n // Emit event con i valori aggiornati\n this.change.emit({\n name: this.name,\n values: this.values,\n });\n }\n\n componentDidLoad() {\n this.slotItems = this.slotItemsWrapper.assignedElements();\n this.slotItemsWrapper.addEventListener('change', this.handleChange.bind(this));\n\n let index = 0;\n this.slotItems.forEach((item) => {\n if(index > this.maxElements) {\n item.setAttribute('data-hide', 'true');\n }\n if (item.tagName === 'INPUT' || item.tagName === 'SELECT') {\n this.inputs.push(item);\n if (item.tagName === 'INPUT' && item.type === 'radio') {\n item.name = this.name;\n }\n } else {\n const inputs = item.querySelectorAll('input, select');\n if (inputs.length > 0) {\n inputs.forEach((input) => {\n this.inputs.push(input);\n\n if (input.tagName === 'INPUT' && input.type === 'radio') {\n input.name = this.name;\n }\n });\n }\n }\n index++;\n });\n }\n\n render() {\n return (\n <Host>\n {this.heading && <h5>{this.heading}</h5>}\n <div class=\"filterGroup\">\n <slot ref={(el) => (this.slotItemsWrapper = el as HTMLSlotElement)}></slot>\n </div>\n {this.inputs.length > this.maxElements &&\n <jump-button variant=\"primary\" size=\"small\" text name={this.showMore ? this.otherLabel : this.lessLabel}\n aria-label={this.showMore ? this.otherLabel : this.lessLabel}\n onClick={() => this.handleShowMore() }>\n {this.showMore ? this.otherLabel : this.lessLabel}\n <jump-icon slot=\"suffix\" name={this.showMore ? 'chevron-down' : 'chevron-down'}></jump-icon>\n </jump-button>\n }\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { generateAttributesFromArgs, formatHtml } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Filters/JumpFilterGroup',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
//list all props
|
|
7
|
+
name: {
|
|
8
|
+
control: {
|
|
9
|
+
type: 'text',
|
|
10
|
+
description: 'Nome del filtro',
|
|
11
|
+
defaultValue: 'tax-name'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
control: {
|
|
16
|
+
type: 'text',
|
|
17
|
+
description: 'Titolo del gruppo di filtri',
|
|
18
|
+
defaultValue: 'Titolo del gruppo di filtri'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
otherLabel: {
|
|
22
|
+
control: {
|
|
23
|
+
type: 'text',
|
|
24
|
+
description: 'Label per il pulsante di espansione',
|
|
25
|
+
defaultValue: 'Mostra altro'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
lessLabel: {
|
|
29
|
+
control: {
|
|
30
|
+
type: 'text',
|
|
31
|
+
description: 'Label per il pulsante di chiusura',
|
|
32
|
+
defaultValue: 'Mostra meno'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
maxElements: {
|
|
36
|
+
control: {
|
|
37
|
+
type: 'number',
|
|
38
|
+
description: 'Numero massimo di elementi visibili'
|
|
39
|
+
},
|
|
40
|
+
defaultValue: 8
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const Template = (args) => {
|
|
45
|
+
const attributes = generateAttributesFromArgs(args);
|
|
46
|
+
return formatHtml(`<jump-filtergroup ${attributes}></jump-filtergroup>`);
|
|
47
|
+
};
|
|
48
|
+
export const Default = Template.bind({});
|
|
49
|
+
//# sourceMappingURL=jump-filtergroup.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-filtergroup.stories.js","sourceRoot":"","sources":["../../../src/components/jump-filtergroup/jump-filtergroup.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE1E,eAAe;IACb,KAAK,EAAE,oCAAoC;IAC3C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,gBAAgB;QAChB,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,iBAAiB;gBAC9B,YAAY,EAAE,UAAU;aACzB;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,6BAA6B;gBAC1C,YAAY,EAAE,6BAA6B;aAC5C;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,qCAAqC;gBAClD,YAAY,EAAE,cAAc;aAC7B;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,mCAAmC;gBAChD,YAAY,EAAE,aAAa;aAC5B;SACF;QACD,WAAW,EAAE;YACX,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;YACD,YAAY,EAAE,CAAC;SAChB;KACF;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC,qBAAqB,UAAU,sBAAsB,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { generateAttributesFromArgs, formatHtml} from '../../utils/utils';\n\nexport default {\n title: 'Components/Filters/JumpFilterGroup',\n tags: ['autodocs'],\n argTypes: {\n //list all props\n name: {\n control: {\n type: 'text',\n description: 'Nome del filtro',\n defaultValue: 'tax-name'\n }\n },\n title: {\n control: {\n type: 'text',\n description: 'Titolo del gruppo di filtri',\n defaultValue: 'Titolo del gruppo di filtri'\n }\n },\n otherLabel: {\n control: {\n type: 'text',\n description: 'Label per il pulsante di espansione',\n defaultValue: 'Mostra altro'\n }\n },\n lessLabel: {\n control: {\n type: 'text',\n description: 'Label per il pulsante di chiusura',\n defaultValue: 'Mostra meno'\n }\n },\n maxElements: {\n control: {\n type: 'number',\n description: 'Numero massimo di elementi visibili'\n },\n defaultValue: 8\n }\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return formatHtml(`<jump-filtergroup ${attributes}></jump-filtergroup>`);\n};\n\nexport const Default = Template.bind({});\n"]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { generateAttributesFromArgs } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Icon/Custom',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
library: {
|
|
7
|
+
name: 'library',
|
|
8
|
+
control: 'select',
|
|
9
|
+
options: {
|
|
10
|
+
custom: 'custom',
|
|
11
|
+
},
|
|
12
|
+
defaultValue: 'custom',
|
|
13
|
+
description: "Seleziona la libreria dell'icona",
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
name: 'size',
|
|
17
|
+
control: 'select',
|
|
18
|
+
options: {
|
|
19
|
+
inherit: 'inherit',
|
|
20
|
+
small: 'small',
|
|
21
|
+
medium: 'medium',
|
|
22
|
+
large: 'large',
|
|
23
|
+
},
|
|
24
|
+
defaultValue: 'inherit',
|
|
25
|
+
description: "Seleziona la dimensione dell'icona",
|
|
26
|
+
},
|
|
27
|
+
label: {
|
|
28
|
+
name: 'label',
|
|
29
|
+
control: 'text',
|
|
30
|
+
description: "Aggiungi una label all'icona",
|
|
31
|
+
},
|
|
32
|
+
src: {
|
|
33
|
+
name: 'src',
|
|
34
|
+
control: 'text',
|
|
35
|
+
description: "Aggiungi un'immagine all'icona",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const TemplateDefault = args => {
|
|
40
|
+
const attributes = generateAttributesFromArgs(args);
|
|
41
|
+
return `<jump-icon ${attributes}></jump-icon>`;
|
|
42
|
+
};
|
|
43
|
+
const Template = args => {
|
|
44
|
+
const attributes = generateAttributesFromArgs(args);
|
|
45
|
+
if (args.size === 'inherit') {
|
|
46
|
+
return `
|
|
47
|
+
<jump-icon ${attributes} style="width: 5rem; height: 5rem;"></jump-icon>
|
|
48
|
+
<br>
|
|
49
|
+
<br>
|
|
50
|
+
Se l'attributo size è impostato su 'inherit', l'icona eredita la dimensione dallo stile CSS, che sia sull'elemento stesso o su un elemento padre.
|
|
51
|
+
`;
|
|
52
|
+
}
|
|
53
|
+
return `<jump-icon ${attributes}></jump-icon>`;
|
|
54
|
+
};
|
|
55
|
+
export const IconDefault = TemplateDefault.bind({});
|
|
56
|
+
IconDefault.args = {
|
|
57
|
+
library: 'custom',
|
|
58
|
+
size: 'small',
|
|
59
|
+
src: 'https://shoelace.style/assets/images/shoe.svg',
|
|
60
|
+
};
|
|
61
|
+
export const IconInherit = Template.bind({});
|
|
62
|
+
IconInherit.args = {
|
|
63
|
+
library: 'custom',
|
|
64
|
+
size: 'inherit',
|
|
65
|
+
src: 'https://shoelace.style/assets/images/shoe.svg',
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=jump-icon-custom.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-icon-custom.stories.js","sourceRoot":"","sources":["../../../src/components/jump-icon/jump-icon-custom.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,MAAM,EAAE,QAAQ;aACjB;YACD,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,kCAAkC;SAChD;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE,OAAO;aACf;YACD,YAAY,EAAE,SAAS;YACvB,WAAW,EAAE,oCAAoC;SAClD;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,8BAA8B;SAC5C;QACD,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,gCAAgC;SAC9C;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;IAC7B,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,cAAc,UAAU,eAAe,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE;IACtB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO;iBACM,UAAU;;;;KAItB,CAAC;IACJ,CAAC;IACD,OAAO,cAAc,UAAU,eAAe,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,WAAW,CAAC,IAAI,GAAG;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,+CAA+C;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,+CAA+C;CACrD,CAAC","sourcesContent":["import { generateAttributesFromArgs } from '../../utils/utils';\n\nexport default {\n title: 'Components/Icon/Custom',\n tags: ['autodocs'],\n argTypes: {\n library: {\n name: 'library',\n control: 'select',\n options: {\n custom: 'custom',\n },\n defaultValue: 'custom',\n description: \"Seleziona la libreria dell'icona\",\n },\n size: {\n name: 'size',\n control: 'select',\n options: {\n inherit: 'inherit',\n small: 'small',\n medium: 'medium',\n large: 'large',\n },\n defaultValue: 'inherit',\n description: \"Seleziona la dimensione dell'icona\",\n },\n label: {\n name: 'label',\n control: 'text',\n description: \"Aggiungi una label all'icona\",\n },\n src: {\n name: 'src',\n control: 'text',\n description: \"Aggiungi un'immagine all'icona\",\n },\n },\n};\n\nconst TemplateDefault = args => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-icon ${attributes}></jump-icon>`;\n};\n\nconst Template = args => {\n const attributes = generateAttributesFromArgs(args);\n if (args.size === 'inherit') {\n return `\n <jump-icon ${attributes} style=\"width: 5rem; height: 5rem;\"></jump-icon>\n <br>\n <br> \n Se l'attributo size è impostato su 'inherit', l'icona eredita la dimensione dallo stile CSS, che sia sull'elemento stesso o su un elemento padre.\n `;\n }\n return `<jump-icon ${attributes}></jump-icon>`;\n};\n\nexport const IconDefault = TemplateDefault.bind({});\nIconDefault.args = {\n library: 'custom',\n size: 'small',\n src: 'https://shoelace.style/assets/images/shoe.svg',\n};\n\nexport const IconInherit = Template.bind({});\nIconInherit.args = {\n library: 'custom',\n size: 'inherit',\n src: 'https://shoelace.style/assets/images/shoe.svg',\n};\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { generateAttributesFromArgs } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Icon/Font Awesome/Brands',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
library: {
|
|
7
|
+
name: 'library',
|
|
8
|
+
control: 'select',
|
|
9
|
+
options: ['fa'],
|
|
10
|
+
defaultValue: 'fa',
|
|
11
|
+
description: "Seleziona la libreria dell'icona",
|
|
12
|
+
},
|
|
13
|
+
category: {
|
|
14
|
+
name: 'category',
|
|
15
|
+
control: 'select',
|
|
16
|
+
options: ['brands'],
|
|
17
|
+
description: "Seleziona la categoria dell'icona",
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
name: 'name',
|
|
21
|
+
control: 'text',
|
|
22
|
+
defaultValue: '42-group',
|
|
23
|
+
description: "Seleziona il nome dal seguente <a href='https://fontawesome.com/search?o=r&f=brands' target='_blank'>link</a>",
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
name: 'size',
|
|
27
|
+
control: 'select',
|
|
28
|
+
options: {
|
|
29
|
+
inherit: 'inherit',
|
|
30
|
+
small: 'small',
|
|
31
|
+
medium: 'medium',
|
|
32
|
+
large: 'large',
|
|
33
|
+
},
|
|
34
|
+
defaultValue: 'inherit',
|
|
35
|
+
description: "Seleziona la dimensione dell'icona",
|
|
36
|
+
},
|
|
37
|
+
label: {
|
|
38
|
+
name: 'label',
|
|
39
|
+
control: 'text',
|
|
40
|
+
description: "Aggiungi una label all'icona",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const TemplateDefault = args => {
|
|
45
|
+
const attributes = generateAttributesFromArgs(args);
|
|
46
|
+
return `<jump-icon ${attributes}></jump-icon>`;
|
|
47
|
+
};
|
|
48
|
+
const Template = args => {
|
|
49
|
+
const attributes = generateAttributesFromArgs(args);
|
|
50
|
+
if (args.size === 'inherit') {
|
|
51
|
+
return `<jump-icon ${attributes} style="font-size: 5rem;"></jump-icon>
|
|
52
|
+
<br>
|
|
53
|
+
<br>
|
|
54
|
+
Se l'attributo size è impostato su 'inherit', l'icona eredita la dimensione dallo stile CSS, che sia sull'elemento stesso o su un elemento padre.`;
|
|
55
|
+
}
|
|
56
|
+
return `<jump-icon ${attributes}></jump-icon
|
|
57
|
+
>`;
|
|
58
|
+
};
|
|
59
|
+
export const IconDefault = TemplateDefault.bind({});
|
|
60
|
+
IconDefault.args = {
|
|
61
|
+
library: 'fa',
|
|
62
|
+
category: 'brands',
|
|
63
|
+
name: '42-group',
|
|
64
|
+
size: 'small',
|
|
65
|
+
};
|
|
66
|
+
export const IconInherit = Template.bind({});
|
|
67
|
+
IconInherit.args = {
|
|
68
|
+
library: 'fa',
|
|
69
|
+
category: 'brands',
|
|
70
|
+
name: '42-group',
|
|
71
|
+
size: 'inherit',
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=jump-icon-fa-brands.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-icon-fa-brands.stories.js","sourceRoot":"","sources":["../../../src/components/jump-icon/jump-icon-fa-brands.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAe;IACb,KAAK,EAAE,qCAAqC;IAC5C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAA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AAC;AACpD,WAAW,CAAC,IAAI,GAAG;IACjB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,OAAO;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,SAAS;CAChB,CAAC","sourcesContent":["import { generateAttributesFromArgs } from '../../utils/utils';\n\nexport default {\n title: 'Components/Icon/Font Awesome/Brands',\n tags: ['autodocs'],\n argTypes: {\n library: {\n name: 'library',\n control: 'select',\n options: ['fa'],\n defaultValue: 'fa',\n description: \"Seleziona la libreria dell'icona\",\n },\n category: {\n name: 'category',\n control: 'select',\n options: ['brands'],\n description: \"Seleziona la categoria dell'icona\",\n },\n name: {\n name: 'name',\n control: 'text',\n defaultValue: '42-group',\n description: \"Seleziona il nome dal seguente <a href='https://fontawesome.com/search?o=r&f=brands' target='_blank'>link</a>\",\n },\n size: {\n name: 'size',\n control: 'select',\n options: {\n inherit: 'inherit',\n small: 'small',\n medium: 'medium',\n large: 'large',\n },\n defaultValue: 'inherit',\n description: \"Seleziona la dimensione dell'icona\",\n },\n label: {\n name: 'label',\n control: 'text',\n description: \"Aggiungi una label all'icona\",\n },\n },\n};\n\nconst TemplateDefault = args => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-icon ${attributes}></jump-icon>`;\n};\n\nconst Template = args => {\n const attributes = generateAttributesFromArgs(args);\n if (args.size === 'inherit') {\n return `<jump-icon ${attributes} style=\"font-size: 5rem;\"></jump-icon>\n <br>\n <br> \n Se l'attributo size è impostato su 'inherit', l'icona eredita la dimensione dallo stile CSS, che sia sull'elemento stesso o su un elemento padre.`;\n }\n return `<jump-icon ${attributes}></jump-icon\n >`;\n};\n\nexport const IconDefault = TemplateDefault.bind({});\nIconDefault.args = {\n library: 'fa',\n category: 'brands',\n name: '42-group',\n size: 'small',\n};\n\nexport const IconInherit = Template.bind({});\nIconInherit.args = {\n library: 'fa',\n category: 'brands',\n name: '42-group',\n size: 'inherit',\n};\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { generateAttributesFromArgs } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Icon/Font Awesome/Duotone',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
library: {
|
|
7
|
+
name: 'library',
|
|
8
|
+
control: 'select',
|
|
9
|
+
options: ['fa'],
|
|
10
|
+
defaultValue: 'fa',
|
|
11
|
+
description: "Seleziona la libreria dell'icona",
|
|
12
|
+
},
|
|
13
|
+
category: {
|
|
14
|
+
name: 'category',
|
|
15
|
+
control: 'select',
|
|
16
|
+
options: ['duotone'],
|
|
17
|
+
description: "Seleziona la categoria dell'icona",
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
name: 'name',
|
|
21
|
+
control: 'text',
|
|
22
|
+
defaultValue: 'house',
|
|
23
|
+
description: "Seleziona il nome dal seguente <a href='https://fontawesome.com/search?o=r&s=duotone' target='_blank'>link</a>",
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
name: 'size',
|
|
27
|
+
control: 'select',
|
|
28
|
+
options: {
|
|
29
|
+
inherit: 'inherit',
|
|
30
|
+
small: 'small',
|
|
31
|
+
medium: 'medium',
|
|
32
|
+
large: 'large',
|
|
33
|
+
},
|
|
34
|
+
defaultValue: 'inherit',
|
|
35
|
+
description: "Seleziona la dimensione dell'icona",
|
|
36
|
+
},
|
|
37
|
+
label: {
|
|
38
|
+
name: 'label',
|
|
39
|
+
control: 'text',
|
|
40
|
+
description: "Aggiungi una label all'icona",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const TemplateDefault = args => {
|
|
45
|
+
const attributes = generateAttributesFromArgs(args);
|
|
46
|
+
return `<jump-icon ${attributes}></jump-icon>`;
|
|
47
|
+
};
|
|
48
|
+
const Template = args => {
|
|
49
|
+
const attributes = generateAttributesFromArgs(args);
|
|
50
|
+
if (args.size === 'inherit') {
|
|
51
|
+
return `<jump-icon ${attributes} style="font-size: 5rem;"></jump-icon>
|
|
52
|
+
<br>
|
|
53
|
+
<br>
|
|
54
|
+
Se l'attributo size è impostato su 'inherit', l'icona eredita la dimensione dallo stile CSS, che sia sull'elemento stesso o su un elemento padre.`;
|
|
55
|
+
}
|
|
56
|
+
return `<jump-icon ${attributes}></jump-icon
|
|
57
|
+
>`;
|
|
58
|
+
};
|
|
59
|
+
export const IconDefault = TemplateDefault.bind({});
|
|
60
|
+
IconDefault.args = {
|
|
61
|
+
library: 'fa',
|
|
62
|
+
category: 'duotone',
|
|
63
|
+
name: 'house',
|
|
64
|
+
size: 'small',
|
|
65
|
+
};
|
|
66
|
+
export const IconInherit = Template.bind({});
|
|
67
|
+
IconInherit.args = {
|
|
68
|
+
library: 'fa',
|
|
69
|
+
category: 'duotone',
|
|
70
|
+
name: 'house',
|
|
71
|
+
size: 'inherit',
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=jump-icon-fa-duotone.stories.js.map
|