@jumpgroup/jump-design-system 0.2.6 → 0.3.0
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-418c607f.js} +146 -2
- package/dist/{jump-design-system/p-20ceb40c.js.map → cjs/index-418c607f.js.map} +1 -1
- 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_2.cjs.entry.js +88 -0
- package/dist/cjs/jump-badge_2.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-button.cjs.entry.js +3 -3
- package/dist/cjs/jump-button.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +116 -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-icon.cjs.entry.js +540 -2363
- package/dist/cjs/jump-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination-table.cjs.entry.js +12 -5
- package/dist/cjs/jump-pagination-table.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination.cjs.entry.js +5 -4
- package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
- 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 +5 -10
- package/dist/collection/components/jump-badge/jump-badge.js +2 -1
- package/dist/collection/components/jump-badge/jump-badge.js.map +1 -1
- package/dist/collection/components/jump-badge/jump-badge.stories.js +18 -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 -4
- 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 -51
- package/dist/collection/components/jump-card/jump-card.js +2 -2
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +179 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +627 -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 +211 -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 +63 -3
- package/dist/collection/components/jump-icon/jump-icon.js +147 -9
- package/dist/collection/components/jump-icon/jump-icon.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.js +7 -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 +16 -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 +50 -0
- package/dist/collection/components/jump-quantity/jump-quantity.js +219 -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 +12 -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 +56 -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 +56 -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 +172 -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 +38 -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 +180 -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 +549 -2366
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-pagination-table.js +11 -4
- package/dist/components/jump-pagination-table.js.map +1 -1
- package/dist/components/jump-pagination.js +4 -3
- package/dist/components/jump-pagination.js.map +1 -1
- package/dist/components/jump-quantity.d.ts +11 -0
- package/dist/components/jump-quantity.js +8 -0
- package/dist/components/jump-quantity.js.map +1 -0
- package/dist/components/jump-quantity2.js +94 -0
- package/dist/components/jump-quantity2.js.map +1 -0
- package/dist/components/jump-tab-item.d.ts +11 -0
- package/dist/components/jump-tab-item.js +67 -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-056a0a66.js} +146 -3
- package/dist/esm/index-056a0a66.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_2.entry.js +83 -0
- package/dist/esm/jump-badge_2.entry.js.map +1 -0
- package/dist/esm/jump-button.entry.js +3 -3
- package/dist/esm/jump-button.entry.js.map +1 -1
- package/dist/esm/jump-card-ecommerce.entry.js +112 -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-icon.entry.js +540 -2363
- package/dist/esm/jump-icon.entry.js.map +1 -1
- package/dist/esm/jump-pagination-table.entry.js +12 -5
- package/dist/esm/jump-pagination-table.entry.js.map +1 -1
- package/dist/esm/jump-pagination.entry.js +5 -4
- package/dist/esm/jump-pagination.entry.js.map +1 -1
- 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-0dc744ce.entry.js +2 -0
- package/dist/jump-design-system/p-0dc744ce.entry.js.map +1 -0
- package/dist/jump-design-system/p-357cf73d.entry.js +66 -0
- package/dist/jump-design-system/p-357cf73d.entry.js.map +1 -0
- package/dist/jump-design-system/p-58602fcb.entry.js +2 -0
- package/dist/jump-design-system/p-58602fcb.entry.js.map +1 -0
- package/dist/jump-design-system/p-58bed455.entry.js +2 -0
- package/dist/jump-design-system/p-58bed455.entry.js.map +1 -0
- package/dist/jump-design-system/p-647ec30b.entry.js +2 -0
- package/dist/jump-design-system/p-647ec30b.entry.js.map +1 -0
- package/dist/jump-design-system/p-83e6ab6e.entry.js +2 -0
- package/dist/jump-design-system/p-83e6ab6e.entry.js.map +1 -0
- package/dist/jump-design-system/p-8ec76454.entry.js +2 -0
- package/dist/jump-design-system/p-8ec76454.entry.js.map +1 -0
- package/dist/jump-design-system/p-91794ae6.js +3 -0
- package/dist/jump-design-system/p-91794ae6.js.map +1 -0
- package/dist/jump-design-system/p-afe0cca0.entry.js +2 -0
- package/dist/jump-design-system/p-afe0cca0.entry.js.map +1 -0
- package/dist/jump-design-system/p-b2ca2e96.entry.js +2 -0
- package/dist/jump-design-system/p-b2ca2e96.entry.js.map +1 -0
- package/dist/jump-design-system/p-d58e0952.entry.js +2 -0
- package/dist/jump-design-system/p-d58e0952.entry.js.map +1 -0
- package/dist/jump-design-system/p-e2318686.entry.js +2 -0
- package/dist/jump-design-system/p-e2318686.entry.js.map +1 -0
- package/dist/jump-design-system/p-ee61c223.entry.js +2 -0
- package/dist/jump-design-system/p-ee61c223.entry.js.map +1 -0
- package/dist/jump-design-system/p-f842ff46.entry.js +2 -0
- package/dist/jump-design-system/p-f842ff46.entry.js.map +1 -0
- package/dist/jump-design-system-elements.json +370 -9
- package/dist/types/components/jump-accordion/jump-accordion.d.ts +3 -0
- package/dist/types/components/jump-badge/jump-badge.stories.d.ts +1 -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 +66 -0
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.stories.d.ts +123 -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 +32 -3
- 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 +20 -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 +40 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-inline.stories.d.ts +40 -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 +559 -6
- 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-badge.cjs.entry.js +0 -24
- package/dist/cjs/jump-badge.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 -25
- 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-badge.entry.js +0 -20
- package/dist/esm/jump-badge.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-36c7c94d.entry.js +0 -331
- package/dist/jump-design-system/p-36c7c94d.entry.js.map +0 -1
- package/dist/jump-design-system/p-700b96b4.entry.js +0 -2
- package/dist/jump-design-system/p-700b96b4.entry.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-9ad27c08.entry.js +0 -2
- package/dist/jump-design-system/p-9ad27c08.entry.js.map +0 -1
- package/dist/jump-design-system/p-c8244738.entry.js +0 -2
- package/dist/jump-design-system/p-c8244738.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/types/components/jump-icon/jump-icon.stories.d.ts +0 -19
- package/dist/types/components/jump-tab/jump-tab-inline.stories.d.ts +0 -18
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.JumpTabItem {
|
|
6
|
+
--jump-tabitem-active-color: var(--secondary-standard);
|
|
7
|
+
--jump-tabitem-color: var(--neutral-grey-secondary);
|
|
8
|
+
--jump-tabitem-hover-color: var(--neutral-grey-disabled, #CBCBCB);
|
|
9
|
+
--jump-tabitem-boxed-bg-color: var(--secondary-soft, #EDF2FA);
|
|
10
|
+
--jump-tabitem-rounded-bg-color: white;
|
|
11
|
+
font-family: var(--ff-primary);
|
|
12
|
+
}
|
|
13
|
+
.JumpTabItem.inline {
|
|
14
|
+
border-bottom: 1px solid var(--jump-tabitem-hover-color);
|
|
15
|
+
}
|
|
16
|
+
.JumpTabItem.inline:hover:not(.disabled):not(.active) {
|
|
17
|
+
border-bottom: 3px solid var(--jump-tabitem-hover-color);
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
.JumpTabItem.inline.active {
|
|
21
|
+
border-bottom: 3px solid var(--jump-tabitem-active-color);
|
|
22
|
+
}
|
|
23
|
+
.JumpTabItem__Content {
|
|
24
|
+
display: flex;
|
|
25
|
+
/*Tipologia inline */
|
|
26
|
+
/* Tipologia boxed */
|
|
27
|
+
/* Tipologia rounded */
|
|
28
|
+
/** Tipologia sheet */
|
|
29
|
+
/* Disabilitato */
|
|
30
|
+
}
|
|
31
|
+
.JumpTabItem__Content label {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
}
|
|
34
|
+
.JumpTabItem__Content.left {
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
gap: 6px;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
.JumpTabItem__Content.top {
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 2px;
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
.JumpTabItem__Content.inline {
|
|
45
|
+
color: var(--jump-tabitem-color);
|
|
46
|
+
padding: 12px 24px;
|
|
47
|
+
}
|
|
48
|
+
.JumpTabItem__Content.inline.active {
|
|
49
|
+
color: var(--jump-tabitem-active-color);
|
|
50
|
+
}
|
|
51
|
+
.JumpTabItem__Content.inline.active span {
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
}
|
|
54
|
+
.JumpTabItem__Content.boxed {
|
|
55
|
+
color: var(--jump-tabitem-color);
|
|
56
|
+
padding: 15px 39px;
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
border: 1px solid var(--jump-tabitem-boxed-bg-color);
|
|
59
|
+
}
|
|
60
|
+
.JumpTabItem__Content.boxed:hover:not(.disabled), .JumpTabItem__Content.boxed:hover:not(.active) {
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
.JumpTabItem__Content.boxed:hover:not(.disabled) span, .JumpTabItem__Content.boxed:hover:not(.active) span {
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
}
|
|
66
|
+
.JumpTabItem__Content.boxed.active {
|
|
67
|
+
color: var(--jump-tabitem-active-color);
|
|
68
|
+
background-color: var(--jump-tabitem-boxed-bg-color);
|
|
69
|
+
border: 1px solid var(--jump-tabitem-boxed-bg-color);
|
|
70
|
+
}
|
|
71
|
+
.JumpTabItem__Content.boxed.active span {
|
|
72
|
+
font-weight: bold;
|
|
73
|
+
}
|
|
74
|
+
.JumpTabItem__Content.rounded {
|
|
75
|
+
padding: 12px 32px;
|
|
76
|
+
color: var(--jump-tabitem-color);
|
|
77
|
+
}
|
|
78
|
+
.JumpTabItem__Content.rounded:hover:not(.disabled) {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
.JumpTabItem__Content.rounded:hover:not(.disabled) span {
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
}
|
|
84
|
+
.JumpTabItem__Content.rounded.active {
|
|
85
|
+
color: var(--jump-tabitem-active-color);
|
|
86
|
+
background-color: var(--jump-tabitem-rounded-bg-color);
|
|
87
|
+
border: 1px solid var(--jump-tabitem-active-color);
|
|
88
|
+
border-radius: 50px;
|
|
89
|
+
}
|
|
90
|
+
.JumpTabItem__Content.sheet {
|
|
91
|
+
padding: 12px 32px;
|
|
92
|
+
color: var(--neutral-grey-secondary);
|
|
93
|
+
}
|
|
94
|
+
.JumpTabItem__Content.sheet:hover:not(.disabled) {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
.JumpTabItem__Content.sheet:hover:not(.disabled) span {
|
|
98
|
+
font-weight: bold;
|
|
99
|
+
}
|
|
100
|
+
.JumpTabItem__Content.sheet.active {
|
|
101
|
+
color: var(--jump-tabitem-active-color);
|
|
102
|
+
background-color: var(--jump-tabitem-rounded-bg-color);
|
|
103
|
+
border-radius: 8px 8px 0px 0px;
|
|
104
|
+
}
|
|
105
|
+
.JumpTabItem__Content.disabled {
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
opacity: 0.5;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JumpTabItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.identifier = undefined;
|
|
5
|
+
this.iconName = undefined;
|
|
6
|
+
this.iconPosition = 'left';
|
|
7
|
+
this.label = '';
|
|
8
|
+
this.active = false;
|
|
9
|
+
this.disabled = false;
|
|
10
|
+
this.variant = 'inline';
|
|
11
|
+
}
|
|
12
|
+
changeTab(identifier) {
|
|
13
|
+
this.changeActiveTab.emit({ id: identifier });
|
|
14
|
+
}
|
|
15
|
+
componentDidLoad() {
|
|
16
|
+
console.log('Component has been rendered');
|
|
17
|
+
// Deve leggere la prop "variant" del componente babbo jump-tab e popolare la propria prop "variant"
|
|
18
|
+
let parentVariant = this.tabEl.parentElement.getAttribute('variant');
|
|
19
|
+
this.variant = parentVariant;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h(Host, { key: '82864ca72b0febf6a25431ad2788b11e80744d57', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) }, h("div", { key: '9275613b491731afc823f0c63be2ae797b372fa6', class: "JumpTabItem__Content " + (this.iconName ? this.iconPosition : '') + " " + (this.variant) + " " + (this.active ? 'active' : '') + " " + (this.disabled ? 'disabled' : ''), onClick: () => this.changeTab(this.identifier), id: this.identifier }, (this.iconName && (this.variant == 'inline' || this.variant == 'boxed')) &&
|
|
23
|
+
h("jump-icon", { key: 'fcd4ab436a0695fdf3ca07f2ca9d1a6343c79d56', class: "small", name: this.iconName }), h("span", { key: '1d518eb336443596c090beafe74b5186f0a1ff37', class: "label" }, this.label))));
|
|
24
|
+
}
|
|
25
|
+
static get is() { return "jump-tab-item"; }
|
|
26
|
+
static get originalStyleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["jump-tab-item.scss"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get styleUrls() {
|
|
32
|
+
return {
|
|
33
|
+
"$": ["jump-tab-item.css"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
static get properties() {
|
|
37
|
+
return {
|
|
38
|
+
"identifier": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "string",
|
|
43
|
+
"resolved": "string",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": false,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [],
|
|
50
|
+
"text": "Identifier of the tab"
|
|
51
|
+
},
|
|
52
|
+
"attribute": "identifier",
|
|
53
|
+
"reflect": false,
|
|
54
|
+
"defaultValue": "undefined"
|
|
55
|
+
},
|
|
56
|
+
"iconName": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "string",
|
|
61
|
+
"resolved": "string",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": "Name of the icon. If not provided, the icon will not be displayed"
|
|
69
|
+
},
|
|
70
|
+
"attribute": "icon-name",
|
|
71
|
+
"reflect": false,
|
|
72
|
+
"defaultValue": "undefined"
|
|
73
|
+
},
|
|
74
|
+
"iconPosition": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "string",
|
|
79
|
+
"resolved": "string",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": false,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "Icon position, apply only if the icon is present\nChoosed from \"left\", \"top\""
|
|
87
|
+
},
|
|
88
|
+
"attribute": "icon-position",
|
|
89
|
+
"reflect": false,
|
|
90
|
+
"defaultValue": "'left'"
|
|
91
|
+
},
|
|
92
|
+
"label": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "string",
|
|
97
|
+
"resolved": "string",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": ""
|
|
105
|
+
},
|
|
106
|
+
"attribute": "label",
|
|
107
|
+
"reflect": false,
|
|
108
|
+
"defaultValue": "''"
|
|
109
|
+
},
|
|
110
|
+
"active": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "boolean",
|
|
115
|
+
"resolved": "boolean",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"attribute": "active",
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"defaultValue": "false"
|
|
127
|
+
},
|
|
128
|
+
"disabled": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "boolean",
|
|
133
|
+
"resolved": "boolean",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": ""
|
|
141
|
+
},
|
|
142
|
+
"attribute": "disabled",
|
|
143
|
+
"reflect": false,
|
|
144
|
+
"defaultValue": "false"
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
static get states() {
|
|
149
|
+
return {
|
|
150
|
+
"variant": {}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
static get events() {
|
|
154
|
+
return [{
|
|
155
|
+
"method": "changeActiveTab",
|
|
156
|
+
"name": "jump-change-active-tab",
|
|
157
|
+
"bubbles": true,
|
|
158
|
+
"cancelable": true,
|
|
159
|
+
"composed": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": ""
|
|
163
|
+
},
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "any",
|
|
166
|
+
"resolved": "any",
|
|
167
|
+
"references": {}
|
|
168
|
+
}
|
|
169
|
+
}];
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=jump-tab-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-tab-item.js","sourceRoot":"","sources":["../../../src/components/jump-tab-item/jump-tab-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAC,KAAK,EAAG,CAAC,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAOrF,MAAM,OAAO,WAAW;;0BAOO,SAAS;wBAKX,SAAS;4BAML,MAAM;qBACb,EAAE;sBACA,KAAK;wBAEH,KAAK;uBAMN,QAAQ;;IAInC,SAAS,CAAC,UAAU;QAClB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAC,EAAE,EAAE,UAAU,EAAC,CAAC,CAAC;IAC9C,CAAC;IAED,gBAAgB;QACd,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QAC3C,oGAAoG;QACpG,IAAI,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QACtE,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC;IAC9B,CAAC;IAkED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,GAAG,EAAE,CAAA,CAAC,CAAC,EACjC,KAAK,EAAE,cAAc,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,GAAE,CAAC,IAAI,CAAC,OAAO,CAAC;YAC1E,4DAAK,KAAK,EAAE,uBAAuB,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU;gBACvP,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;oBACvE,kEAAW,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAc;gBAE5D,6DAAM,KAAK,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAQ,CACnC,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop,State, h, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'jump-tab-item',\n styleUrl: 'jump-tab-item.scss',\n shadow: false,\n})\nexport class JumpTabItem {\n\n /* ---------------------- @PROPERTIES ------------------------- */\n\n /**\n * Identifier of the tab\n */\n @Prop() identifier: string = undefined;\n\n /**\n * Name of the icon. If not provided, the icon will not be displayed\n */\n @Prop() iconName: string = undefined;\n\n /**\n * Icon position, apply only if the icon is present\n * Choosed from \"left\", \"top\"\n */\n @Prop() iconPosition: string = 'left';\n @Prop() label: string = '';\n @Prop() active: boolean = false;\n\n @Prop() disabled: boolean = false;\n\n /**\n * The style of the tab item\n * Choosed from \"inline\", \"boxed\", \"sheet\", \"rounded\"\n */\n @State() variant: string = 'inline';\n\n @Event({ eventName: 'jump-change-active-tab' }) changeActiveTab: EventEmitter;\n\n changeTab(identifier){\n this.changeActiveTab.emit({id: identifier});\n }\n\n componentDidLoad() {\n console.log('Component has been rendered');\n // Deve leggere la prop \"variant\" del componente babbo jump-tab e popolare la propria prop \"variant\"\n let parentVariant = this.tabEl.parentElement.getAttribute('variant');\n this.variant = parentVariant;\n }\n\n // componentDidLoad() {\n // console.log('Component has been rendered');\n \n // // console.log('THIS', this);\n // if(this.active){\n // let tab = this.tabEl.previousElementSibling as any;\n // if(tab){\n // tab.style.borderRight = 'none';\n // }\n // }\n // }\n\n // @Watch('active')\n // watchActive(newValue) {\n // console.log('watch active');\n // // Devo ripristinare i bordi di tutti i fratelli di this.tabEl\n // let siblings = this.tabEl.parentElement.children as any;\n // for (let i = 0; i < siblings.length; i++) {\n // siblings[i].style.borderRight = '1px solid red';\n // }\n\n // console.log('thisel', this.tabEl);\n // console.log('newvalue', newValue);\n // console.log('xxxxxx', this.tabEl.classList);\n\n // // Se this.tabEl ha la classe 'active' allora rimuovo il bordo destro\n // if (newValue && this.tabEl.classList.contains('active')) {\n // console.log('contiene ');\n // this.tabEl.style.borderRight = 'none';\n\n // // Rimuovere il bordo destro dal fratello precedente, se esiste\n // let prevEl = this.tabEl.previousElementSibling as any;\n // console.log('revEl', prevEl);\n // if (prevEl) {\n // prevEl.style.borderRight = 'none';\n // }\n // }\n // }\n\n // @Watch('active')\n // watchActive(newValue) {\n // // Ripristina i bordi di tutti gli elementi\n // const items = document.querySelectorAll('.JumpTabItem') as any;\n // console.log('ITEMS', items);\n // items.forEach(item => {\n // item.style.borderRight = '1px solid red';\n // });\n\n // // Verifica se this.tabEl ha la classe 'active'\n // if (newValue && this.tabEl.classList.contains('active')) {\n // // Rimuovere il bordo destro dal nuovo elemento attivo\n // this.tabEl.style.borderRight = 'none';\n\n // // Rimuovere il bordo destro dal fratello precedente, se esiste\n // let prevEl = this.tabEl.previousElementSibling as any;\n // if (prevEl) {\n // prevEl.style.borderRight = 'none';\n // }\n // }\n // }\n\n\n tabEl: HTMLElement;\n\n render() {\n return (\n <Host\n ref={(el) => { this.tabEl = el }}\n class={\"JumpTabItem \" + (this.active ? 'active' : '') + \" \" +(this.variant)}>\n <div class={\"JumpTabItem__Content \" + (this.iconName ? this.iconPosition : '') + \" \" + (this.variant) + \" \" + (this.active ? 'active' : '') + \" \" + (this.disabled ? 'disabled' : '')} onClick={() => this.changeTab(this.identifier)} id={this.identifier}>\n {(this.iconName && (this.variant == 'inline' || this.variant == 'boxed')) &&\n <jump-icon class=\"small\" name={this.iconName}></jump-icon>\n }\n <span class=\"label\">{this.label}</span>\n </div>\n </Host>\n );\n }\n}\n\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('jump-tab-item', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<jump-tab-item></jump-tab-item>');
|
|
6
|
+
const element = await page.find('jump-tab-item');
|
|
7
|
+
expect(element).toHaveClass('hydrated');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=jump-tab-item.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-tab-item.e2e.js","sourceRoot":"","sources":["../../../../src/components/jump-tab-item/test/jump-tab-item.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;QAEzD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACjD,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-tab-item', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<jump-tab-item></jump-tab-item>');\n\n const element = await page.find('jump-tab-item');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { JumpTabItem } from "../jump-tab-item";
|
|
3
|
+
describe('jump-tab-item', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [JumpTabItem],
|
|
7
|
+
html: `<jump-tab-item></jump-tab-item>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<jump-tab-item>
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
</jump-tab-item>
|
|
15
|
+
`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=jump-tab-item.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-tab-item.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-tab-item/test/jump-tab-item.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;YACzB,IAAI,EAAE,iCAAiC;SACxC,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 { JumpTabItem } from '../jump-tab-item';\n\ndescribe('jump-tab-item', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [JumpTabItem],\n html: `<jump-tab-item></jump-tab-item>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-tab-item>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-tab-item>\n `);\n });\n});\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JumpTabPanel {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.identifier = undefined;
|
|
5
|
+
this.active = false;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { key: '5a2a846c7470d079a668b9951d9463a312be4341', class: "JumpTabPanel", id: this.identifier }, h("div", { key: '0b04369ba6c7ed54566383516b8e736cad30b2c3', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, h("slot", { key: '1381d2e4e39f2ddbac4b9532458419c5c03dc704' }))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "jump-tab-panel"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["jump-tab-panel.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["jump-tab-panel.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"identifier": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "string",
|
|
29
|
+
"resolved": "string",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": false,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "identifier",
|
|
39
|
+
"reflect": false,
|
|
40
|
+
"defaultValue": "undefined"
|
|
41
|
+
},
|
|
42
|
+
"active": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "boolean",
|
|
47
|
+
"resolved": "boolean",
|
|
48
|
+
"references": {}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"attribute": "active",
|
|
57
|
+
"reflect": false,
|
|
58
|
+
"defaultValue": "false"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=jump-tab-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-tab-panel.js","sourceRoot":"","sources":["../../../src/components/jump-tab-panel/jump-tab-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,YAAY;;0BAEM,SAAS;sBACZ,KAAK;;IAE/B,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,cAAc,EAAC,EAAE,EAAE,IAAI,CAAC,UAAU;YAC5C,4DAAK,KAAK,EAAE,wBAAwB,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;gBAClE,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["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"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('jump-tab-panel', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<jump-tab-panel></jump-tab-panel>');
|
|
6
|
+
const element = await page.find('jump-tab-panel');
|
|
7
|
+
expect(element).toHaveClass('hydrated');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=jump-tab-panel.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-tab-panel.e2e.js","sourceRoot":"","sources":["../../../../src/components/jump-tab-panel/test/jump-tab-panel.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-tab-panel', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<jump-tab-panel></jump-tab-panel>');\n\n const element = await page.find('jump-tab-panel');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { JumpTabPanel } from "../jump-tab-panel";
|
|
3
|
+
describe('jump-tab-panel', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [JumpTabPanel],
|
|
7
|
+
html: `<jump-tab-panel></jump-tab-panel>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<jump-tab-panel>
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
</jump-tab-panel>
|
|
15
|
+
`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=jump-tab-panel.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-tab-panel.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-tab-panel/test/jump-tab-panel.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,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,YAAY,CAAC;YAC1B,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 { JumpTabPanel } from '../jump-tab-panel';\n\ndescribe('jump-tab-panel', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [JumpTabPanel],\n html: `<jump-tab-panel></jump-tab-panel>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-tab-panel>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-tab-panel>\n `);\n });\n});\n"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { html as beautifyHtml } from "js-beautify";
|
|
2
|
-
export const generateAttributesFromArgs =
|
|
2
|
+
export const generateAttributesFromArgs = arg => {
|
|
3
3
|
// map attributes to strings. If the attribute is a boolean and is false, don't include it, otherwise include only the attribute name. otherwise include the attribute name and its value
|
|
4
|
-
console.log('arg', arg);
|
|
5
|
-
return Object.entries(arg)
|
|
4
|
+
// console.log('arg', arg);
|
|
5
|
+
return (Object.entries(arg)
|
|
6
|
+
.map(([name, value]) => {
|
|
6
7
|
name = camelToKebabCase(name);
|
|
7
8
|
//console.log('name', name);
|
|
8
9
|
if (typeof value === 'boolean') {
|
|
@@ -12,19 +13,51 @@ export const generateAttributesFromArgs = (arg) => {
|
|
|
12
13
|
// take the snake case and convert it to kebab case
|
|
13
14
|
return `${name}="${value}"`;
|
|
14
15
|
}
|
|
15
|
-
})
|
|
16
|
+
})
|
|
17
|
+
.join(' ')
|
|
16
18
|
// replace all the spaces with a single space
|
|
17
19
|
.replace(/\s+/g, ' ')
|
|
18
|
-
.trim();
|
|
20
|
+
.trim());
|
|
19
21
|
};
|
|
20
|
-
const camelToKebabCase =
|
|
22
|
+
const camelToKebabCase = str => {
|
|
21
23
|
return str.replace(/[A-Z]/g, function (match) {
|
|
22
24
|
return '-' + match.toLowerCase();
|
|
23
25
|
});
|
|
24
26
|
};
|
|
25
|
-
export const formatHtml =
|
|
27
|
+
export const formatHtml = html => {
|
|
26
28
|
return beautifyHtml(html, {
|
|
27
|
-
indent_size: 2
|
|
29
|
+
indent_size: 2,
|
|
28
30
|
});
|
|
29
31
|
};
|
|
32
|
+
// NOTE: utile se vogliamo listare le icone di font awesome nel menu a tendina di storybook
|
|
33
|
+
export const fontAwesomeLibraryList = async () => {
|
|
34
|
+
const folders = ['solid', 'regular', 'brands'];
|
|
35
|
+
const iconList = [];
|
|
36
|
+
for (const folder of folders) {
|
|
37
|
+
const response = await fetch(`https://designsystem-media.jumpgroup.it/svgs/${folder}/`);
|
|
38
|
+
const text = await response.text();
|
|
39
|
+
const parser = new DOMParser();
|
|
40
|
+
const html = parser.parseFromString(text, 'text/html');
|
|
41
|
+
const icons = Array.from(html.querySelectorAll('a')).map(a => {
|
|
42
|
+
if (a.href.includes('.svg')) {
|
|
43
|
+
return a.href.split('/').pop().replace('.svg', '');
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
iconList[folder] = [];
|
|
47
|
+
iconList[folder].push(...icons.filter(icon => icon !== undefined));
|
|
48
|
+
}
|
|
49
|
+
return iconList;
|
|
50
|
+
};
|
|
51
|
+
export const lucideLibraryList = async () => {
|
|
52
|
+
const response = await fetch('https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/');
|
|
53
|
+
const text = await response.text();
|
|
54
|
+
const parser = new DOMParser();
|
|
55
|
+
const html = parser.parseFromString(text, 'text/html');
|
|
56
|
+
const icons = Array.from(html.querySelectorAll('a')).map(a => {
|
|
57
|
+
if (a.href.includes('.svg')) {
|
|
58
|
+
return a.href.split('/').pop().replace('.svg', '');
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return icons.filter(icon => icon !== undefined);
|
|
62
|
+
};
|
|
30
63
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,MAAM,0BAA0B,GAAG,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"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","sourcesContent":["import { html as beautifyHtml } from 'js-beautify';\n\nexport const generateAttributesFromArgs = arg => {\n // map attributes to strings. If the attribute is a boolean and is false, don't include it, otherwise include only the attribute name. otherwise include the attribute name and its value\n // console.log('arg', arg);\n return (\n Object.entries(arg)\n .map(([name, value]) => {\n name = camelToKebabCase(name);\n //console.log('name', name);\n if (typeof value === 'boolean') {\n return value ? name : '';\n } else {\n // take the snake case and convert it to kebab case\n return `${name}=\"${value}\"`;\n }\n })\n .join(' ')\n // replace all the spaces with a single space\n .replace(/\\s+/g, ' ')\n .trim()\n );\n};\n\nconst camelToKebabCase = str => {\n return str.replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n });\n};\n\nexport const formatHtml = html => {\n return beautifyHtml(html, {\n indent_size: 2,\n });\n};\n\n// NOTE: utile se vogliamo listare le icone di font awesome nel menu a tendina di storybook\nexport const fontAwesomeLibraryList = async () => {\n const folders = ['solid', 'regular', 'brands'];\n const iconList = [];\n\n for (const folder of folders) {\n const response = await fetch(`https://designsystem-media.jumpgroup.it/svgs/${folder}/`);\n const text = await response.text();\n const parser = new DOMParser();\n const html = parser.parseFromString(text, 'text/html');\n const icons = Array.from(html.querySelectorAll('a')).map(a => {\n if (a.href.includes('.svg')) {\n return a.href.split('/').pop().replace('.svg', '');\n }\n });\n iconList[folder] = [];\n iconList[folder].push(...icons.filter(icon => icon !== undefined));\n }\n\n return iconList;\n};\n\nexport const lucideLibraryList = async () => {\n const response = await fetch('https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/');\n const text = await response.text();\n const parser = new DOMParser();\n const html = parser.parseFromString(text, 'text/html');\n const icons = Array.from(html.querySelectorAll('a')).map(a => {\n if (a.href.includes('.svg')) {\n return a.href.split('/').pop().replace('.svg', '');\n }\n });\n\n return icons.filter(icon => icon !== undefined);\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JumpAccordion extends Components.JumpAccordion, HTMLElement {}
|
|
4
|
+
export const JumpAccordion: {
|
|
5
|
+
prototype: JumpAccordion;
|
|
6
|
+
new (): JumpAccordion;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const jumpAccordionCss = ":host{display:block}";
|
|
4
|
+
const JumpAccordionStyle0 = jumpAccordionCss;
|
|
5
|
+
|
|
6
|
+
const JumpAccordion$1 = /*@__PURE__*/ proxyCustomElement(class JumpAccordion extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { key: '08c6f14d1b4c9fcd99c62679bbc16b02b985644f' }, h("slot", { key: 'd86efa130f7c545957223bfe25bd016d52031095' })));
|
|
14
|
+
}
|
|
15
|
+
static get style() { return JumpAccordionStyle0; }
|
|
16
|
+
}, [1, "jump-accordion"]);
|
|
17
|
+
function defineCustomElement$1() {
|
|
18
|
+
if (typeof customElements === "undefined") {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const components = ["jump-accordion"];
|
|
22
|
+
components.forEach(tagName => { switch (tagName) {
|
|
23
|
+
case "jump-accordion":
|
|
24
|
+
if (!customElements.get(tagName)) {
|
|
25
|
+
customElements.define(tagName, JumpAccordion$1);
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
} });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const JumpAccordion = JumpAccordion$1;
|
|
32
|
+
const defineCustomElement = defineCustomElement$1;
|
|
33
|
+
|
|
34
|
+
export { JumpAccordion, defineCustomElement };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=jump-accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"jump-accordion.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAChD,4BAAe,gBAAgB;;MCMlBA,eAAa;;;;;;IAExB,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;","names":["JumpAccordion"],"sources":["src/components/jump-accordion/jump-accordion.scss?tag=jump-accordion&encapsulation=shadow","src/components/jump-accordion/jump-accordion.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","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"],"version":3}
|
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const jumpBadgeCss = "jump-badge{--jump-badge-background:var(--primary-standard);--jump-badge-color:#fff;--jump-bafge-border-radius:50px;display:inline-flex;color:var(--jump-badge-color);background-color:var(--jump-badge-background);align-items:center;justify-content:center;font-size:var(--fs-300);font-weight:var(--fw-900);line-height:1;border-radius:var(--jump-bafge-border-radius);border:solid 1px var(--jump-bafge-border-radius);white-space:nowrap;padding:0.35em 0.6em;user-select:none;cursor:inherit}jump-badge[variant=primary]{--jump-badge-background:var(--primary-standard)}jump-badge[variant=secondary]{--jump-badge-background:var(--secondary-standard)}";
|
|
4
|
-
const JumpBadgeStyle0 = jumpBadgeCss;
|
|
5
|
-
|
|
6
|
-
const AppBadge = /*@__PURE__*/ proxyCustomElement(class AppBadge extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.label = '';
|
|
11
|
-
this.variant = 'primary';
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (h(Host, { key: '1a0a2b2bf95c1217ca9546b19c4ff6b25ca2a86a', variant: this.variant }, this.label));
|
|
15
|
-
}
|
|
16
|
-
static get style() { return JumpBadgeStyle0; }
|
|
17
|
-
}, [0, "jump-badge", {
|
|
18
|
-
"label": [1],
|
|
19
|
-
"variant": [1]
|
|
20
|
-
}]);
|
|
21
|
-
function defineCustomElement$1() {
|
|
22
|
-
if (typeof customElements === "undefined") {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const components = ["jump-badge"];
|
|
26
|
-
components.forEach(tagName => { switch (tagName) {
|
|
27
|
-
case "jump-badge":
|
|
28
|
-
if (!customElements.get(tagName)) {
|
|
29
|
-
customElements.define(tagName, AppBadge);
|
|
30
|
-
}
|
|
31
|
-
break;
|
|
32
|
-
} });
|
|
33
|
-
}
|
|
1
|
+
import { A as AppBadge, d as defineCustomElement$1 } from './jump-badge2.js';
|
|
34
2
|
|
|
35
3
|
const JumpBadge = AppBadge;
|
|
36
4
|
const defineCustomElement = defineCustomElement$1;
|