@xplortech/apollo-core 2.11.0 → 3.0.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 +160 -10
- package/AGENTS.md +29 -5
- package/README.md +42 -3
- 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-body.css +1 -0
- package/build/components/table-footer-cell.css +1 -0
- package/build/components/table-footer.css +1 -0
- package/build/components/table-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table-row.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 +232 -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-0368a1df.entry.js +1 -0
- package/dist/apollo-core/p-056a99e4.entry.js +1 -0
- package/dist/apollo-core/p-068e3532.entry.js +1 -0
- package/dist/apollo-core/p-06a9a27b.entry.js +1 -0
- package/dist/apollo-core/p-0958c719.entry.js +1 -0
- package/dist/apollo-core/p-0a0a6e43.entry.js +1 -0
- package/dist/apollo-core/p-149ddd12.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a94c2d9.entry.js +1 -0
- package/dist/apollo-core/p-2139f9f6.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-28bce81a.entry.js +1 -0
- package/dist/apollo-core/p-2938ab4f.entry.js +1 -0
- package/dist/apollo-core/p-2c995d80.entry.js +1 -0
- package/dist/apollo-core/p-2faa7b9c.entry.js +1 -0
- package/dist/apollo-core/p-30b1b700.entry.js +1 -0
- package/dist/apollo-core/p-32084caf.entry.js +1 -0
- package/dist/apollo-core/p-38586952.entry.js +1 -0
- package/dist/apollo-core/p-47bda204.entry.js +1 -0
- package/dist/apollo-core/p-4a2323b3.entry.js +1 -0
- package/dist/apollo-core/p-4ad79534.entry.js +1 -0
- package/dist/apollo-core/p-4d4acd1f.entry.js +1 -0
- package/dist/apollo-core/p-50fae269.entry.js +1 -0
- package/dist/apollo-core/p-54903322.entry.js +1 -0
- package/dist/apollo-core/p-5730d96c.entry.js +1 -0
- package/dist/apollo-core/p-581b702c.entry.js +1 -0
- package/dist/apollo-core/p-5d9a593e.entry.js +1 -0
- package/dist/apollo-core/p-60cb3cfb.entry.js +1 -0
- package/dist/apollo-core/p-722b145a.entry.js +1 -0
- package/dist/apollo-core/p-75e5bfe0.entry.js +1 -0
- package/dist/apollo-core/p-77fe3cc1.entry.js +1 -0
- package/dist/apollo-core/p-790709c0.entry.js +1 -0
- package/dist/apollo-core/p-82812126.entry.js +1 -0
- package/dist/apollo-core/p-83bb7607.entry.js +1 -0
- package/dist/apollo-core/p-8664d88b.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-9064badb.entry.js +1 -0
- package/dist/apollo-core/p-91895c40.entry.js +1 -0
- package/dist/apollo-core/p-969d5cca.entry.js +1 -0
- package/dist/apollo-core/p-99a79cf4.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-abdf199b.entry.js +1 -0
- package/dist/apollo-core/p-ae8a5f66.entry.js +1 -0
- package/dist/apollo-core/p-af8ebf49.entry.js +1 -0
- package/dist/apollo-core/p-b29025b2.entry.js +1 -0
- package/dist/apollo-core/p-b45179fb.entry.js +1 -0
- package/dist/apollo-core/p-b5a61076.entry.js +1 -0
- package/dist/apollo-core/p-bf7d8e18.entry.js +1 -0
- package/dist/apollo-core/p-c48e4884.entry.js +1 -0
- package/dist/apollo-core/p-ca4652b3.entry.js +1 -0
- package/dist/apollo-core/p-cb5b15c2.entry.js +1 -0
- package/dist/apollo-core/p-cc57f20d.entry.js +1 -0
- package/dist/apollo-core/p-cdacfcd4.entry.js +1 -0
- package/dist/apollo-core/p-cdb5b5c4.entry.js +1 -0
- package/dist/apollo-core/p-d0bc7c45.entry.js +1 -0
- package/dist/apollo-core/p-d41b8f46.entry.js +1 -0
- package/dist/apollo-core/p-d443291f.entry.js +1 -0
- package/dist/apollo-core/p-d724c419.entry.js +1 -0
- package/dist/apollo-core/p-d9070ae5.entry.js +1 -0
- package/dist/apollo-core/p-dca48977.entry.js +1 -0
- package/dist/apollo-core/p-e1833287.entry.js +1 -0
- package/dist/apollo-core/p-e2890eb1.entry.js +1 -0
- package/dist/apollo-core/p-e2b73b60.entry.js +1 -0
- package/dist/apollo-core/p-e7e445b0.entry.js +1 -0
- package/dist/apollo-core/p-f1c103ff.entry.js +1 -0
- package/dist/apollo-core/p-f3a2c79b.entry.js +1 -0
- package/dist/apollo-core/p-ffc2f0cf.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} +772 -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 +211 -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 +580 -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/cjs/{xpl-avatar_54.cjs.entry.js → xpl-icon.cjs.entry.js} +1174 -10592
- 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 +525 -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 +107 -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 +276 -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-body.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-footer-cell.cjs.entry.js +18 -0
- package/dist/cjs/xpl-table-footer.cjs.entry.js +14 -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-row.cjs.entry.js +20 -0
- 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 +7 -1
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +13 -16
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- 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/xpl-button.js +17 -14
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- 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 +113 -118
- 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/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/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +16 -10
- 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 +73 -40
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- 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/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +61 -19
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.shared.js +82 -0
- 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/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 +80 -13
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- 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/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +37 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +78 -0
- package/dist/collection/components/xpl-table/xpl-table.js +52 -36
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/tabs.shared.js +75 -50
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- 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/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 +12 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/{p-BxHFEnPN.js → p-9VnxPQLs.js} +1 -1
- package/dist/components/p-B2oLZUDD.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BYYFsuD3.js +1 -0
- package/dist/components/p-BZtxVB1R.js +1 -0
- package/dist/components/p-BdpZR4KO.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-Chpgh5SL.js +1 -0
- package/dist/components/p-CiHTfk3E.js +1 -0
- package/dist/components/p-CnVGKN63.js +1 -0
- package/dist/components/p-Cz7zDaI4.js +1 -0
- package/dist/components/p-D--kzomA.js +1 -0
- package/dist/components/p-D4rv6CNJ.js +1 -0
- package/dist/components/p-DAb-txW3.js +1 -0
- package/dist/components/p-DYmvElhR.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-EfW0v54z.js +1 -0
- package/dist/components/p-JyNpXfDe.js +1 -0
- package/dist/components/p-U0JYwf4c.js +1 -0
- package/dist/components/p-YG9Jza0y.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-ByJRw26d.js → p-l3EZ-agL.js} +1 -1
- package/dist/components/p-oIn1krdu.js +1 -0
- package/dist/components/p-wIU7KUhA.js +1 -0
- package/dist/components/p-xFsB212F.js +1 -0
- package/dist/components/p-xtOHikY0.js +1 -0
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-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-body.d.ts +11 -0
- package/dist/components/xpl-table-body.js +1 -0
- package/dist/components/xpl-table-footer-cell.d.ts +11 -0
- package/dist/components/xpl-table-footer-cell.js +1 -0
- package/dist/components/xpl-table-footer.d.ts +11 -0
- package/dist/components/xpl-table-footer.js +1 -0
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.d.ts +11 -0
- package/dist/components/xpl-table-row.js +1 -0
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-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/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 +38 -2
- 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-table/xpl-table-body/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +31 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +34 -0
- 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 +16642 -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} +772 -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 +207 -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 +575 -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/esm/{xpl-avatar_54.entry.js → xpl-icon.entry.js} +1174 -10539
- 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 +520 -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 +105 -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 +274 -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-body.entry.js +12 -0
- package/dist/esm/xpl-table-footer-cell.entry.js +16 -0
- package/dist/esm/xpl-table-footer.entry.js +12 -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-row.entry.js +18 -0
- 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-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- 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/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- 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/xpl-large-card.d.ts +12 -0
- 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-modal/xpl-modal.d.ts +10 -2
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-select/select.shared.d.ts +23 -0
- 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/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-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/xpl-table-body/xpl-table-body.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +4 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +6 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +34 -2
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- 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.d.ts +1109 -51
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/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 +51795 -0
- package/hydrate/index.mjs +51785 -0
- package/hydrate/package.json +12 -0
- package/package.json +112 -59
- 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/collection/components/xpl-accordion/accordion.stories.js +0 -80
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +0 -737
- package/dist/collection/components/xpl-avatar/avatar.stories.js +0 -147
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +0 -24
- package/dist/collection/components/xpl-badge/badge.stories.js +0 -91
- package/dist/collection/components/xpl-banner/banner.stories.js +0 -69
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +0 -134
- package/dist/collection/components/xpl-button/button.stories.js +0 -142
- package/dist/collection/components/xpl-button-row/button-row.stories.js +0 -59
- package/dist/collection/components/xpl-calendar/calendar.stories.js +0 -63
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +0 -83
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +0 -138
- package/dist/collection/components/xpl-content-area/content-area.stories.js +0 -55
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +0 -48
- package/dist/collection/components/xpl-data-card/data-card.stories.js +0 -115
- package/dist/collection/components/xpl-divider/divider.stories.js +0 -36
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +0 -387
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +0 -165
- package/dist/collection/components/xpl-grid/grid.stories.js +0 -76
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +0 -52
- package/dist/collection/components/xpl-icon/icons.stories.js +0 -142
- package/dist/collection/components/xpl-input/input.stories.js +0 -696
- package/dist/collection/components/xpl-large-card/large-card.stories.js +0 -131
- package/dist/collection/components/xpl-list/list.stories.js +0 -389
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +0 -307
- package/dist/collection/components/xpl-modal/modal.stories.js +0 -91
- package/dist/collection/components/xpl-pagination/pagination.stories.js +0 -57
- package/dist/collection/components/xpl-panel/panel.stories.js +0 -53
- package/dist/collection/components/xpl-popover/popover.stories.js +0 -164
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +0 -96
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +0 -118
- package/dist/collection/components/xpl-radio/radio.stories.js +0 -106
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +0 -78
- package/dist/collection/components/xpl-select/select.stories.js +0 -297
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +0 -634
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +0 -71
- package/dist/collection/components/xpl-slideout/slideout.stories.js +0 -109
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +0 -385
- package/dist/collection/components/xpl-table/table.stories.js +0 -147
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -126
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -75
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +0 -31
- package/dist/collection/components/xpl-tabs/tabs.stories.js +0 -31
- package/dist/collection/components/xpl-tag/tag.stories.js +0 -153
- package/dist/collection/components/xpl-toast/toast.stories.js +0 -86
- package/dist/collection/components/xpl-toggle/toggle.stories.js +0 -88
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +0 -58
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +0 -745
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +0 -87
- 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-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/css/typography.stories.js +0 -144
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +0 -37
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +0 -64
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +0 -138
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +0 -21
- package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -80
- package/dist/types/components/xpl-banner/banner.stories.d.ts +0 -79
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +0 -57
- package/dist/types/components/xpl-button/button.stories.d.ts +0 -132
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +0 -45
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +0 -62
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +0 -69
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +0 -44
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +0 -13
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +0 -31
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +0 -118
- package/dist/types/components/xpl-divider/divider.stories.d.ts +0 -41
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +0 -25
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +0 -45
- package/dist/types/components/xpl-grid/grid.stories.d.ts +0 -133
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +0 -48
- package/dist/types/components/xpl-icon/icons.stories.d.ts +0 -54
- package/dist/types/components/xpl-input/input.stories.d.ts +0 -240
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +0 -75
- package/dist/types/components/xpl-list/list.stories.d.ts +0 -353
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +0 -13
- package/dist/types/components/xpl-modal/modal.stories.d.ts +0 -103
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +0 -52
- package/dist/types/components/xpl-panel/panel.stories.d.ts +0 -22
- package/dist/types/components/xpl-popover/popover.stories.d.ts +0 -12
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +0 -73
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +0 -62
- package/dist/types/components/xpl-radio/radio.stories.d.ts +0 -93
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +0 -5
- package/dist/types/components/xpl-select/select.stories.d.ts +0 -168
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +0 -101
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +0 -26
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +0 -120
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +0 -197
- package/dist/types/components/xpl-table/table.stories.d.ts +0 -88
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +0 -107
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +0 -59
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +0 -112
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +0 -97
- package/dist/types/components/xpl-tag/tag.stories.d.ts +0 -65
- package/dist/types/components/xpl-toast/toast.stories.d.ts +0 -66
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +0 -71
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +0 -43
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +0 -540
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +0 -20
- 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: '922088a7fe36e8bb2ee905ac79ac845eff101707' }), 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: '8b055baaf9acc04df19be097d0fb5bcb86c7165a', 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: '103e3fb6cb29f9527b090dd9e53412528ed7b9c2' }), 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() {
|
|
@@ -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: '936e7393a8037c6c78c7a6d5d284d9c37be2f866', class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", { key: '45fd74c979b53bbd8080ca92ea15e3135d0d49ae' }, h("header", { key: 'cb692d0e90aa70bce5e09af43e54d864849f4800', "aria-label": "Sidebar Header" }, h("slot", { key: '778c33ef024895ca44616ef9655843330e3c563b', name: "logo" }), h("slot", { key: '7728db09b46999e708c46d10d5de56c65ab9a9fa', name: "brand-name" })), h("div", { key: '0376fefe7921b061f3f2fdc972aa381ed7d124a2', class: "xpl-main-nav__main_section" }, h("slot", { key: '12a61a53d6c93695d38c70d9a953fe4e37438178', name: "navigation" })), h("footer", { key: '8cd0e32231e155324c78878dcaad955ab7b3e4fb', class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { key: 'cdaf0bec22d3d8229441e7e036c3fcbcb244c32f', name: "footer" })))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "xpl-main-nav"; }
|
|
19
19
|
static get properties() {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
let modalInstanceCount = 0;
|
|
2
3
|
export class Modal {
|
|
3
4
|
constructor() {
|
|
5
|
+
this.dialogElement = null;
|
|
6
|
+
this.titleId = `xpl-modal-title-${(modalInstanceCount += 1)}`;
|
|
4
7
|
this.isOpen = false;
|
|
5
8
|
this.size = 'medium';
|
|
6
9
|
this.variant = 'default';
|
|
@@ -9,10 +12,11 @@ export class Modal {
|
|
|
9
12
|
this.modalClosed.emit();
|
|
10
13
|
};
|
|
11
14
|
this.handleNativeBackdropClick = (event) => {
|
|
12
|
-
|
|
15
|
+
const { dialogElement } = this;
|
|
16
|
+
if (!dialogElement || event.target !== dialogElement) {
|
|
13
17
|
return;
|
|
14
18
|
}
|
|
15
|
-
const rect =
|
|
19
|
+
const rect = dialogElement.getBoundingClientRect();
|
|
16
20
|
const clickedOutsideDialog = event.clientX < rect.left ||
|
|
17
21
|
event.clientX > rect.right ||
|
|
18
22
|
event.clientY < rect.top ||
|
|
@@ -22,32 +26,70 @@ export class Modal {
|
|
|
22
26
|
}
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
|
-
|
|
26
|
-
this.
|
|
27
|
-
this.updateModalState();
|
|
28
|
-
this.dialogElement.addEventListener('cancel', this.handleDialogClose);
|
|
29
|
-
this.dialogElement.addEventListener('click', this.handleNativeBackdropClick);
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
this.bindDialog();
|
|
30
31
|
}
|
|
31
32
|
disconnectedCallback() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
this.clearCloseTimer();
|
|
34
|
+
this.unbindDialog();
|
|
35
|
+
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
this.bindDialog();
|
|
36
38
|
}
|
|
37
39
|
updateModalState() {
|
|
38
|
-
|
|
40
|
+
this.clearCloseTimer();
|
|
39
41
|
if (this.isOpen) {
|
|
40
|
-
|
|
42
|
+
this.openDialog();
|
|
41
43
|
}
|
|
42
|
-
else
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
else {
|
|
45
|
+
this.scheduleClose();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
bindDialog() {
|
|
49
|
+
const dialog = this.element.querySelector('dialog');
|
|
50
|
+
if (!dialog) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.dialogElement = dialog;
|
|
54
|
+
dialog.removeEventListener('cancel', this.handleDialogClose);
|
|
55
|
+
dialog.removeEventListener('click', this.handleNativeBackdropClick);
|
|
56
|
+
dialog.addEventListener('cancel', this.handleDialogClose);
|
|
57
|
+
dialog.addEventListener('click', this.handleNativeBackdropClick);
|
|
58
|
+
this.updateModalState();
|
|
59
|
+
}
|
|
60
|
+
unbindDialog() {
|
|
61
|
+
const dialog = this.dialogElement;
|
|
62
|
+
if (!dialog) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (dialog.open && typeof dialog.close === 'function') {
|
|
66
|
+
dialog.close();
|
|
67
|
+
}
|
|
68
|
+
dialog.removeEventListener('cancel', this.handleDialogClose);
|
|
69
|
+
dialog.removeEventListener('click', this.handleNativeBackdropClick);
|
|
70
|
+
}
|
|
71
|
+
clearCloseTimer() {
|
|
72
|
+
if (this.closeTimerId !== undefined) {
|
|
73
|
+
clearTimeout(this.closeTimerId);
|
|
74
|
+
this.closeTimerId = undefined;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
openDialog() {
|
|
78
|
+
if (this.dialogElement && !this.dialogElement.open) {
|
|
79
|
+
this.dialogElement.showModal?.();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
scheduleClose() {
|
|
83
|
+
if (!this.dialogElement || typeof this.dialogElement.close !== 'function') {
|
|
84
|
+
return;
|
|
47
85
|
}
|
|
86
|
+
this.closeTimerId = setTimeout(() => {
|
|
87
|
+
this.closeTimerId = undefined;
|
|
88
|
+
this.dialogElement?.close();
|
|
89
|
+
}, 250);
|
|
48
90
|
}
|
|
49
91
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '3194d5377b7438543a3f6e6ab41fd7c307674a28', class: "xpl-modal" }, this.isOpen && h("xpl-backdrop", { key: 'dfc30ff7879364920669a1d1ebfdaea39951b966' }), h("dialog", { key: 'bfb33a8d97d17981f582768b0e34b0d167cf60cb', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}`, "aria-labelledby": this.titleId }, h("div", { key: '0b71adc30bde109aa831a28200c918a458a7da52', class: "xpl-modal__header" }, h("div", { key: '657c5aad60fa85e4285e299dcbe24209742277e6', class: "xpl-modal__title" }, h("xpl-button", { key: '2301014d0f4bd129dbbfc7b1eb242db98622f866', type: "button", class: "xpl-modal__close-button", "icon-only": true, variant: "tertiary", "aria-label": "Close modal", onClick: this.handleDialogClose }, h("xpl-icon", { key: 'a978ff514926ca4b319c4920b2057baa50a1fb24', icon: "xmark" })), this.variant === 'warning' && (h("xpl-icon", { key: '2a1cf704d1aa75170d53ef3887a4d1e7874762fa', size: 20, icon: "triangle-warning", class: "xpl-modal__alert-icon" })), h("span", { key: 'd2bcd4c5b4596e80875eb9000ee75d592e41ce74', class: "xpl-modal__title-text", id: this.titleId }, h("slot", { key: 'cf009856b6e86bab36bc16a249ad9b3ebc09fd1c', name: "title" }))), h("div", { key: '29258401d4ec72c81a5a7e28e2365efd2227445e', class: "xpl-modal__subtitle" }, h("slot", { key: '9f749c62f55edabcec4dc5d8677ad9b45e64be50', name: "subtitle" }))), h("div", { key: 'f12dd8ee02ef7f9aeeedd0d7c7b5ffe52c24a336', class: "xpl-modal__body" }, h("slot", { key: '0a9e2d67a7842075560e1cf846e4b3d18bfe1bee', name: "body" })), h("div", { key: '720e9bf0cb5746b31b7dee9cb1ad4226eb13bf11', class: "xpl-modal__footer" }, h("slot", { key: '819ba75ee04742fb872c0345b4cc1732891856ee', name: "primary" }), h("slot", { key: 'b74d4339586fd2d863791d6cb6cd3d593a9c9785', name: "secondary" }), h("slot", { key: 'a4d437d7e9142bf91307edae5ed5dbd89e8921f0', name: "tertiary" })))));
|
|
51
93
|
}
|
|
52
94
|
static get is() { return "xpl-modal"; }
|
|
53
95
|
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: '6632b50719b413f69b1943035e60c086951709d7', 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: '1c7f754d3fa4b67883562f4877414cefc7947920', name: "link" }, h("slot", { key: 'c4268f625e8a4ef9323293d064abee42afee5d1f', name: "icon" }), h("slot", { key: '5f843056b4c5852e3fa89c9a5ef36442b76238a0' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "xpl-nav-item"; }
|
|
19
19
|
static get properties() {
|
|
@@ -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: '23b4aec5d70fcfa1ec02089716f7649d15fcb0ca', 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: '2383d3488dc1435f1384f98cf07459cfb6ccb1bc', class: "xpl-pagination__rows-per-page" }, h("label", { key: 'be3f5e3815a11f5cb02710d253e02e10fdf6236d', class: "xpl-pagination__rows-label" }, "Rows per page:"), h("xpl-select", { key: 'dd06add7fde18b8616b18fc945e78457ddedb8b7', 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: '9a41a8e940f04ba2da9a7e9331d5ff496043771f', class: "xpl-pagination__pager" }, h("button", { key: 'cfe0a954aaa79e5b8af00a86d384bf9d1d2831b8', 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: 'd3cf107b6f1a2cc02c50e0bd23b19b857ebd812d', icon: "arrow-left", size: 20 })), h("xpl-select", { key: '90d4c563a755c83a759b8e4028aac09b8a0be715', 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: '3f9071ff9ba2094c5014628366519db328efc466', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), h("button", { key: '474df34b27cd0cd6ffcb58c4408691f5bf765c99', 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: '0466f500b1cc7f2fa8e22da485e889775a53b2e8', icon: "arrow-right", size: 20 })))));
|
|
94
92
|
}
|
|
95
93
|
static get is() { return "xpl-pagination"; }
|
|
96
94
|
static get properties() {
|
|
@@ -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: '7e2a96b285cc06379f8f7f98ae44affcfac0c8dc', 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: '3a6740a44c18c9973c86a314d26bd565971c19f2', "aria-hidden": "true", class: "xpl-panel__accent" }), h("div", { key: 'd4951bd49e7600a58fa0ecb31fddf4df1dfe7956', class: "xpl-panel__content" }, h("slot", { key: '2374d130b274a64e875b0c4b1ce03b34d96554b4' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "xpl-panel"; }
|
|
16
16
|
static get properties() {
|
|
@@ -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: 'b747fcdda5987a1d0506486d325cdf9a57cab6a8' }, h("div", { key: '547d595121db1b713c204eb5ac173828fff4b35b', 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: 'd12773148d327475c8ff51fbb5a717c95231cabf', 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: '6322dc3b9e7292eeb41aaf5c662aa99273868c7d', name: "trigger" })), this.display === 'arrow' && (h("div", { key: '2a3fe87cc9a82c8e914f6917a999bdd4433b9042', class: "xpl-popover__arrow" }, h("svg", { key: 'a191461ac07cf6693d5461aa4d343214e62ed6ef', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '61003e404b4e031057e0d2ef39a31bc9b7fba6df', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), h("path", { key: '15de3ff2ec9657fd3e47410de79d2362076c797b', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), h("div", { key: 'ec4ae8672673fa63b918ab6222a6fbf7099758ff', 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: '50c82f8c1833c91f6e2aabdfe3773725c9d9296d' })))));
|
|
219
247
|
}
|
|
220
248
|
static get is() { return "xpl-popover"; }
|
|
221
249
|
static get properties() {
|
|
@@ -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: '7c374a5f2f89aed6b0c3a0daa4cc843efea8d262', 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: 'f1be4a82fbb87ffac27bb2b8d0f479ad36aae340', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (h("div", { key: 'd415f09b3d0d237bc348b33470162d2b44048856', class: "xpl-progress-bar__header" }, this.label && h("div", { key: '48bc06b81c4445d811e6cd5f3ac086192cbcb392', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (h("div", { key: 'd31ccfc3ed1f956fdc89e01ca262b606219bb78e', class: "xpl-progress-bar__icon" }, this.isError ? (h("xpl-icon", { icon: "circle-xmark-1" })) : (h("xpl-icon", { icon: "circle-check-1" })))))), h("div", { key: '5c97c6193a2ebb0626052953f1a11c9afc258da8', 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: '8e78ed094ab41425272b1818cc004a9094c3632d', class: "xpl-progress-bar__helper" }, this.helperText)))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "xpl-progress-bar"; }
|
|
36
36
|
static get properties() {
|
|
@@ -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: '2fa8128b81b665f0733e3c905cb99eaa1917e719', class: hostClasses, role: "group", "aria-label": ariaLabel }, h("div", { key: '279079d456f72748c77ac9f06281c838307ba092', 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() {
|
|
@@ -20,16 +20,16 @@ export class Radio {
|
|
|
20
20
|
return Boolean(this.checked);
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'e3626967beb86dee46de974dd2a3c8993314d2d0', class: {
|
|
24
24
|
'xpl-checkbox-radio-container': true,
|
|
25
|
-
styled: this.styled,
|
|
26
|
-
disabled: this.disabled,
|
|
27
|
-
} }, h("input", { key: '
|
|
25
|
+
styled: !!this.styled,
|
|
26
|
+
disabled: !!this.disabled,
|
|
27
|
+
} }, h("input", { key: 'cdc8d7968dd78031f33b4f72024698f7afec27cf', class: "xpl-radio", type: "radio", checked: this.isChecked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, onChange: this.onChange, value: this.value }), h("label", { key: '5bb2243b7fe42b219d3fa3696c92321b116f8c72', class: {
|
|
28
28
|
'xpl-label': true,
|
|
29
|
-
'xpl-label--disabled': this.disabled,
|
|
30
|
-
}, htmlFor: this.id }, h("slot", { key: '
|
|
29
|
+
'xpl-label--disabled': !!this.disabled,
|
|
30
|
+
}, htmlFor: this.id }, h("slot", { key: '85f1bf2c73111b8f5c0b0ae26343f590c8a50faf' }), this.description && (h("small", { key: '6452b050fe0df584373a45d105434fe31a8a82ba', class: {
|
|
31
31
|
'xpl-description': true,
|
|
32
|
-
'xpl-description--disabled': this.disabled,
|
|
32
|
+
'xpl-description--disabled': !!this.disabled,
|
|
33
33
|
} }, this.description)))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "xpl-radio"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SecondaryNav {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '6fd3db4309ecb98fb1739fd69d964297a77a46eb', class: "xpl-secondary-nav" }, h("nav", { key: 'c08a1df306cee05760b6761409ebfb4ba87c2e4f', "aria-label": "Secondary Nav" }, h("slot", { key: '9d5d0657bdd581bce000f1ace49be8c1d018fe47' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "xpl-secondary-nav"; }
|
|
7
7
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { v4 as uuid } from "uuid";
|
|
2
|
+
export const GROUPED_SELECT_CHOICES = (subtitle) => [
|
|
3
|
+
{
|
|
4
|
+
groupName: 'Group 1',
|
|
5
|
+
options: [
|
|
6
|
+
{ label: 'Choice 1', subtitle },
|
|
7
|
+
{ label: 'Choice 2', subtitle },
|
|
8
|
+
{ label: 'Choice 3', subtitle },
|
|
9
|
+
],
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
groupName: 'Group 2',
|
|
13
|
+
options: [{ label: 'Choice 4' }, { label: 'Choice 5' }, { label: 'Choice 6' }],
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
export const FLAT_SELECT_CHOICES = [
|
|
17
|
+
{ label: 'Choice 1', value: 'choice-1' },
|
|
18
|
+
{ label: 'Choice 2', value: 'choice-2' },
|
|
19
|
+
{ label: 'Choice 3', value: 'choice-3' },
|
|
20
|
+
{ label: 'Choice 4', value: 'choice-4' },
|
|
21
|
+
{ label: 'Choice 5', value: 'choice-5' },
|
|
22
|
+
{ label: 'Choice 6', value: 'choice-6' },
|
|
23
|
+
];
|
|
24
|
+
export function stripEmptySelectSentinels(args) {
|
|
25
|
+
return Object.fromEntries(Object.entries(args).filter(([key, value]) => !((key === 'error' || key === 'selectIcon') && value === '')));
|
|
26
|
+
}
|
|
27
|
+
export function buildSelectAttrs(args) {
|
|
28
|
+
let attrs = '';
|
|
29
|
+
if (args.label)
|
|
30
|
+
attrs += ` label="${args.label}"`;
|
|
31
|
+
if (args.description)
|
|
32
|
+
attrs += ` description="${args.description}"`;
|
|
33
|
+
if (args.mode !== 'single')
|
|
34
|
+
attrs += ` mode="${args.mode}"`;
|
|
35
|
+
if (args.disabled)
|
|
36
|
+
attrs += ` disabled`;
|
|
37
|
+
if (args.error)
|
|
38
|
+
attrs += ` error="${args.error}"`;
|
|
39
|
+
if (args.mode === 'multi' && !args.truncate)
|
|
40
|
+
attrs += ` truncate="false"`;
|
|
41
|
+
if (args.customDisplayValue)
|
|
42
|
+
attrs += ` custom-display-value`;
|
|
43
|
+
if (args.selectIcon)
|
|
44
|
+
attrs += ` select-icon="${args.selectIcon}"`;
|
|
45
|
+
if (args.placeholder)
|
|
46
|
+
attrs += ` placeholder="${args.placeholder}"`;
|
|
47
|
+
return attrs;
|
|
48
|
+
}
|
|
49
|
+
export function buildSelectPropertyScript(id, choices, selectedValues, preventDefault) {
|
|
50
|
+
const statements = [`component.choices = ${JSON.stringify(choices, null, 2)};`];
|
|
51
|
+
if (selectedValues !== undefined &&
|
|
52
|
+
selectedValues !== '' &&
|
|
53
|
+
!(Array.isArray(selectedValues) && selectedValues.length === 0)) {
|
|
54
|
+
statements.push(`component.selectedValues = ${JSON.stringify(selectedValues)};`);
|
|
55
|
+
}
|
|
56
|
+
if (preventDefault) {
|
|
57
|
+
statements.push(`component.addEventListener('triggerDropdown', function(event) {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
});`);
|
|
60
|
+
}
|
|
61
|
+
return `(function() {
|
|
62
|
+
const component = document.getElementById("${id}");
|
|
63
|
+
${statements.join('\n ')}
|
|
64
|
+
})();`;
|
|
65
|
+
}
|
|
66
|
+
export function renderSelectStory(args) {
|
|
67
|
+
const id = uuid();
|
|
68
|
+
const attrs = `${buildSelectAttrs(args)} id="${id}"`;
|
|
69
|
+
const slotContent = args.customDisplayValue
|
|
70
|
+
? `<div slot="custom-display-value">${args.customDisplayValueContent || ''}</div>`
|
|
71
|
+
: '';
|
|
72
|
+
return `
|
|
73
|
+
<div style="width:75vw">
|
|
74
|
+
<div style="position: relative; min-width: 200px; width: 100%">
|
|
75
|
+
<xpl-select${attrs}>${slotContent}</xpl-select>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<script>
|
|
79
|
+
${buildSelectPropertyScript(id, args.choices, args.selectedValues, args.preventDefaultTriggerDropdown)}
|
|
80
|
+
</script>
|
|
81
|
+
`;
|
|
82
|
+
}
|