@xplortech/apollo-core 2.11.0 → 2.12.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 +99 -10
- package/AGENTS.md +27 -3
- package/README.md +12 -0
- package/build/components/accordion.css +1 -0
- package/build/components/application-shell.css +1 -0
- package/build/components/avatar.css +1 -0
- package/build/components/backdrop.css +1 -0
- package/build/components/badge.css +1 -0
- package/build/components/banner.css +1 -0
- package/build/components/breadcrumbs.css +1 -0
- package/build/components/button-row.css +1 -0
- package/build/components/button.css +1 -0
- package/build/components/calendar.css +1 -0
- package/build/components/checkbox-radio.css +1 -0
- package/build/components/choicelist.css +1 -0
- package/build/components/content-area.css +1 -0
- package/build/components/dashboard.css +1 -0
- package/build/components/data-card.css +1 -0
- package/build/components/divider.css +1 -0
- package/build/components/dropdown.css +1 -0
- package/build/components/dynamic-table-cell.css +1 -0
- package/build/components/dynamic-table-row.css +1 -0
- package/build/components/dynamic-table.css +1 -0
- package/build/components/grid.css +1 -0
- package/build/components/header-accordion.css +1 -0
- package/build/components/icon.css +1 -0
- package/build/components/input-color.css +1 -0
- package/build/components/input-date.css +1 -0
- package/build/components/input-file.css +1 -0
- package/build/components/input-phone.css +1 -0
- package/build/components/input-search.css +1 -0
- package/build/components/input-time.css +1 -0
- package/build/components/input.css +1 -0
- package/build/components/label.css +1 -0
- package/build/components/large-card.css +1 -0
- package/build/components/list-action.css +1 -0
- package/build/components/list-item.css +1 -0
- package/build/components/list.css +1 -0
- package/build/components/main-nav.css +1 -0
- package/build/components/modal.css +1 -0
- package/build/components/nav-item.css +1 -0
- package/build/components/pagination.css +1 -0
- package/build/components/panel.css +1 -0
- package/build/components/popover.css +1 -0
- package/build/components/progress-bar.css +1 -0
- package/build/components/progress-indicator.css +1 -0
- package/build/components/secondary-nav.css +1 -0
- package/build/components/select.css +1 -0
- package/build/components/side-nav.css +1 -0
- package/build/components/skeleton.css +1 -0
- package/build/components/slideout.css +1 -0
- package/build/components/spotlight.css +1 -0
- package/build/components/table-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table.css +1 -0
- package/build/components/tabs.css +1 -0
- package/build/components/tag.css +1 -0
- package/build/components/toast.css +1 -0
- package/build/components/toggle.css +1 -0
- package/build/components/toolbar.css +1 -0
- package/build/components/tooltip.css +1 -0
- package/build/components/top-nav.css +1 -0
- package/build/components/utility-bar.css +1 -0
- package/build/components-manifest.json +220 -0
- package/build/core.css +2 -0
- package/build/reset.css +394 -0
- package/build/style.css +2 -13345
- package/build/tailwind-theme.css +2 -0
- package/build/typography.css +1 -0
- package/build/variables/apollo.css +779 -0
- package/build/variables/field-edge.css +554 -0
- package/build/vendor/flatpickr.css +1 -0
- package/dist/apollo-core/apollo-core.css +2 -55
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0095174c.entry.js +1 -0
- package/dist/apollo-core/p-020ecd66.entry.js +1 -0
- package/dist/apollo-core/p-0463c29f.entry.js +1 -0
- package/dist/apollo-core/p-091411e3.entry.js +1 -0
- package/dist/apollo-core/p-0be4dbb8.entry.js +1 -0
- package/dist/apollo-core/p-1139fac0.entry.js +1 -0
- package/dist/apollo-core/p-121d1a4b.entry.js +1 -0
- package/dist/apollo-core/p-140a96c7.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a417191.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-26861d09.entry.js +1 -0
- package/dist/apollo-core/p-26b6a0ed.entry.js +1 -0
- package/dist/apollo-core/p-39e71d86.entry.js +1 -0
- package/dist/apollo-core/p-3d9c90ee.entry.js +1 -0
- package/dist/apollo-core/p-3dd1de49.entry.js +1 -0
- package/dist/apollo-core/p-4129d971.entry.js +1 -0
- package/dist/apollo-core/p-46d21684.entry.js +1 -0
- package/dist/apollo-core/p-4e61587f.entry.js +1 -0
- package/dist/apollo-core/p-5afc9831.entry.js +1 -0
- package/dist/apollo-core/p-5ca18bc1.entry.js +1 -0
- package/dist/apollo-core/p-5d25a84a.entry.js +1 -0
- package/dist/apollo-core/p-5e5c5016.entry.js +1 -0
- package/dist/apollo-core/p-601b3ab5.entry.js +1 -0
- package/dist/apollo-core/p-616c5a32.entry.js +1 -0
- package/dist/apollo-core/p-638fd9b1.entry.js +1 -0
- package/dist/apollo-core/p-643c8038.entry.js +1 -0
- package/dist/apollo-core/p-707b1918.entry.js +1 -0
- package/dist/apollo-core/p-724c5038.entry.js +1 -0
- package/dist/apollo-core/p-76f64d65.entry.js +1 -0
- package/dist/apollo-core/p-7976cd3b.entry.js +1 -0
- package/dist/apollo-core/p-7f105d63.entry.js +1 -0
- package/dist/apollo-core/p-80a11cad.entry.js +1 -0
- package/dist/apollo-core/p-853418be.entry.js +1 -0
- package/dist/apollo-core/p-875e0eaa.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a81ef98.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-8ddbf2e2.entry.js +1 -0
- package/dist/apollo-core/p-9747cf43.entry.js +1 -0
- package/dist/apollo-core/p-9b0174b1.entry.js +1 -0
- package/dist/apollo-core/p-9bf2ff9f.entry.js +1 -0
- package/dist/apollo-core/p-BFTU3MAI.js +1 -0
- package/dist/apollo-core/p-BQtbf88X.js +1 -0
- package/dist/apollo-core/p-CWdQxaaX.js +1 -0
- package/dist/apollo-core/p-C_PEOQWj.js +1 -0
- package/dist/apollo-core/p-CzwViN3U.js +1 -0
- package/dist/apollo-core/p-DkqlawVY.js +1 -0
- package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
- package/dist/apollo-core/p-_r9-FML8.js +1 -0
- package/dist/apollo-core/p-a0d3b7f8.entry.js +1 -0
- package/dist/apollo-core/p-a33b0943.entry.js +1 -0
- package/dist/apollo-core/p-b537f72d.entry.js +1 -0
- package/dist/apollo-core/p-ba41bbd5.entry.js +1 -0
- package/dist/apollo-core/p-bb22ed2a.entry.js +1 -0
- package/dist/apollo-core/p-c25aebe5.entry.js +1 -0
- package/dist/apollo-core/p-c427a31d.entry.js +1 -0
- package/dist/apollo-core/p-cde21f72.entry.js +1 -0
- package/dist/apollo-core/p-d288c1d1.entry.js +1 -0
- package/dist/apollo-core/p-d37488d4.entry.js +1 -0
- package/dist/apollo-core/p-d3f2b8b8.entry.js +1 -0
- package/dist/apollo-core/p-dfaba114.entry.js +1 -0
- package/dist/apollo-core/p-e00ed4f4.entry.js +1 -0
- package/dist/apollo-core/p-e2a16242.entry.js +1 -0
- package/dist/apollo-core/p-e4ae3f60.entry.js +1 -0
- package/dist/apollo-core/p-ec488f9c.entry.js +1 -0
- package/dist/apollo-core/p-efa21ec0.entry.js +1 -0
- package/dist/apollo-core/p-f199ad66.entry.js +1 -0
- package/dist/apollo-core/p-f2bfe6a6.entry.js +1 -0
- package/dist/apollo-core/p-fd2756d8.entry.js +1 -0
- package/dist/apollo-core/p-fef6c256.entry.js +1 -0
- package/dist/apollo-core/p-ff8acf15.entry.js +1 -0
- package/dist/apollo-core/p-ukZKsqqq.js +2 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
- package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +756 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/{lifecycle-Bf3QwiVa.js → lifecycle-DeSsFfQZ.js} +4 -0
- package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
- package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
- package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
- package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +210 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
- package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +81 -0
- package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
- package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
- package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
- package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +577 -0
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
- package/dist/{esm/xpl-avatar_54.entry.js → cjs/xpl-icon.cjs.entry.js} +1205 -10568
- package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
- package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
- package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
- package/dist/cjs/xpl-input_4.cjs.entry.js +524 -0
- package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
- package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
- package/dist/cjs/xpl-list.cjs.entry.js +396 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +78 -0
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
- package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
- package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
- package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
- package/dist/cjs/xpl-side-nav.cjs.entry.js +272 -0
- package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
- package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +5 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table.cjs.entry.js +185 -0
- package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
- package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +16 -22
- package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +6 -2
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +19 -1
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/avatar.stories.js +19 -9
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +12 -16
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +17 -3
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/badge.stories.js +21 -8
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/banner.stories.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +5 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/button.stories.js +2 -0
- package/dist/collection/components/xpl-button/xpl-button.js +17 -14
- package/dist/collection/components/xpl-button-row/button-row.stories.js +9 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/calendar.stories.js +11 -3
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +11 -2
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +24 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- package/dist/collection/components/xpl-content-area/content-area.stories.js +13 -24
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +9 -0
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/data-card.stories.js +55 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
- package/dist/collection/components/xpl-divider/divider.stories.js +11 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +13 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +9 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +108 -116
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +5 -1
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
- package/dist/collection/components/xpl-grid/grid.stories.js +9 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +6 -2
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/icons.stories.js +21 -2
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/input.stories.js +120 -104
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +12 -6
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
- package/dist/collection/components/xpl-input/xpl-input.js +69 -37
- package/dist/collection/components/xpl-large-card/large-card.stories.js +27 -3
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- package/dist/collection/components/xpl-list/list.stories.js +11 -2
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
- package/dist/collection/components/xpl-list/xpl-list.js +21 -26
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +5 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/modal.stories.js +15 -6
- package/dist/collection/components/xpl-modal/xpl-modal.js +21 -8
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/pagination.stories.js +10 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/panel.stories.js +9 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/popover.stories.js +15 -5
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +10 -1
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +9 -1
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/radio.stories.js +9 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +10 -5
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.stories.js +11 -8
- package/dist/collection/components/xpl-select/xpl-select.js +91 -49
- package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +454 -18
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +75 -12
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +10 -1
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/slideout.stories.js +13 -0
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +22 -15
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
- package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
- package/dist/collection/components/xpl-table/table.stories.js +11 -2
- package/dist/collection/components/xpl-table/xpl-table.js +52 -36
- package/dist/collection/components/xpl-table-header/table-header.stories.js +9 -1
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +10 -2
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +10 -1
- package/dist/collection/components/xpl-tabs/tabs.shared.js +77 -19
- package/dist/collection/components/xpl-tabs/tabs.stories.js +14 -2
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/tag.stories.js +15 -9
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/toast.stories.js +43 -17
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/toggle.stories.js +8 -1
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- package/dist/collection/components/xpl-toolbar/toolbar.stories.js +39 -0
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +9 -0
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +35 -16
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +11 -5
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +50 -32
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +13 -18
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +96 -34
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +16 -9
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/collection/utils/floating.js +69 -0
- package/dist/collection/utils/layout-ancestors.js +7 -0
- package/dist/collection/utils/lifecycle.js +13 -10
- package/dist/collection/utils/light-dom-slots.js +15 -0
- package/dist/collection/utils/slot-presence.js +6 -0
- package/dist/collection/utils/ssr-known-mismatches.js +50 -0
- package/dist/collection/utils/tab-a11y-ids.js +1 -2
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/p-2jYZ7ACH.js +1 -0
- package/dist/components/p-BGqQbjLl.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BnTsRbko.js +1 -0
- package/dist/components/p-Bseq_BgD.js +1 -0
- package/dist/components/p-CCgZCY_A.js +1 -0
- package/dist/components/p-CJzsLWeV.js +1 -0
- package/dist/components/p-CRKY79vL.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-CjbPCnPP.js +1 -0
- package/dist/components/p-Cjxw-qOg.js +1 -0
- package/dist/components/p-D6JUVA1x.js +1 -0
- package/dist/components/p-DFGw0APN.js +1 -0
- package/dist/components/p-DLLQBDCb.js +1 -0
- package/dist/components/p-DS2Kv5fl.js +1 -0
- package/dist/components/p-DWUJ_jsx.js +1 -0
- package/dist/components/p-Di1NDy0w.js +1 -0
- package/dist/components/p-DkM7jyQB.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-DsRsm61K.js +1 -0
- package/dist/components/p-DywQ3S73.js +1 -0
- package/dist/components/p-Dzp5p-eh.js +1 -0
- package/dist/components/p-Mehog36m.js +1 -0
- package/dist/components/p-RYnBuuDE.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-ByJRw26d.js → p-imCMp2Nl.js} +1 -1
- 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-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- 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-calendar.js +1 -1
- package/dist/components/xpl-checkbox.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-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.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-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- 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.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-header-item.js +1 -0
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.d.ts +11 -0
- package/dist/components/xpl-side-nav-section.js +1 -0
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- 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-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-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/css/typography.stories.js +9 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-backdrop/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +2 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
- package/dist/docs/xpl-button/readme.md +4 -2
- package/dist/docs/xpl-checkbox/readme.md +12 -0
- package/dist/docs/xpl-choicelist/readme.md +21 -0
- package/dist/docs/xpl-content-area/readme.md +8 -0
- package/dist/docs/xpl-data-card/readme.md +26 -0
- package/dist/docs/xpl-dropdown/readme.md +32 -6
- package/dist/docs/xpl-dynamic-table/readme.md +35 -0
- package/dist/docs/xpl-header-accordion/readme.md +18 -0
- package/dist/docs/xpl-icon/readme.md +21 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
- package/dist/docs/xpl-large-card/readme.md +18 -0
- package/dist/docs/xpl-list/readme.md +2 -2
- package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
- package/dist/docs/xpl-main-nav/readme.md +16 -0
- package/dist/docs/xpl-modal/readme.md +20 -0
- package/dist/docs/xpl-nav-item/readme.md +14 -0
- package/dist/docs/xpl-pagination/readme.md +29 -0
- package/dist/docs/xpl-radio/readme.md +12 -0
- package/dist/docs/xpl-secondary-nav/readme.md +25 -0
- package/dist/docs/xpl-select/readme.md +13 -0
- package/dist/docs/xpl-side-nav/readme.md +12 -7
- package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
- package/dist/docs/xpl-slideout/readme.md +23 -0
- package/dist/docs/xpl-tab/readme.md +14 -8
- package/dist/docs/xpl-table/readme.md +4 -4
- package/dist/docs/xpl-toast/readme.md +90 -7
- package/dist/docs/xpl-toggle/readme.md +46 -0
- package/dist/docs/xpl-toolbar/readme.md +19 -0
- package/dist/docs/xpl-top-nav/readme.md +2 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +5 -5
- package/dist/docs/xpl-utility-bar/readme.md +12 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +16441 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
- package/dist/esm/index-BhYfWG18.js +454 -0
- package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +756 -9
- package/dist/esm/{lifecycle-BUgtURvw.js → lifecycle-Dqb1pIRo.js} +4 -1
- package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
- package/dist/esm/slot-presence-_r9-FML8.js +8 -0
- package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
- package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
- package/dist/esm/xpl-accordion.entry.js +5 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +206 -0
- package/dist/esm/xpl-backdrop.entry.js +17 -0
- package/dist/esm/xpl-badge.entry.js +35 -0
- package/dist/esm/xpl-banner.entry.js +72 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +79 -0
- package/dist/esm/xpl-calendar.entry.js +10 -6
- package/dist/esm/xpl-checkbox.entry.js +30 -0
- package/dist/esm/xpl-choicelist.entry.js +66 -0
- package/dist/esm/xpl-content-area.entry.js +13 -0
- package/dist/esm/xpl-dashboard.entry.js +12 -0
- package/dist/esm/xpl-data-card.entry.js +109 -0
- package/dist/esm/xpl-dropdown_4.entry.js +572 -0
- package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +11 -18
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +6 -6
- package/dist/esm/xpl-header-accordion.entry.js +67 -0
- package/dist/{cjs/xpl-avatar_54.cjs.entry.js → esm/xpl-icon.entry.js} +1202 -10622
- package/dist/esm/xpl-input-color.entry.js +433 -0
- package/dist/esm/xpl-input-phone.entry.js +507 -0
- package/dist/esm/xpl-input-time.entry.js +194 -0
- package/dist/esm/xpl-input_4.entry.js +519 -0
- package/dist/esm/xpl-large-card.entry.js +63 -4
- package/dist/esm/xpl-list-item.entry.js +458 -0
- package/dist/esm/xpl-list.entry.js +394 -0
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +76 -0
- package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
- package/dist/esm/xpl-nav-item.entry.js +23 -0
- package/dist/esm/xpl-pagination.entry.js +110 -0
- package/dist/esm/xpl-panel.entry.js +19 -0
- package/dist/esm/xpl-popover.entry.js +263 -0
- package/dist/esm/xpl-progress-bar.entry.js +39 -0
- package/dist/esm/xpl-progress-indicator.entry.js +72 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select_2.entry.js +490 -0
- package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
- package/dist/esm/xpl-side-nav-item.entry.js +128 -0
- package/dist/esm/xpl-side-nav-section.entry.js +103 -0
- package/dist/esm/xpl-side-nav.entry.js +270 -0
- package/dist/esm/xpl-skeleton.entry.js +24 -0
- package/dist/esm/xpl-slideout.entry.js +45 -0
- package/dist/esm/xpl-spotlight.entry.js +720 -0
- package/dist/esm/xpl-tab-panel.entry.js +22 -0
- package/dist/esm/xpl-tab.entry.js +85 -0
- package/dist/esm/xpl-table-header-cell.entry.js +5 -3
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table.entry.js +183 -0
- package/dist/esm/xpl-tabs.entry.js +371 -0
- package/dist/esm/xpl-toast.entry.js +89 -0
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +16 -0
- package/dist/esm/xpl-top-nav-item.entry.js +433 -0
- package/dist/esm/xpl-top-nav-menu.entry.js +15 -21
- package/dist/esm/xpl-top-nav.entry.js +340 -0
- package/dist/esm/xpl-utility-bar.entry.js +21 -0
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +11 -2
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +5 -23
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +17 -116
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +2 -0
- package/dist/types/components/xpl-badge/badge.stories.d.ts +7 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +10 -27
- package/dist/types/components/xpl-button/button.stories.d.ts +4 -0
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +10 -21
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +11 -28
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +13 -31
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +9 -23
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +7 -1
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +8 -17
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +32 -37
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- package/dist/types/components/xpl-divider/divider.stories.d.ts +10 -23
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +160 -8
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +7 -22
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-grid/grid.stories.d.ts +23 -47
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +8 -24
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- package/dist/types/components/xpl-icon/icons.stories.d.ts +16 -39
- package/dist/types/components/xpl-input/input.stories.d.ts +255 -54
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
- 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/xpl-input-phone.d.ts +2 -2
- package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
- 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 +11 -6
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +12 -30
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
- package/dist/types/components/xpl-list/list.stories.d.ts +33 -1
- package/dist/types/components/xpl-list/listitem.d.ts +5 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +7 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +16 -16
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +3 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +9 -30
- package/dist/types/components/xpl-panel/panel.stories.d.ts +9 -1
- package/dist/types/components/xpl-popover/popover.stories.d.ts +12 -3
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +13 -24
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +2 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +3 -0
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +4 -1
- package/dist/types/components/xpl-select/select.stories.d.ts +35 -45
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +73 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +11 -1
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +20 -16
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +7 -1
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +16 -37
- package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +21 -48
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +11 -34
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +22 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +35 -1
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +29 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +3 -0
- package/dist/types/components/xpl-toast/toast.stories.d.ts +17 -13
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +13 -31
- package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +35 -0
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +10 -24
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +9 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +3 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +7 -2
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +9 -2
- package/dist/types/components.d.ts +1006 -46
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +11 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +1 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +76 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/story-vrt.d.ts +1 -0
- package/dist/types/third-party.d.ts +20 -0
- package/dist/types/utils/floating.d.ts +26 -0
- package/dist/types/utils/lifecycle.d.ts +1 -1
- package/dist/types/utils/light-dom-slots.d.ts +6 -0
- package/dist/types/utils/slot-presence.d.ts +1 -0
- package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
- package/dist/utils/form-bindings.js +64 -0
- package/dist/utils/story-vrt.js +48 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +51669 -0
- package/hydrate/index.mjs +51659 -0
- package/hydrate/package.json +12 -0
- package/package.json +99 -42
- package/dist/apollo-core/p-048fdde0.entry.js +0 -1
- package/dist/apollo-core/p-0abc496e.entry.js +0 -1
- package/dist/apollo-core/p-1442c052.entry.js +0 -1
- package/dist/apollo-core/p-1e498763.entry.js +0 -1
- package/dist/apollo-core/p-26c3a508.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-4ce52107.entry.js +0 -1
- package/dist/apollo-core/p-6710fb29.entry.js +0 -1
- package/dist/apollo-core/p-7e622809.entry.js +0 -1
- package/dist/apollo-core/p-87068144.entry.js +0 -1
- package/dist/apollo-core/p-BUgtURvw.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-a3b4820a.entry.js +0 -1
- package/dist/apollo-core/p-b2d6dd0e.entry.js +0 -1
- package/dist/apollo-core/p-bd2249ef.entry.js +0 -1
- package/dist/apollo-core/p-c96b7957.entry.js +0 -1
- package/dist/apollo-core/p-d6be63cd.entry.js +0 -1
- package/dist/apollo-core/p-ddf76cee.entry.js +0 -1
- package/dist/apollo-core/p-f0554edd.entry.js +0 -1
- package/dist/components/p-2xGSxBGa.js +0 -1
- package/dist/components/p-B8RYNiz-.js +0 -1
- package/dist/components/p-BDWXBWGE.js +0 -1
- package/dist/components/p-BJqNuBZr.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BUgtURvw.js +0 -1
- package/dist/components/p-B_sq_SAX.js +0 -1
- package/dist/components/p-Bsy-VVS5.js +0 -1
- package/dist/components/p-BxHFEnPN.js +0 -1
- package/dist/components/p-C5_Yo0ZP.js +0 -1
- package/dist/components/p-C8rmEAx6.js +0 -1
- package/dist/components/p-CF_YTx16.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CUYkG-PB.js +0 -1
- package/dist/components/p-CaW0fL0P.js +0 -1
- package/dist/components/p-CuisR8WP.js +0 -1
- package/dist/components/p-D2SFagIb.js +0 -1
- package/dist/components/p-DKUNbsb0.js +0 -1
- package/dist/components/p-DcXL24UI.js +0 -1
- package/dist/components/p-Dp3H99Yc.js +0 -1
- package/dist/components/p-M900WO1C.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-ZTFt9sBy.js +0 -1
- package/dist/components/p-gfb3l9Pr.js +0 -1
- package/dist/components/p-h1Gbk5lO.js +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { addons } from "storybook/preview-api";
|
|
2
2
|
import { INITIAL_VIEWPORTS } from "storybook/viewport";
|
|
3
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
3
4
|
const UPDATE_GLOBALS = 'updateGlobals';
|
|
4
5
|
const TOP_NAV_MOBILE600_VIEWPORT = {
|
|
5
6
|
name: 'Mobile (600px)',
|
|
@@ -185,9 +186,8 @@ function ensureTopNavStoryStyles() {
|
|
|
185
186
|
document.head.appendChild(style);
|
|
186
187
|
}
|
|
187
188
|
function syncTopNavPreviewViewportToGlobals(previewViewport, globalsSnapshot) {
|
|
188
|
-
|
|
189
|
-
const
|
|
190
|
-
const raw = (_a = globalsSnapshot === null || globalsSnapshot === void 0 ? void 0 : globalsSnapshot.viewport) === null || _a === void 0 ? void 0 : _a.value;
|
|
189
|
+
const next = previewViewport ?? 'responsive';
|
|
190
|
+
const raw = globalsSnapshot?.viewport?.value;
|
|
191
191
|
const normalizedCurrent = raw == null || raw === '' || raw === 'reset' ? undefined : String(raw);
|
|
192
192
|
const desiredValue = next === 'responsive' ? undefined : next;
|
|
193
193
|
if (normalizedCurrent === desiredValue) {
|
|
@@ -208,8 +208,7 @@ function syncTopNavPreviewViewportToGlobals(previewViewport, globalsSnapshot) {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
function topNavPreviewViewportDecorator(story, context) {
|
|
211
|
-
|
|
212
|
-
const viewport = (_a = context.globals) === null || _a === void 0 ? void 0 : _a.viewport;
|
|
211
|
+
const viewport = context.globals?.viewport;
|
|
213
212
|
syncTopNavPreviewViewportToGlobals(context.args.previewViewport, { viewport });
|
|
214
213
|
return story();
|
|
215
214
|
}
|
|
@@ -254,7 +253,11 @@ const topNavFamilyDocsDescription = [
|
|
|
254
253
|
const meta = {
|
|
255
254
|
title: 'Components/Navigation/Top Navigation',
|
|
256
255
|
component: 'xpl-top-nav',
|
|
256
|
+
tags: ['vrt'],
|
|
257
257
|
decorators: [topNavDarkStoryDecorator],
|
|
258
|
+
beforeEach() {
|
|
259
|
+
setAutoSnapshotOptions({ enable: true });
|
|
260
|
+
},
|
|
258
261
|
parameters: {
|
|
259
262
|
design: TOP_NAV_FIGMA_DESIGN,
|
|
260
263
|
darkMode: {
|
|
@@ -305,8 +308,8 @@ export const TopNavigation = (args) => {
|
|
|
305
308
|
const labelAttr = topNavLabelAttr(label);
|
|
306
309
|
const childAccountAttr = topNavChildAccountLabelAttr(childAccountLabel);
|
|
307
310
|
const brandAttr = topNavBrandAttrs(brandName, brandHref, brandLogo);
|
|
308
|
-
const username =
|
|
309
|
-
const email =
|
|
311
|
+
const username = menuUsername?.trim() ? escapeAttr(menuUsername.trim()) : '';
|
|
312
|
+
const email = menuEmail?.trim() ? escapeAttr(menuEmail.trim()) : '';
|
|
310
313
|
const navHeaderMenuAttrs = [
|
|
311
314
|
username ? `username="${username}"` : '',
|
|
312
315
|
email ? `email="${email}"` : '',
|
|
@@ -466,7 +469,10 @@ TopNavigation.parameters = {
|
|
|
466
469
|
layout: 'fullscreen',
|
|
467
470
|
design: TOP_NAV_FIGMA_DESIGN,
|
|
468
471
|
viewport: {
|
|
469
|
-
viewports:
|
|
472
|
+
viewports: {
|
|
473
|
+
...INITIAL_VIEWPORTS,
|
|
474
|
+
mobile600: TOP_NAV_MOBILE600_VIEWPORT,
|
|
475
|
+
},
|
|
470
476
|
},
|
|
471
477
|
'web-component': {
|
|
472
478
|
render: TopNavigation(TopNavigation.args),
|
|
@@ -476,7 +482,6 @@ TopNavigation.parameters = {
|
|
|
476
482
|
},
|
|
477
483
|
};
|
|
478
484
|
export const TopNavItem = (args) => {
|
|
479
|
-
var _a;
|
|
480
485
|
const attrs = [
|
|
481
486
|
args.active === true ? ' active' : '',
|
|
482
487
|
args.href != null && args.href !== '' ? `href="${escapeAttr(args.href)}"` : '',
|
|
@@ -498,7 +503,7 @@ export const TopNavItem = (args) => {
|
|
|
498
503
|
? `\n <xpl-icon slot="trailing-icon" icon="${escapeAttr(args.trailingIcon)}"></xpl-icon>`
|
|
499
504
|
: '';
|
|
500
505
|
const dropdownSlot = args.showDropdown === true
|
|
501
|
-
? `\n <xpl-top-nav-menu slot="dropdown" label="${escapeAttr(
|
|
506
|
+
? `\n <xpl-top-nav-menu slot="dropdown" label="${escapeAttr(args.label ?? 'Menu')}">
|
|
502
507
|
<xpl-top-nav-item label="Payroll" href="#"></xpl-top-nav-item>
|
|
503
508
|
<xpl-top-nav-item label="Capital" href="#" selected>
|
|
504
509
|
<xpl-icon slot="trailing-icon" icon="open-rect-arrow-out"></xpl-icon>
|
|
@@ -514,7 +519,6 @@ ${hasLabel ? '' : ' <span>Custom slot content</span>'}${trailingIconSlot}
|
|
|
514
519
|
`.trim();
|
|
515
520
|
};
|
|
516
521
|
const HtmlTopNavItem = (args) => {
|
|
517
|
-
var _a;
|
|
518
522
|
const label = args.label != null && args.label !== '' ? args.label : 'Custom slot content';
|
|
519
523
|
const selected = args.selected === true;
|
|
520
524
|
const hasIcon = args.icon != null && args.icon !== '';
|
|
@@ -531,7 +535,7 @@ const HtmlTopNavItem = (args) => {
|
|
|
531
535
|
.filter(Boolean)
|
|
532
536
|
.join(' ');
|
|
533
537
|
const innerTag = hasHref
|
|
534
|
-
? ` <a href="${escapeAttr(
|
|
538
|
+
? ` <a href="${escapeAttr(args.href ?? '')}"${ariaCurrent} class="${innerClasses}">`
|
|
535
539
|
: ` <button type="button"${ariaCurrent} class="${innerClasses}">`;
|
|
536
540
|
const innerClose = hasHref ? ' </a>' : ' </button>';
|
|
537
541
|
const lines = [
|
|
@@ -643,6 +647,7 @@ const HtmlTopNavMenuGroup = (args) => {
|
|
|
643
647
|
'</div>',
|
|
644
648
|
].join('\n');
|
|
645
649
|
};
|
|
650
|
+
TopNavMenuGroup.storyName = 'Nav Menu (grouping container)';
|
|
646
651
|
TopNavMenuGroup.args = {
|
|
647
652
|
label: 'Xplor Ops',
|
|
648
653
|
};
|
|
@@ -657,10 +662,13 @@ TopNavMenuGroup.parameters = {
|
|
|
657
662
|
design: TOP_NAV_FIGMA_DESIGN,
|
|
658
663
|
docs: {
|
|
659
664
|
description: {
|
|
660
|
-
story: '
|
|
661
|
-
'
|
|
662
|
-
'`showDropdown` control)
|
|
663
|
-
'
|
|
665
|
+
story: '**`xpl-top-nav-menu`** — a thin grouping container for `xpl-top-nav-item` rows. It is the panel ' +
|
|
666
|
+
'content for a **dropdown nav item**: nest it in a parent `xpl-top-nav-item`\'s `slot="dropdown"` ' +
|
|
667
|
+
"(see the `TopNavItem` story's `showDropdown` control). On desktop it renders as a flyout under the " +
|
|
668
|
+
'parent; on narrow viewports the same markup drives the **mobile cascade** (drill-in with an auto ' +
|
|
669
|
+
'back row). This is **not** the account menu — for the profile/account panel see **Nav Header Menu ' +
|
|
670
|
+
'(account)** (`xpl-nav-header-menu`). The two only share panel chrome (width, surface, shadow, radius, ' +
|
|
671
|
+
'padding); their roles differ.',
|
|
664
672
|
},
|
|
665
673
|
},
|
|
666
674
|
'web-component': {
|
|
@@ -714,6 +722,7 @@ const HtmlTopNavMenu = (args) => {
|
|
|
714
722
|
lines.push(' <div role="list" class="sb-top-nav-menu-list">', ' <a href="#">View Account</a>', ' <a href="#">Change Account</a>', ' <a href="#">Logout</a>', ' </div>', '</div>');
|
|
715
723
|
return lines.join('\n');
|
|
716
724
|
};
|
|
725
|
+
TopNavMenu.storyName = 'Nav Header Menu (account)';
|
|
717
726
|
TopNavMenu.args = {
|
|
718
727
|
username: 'Katie Wilson',
|
|
719
728
|
email: 'katie01@email.com',
|
|
@@ -736,6 +745,16 @@ TopNavMenu.argTypes = {
|
|
|
736
745
|
TopNavMenu.parameters = {
|
|
737
746
|
layout: 'centered',
|
|
738
747
|
design: TOP_NAV_FIGMA_DESIGN,
|
|
748
|
+
docs: {
|
|
749
|
+
description: {
|
|
750
|
+
story: '**`xpl-nav-header-menu`** — the account/profile panel: a profile header (`username`, `email`), an ' +
|
|
751
|
+
'optional narrow-only `slot="right-aside-mobile"` strip, and a default slot of `xpl-top-nav-item` ' +
|
|
752
|
+
'rows. It is usually slotted into `xpl-top-nav` `slot="user-menu"` and shown inside the account ' +
|
|
753
|
+
'popover. This is **not** the dropdown grouping container — for grouping child links under a parent ' +
|
|
754
|
+
'nav item (desktop flyout / mobile cascade) see **Nav Menu (grouping container)** ' +
|
|
755
|
+
'(`xpl-top-nav-menu`).',
|
|
756
|
+
},
|
|
757
|
+
},
|
|
739
758
|
'web-component': {
|
|
740
759
|
render: TopNavMenu(TopNavMenu.args),
|
|
741
760
|
},
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { hasHostNamedSlot } from "../../../utils/light-dom-slots";
|
|
3
|
+
const NAV_HEADER_MENU_RIGHT_ASIDE_MOBILE_REGIONS = [
|
|
4
|
+
'.xpl-nav-header-menu__right-aside-mobile',
|
|
5
|
+
];
|
|
2
6
|
export class NavHeaderMenu {
|
|
3
7
|
constructor() {
|
|
4
8
|
this.rightAsideMobilePresent = false;
|
|
@@ -52,23 +56,25 @@ export class NavHeaderMenu {
|
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
disconnectRightAsideMobileSlotObserver() {
|
|
55
|
-
|
|
56
|
-
(_a = this.rightAsideMobileSlotObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
59
|
+
this.rightAsideMobileSlotObserver?.disconnect();
|
|
57
60
|
this.rightAsideMobileSlotObserver = undefined;
|
|
58
61
|
}
|
|
59
62
|
syncRightAsideMobileSlotPresent() {
|
|
60
|
-
const has = this.el
|
|
63
|
+
const has = hasHostNamedSlot(this.el, 'right-aside-mobile', {
|
|
64
|
+
hostTag: 'xpl-nav-header-menu',
|
|
65
|
+
projectionRegionSelectors: NAV_HEADER_MENU_RIGHT_ASIDE_MOBILE_REGIONS,
|
|
66
|
+
});
|
|
61
67
|
if (has !== this.rightAsideMobilePresent) {
|
|
62
68
|
this.rightAsideMobilePresent = has;
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
render() {
|
|
66
72
|
const hasProfile = !!this.username || !!this.email;
|
|
67
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: 'dc0a40f8c2db6084678f6059efa61d8dd75d1a44', class: {
|
|
68
74
|
'xpl-nav-header-menu': true,
|
|
69
75
|
'xpl-nav-header-menu--has-right-aside-mobile': this.rightAsideMobilePresent,
|
|
70
76
|
dark: true,
|
|
71
|
-
} }, hasProfile && (h("div", { key: '
|
|
77
|
+
} }, hasProfile && (h("div", { key: '857696ff73c74ccf74e3607169aa8378cdbb9a9b', class: "xpl-nav-header-menu__profile" }, h("div", { key: '0398df3659ad70f11a8300f5213f436840cffe29', class: "xpl-nav-header-menu__info" }, this.username && (h("div", { key: 'de0e0878b44a134b6fa10eb2117f52b822179602', class: "xpl-nav-header-menu__username" }, this.username)), this.email && (h("div", { key: 'e6a523c745f1e5ef80613071c02452e727b929b9', class: "xpl-nav-header-menu__email" }, this.email))))), h("div", { key: 'd12b09d4bf2e68947fb78073e9f8bc3ba7d4d65d', class: "xpl-nav-header-menu__right-aside-mobile" }, h("slot", { key: 'e4a8f9080993d32338016c5c72fc98c5c4dd3c22', name: "right-aside-mobile" })), h("div", { key: 'd21f74ddc1a08e27c77494fc622b3d85d834760f', class: "xpl-nav-header-menu__slot", role: "list" }, h("slot", { key: '9ebf836dc8d33991a432cb47e1510091bfd57322' }))));
|
|
72
78
|
}
|
|
73
79
|
static get is() { return "xpl-nav-header-menu"; }
|
|
74
80
|
static get properties() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
-
import { TimerManager } from "../../../utils/lifecycle";
|
|
2
|
+
import { TimerManager, isBrowser } from "../../../utils/lifecycle";
|
|
3
|
+
import { TOP_NAV_MOBILE_MQ } from "../top-nav-constants";
|
|
3
4
|
import { TOP_NAV_ITEM_HOVER_CLOSE_DELAY_MS, TOP_NAV_ITEM_HOVER_OPEN_MQ, } from "./top-nav-item-constants";
|
|
4
5
|
const TIMER = {
|
|
5
6
|
hasDropdownSync: 'hasDropdownSync',
|
|
@@ -15,6 +16,7 @@ export class TopNavItem {
|
|
|
15
16
|
this.hasActiveDescendant = false;
|
|
16
17
|
this.hasDropdown = false;
|
|
17
18
|
this.isLeadingIconSlotPresent = false;
|
|
19
|
+
this.isMobileViewport = false;
|
|
18
20
|
this.hostListitemRole = false;
|
|
19
21
|
this.isTrailingIconSlotPresent = false;
|
|
20
22
|
this.active = false;
|
|
@@ -59,9 +61,12 @@ export class TopNavItem {
|
|
|
59
61
|
if (isLinkMode && e.key === ' ') {
|
|
60
62
|
e.preventDefault();
|
|
61
63
|
const anchor = this.el.querySelector('.xpl-top-nav-item__inner');
|
|
62
|
-
anchor
|
|
64
|
+
anchor?.click();
|
|
63
65
|
}
|
|
64
66
|
};
|
|
67
|
+
this.onMobileViewportChange = () => {
|
|
68
|
+
this.isMobileViewport = this.mobileMq?.matches ?? false;
|
|
69
|
+
};
|
|
65
70
|
this.handleMouseEnter = () => {
|
|
66
71
|
if (!this.hasDropdown || !this.hoverModeActive()) {
|
|
67
72
|
return;
|
|
@@ -97,8 +102,11 @@ export class TopNavItem {
|
|
|
97
102
|
this.broadcastCloseOtherDropdownHosts();
|
|
98
103
|
}
|
|
99
104
|
connectedCallback() {
|
|
100
|
-
if (
|
|
105
|
+
if (isBrowser() && typeof window.matchMedia === 'function') {
|
|
101
106
|
this.hoverOpenMq = window.matchMedia(TOP_NAV_ITEM_HOVER_OPEN_MQ);
|
|
107
|
+
this.mobileMq = window.matchMedia(TOP_NAV_MOBILE_MQ);
|
|
108
|
+
this.mobileMq.addEventListener('change', this.onMobileViewportChange);
|
|
109
|
+
this.isMobileViewport = this.mobileMq.matches;
|
|
102
110
|
}
|
|
103
111
|
this.syncHostListitemRole();
|
|
104
112
|
this.syncHasDropdownFromDom();
|
|
@@ -108,6 +116,8 @@ export class TopNavItem {
|
|
|
108
116
|
disconnectedCallback() {
|
|
109
117
|
this.timers.dispose();
|
|
110
118
|
this.hoverOpenMq = undefined;
|
|
119
|
+
this.mobileMq?.removeEventListener('change', this.onMobileViewportChange);
|
|
120
|
+
this.mobileMq = undefined;
|
|
111
121
|
this.disconnectDropdownSlotObserver();
|
|
112
122
|
this.disconnectListitemContextObservers();
|
|
113
123
|
const doc = this.el.ownerDocument;
|
|
@@ -117,7 +127,6 @@ export class TopNavItem {
|
|
|
117
127
|
componentWillLoad() {
|
|
118
128
|
this.syncHostListitemRole();
|
|
119
129
|
this.syncHasDropdownFromDom();
|
|
120
|
-
this.syncDropdownDocListeners();
|
|
121
130
|
}
|
|
122
131
|
componentWillRender() {
|
|
123
132
|
this.disconnectDropdownSlotObserver();
|
|
@@ -171,15 +180,13 @@ export class TopNavItem {
|
|
|
171
180
|
});
|
|
172
181
|
}
|
|
173
182
|
disconnectDropdownSlotObserver() {
|
|
174
|
-
|
|
175
|
-
(_a = this.dropdownSlotObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
183
|
+
this.dropdownSlotObserver?.disconnect();
|
|
176
184
|
this.dropdownSlotObserver = undefined;
|
|
177
185
|
}
|
|
178
186
|
disconnectListitemContextObservers() {
|
|
179
|
-
|
|
180
|
-
(_a = this.parentListitemContextObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
187
|
+
this.parentListitemContextObserver?.disconnect();
|
|
181
188
|
this.parentListitemContextObserver = undefined;
|
|
182
|
-
|
|
189
|
+
this.selfListitemContextObserver?.disconnect();
|
|
183
190
|
this.selfListitemContextObserver = undefined;
|
|
184
191
|
}
|
|
185
192
|
connectListitemContextObservers() {
|
|
@@ -204,7 +211,7 @@ export class TopNavItem {
|
|
|
204
211
|
const leftPrimaryListHost = isTopNavLeftAside
|
|
205
212
|
? parent.querySelector('.xpl-top-nav__left-primary')
|
|
206
213
|
: null;
|
|
207
|
-
const observeTarget = leftPrimaryListHost
|
|
214
|
+
const observeTarget = leftPrimaryListHost ?? parent;
|
|
208
215
|
this.parentListitemContextObserver.observe(observeTarget, {
|
|
209
216
|
attributes: true,
|
|
210
217
|
attributeFilter: ['role'],
|
|
@@ -224,6 +231,9 @@ export class TopNavItem {
|
|
|
224
231
|
});
|
|
225
232
|
}
|
|
226
233
|
syncDropdownDocListeners() {
|
|
234
|
+
if (!isBrowser()) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
227
237
|
const doc = this.el.ownerDocument;
|
|
228
238
|
doc.removeEventListener('click', this.onDocClickCapture, true);
|
|
229
239
|
doc.removeEventListener('keydown', this.onDocKeyDownCapture, true);
|
|
@@ -258,8 +268,10 @@ export class TopNavItem {
|
|
|
258
268
|
}
|
|
259
269
|
}
|
|
260
270
|
getNavDropdownBroadcastRoot() {
|
|
261
|
-
|
|
262
|
-
|
|
271
|
+
return (this.el.closest('xpl-top-nav-menu') ??
|
|
272
|
+
this.el.closest('xpl-nav-header-menu') ??
|
|
273
|
+
this.el.closest('xpl-top-nav') ??
|
|
274
|
+
this.el.ownerDocument);
|
|
263
275
|
}
|
|
264
276
|
broadcastCloseOtherDropdownHosts() {
|
|
265
277
|
const root = this.getNavDropdownBroadcastRoot();
|
|
@@ -271,16 +283,14 @@ export class TopNavItem {
|
|
|
271
283
|
});
|
|
272
284
|
}
|
|
273
285
|
hoverModeActive() {
|
|
274
|
-
|
|
275
|
-
return this.openMode === 'hover' && ((_b = (_a = this.hoverOpenMq) === null || _a === void 0 ? void 0 : _a.matches) !== null && _b !== void 0 ? _b : false);
|
|
286
|
+
return this.openMode === 'hover' && (this.hoverOpenMq?.matches ?? false);
|
|
276
287
|
}
|
|
277
288
|
focusTriggerAfterEscape() {
|
|
278
289
|
this.timers.scheduleCoalesced(TIMER.focusTriggerAfterEscape, () => {
|
|
279
|
-
var _a;
|
|
280
290
|
if (!this.el.isConnected) {
|
|
281
291
|
return;
|
|
282
292
|
}
|
|
283
|
-
|
|
293
|
+
this.el.querySelector('.xpl-top-nav-item__inner')?.focus();
|
|
284
294
|
});
|
|
285
295
|
}
|
|
286
296
|
static isInternalRenderedHostChild(el) {
|
|
@@ -289,9 +299,8 @@ export class TopNavItem {
|
|
|
289
299
|
}
|
|
290
300
|
hasNonDropdownLightDomChild() {
|
|
291
301
|
return Array.from(this.el.childNodes).some((node) => {
|
|
292
|
-
var _a;
|
|
293
302
|
if (node.nodeType === Node.TEXT_NODE) {
|
|
294
|
-
return Boolean(
|
|
303
|
+
return Boolean(node.textContent?.trim());
|
|
295
304
|
}
|
|
296
305
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
297
306
|
const child = node;
|
|
@@ -305,15 +314,14 @@ export class TopNavItem {
|
|
|
305
314
|
});
|
|
306
315
|
}
|
|
307
316
|
getInnerAriaLabel() {
|
|
308
|
-
|
|
309
|
-
if ((_a = this.label) === null || _a === void 0 ? void 0 : _a.trim())
|
|
317
|
+
if (this.label?.trim())
|
|
310
318
|
return undefined;
|
|
311
319
|
if (this.hasNonDropdownLightDomChild())
|
|
312
320
|
return undefined;
|
|
313
|
-
const custom =
|
|
321
|
+
const custom = this.itemAriaLabel?.trim();
|
|
314
322
|
if (custom)
|
|
315
323
|
return custom;
|
|
316
|
-
if (
|
|
324
|
+
if (this.icon?.trim() || this.isLeadingIconSlotPresent)
|
|
317
325
|
return 'Navigation item';
|
|
318
326
|
return undefined;
|
|
319
327
|
}
|
|
@@ -324,7 +332,7 @@ export class TopNavItem {
|
|
|
324
332
|
if (el.getAttribute('slot') === 'right-aside-mobile')
|
|
325
333
|
return false;
|
|
326
334
|
const parent = el.parentElement;
|
|
327
|
-
if (
|
|
335
|
+
if (parent?.getAttribute('role') === 'list')
|
|
328
336
|
return true;
|
|
329
337
|
if (parent != null && parent.tagName.toLowerCase() === 'xpl-nav-header-menu') {
|
|
330
338
|
return true;
|
|
@@ -333,7 +341,7 @@ export class TopNavItem {
|
|
|
333
341
|
return true;
|
|
334
342
|
}
|
|
335
343
|
if (el.getAttribute('slot') === 'left-aside' &&
|
|
336
|
-
|
|
344
|
+
parent?.tagName.toLowerCase() === 'xpl-top-nav' &&
|
|
337
345
|
parent.querySelector('.xpl-top-nav__left-primary[role="list"]') != null) {
|
|
338
346
|
return true;
|
|
339
347
|
}
|
|
@@ -345,11 +353,10 @@ export class TopNavItem {
|
|
|
345
353
|
this.hostListitemRole = next;
|
|
346
354
|
}
|
|
347
355
|
renderLabelContent() {
|
|
348
|
-
var _a;
|
|
349
356
|
if (!this.label) {
|
|
350
357
|
return h("slot", null);
|
|
351
358
|
}
|
|
352
|
-
const description =
|
|
359
|
+
const description = this.description?.trim();
|
|
353
360
|
if (!description) {
|
|
354
361
|
return (h("span", { class: "xpl-top-nav-item__label", title: this.label }, this.label));
|
|
355
362
|
}
|
|
@@ -369,7 +376,7 @@ export class TopNavItem {
|
|
|
369
376
|
return (h("span", { class: "xpl-top-nav-item__trailing" }, h("slot", { name: "trailing-icon" })));
|
|
370
377
|
}
|
|
371
378
|
if (this.hasDropdown) {
|
|
372
|
-
return (h("span", { class: "xpl-top-nav-item__trailing" }, h("xpl-icon", { icon:
|
|
379
|
+
return (h("span", { class: "xpl-top-nav-item__trailing" }, h("xpl-icon", { icon: this.isMobileViewport ? 'chevron-right' : 'chevron-down' })));
|
|
373
380
|
}
|
|
374
381
|
return null;
|
|
375
382
|
}
|
|
@@ -378,15 +385,25 @@ export class TopNavItem {
|
|
|
378
385
|
const ariaCurrent = this.selected ? 'page' : undefined;
|
|
379
386
|
const ariaExpanded = this.hasDropdown ? (this.open ? 'true' : 'false') : undefined;
|
|
380
387
|
const ariaLabel = this.getInnerAriaLabel();
|
|
381
|
-
const shared =
|
|
388
|
+
const shared = {
|
|
389
|
+
class: 'xpl-top-nav-item__inner',
|
|
390
|
+
tabIndex,
|
|
391
|
+
'aria-current': ariaCurrent,
|
|
392
|
+
'aria-expanded': ariaExpanded,
|
|
393
|
+
'aria-haspopup': this.hasDropdown ? 'true' : undefined,
|
|
394
|
+
'aria-controls': this.hasDropdown ? this.dropdownPanelId : undefined,
|
|
395
|
+
...(ariaLabel ? { 'aria-label': ariaLabel } : {}),
|
|
396
|
+
onClick: this.handleClick,
|
|
397
|
+
onKeyDown: this.handleKeyDown,
|
|
398
|
+
};
|
|
382
399
|
const useAnchor = this.href != null && !this.hasDropdown;
|
|
383
400
|
if (useAnchor) {
|
|
384
|
-
return (h("a",
|
|
401
|
+
return (h("a", { ...shared, href: this.href }, this.renderLeading(), this.renderLabelContent(), this.renderTrailing()));
|
|
385
402
|
}
|
|
386
|
-
return (h("button",
|
|
403
|
+
return (h("button", { ...shared, type: "button" }, this.renderLeading(), this.renderLabelContent(), this.renderTrailing()));
|
|
387
404
|
}
|
|
388
405
|
render() {
|
|
389
|
-
return (h(Host,
|
|
406
|
+
return (h(Host, { key: 'e1e7241e6b6f2d9d96c779b91b7fa1ba20e8e1f4', class: {
|
|
390
407
|
'xpl-top-nav-item': true,
|
|
391
408
|
'xpl-top-nav-item--active': this.active,
|
|
392
409
|
'xpl-top-nav-item--dropdown-open': this.hasDropdown && this.open,
|
|
@@ -394,7 +411,7 @@ export class TopNavItem {
|
|
|
394
411
|
'xpl-top-nav-item--has-dropdown': this.hasDropdown,
|
|
395
412
|
'xpl-top-nav-item--selected': this.selected,
|
|
396
413
|
dark: true,
|
|
397
|
-
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave
|
|
414
|
+
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, ...(this.hostListitemRole ? { role: 'listitem' } : {}) }, this.renderInner(), this.hasDropdown && (h("div", { key: 'ec1ed04f166670f78c205ba351911672a147d5a7', id: this.dropdownPanelId, class: "xpl-top-nav-item__dropdown" }, h("slot", { key: '01d3db348a018c43f21b24acad80e7687f8bb0e1', name: "dropdown" })))));
|
|
398
415
|
}
|
|
399
416
|
static get is() { return "xpl-top-nav-item"; }
|
|
400
417
|
static get properties() {
|
|
@@ -582,6 +599,7 @@ export class TopNavItem {
|
|
|
582
599
|
"hasActiveDescendant": {},
|
|
583
600
|
"hasDropdown": {},
|
|
584
601
|
"isLeadingIconSlotPresent": {},
|
|
602
|
+
"isMobileViewport": {},
|
|
585
603
|
"hostListitemRole": {},
|
|
586
604
|
"isTrailingIconSlotPresent": {}
|
|
587
605
|
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { TimerManager } from "../../../utils/lifecycle";
|
|
2
|
+
import { TimerManager, isBrowser } from "../../../utils/lifecycle";
|
|
3
3
|
import { TOP_NAV_MOBILE_MQ } from "../top-nav-constants";
|
|
4
4
|
export class TopNavMenu {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.timers = new TimerManager();
|
|
7
7
|
this.isMobileCascade = false;
|
|
8
8
|
this.onViewportChange = () => {
|
|
9
|
-
|
|
10
|
-
this.isMobileCascade = (_b = (_a = this.mobileMq) === null || _a === void 0 ? void 0 : _a.matches) !== null && _b !== void 0 ? _b : false;
|
|
9
|
+
this.isMobileCascade = this.mobileMq?.matches ?? false;
|
|
11
10
|
};
|
|
12
11
|
this.handleBackClick = async () => {
|
|
13
|
-
var _a;
|
|
14
12
|
const parent = this.el.closest('xpl-top-nav-item');
|
|
15
13
|
if (!parent) {
|
|
16
14
|
return;
|
|
17
15
|
}
|
|
18
16
|
await parent.closeMenu();
|
|
19
|
-
|
|
17
|
+
parent.querySelector('.xpl-top-nav-item__inner')?.focus();
|
|
20
18
|
};
|
|
21
19
|
}
|
|
22
20
|
connectedCallback() {
|
|
23
|
-
if (
|
|
21
|
+
if (isBrowser() && typeof window.matchMedia === 'function') {
|
|
24
22
|
this.mobileMq = window.matchMedia(TOP_NAV_MOBILE_MQ);
|
|
25
23
|
this.mobileMq.addEventListener('change', this.onViewportChange);
|
|
26
24
|
this.isMobileCascade = this.mobileMq.matches;
|
|
@@ -28,9 +26,8 @@ export class TopNavMenu {
|
|
|
28
26
|
this.connectParentOpenObserver();
|
|
29
27
|
}
|
|
30
28
|
disconnectedCallback() {
|
|
31
|
-
var _a;
|
|
32
29
|
this.timers.dispose();
|
|
33
|
-
|
|
30
|
+
this.mobileMq?.removeEventListener('change', this.onViewportChange);
|
|
34
31
|
this.mobileMq = undefined;
|
|
35
32
|
this.disconnectParentOpenObserver();
|
|
36
33
|
}
|
|
@@ -49,8 +46,7 @@ export class TopNavMenu {
|
|
|
49
46
|
});
|
|
50
47
|
}
|
|
51
48
|
disconnectParentOpenObserver() {
|
|
52
|
-
|
|
53
|
-
(_a = this.parentOpenObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
49
|
+
this.parentOpenObserver?.disconnect();
|
|
54
50
|
this.parentOpenObserver = undefined;
|
|
55
51
|
}
|
|
56
52
|
scheduleParentOpenCheck() {
|
|
@@ -62,29 +58,28 @@ export class TopNavMenu {
|
|
|
62
58
|
});
|
|
63
59
|
}
|
|
64
60
|
focusBackRowIfJustOpenedOnMobile() {
|
|
65
|
-
var _a;
|
|
66
61
|
if (!this.isMobileCascade) {
|
|
67
62
|
return;
|
|
68
63
|
}
|
|
69
64
|
const parent = this.el.parentElement;
|
|
70
|
-
if (!
|
|
65
|
+
if (!parent?.classList.contains('xpl-top-nav-item--dropdown-open')) {
|
|
71
66
|
return;
|
|
72
67
|
}
|
|
73
|
-
|
|
74
|
-
.querySelector('.xpl-top-nav-menu__back .xpl-top-nav-item__inner')
|
|
68
|
+
this.el
|
|
69
|
+
.querySelector('.xpl-top-nav-menu__back .xpl-top-nav-item__inner')
|
|
70
|
+
?.focus();
|
|
75
71
|
}
|
|
76
72
|
renderBackRow() {
|
|
77
|
-
|
|
78
|
-
if (!this.isMobileCascade || !((_a = this.label) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
73
|
+
if (!this.isMobileCascade || !this.label?.trim()) {
|
|
79
74
|
return null;
|
|
80
75
|
}
|
|
81
76
|
return (h("xpl-top-nav-item", { class: "xpl-top-nav-menu__back", label: this.label, onNavItemClick: this.handleBackClick }, h("xpl-icon", { slot: "leading-icon", icon: "chevron-left", size: 24 })));
|
|
82
77
|
}
|
|
83
78
|
render() {
|
|
84
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'e71631c4d9d4b653247d13c7b182f722bf1e52cc', class: {
|
|
85
80
|
'xpl-top-nav-menu': true,
|
|
86
81
|
dark: true,
|
|
87
|
-
}, role: "list", "aria-label": this.label || undefined }, this.renderBackRow(), h("slot", { key: '
|
|
82
|
+
}, role: "list", "aria-label": this.label || undefined }, this.renderBackRow(), h("slot", { key: 'c6e38f4f78ab65dad030076aebf97c40dbce651b' })));
|
|
88
83
|
}
|
|
89
84
|
static get is() { return "xpl-top-nav-menu"; }
|
|
90
85
|
static get properties() {
|