@xplortech/apollo-core 2.10.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 +134 -12
- 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 -13120
- 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} +760 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/lifecycle-DeSsFfQZ.js +74 -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} +1293 -10607
- 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 +91 -0
- 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 +4 -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-constants.js +1 -0
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +160 -21
- 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/top-nav-item-constants.js +2 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +335 -97
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +114 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +101 -33
- 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 +31 -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 +6 -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-B1PBAEzg.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.d.ts +11 -0
- package/dist/components/xpl-top-nav-menu.js +1 -0
- 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 +23 -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 +5 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +79 -20
- package/dist/docs/xpl-top-nav/xpl-top-nav-menu/readme.md +96 -0
- 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} +760 -9
- package/dist/esm/lifecycle-Dqb1pIRo.js +71 -0
- 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} +1290 -10661
- 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 +89 -0
- 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-constants.d.ts +1 -0
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +79 -1
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/top-nav-item-constants.d.ts +2 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +26 -4
- package/dist/types/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.d.ts +18 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +8 -2
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +9 -2
- package/dist/types/components.d.ts +1186 -66
- 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 +4 -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 +111 -44
- package/dist/apollo-core/p-0e45f332.entry.js +0 -1
- package/dist/apollo-core/p-0f251f98.entry.js +0 -1
- package/dist/apollo-core/p-1691c4f3.entry.js +0 -1
- package/dist/apollo-core/p-172ac720.entry.js +0 -1
- package/dist/apollo-core/p-23870463.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-44a16751.entry.js +0 -1
- package/dist/apollo-core/p-4efecab2.entry.js +0 -1
- package/dist/apollo-core/p-5094dd97.entry.js +0 -1
- package/dist/apollo-core/p-70e7facc.entry.js +0 -1
- package/dist/apollo-core/p-728341d2.entry.js +0 -1
- package/dist/apollo-core/p-910be81f.entry.js +0 -1
- package/dist/apollo-core/p-9adf3694.entry.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-c17b6351.entry.js +0 -1
- package/dist/apollo-core/p-e08b434c.entry.js +0 -1
- package/dist/apollo-core/p-e9e7577f.entry.js +0 -1
- package/dist/components/p-3qMYyqTe.js +0 -1
- package/dist/components/p-BG0-6Xek.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BWyAzrwu.js +0 -1
- package/dist/components/p-B_Wi--Ov.js +0 -1
- package/dist/components/p-Bd6JweBt.js +0 -1
- package/dist/components/p-Bn-27-xj.js +0 -1
- package/dist/components/p-Bs6vq0C6.js +0 -1
- package/dist/components/p-C9BO2vL-.js +0 -1
- package/dist/components/p-CFW_w5Wj.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CGNq3DyC.js +0 -1
- package/dist/components/p-CVqbA9op.js +0 -1
- package/dist/components/p-CtIUusUL.js +0 -1
- package/dist/components/p-D97c0GjM.js +0 -1
- package/dist/components/p-DBWV65V-.js +0 -1
- package/dist/components/p-DEl4Rvzs.js +0 -1
- package/dist/components/p-DPTHmitJ.js +0 -1
- package/dist/components/p-DllC7F-H.js +0 -1
- package/dist/components/p-Ds28UyUR.js +0 -1
- package/dist/components/p-U5dPMCXE.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-hPUzON4O.js +0 -1
- package/dist/components/p-kPHfCq1d.js +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -2,10 +2,9 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import { TimerManager } from "../../utils/lifecycle";
|
|
3
3
|
let xplListItemsPropDeprecationWarned = false;
|
|
4
4
|
function getListItemFromComposedPath(e) {
|
|
5
|
-
|
|
6
|
-
const path = (_b = (_a = e.composedPath) === null || _a === void 0 ? void 0 : _a.call(e)) !== null && _b !== void 0 ? _b : [];
|
|
5
|
+
const path = e.composedPath?.() ?? [];
|
|
7
6
|
const fromPath = path.find((node) => node instanceof HTMLElement && node.tagName.toLowerCase() === 'xpl-list-item');
|
|
8
|
-
return fromPath
|
|
7
|
+
return fromPath ?? null;
|
|
9
8
|
}
|
|
10
9
|
export class List {
|
|
11
10
|
constructor() {
|
|
@@ -79,8 +78,7 @@ export class List {
|
|
|
79
78
|
this.collectListItems();
|
|
80
79
|
}
|
|
81
80
|
handleItemDragStart(event) {
|
|
82
|
-
|
|
83
|
-
const row = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.item;
|
|
81
|
+
const row = event.detail?.item;
|
|
84
82
|
if (!row || row.parentElement !== this.el) {
|
|
85
83
|
return;
|
|
86
84
|
}
|
|
@@ -89,23 +87,21 @@ export class List {
|
|
|
89
87
|
}
|
|
90
88
|
this.draggedItem = row;
|
|
91
89
|
const wrapper = this.draggedItem.querySelector('.xpl-list-item__wrapper');
|
|
92
|
-
wrapper
|
|
90
|
+
wrapper?.classList.add('dragging');
|
|
93
91
|
}
|
|
94
92
|
handleItemDragEnd(event) {
|
|
95
|
-
|
|
96
|
-
const row = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.item;
|
|
93
|
+
const row = event.detail?.item;
|
|
97
94
|
if (!row || row.parentElement !== this.el) {
|
|
98
95
|
return;
|
|
99
96
|
}
|
|
100
97
|
if (this.draggedItem) {
|
|
101
98
|
const wrapper = this.draggedItem.querySelector('.xpl-list-item__wrapper');
|
|
102
|
-
wrapper
|
|
99
|
+
wrapper?.classList.remove('dragging');
|
|
103
100
|
}
|
|
104
101
|
this.draggedItem = null;
|
|
105
102
|
}
|
|
106
103
|
handleItemDrop(event) {
|
|
107
|
-
|
|
108
|
-
const dropTarget = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.item;
|
|
104
|
+
const dropTarget = event.detail?.item;
|
|
109
105
|
if (!dropTarget || dropTarget.parentElement !== this.el) {
|
|
110
106
|
return;
|
|
111
107
|
}
|
|
@@ -115,7 +111,7 @@ export class List {
|
|
|
115
111
|
}
|
|
116
112
|
if (this.draggedItem) {
|
|
117
113
|
const wrapper = this.draggedItem.querySelector('.xpl-list-item__wrapper');
|
|
118
|
-
wrapper
|
|
114
|
+
wrapper?.classList.remove('dragging');
|
|
119
115
|
}
|
|
120
116
|
if (this.draggedItem && dropTarget && this.draggedItem !== dropTarget) {
|
|
121
117
|
const visibleItems = this.getVisibleListItemElements();
|
|
@@ -159,7 +155,7 @@ export class List {
|
|
|
159
155
|
event.stopPropagation();
|
|
160
156
|
const { direction, itemId, keyboardMode, exitKeyboardMode } = event.detail;
|
|
161
157
|
if (keyboardMode !== undefined) {
|
|
162
|
-
this.keyboardReorderItemId = keyboardMode ? itemId : null;
|
|
158
|
+
this.keyboardReorderItemId = keyboardMode ? (itemId ?? null) : null;
|
|
163
159
|
}
|
|
164
160
|
if (exitKeyboardMode) {
|
|
165
161
|
this.keyboardReorderItemId = null;
|
|
@@ -170,7 +166,10 @@ export class List {
|
|
|
170
166
|
this.el.dispatchEvent(new CustomEvent('xplListReorder', {
|
|
171
167
|
bubbles: true,
|
|
172
168
|
composed: true,
|
|
173
|
-
detail:
|
|
169
|
+
detail: {
|
|
170
|
+
...event.detail,
|
|
171
|
+
orderedItemIds: this.getOrderedItemIds(),
|
|
172
|
+
},
|
|
174
173
|
}));
|
|
175
174
|
}
|
|
176
175
|
}
|
|
@@ -246,13 +245,12 @@ export class List {
|
|
|
246
245
|
});
|
|
247
246
|
this.announceReorder(itemId, orderedItemIds);
|
|
248
247
|
this.timers.requestAnimationFrame(() => {
|
|
249
|
-
var _a;
|
|
250
248
|
if (!this.el.isConnected) {
|
|
251
249
|
return;
|
|
252
250
|
}
|
|
253
251
|
const movedItem = this.getDirectChildListItems().find((el) => this.getItemRowId(el) === itemId);
|
|
254
|
-
const handleRoot = movedItem
|
|
255
|
-
const focusTarget =
|
|
252
|
+
const handleRoot = movedItem?.querySelector('.xpl-list-item__drag-handle');
|
|
253
|
+
const focusTarget = handleRoot?.querySelector?.('button') instanceof HTMLElement
|
|
256
254
|
? handleRoot.querySelector('button')
|
|
257
255
|
: handleRoot;
|
|
258
256
|
if (focusTarget instanceof HTMLElement) {
|
|
@@ -365,15 +363,12 @@ export class List {
|
|
|
365
363
|
return item.getAttribute('item-id') || item.id || item.itemId || '';
|
|
366
364
|
}
|
|
367
365
|
render() {
|
|
368
|
-
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
const legacyRowId = (_a = item.id) !== null && _a !== void 0 ? _a : `item-${index}`;
|
|
375
|
-
return (h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
|
|
376
|
-
}), h("slot", { key: '55ce7202269eab851c0d753fd87ef2d5bf9f59a8' }), this.reorderable ? (h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
|
|
366
|
+
const ariaLabelledBy = this.labelledBy?.trim() ? this.labelledBy.trim() : undefined;
|
|
367
|
+
const ariaLabel = !ariaLabelledBy && this.label?.trim() ? this.label.trim() : undefined;
|
|
368
|
+
return (h(Host, { key: '1bfa7238314b7560cdd4dbafae3240fc5e89f72c', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, this.items?.map((item, index) => {
|
|
369
|
+
const legacyRowId = item.id ?? `item-${index}`;
|
|
370
|
+
return (h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
|
|
371
|
+
}), h("slot", { key: 'ee1e57aff365af47ec0ace762cdfeabd0783ee6f' }), this.reorderable ? (h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
|
|
377
372
|
}
|
|
378
373
|
static get is() { return "xpl-list"; }
|
|
379
374
|
static get properties() {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
1
2
|
export default {
|
|
2
3
|
title: 'Components/Navigation/Main Nav',
|
|
4
|
+
tags: ['vrt'],
|
|
5
|
+
beforeEach() {
|
|
6
|
+
setAutoSnapshotOptions({ enable: true });
|
|
7
|
+
},
|
|
3
8
|
argTypes: {
|
|
4
9
|
width: {
|
|
5
10
|
options: ['default', 'sm', 'md'],
|
|
@@ -13,7 +13,7 @@ export class MainNav {
|
|
|
13
13
|
this.navWidthHandler();
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'a2bd0e9fc9de814e5522b315dbb6da2672c6da72', class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", { key: 'f6c75ca9ef37747054994457c2bf2b1d44941479' }, h("header", { key: 'a338af682f79147b22fcb7e72a86fcaab867e19f', "aria-label": "Sidebar Header" }, h("slot", { key: '7208e18c6bc8202ef709ee9a2c07369aeb3f7a8f', name: "logo" }), h("slot", { key: '189761d3d465c4a8ddbdc8dca05ff81b2f2dc2a4', name: "brand-name" })), h("div", { key: '0c981cfaf3267a82319864185d55b4ffad06d114', class: "xpl-main-nav__main_section" }, h("slot", { key: '1301a128dfb5399867527d2afbf350c1e2e92b26', name: "navigation" })), h("footer", { key: 'b3010ec6e8773fad12d60abffcb4226dc5ae091b', class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { key: 'a662e627533ec313acc169a1c01093cf8f450c8a', name: "footer" })))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "xpl-main-nav"; }
|
|
19
19
|
static get properties() {
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForComponentsRender } from "../../../../src/utils/story-vrt";
|
|
2
3
|
export default {
|
|
3
4
|
title: 'Components/Modal',
|
|
4
5
|
component: 'xpl-modal',
|
|
6
|
+
tags: ['vrt'],
|
|
7
|
+
beforeEach() {
|
|
8
|
+
setAutoSnapshotOptions({
|
|
9
|
+
enable: true,
|
|
10
|
+
failureThreshold: 1,
|
|
11
|
+
failureThresholdType: 'percent',
|
|
12
|
+
});
|
|
13
|
+
},
|
|
14
|
+
play: async ({ canvasElement }) => {
|
|
15
|
+
await waitForComponentsRender(canvasElement);
|
|
16
|
+
},
|
|
5
17
|
argTypes: {
|
|
6
18
|
isOpen: {
|
|
7
19
|
control: {
|
|
@@ -46,18 +58,15 @@ export default {
|
|
|
46
58
|
},
|
|
47
59
|
},
|
|
48
60
|
};
|
|
49
|
-
export const Modal = ({ isOpen, title, subtitle, body, actions, primaryButtonText, secondaryButtonText, tertiaryButtonText, size, variant, }
|
|
61
|
+
export const Modal = ({ isOpen, title, subtitle, body, actions, primaryButtonText, secondaryButtonText, tertiaryButtonText, size, variant, }) => {
|
|
50
62
|
const renderButtons = () => {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
const viewportWidth = parseInt((_b = (_a = INITIAL_VIEWPORTS[viewport]) === null || _a === void 0 ? void 0 : _a.styles) === null || _b === void 0 ? void 0 : _b.width, 10);
|
|
53
|
-
const isDesktop = viewport === 'reset' || viewportWidth > 768;
|
|
54
63
|
const buttons = [];
|
|
55
64
|
buttons.push(`<xpl-button slot="primary" variant=${variant === 'warning' ? 'warning' : 'primary'}>${primaryButtonText}</xpl-button>`);
|
|
56
65
|
if (actions >= 2) {
|
|
57
66
|
buttons.push(`<xpl-button slot="secondary" variant="secondary">${secondaryButtonText}</xpl-button>`);
|
|
58
67
|
}
|
|
59
68
|
if (actions === 3) {
|
|
60
|
-
buttons.push(`<xpl-button slot="tertiary" variant
|
|
69
|
+
buttons.push(`<xpl-button slot="tertiary" variant="secondary">${tertiaryButtonText}</xpl-button>`);
|
|
61
70
|
}
|
|
62
71
|
return buttons;
|
|
63
72
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class Modal {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.dialogElement = null;
|
|
4
5
|
this.isOpen = false;
|
|
5
6
|
this.size = 'medium';
|
|
6
7
|
this.variant = 'default';
|
|
@@ -9,10 +10,11 @@ export class Modal {
|
|
|
9
10
|
this.modalClosed.emit();
|
|
10
11
|
};
|
|
11
12
|
this.handleNativeBackdropClick = (event) => {
|
|
12
|
-
|
|
13
|
+
const { dialogElement } = this;
|
|
14
|
+
if (!dialogElement || event.target !== dialogElement) {
|
|
13
15
|
return;
|
|
14
16
|
}
|
|
15
|
-
const rect =
|
|
17
|
+
const rect = dialogElement.getBoundingClientRect();
|
|
16
18
|
const clickedOutsideDialog = event.clientX < rect.left ||
|
|
17
19
|
event.clientX > rect.right ||
|
|
18
20
|
event.clientY < rect.top ||
|
|
@@ -24,30 +26,41 @@ export class Modal {
|
|
|
24
26
|
}
|
|
25
27
|
componentDidLoad() {
|
|
26
28
|
this.dialogElement = this.element.querySelector('dialog');
|
|
29
|
+
if (!this.dialogElement) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
27
32
|
this.updateModalState();
|
|
28
33
|
this.dialogElement.addEventListener('cancel', this.handleDialogClose);
|
|
29
34
|
this.dialogElement.addEventListener('click', this.handleNativeBackdropClick);
|
|
30
35
|
}
|
|
31
36
|
disconnectedCallback() {
|
|
37
|
+
this.clearCloseTimer();
|
|
32
38
|
if (this.dialogElement) {
|
|
33
39
|
this.dialogElement.removeEventListener('cancel', this.handleDialogClose);
|
|
34
40
|
this.dialogElement.removeEventListener('click', this.handleNativeBackdropClick);
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
43
|
updateModalState() {
|
|
38
|
-
var _a, _b;
|
|
39
44
|
if (this.isOpen) {
|
|
40
|
-
|
|
45
|
+
this.clearCloseTimer();
|
|
46
|
+
this.dialogElement?.showModal?.();
|
|
41
47
|
}
|
|
42
48
|
else if (this.dialogElement && typeof this.dialogElement.close === 'function') {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
this.clearCloseTimer();
|
|
50
|
+
this.closeTimerId = setTimeout(() => {
|
|
51
|
+
this.closeTimerId = undefined;
|
|
52
|
+
this.dialogElement?.close();
|
|
46
53
|
}, 250);
|
|
47
54
|
}
|
|
48
55
|
}
|
|
56
|
+
clearCloseTimer() {
|
|
57
|
+
if (this.closeTimerId !== undefined) {
|
|
58
|
+
clearTimeout(this.closeTimerId);
|
|
59
|
+
this.closeTimerId = undefined;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
49
62
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'f7778c1d428d6a008cfe7731a7cbef692cf0dce8', class: "xpl-modal" }, this.isOpen && h("xpl-backdrop", { key: '764ba9d33983e2c680c732e909226a6295326b85' }), h("dialog", { key: '0d8c01d5dd3c9cb14cd3ca5d6c6a2a466cfbeb7c', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}` }, h("div", { key: '825ee88c897ba15bb75e851481f2f5078b647b6d', class: "xpl-modal__header" }, h("div", { key: '7630900b3e13a9fcbe5e73db3cabe3f43efe5cb0', class: "xpl-modal__title" }, this.variant === 'warning' && (h("xpl-icon", { key: '5f1aadc57fe05727395f6feabbc4c9ce8c83dd61', size: 20, icon: "triangle-warning", class: "xpl-modal__alert-icon" })), h("slot", { key: '2735d03fbc4e2520855a5225eed51c4c725c3732', name: "title" }), h("xpl-button", { key: '8c0196cb3d07388308451a050a4becac995cd281', type: "button", class: "xpl-modal__close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleDialogClose }, h("xpl-icon", { key: '8f1764666f2b86592c0c62b06750edf29cc14a14', icon: "xmark" }))), h("div", { key: '6e4fc6a67288640f8a8ac1f69fb4f44df1c9d229', class: "xpl-modal__subtitle" }, h("slot", { key: 'ce59d8d14ffd3200e64c65a1ea2bda7918190a1f', name: "subtitle" }))), h("div", { key: 'a1e6dd317884149a38863ba97b480f21feaf2657', class: "xpl-modal__body" }, h("slot", { key: '43eb4ccf4febe7fe5ae5ed992ce5f6e701231247', name: "body" })), h("div", { key: 'a0648d0b989c86ed2592fa15c2c0a06d6b5470e5', class: "xpl-modal__footer" }, h("slot", { key: '3f6d0f703cb726d9f603aeeee42cf673dfbbeca6', name: "tertiary" }), h("slot", { key: '98412e5f51a4e86cc68dd3133de2611638deee7e', name: "secondary" }), h("slot", { key: '0121aca5ebaaa738fabf32da32e962deb7920fd5', name: "primary" })))));
|
|
51
64
|
}
|
|
52
65
|
static get is() { return "xpl-modal"; }
|
|
53
66
|
static get properties() {
|
|
@@ -9,11 +9,11 @@ export class NavItem {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'ffbe4b34fe5a30cec5bfe506fbc325663db7d02b', class: "xpl-nav-item", role: "listitem", onClick: () => {
|
|
13
13
|
if (this.navControl) {
|
|
14
14
|
this.onNavToggle();
|
|
15
15
|
}
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: 'c772716a5cac78963468f7e6ae7a34f16dbd2636', name: "link" }, h("slot", { key: '0b120ea6bc0e596fee7730459689906e2233521c', name: "icon" }), h("slot", { key: 'fd9edd0051e771ba87a37b72245d3bcfa71bd468' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "xpl-nav-item"; }
|
|
19
19
|
static get properties() {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
1
3
|
export default {
|
|
2
4
|
title: 'Components/Pagination',
|
|
3
5
|
parameters: {
|
|
@@ -5,7 +7,13 @@ export default {
|
|
|
5
7
|
handles: ['pageChange', 'rowsPerPageChange'],
|
|
6
8
|
},
|
|
7
9
|
},
|
|
8
|
-
tags: ['beta'],
|
|
10
|
+
tags: ['beta', 'vrt'],
|
|
11
|
+
beforeEach() {
|
|
12
|
+
setAutoSnapshotOptions({ enable: true });
|
|
13
|
+
},
|
|
14
|
+
async play({ canvasElement }) {
|
|
15
|
+
await waitForHydration(canvasElement);
|
|
16
|
+
},
|
|
9
17
|
argTypes: {
|
|
10
18
|
totalPages: {
|
|
11
19
|
control: {
|
|
@@ -40,7 +48,7 @@ Pagination.parameters = {
|
|
|
40
48
|
export const PaginationWithPageControl = (args) => {
|
|
41
49
|
const { totalPages, withPageControl } = args;
|
|
42
50
|
return `
|
|
43
|
-
<div style="
|
|
51
|
+
<div style="display: flex; align-items: flex-end; padding: 24px;">
|
|
44
52
|
<xpl-pagination total-pages="${totalPages}" with-page-control="${withPageControl}"></xpl-pagination>
|
|
45
53
|
</div>
|
|
46
54
|
`;
|
|
@@ -66,31 +66,29 @@ export class Pagination {
|
|
|
66
66
|
this.buildPageChoices();
|
|
67
67
|
}
|
|
68
68
|
componentDidLoad() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
(_b = this.pageSelectRef) === null || _b === void 0 ? void 0 : _b.addEventListener('changeEvent', this.handlePageChange);
|
|
69
|
+
this.rowsPerPageSelectRef?.addEventListener('changeEvent', this.handleRowsChange);
|
|
70
|
+
this.pageSelectRef?.addEventListener('changeEvent', this.handlePageChange);
|
|
72
71
|
}
|
|
73
72
|
disconnectedCallback() {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
(_b = this.pageSelectRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('changeEvent', this.handlePageChange);
|
|
73
|
+
this.rowsPerPageSelectRef?.removeEventListener('changeEvent', this.handleRowsChange);
|
|
74
|
+
this.pageSelectRef?.removeEventListener('changeEvent', this.handlePageChange);
|
|
77
75
|
}
|
|
78
76
|
render() {
|
|
79
77
|
const disablePrev = this.currentPage <= 1;
|
|
80
78
|
const disableNext = this.currentPage >= this.totalPages;
|
|
81
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '9184904c32aa8d4e552f9493f343a162b8f2d8ee', class: {
|
|
82
80
|
'xpl-pagination': true,
|
|
83
81
|
'xpl-pagination__with-page-control': this.withPageControl,
|
|
84
82
|
'xpl-pagination__no-page-control': !this.withPageControl,
|
|
85
|
-
} }, this.withPageControl && (h("div", { key: '
|
|
83
|
+
} }, this.withPageControl && (h("div", { key: '26febbb3a6bf061bfcf8d61190dc7947aa04efb1', class: "xpl-pagination__rows-per-page" }, h("label", { key: '7a5b406ee8bfd2582e8b543db14b39a493ff2d9c', class: "xpl-pagination__rows-label" }, "Rows per page:"), h("xpl-select", { key: 'd82e693f4ada5897f163ae5243c047348be63a08', class: "xpl-pagination__rows-per-page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.rowsPerPageOptionsArray.map((option) => ({
|
|
86
84
|
label: option.toString(),
|
|
87
85
|
value: option.toString(),
|
|
88
86
|
isSelected: option === this.selectedRowsPerPage,
|
|
89
87
|
})), ref: (el) => {
|
|
90
|
-
this.rowsPerPageSelectRef = el;
|
|
91
|
-
} }))), h("div", { key: '
|
|
92
|
-
this.pageSelectRef = el;
|
|
93
|
-
} }, h("div", { key: '
|
|
88
|
+
this.rowsPerPageSelectRef = el ?? null;
|
|
89
|
+
} }))), h("div", { key: '23fdb444921471c1121a82f6b17050beea69a93c', class: "xpl-pagination__pager" }, h("button", { key: 'bae0457c8c0cda02feb837de3c20965aabc937c0', class: "xpl-pagination__pager-button xpl-pagination__pager-button-prev", disabled: disablePrev, onClick: this.handlePrevPage, "aria-label": "Previous Page", tabindex: "0" }, h("xpl-icon", { key: '714f2d15b2e2c129d2bd70c28858ac95ae3518a7', icon: "arrow-left", size: 20 })), h("xpl-select", { key: 'c52b9974fc675706cdcfe43fe939225a4561cef5', class: "xpl-pagination__page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.pageChoices, "custom-display-value": true, ref: (el) => {
|
|
90
|
+
this.pageSelectRef = el ?? null;
|
|
91
|
+
} }, h("div", { key: '7dcc6c4b3f0b0470986006c2ab7dbcfcbaba0f92', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), h("button", { key: '0afaf6e4b4acd626e7972c0fb5d5f8aad1e16f2a', class: "xpl-pagination__pager-button xpl-pagination__pager-button-next", disabled: disableNext, onClick: this.handleNextPage, "aria-label": "Next Page", tabindex: "0" }, h("xpl-icon", { key: '3759f242a05741cf53938539cd69b9074c6cf323', icon: "arrow-right", size: 20 })))));
|
|
94
92
|
}
|
|
95
93
|
static get is() { return "xpl-pagination"; }
|
|
96
94
|
static get properties() {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
1
3
|
export default {
|
|
4
|
+
tags: ['vrt'],
|
|
5
|
+
beforeEach() {
|
|
6
|
+
setAutoSnapshotOptions({ enable: true });
|
|
7
|
+
},
|
|
8
|
+
async play({ canvasElement }) {
|
|
9
|
+
await waitForHydration(canvasElement);
|
|
10
|
+
},
|
|
2
11
|
title: 'Components/Panel',
|
|
3
12
|
component: 'xpl-panel',
|
|
4
13
|
argTypes: {
|
|
@@ -6,11 +6,11 @@ export class XplPanel {
|
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
const hasAccent = this.accent !== 'none';
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '2be99cac0dda8442b54752745f3bf647df334e70', class: {
|
|
10
10
|
'xpl-panel': true,
|
|
11
11
|
[`xpl-panel--accent-${this.accent}`]: hasAccent,
|
|
12
12
|
[`xpl-panel--padding-${this.padding}`]: true,
|
|
13
|
-
} }, hasAccent && h("div", { key: '
|
|
13
|
+
} }, hasAccent && h("div", { key: 'ff25fa59eff4d886540a5abc3b637478b533b23b', "aria-hidden": "true", class: "xpl-panel__accent" }), h("div", { key: '415205b25333615cfe22d41fdfaf4e114547746b', class: "xpl-panel__content" }, h("slot", { key: '5573ed5bb1cb102720d2c6e1245656fba8d36b8f' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "xpl-panel"; }
|
|
16
16
|
static get properties() {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
1
3
|
export default {
|
|
4
|
+
tags: ['vrt'],
|
|
5
|
+
beforeEach() {
|
|
6
|
+
setAutoSnapshotOptions({ enable: true });
|
|
7
|
+
},
|
|
8
|
+
async play({ canvasElement }) {
|
|
9
|
+
await waitForHydration(canvasElement);
|
|
10
|
+
},
|
|
2
11
|
title: 'Components/Popover',
|
|
3
12
|
parameters: {
|
|
4
13
|
actions: {
|
|
@@ -74,7 +83,8 @@ export const LargerContent = ({ isOpen = true, position }) => {
|
|
|
74
83
|
`;
|
|
75
84
|
};
|
|
76
85
|
[Simple, LargerTrigger, LargerContent].forEach((comp) => {
|
|
77
|
-
|
|
86
|
+
const story = comp;
|
|
87
|
+
story.argTypes = {
|
|
78
88
|
isOpen: {
|
|
79
89
|
control: 'boolean',
|
|
80
90
|
description: 'Whether the popover is open initially',
|
|
@@ -106,15 +116,15 @@ export const LargerContent = ({ isOpen = true, position }) => {
|
|
|
106
116
|
description: 'Display style of the popover',
|
|
107
117
|
},
|
|
108
118
|
};
|
|
109
|
-
|
|
119
|
+
story.args = {
|
|
110
120
|
isOpen: true,
|
|
111
121
|
position: 'top-middle',
|
|
112
122
|
display: 'arrow',
|
|
113
123
|
};
|
|
114
|
-
|
|
124
|
+
story.parameters = {
|
|
115
125
|
layout: 'centered',
|
|
116
126
|
'web-component': {
|
|
117
|
-
render:
|
|
127
|
+
render: story(story.args ?? { isOpen: true, position: 'top-middle', display: 'arrow' }),
|
|
118
128
|
},
|
|
119
129
|
html: {
|
|
120
130
|
render: (({ isOpen = true, position = 'top-middle', display = 'arrow' }) => `
|
|
@@ -154,7 +164,7 @@ export const LargerContent = ({ isOpen = true, position }) => {
|
|
|
154
164
|
Content for the popover goes here.
|
|
155
165
|
</div>
|
|
156
166
|
</div>
|
|
157
|
-
`)(
|
|
167
|
+
`)(story.args ?? { isOpen: true, position: 'top-middle', display: 'arrow' }),
|
|
158
168
|
},
|
|
159
169
|
design: {
|
|
160
170
|
type: 'figma',
|
|
@@ -20,11 +20,31 @@ export class Popover {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
this.handleClickOutside = ({ target }) => {
|
|
23
|
+
if (!target || !(target instanceof Node)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
23
26
|
const isInside = this.el.contains(target);
|
|
24
27
|
if (!isInside && this.isOpenState) {
|
|
25
28
|
this.isOpenState = false;
|
|
26
29
|
}
|
|
27
30
|
};
|
|
31
|
+
this.handleWindowBlur = () => {
|
|
32
|
+
if (!this.isOpenState) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (this.blurCloseTimeoutId !== undefined) {
|
|
36
|
+
clearTimeout(this.blurCloseTimeoutId);
|
|
37
|
+
}
|
|
38
|
+
this.blurCloseTimeoutId = setTimeout(() => {
|
|
39
|
+
this.blurCloseTimeoutId = undefined;
|
|
40
|
+
const active = document.activeElement;
|
|
41
|
+
if (this.isOpenState &&
|
|
42
|
+
active instanceof HTMLIFrameElement &&
|
|
43
|
+
!this.el.contains(active)) {
|
|
44
|
+
this.isOpenState = false;
|
|
45
|
+
}
|
|
46
|
+
}, 0);
|
|
47
|
+
};
|
|
28
48
|
}
|
|
29
49
|
onIsOpenPropChange(newValue) {
|
|
30
50
|
this.isOpenState = newValue;
|
|
@@ -34,7 +54,9 @@ export class Popover {
|
|
|
34
54
|
this.isOpenChange.emit(newValue);
|
|
35
55
|
}
|
|
36
56
|
updateActualPosition(opened) {
|
|
37
|
-
|
|
57
|
+
const { triggerRef } = this;
|
|
58
|
+
const { contentRef } = this;
|
|
59
|
+
if (!triggerRef || !contentRef || !opened) {
|
|
38
60
|
return;
|
|
39
61
|
}
|
|
40
62
|
const preferredOrderMap = {
|
|
@@ -136,8 +158,8 @@ export class Popover {
|
|
|
136
158
|
],
|
|
137
159
|
};
|
|
138
160
|
const fitsPosition = (position) => {
|
|
139
|
-
const { top: triggerTop, left: triggerLeft, bottom: triggerBottom, right: triggerRight, } =
|
|
140
|
-
const { width: popoverWidth, height: popoverHeight } =
|
|
161
|
+
const { top: triggerTop, left: triggerLeft, bottom: triggerBottom, right: triggerRight, } = triggerRef.getBoundingClientRect();
|
|
162
|
+
const { width: popoverWidth, height: popoverHeight } = contentRef.getBoundingClientRect();
|
|
141
163
|
const { innerWidth: screenWidth, innerHeight: screenHeight } = window;
|
|
142
164
|
const visibleBottom = triggerBottom + popoverHeight < screenHeight;
|
|
143
165
|
const visibleTop = triggerTop - popoverHeight >= 0;
|
|
@@ -187,8 +209,9 @@ export class Popover {
|
|
|
187
209
|
this.actualPosition = actual;
|
|
188
210
|
}
|
|
189
211
|
connectedCallback() {
|
|
190
|
-
document.addEventListener('mousedown', this.handleClickOutside
|
|
212
|
+
document.addEventListener('mousedown', this.handleClickOutside);
|
|
191
213
|
document.addEventListener('keydown', this.handleKeyDown);
|
|
214
|
+
window.addEventListener('blur', this.handleWindowBlur);
|
|
192
215
|
this.updateListener = throttle(() => {
|
|
193
216
|
this.updateActualPosition(this.isOpenState);
|
|
194
217
|
});
|
|
@@ -199,23 +222,28 @@ export class Popover {
|
|
|
199
222
|
});
|
|
200
223
|
}
|
|
201
224
|
disconnectedCallback() {
|
|
225
|
+
if (this.blurCloseTimeoutId !== undefined) {
|
|
226
|
+
clearTimeout(this.blurCloseTimeoutId);
|
|
227
|
+
this.blurCloseTimeoutId = undefined;
|
|
228
|
+
}
|
|
202
229
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
203
230
|
document.removeEventListener('keydown', this.handleKeyDown);
|
|
231
|
+
window.removeEventListener('blur', this.handleWindowBlur);
|
|
204
232
|
['resize', 'scroll'].forEach((event) => {
|
|
205
233
|
window.removeEventListener(event, this.updateListener);
|
|
206
234
|
});
|
|
207
235
|
}
|
|
208
236
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
237
|
+
return (h(Host, { key: '0e697fc04e3fd17595eb05f70104c6ffaa2c641c' }, h("div", { key: '749de61a600d9eb55074910d3093217b3fb08863', class: {
|
|
210
238
|
'xpl-popover': true,
|
|
211
239
|
[`xpl-popover--${this.actualPosition}`]: true,
|
|
212
240
|
'xpl-popover--is-open': this.isOpenState,
|
|
213
|
-
} }, h("span", { key: '
|
|
241
|
+
} }, h("span", { key: 'd42b2a4893a5dc18e4298e5ed79eac0c93996385', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
|
|
214
242
|
this.triggerRef = el;
|
|
215
|
-
} }, h("slot", { key: '
|
|
243
|
+
} }, h("slot", { key: 'e99d7e89b3d825ae716a93c423d31854914e5fa9', name: "trigger" })), this.display === 'arrow' && (h("div", { key: '18809dc747e4646920238a0b05e54be568e63311', class: "xpl-popover__arrow" }, h("svg", { key: 'b3f78f3c82cc0969cd4c36117f562eb538864cbe', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'c2f12882970e1e599e7e508e5cd57210b7d08015', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), h("path", { key: 'bce5aecd1ee49ae8252a27bf8db0677c891beb54', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), h("div", { key: 'd970490de0d7ed8413afcc8fa1b1f0985352b796', class: {
|
|
216
244
|
'xpl-popover__content': true,
|
|
217
245
|
[`xpl-popover__content--display-${this.display}`]: true,
|
|
218
|
-
}, ref: (el) => (this.contentRef = el) }, h("slot", { key: '
|
|
246
|
+
}, ref: (el) => (this.contentRef = el) }, h("slot", { key: '742a4d13a4bb0e21ab0135f316bfec76da6fde82' })))));
|
|
219
247
|
}
|
|
220
248
|
static get is() { return "xpl-popover"; }
|
|
221
249
|
static get properties() {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
1
3
|
export default {
|
|
4
|
+
tags: ['vrt'],
|
|
5
|
+
beforeEach() {
|
|
6
|
+
setAutoSnapshotOptions({ enable: true });
|
|
7
|
+
},
|
|
8
|
+
async play({ canvasElement }) {
|
|
9
|
+
await waitForHydration(canvasElement);
|
|
10
|
+
},
|
|
2
11
|
title: 'Components/Progress Bar',
|
|
3
12
|
argTypes: {
|
|
4
13
|
label: {
|
|
@@ -70,7 +79,7 @@ ProgressBar.parameters = {
|
|
|
70
79
|
const helperHtml = helperText
|
|
71
80
|
? `<div class="xpl-progress-bar__helper">${helperText}</div>`
|
|
72
81
|
: '';
|
|
73
|
-
const maxValue = max
|
|
82
|
+
const maxValue = max ?? 100;
|
|
74
83
|
const currentValue = variant !== 'indeterminate' && value !== undefined ? value : maxValue;
|
|
75
84
|
const className = `xpl-progress-bar xpl-progress-bar--${size} xpl-progress-bar--${variant}`;
|
|
76
85
|
const progressHtml = variant === 'indeterminate'
|
|
@@ -25,12 +25,12 @@ export class ProgressBar {
|
|
|
25
25
|
return this.variant === 'indeterminate';
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'e6c2e96d1af4b56204eba288d35b065fbe7d3c71', class: {
|
|
29
29
|
'xpl-progress-bar': true,
|
|
30
30
|
[`xpl-progress-bar--${this.size}`]: true,
|
|
31
31
|
[`xpl-progress-bar--${this.variant}`]: true,
|
|
32
32
|
'xpl-progress-bar--complete': this.isComplete,
|
|
33
|
-
} }, h("div", { key: '
|
|
33
|
+
} }, h("div", { key: '5d8e7731bf5588c8549398dca087e7f39078eec0', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (h("div", { key: 'b36f70ed46b5a8dd46a9f8ea0b5188b90f33741e', class: "xpl-progress-bar__header" }, this.label && h("div", { key: '1fed869f23b4c449c56ff4b40d79fe315118de94', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (h("div", { key: '8ec535833016b380a133599311aa02f8a7765901', class: "xpl-progress-bar__icon" }, this.isError ? (h("xpl-icon", { icon: "circle-xmark-1" })) : (h("xpl-icon", { icon: "circle-check-1" })))))), h("div", { key: 'ea1e88ff71d2e10a71df1c6d63269b16b0c03129', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, h("div", { class: "xpl-progress-bar__indeterminate" }))) : (h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (h("div", { key: '71a2ceee37369f823b598f385dd895b807693aa1', class: "xpl-progress-bar__helper" }, this.helperText)))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "xpl-progress-bar"; }
|
|
36
36
|
static get properties() {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { setAutoSnapshotOptions } from "vitest-plugin-vis";
|
|
2
|
+
import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
|
|
1
3
|
export default {
|
|
2
4
|
title: 'Components/Progress Indicator',
|
|
3
5
|
component: 'xpl-progress-indicator',
|
|
@@ -8,7 +10,13 @@ export default {
|
|
|
8
10
|
showNumbers: { control: { type: 'boolean' } },
|
|
9
11
|
showLabels: { control: { type: 'boolean' } },
|
|
10
12
|
},
|
|
11
|
-
tags: ['beta'],
|
|
13
|
+
tags: ['beta', 'vrt'],
|
|
14
|
+
beforeEach() {
|
|
15
|
+
setAutoSnapshotOptions({ enable: true });
|
|
16
|
+
},
|
|
17
|
+
async play({ canvasElement }) {
|
|
18
|
+
await waitForHydration(canvasElement);
|
|
19
|
+
},
|
|
12
20
|
};
|
|
13
21
|
const defaultSteps = ['Details', 'Location', 'Instructor', 'Customers'];
|
|
14
22
|
export const ProgressIndicator = ({ steps = defaultSteps, currentStep = 1, layout = 'horizontal', showNumbers = true, showLabels = true, }) => {
|
|
@@ -55,7 +55,7 @@ export class ProgressIndicator {
|
|
|
55
55
|
? `Progress: all ${totalSteps} ${totalSteps === 1 ? 'step' : 'steps'} complete`
|
|
56
56
|
: `Progress: step ${currentStepNumber} of ${totalSteps}`
|
|
57
57
|
: 'Progress';
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'bba19d0d09e3bf9ae1fa1e04824f84f4a74b3431', class: hostClasses, role: "group", "aria-label": ariaLabel }, h("div", { key: '529becbce8bfcc02ddf0f4de3c550bfef94ec7ba', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "xpl-progress-indicator"; }
|
|
61
61
|
static get properties() {
|