xv-webcomponents 0.1.43 → 0.1.46
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/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/index-BE3kw7I4.js +36 -0
- package/dist/cjs/index-BE3kw7I4.js.map +1 -0
- package/dist/cjs/index-MLh9SbX2.js +1917 -0
- package/dist/cjs/index-MLh9SbX2.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +3542 -0
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +20 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +1 -0
- package/dist/cjs/xv-webcomponents.cjs.js +28 -0
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +3717 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +15326 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +12420 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +11323 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +9653 -0
- package/dist/collection/collection-manifest.json +46 -0
- package/dist/collection/components/xv-accordion/xv-accordion.css +98 -0
- package/dist/collection/components/xv-accordion/xv-accordion.js +163 -0
- package/dist/collection/components/xv-accordion/xv-accordion.js.map +1 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +163 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +132 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +1 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +98 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +19 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +1 -0
- package/dist/collection/components/xv-button/xv-button-v2.css +268 -0
- package/dist/collection/components/xv-button/xv-button.js +229 -0
- package/dist/collection/components/xv-button/xv-button.js.map +1 -0
- package/dist/collection/components/xv-card/xv-card.css +158 -0
- package/dist/collection/components/xv-card/xv-card.js +122 -0
- package/dist/collection/components/xv-card/xv-card.js.map +1 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.css +233 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +402 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -0
- package/dist/collection/components/xv-data-table/_vars.js +3 -0
- package/dist/collection/components/xv-data-table/_vars.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +185 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +206 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +102 -0
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +101 -0
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +168 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +360 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table.css +214 -0
- package/dist/collection/components/xv-data-table/xv-data-table.js +133 -0
- package/dist/collection/components/xv-data-table/xv-data-table.js.map +1 -0
- package/dist/collection/components/xv-dropdown/_vars.js +2 -0
- package/dist/collection/components/xv-dropdown/_vars.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +109 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +153 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown.css +327 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +443 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -0
- package/dist/collection/components/xv-file-uploader/_vars.js +6 -0
- package/dist/collection/components/xv-file-uploader/_vars.js.map +1 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +233 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +514 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +1 -0
- package/dist/collection/components/xv-footer/xv-footer.css +325 -0
- package/dist/collection/components/xv-footer/xv-footer.js +37 -0
- package/dist/collection/components/xv-footer/xv-footer.js.map +1 -0
- package/dist/collection/components/xv-header/xv-header.css +22682 -0
- package/dist/collection/components/xv-header/xv-header.js +54 -0
- package/dist/collection/components/xv-header/xv-header.js.map +1 -0
- package/dist/collection/components/xv-link/xv-link.css +162 -0
- package/dist/collection/components/xv-link/xv-link.js +132 -0
- package/dist/collection/components/xv-link/xv-link.js.map +1 -0
- package/dist/collection/components/xv-loader/xv-loader.css +160 -0
- package/dist/collection/components/xv-loader/xv-loader.js +106 -0
- package/dist/collection/components/xv-loader/xv-loader.js.map +1 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.css +22670 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.js +146 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +1 -0
- package/dist/collection/components/xv-modal/xv-modal.css +210 -0
- package/dist/collection/components/xv-modal/xv-modal.js +245 -0
- package/dist/collection/components/xv-modal/xv-modal.js.map +1 -0
- package/dist/collection/components/xv-notification/_vars.js +8 -0
- package/dist/collection/components/xv-notification/_vars.js.map +1 -0
- package/dist/collection/components/xv-notification/xv-notification.css +208 -0
- package/dist/collection/components/xv-notification/xv-notification.js +118 -0
- package/dist/collection/components/xv-notification/xv-notification.js.map +1 -0
- package/dist/collection/components/xv-number-input/xv-number-input.css +223 -0
- package/dist/collection/components/xv-number-input/xv-number-input.js +373 -0
- package/dist/collection/components/xv-number-input/xv-number-input.js.map +1 -0
- package/dist/collection/components/xv-overflow-menu/_vars.js +6 -0
- package/dist/collection/components/xv-overflow-menu/_vars.js.map +1 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +140 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +137 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +1 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +200 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +202 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +1 -0
- package/dist/{xv-webcomponents/_vars-IZ3lIQzL.js → collection/components/xv-progress-indicator/_vars.js} +3 -7
- package/dist/collection/components/xv-progress-indicator/_vars.js.map +1 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +191 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +54 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +1 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +140 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +157 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +1 -0
- package/dist/collection/components/xv-table/_vars.js +3 -0
- package/dist/collection/components/xv-table/_vars.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +188 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +160 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +153 -0
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +76 -0
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +134 -0
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +333 -0
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table.css +232 -0
- package/dist/collection/components/xv-table/xv-table.js +159 -0
- package/dist/collection/components/xv-table/xv-table.js.map +1 -0
- package/dist/collection/components/xv-tabs/_vars.js +11 -0
- package/dist/collection/components/xv-tabs/_vars.js.map +1 -0
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +105 -0
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +106 -0
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +1 -0
- package/dist/collection/components/xv-tabs/xv-tabs.css +228 -0
- package/dist/collection/components/xv-tabs/xv-tabs.js +221 -0
- package/dist/collection/components/xv-tabs/xv-tabs.js.map +1 -0
- package/dist/collection/components/xv-tag/xv-tag.css +192 -0
- package/dist/collection/components/xv-tag/xv-tag.js +158 -0
- package/dist/collection/components/xv-tag/xv-tag.js.map +1 -0
- package/dist/collection/components/xv-text-input/xv-text-input.css +242 -0
- package/dist/collection/components/xv-text-input/xv-text-input.js +343 -0
- package/dist/collection/components/xv-text-input/xv-text-input.js.map +1 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +190 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +201 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +1 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +107 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +162 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/scss/xv/images/xv-sprite.svg +1 -0
- package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +1 -0
- package/dist/collection/types/enum.js +15 -0
- package/dist/collection/types/enum.js.map +1 -0
- package/dist/{xv-webcomponents/utils-1tk8kwKx.js → collection/utils/utils.js} +7 -11
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/index-DLYJiP99.js +1907 -0
- package/dist/esm/index-DLYJiP99.js.map +1 -0
- package/dist/esm/index-NvoCloOY.js +31 -0
- package/dist/esm/index-NvoCloOY.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +14 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/xv-accordion-v2_34.entry.js +3507 -0
- package/dist/esm/xv-accordion-v2_34.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +18 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js.map +1 -0
- package/dist/esm/xv-webcomponents.js +24 -0
- package/dist/esm/xv-webcomponents.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/xv-button/xv-button.d.ts +21 -12
- package/dist/types/components/xv-data-table/_vars.d.ts +11 -0
- package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +15 -0
- package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +9 -0
- package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +25 -0
- package/dist/types/components/xv-data-table/xv-data-table.d.ts +10 -0
- package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +1 -0
- package/dist/types/components/xv-file-uploader/_vars.d.ts +4 -0
- package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +39 -0
- package/dist/types/components/xv-header/xv-header.d.ts +0 -2
- package/dist/types/components/xv-modal/xv-modal.d.ts +4 -0
- package/dist/types/components/xv-number-input/xv-number-input.d.ts +26 -0
- package/dist/types/components/xv-table/_vars.d.ts +1 -5
- package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +2 -1
- package/dist/types/components/xv-text-input/xv-text-input.d.ts +11 -11
- package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +19 -0
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +12 -8
- package/dist/types/components.d.ts +537 -105
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/types/enum.d.ts +5 -0
- package/dist/xv-webcomponents/index.esm.js +1 -13
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-851c4716.entry.js +2 -0
- package/dist/xv-webcomponents/p-851c4716.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-DLYJiP99.js +3 -0
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +1 -0
- package/dist/xv-webcomponents/p-DQuL1Twl.js +2 -0
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +1 -0
- package/dist/xv-webcomponents/p-NvoCloOY.js +2 -0
- package/dist/xv-webcomponents/p-NvoCloOY.js.map +1 -0
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js +2 -0
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -49
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +53 -53
- package/dist/types/components/xv-text-input/_vars.d.ts +0 -5
- 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 +0 -41
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js +0 -13
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +0 -1
- package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +0 -1
- package/dist/xv-webcomponents/enum-DTBL51oP.js +0 -13
- package/dist/xv-webcomponents/enum-DTBL51oP.js.map +0 -1
- package/dist/xv-webcomponents/index-rZAC0WRb.js +0 -4238
- package/dist/xv-webcomponents/index-rZAC0WRb.js.map +0 -1
- package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +0 -36
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js +0 -41
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +0 -18
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-button-v2.entry.js +0 -35
- package/dist/xv-webcomponents/xv-button-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-card-v2.entry.js +0 -19
- package/dist/xv-webcomponents/xv-card-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +0 -106
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +0 -36
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +0 -136
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-footer.entry.js +0 -30
- package/dist/xv-webcomponents/xv-footer.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-header.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-header.entry.js +0 -81
- package/dist/xv-webcomponents/xv-header.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-link-v2.entry.js +0 -27
- package/dist/xv-webcomponents/xv-link-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-loader-v2.entry.js +0 -33
- package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-login-modal.entry.js +0 -89
- package/dist/xv-webcomponents/xv-login-modal.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-modal-v2.entry.js +0 -78
- package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-notification-v2.entry.js +0 -50
- package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +0 -32
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +0 -74
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +0 -21
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +0 -75
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tab-v2.entry.js +0 -21
- package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +0 -41
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +0 -29
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js +0 -66
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2.entry.js +0 -53
- package/dist/xv-webcomponents/xv-table-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js +0 -109
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tag-v2.entry.js +0 -29
- package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js +0 -65
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +0 -24
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-user-menu.entry.js +0 -43
- package/dist/xv-webcomponents/xv-user-menu.entry.js.map +0 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
.xv-tooltip[role=tooltip] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background-color: var(--background-inverse, #333333);
|
|
4
|
+
color: var(--text-on-color);
|
|
5
|
+
padding: var(--spacing-03) var(--spacing-04);
|
|
6
|
+
border-radius: 3px;
|
|
7
|
+
font-size: var(--fz-sm);
|
|
8
|
+
z-index: 999;
|
|
9
|
+
min-width: min(150px, 90vw);
|
|
10
|
+
max-width: min(400px, 90vw);
|
|
11
|
+
}
|
|
12
|
+
.xv-tooltip[role=tooltip]::after {
|
|
13
|
+
content: "";
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
border-style: solid;
|
|
18
|
+
}
|
|
19
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top]::after {
|
|
20
|
+
bottom: -5px;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translateX(-50%);
|
|
23
|
+
border-width: 5px 5px 0 5px;
|
|
24
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
25
|
+
}
|
|
26
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-start]::after {
|
|
27
|
+
bottom: -5px;
|
|
28
|
+
left: 12px;
|
|
29
|
+
border-width: 5px 5px 0 5px;
|
|
30
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
31
|
+
}
|
|
32
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-end]::after {
|
|
33
|
+
bottom: -5px;
|
|
34
|
+
right: 12px;
|
|
35
|
+
border-width: 5px 5px 0 5px;
|
|
36
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
37
|
+
}
|
|
38
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom]::after {
|
|
39
|
+
top: -5px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
border-width: 0 5px 5px 5px;
|
|
43
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
44
|
+
}
|
|
45
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-start]::after {
|
|
46
|
+
top: -5px;
|
|
47
|
+
left: 12px;
|
|
48
|
+
border-width: 0 5px 5px 5px;
|
|
49
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
50
|
+
}
|
|
51
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-end]::after {
|
|
52
|
+
top: -5px;
|
|
53
|
+
right: 12px;
|
|
54
|
+
border-width: 0 5px 5px 5px;
|
|
55
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
56
|
+
}
|
|
57
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left]::after {
|
|
58
|
+
top: 50%;
|
|
59
|
+
right: -5px;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
border-width: 5px 0 5px 5px;
|
|
62
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
63
|
+
}
|
|
64
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-start]::after {
|
|
65
|
+
top: 12px;
|
|
66
|
+
right: -5px;
|
|
67
|
+
border-width: 5px 0 5px 5px;
|
|
68
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
69
|
+
}
|
|
70
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-end]::after {
|
|
71
|
+
bottom: 12px;
|
|
72
|
+
right: -5px;
|
|
73
|
+
border-width: 5px 0 5px 5px;
|
|
74
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
75
|
+
}
|
|
76
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right]::after {
|
|
77
|
+
top: 50%;
|
|
78
|
+
left: -5px;
|
|
79
|
+
transform: translateY(-50%);
|
|
80
|
+
border-width: 5px 5px 5px 0;
|
|
81
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
82
|
+
}
|
|
83
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-start]::after {
|
|
84
|
+
top: 12px;
|
|
85
|
+
left: -5px;
|
|
86
|
+
border-width: 5px 5px 5px 0;
|
|
87
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
88
|
+
}
|
|
89
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-end]::after {
|
|
90
|
+
bottom: 12px;
|
|
91
|
+
left: -5px;
|
|
92
|
+
border-width: 5px 5px 5px 0;
|
|
93
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host {
|
|
97
|
+
--notification-icon-size: 20px;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
align-items: flex-start;
|
|
101
|
+
justify-content: flex-start;
|
|
102
|
+
border-radius: 3px;
|
|
103
|
+
padding: var(--gap-md, 16px);
|
|
104
|
+
column-gap: var(--gap-md, 16px);
|
|
105
|
+
border: 1px solid;
|
|
106
|
+
}
|
|
107
|
+
:host .content {
|
|
108
|
+
flex: 1;
|
|
109
|
+
text-align: left;
|
|
110
|
+
color: var(--text-primary, #333);
|
|
111
|
+
font-family: var(--ff-body, Tahoma);
|
|
112
|
+
font-size: var(--fz-md, 14px);
|
|
113
|
+
line-height: 128%;
|
|
114
|
+
letter-spacing: 0.16px;
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
row-gap: var(--spacing-06, 24px);
|
|
118
|
+
word-break: break-all;
|
|
119
|
+
}
|
|
120
|
+
:host .content_title {
|
|
121
|
+
text-align: left;
|
|
122
|
+
margin: 0;
|
|
123
|
+
padding: 0;
|
|
124
|
+
font-weight: 700;
|
|
125
|
+
line-height: var(--notification-icon-size);
|
|
126
|
+
}
|
|
127
|
+
:host .icon {
|
|
128
|
+
width: var(--notification-icon-size);
|
|
129
|
+
height: var(--notification-icon-size);
|
|
130
|
+
font-size: var(--notification-icon-size);
|
|
131
|
+
fill: currentColor;
|
|
132
|
+
}
|
|
133
|
+
:host .close {
|
|
134
|
+
--notification-close-size: 16px;
|
|
135
|
+
background-color: transparent;
|
|
136
|
+
border: none;
|
|
137
|
+
width: var(--notification-close-size);
|
|
138
|
+
height: var(--notification-close-size);
|
|
139
|
+
min-width: var(--notification-close-size);
|
|
140
|
+
min-height: var(--notification-close-size);
|
|
141
|
+
position: relative;
|
|
142
|
+
padding: 0;
|
|
143
|
+
margin: 0;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
transition: 300ms ease-in-out opacity;
|
|
150
|
+
}
|
|
151
|
+
:host .close:after, :host .close:before {
|
|
152
|
+
content: "";
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: calc(50% - var(--notification-close-size) / 2);
|
|
155
|
+
left: calc(50% - 1px);
|
|
156
|
+
display: inline-block;
|
|
157
|
+
width: 2px;
|
|
158
|
+
height: 90%;
|
|
159
|
+
background-color: var(--button-tertiary, #273435);
|
|
160
|
+
}
|
|
161
|
+
:host .close:after {
|
|
162
|
+
transform: rotate(45deg);
|
|
163
|
+
}
|
|
164
|
+
:host .close:before {
|
|
165
|
+
transform: rotate(-45deg);
|
|
166
|
+
}
|
|
167
|
+
:host .close:hover {
|
|
168
|
+
opacity: 0.7;
|
|
169
|
+
}
|
|
170
|
+
:host .close:active {
|
|
171
|
+
opacity: 0.3;
|
|
172
|
+
}
|
|
173
|
+
:host ::slotted([slot=footer]) {
|
|
174
|
+
margin: 0;
|
|
175
|
+
padding: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host([type=info]) {
|
|
179
|
+
border-color: var(--support-info, #1B87B2);
|
|
180
|
+
background-color: var(--support-info-background, #E2F5F8);
|
|
181
|
+
}
|
|
182
|
+
:host([type=info]) .icon {
|
|
183
|
+
color: var(--support-info, #1B87B2);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([type=success]) {
|
|
187
|
+
border-color: var(--support-success, #97BF0D);
|
|
188
|
+
background-color: var(--support-success-background, #F4F7E5);
|
|
189
|
+
}
|
|
190
|
+
:host([type=success]) .icon {
|
|
191
|
+
color: var(--support-success, #1B87B2);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host([type=warning]) {
|
|
195
|
+
border-color: var(--support-warning, #FF7F04);
|
|
196
|
+
background-color: var(--support-warning-backround, #FFF9C2);
|
|
197
|
+
}
|
|
198
|
+
:host([type=warning]) .icon {
|
|
199
|
+
color: var(--support-warning, #FF7F04);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host([type=error]) {
|
|
203
|
+
border-color: var(--support-error, #F1290E);
|
|
204
|
+
background-color: var(--support-error-background, #FEE9E8);
|
|
205
|
+
}
|
|
206
|
+
:host([type=error]) .icon {
|
|
207
|
+
color: var(--support-error, #F1290E);
|
|
208
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { NOTIFICATION_VARIANTS } from "./_vars";
|
|
3
|
+
export class XvNotification {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.variant = NOTIFICATION_VARIANTS.INFO;
|
|
6
|
+
this.dismissible = false;
|
|
7
|
+
this.closeHandle = (e) => this.close.emit(e);
|
|
8
|
+
this.renderIcon = (variant, cls = 'icon') => {
|
|
9
|
+
switch (variant) {
|
|
10
|
+
case NOTIFICATION_VARIANTS.ERROR: {
|
|
11
|
+
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z" })));
|
|
12
|
+
}
|
|
13
|
+
case NOTIFICATION_VARIANTS.INFO: {
|
|
14
|
+
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z" })));
|
|
15
|
+
}
|
|
16
|
+
case NOTIFICATION_VARIANTS.SUCCESS: {
|
|
17
|
+
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })));
|
|
18
|
+
}
|
|
19
|
+
case NOTIFICATION_VARIANTS.WARNING: {
|
|
20
|
+
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z" })));
|
|
21
|
+
}
|
|
22
|
+
default:
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return (h(Host, { key: '6a355a59d18e50c04501766a370b0baacf5c2944', class: "xv-notification", type: this.variant }, this.renderIcon(this.variant), h("div", { key: '15f3fc782f6b188f7de37538d023def32e09b0af', class: "content" }, h("div", { key: 'd86f0c248d26be14152fae477066a7453d07ffd8', class: "content_wrapper" }, this.el.title && h("h5", { key: 'caf315e339f97462ca3de9e0fc9a56097a756649', class: "content_title" }, this.el.title), h("slot", { key: '36ccf639210efeb77a396baecb20da7b50597e95' })), h("slot", { key: '9fa1f1712e976dbfd6652c9ddaa142bc237ec76d', name: "footer" })), this.dismissible && h("button", { key: 'd8dfc3ab44174215b2244281e9bf00ac15cb6775', class: "close", onClick: this.closeHandle })));
|
|
29
|
+
}
|
|
30
|
+
static get is() { return "xv-notification-v2"; }
|
|
31
|
+
static get encapsulation() { return "shadow"; }
|
|
32
|
+
static get originalStyleUrls() {
|
|
33
|
+
return {
|
|
34
|
+
"$": ["xv-notification.scss"]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
static get styleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["xv-notification.css"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get assetsDirs() { return ["xv-notification/icons"]; }
|
|
43
|
+
static get properties() {
|
|
44
|
+
return {
|
|
45
|
+
"variant": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"attribute": "variant",
|
|
48
|
+
"mutable": false,
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "NOTIFICATION_VARIANTS",
|
|
51
|
+
"resolved": "NOTIFICATION_VARIANTS.ERROR | NOTIFICATION_VARIANTS.INFO | NOTIFICATION_VARIANTS.SUCCESS | NOTIFICATION_VARIANTS.WARNING",
|
|
52
|
+
"references": {
|
|
53
|
+
"NOTIFICATION_VARIANTS": {
|
|
54
|
+
"location": "import",
|
|
55
|
+
"path": "./_vars",
|
|
56
|
+
"id": "src/components/xv-notification/_vars.ts::NOTIFICATION_VARIANTS"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": ""
|
|
65
|
+
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
68
|
+
"reflect": true,
|
|
69
|
+
"defaultValue": "NOTIFICATION_VARIANTS.INFO"
|
|
70
|
+
},
|
|
71
|
+
"dismissible": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"attribute": "dismissible",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "boolean",
|
|
77
|
+
"resolved": "boolean",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": false,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": ""
|
|
85
|
+
},
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
88
|
+
"reflect": true,
|
|
89
|
+
"defaultValue": "false"
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get events() {
|
|
94
|
+
return [{
|
|
95
|
+
"method": "close",
|
|
96
|
+
"name": "close",
|
|
97
|
+
"bubbles": true,
|
|
98
|
+
"cancelable": true,
|
|
99
|
+
"composed": true,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "MouseEvent",
|
|
106
|
+
"resolved": "MouseEvent",
|
|
107
|
+
"references": {
|
|
108
|
+
"MouseEvent": {
|
|
109
|
+
"location": "global",
|
|
110
|
+
"id": "global::MouseEvent"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}];
|
|
115
|
+
}
|
|
116
|
+
static get elementRef() { return "el"; }
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=xv-notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-notification.js","sourceRoot":"","sources":["../../../src/components/xv-notification/xv-notification.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQhD,MAAM,OAAO,cAAc;IAN3B;QAQ2B,YAAO,GAA0B,qBAAqB,CAAC,IAAI,CAAC;QAC5D,gBAAW,GAAY,KAAK,CAAC;QAG9C,gBAAW,GAAG,CAAC,CAAa,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAoBpD,eAAU,GAAG,CAAC,OAA8B,EAAE,MAAc,MAAM,EAAE,EAAE;YAC5E,QAAQ,OAAO,EAAE,CAAC;gBAChB,KAAK,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;oBACjC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,0RAA0R,GAAG,CAC7R,CACP,CAAC;gBACJ,CAAC;gBACD,KAAK,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;oBAChC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,0QAA0Q,GAAG,CAC7Q,CACP,CAAC;gBACJ,CAAC;gBACD,KAAK,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;oBACnC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,mMAAmM,GAAG,CACtM,CACP,CAAA;gBACH,CAAC;gBACD,KAAK,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;oBACnC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,yTAAyT,GAAG,CAC5T,CACP,CAAC;gBACJ,CAAC;gBACD;oBACE,OAAO,IAAI,CAAC;YAChB,CAAC;QACH,CAAC,CAAC;KACH;IAxDC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAE,IAAI,CAAC,OAAO;YAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;YAE9B,4DAAK,KAAK,EAAC,SAAS;gBAClB,4DAAK,KAAK,EAAC,iBAAiB;oBACzB,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,2DAAI,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAM;oBAChE,8DAAa,CACT;gBACN,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB;YAEL,IAAI,CAAC,WAAW,IAAI,+DAAQ,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,GAAI,CACnE,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCF","sourcesContent":["import { Component, Host, h, Prop, Element, Event, EventEmitter } from '@stencil/core';\nimport { NOTIFICATION_VARIANTS } from './_vars';\n\n@Component({\n tag: 'xv-notification-v2',\n styleUrl: 'xv-notification.scss',\n shadow: true,\n assetsDirs: ['xv-notification/icons']\n})\nexport class XvNotification {\n @Element() el: HTMLElement;\n @Prop({ reflect: true }) variant: NOTIFICATION_VARIANTS = NOTIFICATION_VARIANTS.INFO;\n @Prop({ reflect: true }) dismissible: boolean = false;\n @Event() close: EventEmitter<MouseEvent>;\n\n private closeHandle = (e: MouseEvent) => this.close.emit(e);\n\n render() {\n return (\n <Host class=\"xv-notification\" type={this.variant}>\n {this.renderIcon(this.variant)}\n\n <div class=\"content\">\n <div class=\"content_wrapper\">\n {this.el.title && <h5 class=\"content_title\">{this.el.title}</h5>}\n <slot></slot>\n </div>\n <slot name=\"footer\"></slot>\n </div>\n\n {this.dismissible && <button class=\"close\" onClick={this.closeHandle} />}\n </Host>\n );\n }\n\n private renderIcon = (variant: NOTIFICATION_VARIANTS, cls: string = 'icon') => {\n switch (variant) {\n case NOTIFICATION_VARIANTS.ERROR: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z\" />\n </svg>\n );\n }\n case NOTIFICATION_VARIANTS.INFO: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\" />\n </svg>\n );\n }\n case NOTIFICATION_VARIANTS.SUCCESS: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z\" />\n </svg>\n )\n }\n case NOTIFICATION_VARIANTS.WARNING: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z\" />\n </svg>\n );\n }\n default:\n return null;\n }\n };\n}\n"]}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
.xv-tooltip[role=tooltip] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background-color: var(--background-inverse, #333333);
|
|
4
|
+
color: var(--text-on-color);
|
|
5
|
+
padding: var(--spacing-03) var(--spacing-04);
|
|
6
|
+
border-radius: 3px;
|
|
7
|
+
font-size: var(--fz-sm);
|
|
8
|
+
z-index: 999;
|
|
9
|
+
min-width: min(150px, 90vw);
|
|
10
|
+
max-width: min(400px, 90vw);
|
|
11
|
+
}
|
|
12
|
+
.xv-tooltip[role=tooltip]::after {
|
|
13
|
+
content: "";
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
border-style: solid;
|
|
18
|
+
}
|
|
19
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top]::after {
|
|
20
|
+
bottom: -5px;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translateX(-50%);
|
|
23
|
+
border-width: 5px 5px 0 5px;
|
|
24
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
25
|
+
}
|
|
26
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-start]::after {
|
|
27
|
+
bottom: -5px;
|
|
28
|
+
left: 12px;
|
|
29
|
+
border-width: 5px 5px 0 5px;
|
|
30
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
31
|
+
}
|
|
32
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-end]::after {
|
|
33
|
+
bottom: -5px;
|
|
34
|
+
right: 12px;
|
|
35
|
+
border-width: 5px 5px 0 5px;
|
|
36
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
37
|
+
}
|
|
38
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom]::after {
|
|
39
|
+
top: -5px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
border-width: 0 5px 5px 5px;
|
|
43
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
44
|
+
}
|
|
45
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-start]::after {
|
|
46
|
+
top: -5px;
|
|
47
|
+
left: 12px;
|
|
48
|
+
border-width: 0 5px 5px 5px;
|
|
49
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
50
|
+
}
|
|
51
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-end]::after {
|
|
52
|
+
top: -5px;
|
|
53
|
+
right: 12px;
|
|
54
|
+
border-width: 0 5px 5px 5px;
|
|
55
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
56
|
+
}
|
|
57
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left]::after {
|
|
58
|
+
top: 50%;
|
|
59
|
+
right: -5px;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
border-width: 5px 0 5px 5px;
|
|
62
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
63
|
+
}
|
|
64
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-start]::after {
|
|
65
|
+
top: 12px;
|
|
66
|
+
right: -5px;
|
|
67
|
+
border-width: 5px 0 5px 5px;
|
|
68
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
69
|
+
}
|
|
70
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-end]::after {
|
|
71
|
+
bottom: 12px;
|
|
72
|
+
right: -5px;
|
|
73
|
+
border-width: 5px 0 5px 5px;
|
|
74
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
75
|
+
}
|
|
76
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right]::after {
|
|
77
|
+
top: 50%;
|
|
78
|
+
left: -5px;
|
|
79
|
+
transform: translateY(-50%);
|
|
80
|
+
border-width: 5px 5px 5px 0;
|
|
81
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
82
|
+
}
|
|
83
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-start]::after {
|
|
84
|
+
top: 12px;
|
|
85
|
+
left: -5px;
|
|
86
|
+
border-width: 5px 5px 5px 0;
|
|
87
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
88
|
+
}
|
|
89
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-end]::after {
|
|
90
|
+
bottom: 12px;
|
|
91
|
+
left: -5px;
|
|
92
|
+
border-width: 5px 5px 5px 0;
|
|
93
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host {
|
|
97
|
+
display: inline-block;
|
|
98
|
+
text-align: left;
|
|
99
|
+
}
|
|
100
|
+
:host .control_label {
|
|
101
|
+
display: block;
|
|
102
|
+
margin-bottom: var(--spacing-03);
|
|
103
|
+
color: var(--text-secondary, #515151);
|
|
104
|
+
font-family: var(--ff-body, Tahoma);
|
|
105
|
+
font-size: var(--fz-sm, 12px);
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
line-height: var(--fz-md);
|
|
109
|
+
letter-spacing: 0.32px;
|
|
110
|
+
}
|
|
111
|
+
:host .control_input {
|
|
112
|
+
display: flex;
|
|
113
|
+
border: 1px solid var(--border-subtle-01);
|
|
114
|
+
outline: 2px solid transparent;
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
border-radius: 3px;
|
|
117
|
+
transition: 250ms ease-in-out border-color, 250ms ease-in-out outline-color;
|
|
118
|
+
}
|
|
119
|
+
:host .control_input:hover {
|
|
120
|
+
border-color: var(--border-subtle-selected-01);
|
|
121
|
+
}
|
|
122
|
+
:host .control_input:focus-within {
|
|
123
|
+
outline-color: var(--focus);
|
|
124
|
+
}
|
|
125
|
+
:host .control_input.error {
|
|
126
|
+
outline-color: var(--support-error);
|
|
127
|
+
}
|
|
128
|
+
:host .control_input.readonly {
|
|
129
|
+
border-radius: 0;
|
|
130
|
+
border-top-width: 0;
|
|
131
|
+
border-left-width: 0;
|
|
132
|
+
border-right-width: 0;
|
|
133
|
+
outline-color: transparent;
|
|
134
|
+
}
|
|
135
|
+
:host .control_input input[type=number] {
|
|
136
|
+
flex: 1;
|
|
137
|
+
border: none;
|
|
138
|
+
outline: none;
|
|
139
|
+
-moz-appearance: textfield;
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
margin: 0;
|
|
142
|
+
padding-block: 0;
|
|
143
|
+
padding-inline: var(--spacing-05);
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
color: var(--text-primary);
|
|
146
|
+
min-width: 20px;
|
|
147
|
+
font-style: normal;
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
letter-spacing: 0.16px;
|
|
150
|
+
}
|
|
151
|
+
:host .control_input input[type=number]::-webkit-inner-spin-button, :host .control_input input[type=number]::-webkit-outer-spin-button {
|
|
152
|
+
-webkit-appearance: none;
|
|
153
|
+
margin: 0;
|
|
154
|
+
}
|
|
155
|
+
:host .control_input__icons {
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
align-items: stretch;
|
|
158
|
+
column-gap: 2px;
|
|
159
|
+
}
|
|
160
|
+
:host .control_input__icons .status-icon {
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
align-self: center;
|
|
164
|
+
font-size: 1.35em;
|
|
165
|
+
}
|
|
166
|
+
:host .control_input__icons .status-icon.error {
|
|
167
|
+
background-color: var(--support-error);
|
|
168
|
+
color: white;
|
|
169
|
+
width: 16px;
|
|
170
|
+
height: 16px;
|
|
171
|
+
border-radius: 8px;
|
|
172
|
+
font-size: 12px;
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
}
|
|
177
|
+
:host .control_input__icons .status-icon.warning {
|
|
178
|
+
color: var(--support-warning);
|
|
179
|
+
}
|
|
180
|
+
:host .control_input__icons hr {
|
|
181
|
+
border: none;
|
|
182
|
+
outline: none;
|
|
183
|
+
width: 2px;
|
|
184
|
+
height: 60%;
|
|
185
|
+
align-self: center;
|
|
186
|
+
background-color: var(--border-subtle-01);
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
}
|
|
189
|
+
:host .message {
|
|
190
|
+
margin: var(--spacing-02) 0 0;
|
|
191
|
+
color: var(--text-helper, #646464);
|
|
192
|
+
font-size: var(--fz-sm, 12px);
|
|
193
|
+
font-style: normal;
|
|
194
|
+
font-weight: 400;
|
|
195
|
+
line-height: var(--fz-md, 16px);
|
|
196
|
+
letter-spacing: 0.32px;
|
|
197
|
+
}
|
|
198
|
+
:host .message.error {
|
|
199
|
+
color: var(--text-error);
|
|
200
|
+
}
|
|
201
|
+
:host .message.warning {
|
|
202
|
+
color: var(--text-secondary, #515151);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:host(.disabled) {
|
|
206
|
+
cursor: not-allowed;
|
|
207
|
+
}
|
|
208
|
+
:host(.disabled) .control_label,
|
|
209
|
+
:host(.disabled) .control_input input[type=number],
|
|
210
|
+
:host(.disabled) .control_input input[type=number]::placeholder,
|
|
211
|
+
:host(.disabled) .message:not(.error) {
|
|
212
|
+
color: var(--text-disabled);
|
|
213
|
+
cursor: not-allowed;
|
|
214
|
+
}
|
|
215
|
+
:host(.disabled) .control_input__icons,
|
|
216
|
+
:host(.disabled) .message.error {
|
|
217
|
+
opacity: 0.5;
|
|
218
|
+
cursor: not-allowed;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host([block]) {
|
|
222
|
+
display: block;
|
|
223
|
+
}
|