@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
|
@@ -5,12 +5,12 @@ export class Skeleton {
|
|
|
5
5
|
this.size = 'custom';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'd5f7861a88adeaa570b9101e0b0ffc89d22c6fe1', class: {
|
|
9
9
|
'xpl-skeleton': true,
|
|
10
10
|
[`xpl-skeleton--shape-${this.shape}`]: true,
|
|
11
11
|
[`xpl-skeleton--size-${this.size}`]: true,
|
|
12
|
-
[this.classNames]: !!this.classNames,
|
|
13
|
-
'xpl-skeleton--full-width': this.fullWidth,
|
|
12
|
+
[this.classNames ?? '']: !!this.classNames,
|
|
13
|
+
'xpl-skeleton--full-width': !!this.fullWidth,
|
|
14
14
|
}, style: {
|
|
15
15
|
width: this.width || undefined,
|
|
16
16
|
height: this.height || undefined,
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForComponentsRender } from "../../../../src/utils/story-vrt";
|
|
1
3
|
export default {
|
|
2
4
|
title: 'Components/Slideout',
|
|
3
5
|
component: 'xpl-slideout',
|
|
6
|
+
tags: ['vrt'],
|
|
7
|
+
beforeEach() {
|
|
8
|
+
setAutoSnapshotOptions({
|
|
9
|
+
enable: true,
|
|
10
|
+
failureThreshold: 2,
|
|
11
|
+
failureThresholdType: 'percent',
|
|
12
|
+
});
|
|
13
|
+
},
|
|
14
|
+
play: async ({ canvasElement }) => {
|
|
15
|
+
await waitForComponentsRender(canvasElement);
|
|
16
|
+
},
|
|
4
17
|
argTypes: {
|
|
5
18
|
isOpen: {
|
|
6
19
|
control: 'boolean',
|
|
@@ -15,6 +15,9 @@ export class Slideout {
|
|
|
15
15
|
}
|
|
16
16
|
handleScroll() {
|
|
17
17
|
const content = this.el.querySelector('.content');
|
|
18
|
+
if (!content) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
18
21
|
if (content.scrollHeight > content.clientHeight) {
|
|
19
22
|
content.classList.add('has-shadow');
|
|
20
23
|
}
|
|
@@ -26,7 +29,7 @@ export class Slideout {
|
|
|
26
29
|
this.handleScroll();
|
|
27
30
|
}
|
|
28
31
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '9f0e122ce05688523e4bc55fbeafb584b0bacaf9', class: "xpl-slideout" }, this.backdrop && this.isOpen && (h("xpl-backdrop", { key: '62f708a14d6e45b9bed40b0d2587186543463a25', onClick: this.handleClose })), h("aside", { key: 'cb9499d3295d6cc29f2e007d12fcd80eee2bc794', class: `slideout slideout--${!this.isOpen && 'closed'}` }, h("header", { key: 'ca191a1c3387e69d4cff95d112d1bf834693316f', class: "header" }, h("div", { key: '252035d87faac31b3706a2abd4cae0fbddaaa3e8', class: "title" }, h("slot", { key: 'a5961cfd192bb02aec2ab6a522bf656487f4083e', name: "title" }), h("xpl-button", { key: 'd58b03a81b394dc6b91f86f9db5c756929796df7', class: "close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleClose }, h("xpl-icon", { key: '4ebb45aa90f5017f0651c190909eb4759a02dfaa', icon: "xmark" }))), h("div", { key: 'f67edca86dfc31bb2d69ce00f409610f5010d9a8', class: "subtitle" }, h("slot", { key: '390190ad442a301937d9733632fd9fd15416fe6a', name: "subtitle" })), h("div", { key: '8a50eae2c57ac9c1f15643758e75f821feb9c9e5', class: "search" }, h("slot", { key: '96ae8ec7a5a630d0e51510cf64c7888241bcfd9a', name: "search" }))), h("xpl-divider", { key: '467308913b114d26438b0eea2ed64642d26286c5', tier: 0, class: "divider top" }), h("article", { key: 'b0377d229795fc7371665df458765037da1178ad', class: "content", tabIndex: 0 }, h("slot", { key: 'bf4c5ee2de34e50b605465ad9f253e54be803d6d', name: "content" })), this.showFooter && (h("footer", { key: 'edf941b295e97010fd22b7077ed15f5ca409fe5d' }, h("xpl-divider", { key: '57d7514ae797fc4e309fcc3966abfea992f6aecb', tier: 0, class: "divider bottom" }), h("div", { key: 'df72450ab64fcc163edbbf5514c88b4e17496e51', class: "footer" }, h("slot", { key: '2cbb005039f013fdcf76304c470a5dbdfca58d19', name: "tertiary" }), h("slot", { key: '97270ca76edd0d27970f6358b78e834b8140a715', name: "secondary" }), h("slot", { key: 'c742e527e1ff5878f6d0fcfeb23b2c32c409e260', name: "primary" })))))));
|
|
30
33
|
}
|
|
31
34
|
static get is() { return "xpl-slideout"; }
|
|
32
35
|
static get properties() {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
1
3
|
const escapeHtmlAttribute = (value) => value
|
|
2
4
|
.replace(/&/g, '&')
|
|
3
5
|
.replace(/"/g, '"')
|
|
4
6
|
.replace(/'/g, ''')
|
|
5
7
|
.replace(/</g, '<')
|
|
6
8
|
.replace(/>/g, '>');
|
|
7
|
-
const optionalAttr = (name, value) =>
|
|
9
|
+
const optionalAttr = (name, value) => value?.trim() ? ` ${name}="${escapeHtmlAttribute(value)}"` : '';
|
|
8
10
|
const renderWebComponent = (args) => {
|
|
9
|
-
var _a, _b, _c;
|
|
10
11
|
const attrs = [
|
|
11
12
|
args.actionLayout ? `action-layout="${args.actionLayout}"` : '',
|
|
12
13
|
args.anchorPosition ? `anchor-position="${args.anchorPosition}"` : '',
|
|
@@ -23,9 +24,9 @@ const renderWebComponent = (args) => {
|
|
|
23
24
|
args.showImage != null ? `show-image="${args.showImage}"` : '',
|
|
24
25
|
args.showSteps != null ? `show-steps="${args.showSteps}"` : '',
|
|
25
26
|
args.totalSteps != null ? `total-steps="${args.totalSteps}"` : '',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
args.heading?.trim() ? `heading="${escapeHtmlAttribute(args.heading)}"` : '',
|
|
28
|
+
args.body?.trim() ? `body="${escapeHtmlAttribute(args.body)}"` : '',
|
|
29
|
+
args.target?.trim() ? `target="${escapeHtmlAttribute(args.target)}"` : '',
|
|
29
30
|
]
|
|
30
31
|
.filter(Boolean)
|
|
31
32
|
.join('\n ');
|
|
@@ -34,16 +35,15 @@ const renderWebComponent = (args) => {
|
|
|
34
35
|
></xpl-spotlight>`;
|
|
35
36
|
};
|
|
36
37
|
const renderHtml = (args) => {
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
const actionLayout = (_b = args.actionLayout) !== null && _b !== void 0 ? _b : 'default';
|
|
38
|
+
const anchorPos = args.anchorPosition ?? 'top-left';
|
|
39
|
+
const actionLayout = args.actionLayout ?? 'default';
|
|
40
40
|
const showImage = args.showImage !== false;
|
|
41
41
|
const showActions = args.showActions !== false;
|
|
42
42
|
const showSteps = args.showSteps !== false;
|
|
43
43
|
const isDismissible = args.isDismissible !== false;
|
|
44
44
|
const isSingle = actionLayout === 'single';
|
|
45
|
-
const currentStep =
|
|
46
|
-
const totalSteps =
|
|
45
|
+
const currentStep = args.currentStep ?? 1;
|
|
46
|
+
const totalSteps = args.totalSteps ?? 1;
|
|
47
47
|
const dismissHtml = isDismissible
|
|
48
48
|
? `
|
|
49
49
|
<div class="xpl-spotlight__dismiss">
|
|
@@ -61,18 +61,18 @@ const renderHtml = (args) => {
|
|
|
61
61
|
</div>
|
|
62
62
|
</div>`
|
|
63
63
|
: '';
|
|
64
|
-
const headingHtml =
|
|
64
|
+
const headingHtml = args.heading?.trim()
|
|
65
65
|
? `
|
|
66
66
|
<span class="xpl-spotlight__title">${escapeHtmlAttribute(args.heading)}</span>`
|
|
67
67
|
: '';
|
|
68
|
-
const bodyHtml =
|
|
68
|
+
const bodyHtml = args.body?.trim()
|
|
69
69
|
? `
|
|
70
70
|
<p class="xpl-spotlight__body">${escapeHtmlAttribute(args.body)}</p>`
|
|
71
71
|
: '';
|
|
72
72
|
const secondaryBtn = !isSingle
|
|
73
73
|
? `
|
|
74
74
|
<button type="button" class="xpl-button xpl-button--secondary xpl-button--default">
|
|
75
|
-
${escapeHtmlAttribute(
|
|
75
|
+
${escapeHtmlAttribute(args.secondaryActionLabel ?? 'Back')}
|
|
76
76
|
</button>`
|
|
77
77
|
: '';
|
|
78
78
|
const stepLabel = showSteps && !isSingle
|
|
@@ -81,7 +81,7 @@ const renderHtml = (args) => {
|
|
|
81
81
|
: '';
|
|
82
82
|
const primaryBtn = `
|
|
83
83
|
<button type="button" class="xpl-button xpl-button--primary xpl-button--default">
|
|
84
|
-
${escapeHtmlAttribute(
|
|
84
|
+
${escapeHtmlAttribute(args.primaryActionLabel ?? 'Next')}
|
|
85
85
|
</button>`;
|
|
86
86
|
const actionsHtml = showActions
|
|
87
87
|
? `
|
|
@@ -92,7 +92,7 @@ const renderHtml = (args) => {
|
|
|
92
92
|
</div>
|
|
93
93
|
</div>`
|
|
94
94
|
: '';
|
|
95
|
-
const ariaLabel =
|
|
95
|
+
const ariaLabel = args.heading?.trim() ? '' : ' aria-label="Tour step"';
|
|
96
96
|
return `<div class="xpl-spotlight xpl-spotlight--${anchorPos}${showActions ? ` xpl-spotlight--action-layout-${actionLayout}` : ''}${!showImage ? ' xpl-spotlight--no-image' : ''} xpl-spotlight--visible"
|
|
97
97
|
role="dialog" aria-modal="false"${ariaLabel} tabindex="-1">${dismissHtml}
|
|
98
98
|
<button type="button" class="xpl-spotlight__target" aria-label="Spotlight indicator">
|
|
@@ -208,6 +208,13 @@ Spotlight.args = {
|
|
|
208
208
|
target: '',
|
|
209
209
|
totalSteps: 5,
|
|
210
210
|
};
|
|
211
|
+
Spotlight.tags = ['vrt'];
|
|
212
|
+
Spotlight.beforeEach = () => {
|
|
213
|
+
setAutoSnapshotOptions({ enable: true });
|
|
214
|
+
};
|
|
215
|
+
Spotlight.play = async ({ canvasElement }) => {
|
|
216
|
+
await waitForHydration(canvasElement);
|
|
217
|
+
};
|
|
211
218
|
Spotlight.parameters = {
|
|
212
219
|
layout: 'padded',
|
|
213
220
|
docs: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Host, forceUpdate, h, } from "@stencil/core";
|
|
2
|
+
import { isBrowser } from "../../utils/lifecycle";
|
|
2
3
|
import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
3
4
|
const SPOTLIGHT_FOCUS_BUTTON_SELECTOR = '.xpl-spotlight__dismiss button, .xpl-spotlight__actions button';
|
|
4
5
|
const SPOTLIGHT_FOCUS_FALLBACK_MAX_TICKS = 120;
|
|
5
6
|
const SPOTLIGHT_FOCUS_OBSERVER_MAX_MS = 2500;
|
|
6
7
|
function waitForSpotlightFocusButtonWithoutMutationObserver(root, options) {
|
|
7
8
|
return new Promise((resolve) => {
|
|
8
|
-
|
|
9
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.signal) === null || _a === void 0 ? void 0 : _a.aborted) {
|
|
9
|
+
if (options?.signal?.aborted) {
|
|
10
10
|
resolve(null);
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
@@ -23,7 +23,7 @@ function waitForSpotlightFocusButtonWithoutMutationObserver(root, options) {
|
|
|
23
23
|
resolve(value);
|
|
24
24
|
};
|
|
25
25
|
const onAbort = () => finish(null);
|
|
26
|
-
|
|
26
|
+
options?.signal?.addEventListener('abort', onAbort, { once: true });
|
|
27
27
|
const schedule = (fn) => {
|
|
28
28
|
if (typeof requestAnimationFrame !== 'undefined') {
|
|
29
29
|
rafId = requestAnimationFrame(() => {
|
|
@@ -39,20 +39,19 @@ function waitForSpotlightFocusButtonWithoutMutationObserver(root, options) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
const tick = () => {
|
|
42
|
-
|
|
43
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.signal) === null || _a === void 0 ? void 0 : _a.aborted) {
|
|
42
|
+
if (options?.signal?.aborted) {
|
|
44
43
|
finish(null);
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
46
|
const el = root.querySelector(SPOTLIGHT_FOCUS_BUTTON_SELECTOR);
|
|
48
47
|
if (el) {
|
|
49
|
-
|
|
48
|
+
options?.signal?.removeEventListener('abort', onAbort);
|
|
50
49
|
finish(el);
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
53
52
|
ticks += 1;
|
|
54
53
|
if (ticks >= SPOTLIGHT_FOCUS_FALLBACK_MAX_TICKS) {
|
|
55
|
-
|
|
54
|
+
options?.signal?.removeEventListener('abort', onAbort);
|
|
56
55
|
finish(null);
|
|
57
56
|
return;
|
|
58
57
|
}
|
|
@@ -62,19 +61,17 @@ function waitForSpotlightFocusButtonWithoutMutationObserver(root, options) {
|
|
|
62
61
|
});
|
|
63
62
|
}
|
|
64
63
|
function waitForSpotlightFocusButton(root, options) {
|
|
65
|
-
var _a;
|
|
66
64
|
const existing = root.querySelector(SPOTLIGHT_FOCUS_BUTTON_SELECTOR);
|
|
67
65
|
if (existing) {
|
|
68
66
|
return Promise.resolve(existing);
|
|
69
67
|
}
|
|
70
|
-
if (
|
|
68
|
+
if (options?.signal?.aborted) {
|
|
71
69
|
return Promise.resolve(null);
|
|
72
70
|
}
|
|
73
71
|
if (typeof MutationObserver === 'undefined') {
|
|
74
72
|
return waitForSpotlightFocusButtonWithoutMutationObserver(root, options);
|
|
75
73
|
}
|
|
76
74
|
return new Promise((resolve) => {
|
|
77
|
-
var _a;
|
|
78
75
|
let settled = false;
|
|
79
76
|
let timeoutId;
|
|
80
77
|
let observer;
|
|
@@ -100,7 +97,7 @@ function waitForSpotlightFocusButton(root, options) {
|
|
|
100
97
|
subtree: true,
|
|
101
98
|
});
|
|
102
99
|
timeoutId = setTimeout(() => finish(null), SPOTLIGHT_FOCUS_OBSERVER_MAX_MS);
|
|
103
|
-
|
|
100
|
+
options?.signal?.addEventListener('abort', () => {
|
|
104
101
|
finish(null);
|
|
105
102
|
}, { once: true });
|
|
106
103
|
});
|
|
@@ -202,7 +199,9 @@ export class Spotlight {
|
|
|
202
199
|
this.syncTitleSlotIds();
|
|
203
200
|
};
|
|
204
201
|
this.updatePosition = async (referenceEl) => {
|
|
205
|
-
|
|
202
|
+
if (!isBrowser()) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
206
205
|
const generation = this.positioningGeneration;
|
|
207
206
|
try {
|
|
208
207
|
const initialPlacement = ANCHOR_TO_PLACEMENT[this.anchorPosition];
|
|
@@ -220,18 +219,19 @@ export class Spotlight {
|
|
|
220
219
|
}
|
|
221
220
|
this.el.style.left = `${x}px`;
|
|
222
221
|
this.el.style.top = `${y}px`;
|
|
223
|
-
const shiftX =
|
|
224
|
-
const shiftY =
|
|
222
|
+
const shiftX = middlewareData.shift?.x ?? 0;
|
|
223
|
+
const shiftY = middlewareData.shift?.y ?? 0;
|
|
225
224
|
this.el.style.setProperty('--xpl-spotlight-shift-x', `${-shiftX}px`);
|
|
226
225
|
this.el.style.setProperty('--xpl-spotlight-shift-y', `${-shiftY}px`);
|
|
227
226
|
this.hasFloatingPosition = true;
|
|
228
|
-
const corner =
|
|
229
|
-
|
|
227
|
+
const corner = PLACEMENT_TO_CORNER[placement] ??
|
|
228
|
+
PLACEMENT_TO_CORNER[placement.split('-')[0] ?? ''];
|
|
229
|
+
this.resolvedAnchorPosition = corner ?? this.anchorPosition;
|
|
230
230
|
if (this.pendingEnterTransitionAfterAnchor) {
|
|
231
231
|
this.scheduleEnterTransition();
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
catch
|
|
234
|
+
catch {
|
|
235
235
|
if (generation !== this.positioningGeneration) {
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
@@ -256,8 +256,7 @@ export class Spotlight {
|
|
|
256
256
|
}
|
|
257
257
|
onIsOpenChange(isOpen) {
|
|
258
258
|
if (Spotlight.coerceBoolean(isOpen)) {
|
|
259
|
-
this.
|
|
260
|
-
document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
259
|
+
this.capturePreviousFocus();
|
|
261
260
|
this.shouldMoveFocusOnRender = true;
|
|
262
261
|
this.isVisible = false;
|
|
263
262
|
this.refreshBodySlotState();
|
|
@@ -305,8 +304,7 @@ export class Spotlight {
|
|
|
305
304
|
this.isVisible = false;
|
|
306
305
|
return;
|
|
307
306
|
}
|
|
308
|
-
this.
|
|
309
|
-
document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
307
|
+
this.capturePreviousFocus();
|
|
310
308
|
this.shouldMoveFocusOnRender = true;
|
|
311
309
|
this.scheduleEnterTransition();
|
|
312
310
|
if (this.pendingEnterVisible) {
|
|
@@ -328,12 +326,8 @@ export class Spotlight {
|
|
|
328
326
|
this.hasImageSlotContent = this.hasSlottedContent('image');
|
|
329
327
|
this.hasTitleSlotContent = this.hasSlottedContent('title');
|
|
330
328
|
this.dialogLabelId = this.getDialogLabelId();
|
|
331
|
-
if (this.isOpenEnabled) {
|
|
332
|
-
this.
|
|
333
|
-
document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
334
|
-
if (!this.target) {
|
|
335
|
-
this.pendingEnterVisible = true;
|
|
336
|
-
}
|
|
329
|
+
if (this.isOpenEnabled && !this.target) {
|
|
330
|
+
this.pendingEnterVisible = true;
|
|
337
331
|
}
|
|
338
332
|
this.shouldMoveFocusOnRender = this.isOpenEnabled;
|
|
339
333
|
}
|
|
@@ -375,6 +369,7 @@ export class Spotlight {
|
|
|
375
369
|
return;
|
|
376
370
|
}
|
|
377
371
|
this.shouldMoveFocusOnRender = false;
|
|
372
|
+
this.capturePreviousFocus();
|
|
378
373
|
this.focusInitial();
|
|
379
374
|
}
|
|
380
375
|
handleKeyDown(ev) {
|
|
@@ -452,16 +447,13 @@ export class Spotlight {
|
|
|
452
447
|
return Spotlight.coerceBoolean(this.showSteps);
|
|
453
448
|
}
|
|
454
449
|
get headingPropHasText() {
|
|
455
|
-
|
|
456
|
-
return Boolean((_a = this.heading) === null || _a === void 0 ? void 0 : _a.trim());
|
|
450
|
+
return Boolean(this.heading?.trim());
|
|
457
451
|
}
|
|
458
452
|
get bodyPropHasText() {
|
|
459
|
-
|
|
460
|
-
return Boolean((_a = this.body) === null || _a === void 0 ? void 0 : _a.trim());
|
|
453
|
+
return Boolean(this.body?.trim());
|
|
461
454
|
}
|
|
462
455
|
async focusInitial() {
|
|
463
|
-
|
|
464
|
-
(_a = this.focusAbort) === null || _a === void 0 ? void 0 : _a.abort();
|
|
456
|
+
this.focusAbort?.abort();
|
|
465
457
|
this.focusAbort = new AbortController();
|
|
466
458
|
if (!this.hasRenderableFocusChrome && this.isOpenEnabled) {
|
|
467
459
|
this.focusFrameId = requestAnimationFrame(() => {
|
|
@@ -490,15 +482,20 @@ export class Spotlight {
|
|
|
490
482
|
const { activeElement } = document;
|
|
491
483
|
return (Boolean(activeElement) && (activeElement === this.el || this.el.contains(activeElement)));
|
|
492
484
|
}
|
|
485
|
+
capturePreviousFocus() {
|
|
486
|
+
if (!isBrowser()) {
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
this.previousFocus =
|
|
490
|
+
document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
491
|
+
}
|
|
493
492
|
restoreFocus() {
|
|
494
|
-
|
|
495
|
-
if ((_a = this.previousFocus) === null || _a === void 0 ? void 0 : _a.isConnected) {
|
|
493
|
+
if (this.previousFocus?.isConnected) {
|
|
496
494
|
this.previousFocus.focus();
|
|
497
495
|
}
|
|
498
496
|
}
|
|
499
497
|
cancelPendingFocusWait() {
|
|
500
|
-
|
|
501
|
-
(_a = this.focusAbort) === null || _a === void 0 ? void 0 : _a.abort();
|
|
498
|
+
this.focusAbort?.abort();
|
|
502
499
|
if (this.focusFrameId != null) {
|
|
503
500
|
cancelAnimationFrame(this.focusFrameId);
|
|
504
501
|
this.focusFrameId = null;
|
|
@@ -513,7 +510,7 @@ export class Spotlight {
|
|
|
513
510
|
}
|
|
514
511
|
scheduleEnterTransition(options) {
|
|
515
512
|
this.cancelEnterTransition();
|
|
516
|
-
const shouldDeferUntilAnchored = !
|
|
513
|
+
const shouldDeferUntilAnchored = !options?.skipAnchorWait &&
|
|
517
514
|
Boolean(this.target && this.referenceEl) &&
|
|
518
515
|
!this.hasFloatingPosition;
|
|
519
516
|
if (shouldDeferUntilAnchored) {
|
|
@@ -524,7 +521,6 @@ export class Spotlight {
|
|
|
524
521
|
this.pendingEnterVisible = true;
|
|
525
522
|
}
|
|
526
523
|
getFirstTitleSlottedElement() {
|
|
527
|
-
var _a;
|
|
528
524
|
const fromHost = Array.from(this.el.children).find((node) => node.nodeType === Node.ELEMENT_NODE && node.getAttribute('slot') === 'title');
|
|
529
525
|
if (fromHost) {
|
|
530
526
|
return fromHost;
|
|
@@ -536,12 +532,12 @@ export class Spotlight {
|
|
|
536
532
|
return assigned;
|
|
537
533
|
}
|
|
538
534
|
}
|
|
539
|
-
return
|
|
535
|
+
return this.el.querySelector('[slot="title"]') ?? null;
|
|
540
536
|
}
|
|
541
537
|
getDialogLabelId() {
|
|
542
538
|
if (this.hasTitleSlotContent) {
|
|
543
539
|
const first = this.getFirstTitleSlottedElement();
|
|
544
|
-
if (first
|
|
540
|
+
if (first?.id) {
|
|
545
541
|
return first.id;
|
|
546
542
|
}
|
|
547
543
|
return this.headingId;
|
|
@@ -592,8 +588,7 @@ export class Spotlight {
|
|
|
592
588
|
});
|
|
593
589
|
}
|
|
594
590
|
stopSlotContentObserver() {
|
|
595
|
-
|
|
596
|
-
(_a = this.slotContentObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
591
|
+
this.slotContentObserver?.disconnect();
|
|
597
592
|
this.slotContentObserver = null;
|
|
598
593
|
}
|
|
599
594
|
hasSlottedContent(slotName) {
|
|
@@ -603,15 +598,15 @@ export class Spotlight {
|
|
|
603
598
|
const hasAssigned = slot
|
|
604
599
|
? slot
|
|
605
600
|
.assignedNodes({ flatten: true })
|
|
606
|
-
.some((n) =>
|
|
607
|
-
|
|
608
|
-
return n.nodeType === Node.ELEMENT_NODE ||
|
|
609
|
-
(n.nodeType === Node.TEXT_NODE && ((_a = n.textContent) === null || _a === void 0 ? void 0 : _a.trim()));
|
|
610
|
-
})
|
|
601
|
+
.some((n) => n.nodeType === Node.ELEMENT_NODE ||
|
|
602
|
+
(n.nodeType === Node.TEXT_NODE && n.textContent?.trim()))
|
|
611
603
|
: false;
|
|
612
604
|
return Boolean(fromQuery || fromHostChildren) || hasAssigned;
|
|
613
605
|
}
|
|
614
606
|
startPositioning() {
|
|
607
|
+
if (!isBrowser()) {
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
615
610
|
if (!this.target) {
|
|
616
611
|
return;
|
|
617
612
|
}
|
|
@@ -619,7 +614,7 @@ export class Spotlight {
|
|
|
619
614
|
try {
|
|
620
615
|
el = this.el.ownerDocument.querySelector(this.target);
|
|
621
616
|
}
|
|
622
|
-
catch
|
|
617
|
+
catch {
|
|
623
618
|
this.stopPositioning();
|
|
624
619
|
this.resolvedAnchorPosition = this.anchorPosition;
|
|
625
620
|
return;
|
|
@@ -2,6 +2,7 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { getTabGroupInstanceId, tabPanelDomId, tabTriggerId, } from "../../utils/tab-a11y-ids";
|
|
3
3
|
export class Tab {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.badgeVariant = 'purple';
|
|
5
6
|
this.disabled = false;
|
|
6
7
|
this.fullWidth = false;
|
|
7
8
|
this.groupDisabled = false;
|
|
@@ -29,12 +30,11 @@ export class Tab {
|
|
|
29
30
|
}
|
|
30
31
|
async focusTrigger() {
|
|
31
32
|
const btn = await this.getFocusableElement();
|
|
32
|
-
btn
|
|
33
|
+
btn?.focus();
|
|
33
34
|
}
|
|
34
35
|
get a11yIds() {
|
|
35
|
-
var _a;
|
|
36
36
|
const groupId = getTabGroupInstanceId(this.el);
|
|
37
|
-
const t =
|
|
37
|
+
const t = this.target ?? '';
|
|
38
38
|
return {
|
|
39
39
|
panelId: tabPanelDomId(groupId, t),
|
|
40
40
|
triggerId: tabTriggerId(groupId, t),
|
|
@@ -46,8 +46,16 @@ export class Tab {
|
|
|
46
46
|
get isSegment() {
|
|
47
47
|
return this.variant === 'segment';
|
|
48
48
|
}
|
|
49
|
+
get hasBadge() {
|
|
50
|
+
return this.badge != null && this.badge.length > 0;
|
|
51
|
+
}
|
|
52
|
+
renderBadge() {
|
|
53
|
+
if (!this.hasBadge) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return (h("xpl-badge", { class: "xpl-tab__badge", dotOnly: true, variant: this.badgeVariant }, this.badge));
|
|
57
|
+
}
|
|
49
58
|
render() {
|
|
50
|
-
var _a;
|
|
51
59
|
const segment = this.isSegment;
|
|
52
60
|
const { panelId, triggerId } = this.a11yIds;
|
|
53
61
|
const ariaSelected = this.selected ? 'true' : 'false';
|
|
@@ -63,13 +71,60 @@ export class Tab {
|
|
|
63
71
|
role: 'tab',
|
|
64
72
|
'aria-controls': panelId,
|
|
65
73
|
'aria-selected': ariaSelected,
|
|
66
|
-
}, disabled: this.effectivelyDisabled, fullWidth: this.fullWidth, icon:
|
|
74
|
+
}, disabled: this.effectivelyDisabled, fullWidth: this.fullWidth, icon: this.icon ?? '', iconPosition: this.iconPosition, onClick: this.handleTabClick, size: "sm", type: "button", variant: this.selected ? 'primary' : 'tertiary' }, h("slot", null), this.renderBadge())));
|
|
67
75
|
}
|
|
68
|
-
|
|
76
|
+
const iconEl = this.icon ? (h("xpl-icon", { class: "xpl-tab__icon", icon: this.icon, size: 16 })) : null;
|
|
77
|
+
return (h(Host, { class: hostClass }, h("button", { "aria-controls": panelId, "aria-selected": ariaSelected, class: "xpl-tab__button", disabled: this.effectivelyDisabled, id: triggerId, onClick: this.handleTabClick, role: "tab", type: "button" }, this.iconPosition === 'start' ? iconEl : null, h("slot", null), this.iconPosition === 'end' ? iconEl : null, this.renderBadge())));
|
|
69
78
|
}
|
|
70
79
|
static get is() { return "xpl-tab"; }
|
|
71
80
|
static get properties() {
|
|
72
81
|
return {
|
|
82
|
+
"badge": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "Optional trailing number badge (e.g. a count). Rendered after the label as a compact\n`xpl-badge` in both underline (`type=\"tabs\"`) and segment (`type=\"segment\"`) tabs.\nLeave empty to omit the badge."
|
|
95
|
+
},
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
98
|
+
"reflect": true,
|
|
99
|
+
"attribute": "badge"
|
|
100
|
+
},
|
|
101
|
+
"badgeVariant": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "BadgePalette",
|
|
106
|
+
"resolved": "\"blue\" | \"gray\" | \"green\" | \"orange\" | \"purple\" | \"red\" | \"yellow\"",
|
|
107
|
+
"references": {
|
|
108
|
+
"BadgePalette": {
|
|
109
|
+
"location": "import",
|
|
110
|
+
"path": "../xpl-badge/xpl-badge",
|
|
111
|
+
"id": "src/components/components/xpl-badge/xpl-badge.tsx::BadgePalette",
|
|
112
|
+
"referenceLocation": "BadgePalette"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Color palette for the trailing number badge. Only applies when `badge` is set.\nDefaults to `purple` \u2014 the standard number-badge color in the Figma XPL-Tab Group spec."
|
|
121
|
+
},
|
|
122
|
+
"getter": false,
|
|
123
|
+
"setter": false,
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"attribute": "badge-variant",
|
|
126
|
+
"defaultValue": "'purple'"
|
|
127
|
+
},
|
|
73
128
|
"disabled": {
|
|
74
129
|
"type": "boolean",
|
|
75
130
|
"mutable": false,
|
|
@@ -145,7 +200,7 @@ export class Tab {
|
|
|
145
200
|
"optional": true,
|
|
146
201
|
"docs": {
|
|
147
202
|
"tags": [],
|
|
148
|
-
"text": "Optional icon name
|
|
203
|
+
"text": "Optional leading icon name (from the Apollo icon set). Rendered in both underline\n(`type=\"tabs\"`) and segment (`type=\"segment\"`) tabs."
|
|
149
204
|
},
|
|
150
205
|
"getter": false,
|
|
151
206
|
"setter": false,
|
|
@@ -164,7 +219,7 @@ export class Tab {
|
|
|
164
219
|
"optional": false,
|
|
165
220
|
"docs": {
|
|
166
221
|
"tags": [],
|
|
167
|
-
"text": "Icon position
|
|
222
|
+
"text": "Icon position relative to the label. Applies to both underline and segment tabs."
|
|
168
223
|
},
|
|
169
224
|
"getter": false,
|
|
170
225
|
"setter": false,
|
|
@@ -5,15 +5,14 @@ export class TabPanel {
|
|
|
5
5
|
this.selected = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
var _a;
|
|
9
8
|
const groupId = getTabGroupInstanceId(this.el);
|
|
10
|
-
const t =
|
|
9
|
+
const t = this.target ?? '';
|
|
11
10
|
const panelId = tabPanelDomId(groupId, t);
|
|
12
11
|
const labelledBy = tabTriggerId(groupId, t);
|
|
13
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '89c4bb26274f9cd2f317e308d58b03ee48d80ac8', "aria-labelledby": labelledBy, class: {
|
|
14
13
|
'xpl-tab-panel': true,
|
|
15
14
|
'xpl-tab-panel--selected': this.selected,
|
|
16
|
-
}, id: panelId, role: "tabpanel" }, h("slot", { key: '
|
|
15
|
+
}, id: panelId, role: "tabpanel" }, h("slot", { key: '2d8ccc1f14e7415528bbb09fa9ed174e5cea8e00' })));
|
|
17
16
|
}
|
|
18
17
|
static get is() { return "xpl-tab-panel"; }
|
|
19
18
|
static get properties() {
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { v4 as uuid } from "uuid";
|
|
2
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
3
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
2
4
|
export default {
|
|
5
|
+
tags: ['vrt'],
|
|
6
|
+
beforeEach() {
|
|
7
|
+
setAutoSnapshotOptions({ enable: true });
|
|
8
|
+
},
|
|
9
|
+
async play({ canvasElement }) {
|
|
10
|
+
await waitForHydration(canvasElement);
|
|
11
|
+
},
|
|
3
12
|
title: 'Components/Table',
|
|
4
13
|
argTypes: {
|
|
5
14
|
freeze: { control: { type: 'boolean' } },
|
|
@@ -41,7 +50,7 @@ const selectedValuesDefault = [
|
|
|
41
50
|
];
|
|
42
51
|
const sortableColumnsDefault = [false, false, false, false, false, false];
|
|
43
52
|
const footerDefault = [['Total', '676.5', '159.75', 'All Seasons', '26', '106']];
|
|
44
|
-
const script = ({ columns, data, footer, id, selectedValues, isSortable, sortableColumns }) => `
|
|
53
|
+
const script = ({ columns, data, footer, id, selectedValues, isSortable, sortableColumns, }) => `
|
|
45
54
|
(function() {
|
|
46
55
|
const table = document.getElementById("${id}");
|
|
47
56
|
table.columns = ${JSON.stringify(columns)};
|
|
@@ -68,7 +77,7 @@ export const Table = ({ columns, data, footer, freeze, multiselect, selectedValu
|
|
|
68
77
|
<xpl-table id="${id}"${attrs}></xpl-table>
|
|
69
78
|
</div>
|
|
70
79
|
<script>
|
|
71
|
-
${script({ id, columns, data, footer, selectedValues, sortableColumns, isSortable })}
|
|
80
|
+
${script({ id, columns, data, footer, selectedValues, sortableColumns, isSortable, freeze, multiselect, striped })}
|
|
72
81
|
</script>
|
|
73
82
|
`;
|
|
74
83
|
};
|