xv-webcomponents 0.1.42 → 0.1.43
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/LICENSE +21 -21
- package/README.md +129 -129
- package/dist/types/components/xv-button/xv-button.d.ts +12 -21
- package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +0 -1
- package/dist/types/components/xv-header/xv-header.d.ts +2 -0
- package/dist/types/components/xv-table/_vars.d.ts +5 -1
- package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +1 -2
- package/dist/types/components/xv-text-input/_vars.d.ts +5 -0
- package/dist/types/components/xv-text-input/xv-text-input.d.ts +11 -10
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +8 -10
- package/dist/types/components/xv-user-menu/interfaces/MenuItem.d.ts +0 -0
- package/dist/types/components/xv-user-menu/xv-user-menu.d.ts +41 -0
- package/dist/types/components.d.ts +105 -508
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/types/enum.d.ts +0 -5
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js +13 -0
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +1 -0
- package/dist/{collection/components/xv-progress-indicator/_vars.js → xv-webcomponents/_vars-IZ3lIQzL.js} +7 -3
- package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +1 -0
- package/dist/xv-webcomponents/enum-DTBL51oP.js +13 -0
- package/dist/xv-webcomponents/enum-DTBL51oP.js.map +1 -0
- package/dist/xv-webcomponents/index-rZAC0WRb.js +4238 -0
- package/dist/xv-webcomponents/index-rZAC0WRb.js.map +1 -0
- package/dist/xv-webcomponents/index.esm.js +13 -1
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/{collection/utils/utils.js → xv-webcomponents/utils-1tk8kwKx.js} +11 -7
- package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +36 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js +41 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +18 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.js +35 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.js +19 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +106 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +36 -0
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +136 -0
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-footer.entry.js +30 -0
- package/dist/xv-webcomponents/xv-footer.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-header.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-header.entry.js +81 -0
- package/dist/xv-webcomponents/xv-header.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.js +27 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-loader-v2.entry.js +33 -0
- package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-login-modal.entry.js +89 -0
- package/dist/xv-webcomponents/xv-login-modal.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-modal-v2.entry.js +78 -0
- package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-notification-v2.entry.js +50 -0
- package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +32 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +74 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +21 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +75 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tab-v2.entry.js +21 -0
- package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +41 -0
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +29 -0
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js +66 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.js +53 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js +109 -0
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.js +29 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js +65 -0
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +24 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-user-menu.entry.js +43 -0
- package/dist/xv-webcomponents/xv-user-menu.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +49 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +53 -53
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-BE3kw7I4.js +0 -36
- package/dist/cjs/index-BE3kw7I4.js.map +0 -1
- package/dist/cjs/index-MLh9SbX2.js +0 -1917
- package/dist/cjs/index-MLh9SbX2.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -10
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3510
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -20
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
- package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +0 -1
- package/dist/cjs/xv-webcomponents.cjs.js +0 -28
- package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
- package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +0 -3717
- package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +0 -15326
- package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +0 -12420
- package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +0 -11323
- package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +0 -9653
- package/dist/collection/collection-manifest.json +0 -46
- package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
- package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
- package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
- package/dist/collection/components/xv-button/xv-button-v2.css +0 -173
- package/dist/collection/components/xv-button/xv-button.js +0 -229
- package/dist/collection/components/xv-button/xv-button.js.map +0 -1
- package/dist/collection/components/xv-card/xv-card.css +0 -63
- package/dist/collection/components/xv-card/xv-card.js +0 -122
- package/dist/collection/components/xv-card/xv-card.js.map +0 -1
- package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -138
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -402
- package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
- package/dist/collection/components/xv-data-table/_vars.js +0 -3
- package/dist/collection/components/xv-data-table/_vars.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +0 -90
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +0 -182
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +0 -7
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +0 -101
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +0 -71
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +0 -354
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table.css +0 -104
- package/dist/collection/components/xv-data-table/xv-data-table.js +0 -114
- package/dist/collection/components/xv-data-table/xv-data-table.js.map +0 -1
- package/dist/collection/components/xv-dropdown/_vars.js +0 -2
- package/dist/collection/components/xv-dropdown/_vars.js.map +0 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +0 -14
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +0 -153
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +0 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.css +0 -232
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +0 -443
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +0 -1
- package/dist/collection/components/xv-file-uploader/_vars.js +0 -6
- package/dist/collection/components/xv-file-uploader/_vars.js.map +0 -1
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +0 -136
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +0 -448
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +0 -1
- package/dist/collection/components/xv-footer/xv-footer.css +0 -230
- package/dist/collection/components/xv-footer/xv-footer.js +0 -37
- package/dist/collection/components/xv-footer/xv-footer.js.map +0 -1
- package/dist/collection/components/xv-header/xv-header.css +0 -22587
- package/dist/collection/components/xv-header/xv-header.js +0 -54
- package/dist/collection/components/xv-header/xv-header.js.map +0 -1
- package/dist/collection/components/xv-link/xv-link.css +0 -67
- package/dist/collection/components/xv-link/xv-link.js +0 -132
- package/dist/collection/components/xv-link/xv-link.js.map +0 -1
- package/dist/collection/components/xv-loader/xv-loader.css +0 -65
- package/dist/collection/components/xv-loader/xv-loader.js +0 -106
- package/dist/collection/components/xv-loader/xv-loader.js.map +0 -1
- package/dist/collection/components/xv-login-modal/xv-login-modal.css +0 -22575
- package/dist/collection/components/xv-login-modal/xv-login-modal.js +0 -146
- package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +0 -1
- package/dist/collection/components/xv-modal/xv-modal.css +0 -102
- package/dist/collection/components/xv-modal/xv-modal.js +0 -226
- package/dist/collection/components/xv-modal/xv-modal.js.map +0 -1
- package/dist/collection/components/xv-notification/_vars.js +0 -8
- package/dist/collection/components/xv-notification/_vars.js.map +0 -1
- package/dist/collection/components/xv-notification/xv-notification.css +0 -113
- package/dist/collection/components/xv-notification/xv-notification.js +0 -118
- package/dist/collection/components/xv-notification/xv-notification.js.map +0 -1
- package/dist/collection/components/xv-number-input/xv-number-input.css +0 -128
- package/dist/collection/components/xv-number-input/xv-number-input.js +0 -373
- package/dist/collection/components/xv-number-input/xv-number-input.js.map +0 -1
- package/dist/collection/components/xv-overflow-menu/_vars.js +0 -6
- package/dist/collection/components/xv-overflow-menu/_vars.js.map +0 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +0 -45
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +0 -137
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +0 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +0 -105
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +0 -202
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/_vars.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -96
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -54
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -45
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -157
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
- package/dist/collection/components/xv-table/_vars.js +0 -3
- package/dist/collection/components/xv-table/_vars.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +0 -93
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +0 -160
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +0 -58
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +0 -76
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -39
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -333
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table.css +0 -137
- package/dist/collection/components/xv-table/xv-table.js +0 -159
- package/dist/collection/components/xv-table/xv-table.js.map +0 -1
- package/dist/collection/components/xv-tabs/_vars.js +0 -11
- package/dist/collection/components/xv-tabs/_vars.js.map +0 -1
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +0 -10
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +0 -106
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +0 -1
- package/dist/collection/components/xv-tabs/xv-tabs.css +0 -139
- package/dist/collection/components/xv-tabs/xv-tabs.js +0 -221
- package/dist/collection/components/xv-tabs/xv-tabs.js.map +0 -1
- package/dist/collection/components/xv-tag/xv-tag.css +0 -97
- package/dist/collection/components/xv-tag/xv-tag.js +0 -158
- package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
- package/dist/collection/components/xv-text-input/xv-text-input.css +0 -144
- package/dist/collection/components/xv-text-input/xv-text-input.js +0 -324
- package/dist/collection/components/xv-text-input/xv-text-input.js.map +0 -1
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +0 -95
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +0 -201
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +0 -1
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -43
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -114
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
- package/dist/collection/index.js +0 -11
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/scss/xv/images/xv-sprite.svg +0 -1
- package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +0 -1
- package/dist/collection/types/enum.js +0 -15
- package/dist/collection/types/enum.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-DLYJiP99.js +0 -1907
- package/dist/esm/index-DLYJiP99.js.map +0 -1
- package/dist/esm/index-NvoCloOY.js +0 -31
- package/dist/esm/index-NvoCloOY.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/xv-accordion-v2_34.entry.js +0 -3475
- package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
- package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
- package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
- package/dist/esm/xv-webcomponents.js +0 -24
- package/dist/esm/xv-webcomponents.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/xv-data-table/_vars.d.ts +0 -11
- package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +0 -13
- package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +0 -9
- package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +0 -25
- package/dist/types/components/xv-data-table/xv-data-table.d.ts +0 -9
- package/dist/types/components/xv-file-uploader/_vars.d.ts +0 -4
- package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +0 -36
- package/dist/types/components/xv-number-input/xv-number-input.d.ts +0 -26
- package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +0 -19
- package/dist/xv-webcomponents/p-5b63a259.entry.js +0 -2
- package/dist/xv-webcomponents/p-5b63a259.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-9c06f44c.entry.js +0 -2
- package/dist/xv-webcomponents/p-9c06f44c.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
- package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
- package/dist/xv-webcomponents/p-NvoCloOY.js +0 -2
- package/dist/xv-webcomponents/p-NvoCloOY.js.map +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { SIZE_VAR } from "../../../types/enum";
|
|
3
|
-
export class XvTab {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.disabled = false;
|
|
6
|
-
this.loading = false;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return (h(Host, { key: 'ab7f5dbb607ca9c91a2503b4f5a739685e2ec45f', disabled: this.disabled, name: this.name }, this.loading ? h("xv-loader-v2", { size: SIZE_VAR.LG }) : h("slot", null)));
|
|
10
|
-
}
|
|
11
|
-
static get is() { return "xv-tab-v2"; }
|
|
12
|
-
static get encapsulation() { return "shadow"; }
|
|
13
|
-
static get originalStyleUrls() {
|
|
14
|
-
return {
|
|
15
|
-
"$": ["xv-tab.scss"]
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
static get styleUrls() {
|
|
19
|
-
return {
|
|
20
|
-
"$": ["xv-tab.css"]
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
static get properties() {
|
|
24
|
-
return {
|
|
25
|
-
"label": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"attribute": "label",
|
|
28
|
-
"mutable": false,
|
|
29
|
-
"complexType": {
|
|
30
|
-
"original": "string",
|
|
31
|
-
"resolved": "string",
|
|
32
|
-
"references": {}
|
|
33
|
-
},
|
|
34
|
-
"required": false,
|
|
35
|
-
"optional": false,
|
|
36
|
-
"docs": {
|
|
37
|
-
"tags": [],
|
|
38
|
-
"text": ""
|
|
39
|
-
},
|
|
40
|
-
"getter": false,
|
|
41
|
-
"setter": false,
|
|
42
|
-
"reflect": true
|
|
43
|
-
},
|
|
44
|
-
"disabled": {
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"attribute": "disabled",
|
|
47
|
-
"mutable": false,
|
|
48
|
-
"complexType": {
|
|
49
|
-
"original": "boolean",
|
|
50
|
-
"resolved": "boolean",
|
|
51
|
-
"references": {}
|
|
52
|
-
},
|
|
53
|
-
"required": false,
|
|
54
|
-
"optional": false,
|
|
55
|
-
"docs": {
|
|
56
|
-
"tags": [],
|
|
57
|
-
"text": ""
|
|
58
|
-
},
|
|
59
|
-
"getter": false,
|
|
60
|
-
"setter": false,
|
|
61
|
-
"reflect": true,
|
|
62
|
-
"defaultValue": "false"
|
|
63
|
-
},
|
|
64
|
-
"loading": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"attribute": "loading",
|
|
67
|
-
"mutable": false,
|
|
68
|
-
"complexType": {
|
|
69
|
-
"original": "boolean",
|
|
70
|
-
"resolved": "boolean",
|
|
71
|
-
"references": {}
|
|
72
|
-
},
|
|
73
|
-
"required": false,
|
|
74
|
-
"optional": false,
|
|
75
|
-
"docs": {
|
|
76
|
-
"tags": [],
|
|
77
|
-
"text": ""
|
|
78
|
-
},
|
|
79
|
-
"getter": false,
|
|
80
|
-
"setter": false,
|
|
81
|
-
"reflect": true,
|
|
82
|
-
"defaultValue": "false"
|
|
83
|
-
},
|
|
84
|
-
"name": {
|
|
85
|
-
"type": "any",
|
|
86
|
-
"attribute": "name",
|
|
87
|
-
"mutable": false,
|
|
88
|
-
"complexType": {
|
|
89
|
-
"original": "number | string",
|
|
90
|
-
"resolved": "number | string",
|
|
91
|
-
"references": {}
|
|
92
|
-
},
|
|
93
|
-
"required": false,
|
|
94
|
-
"optional": true,
|
|
95
|
-
"docs": {
|
|
96
|
-
"tags": [],
|
|
97
|
-
"text": ""
|
|
98
|
-
},
|
|
99
|
-
"getter": false,
|
|
100
|
-
"setter": false,
|
|
101
|
-
"reflect": false
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=xv-tab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-tab.js","sourceRoot":"","sources":["../../../../src/components/xv-tabs/xv-tab/xv-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAO/C,MAAM,OAAO,KAAK;IALlB;QAO2B,aAAQ,GAAY,KAAK,CAAC;QAC1B,YAAO,GAAY,KAAK,CAAC;KAUnD;IAPC,MAAM;QACJ,OAAO,CACP,EAAC,IAAI,qDAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAC3C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAc,IAAI,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC,CAAC,CAAC,eAAQ,CACzD,CACN,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\nimport { SIZE_VAR } from '../../../types/enum';\n\n@Component({\n tag: 'xv-tab-v2',\n styleUrl: 'xv-tab.scss',\n shadow: true,\n})\nexport class XvTab {\n @Prop({ reflect: true }) label: string;\n @Prop({ reflect: true }) disabled: boolean = false;\n @Prop({ reflect: true }) loading: boolean = false;\n @Prop() name?: number | string;\n\n render() {\n return (\n <Host disabled={this.disabled} name={this.name}>\n {this.loading ? <xv-loader-v2 size={SIZE_VAR.LG} /> : <slot />}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
:host(.xv-tabs) {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
}
|
|
5
|
-
:host(.xv-tabs) .tab-headers {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-wrap: nowrap;
|
|
9
|
-
}
|
|
10
|
-
:host(.xv-tabs) .tab-headers_container {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex: 1 1 auto;
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
overflow-x: auto;
|
|
15
|
-
scroll-behavior: smooth;
|
|
16
|
-
}
|
|
17
|
-
:host(.xv-tabs) .tab-headers_container::-webkit-scrollbar {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
:host(.xv-tabs) .tab-headers_tab {
|
|
21
|
-
background: none;
|
|
22
|
-
padding: 11px var(--gap-md, 16px);
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
font: inherit;
|
|
25
|
-
transition: border-color 0.3s ease, font-weight 0.3s ease, color 0.3s ease;
|
|
26
|
-
position: relative;
|
|
27
|
-
border: 2px solid transparent;
|
|
28
|
-
border-bottom-color: var(--border-border-subtle-01, #D1D1D1);
|
|
29
|
-
background-blend-mode: multiply;
|
|
30
|
-
color: var(--text-secondary, #515151);
|
|
31
|
-
font-family: var(--ff-body, Tahoma);
|
|
32
|
-
font-size: var(--fz-md, 14px);
|
|
33
|
-
line-height: 18px;
|
|
34
|
-
letter-spacing: 0.16px;
|
|
35
|
-
height: 40px;
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
}
|
|
38
|
-
:host(.xv-tabs) .tab-headers_tab:after {
|
|
39
|
-
content: "";
|
|
40
|
-
position: absolute;
|
|
41
|
-
transition: background-color 0.3s ease, width 0.3s ease;
|
|
42
|
-
top: 100%;
|
|
43
|
-
left: 0;
|
|
44
|
-
right: 0;
|
|
45
|
-
width: 0;
|
|
46
|
-
height: 2px;
|
|
47
|
-
background-color: var(--interactive-01, #273435);
|
|
48
|
-
}
|
|
49
|
-
:host(.xv-tabs) .tab-headers_tab:focus {
|
|
50
|
-
outline: none;
|
|
51
|
-
border: 2px solid var(--border-border-subtle-01, #D1D1D1);
|
|
52
|
-
}
|
|
53
|
-
:host(.xv-tabs) .tab-headers_tab:hover {
|
|
54
|
-
border-bottom-color: var(--border-strong-01, #8B8B8B);
|
|
55
|
-
}
|
|
56
|
-
:host(.xv-tabs) .tab-headers_tab.active {
|
|
57
|
-
color: var(--text-primary, #333);
|
|
58
|
-
font-weight: 700;
|
|
59
|
-
}
|
|
60
|
-
:host(.xv-tabs) .tab-headers_tab.active:after {
|
|
61
|
-
width: 100%;
|
|
62
|
-
}
|
|
63
|
-
:host(.xv-tabs) .tab-headers_tab.active:focus {
|
|
64
|
-
border-color: var(--interactive-01, #273435);
|
|
65
|
-
}
|
|
66
|
-
:host(.xv-tabs) .tab-headers_tab:disabled {
|
|
67
|
-
color: var(--text-on-color-disabled, #8B8B8B);
|
|
68
|
-
border-bottom-color: var(--border-disabled, #D1D1D1);
|
|
69
|
-
cursor: not-allowed;
|
|
70
|
-
}
|
|
71
|
-
:host(.xv-tabs) .tab-headers_tab:disabled:after {
|
|
72
|
-
background-color: var(--border-disabled, #D1D1D1);
|
|
73
|
-
}
|
|
74
|
-
:host(.xv-tabs) .tab-headers_btn {
|
|
75
|
-
outline: none;
|
|
76
|
-
width: 40px;
|
|
77
|
-
height: 40px;
|
|
78
|
-
background: none;
|
|
79
|
-
border: none;
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
position: relative;
|
|
82
|
-
transition: 0.25s ease-in-out opacity;
|
|
83
|
-
}
|
|
84
|
-
:host(.xv-tabs) .tab-headers_btn:before {
|
|
85
|
-
content: "";
|
|
86
|
-
position: absolute;
|
|
87
|
-
top: 50%;
|
|
88
|
-
left: 50%;
|
|
89
|
-
width: 0;
|
|
90
|
-
height: 0;
|
|
91
|
-
border: solid currentColor;
|
|
92
|
-
border-width: 0 2px 2px 0;
|
|
93
|
-
display: inline-block;
|
|
94
|
-
padding: 5px;
|
|
95
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
96
|
-
}
|
|
97
|
-
:host(.xv-tabs) .tab-headers_btn:active {
|
|
98
|
-
opacity: 0.3;
|
|
99
|
-
}
|
|
100
|
-
:host(.xv-tabs) .tab-headers_btn.prev:before {
|
|
101
|
-
transform: translate(-50%, -50%) rotate(135deg);
|
|
102
|
-
}
|
|
103
|
-
:host(.xv-tabs) .tab-headers_btn.next:before {
|
|
104
|
-
transform: translate(-50%, -50%) rotate(-45deg);
|
|
105
|
-
}
|
|
106
|
-
:host(.xv-tabs) .tab-content-wrapper {
|
|
107
|
-
position: relative;
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
padding: var(--gap-md, 16px) 0;
|
|
110
|
-
}
|
|
111
|
-
:host(.xv-tabs) ::slotted(xv-tab-v2) {
|
|
112
|
-
position: absolute;
|
|
113
|
-
opacity: 0;
|
|
114
|
-
max-height: 0;
|
|
115
|
-
transition: max-height 0.5s ease;
|
|
116
|
-
width: 100%;
|
|
117
|
-
pointer-events: none;
|
|
118
|
-
}
|
|
119
|
-
:host(.xv-tabs) ::slotted(xv-tab-v2.active) {
|
|
120
|
-
position: relative;
|
|
121
|
-
opacity: 1;
|
|
122
|
-
overflow-y: auto;
|
|
123
|
-
pointer-events: auto;
|
|
124
|
-
max-height: 1000px;
|
|
125
|
-
}
|
|
126
|
-
:host(.xv-tabs) .xv-tabs_empty {
|
|
127
|
-
display: block;
|
|
128
|
-
text-align: center;
|
|
129
|
-
margin: 20px auto;
|
|
130
|
-
font-size: var(--fz-xl);
|
|
131
|
-
color: var(--text-primary);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
:host([loading]) {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
justify-content: center;
|
|
138
|
-
min-height: 300px;
|
|
139
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { TAB_TAGS, TABS_VATIANT } from "./_vars";
|
|
3
|
-
import { SIZE_VAR } from "../../types/enum";
|
|
4
|
-
export class XvTabs {
|
|
5
|
-
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Index of active tab
|
|
8
|
-
*/
|
|
9
|
-
this.active = 0;
|
|
10
|
-
/**
|
|
11
|
-
* Variant of tabs from TABS_VATIANT enum
|
|
12
|
-
*/
|
|
13
|
-
this.variant = TABS_VATIANT.DEFAULT;
|
|
14
|
-
/**
|
|
15
|
-
* local variable for tab labels collection
|
|
16
|
-
*/
|
|
17
|
-
this.tabElements = [];
|
|
18
|
-
/**
|
|
19
|
-
* Is show arrows for scroll
|
|
20
|
-
*/
|
|
21
|
-
this.showArrows = false;
|
|
22
|
-
this.collectTabs = () => {
|
|
23
|
-
if (!this.tabElements.length) {
|
|
24
|
-
this.tabElements = Array.from(this.el.querySelectorAll(TAB_TAGS.TAB));
|
|
25
|
-
this.tabElements.forEach((tab) => {
|
|
26
|
-
if (tab.hasAttribute('name') && !this.active) {
|
|
27
|
-
this.active = tab.getAttribute('name');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
setTimeout(() => this.updateArrowVisibility(), 100);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
updateArrowVisibility() {
|
|
35
|
-
var _a;
|
|
36
|
-
const container = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.tab-headers_container');
|
|
37
|
-
if (!container)
|
|
38
|
-
return;
|
|
39
|
-
this.showArrows = container.scrollWidth > container.clientWidth;
|
|
40
|
-
}
|
|
41
|
-
updateTabClasses() {
|
|
42
|
-
this.tabElements.forEach((tab, i) => {
|
|
43
|
-
tab.classList.toggle('active', (tab.getAttribute('name') || `${i}`) === `${this.active}`);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
handleTabClick(active) {
|
|
47
|
-
if (active === this.active)
|
|
48
|
-
return;
|
|
49
|
-
this.active = active;
|
|
50
|
-
this.activeChange.emit(Number(this.active) || this.active);
|
|
51
|
-
this.scrollToActiveTab();
|
|
52
|
-
}
|
|
53
|
-
scrollToActiveTab() {
|
|
54
|
-
if (!this.showArrows)
|
|
55
|
-
return;
|
|
56
|
-
// wait next JS tik
|
|
57
|
-
setTimeout(() => {
|
|
58
|
-
this.el.shadowRoot
|
|
59
|
-
.querySelector('.tab-headers_tab.active')
|
|
60
|
-
.scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' });
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
setTab(count = 1) {
|
|
64
|
-
const currentIdx = this.tabElements.findIndex((tab, i) => (tab.getAttribute('name') || `${i}`) === `${this.active}`);
|
|
65
|
-
const nextIdx = currentIdx + count;
|
|
66
|
-
if (nextIdx < 0 || nextIdx >= this.tabElements.length)
|
|
67
|
-
return;
|
|
68
|
-
const nextTab = this.tabElements[nextIdx];
|
|
69
|
-
if (!nextTab || nextTab.hasAttribute('disabled'))
|
|
70
|
-
return;
|
|
71
|
-
this.handleTabClick(nextTab.getAttribute('name') || nextIdx);
|
|
72
|
-
}
|
|
73
|
-
render() {
|
|
74
|
-
var _a, _b, _c;
|
|
75
|
-
if (this.loading) {
|
|
76
|
-
return (h(Host, { class: "xv-tabs", variant: this.variant }, h("xv-loader-v2", { size: SIZE_VAR.XL })));
|
|
77
|
-
}
|
|
78
|
-
return (h(Host, { class: "xv-tabs", variant: this.variant }, h("div", { class: "tab-headers", role: "tablist" }, h("button", { hidden: !this.showArrows || !((_a = this.tabElements) === null || _a === void 0 ? void 0 : _a.length), "aria-label": "Previous", class: "tab-headers_btn prev", onClick: () => this.setTab(-1) }), h("div", { class: "tab-headers_container" }, ((_b = this.tabElements) === null || _b === void 0 ? void 0 : _b.length) ? this.tabElements.map((tab, index) => (h("button", { role: "tab", disabled: !!tab.getAttribute('disabled') || !!(tab === null || tab === void 0 ? void 0 : tab.disabled), class: {
|
|
79
|
-
'tab-headers_tab': true,
|
|
80
|
-
active: (tab.getAttribute('name') || `${index}`) === `${this.active}`,
|
|
81
|
-
}, onClick: () => this.handleTabClick(tab.getAttribute('name') || `${index}`) }, tab.getAttribute('label') || `Tab ${index + 1}`))) : this.emptyMessage && h("p", { class: "xv-tabs_empty" }, this.emptyMessage)), h("button", { "aria-label": "Next", hidden: !this.showArrows || !((_c = this.tabElements) === null || _c === void 0 ? void 0 : _c.length), class: "tab-headers_btn next", onClick: () => this.setTab(1) })), h("div", { class: "tab-content-wrapper", role: "tabpanel", tabindex: -1 }, h("slot", { onSlotchange: this.collectTabs }))));
|
|
82
|
-
}
|
|
83
|
-
componentDidRender() {
|
|
84
|
-
this.updateTabClasses();
|
|
85
|
-
}
|
|
86
|
-
static get is() { return "xv-tabs-v2"; }
|
|
87
|
-
static get encapsulation() { return "shadow"; }
|
|
88
|
-
static get originalStyleUrls() {
|
|
89
|
-
return {
|
|
90
|
-
"$": ["xv-tabs.scss"]
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
static get styleUrls() {
|
|
94
|
-
return {
|
|
95
|
-
"$": ["xv-tabs.css"]
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
static get properties() {
|
|
99
|
-
return {
|
|
100
|
-
"active": {
|
|
101
|
-
"type": "any",
|
|
102
|
-
"attribute": "active",
|
|
103
|
-
"mutable": true,
|
|
104
|
-
"complexType": {
|
|
105
|
-
"original": "number | string",
|
|
106
|
-
"resolved": "number | string",
|
|
107
|
-
"references": {}
|
|
108
|
-
},
|
|
109
|
-
"required": false,
|
|
110
|
-
"optional": false,
|
|
111
|
-
"docs": {
|
|
112
|
-
"tags": [],
|
|
113
|
-
"text": "Index of active tab"
|
|
114
|
-
},
|
|
115
|
-
"getter": false,
|
|
116
|
-
"setter": false,
|
|
117
|
-
"reflect": true,
|
|
118
|
-
"defaultValue": "0"
|
|
119
|
-
},
|
|
120
|
-
"loading": {
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"attribute": "loading",
|
|
123
|
-
"mutable": false,
|
|
124
|
-
"complexType": {
|
|
125
|
-
"original": "boolean",
|
|
126
|
-
"resolved": "boolean",
|
|
127
|
-
"references": {}
|
|
128
|
-
},
|
|
129
|
-
"required": false,
|
|
130
|
-
"optional": true,
|
|
131
|
-
"docs": {
|
|
132
|
-
"tags": [],
|
|
133
|
-
"text": "Show loader"
|
|
134
|
-
},
|
|
135
|
-
"getter": false,
|
|
136
|
-
"setter": false,
|
|
137
|
-
"reflect": true
|
|
138
|
-
},
|
|
139
|
-
"variant": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"attribute": "variant",
|
|
142
|
-
"mutable": false,
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "TABS_VATIANT",
|
|
145
|
-
"resolved": "TABS_VATIANT",
|
|
146
|
-
"references": {
|
|
147
|
-
"TABS_VATIANT": {
|
|
148
|
-
"location": "import",
|
|
149
|
-
"path": "./_vars",
|
|
150
|
-
"id": "src/components/xv-tabs/_vars.ts::TABS_VATIANT"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": false,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": "Variant of tabs from TABS_VATIANT enum"
|
|
159
|
-
},
|
|
160
|
-
"getter": false,
|
|
161
|
-
"setter": false,
|
|
162
|
-
"reflect": false,
|
|
163
|
-
"defaultValue": "TABS_VATIANT.DEFAULT"
|
|
164
|
-
},
|
|
165
|
-
"emptyMessage": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"attribute": "empty-message",
|
|
168
|
-
"mutable": false,
|
|
169
|
-
"complexType": {
|
|
170
|
-
"original": "string",
|
|
171
|
-
"resolved": "string",
|
|
172
|
-
"references": {}
|
|
173
|
-
},
|
|
174
|
-
"required": false,
|
|
175
|
-
"optional": true,
|
|
176
|
-
"docs": {
|
|
177
|
-
"tags": [],
|
|
178
|
-
"text": "Message when have no tabs"
|
|
179
|
-
},
|
|
180
|
-
"getter": false,
|
|
181
|
-
"setter": false,
|
|
182
|
-
"reflect": false
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
static get states() {
|
|
187
|
-
return {
|
|
188
|
-
"tabElements": {},
|
|
189
|
-
"showArrows": {}
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
static get events() {
|
|
193
|
-
return [{
|
|
194
|
-
"method": "activeChange",
|
|
195
|
-
"name": "activeChange",
|
|
196
|
-
"bubbles": true,
|
|
197
|
-
"cancelable": true,
|
|
198
|
-
"composed": true,
|
|
199
|
-
"docs": {
|
|
200
|
-
"tags": [],
|
|
201
|
-
"text": "Emit event to outside"
|
|
202
|
-
},
|
|
203
|
-
"complexType": {
|
|
204
|
-
"original": "number | string",
|
|
205
|
-
"resolved": "number | string",
|
|
206
|
-
"references": {}
|
|
207
|
-
}
|
|
208
|
-
}];
|
|
209
|
-
}
|
|
210
|
-
static get elementRef() { return "el"; }
|
|
211
|
-
static get listeners() {
|
|
212
|
-
return [{
|
|
213
|
-
"name": "resize",
|
|
214
|
-
"method": "updateArrowVisibility",
|
|
215
|
-
"target": "window",
|
|
216
|
-
"capture": false,
|
|
217
|
-
"passive": true
|
|
218
|
-
}];
|
|
219
|
-
}
|
|
220
|
-
}
|
|
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,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop, Event, EventEmitter, State, Listen } from '@stencil/core';\nimport { TAB_TAGS, TABS_VATIANT } from './_vars';\nimport { SIZE_VAR } from '../../types/enum';\n\n@Component({\n tag: 'xv-tabs-v2',\n styleUrl: 'xv-tabs.scss',\n shadow: true,\n})\nexport class XvTabs {\n @Element() el: HTMLElement;\n /**\n * Index of active tab\n */\n @Prop({ reflect: true, mutable: true }) active: number | string = 0;\n /**\n * Emit event to outside\n */\n @Event() activeChange: EventEmitter<number | string>;\n /**\n * Show loader\n */\n @Prop({ reflect: true }) loading?: boolean;\n /**\n * Variant of tabs from TABS_VATIANT enum\n */\n @Prop() variant: TABS_VATIANT = TABS_VATIANT.DEFAULT;\n /**\n * Message when have no tabs\n */\n @Prop() emptyMessage?: string;\n /**\n * local variable for tab labels collection\n */\n @State() tabElements: HTMLElement[] = [];\n /**\n * Is show arrows for scroll\n */\n @State() showArrows: boolean = false;\n\n @Listen('resize', { target: 'window' })\n updateArrowVisibility() {\n const container = this.el.shadowRoot?.querySelector('.tab-headers_container') as HTMLElement | null;\n if (!container) return;\n\n this.showArrows = container.scrollWidth > container.clientWidth;\n }\n\n private collectTabs = () => {\n if (!this.tabElements.length) {\n this.tabElements = Array.from(this.el.querySelectorAll(TAB_TAGS.TAB));\n this.tabElements.forEach((tab) => {\n if (tab.hasAttribute('name') && !this.active) {\n this.active = tab.getAttribute('name');\n }\n })\n\n setTimeout(() => this.updateArrowVisibility(), 100);\n }\n }\n\n private updateTabClasses() {\n this.tabElements.forEach((tab, i) => {\n tab.classList.toggle(\n 'active',\n (tab.getAttribute('name') || `${i}`) === `${this.active}`\n );\n });\n }\n\n private handleTabClick(active: string | number) {\n if (active === this.active) return;\n\n this.active = active;\n this.activeChange.emit(Number(this.active) || this.active);\n this.scrollToActiveTab();\n }\n\n private scrollToActiveTab() {\n if (!this.showArrows) return;\n\n // wait next JS tik\n setTimeout(() => {\n this.el.shadowRoot\n .querySelector('.tab-headers_tab.active')\n .scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' });\n });\n }\n\n private setTab(count: number = 1) {\n const currentIdx = this.tabElements.findIndex(\n (tab, i) =>\n (tab.getAttribute('name') || `${i}`) === `${this.active}`\n );\n const nextIdx = currentIdx + count;\n\n if (nextIdx < 0 || nextIdx >= this.tabElements.length) return;\n\n const nextTab = this.tabElements[nextIdx];\n\n if (!nextTab || nextTab.hasAttribute('disabled')) return;\n\n this.handleTabClick(nextTab.getAttribute('name') || nextIdx);\n }\n\n render() {\n if (this.loading) {\n return (\n <Host class=\"xv-tabs\" variant={this.variant}>\n <xv-loader-v2 size={SIZE_VAR.XL} />\n </Host>\n )\n }\n\n return (\n <Host class=\"xv-tabs\" variant={this.variant}>\n <div class=\"tab-headers\" role=\"tablist\">\n <button\n hidden={!this.showArrows || !this.tabElements?.length}\n aria-label=\"Previous\"\n class=\"tab-headers_btn prev\"\n onClick={() => this.setTab(-1)}\n />\n <div class=\"tab-headers_container\">\n {this.tabElements?.length ? this.tabElements.map((tab, index) => (\n <button\n role=\"tab\"\n disabled={!!tab.getAttribute('disabled') || !!(tab as any)?.disabled}\n class={{\n 'tab-headers_tab': true,\n active: (tab.getAttribute('name') || `${index}`) === `${this.active}`,\n }}\n onClick={() => this.handleTabClick(tab.getAttribute('name') || `${index}`)}\n >\n {tab.getAttribute('label') || `Tab ${index + 1}`}\n </button>\n )) : this.emptyMessage && <p class=\"xv-tabs_empty\">{this.emptyMessage}</p>}\n </div>\n <button\n aria-label=\"Next\"\n hidden={!this.showArrows || !this.tabElements?.length}\n class=\"tab-headers_btn next\"\n onClick={() => this.setTab(1)}\n />\n </div>\n\n <div\n class=\"tab-content-wrapper\"\n role=\"tabpanel\"\n tabindex={-1}\n >\n <slot onSlotchange={this.collectTabs} />\n </div>\n </Host>\n );\n }\n\n componentDidRender() {\n this.updateTabClasses();\n }\n}\n"]}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
:host {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
border-radius: 1000px;
|
|
7
|
-
background-color: var(--background);
|
|
8
|
-
color: var(--text-primary);
|
|
9
|
-
font-family: var(--ff-body, inherit);
|
|
10
|
-
}
|
|
11
|
-
:host .xv-tag_content {
|
|
12
|
-
padding-left: 8px;
|
|
13
|
-
padding-right: 8px;
|
|
14
|
-
color: inherit;
|
|
15
|
-
font-family: var(--ff-body);
|
|
16
|
-
font-style: normal;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
line-height: 16px;
|
|
19
|
-
letter-spacing: 0.32px;
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
text-overflow: ellipsis;
|
|
23
|
-
}
|
|
24
|
-
:host .xv-tag_close {
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
border: none;
|
|
28
|
-
background-color: inherit;
|
|
29
|
-
outline: none;
|
|
30
|
-
border-spacing: 0;
|
|
31
|
-
list-style: none outside none;
|
|
32
|
-
margin: 0;
|
|
33
|
-
padding: 0;
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
border-radius: 62px;
|
|
38
|
-
width: 15px;
|
|
39
|
-
height: 15px;
|
|
40
|
-
text-align: left;
|
|
41
|
-
color: inherit;
|
|
42
|
-
text-indent: 0;
|
|
43
|
-
transition: opacity 300ms ease-in-out, filter 300ms ease-in-out;
|
|
44
|
-
}
|
|
45
|
-
:host .xv-tag_close:hover {
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
filter: brightness(80%);
|
|
48
|
-
}
|
|
49
|
-
:host .xv-tag_close:active {
|
|
50
|
-
opacity: 0.7;
|
|
51
|
-
}
|
|
52
|
-
:host .xv-tag_close:focus {
|
|
53
|
-
outline: 1px solid currentColor;
|
|
54
|
-
}
|
|
55
|
-
:host .xv-tag_close:after {
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
width: inherit;
|
|
58
|
-
height: inherit;
|
|
59
|
-
color: inherit;
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
display: inline-flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
content: "×";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host(.sm) {
|
|
68
|
-
font-size: var(--fz-sm);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host(.md) {
|
|
72
|
-
font-size: var(--fz-md);
|
|
73
|
-
}
|
|
74
|
-
:host(.md) .xv-tag_content {
|
|
75
|
-
line-height: 24px;
|
|
76
|
-
}
|
|
77
|
-
:host(.md) .xv-tag_close {
|
|
78
|
-
height: 24px;
|
|
79
|
-
width: 24px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:host(.lg) {
|
|
83
|
-
font-size: var(--fz-lg);
|
|
84
|
-
}
|
|
85
|
-
:host(.lg) .xv-tag_content {
|
|
86
|
-
line-height: 26px;
|
|
87
|
-
}
|
|
88
|
-
:host(.lg) .xv-tag_close {
|
|
89
|
-
height: 26px;
|
|
90
|
-
width: 26px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host(.disabled) {
|
|
94
|
-
pointer-events: none;
|
|
95
|
-
background-color: var(--layer-01);
|
|
96
|
-
color: var(--text-disabled);
|
|
97
|
-
}
|