@xplortech/apollo-core 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.typings/apollo-components.html-data.json +1156 -115
- package/build/style.css +12151 -5333
- package/dist/apollo-core/apollo-core.css +68 -37
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-f4c2626d.entry.js → p-084d26ed.entry.js} +1 -1
- package/dist/apollo-core/p-146d5d55.entry.js +1 -0
- package/dist/apollo-core/p-16742606.entry.js +1 -0
- package/dist/apollo-core/{p-0ac33b3a.entry.js → p-28d12fd3.entry.js} +1 -1
- package/dist/apollo-core/{p-7d245bf0.entry.js → p-3eb5eb7c.entry.js} +1 -1
- package/dist/apollo-core/p-4882f0bd.entry.js +1 -0
- package/dist/apollo-core/p-64b34268.entry.js +1 -0
- package/dist/apollo-core/p-6c956d4e.entry.js +1 -0
- package/dist/apollo-core/p-71b75f36.entry.js +1 -0
- package/dist/apollo-core/p-7eb86c63.entry.js +1 -0
- package/dist/apollo-core/{p-0e1877a2.entry.js → p-84254a24.entry.js} +1 -1
- package/dist/apollo-core/p-9f2a0321.entry.js +1 -0
- package/dist/apollo-core/p-C7bgJs6C.js +2 -0
- package/dist/apollo-core/p-cde83ab0.entry.js +1 -0
- package/dist/apollo-core/p-e7363036.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +3 -3
- package/dist/cjs/{index-D__N_vw2.js → index-BQ97-AWw.js} +149 -96
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -5
- package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -4
- package/dist/cjs/{xpl-avatar_41.cjs.entry.js → xpl-avatar_61.cjs.entry.js} +9154 -1989
- package/dist/cjs/xpl-button-row.cjs.entry.js +4 -4
- package/dist/cjs/xpl-calendar.cjs.entry.js +4 -4
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +4 -4
- package/dist/cjs/xpl-grid-item.cjs.entry.js +4 -4
- package/dist/cjs/xpl-grid.cjs.entry.js +4 -4
- package/dist/cjs/xpl-large-card.cjs.entry.js +4 -4
- package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -4
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +26 -8
- package/dist/collection/components/xpl-accordion/accordion.stories.js +4 -0
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +3 -3
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +4 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +2 -2
- package/dist/collection/components/xpl-avatar/avatar.stories.js +122 -103
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +250 -16
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +4 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +2 -2
- package/dist/collection/components/xpl-badge/badge.stories.js +76 -33
- package/dist/collection/components/xpl-badge/xpl-badge.js +122 -14
- package/dist/collection/components/xpl-banner/banner.stories.js +64 -0
- package/dist/collection/components/xpl-banner/xpl-banner.js +296 -0
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +4 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -2
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -2
- package/dist/collection/components/xpl-button/button.stories.js +102 -98
- package/dist/collection/components/xpl-button/xpl-button.js +201 -93
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +2 -2
- package/dist/collection/components/xpl-calendar/calendar.stories.js +4 -0
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +2 -2
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +4 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +48 -26
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +4 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +2 -2
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +2 -2
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +2 -2
- package/dist/collection/components/xpl-data-card/data-card.stories.js +4 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +3 -3
- package/dist/collection/components/xpl-divider/divider.stories.js +4 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +29 -4
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +120 -79
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +3 -3
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +3 -3
- package/dist/collection/components/xpl-grid/xpl-grid.js +2 -2
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +2 -2
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +47 -54
- package/dist/collection/components/xpl-icon/xpl-icon.js +3 -3
- package/dist/collection/components/xpl-input/input.stories.js +170 -9
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +9 -9
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +55 -17
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-phone/phone-country-data.js +58 -0
- package/dist/collection/components/xpl-input/xpl-input-phone/phone-format.js +219 -0
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +469 -0
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +485 -0
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input.js +223 -17
- package/dist/collection/components/xpl-large-card/large-card.stories.js +4 -0
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +2 -2
- package/dist/collection/components/xpl-list/list.stories.js +300 -63
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +818 -0
- package/dist/collection/components/xpl-list/xpl-list.js +580 -22
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +2 -2
- package/dist/collection/components/xpl-modal/modal.stories.js +4 -0
- package/dist/collection/components/xpl-modal/xpl-modal.js +2 -2
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +3 -3
- package/dist/collection/components/xpl-pagination/pagination.stories.js +4 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +4 -4
- package/dist/collection/components/xpl-panel/panel.stories.js +53 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +60 -0
- package/dist/collection/components/xpl-popover/popover.stories.js +4 -0
- package/dist/collection/components/xpl-popover/xpl-popover.js +5 -5
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +96 -0
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +158 -0
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +118 -0
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +171 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +4 -4
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -2
- package/dist/collection/components/xpl-select/xpl-select.js +7 -7
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +519 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +259 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +32 -0
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +2 -2
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +2 -2
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +385 -0
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +1085 -0
- package/dist/collection/components/xpl-tab/xpl-tab.js +262 -9
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +23 -16
- package/dist/collection/components/xpl-table/table.stories.js +319 -67
- package/dist/collection/components/xpl-table/utils/move-row-dom.js +50 -0
- package/dist/collection/components/xpl-table/utils/table-internal.js +58 -0
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +155 -0
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +37 -0
- package/dist/collection/components/xpl-table/xpl-table-header/table-header.stories.js +131 -0
- package/dist/collection/components/xpl-table/xpl-table-header/xpl-table-header.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-header-cell/table-header-cell.stories.js +105 -0
- package/dist/collection/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.js +402 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +121 -0
- package/dist/collection/components/xpl-table/xpl-table.js +1449 -144
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +31 -0
- package/dist/collection/components/xpl-tabs/tabs.shared.js +156 -0
- package/dist/collection/components/xpl-tabs/tabs.stories.js +10 -60
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +339 -63
- package/dist/collection/components/xpl-tag/tag.stories.js +153 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +313 -10
- package/dist/collection/components/xpl-toast/xpl-toast.js +3 -3
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +4 -4
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +3 -3
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +2 -2
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +625 -0
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +122 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +481 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +433 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +2 -2
- package/dist/collection/utils/layout-ancestors.js +22 -0
- package/dist/collection/utils/lifecycle.js +79 -0
- package/dist/collection/utils/tab-a11y-ids.js +22 -0
- package/dist/components/floating-ui.dom.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/lifecycle.js +1 -0
- package/dist/components/tab-a11y-ids.js +1 -0
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-avatar2.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-backdrop2.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-badge2.js +1 -1
- package/dist/components/xpl-banner.d.ts +11 -0
- package/dist/components/xpl-banner.js +1 -0
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-button2.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-checkbox2.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-divider2.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-group2.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-heading2.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown-option2.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dropdown2.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-icon2.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-date2.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-file2.js +1 -1
- package/dist/components/xpl-input-phone.d.ts +11 -0
- package/dist/components/xpl-input-phone.js +1 -0
- package/dist/components/xpl-input-search.d.ts +11 -0
- package/dist/components/xpl-input-search.js +1 -0
- package/dist/components/xpl-input-search2.js +1 -0
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-input2.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/{xpl-progress.d.ts → xpl-list-item.d.ts} +4 -4
- package/dist/components/xpl-list-item.js +1 -0
- package/dist/components/xpl-list-item2.js +1 -0
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.d.ts +11 -0
- package/dist/components/xpl-nav-header-menu.js +1 -0
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.d.ts +11 -0
- package/dist/components/xpl-panel.js +1 -0
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-popover2.js +1 -1
- package/dist/components/xpl-progress-bar.d.ts +11 -0
- package/dist/components/xpl-progress-bar.js +1 -0
- package/dist/components/xpl-progress-indicator.d.ts +11 -0
- package/dist/components/xpl-progress-indicator.js +1 -0
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-radio2.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-select2.js +1 -1
- package/dist/components/xpl-side-nav-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-item.js +1 -0
- package/dist/components/xpl-side-nav.d.ts +11 -0
- package/dist/components/xpl-side-nav.js +1 -0
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.d.ts +11 -0
- package/dist/components/xpl-spotlight.js +1 -0
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-body.d.ts +11 -0
- package/dist/components/xpl-table-body.js +1 -0
- package/dist/components/xpl-table-cell.d.ts +11 -0
- package/dist/components/xpl-table-cell.js +1 -0
- package/dist/components/xpl-table-cell2.js +1 -0
- package/dist/components/xpl-table-footer-cell.d.ts +11 -0
- package/dist/components/xpl-table-footer-cell.js +1 -0
- package/dist/components/xpl-table-footer-cell2.js +1 -0
- package/dist/components/xpl-table-footer.d.ts +11 -0
- package/dist/components/xpl-table-footer.js +1 -0
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header-cell2.js +1 -0
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.d.ts +11 -0
- package/dist/components/xpl-table-row.js +1 -0
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-tag2.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-tooltip2.js +1 -1
- package/dist/components/xpl-top-nav-item.d.ts +11 -0
- package/dist/components/xpl-top-nav-item.js +1 -0
- package/dist/components/xpl-top-nav-item2.js +1 -0
- package/dist/components/xpl-top-nav.d.ts +11 -0
- package/dist/components/xpl-top-nav.js +1 -0
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +4 -0
- package/dist/docs/xpl-avatar/readme.md +291 -12
- package/dist/docs/xpl-backdrop/readme.md +1 -1
- package/dist/docs/xpl-badge/readme.md +104 -6
- package/dist/docs/xpl-banner/readme.md +203 -0
- package/dist/docs/xpl-button/readme.md +161 -14
- package/dist/docs/xpl-button-row/readme.md +1 -0
- package/dist/docs/xpl-calendar/readme.md +2 -1
- package/dist/docs/xpl-checkbox/readme.md +19 -14
- package/dist/docs/xpl-choicelist/readme.md +1 -0
- package/dist/docs/xpl-data-card/readme.md +2 -2
- package/dist/docs/xpl-divider/readme.md +6 -4
- package/dist/docs/xpl-dropdown/readme.md +15 -12
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +1 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +6 -0
- package/dist/docs/xpl-dynamic-table/readme.md +22 -19
- package/dist/docs/xpl-dynamic-table-cell/readme.md +20 -18
- package/dist/docs/xpl-dynamic-table-row/readme.md +21 -19
- package/dist/docs/xpl-icon/readme.md +27 -3
- package/dist/docs/xpl-input/readme.md +72 -37
- package/dist/docs/xpl-input/xpl-input-color/readme.md +5 -0
- package/dist/docs/xpl-input/xpl-input-phone/readme.md +168 -0
- package/dist/docs/xpl-input/xpl-input-search/readme.md +175 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +5 -0
- package/dist/docs/xpl-large-card/readme.md +1 -1
- package/dist/docs/xpl-list/readme.md +320 -10
- package/dist/docs/xpl-list/xpl-list-item/readme.md +99 -0
- package/dist/docs/xpl-modal/readme.md +3 -0
- package/dist/docs/xpl-pagination/readme.md +4 -0
- package/dist/docs/xpl-panel/readme.md +174 -0
- package/dist/docs/xpl-popover/readme.md +3 -1
- package/dist/docs/xpl-progress-bar/readme.md +145 -0
- package/dist/docs/xpl-progress-indicator/readme.md +234 -0
- package/dist/docs/xpl-radio/readme.md +6 -4
- package/dist/docs/xpl-select/readme.md +3 -1
- package/dist/docs/xpl-side-nav/readme.md +71 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +115 -0
- package/dist/docs/xpl-slideout/readme.md +2 -1
- package/dist/docs/xpl-spotlight/readme.md +235 -0
- package/dist/docs/xpl-tab/readme.md +43 -7
- package/dist/docs/xpl-tab-panel/readme.md +42 -0
- package/dist/docs/xpl-table/readme.md +110 -46
- package/dist/docs/xpl-table/xpl-table-body/readme.md +10 -0
- package/dist/docs/xpl-table/xpl-table-cell/readme.md +33 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +10 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +30 -0
- package/dist/docs/{xpl-table-header → xpl-table/xpl-table-header}/readme.md +13 -13
- package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +66 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +19 -0
- package/dist/docs/xpl-tabs/readme.md +63 -8
- package/dist/docs/xpl-tag/readme.md +379 -4
- package/dist/docs/xpl-toast/readme.md +56 -1
- package/dist/docs/xpl-top-nav/readme.md +179 -0
- package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +81 -0
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +87 -0
- package/dist/esm/apollo-core.js +4 -4
- package/dist/esm/{index-DhZas3eX.js → index-C7bgJs6C.js} +149 -97
- package/dist/esm/loader.js +3 -3
- package/dist/esm/xpl-accordion.entry.js +5 -5
- package/dist/esm/xpl-application-shell.entry.js +4 -4
- package/dist/esm/{xpl-avatar_41.entry.js → xpl-avatar_61.entry.js} +9087 -1942
- package/dist/esm/xpl-button-row.entry.js +4 -4
- package/dist/esm/xpl-calendar.entry.js +4 -4
- package/dist/esm/xpl-dynamic-table-cell.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +4 -4
- package/dist/esm/xpl-grid-item.entry.js +4 -4
- package/dist/esm/xpl-grid.entry.js +4 -4
- package/dist/esm/xpl-large-card.entry.js +4 -4
- package/dist/esm/xpl-main-nav.entry.js +4 -4
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +5 -5
- package/dist/types/components/xpl-accordion/xpl-accordion.d.ts +1 -1
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +4 -0
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +90 -27
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +30 -3
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +4 -0
- package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +1 -1
- package/dist/types/components/xpl-badge/badge.stories.d.ts +47 -11
- package/dist/types/components/xpl-badge/xpl-badge.d.ts +9 -2
- package/dist/types/components/xpl-banner/banner.stories.d.ts +77 -0
- package/dist/types/components/xpl-banner/xpl-banner.d.ts +20 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +4 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +1 -1
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +1 -1
- package/dist/types/components/xpl-button/button.stories.d.ts +68 -30
- package/dist/types/components/xpl-button/xpl-button.d.ts +21 -8
- package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +1 -1
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +4 -0
- package/dist/types/components/xpl-calendar/xpl-calendar.d.ts +1 -1
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +4 -0
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +5 -4
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +4 -0
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -1
- package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +1 -1
- package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +1 -1
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +4 -0
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +1 -1
- package/dist/types/components/xpl-divider/divider.stories.d.ts +4 -0
- package/dist/types/components/xpl-divider/xpl-divider.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/dropdown-option.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +3 -2
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +11 -8
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +1 -1
- package/dist/types/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.d.ts +1 -1
- package/dist/types/components/xpl-dynamic-table-row/xpl-dynamic-table-row.d.ts +1 -1
- package/dist/types/components/xpl-grid/xpl-grid.d.ts +1 -1
- package/dist/types/components/xpl-grid-item/xpl-grid-item.d.ts +1 -1
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +10 -11
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +1 -1
- package/dist/types/components/xpl-input/input.stories.d.ts +37 -7
- package/dist/types/components/xpl-input/xpl-input-color/xpl-input-color.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +10 -3
- package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-phone/phone-country-data.d.ts +13 -0
- package/dist/types/components/xpl-input/xpl-input-phone/phone-format.d.ts +5 -0
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +48 -0
- package/dist/types/components/xpl-input/xpl-input-search/xpl-input-search.d.ts +39 -0
- package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input.d.ts +23 -5
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +4 -0
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +1 -1
- package/dist/types/components/xpl-list/list.stories.d.ts +299 -13
- package/dist/types/components/xpl-list/listitem.d.ts +13 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +71 -0
- package/dist/types/components/xpl-list/xpl-list.d.ts +56 -3
- package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +4 -0
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +1 -1
- package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +4 -0
- package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
- package/dist/types/components/xpl-panel/panel.stories.d.ts +22 -0
- package/dist/types/components/xpl-panel/xpl-panel.d.ts +5 -0
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +1 -1
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +73 -0
- package/dist/types/components/xpl-progress-bar/xpl-progress-bar.d.ts +15 -0
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +62 -0
- package/dist/types/components/xpl-progress-indicator/xpl-progress-indicator.d.ts +11 -0
- package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
- package/dist/types/components/xpl-secondary-nav/xpl-secondary-nav.d.ts +1 -1
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +80 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +20 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +4 -0
- package/dist/types/components/xpl-skeleton/xpl-skeleton.d.ts +1 -1
- package/dist/types/components/xpl-slideout/xpl-slideout.d.ts +1 -1
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +197 -0
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +101 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +15 -2
- package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +3 -2
- package/dist/types/components/xpl-table/table.stories.d.ts +161 -19
- package/dist/types/components/xpl-table/utils/move-row-dom.d.ts +3 -0
- package/dist/types/components/xpl-table/utils/table-internal.d.ts +8 -0
- package/dist/types/components/xpl-table/xpl-table-body/xpl-table-body.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-cell/xpl-table-cell.d.ts +11 -0
- package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +4 -0
- package/dist/types/components/{xpl-table-header → xpl-table/xpl-table-header}/table-header.stories.d.ts +13 -16
- package/dist/types/components/xpl-table/xpl-table-header/xpl-table-header.d.ts +3 -0
- package/dist/types/components/{xpl-table-header-cell → xpl-table/xpl-table-header-cell}/table-header-cell.stories.d.ts +24 -20
- package/dist/types/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.d.ts +32 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +13 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +124 -22
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +112 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +156 -0
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +65 -12
- package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +38 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +65 -0
- package/dist/types/components/xpl-tag/xpl-tag.d.ts +37 -2
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +1 -1
- package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
- package/dist/types/components/xpl-toolbar/xpl-toolbar.d.ts +1 -1
- package/dist/types/components/xpl-tooltip/xpl-tooltip.d.ts +1 -1
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +471 -0
- package/dist/types/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.d.ts +18 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +48 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +51 -0
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -1
- package/dist/types/components.d.ts +3059 -278
- package/dist/types/stencil-public-runtime.d.ts +23 -2
- package/dist/types/utils/layout-ancestors.d.ts +2 -0
- package/dist/types/utils/lifecycle.d.ts +16 -0
- package/dist/types/utils/tab-a11y-ids.d.ts +4 -0
- package/package.json +42 -28
- package/dist/apollo-core/p-1c2e4034.entry.js +0 -1
- package/dist/apollo-core/p-3b5f8989.entry.js +0 -1
- package/dist/apollo-core/p-4fab8172.entry.js +0 -1
- package/dist/apollo-core/p-576ce90f.entry.js +0 -1
- package/dist/apollo-core/p-5ec45742.entry.js +0 -1
- package/dist/apollo-core/p-77f0fd4a.entry.js +0 -1
- package/dist/apollo-core/p-7b7db57a.entry.js +0 -1
- package/dist/apollo-core/p-7c22b842.entry.js +0 -1
- package/dist/apollo-core/p-812bb0e4.entry.js +0 -1
- package/dist/apollo-core/p-845eef0d.entry.js +0 -1
- package/dist/apollo-core/p-9853028c.entry.js +0 -1
- package/dist/apollo-core/p-9d65ece7.entry.js +0 -1
- package/dist/apollo-core/p-DhZas3eX.js +0 -2
- package/dist/apollo-core/p-be292555.entry.js +0 -1
- package/dist/cjs/xpl-list.cjs.entry.js +0 -32
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +0 -57
- package/dist/cjs/xpl-table-header.cjs.entry.js +0 -14
- package/dist/collection/components/xpl-progress/progress.stories.js +0 -106
- package/dist/collection/components/xpl-progress/xpl-progress.js +0 -60
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -126
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +0 -7
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -75
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +0 -188
- package/dist/components/xpl-progress.js +0 -1
- package/dist/docs/xpl-progress/readme.md +0 -22
- package/dist/docs/xpl-table-header-cell/readme.md +0 -47
- package/dist/esm/xpl-list.entry.js +0 -30
- package/dist/esm/xpl-table-header-cell.entry.js +0 -55
- package/dist/esm/xpl-table-header.entry.js +0 -12
- package/dist/types/components/xpl-progress/progress.stories.d.ts +0 -38
- package/dist/types/components/xpl-progress/xpl-progress.d.ts +0 -6
- package/dist/types/components/xpl-table-header/xpl-table-header.d.ts +0 -3
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +0 -13
|
@@ -1,39 +1,190 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
-
|
|
2
|
+
const PILL_LABEL_ICON_SELECTORS = '.xpl-button__icon, xpl-icon';
|
|
3
|
+
let xplTabsInstanceCounter = 0;
|
|
4
|
+
function tabHeadingLabelFromElement(tab) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const pillInner = tab.querySelector('xpl-button button');
|
|
7
|
+
if (pillInner) {
|
|
8
|
+
const clone = pillInner.cloneNode(true);
|
|
9
|
+
if (clone instanceof HTMLElement) {
|
|
10
|
+
clone.querySelectorAll(PILL_LABEL_ICON_SELECTORS).forEach((node) => node.remove());
|
|
11
|
+
const text = (_a = clone.textContent) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, ' ').trim();
|
|
12
|
+
if (text) {
|
|
13
|
+
return text;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const underline = tab.querySelector('.xpl-tab__button');
|
|
18
|
+
if (underline) {
|
|
19
|
+
return Array.from(underline.childNodes)
|
|
20
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE)
|
|
21
|
+
.map((node) => { var _a; return ((_a = node.textContent) !== null && _a !== void 0 ? _a : '').trim(); })
|
|
22
|
+
.join(' ');
|
|
23
|
+
}
|
|
24
|
+
return (_b = tab.getAttribute('target')) !== null && _b !== void 0 ? _b : '';
|
|
25
|
+
}
|
|
26
|
+
export class Tabs {
|
|
3
27
|
constructor() {
|
|
4
|
-
this.
|
|
5
|
-
this.
|
|
28
|
+
this.tabHeadings = [];
|
|
29
|
+
this.tabPanels = [];
|
|
30
|
+
this.tablistKeydownBound = false;
|
|
6
31
|
this.activeBarPosition = {
|
|
7
32
|
left: 0,
|
|
8
33
|
width: 0,
|
|
9
34
|
};
|
|
35
|
+
this.choicesTick = 1;
|
|
10
36
|
this.isMobileSelectChange = false;
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
37
|
+
this.selectedValue = '';
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
this.fullWidth = false;
|
|
40
|
+
this.type = 'tabs';
|
|
13
41
|
this.handleTabChange = (target) => {
|
|
14
|
-
this.
|
|
42
|
+
this.applySelection(target);
|
|
43
|
+
};
|
|
44
|
+
this.onTablistKeydown = async (ev) => {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
if (this.disabled) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const tabHost = (_b = (_a = ev.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, 'xpl-tab');
|
|
50
|
+
if (!tabHost || !this.tabHeadings.includes(tabHost)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const { key } = ev;
|
|
54
|
+
const rtl = this.isTablistRtl();
|
|
55
|
+
let moveForward = false;
|
|
56
|
+
let moveBackward = false;
|
|
57
|
+
if (rtl) {
|
|
58
|
+
if (key === 'ArrowLeft' || key === 'ArrowDown') {
|
|
59
|
+
moveForward = true;
|
|
60
|
+
}
|
|
61
|
+
else if (key === 'ArrowRight' || key === 'ArrowUp') {
|
|
62
|
+
moveBackward = true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else if (key === 'ArrowRight' || key === 'ArrowDown') {
|
|
66
|
+
moveForward = true;
|
|
67
|
+
}
|
|
68
|
+
else if (key === 'ArrowLeft' || key === 'ArrowUp') {
|
|
69
|
+
moveBackward = true;
|
|
70
|
+
}
|
|
71
|
+
const isArrow = moveForward || moveBackward;
|
|
72
|
+
const isHome = key === 'Home';
|
|
73
|
+
const isEnd = key === 'End';
|
|
74
|
+
if (!isArrow && !isHome && !isEnd) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const enabled = this.getEnabledTabHeadingsSync();
|
|
78
|
+
if (enabled.length === 0) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const currentIndex = enabled.indexOf(tabHost);
|
|
82
|
+
if (currentIndex === -1) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
let nextIndex;
|
|
86
|
+
if (isArrow) {
|
|
87
|
+
if (moveForward) {
|
|
88
|
+
nextIndex = (currentIndex + 1) % enabled.length;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
nextIndex = (currentIndex - 1 + enabled.length) % enabled.length;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else if (isHome) {
|
|
95
|
+
nextIndex = 0;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
nextIndex = enabled.length - 1;
|
|
99
|
+
}
|
|
100
|
+
const nextTab = enabled[nextIndex];
|
|
101
|
+
const nextValue = nextTab === null || nextTab === void 0 ? void 0 : nextTab.getAttribute('target');
|
|
102
|
+
if (!nextValue) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const currentTarget = tabHost.getAttribute('target');
|
|
106
|
+
ev.preventDefault();
|
|
107
|
+
if (nextValue === currentTarget) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
this.applySelection(nextValue);
|
|
111
|
+
await nextTab.focusTrigger();
|
|
112
|
+
this.tabChange.emit(nextValue);
|
|
15
113
|
};
|
|
16
114
|
}
|
|
17
|
-
|
|
18
|
-
this.
|
|
115
|
+
onDisabledChanged() {
|
|
116
|
+
this.syncGroupDisabledOnTabs();
|
|
117
|
+
if (!this.disabled) {
|
|
118
|
+
this.syncRovingTabindex();
|
|
119
|
+
}
|
|
19
120
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return this.value || ((_b = (_a = this.tabHeadings) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getAttribute('target')) || '';
|
|
121
|
+
onFullWidthChanged() {
|
|
122
|
+
this.syncFullWidthOnTabs();
|
|
23
123
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
124
|
+
onTypeChanged() {
|
|
125
|
+
this.syncVariantOnTabs();
|
|
126
|
+
}
|
|
127
|
+
onValueChanged(newValue) {
|
|
128
|
+
this.applySelection(newValue);
|
|
129
|
+
}
|
|
130
|
+
connectedCallback() {
|
|
131
|
+
if (!this.el.hasAttribute('data-tabs-instance-id')) {
|
|
132
|
+
xplTabsInstanceCounter += 1;
|
|
133
|
+
this.el.setAttribute('data-tabs-instance-id', `xpl-tg-${xplTabsInstanceCounter}`);
|
|
134
|
+
}
|
|
135
|
+
if (typeof MutationObserver === 'undefined') {
|
|
27
136
|
return;
|
|
28
137
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
138
|
+
this.observer = new MutationObserver(() => {
|
|
139
|
+
this.collectTabs(true);
|
|
140
|
+
});
|
|
141
|
+
this.observer.observe(this.el, {
|
|
142
|
+
childList: true,
|
|
143
|
+
subtree: true,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
disconnectedCallback() {
|
|
147
|
+
var _a;
|
|
148
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
149
|
+
if (this.headingsContainerRef && this.tablistKeydownBound) {
|
|
150
|
+
this.headingsContainerRef.removeEventListener('keydown', this.onTablistKeydown);
|
|
151
|
+
this.tablistKeydownBound = false;
|
|
152
|
+
}
|
|
153
|
+
if (this.rafId !== undefined) {
|
|
154
|
+
cancelAnimationFrame(this.rafId);
|
|
155
|
+
this.rafId = undefined;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
componentWillLoad() {
|
|
159
|
+
this.selectedValue = this.getDefaultValue();
|
|
35
160
|
}
|
|
36
|
-
|
|
161
|
+
componentDidLoad() {
|
|
162
|
+
this.collectTabs(false);
|
|
163
|
+
this.attachTablistKeydown();
|
|
164
|
+
}
|
|
165
|
+
componentDidUpdate() {
|
|
166
|
+
this.updateActiveBarPosition();
|
|
167
|
+
this.syncRovingTabindex();
|
|
168
|
+
}
|
|
169
|
+
componentDidRender() {
|
|
170
|
+
if (!this.tablistKeydownBound && this.headingsContainerRef) {
|
|
171
|
+
this.attachTablistKeydown();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
onWindowResize() {
|
|
175
|
+
this.updateActiveBarPosition();
|
|
176
|
+
}
|
|
177
|
+
syncGroupDisabledOnTabs() {
|
|
178
|
+
this.tabHeadings.forEach((tabHeading) => {
|
|
179
|
+
if (this.disabled) {
|
|
180
|
+
tabHeading.setAttribute('data-group-disabled', '');
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
tabHeading.removeAttribute('data-group-disabled');
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
applySelection(newValue) {
|
|
37
188
|
this.tabHeadings.forEach((tabHeading) => {
|
|
38
189
|
const isSelected = newValue === tabHeading.getAttribute('target');
|
|
39
190
|
if (isSelected) {
|
|
@@ -52,52 +203,125 @@ export class XplTabs {
|
|
|
52
203
|
tabPanel.removeAttribute('selected');
|
|
53
204
|
}
|
|
54
205
|
});
|
|
55
|
-
|
|
206
|
+
this.syncGroupDisabledOnTabs();
|
|
207
|
+
if (this.rafId !== undefined) {
|
|
208
|
+
cancelAnimationFrame(this.rafId);
|
|
209
|
+
}
|
|
210
|
+
this.rafId = requestAnimationFrame(() => {
|
|
211
|
+
this.rafId = undefined;
|
|
56
212
|
this.selectedValue = newValue;
|
|
57
213
|
this.updateActiveBarPosition();
|
|
214
|
+
this.syncRovingTabindex();
|
|
58
215
|
});
|
|
59
216
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
this.tabPanels = Array.from(this.el.querySelectorAll('xpl-tab-panel'));
|
|
63
|
-
this.handleTabChange(this.getDefaultValue());
|
|
217
|
+
isOwnedTabOrPanel(node) {
|
|
218
|
+
return node.closest('xpl-tabs') === this.el;
|
|
64
219
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
220
|
+
collectTabs(bumpChoicesTick) {
|
|
221
|
+
this.tabHeadings = Array.from(this.el.querySelectorAll('xpl-tab')).filter((tab) => this.isOwnedTabOrPanel(tab));
|
|
222
|
+
this.tabPanels = Array.from(this.el.querySelectorAll('xpl-tab-panel')).filter((panel) => this.isOwnedTabOrPanel(panel));
|
|
223
|
+
this.syncVariantOnTabs();
|
|
224
|
+
this.syncFullWidthOnTabs();
|
|
225
|
+
this.applySelection(this.getDefaultValue());
|
|
226
|
+
if (bumpChoicesTick) {
|
|
227
|
+
this.choicesTick += 1;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
syncVariantOnTabs() {
|
|
231
|
+
this.tabHeadings.forEach((tabHeading) => {
|
|
232
|
+
tabHeading.variant = this.type;
|
|
75
233
|
});
|
|
76
234
|
}
|
|
77
|
-
|
|
78
|
-
|
|
235
|
+
syncFullWidthOnTabs() {
|
|
236
|
+
this.tabHeadings.forEach((tabHeading) => {
|
|
237
|
+
tabHeading.fullWidth = this.fullWidth;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
getDefaultValue() {
|
|
241
|
+
var _a, _b;
|
|
242
|
+
return this.value || ((_b = (_a = this.tabHeadings) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getAttribute('target')) || '';
|
|
243
|
+
}
|
|
244
|
+
async syncRovingTabindex() {
|
|
245
|
+
if (this.disabled) {
|
|
79
246
|
return;
|
|
80
247
|
}
|
|
81
|
-
this.
|
|
82
|
-
|
|
248
|
+
await Promise.all(this.tabHeadings.map(async (tabHeading) => {
|
|
249
|
+
var _a;
|
|
250
|
+
const target = (_a = tabHeading.getAttribute('target')) !== null && _a !== void 0 ? _a : '';
|
|
251
|
+
const isSelected = target === this.selectedValue;
|
|
252
|
+
await tabHeading.setTabIndex(isSelected ? 0 : -1);
|
|
253
|
+
}));
|
|
254
|
+
}
|
|
255
|
+
getEnabledTabHeadingsSync() {
|
|
256
|
+
return this.tabHeadings.filter((tabHeading) => {
|
|
257
|
+
if (this.disabled || tabHeading.hasAttribute('disabled')) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
const btn = tabHeading.variant === 'segment'
|
|
261
|
+
? tabHeading.querySelector('xpl-button button')
|
|
262
|
+
: tabHeading.querySelector('.xpl-tab__button');
|
|
263
|
+
return Boolean(btn && !btn.disabled);
|
|
83
264
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
265
|
+
}
|
|
266
|
+
attachTablistKeydown() {
|
|
267
|
+
const nav = this.headingsContainerRef;
|
|
268
|
+
if (!nav || this.tablistKeydownBound) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
nav.addEventListener('keydown', this.onTablistKeydown);
|
|
272
|
+
this.tablistKeydownBound = true;
|
|
273
|
+
}
|
|
274
|
+
isTablistRtl() {
|
|
275
|
+
const nav = this.headingsContainerRef;
|
|
276
|
+
if (!nav) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
return getComputedStyle(nav).direction === 'rtl';
|
|
280
|
+
}
|
|
281
|
+
renderChoices() {
|
|
282
|
+
return this.tabHeadings.map((tabHeading) => {
|
|
283
|
+
var _a;
|
|
284
|
+
const target = (_a = tabHeading.getAttribute('target')) !== null && _a !== void 0 ? _a : '';
|
|
285
|
+
const tabDisabled = this.disabled || tabHeading.hasAttribute('disabled');
|
|
286
|
+
const icon = this.type === 'segment' ? tabHeading.getAttribute('icon') || undefined : undefined;
|
|
287
|
+
return Object.assign({ label: tabHeadingLabelFromElement(tabHeading), value: target, isDisabled: tabDisabled }, (icon ? { icon } : {}));
|
|
87
288
|
});
|
|
88
289
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
290
|
+
updateActiveBarPosition() {
|
|
291
|
+
if (this.type === 'segment') {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const tabHeading = this.tabHeadings.find((heading) => heading.getAttribute('target') === this.selectedValue);
|
|
295
|
+
if (!this.headingsContainerRef || !tabHeading) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
const tabRect = tabHeading.getBoundingClientRect();
|
|
299
|
+
const containerRect = this.headingsContainerRef.getBoundingClientRect();
|
|
300
|
+
const nextLeft = tabRect.left - containerRect.left;
|
|
301
|
+
const nextWidth = tabRect.width;
|
|
302
|
+
if (this.activeBarPosition.left === nextLeft &&
|
|
303
|
+
this.activeBarPosition.width === nextWidth) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
this.activeBarPosition = {
|
|
307
|
+
left: nextLeft,
|
|
308
|
+
width: nextWidth,
|
|
309
|
+
};
|
|
92
310
|
}
|
|
93
|
-
|
|
94
|
-
|
|
311
|
+
mobileSelectClassNames() {
|
|
312
|
+
const base = 'xpl-tabs__mobile-select';
|
|
313
|
+
if (this.type === 'segment') {
|
|
314
|
+
return `${base} xpl-tabs__mobile-select--segment`;
|
|
315
|
+
}
|
|
316
|
+
return base;
|
|
95
317
|
}
|
|
96
318
|
render() {
|
|
97
|
-
|
|
319
|
+
const isSegment = this.type === 'segment';
|
|
320
|
+
return (h(Host, { key: '56e4284e5a8fd492ebedcc963ddc2218f75c58c6', class: {
|
|
98
321
|
'xpl-tabs': true,
|
|
99
322
|
'xpl-tabs--full-width': this.fullWidth,
|
|
100
|
-
|
|
323
|
+
'xpl-tabs--segment': isSegment,
|
|
324
|
+
}, "data-choices-tick": this.choicesTick }, h("xpl-select", { key: 'bd22e0a513a068915a206d48f8011cb779abdf44', classNames: this.mobileSelectClassNames(), choices: this.renderChoices(), disabled: this.disabled, selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
|
|
101
325
|
if (event.detail) {
|
|
102
326
|
this.isMobileSelectChange = true;
|
|
103
327
|
}
|
|
@@ -108,37 +332,40 @@ export class XplTabs {
|
|
|
108
332
|
this.tabChange.emit(selectedValue);
|
|
109
333
|
this.isMobileSelectChange = false;
|
|
110
334
|
}
|
|
111
|
-
} }), h("nav", { key: '
|
|
335
|
+
} }), h("nav", { key: 'b56a5a8435cbba117f7b66711a4bad4a0df1b808', "aria-orientation": "horizontal", class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
|
|
112
336
|
this.headingsContainerRef = el;
|
|
113
337
|
}, onTabChange: (event) => {
|
|
338
|
+
event.stopPropagation();
|
|
114
339
|
this.isMobileSelectChange = false;
|
|
115
340
|
this.handleTabChange(event.detail);
|
|
116
|
-
|
|
341
|
+
this.tabChange.emit(event.detail);
|
|
342
|
+
} }, !isSegment && (h("div", { key: '77c1c13e85a172da519e5081364808f8a873eb54', class: "xpl-tabs__active-bar", style: {
|
|
117
343
|
transform: `translateX(${this.activeBarPosition.left}px)`,
|
|
118
344
|
width: `${this.activeBarPosition.width}px`,
|
|
119
|
-
} }), h("slot", { key: '
|
|
345
|
+
} })), h("slot", { key: '24e4b6409fbfa26f859d64d4d37493a711006368', name: "heading" })), h("div", { key: '2a364d45d6377131c2809d25373bc90512f11307', class: "xpl-tabs__panels" }, h("slot", { key: '59335370a20458fc36bfa33a2a117744ce4434fc', name: "panel" }))));
|
|
120
346
|
}
|
|
121
347
|
static get is() { return "xpl-tabs"; }
|
|
122
348
|
static get properties() {
|
|
123
349
|
return {
|
|
124
|
-
"
|
|
125
|
-
"type": "
|
|
350
|
+
"disabled": {
|
|
351
|
+
"type": "boolean",
|
|
126
352
|
"mutable": false,
|
|
127
353
|
"complexType": {
|
|
128
|
-
"original": "
|
|
129
|
-
"resolved": "
|
|
354
|
+
"original": "boolean",
|
|
355
|
+
"resolved": "boolean",
|
|
130
356
|
"references": {}
|
|
131
357
|
},
|
|
132
358
|
"required": false,
|
|
133
359
|
"optional": false,
|
|
134
360
|
"docs": {
|
|
135
361
|
"tags": [],
|
|
136
|
-
"text": "
|
|
362
|
+
"text": "Disables the whole tab group (headings, mobile select, and segment pills)."
|
|
137
363
|
},
|
|
138
364
|
"getter": false,
|
|
139
365
|
"setter": false,
|
|
140
366
|
"reflect": false,
|
|
141
|
-
"attribute": "
|
|
367
|
+
"attribute": "disabled",
|
|
368
|
+
"defaultValue": "false"
|
|
142
369
|
},
|
|
143
370
|
"fullWidth": {
|
|
144
371
|
"type": "boolean",
|
|
@@ -159,14 +386,54 @@ export class XplTabs {
|
|
|
159
386
|
"reflect": false,
|
|
160
387
|
"attribute": "full-width",
|
|
161
388
|
"defaultValue": "false"
|
|
389
|
+
},
|
|
390
|
+
"type": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"mutable": false,
|
|
393
|
+
"complexType": {
|
|
394
|
+
"original": "'tabs' | 'segment'",
|
|
395
|
+
"resolved": "\"segment\" | \"tabs\"",
|
|
396
|
+
"references": {}
|
|
397
|
+
},
|
|
398
|
+
"required": false,
|
|
399
|
+
"optional": false,
|
|
400
|
+
"docs": {
|
|
401
|
+
"tags": [],
|
|
402
|
+
"text": "Visual and layout variant: classic underline tabs or segment (pill) controls."
|
|
403
|
+
},
|
|
404
|
+
"getter": false,
|
|
405
|
+
"setter": false,
|
|
406
|
+
"reflect": true,
|
|
407
|
+
"attribute": "type",
|
|
408
|
+
"defaultValue": "'tabs'"
|
|
409
|
+
},
|
|
410
|
+
"value": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string",
|
|
415
|
+
"resolved": "string",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "The selected tab target value, defaults to the first tab"
|
|
423
|
+
},
|
|
424
|
+
"getter": false,
|
|
425
|
+
"setter": false,
|
|
426
|
+
"reflect": false,
|
|
427
|
+
"attribute": "value"
|
|
162
428
|
}
|
|
163
429
|
};
|
|
164
430
|
}
|
|
165
431
|
static get states() {
|
|
166
432
|
return {
|
|
167
|
-
"selectedValue": {},
|
|
168
433
|
"activeBarPosition": {},
|
|
169
|
-
"
|
|
434
|
+
"choicesTick": {},
|
|
435
|
+
"isMobileSelectChange": {},
|
|
436
|
+
"selectedValue": {}
|
|
170
437
|
};
|
|
171
438
|
}
|
|
172
439
|
static get events() {
|
|
@@ -178,7 +445,7 @@ export class XplTabs {
|
|
|
178
445
|
"composed": true,
|
|
179
446
|
"docs": {
|
|
180
447
|
"tags": [],
|
|
181
|
-
"text": "
|
|
448
|
+
"text": "Emitted when the selected tab changes (click, keyboard, or mobile `xpl-select`).\nThe event `detail` is the selected tab\u2019s `target` string.\nAlways dispatched from this host (including after heading clicks) so `event.target` is\nconsistent for listeners on `xpl-tabs` or bubbling ancestors."
|
|
182
449
|
},
|
|
183
450
|
"complexType": {
|
|
184
451
|
"original": "string",
|
|
@@ -190,8 +457,17 @@ export class XplTabs {
|
|
|
190
457
|
static get elementRef() { return "el"; }
|
|
191
458
|
static get watchers() {
|
|
192
459
|
return [{
|
|
460
|
+
"propName": "disabled",
|
|
461
|
+
"methodName": "onDisabledChanged"
|
|
462
|
+
}, {
|
|
463
|
+
"propName": "fullWidth",
|
|
464
|
+
"methodName": "onFullWidthChanged"
|
|
465
|
+
}, {
|
|
466
|
+
"propName": "type",
|
|
467
|
+
"methodName": "onTypeChanged"
|
|
468
|
+
}, {
|
|
193
469
|
"propName": "value",
|
|
194
|
-
"methodName": "
|
|
470
|
+
"methodName": "onValueChanged"
|
|
195
471
|
}];
|
|
196
472
|
}
|
|
197
473
|
static get listeners() {
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
function tagAttrs(args) {
|
|
2
|
+
const { disabled, dismissible, isDraggable, size, tagId } = args;
|
|
3
|
+
return [
|
|
4
|
+
`size="${size}"`,
|
|
5
|
+
disabled ? 'disabled' : '',
|
|
6
|
+
dismissible ? '' : 'dismissible="false"',
|
|
7
|
+
isDraggable ? 'is-draggable' : '',
|
|
8
|
+
tagId ? `tag-id="${tagId}"` : '',
|
|
9
|
+
]
|
|
10
|
+
.filter(Boolean)
|
|
11
|
+
.join(' ');
|
|
12
|
+
}
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Components/Tag',
|
|
15
|
+
component: 'xpl-tag',
|
|
16
|
+
argTypes: {
|
|
17
|
+
size: {
|
|
18
|
+
options: ['default', 'sm'],
|
|
19
|
+
control: { type: 'select' },
|
|
20
|
+
},
|
|
21
|
+
disabled: { control: 'boolean' },
|
|
22
|
+
dismissible: { control: 'boolean' },
|
|
23
|
+
isDraggable: { control: 'boolean' },
|
|
24
|
+
slot: { control: 'text' },
|
|
25
|
+
tagId: { control: 'text' },
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export const Tag = (args) => {
|
|
29
|
+
var _a;
|
|
30
|
+
const attrs = tagAttrs(args);
|
|
31
|
+
const text = (_a = args.slot) !== null && _a !== void 0 ? _a : '';
|
|
32
|
+
return `
|
|
33
|
+
<div style="padding: var(--xpl-space-32);">
|
|
34
|
+
<xpl-tag ${attrs}>${text}</xpl-tag>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<hr style="margin: var(--xpl-space-32) 0; border: none; border-top: var(--xpl-border-small) solid var(--xpl-border-subtle)" />
|
|
38
|
+
|
|
39
|
+
<p style="margin: 0 0 var(--xpl-space-12); color: var(--xpl-text-subdued)">Drag tags to reorder them within the container.</p>
|
|
40
|
+
<div
|
|
41
|
+
id="drag-playground"
|
|
42
|
+
style="display: flex; flex-wrap: wrap; gap: var(--xpl-space-8); padding: var(--xpl-space-16); border: var(--xpl-border-large) dashed var(--xpl-border-default); border-radius: var(--xpl-border-radius-default); min-height: var(--xpl-size-300); transition: border-color 0.2s"
|
|
43
|
+
>
|
|
44
|
+
<xpl-tag tag-id="tag-design" is-draggable ${attrs}>Design</xpl-tag>
|
|
45
|
+
<xpl-tag tag-id="tag-develop" is-draggable ${attrs}>Development</xpl-tag>
|
|
46
|
+
<xpl-tag tag-id="tag-qa" is-draggable ${attrs}>QA</xpl-tag>
|
|
47
|
+
<xpl-tag tag-id="tag-release" is-draggable ${attrs}>Release</xpl-tag>
|
|
48
|
+
</div>
|
|
49
|
+
<script>
|
|
50
|
+
(function() {
|
|
51
|
+
const container = document.getElementById('drag-playground');
|
|
52
|
+
if (!container) return;
|
|
53
|
+
let draggedElement = null;
|
|
54
|
+
|
|
55
|
+
container.addEventListener('dragstart', function(e) {
|
|
56
|
+
const tag = e.target instanceof Element ? e.target.closest('xpl-tag') : null;
|
|
57
|
+
if (tag) {
|
|
58
|
+
draggedElement = tag;
|
|
59
|
+
container.style.borderColor = 'var(--xpl-border-accent-information)';
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
container.addEventListener('dragend', function() {
|
|
64
|
+
draggedElement = null;
|
|
65
|
+
container.style.borderColor = '';
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
container.addEventListener('dragover', function(e) {
|
|
69
|
+
e.preventDefault();
|
|
70
|
+
if (!draggedElement) return;
|
|
71
|
+
const afterElement = getDragAfterElement(container, e.clientX);
|
|
72
|
+
if (afterElement == null) {
|
|
73
|
+
container.appendChild(draggedElement);
|
|
74
|
+
} else {
|
|
75
|
+
container.insertBefore(draggedElement, afterElement);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
function getDragAfterElement(cont, x) {
|
|
80
|
+
const els = [...cont.querySelectorAll('xpl-tag')].filter(el => el !== draggedElement);
|
|
81
|
+
return els.reduce((closest, child) => {
|
|
82
|
+
const box = child.getBoundingClientRect();
|
|
83
|
+
const offset = x - box.left - box.width / 2;
|
|
84
|
+
return offset < 0 && offset > closest.offset
|
|
85
|
+
? { offset, element: child }
|
|
86
|
+
: closest;
|
|
87
|
+
}, { offset: Number.NEGATIVE_INFINITY }).element;
|
|
88
|
+
}
|
|
89
|
+
})();
|
|
90
|
+
</script>
|
|
91
|
+
`;
|
|
92
|
+
};
|
|
93
|
+
Tag.args = {
|
|
94
|
+
disabled: false,
|
|
95
|
+
dismissible: true,
|
|
96
|
+
isDraggable: false,
|
|
97
|
+
size: 'default',
|
|
98
|
+
slot: 'Tag label',
|
|
99
|
+
tagId: '',
|
|
100
|
+
};
|
|
101
|
+
Tag.parameters = {
|
|
102
|
+
layout: 'padded',
|
|
103
|
+
docs: {
|
|
104
|
+
description: {
|
|
105
|
+
story: 'Tags represent interactive keywords for labeling and categorization. Use `size` to switch between Default (24px) and Small (20px) variants. Set `dismissible={false}` to hide the close button. Set `disabled` to disable interaction. Try long text in the `slot` control to see truncation at max-width.',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
'web-component': {
|
|
109
|
+
render: (() => {
|
|
110
|
+
var _a;
|
|
111
|
+
const args = Object.assign({}, Tag.args);
|
|
112
|
+
const attrs = tagAttrs(args);
|
|
113
|
+
return `<xpl-tag ${attrs}>${(_a = args.slot) !== null && _a !== void 0 ? _a : ''}</xpl-tag>`;
|
|
114
|
+
})(),
|
|
115
|
+
},
|
|
116
|
+
html: {
|
|
117
|
+
render: (() => {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
const args = Object.assign({}, Tag.args);
|
|
120
|
+
const sizeMod = args.size === 'sm' ? 'xpl-tag--sm' : '';
|
|
121
|
+
const disabledMod = args.disabled ? 'xpl-tag--disabled' : '';
|
|
122
|
+
const dismissibleMod = args.dismissible ? 'xpl-tag--dismissible' : '';
|
|
123
|
+
const dragEnabled = args.isDraggable && !args.disabled;
|
|
124
|
+
const draggableMod = dragEnabled ? 'xpl-tag--draggable' : '';
|
|
125
|
+
const hostClasses = [
|
|
126
|
+
'xpl-tag',
|
|
127
|
+
'xpl-tag-container',
|
|
128
|
+
sizeMod,
|
|
129
|
+
disabledMod,
|
|
130
|
+
dismissibleMod,
|
|
131
|
+
draggableMod,
|
|
132
|
+
]
|
|
133
|
+
.filter(Boolean)
|
|
134
|
+
.join(' ');
|
|
135
|
+
const contentTag = dragEnabled ? 'div' : 'button';
|
|
136
|
+
const disabledAttr = args.disabled ? ' disabled' : '';
|
|
137
|
+
const contentAttrs = dragEnabled
|
|
138
|
+
? 'role="button" tabindex="0" draggable="true"'
|
|
139
|
+
: `type="button"${disabledAttr}`;
|
|
140
|
+
const contentEl = `<${contentTag} class="xpl-tag__content xpl-tag" ${contentAttrs}>${(_a = args.slot) !== null && _a !== void 0 ? _a : ''}</${contentTag}>`;
|
|
141
|
+
const dismissLabelBase = ((_b = args.slot) !== null && _b !== void 0 ? _b : '').trim() || 'tag';
|
|
142
|
+
const dismissAriaLabel = `Dismiss ${dismissLabelBase}`.replace(/"/g, '"');
|
|
143
|
+
const dismissButton = args.dismissible
|
|
144
|
+
? `<button class="xpl-tag__dismiss xpl-tag__close" type="button" aria-label="${dismissAriaLabel}"${disabledAttr}><xpl-icon icon="xmark" size="10"></xpl-icon></button>`
|
|
145
|
+
: '';
|
|
146
|
+
return `<div class="${hostClasses}">${contentEl}${dismissButton}</div>`;
|
|
147
|
+
})(),
|
|
148
|
+
},
|
|
149
|
+
design: {
|
|
150
|
+
type: 'figma',
|
|
151
|
+
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=15243-65363',
|
|
152
|
+
},
|
|
153
|
+
};
|