@xplortech/apollo-core 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.typings/apollo-components.html-data.json +99 -10
- package/AGENTS.md +27 -3
- package/README.md +12 -0
- package/build/components/accordion.css +1 -0
- package/build/components/application-shell.css +1 -0
- package/build/components/avatar.css +1 -0
- package/build/components/backdrop.css +1 -0
- package/build/components/badge.css +1 -0
- package/build/components/banner.css +1 -0
- package/build/components/breadcrumbs.css +1 -0
- package/build/components/button-row.css +1 -0
- package/build/components/button.css +1 -0
- package/build/components/calendar.css +1 -0
- package/build/components/checkbox-radio.css +1 -0
- package/build/components/choicelist.css +1 -0
- package/build/components/content-area.css +1 -0
- package/build/components/dashboard.css +1 -0
- package/build/components/data-card.css +1 -0
- package/build/components/divider.css +1 -0
- package/build/components/dropdown.css +1 -0
- package/build/components/dynamic-table-cell.css +1 -0
- package/build/components/dynamic-table-row.css +1 -0
- package/build/components/dynamic-table.css +1 -0
- package/build/components/grid.css +1 -0
- package/build/components/header-accordion.css +1 -0
- package/build/components/icon.css +1 -0
- package/build/components/input-color.css +1 -0
- package/build/components/input-date.css +1 -0
- package/build/components/input-file.css +1 -0
- package/build/components/input-phone.css +1 -0
- package/build/components/input-search.css +1 -0
- package/build/components/input-time.css +1 -0
- package/build/components/input.css +1 -0
- package/build/components/label.css +1 -0
- package/build/components/large-card.css +1 -0
- package/build/components/list-action.css +1 -0
- package/build/components/list-item.css +1 -0
- package/build/components/list.css +1 -0
- package/build/components/main-nav.css +1 -0
- package/build/components/modal.css +1 -0
- package/build/components/nav-item.css +1 -0
- package/build/components/pagination.css +1 -0
- package/build/components/panel.css +1 -0
- package/build/components/popover.css +1 -0
- package/build/components/progress-bar.css +1 -0
- package/build/components/progress-indicator.css +1 -0
- package/build/components/secondary-nav.css +1 -0
- package/build/components/select.css +1 -0
- package/build/components/side-nav.css +1 -0
- package/build/components/skeleton.css +1 -0
- package/build/components/slideout.css +1 -0
- package/build/components/spotlight.css +1 -0
- package/build/components/table-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table.css +1 -0
- package/build/components/tabs.css +1 -0
- package/build/components/tag.css +1 -0
- package/build/components/toast.css +1 -0
- package/build/components/toggle.css +1 -0
- package/build/components/toolbar.css +1 -0
- package/build/components/tooltip.css +1 -0
- package/build/components/top-nav.css +1 -0
- package/build/components/utility-bar.css +1 -0
- package/build/components-manifest.json +220 -0
- package/build/core.css +2 -0
- package/build/reset.css +394 -0
- package/build/style.css +2 -13345
- package/build/tailwind-theme.css +2 -0
- package/build/typography.css +1 -0
- package/build/variables/apollo.css +779 -0
- package/build/variables/field-edge.css +554 -0
- package/build/vendor/flatpickr.css +1 -0
- package/dist/apollo-core/apollo-core.css +2 -55
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0095174c.entry.js +1 -0
- package/dist/apollo-core/p-020ecd66.entry.js +1 -0
- package/dist/apollo-core/p-0463c29f.entry.js +1 -0
- package/dist/apollo-core/p-091411e3.entry.js +1 -0
- package/dist/apollo-core/p-0be4dbb8.entry.js +1 -0
- package/dist/apollo-core/p-1139fac0.entry.js +1 -0
- package/dist/apollo-core/p-121d1a4b.entry.js +1 -0
- package/dist/apollo-core/p-140a96c7.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a417191.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-26861d09.entry.js +1 -0
- package/dist/apollo-core/p-26b6a0ed.entry.js +1 -0
- package/dist/apollo-core/p-39e71d86.entry.js +1 -0
- package/dist/apollo-core/p-3d9c90ee.entry.js +1 -0
- package/dist/apollo-core/p-3dd1de49.entry.js +1 -0
- package/dist/apollo-core/p-4129d971.entry.js +1 -0
- package/dist/apollo-core/p-46d21684.entry.js +1 -0
- package/dist/apollo-core/p-4e61587f.entry.js +1 -0
- package/dist/apollo-core/p-5afc9831.entry.js +1 -0
- package/dist/apollo-core/p-5ca18bc1.entry.js +1 -0
- package/dist/apollo-core/p-5d25a84a.entry.js +1 -0
- package/dist/apollo-core/p-5e5c5016.entry.js +1 -0
- package/dist/apollo-core/p-601b3ab5.entry.js +1 -0
- package/dist/apollo-core/p-616c5a32.entry.js +1 -0
- package/dist/apollo-core/p-638fd9b1.entry.js +1 -0
- package/dist/apollo-core/p-643c8038.entry.js +1 -0
- package/dist/apollo-core/p-707b1918.entry.js +1 -0
- package/dist/apollo-core/p-724c5038.entry.js +1 -0
- package/dist/apollo-core/p-76f64d65.entry.js +1 -0
- package/dist/apollo-core/p-7976cd3b.entry.js +1 -0
- package/dist/apollo-core/p-7f105d63.entry.js +1 -0
- package/dist/apollo-core/p-80a11cad.entry.js +1 -0
- package/dist/apollo-core/p-853418be.entry.js +1 -0
- package/dist/apollo-core/p-875e0eaa.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a81ef98.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-8ddbf2e2.entry.js +1 -0
- package/dist/apollo-core/p-9747cf43.entry.js +1 -0
- package/dist/apollo-core/p-9b0174b1.entry.js +1 -0
- package/dist/apollo-core/p-9bf2ff9f.entry.js +1 -0
- package/dist/apollo-core/p-BFTU3MAI.js +1 -0
- package/dist/apollo-core/p-BQtbf88X.js +1 -0
- package/dist/apollo-core/p-CWdQxaaX.js +1 -0
- package/dist/apollo-core/p-C_PEOQWj.js +1 -0
- package/dist/apollo-core/p-CzwViN3U.js +1 -0
- package/dist/apollo-core/p-DkqlawVY.js +1 -0
- package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
- package/dist/apollo-core/p-_r9-FML8.js +1 -0
- package/dist/apollo-core/p-a0d3b7f8.entry.js +1 -0
- package/dist/apollo-core/p-a33b0943.entry.js +1 -0
- package/dist/apollo-core/p-b537f72d.entry.js +1 -0
- package/dist/apollo-core/p-ba41bbd5.entry.js +1 -0
- package/dist/apollo-core/p-bb22ed2a.entry.js +1 -0
- package/dist/apollo-core/p-c25aebe5.entry.js +1 -0
- package/dist/apollo-core/p-c427a31d.entry.js +1 -0
- package/dist/apollo-core/p-cde21f72.entry.js +1 -0
- package/dist/apollo-core/p-d288c1d1.entry.js +1 -0
- package/dist/apollo-core/p-d37488d4.entry.js +1 -0
- package/dist/apollo-core/p-d3f2b8b8.entry.js +1 -0
- package/dist/apollo-core/p-dfaba114.entry.js +1 -0
- package/dist/apollo-core/p-e00ed4f4.entry.js +1 -0
- package/dist/apollo-core/p-e2a16242.entry.js +1 -0
- package/dist/apollo-core/p-e4ae3f60.entry.js +1 -0
- package/dist/apollo-core/p-ec488f9c.entry.js +1 -0
- package/dist/apollo-core/p-efa21ec0.entry.js +1 -0
- package/dist/apollo-core/p-f199ad66.entry.js +1 -0
- package/dist/apollo-core/p-f2bfe6a6.entry.js +1 -0
- package/dist/apollo-core/p-fd2756d8.entry.js +1 -0
- package/dist/apollo-core/p-fef6c256.entry.js +1 -0
- package/dist/apollo-core/p-ff8acf15.entry.js +1 -0
- package/dist/apollo-core/p-ukZKsqqq.js +2 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
- package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +756 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/{lifecycle-Bf3QwiVa.js → lifecycle-DeSsFfQZ.js} +4 -0
- package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
- package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
- package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
- package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +210 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
- package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +81 -0
- package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
- package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
- package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
- package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +577 -0
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
- package/dist/{esm/xpl-avatar_54.entry.js → cjs/xpl-icon.cjs.entry.js} +1205 -10568
- package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
- package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
- package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
- package/dist/cjs/xpl-input_4.cjs.entry.js +524 -0
- package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
- package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
- package/dist/cjs/xpl-list.cjs.entry.js +396 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +78 -0
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
- package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
- package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
- package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
- package/dist/cjs/xpl-side-nav.cjs.entry.js +272 -0
- package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
- package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +5 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table.cjs.entry.js +185 -0
- package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
- package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +16 -22
- package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +6 -2
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +19 -1
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/avatar.stories.js +19 -9
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +12 -16
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +17 -3
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/badge.stories.js +21 -8
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/banner.stories.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +5 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/button.stories.js +2 -0
- package/dist/collection/components/xpl-button/xpl-button.js +17 -14
- package/dist/collection/components/xpl-button-row/button-row.stories.js +9 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/calendar.stories.js +11 -3
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +11 -2
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +24 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- package/dist/collection/components/xpl-content-area/content-area.stories.js +13 -24
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +9 -0
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/data-card.stories.js +55 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
- package/dist/collection/components/xpl-divider/divider.stories.js +11 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +13 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +9 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +108 -116
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +5 -1
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
- package/dist/collection/components/xpl-grid/grid.stories.js +9 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +6 -2
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/icons.stories.js +21 -2
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/input.stories.js +120 -104
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +12 -6
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
- package/dist/collection/components/xpl-input/xpl-input.js +69 -37
- package/dist/collection/components/xpl-large-card/large-card.stories.js +27 -3
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- package/dist/collection/components/xpl-list/list.stories.js +11 -2
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
- package/dist/collection/components/xpl-list/xpl-list.js +21 -26
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +5 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/modal.stories.js +15 -6
- package/dist/collection/components/xpl-modal/xpl-modal.js +21 -8
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/pagination.stories.js +10 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/panel.stories.js +9 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/popover.stories.js +15 -5
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +10 -1
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +9 -1
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/radio.stories.js +9 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +10 -5
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.stories.js +11 -8
- package/dist/collection/components/xpl-select/xpl-select.js +91 -49
- package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +454 -18
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +75 -12
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +10 -1
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/slideout.stories.js +13 -0
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +22 -15
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
- package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
- package/dist/collection/components/xpl-table/table.stories.js +11 -2
- package/dist/collection/components/xpl-table/xpl-table.js +52 -36
- package/dist/collection/components/xpl-table-header/table-header.stories.js +9 -1
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +10 -2
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +10 -1
- package/dist/collection/components/xpl-tabs/tabs.shared.js +77 -19
- package/dist/collection/components/xpl-tabs/tabs.stories.js +14 -2
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/tag.stories.js +15 -9
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/toast.stories.js +43 -17
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/toggle.stories.js +8 -1
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- package/dist/collection/components/xpl-toolbar/toolbar.stories.js +39 -0
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +9 -0
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +35 -16
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +11 -5
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +50 -32
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +13 -18
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +96 -34
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +16 -9
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/collection/utils/floating.js +69 -0
- package/dist/collection/utils/layout-ancestors.js +7 -0
- package/dist/collection/utils/lifecycle.js +13 -10
- package/dist/collection/utils/light-dom-slots.js +15 -0
- package/dist/collection/utils/slot-presence.js +6 -0
- package/dist/collection/utils/ssr-known-mismatches.js +50 -0
- package/dist/collection/utils/tab-a11y-ids.js +1 -2
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/p-2jYZ7ACH.js +1 -0
- package/dist/components/p-BGqQbjLl.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BnTsRbko.js +1 -0
- package/dist/components/p-Bseq_BgD.js +1 -0
- package/dist/components/p-CCgZCY_A.js +1 -0
- package/dist/components/p-CJzsLWeV.js +1 -0
- package/dist/components/p-CRKY79vL.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-CjbPCnPP.js +1 -0
- package/dist/components/p-Cjxw-qOg.js +1 -0
- package/dist/components/p-D6JUVA1x.js +1 -0
- package/dist/components/p-DFGw0APN.js +1 -0
- package/dist/components/p-DLLQBDCb.js +1 -0
- package/dist/components/p-DS2Kv5fl.js +1 -0
- package/dist/components/p-DWUJ_jsx.js +1 -0
- package/dist/components/p-Di1NDy0w.js +1 -0
- package/dist/components/p-DkM7jyQB.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-DsRsm61K.js +1 -0
- package/dist/components/p-DywQ3S73.js +1 -0
- package/dist/components/p-Dzp5p-eh.js +1 -0
- package/dist/components/p-Mehog36m.js +1 -0
- package/dist/components/p-RYnBuuDE.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-ByJRw26d.js → p-imCMp2Nl.js} +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-header-item.js +1 -0
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.d.ts +11 -0
- package/dist/components/xpl-side-nav-section.js +1 -0
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/css/typography.stories.js +9 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-backdrop/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +2 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
- package/dist/docs/xpl-button/readme.md +4 -2
- package/dist/docs/xpl-checkbox/readme.md +12 -0
- package/dist/docs/xpl-choicelist/readme.md +21 -0
- package/dist/docs/xpl-content-area/readme.md +8 -0
- package/dist/docs/xpl-data-card/readme.md +26 -0
- package/dist/docs/xpl-dropdown/readme.md +32 -6
- package/dist/docs/xpl-dynamic-table/readme.md +35 -0
- package/dist/docs/xpl-header-accordion/readme.md +18 -0
- package/dist/docs/xpl-icon/readme.md +21 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
- package/dist/docs/xpl-large-card/readme.md +18 -0
- package/dist/docs/xpl-list/readme.md +2 -2
- package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
- package/dist/docs/xpl-main-nav/readme.md +16 -0
- package/dist/docs/xpl-modal/readme.md +20 -0
- package/dist/docs/xpl-nav-item/readme.md +14 -0
- package/dist/docs/xpl-pagination/readme.md +29 -0
- package/dist/docs/xpl-radio/readme.md +12 -0
- package/dist/docs/xpl-secondary-nav/readme.md +25 -0
- package/dist/docs/xpl-select/readme.md +13 -0
- package/dist/docs/xpl-side-nav/readme.md +12 -7
- package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
- package/dist/docs/xpl-slideout/readme.md +23 -0
- package/dist/docs/xpl-tab/readme.md +14 -8
- package/dist/docs/xpl-table/readme.md +4 -4
- package/dist/docs/xpl-toast/readme.md +90 -7
- package/dist/docs/xpl-toggle/readme.md +46 -0
- package/dist/docs/xpl-toolbar/readme.md +19 -0
- package/dist/docs/xpl-top-nav/readme.md +2 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +5 -5
- package/dist/docs/xpl-utility-bar/readme.md +12 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +16441 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
- package/dist/esm/index-BhYfWG18.js +454 -0
- package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +756 -9
- package/dist/esm/{lifecycle-BUgtURvw.js → lifecycle-Dqb1pIRo.js} +4 -1
- package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
- package/dist/esm/slot-presence-_r9-FML8.js +8 -0
- package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
- package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
- package/dist/esm/xpl-accordion.entry.js +5 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +206 -0
- package/dist/esm/xpl-backdrop.entry.js +17 -0
- package/dist/esm/xpl-badge.entry.js +35 -0
- package/dist/esm/xpl-banner.entry.js +72 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +79 -0
- package/dist/esm/xpl-calendar.entry.js +10 -6
- package/dist/esm/xpl-checkbox.entry.js +30 -0
- package/dist/esm/xpl-choicelist.entry.js +66 -0
- package/dist/esm/xpl-content-area.entry.js +13 -0
- package/dist/esm/xpl-dashboard.entry.js +12 -0
- package/dist/esm/xpl-data-card.entry.js +109 -0
- package/dist/esm/xpl-dropdown_4.entry.js +572 -0
- package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +11 -18
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +6 -6
- package/dist/esm/xpl-header-accordion.entry.js +67 -0
- package/dist/{cjs/xpl-avatar_54.cjs.entry.js → esm/xpl-icon.entry.js} +1202 -10622
- package/dist/esm/xpl-input-color.entry.js +433 -0
- package/dist/esm/xpl-input-phone.entry.js +507 -0
- package/dist/esm/xpl-input-time.entry.js +194 -0
- package/dist/esm/xpl-input_4.entry.js +519 -0
- package/dist/esm/xpl-large-card.entry.js +63 -4
- package/dist/esm/xpl-list-item.entry.js +458 -0
- package/dist/esm/xpl-list.entry.js +394 -0
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +76 -0
- package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
- package/dist/esm/xpl-nav-item.entry.js +23 -0
- package/dist/esm/xpl-pagination.entry.js +110 -0
- package/dist/esm/xpl-panel.entry.js +19 -0
- package/dist/esm/xpl-popover.entry.js +263 -0
- package/dist/esm/xpl-progress-bar.entry.js +39 -0
- package/dist/esm/xpl-progress-indicator.entry.js +72 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select_2.entry.js +490 -0
- package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
- package/dist/esm/xpl-side-nav-item.entry.js +128 -0
- package/dist/esm/xpl-side-nav-section.entry.js +103 -0
- package/dist/esm/xpl-side-nav.entry.js +270 -0
- package/dist/esm/xpl-skeleton.entry.js +24 -0
- package/dist/esm/xpl-slideout.entry.js +45 -0
- package/dist/esm/xpl-spotlight.entry.js +720 -0
- package/dist/esm/xpl-tab-panel.entry.js +22 -0
- package/dist/esm/xpl-tab.entry.js +85 -0
- package/dist/esm/xpl-table-header-cell.entry.js +5 -3
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table.entry.js +183 -0
- package/dist/esm/xpl-tabs.entry.js +371 -0
- package/dist/esm/xpl-toast.entry.js +89 -0
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +16 -0
- package/dist/esm/xpl-top-nav-item.entry.js +433 -0
- package/dist/esm/xpl-top-nav-menu.entry.js +15 -21
- package/dist/esm/xpl-top-nav.entry.js +340 -0
- package/dist/esm/xpl-utility-bar.entry.js +21 -0
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +11 -2
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +5 -23
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +17 -116
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +2 -0
- package/dist/types/components/xpl-badge/badge.stories.d.ts +7 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +10 -27
- package/dist/types/components/xpl-button/button.stories.d.ts +4 -0
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +10 -21
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +11 -28
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +13 -31
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +9 -23
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +7 -1
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +8 -17
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +32 -37
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- package/dist/types/components/xpl-divider/divider.stories.d.ts +10 -23
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +160 -8
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +7 -22
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-grid/grid.stories.d.ts +23 -47
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +8 -24
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- package/dist/types/components/xpl-icon/icons.stories.d.ts +16 -39
- package/dist/types/components/xpl-input/input.stories.d.ts +255 -54
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +2 -2
- package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input.d.ts +11 -6
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +12 -30
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
- package/dist/types/components/xpl-list/list.stories.d.ts +33 -1
- package/dist/types/components/xpl-list/listitem.d.ts +5 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +7 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +16 -16
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +3 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +9 -30
- package/dist/types/components/xpl-panel/panel.stories.d.ts +9 -1
- package/dist/types/components/xpl-popover/popover.stories.d.ts +12 -3
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +13 -24
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +2 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +3 -0
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +4 -1
- package/dist/types/components/xpl-select/select.stories.d.ts +35 -45
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +73 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +11 -1
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +20 -16
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +7 -1
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +16 -37
- package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +21 -48
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +11 -34
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +22 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +35 -1
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +29 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +3 -0
- package/dist/types/components/xpl-toast/toast.stories.d.ts +17 -13
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +13 -31
- package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +35 -0
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +10 -24
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +9 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +3 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +7 -2
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +9 -2
- package/dist/types/components.d.ts +1006 -46
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +11 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +1 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +76 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/story-vrt.d.ts +1 -0
- package/dist/types/third-party.d.ts +20 -0
- package/dist/types/utils/floating.d.ts +26 -0
- package/dist/types/utils/lifecycle.d.ts +1 -1
- package/dist/types/utils/light-dom-slots.d.ts +6 -0
- package/dist/types/utils/slot-presence.d.ts +1 -0
- package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
- package/dist/utils/form-bindings.js +64 -0
- package/dist/utils/story-vrt.js +48 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +51669 -0
- package/hydrate/index.mjs +51659 -0
- package/hydrate/package.json +12 -0
- package/package.json +99 -42
- package/dist/apollo-core/p-048fdde0.entry.js +0 -1
- package/dist/apollo-core/p-0abc496e.entry.js +0 -1
- package/dist/apollo-core/p-1442c052.entry.js +0 -1
- package/dist/apollo-core/p-1e498763.entry.js +0 -1
- package/dist/apollo-core/p-26c3a508.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-4ce52107.entry.js +0 -1
- package/dist/apollo-core/p-6710fb29.entry.js +0 -1
- package/dist/apollo-core/p-7e622809.entry.js +0 -1
- package/dist/apollo-core/p-87068144.entry.js +0 -1
- package/dist/apollo-core/p-BUgtURvw.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-a3b4820a.entry.js +0 -1
- package/dist/apollo-core/p-b2d6dd0e.entry.js +0 -1
- package/dist/apollo-core/p-bd2249ef.entry.js +0 -1
- package/dist/apollo-core/p-c96b7957.entry.js +0 -1
- package/dist/apollo-core/p-d6be63cd.entry.js +0 -1
- package/dist/apollo-core/p-ddf76cee.entry.js +0 -1
- package/dist/apollo-core/p-f0554edd.entry.js +0 -1
- package/dist/components/p-2xGSxBGa.js +0 -1
- package/dist/components/p-B8RYNiz-.js +0 -1
- package/dist/components/p-BDWXBWGE.js +0 -1
- package/dist/components/p-BJqNuBZr.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BUgtURvw.js +0 -1
- package/dist/components/p-B_sq_SAX.js +0 -1
- package/dist/components/p-Bsy-VVS5.js +0 -1
- package/dist/components/p-BxHFEnPN.js +0 -1
- package/dist/components/p-C5_Yo0ZP.js +0 -1
- package/dist/components/p-C8rmEAx6.js +0 -1
- package/dist/components/p-CF_YTx16.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CUYkG-PB.js +0 -1
- package/dist/components/p-CaW0fL0P.js +0 -1
- package/dist/components/p-CuisR8WP.js +0 -1
- package/dist/components/p-D2SFagIb.js +0 -1
- package/dist/components/p-DKUNbsb0.js +0 -1
- package/dist/components/p-DcXL24UI.js +0 -1
- package/dist/components/p-Dp3H99Yc.js +0 -1
- package/dist/components/p-M900WO1C.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-ZTFt9sBy.js +0 -1
- package/dist/components/p-gfb3l9Pr.js +0 -1
- package/dist/components/p-h1Gbk5lO.js +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function hostHasNamedSlot(host, slotName) {
|
|
4
|
+
if (Array.from(host.children).some((child) => child.getAttribute('slot') === slotName)) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
return host.querySelector(`[slot="${slotName}"]`) != null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
exports.hostHasNamedSlot = hostHasNamedSlot;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function sanitizeForHtmlId(value) {
|
|
4
|
+
const trimmed = value.trim();
|
|
5
|
+
if (!trimmed) {
|
|
6
|
+
return 'unnamed';
|
|
7
|
+
}
|
|
8
|
+
let s = trimmed.replace(/[^a-zA-Z0-9_-]/g, '-').replace(/-+/g, '-');
|
|
9
|
+
if (/^[0-9-]/.test(s)) {
|
|
10
|
+
s = `t-${s}`;
|
|
11
|
+
}
|
|
12
|
+
return s;
|
|
13
|
+
}
|
|
14
|
+
function getTabGroupInstanceId(hostEl) {
|
|
15
|
+
const root = hostEl.closest('xpl-tabs');
|
|
16
|
+
return root?.getAttribute('data-tabs-instance-id') ?? 'xpl-tg-orphan';
|
|
17
|
+
}
|
|
18
|
+
function tabTriggerId(groupInstanceId, target) {
|
|
19
|
+
return `${groupInstanceId}-tab-${sanitizeForHtmlId(target)}`;
|
|
20
|
+
}
|
|
21
|
+
function tabPanelDomId(groupInstanceId, target) {
|
|
22
|
+
return `${groupInstanceId}-panel-${sanitizeForHtmlId(target)}`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.getTabGroupInstanceId = getTabGroupInstanceId;
|
|
26
|
+
exports.tabPanelDomId = tabPanelDomId;
|
|
27
|
+
exports.tabTriggerId = tabTriggerId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
4
|
|
|
5
5
|
const Accordion = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -50,17 +50,19 @@ const Accordion = class {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
const accordionBorder = {
|
|
53
|
+
'': '',
|
|
53
54
|
none: '',
|
|
54
55
|
bordered: `xpl-accordion--border-bordered${this.expanded ? '--expanded' : ''}`,
|
|
55
56
|
bottom: `xpl-accordion--border-bottom${this.expanded ? '--expanded' : ''}`,
|
|
56
57
|
}[this.borderType];
|
|
57
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: '4858640c2723a41baa28d11ac997078bd114e7d0', class: `xpl-accordion ${accordionBorder}` }, index.h("button", { key: '39a36d5436dfb022fea1237688689fece8a6959e', "aria-expanded": this.expanded, "aria-controls": this.contentId, class: "xpl-accordion-toggle-area", onClick: this.toggleAccordion, type: "button" }, index.h("header", { key: 'e8d98c3a0ab82986c5799a2855c4cdd979623021', class: `xpl-accordion-header xpl-accordion-header--size-${this.size}` }, index.h("slot", { key: '67d8c71ca1f9d5a2ffefa31933b2cfe6c6485633', name: "heading" }, this.header), index.h("xpl-icon", { key: '24d60d980af954ceda5511d634d0511f303f98d7', size: 16, icon: "chevron-down", class: `xpl-accordion-icon-chevron ${this.expanded ? 'xpl-accordion-icon-chevron--rotate' : ''}` })), index.h("div", { key: 'f8365a7b53724a3ed006d3957f52a61d5ca0d03f', class: "xpl-accordion-description" }, index.h("slot", { key: 'b3c0414e246d32ccc0925e36ba16a70edb529c42', name: "description" }, this.description))), index.h("section", { key: '40f5b9a980e73eb39f3db4d6d1bb4c11f9975790', id: this.contentId, role: "region", class: `xpl-accordion-content xpl-accordion-content--${!this.expanded ? 'hidden' : 'shown'} ${this.expanded
|
|
58
59
|
? {
|
|
60
|
+
'': '',
|
|
59
61
|
none: '',
|
|
60
62
|
bordered: 'xpl-accordion-content--shown-bordered',
|
|
61
63
|
bottom: 'xpl-accordion-content--shown-border-bottom',
|
|
62
64
|
}[this.borderType]
|
|
63
|
-
: ''}` }, index.h("slot", { key: '
|
|
65
|
+
: ''}` }, index.h("slot", { key: '87f1bb742663bff5284417a075768ee616dc8ade', name: "content" }))));
|
|
64
66
|
}
|
|
65
67
|
get el() { return index.getElement(this); }
|
|
66
68
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
4
|
|
|
5
5
|
const ApplicationShell = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -39,7 +39,7 @@ const ApplicationShell = class {
|
|
|
39
39
|
navClasses += this.navOpen
|
|
40
40
|
? ` xpl-application-shell__nav--${this.navWidth}--open`
|
|
41
41
|
: ` xpl-application-shell__nav--${this.navWidth}`;
|
|
42
|
-
return (index.h(index.Host, { key: '
|
|
42
|
+
return (index.h(index.Host, { key: '6895a304b435811647b6a0f44f0d2a78d0be43c6', class: applicationShellClasses }, index.h("div", { key: '5767a122d4f62d9192c7d842634d568f773780fb', class: navClasses }, index.h("slot", { key: '00b964ddb21516528324510ab7b45769c6a988f0', name: "nav" })), index.h("div", { key: '55cf42980ad46b4e488e187396da6beb7e6d1233', class: "xpl-application-shell__subnav" }, index.h("slot", { key: '638dfdfa480756bc8e45f3673a909cac7a4a3def', name: "subnav" })), index.h("div", { key: 'b07703d98a000c9fb184b672dd04227640469dea', class: "xpl-application-shell__utility" }, index.h("slot", { key: '224779534adf2572ef39c01ee2e1eb5387da86c2', name: "utility" })), index.h("div", { key: 'c263b693266d46a486c29135df4b594ab1db119b', class: "xpl-application-shell__content" }, index.h("slot", { key: 'cd349b0208eb182a20dc423c134cf0f15926effa', name: "content" })), index.h("xpl-backdrop", { key: '2fe03e892cf9120857eae124994cfb924397da62', onClick: () => this.navToggleHandler(), class: {
|
|
43
43
|
'xpl-application-shell__backdrop--open': this.navOpen,
|
|
44
44
|
}, relative: true })));
|
|
45
45
|
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
var v4 = require('./v4-_2BfiRUa.js');
|
|
5
|
+
|
|
6
|
+
const LEGACY_STATUS_TO_BADGE = {
|
|
7
|
+
active: 'green',
|
|
8
|
+
inactive: 'gray',
|
|
9
|
+
warning: 'red',
|
|
10
|
+
};
|
|
11
|
+
const MAX_GROUP_VISIBLE = 4;
|
|
12
|
+
const MAX_INITIALS = 3;
|
|
13
|
+
function getInitials(name) {
|
|
14
|
+
if (!name || !name.trim())
|
|
15
|
+
return '';
|
|
16
|
+
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
17
|
+
if (parts.length === 0)
|
|
18
|
+
return '';
|
|
19
|
+
if (parts.length === 1)
|
|
20
|
+
return parts[0].slice(0, MAX_INITIALS).toUpperCase();
|
|
21
|
+
const first = parts[0][0] ?? '';
|
|
22
|
+
const last = parts[parts.length - 1][0] ?? '';
|
|
23
|
+
const mid = parts.length > 2 ? (parts[1][0] ?? '') : '';
|
|
24
|
+
return (first + mid + last).slice(0, MAX_INITIALS).toUpperCase();
|
|
25
|
+
}
|
|
26
|
+
function formatRemainingCount(n) {
|
|
27
|
+
if (n <= 0)
|
|
28
|
+
return '';
|
|
29
|
+
if (n <= 999)
|
|
30
|
+
return `+${n}`;
|
|
31
|
+
const rounded = Math.round(n / 500) * 500;
|
|
32
|
+
const k = rounded / 1000;
|
|
33
|
+
const label = k % 1 === 0 ? `${k}k` : `${k.toFixed(1)}k`;
|
|
34
|
+
return `+${label}`;
|
|
35
|
+
}
|
|
36
|
+
const Avatar = class {
|
|
37
|
+
constructor(hostRef) {
|
|
38
|
+
index.registerInstance(this, hostRef);
|
|
39
|
+
this.cachedGroupItems = [];
|
|
40
|
+
this.cachedSlotContent = '';
|
|
41
|
+
this.disabled = false;
|
|
42
|
+
}
|
|
43
|
+
onGroupDataChange(newValue) {
|
|
44
|
+
this.cachedGroupItems = Avatar.parseGroupData(newValue);
|
|
45
|
+
}
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
this.cachedSlotContent = this.el?.textContent?.trim().slice(0, MAX_INITIALS) ?? '';
|
|
48
|
+
this.onGroupDataChange(this.groupData);
|
|
49
|
+
}
|
|
50
|
+
static parseGroupData(raw) {
|
|
51
|
+
if (raw == null)
|
|
52
|
+
return [];
|
|
53
|
+
if (typeof raw === 'string') {
|
|
54
|
+
try {
|
|
55
|
+
const parsed = JSON.parse(raw);
|
|
56
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return Array.isArray(raw) ? raw : [];
|
|
63
|
+
}
|
|
64
|
+
get groupItems() {
|
|
65
|
+
return this.cachedGroupItems;
|
|
66
|
+
}
|
|
67
|
+
get statusBadgeVariant() {
|
|
68
|
+
const s = this.status;
|
|
69
|
+
if (s === undefined)
|
|
70
|
+
return undefined;
|
|
71
|
+
return (LEGACY_STATUS_TO_BADGE[s] ?? s);
|
|
72
|
+
}
|
|
73
|
+
getPlaceholderText() {
|
|
74
|
+
if (this.cachedSlotContent.length > 0)
|
|
75
|
+
return this.cachedSlotContent;
|
|
76
|
+
return getInitials(this.name);
|
|
77
|
+
}
|
|
78
|
+
static getSingleAvatarClasses(size, color, isProfileSize, disabled) {
|
|
79
|
+
return {
|
|
80
|
+
'xpl-avatar': true,
|
|
81
|
+
[`xpl-avatar--${size}`]: !!size,
|
|
82
|
+
[`xpl-avatar--${color}`]: !!color,
|
|
83
|
+
'xpl-avatar--profile': !!isProfileSize,
|
|
84
|
+
'xpl-avatar--disabled': !!disabled,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
getAnchorProps(className) {
|
|
88
|
+
return {
|
|
89
|
+
href: this.href,
|
|
90
|
+
target: this.target,
|
|
91
|
+
rel: this.target === '_blank' ? 'noopener noreferrer' : undefined,
|
|
92
|
+
'aria-label': this.name ?? 'Profile',
|
|
93
|
+
class: className,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
static renderAvatarMedia(src, name, placeholderText, ariaLabelFallback, showSlot = true) {
|
|
97
|
+
if (src) {
|
|
98
|
+
return index.h("img", { alt: name ?? '', src: src });
|
|
99
|
+
}
|
|
100
|
+
return (index.h("div", { class: "xpl-avatar__placeholder", role: "img", "aria-label": name ?? ariaLabelFallback }, placeholderText || (showSlot ? index.h("slot", null) : null)));
|
|
101
|
+
}
|
|
102
|
+
renderAvatarMediaWithStatusBadge(wrapperClass) {
|
|
103
|
+
const placeholderText = this.getPlaceholderText();
|
|
104
|
+
return (index.h("div", { ...(wrapperClass ? { class: wrapperClass } : {}) }, Avatar.renderAvatarMedia(this.src, this.name, placeholderText, 'Profile', true), this.statusBadgeVariant && (index.h("xpl-badge", { dotOnly: true, bordered: true, variant: this.statusBadgeVariant, "aria-hidden": "true" }))));
|
|
105
|
+
}
|
|
106
|
+
renderGroupItem(item, index$1) {
|
|
107
|
+
const placeholderText = item.name ? getInitials(item.name) : '';
|
|
108
|
+
return (index.h("div", { class: {
|
|
109
|
+
'xpl-avatar-group__item': true,
|
|
110
|
+
'xpl-avatar': true,
|
|
111
|
+
[`xpl-avatar--${this.size}`]: !!this.size,
|
|
112
|
+
[`xpl-avatar--${item.color}`]: !!item.color,
|
|
113
|
+
} }, index.h("div", null, Avatar.renderAvatarMedia(item.src, item.name, placeholderText, `Member ${index$1 + 1}`, false))));
|
|
114
|
+
}
|
|
115
|
+
renderWithTextContent() {
|
|
116
|
+
return (index.h("div", { class: "xpl-avatar__with-text-content" }, index.h("div", { class: "xpl-avatar__with-text-name" }, this.name), this.subText && index.h("div", { class: "xpl-avatar__with-text-sub" }, this.subText)));
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
const v = this.variant;
|
|
120
|
+
if (v === 'group') {
|
|
121
|
+
const items = this.groupItems;
|
|
122
|
+
const visible = items.slice(0, MAX_GROUP_VISIBLE);
|
|
123
|
+
const remaining = items.length - MAX_GROUP_VISIBLE;
|
|
124
|
+
const showCount = remaining > 0;
|
|
125
|
+
const countLabel = showCount ? formatRemainingCount(remaining) : '';
|
|
126
|
+
return (index.h(index.Host, null, index.h("div", { class: {
|
|
127
|
+
'xpl-avatar-group': true,
|
|
128
|
+
[`xpl-avatar-group--${this.size}`]: !!this.size,
|
|
129
|
+
}, role: "group", "aria-label": `${items.length} members` }, visible.map((item, i) => (index.h("div", { key: i, class: "xpl-avatar-group__wrap" }, this.renderGroupItem(item, i)))), showCount && (index.h("div", { class: {
|
|
130
|
+
'xpl-avatar-group__count': true,
|
|
131
|
+
[`xpl-avatar-group__count--${this.size}`]: !!this.size,
|
|
132
|
+
}, "aria-label": `${remaining} more` }, countLabel)))));
|
|
133
|
+
}
|
|
134
|
+
if (v === 'with-text') {
|
|
135
|
+
const avatarBlock = this.renderAvatarMediaWithStatusBadge('xpl-avatar__with-text-avatar');
|
|
136
|
+
const withTextClasses = {
|
|
137
|
+
'xpl-avatar': true,
|
|
138
|
+
'xpl-avatar--with-text': true,
|
|
139
|
+
[`xpl-avatar--${this.color}`]: !!this.color,
|
|
140
|
+
'xpl-avatar--disabled': !!this.disabled,
|
|
141
|
+
};
|
|
142
|
+
return (index.h(index.Host, null, this.href && !this.disabled ? (index.h("a", { ...this.getAnchorProps('xpl-avatar__with-text-link') }, index.h("div", { class: withTextClasses }, avatarBlock, this.renderWithTextContent()))) : (index.h("div", { class: withTextClasses, "aria-disabled": this.disabled ? 'true' : undefined }, avatarBlock, this.renderWithTextContent()))));
|
|
143
|
+
}
|
|
144
|
+
const isProfile = v === 'profile';
|
|
145
|
+
const singleSize = isProfile && this.size === 'md' ? undefined : this.size;
|
|
146
|
+
const singleClasses = Avatar.getSingleAvatarClasses(singleSize, this.color, isProfile, this.disabled);
|
|
147
|
+
const content = this.renderAvatarMediaWithStatusBadge();
|
|
148
|
+
if (this.href && !this.disabled) {
|
|
149
|
+
return (index.h(index.Host, null, index.h("a", { ...this.getAnchorProps(singleClasses) }, content)));
|
|
150
|
+
}
|
|
151
|
+
return (index.h(index.Host, null, index.h("div", { class: singleClasses, "aria-disabled": this.disabled ? 'true' : undefined }, content)));
|
|
152
|
+
}
|
|
153
|
+
get el() { return index.getElement(this); }
|
|
154
|
+
static get watchers() { return {
|
|
155
|
+
"groupData": [{
|
|
156
|
+
"onGroupDataChange": 0
|
|
157
|
+
}]
|
|
158
|
+
}; }
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
const Divider = class {
|
|
162
|
+
constructor(hostRef) {
|
|
163
|
+
index.registerInstance(this, hostRef);
|
|
164
|
+
}
|
|
165
|
+
render() {
|
|
166
|
+
let className = 'xpl-divider';
|
|
167
|
+
className += ` xpl-divider--${this.tier}`;
|
|
168
|
+
return (index.h(index.Host, { key: '61b81934fc56dabb47246db40cd83b9f1dde150a', class: className }, index.h("span", { key: 'b81ec769098b9b39fbd4e954e4931bcd580aa7dc' }, index.h("slot", { key: '8410f6c17964a091e9d62ca4db9eda673ab02c46' }))));
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const Radio = class {
|
|
173
|
+
constructor(hostRef) {
|
|
174
|
+
index.registerInstance(this, hostRef);
|
|
175
|
+
this.radioChange = index.createEvent(this, "radioChange", 7);
|
|
176
|
+
this.id = v4.v4();
|
|
177
|
+
this.onChange = (event) => {
|
|
178
|
+
const target = event.target;
|
|
179
|
+
if (this.value) {
|
|
180
|
+
this.radioChange.emit(this.value);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
this.radioChange.emit(target.checked);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
get isChecked() {
|
|
188
|
+
if (this.selectedValue !== undefined && this.value !== undefined) {
|
|
189
|
+
return this.selectedValue === this.value;
|
|
190
|
+
}
|
|
191
|
+
return Boolean(this.checked);
|
|
192
|
+
}
|
|
193
|
+
render() {
|
|
194
|
+
return (index.h(index.Host, { key: '3b69e40977913d82102f8ddad0daaf04c1fdae91', class: {
|
|
195
|
+
'xpl-checkbox-radio-container': true,
|
|
196
|
+
styled: !!this.styled,
|
|
197
|
+
disabled: !!this.disabled,
|
|
198
|
+
} }, index.h("input", { key: '480a7b9ed8a94630a9e1d31ae39dfa5ca4977869', 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 }), index.h("label", { key: 'aa582808dda2a90ad877ac1267df68df3bce6f38', class: {
|
|
199
|
+
'xpl-label': true,
|
|
200
|
+
'xpl-label--disabled': !!this.disabled,
|
|
201
|
+
}, htmlFor: this.id }, index.h("slot", { key: 'a75c287415b7d989ba2bfd1a3c4ec122afe345e6' }), this.description && (index.h("small", { key: '774a273dafdf7e5e82ddd2a99c439cae7f6f9bd1', class: {
|
|
202
|
+
'xpl-description': true,
|
|
203
|
+
'xpl-description--disabled': !!this.disabled,
|
|
204
|
+
} }, this.description)))));
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
exports.xpl_avatar = Avatar;
|
|
209
|
+
exports.xpl_divider = Divider;
|
|
210
|
+
exports.xpl_radio = Radio;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
|
|
5
|
+
const Backdrop = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
index.registerInstance(this, hostRef);
|
|
8
|
+
this.relative = false;
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (index.h(index.Host, { key: '9a815cbf4ec4d4b5f789a8a6fdabeaef90844096', class: {
|
|
12
|
+
'xpl-backdrop': true,
|
|
13
|
+
'xpl-backdrop--fixed': !this.relative,
|
|
14
|
+
'xpl-backdrop--relative': this.relative,
|
|
15
|
+
}, "aria-hidden": "true" }));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.xpl_backdrop = Backdrop;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
|
|
5
|
+
const LEGACY_VARIANT_MAP = {
|
|
6
|
+
success: 'green',
|
|
7
|
+
warning: 'yellow',
|
|
8
|
+
inactive: 'gray',
|
|
9
|
+
error: 'red',
|
|
10
|
+
};
|
|
11
|
+
const Badge = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.bordered = false;
|
|
15
|
+
this.dotOnly = false;
|
|
16
|
+
this.shape = 'rounded';
|
|
17
|
+
this.size = 'default';
|
|
18
|
+
this.variant = 'purple';
|
|
19
|
+
}
|
|
20
|
+
get resolvedVariant() {
|
|
21
|
+
return LEGACY_VARIANT_MAP[this.variant] ?? this.variant;
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const className = {
|
|
25
|
+
'xpl-badge--dot-only': !!this.dotOnly,
|
|
26
|
+
'xpl-badge--dot-only-bordered': !!this.dotOnly && !!this.bordered,
|
|
27
|
+
'xpl-badge': !this.dotOnly,
|
|
28
|
+
'xpl-badge--dot': !this.dotOnly && !!this.dot,
|
|
29
|
+
[`xpl-badge--${this.resolvedVariant}`]: true,
|
|
30
|
+
[`xpl-badge--size-${this.size}`]: !!this.size,
|
|
31
|
+
[`xpl-badge--shape-${this.shape}`]: !this.dotOnly && !!this.shape,
|
|
32
|
+
};
|
|
33
|
+
return (index.h(index.Host, { key: '2d4179362c0cbb0b6f811311dd22388999e10862' }, index.h("div", { key: '060964cfc2e6df5b51edc0af9a79e050fddcb4ae', class: className }, index.h("span", { key: '54f018c6ece279aa17c655b1e5502a6526173433', class: "xpl-badge__label" }, index.h("slot", { key: '4199e21fb1d83f81cf5001c0c51902f1bc8764f6' })))));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.xpl_badge = Badge;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
|
|
5
|
+
const Banner = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
index.registerInstance(this, hostRef);
|
|
8
|
+
this.action = index.createEvent(this, "action", 7);
|
|
9
|
+
this.dismiss = index.createEvent(this, "dismiss", 7);
|
|
10
|
+
this.secondaryAction = index.createEvent(this, "secondaryAction", 7);
|
|
11
|
+
this.appearance = 'information';
|
|
12
|
+
this.hasIcon = true;
|
|
13
|
+
this.isDismissible = true;
|
|
14
|
+
this.isSection = false;
|
|
15
|
+
this.truncateDesc = false;
|
|
16
|
+
}
|
|
17
|
+
getIcon() {
|
|
18
|
+
switch (this.appearance) {
|
|
19
|
+
case 'positive':
|
|
20
|
+
return 'circle-check';
|
|
21
|
+
case 'warning':
|
|
22
|
+
return 'triangle-warning';
|
|
23
|
+
case 'error':
|
|
24
|
+
return 'octagon-warning';
|
|
25
|
+
default:
|
|
26
|
+
return 'circle-info';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
getActionButtonState() {
|
|
30
|
+
if (this.isSection) {
|
|
31
|
+
if (this.appearance === 'positive') {
|
|
32
|
+
return 'success';
|
|
33
|
+
}
|
|
34
|
+
if (this.appearance === 'error') {
|
|
35
|
+
return 'warning';
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
return this.appearance === 'error' ? 'warning' : undefined;
|
|
40
|
+
}
|
|
41
|
+
getActionButtonVariant() {
|
|
42
|
+
if (this.isSection)
|
|
43
|
+
return 'subtle';
|
|
44
|
+
return this.appearance === 'error' ? 'primary' : 'subtle';
|
|
45
|
+
}
|
|
46
|
+
getAriaLabel() {
|
|
47
|
+
if (this.isSection) {
|
|
48
|
+
return this.heading?.trim() || 'Section banner';
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
information: 'Information banner',
|
|
52
|
+
positive: 'Positive banner',
|
|
53
|
+
warning: 'Warning banner',
|
|
54
|
+
error: 'Error banner',
|
|
55
|
+
}[this.appearance];
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
const hasAction = !!this.actionText?.trim();
|
|
59
|
+
const hasSecondaryAction = !!this.secondaryActionText?.trim();
|
|
60
|
+
const actionVariant = this.getActionButtonVariant();
|
|
61
|
+
const actionState = this.getActionButtonState();
|
|
62
|
+
const isHeadingPresent = !!this.heading?.trim();
|
|
63
|
+
const isDescPresent = !!this.description?.trim();
|
|
64
|
+
return (index.h(index.Host, { key: '476c72c3dad23d9d62a8d68a826fb75a93fc88ee', class: {
|
|
65
|
+
'xpl-banner': true,
|
|
66
|
+
'xpl-banner--section': this.isSection,
|
|
67
|
+
[`xpl-banner--${this.appearance}`]: true,
|
|
68
|
+
'xpl-banner--truncate-desc': this.truncateDesc,
|
|
69
|
+
'xpl-banner--no-icon': this.isSection && !this.hasIcon,
|
|
70
|
+
}, role: "region", "aria-label": this.getAriaLabel() }, (!this.isSection || this.hasIcon) && (index.h("div", { key: 'b81395caa66c8c56a54535a5ace6fd3a027b0075', class: "xpl-banner__icon", "aria-hidden": "true" }, index.h("xpl-icon", { key: 'e8dd31a592ba17dd1825630a4f1ba9bc7323891a', icon: this.getIcon(), size: 24 }))), index.h("div", { key: '034eab05c801635fdbfb7ea549c4472407f3f09f', class: "xpl-banner__body" }, isHeadingPresent && index.h("p", { key: 'c9216bd4c11c1d3bda0e1654282d9a713e955968', class: "xpl-banner__heading" }, this.heading), isDescPresent && (index.h("p", { key: 'e67d92d7b71b678b19627741a01d2e4b26ef7093', class: "xpl-banner__description", title: this.truncateDesc ? this.description : undefined }, this.description))), (hasAction || hasSecondaryAction) && (index.h("div", { key: 'dd4d7bcae4bde9d16124b27993d7d1b2e96e086e', class: "xpl-banner__actions" }, hasAction && (index.h("xpl-button", { key: '51df92818c4194c76c609776f85aa31c7bffb34b', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.action.emit() }, this.actionText)), hasSecondaryAction && (index.h("xpl-button", { key: '7f911d3a81190cde339f69a2d93eb0c2518c9036', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.secondaryAction.emit() }, this.secondaryActionText)))), this.isDismissible && (index.h("button", { key: 'b9d1b8d15f0adac5b7eaa5c3e287c4b0fe7b987e', class: "xpl-banner__dismiss", type: "button", "aria-label": `Dismiss ${this.isSection ? 'section ' : ''}banner`, onClick: () => this.dismiss.emit() }, index.h("xpl-icon", { key: '528fd238ccfb1e52c7fe5c0d093f30a4fa4603bd', icon: "xmark", size: 24, "aria-hidden": "true" })))));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.xpl_banner = Banner;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
|
|
5
|
+
const BreadcrumbItem = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
index.registerInstance(this, hostRef);
|
|
8
|
+
this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
9
|
+
<path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
|
|
10
|
+
</svg>
|
|
11
|
+
`;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, { key: '05e99f78af5eab5e1cec089972ffb032eea34e88', class: "xpl-breadcrumb-item", role: "listitem" }, index.h("li", { key: 'a692a2e091bf8038fc04f675dcaaac0f2e7a7c2f', role: "none" }, index.h("slot", { key: 'f4b90f80b4eba10d285ff104b529d22bdc8f0e0b' })), index.h("span", { key: 'a6b05807f7683d9ebbffdc3566c3f1754bb41206', innerHTML: this.chevron })));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.xpl_breadcrumb_item = BreadcrumbItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
|
|
5
|
+
const Breadcrumbs = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
index.registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (index.h(index.Host, { key: 'ec9689395d536e7018469193ba61c094d79fa004' }, index.h("nav", { key: 'ffb0b88d3b331a22d1ae620aeb67ad901c801153', class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, index.h("ol", { key: '9649caceca01e86584682f4843c30fe080b364e1', role: "list" }, index.h("slot", { key: '68f438d33b5cd458cd0643a4f28c04dd824366c7' })))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.xpl_breadcrumbs = Breadcrumbs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
4
|
|
|
5
5
|
const ButtonRow = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -13,7 +13,7 @@ const ButtonRow = class {
|
|
|
13
13
|
this.onTertiary = () => this.clickTertiary.emit();
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '060eb37a03ab854c56b383cf2ed598915f8b4c6f', class: "xpl-button-row" }, index.h("div", { key: '169e722e0ccb0045680001755943aa1087c70a79', class: "xpl-button-row-inner" }, index.h("div", { key: '8a49375971621161e3c1ad692ef9257b1c4bac43', class: "xpl-button-row__left" }, this.secondary && (index.h("xpl-button", { key: '3cc16072ce7e9b4731b50fbaf647659b842763ad', variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary))), index.h("div", { key: 'e1d248e9b65f241f5eee07d2808ee3cb67b6c867', class: "xpl-button-row__right" }, this.tertiary && (index.h("xpl-button", { key: '827f7c01fb4617bb10acfc79b20a515718c6d539', variant: "subtle", type: "button", onClick: this.onTertiary }, this.tertiary)), this.secondary && (index.h("xpl-button", { key: '726167a62d0b3dc6f19b6e38abaa446cb474a07c', variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary)), this.primary && (index.h("xpl-button", { key: '2d7d7fe4e965ce093d969936ff96d224762499e1', class: "xpl-button-row__primary", onClick: this.onPrimary }, this.primary))))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
|
|
5
|
+
const Button = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
index.registerInstance(this, hostRef);
|
|
8
|
+
this.disabled = false;
|
|
9
|
+
this.fullWidth = false;
|
|
10
|
+
this.icon = '';
|
|
11
|
+
this.iconOnly = false;
|
|
12
|
+
this.iconPosition = 'start';
|
|
13
|
+
this.isLoading = false;
|
|
14
|
+
this.sentiment = 'neutral';
|
|
15
|
+
this.size = 'default';
|
|
16
|
+
this.variant = 'primary';
|
|
17
|
+
}
|
|
18
|
+
componentDidRender() {
|
|
19
|
+
const attrs = this.el.attributes;
|
|
20
|
+
const dataAttrs = Object.keys(attrs)
|
|
21
|
+
.map((key) => Number(key))
|
|
22
|
+
.filter((index) => {
|
|
23
|
+
const attr = attrs[index];
|
|
24
|
+
return attr?.name.includes('data-test') || attr?.name.includes('aria-') || false;
|
|
25
|
+
})
|
|
26
|
+
.reduce((acc, index) => {
|
|
27
|
+
const attr = attrs[index];
|
|
28
|
+
if (attr) {
|
|
29
|
+
acc[attr.name] = attr.value;
|
|
30
|
+
}
|
|
31
|
+
return acc;
|
|
32
|
+
}, {});
|
|
33
|
+
const button = this.el.querySelector('button');
|
|
34
|
+
if (button) {
|
|
35
|
+
Object.entries(dataAttrs).forEach(([name, value]) => {
|
|
36
|
+
button.setAttribute(name, value);
|
|
37
|
+
this.el.removeAttribute(name);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
handleDisabledClick(e) {
|
|
42
|
+
if (this.disabled) {
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
e.stopImmediatePropagation();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
renderIcon() {
|
|
48
|
+
if (this.icon) {
|
|
49
|
+
return index.h("xpl-icon", { icon: this.icon });
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
handleLoadingState(e) {
|
|
54
|
+
if (this.isLoading) {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
e.stopImmediatePropagation();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return (index.h(index.Host, { key: '88b28108ae3675732cc51462438c4d067223fbcd', class: {
|
|
62
|
+
'xpl-button': true,
|
|
63
|
+
[`xpl-button--${this.size}`]: true,
|
|
64
|
+
[`xpl-button--${this.variant}`]: true,
|
|
65
|
+
[`xpl-button--${this.state ? this.state : this.sentiment}`]: true,
|
|
66
|
+
[this.icon ? `xpl-button__icon-position--${this.iconPosition}` : '']: !!this.icon,
|
|
67
|
+
'xpl-button--full-width': this.fullWidth,
|
|
68
|
+
'xpl-button--icon-only': this.iconOnly,
|
|
69
|
+
'xpl-button--disabled': this.disabled,
|
|
70
|
+
'xpl-button--loading': this.isLoading && !this.link,
|
|
71
|
+
} }, this.link ? (index.h("slot", null)) : (index.h("button", { ...(this.controlAttrs ?? {}), disabled: this.disabled, onClick: (e) => this.handleLoadingState(e), type: this.isLoading &&
|
|
72
|
+
(this.type === 'submit' ||
|
|
73
|
+
this.type === 'reset' ||
|
|
74
|
+
this.type === undefined)
|
|
75
|
+
? 'button'
|
|
76
|
+
: this.type, name: this.name, value: this.value, form: this.form, "aria-busy": this.isLoading ? 'true' : undefined }, this.icon && index.h("span", { class: "xpl-button__icon" }, this.renderIcon()), index.h("slot", null), this.isLoading && (index.h("span", { class: "xpl-button__loading-overlay", "aria-hidden": "true" }, index.h("span", { class: "xpl-button__loading-spinner" }, index.h("xpl-icon", { icon: "loader-4" }))))))));
|
|
77
|
+
}
|
|
78
|
+
get el() { return index.getElement(this); }
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.xpl_button = Button;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
4
|
var index$1 = require('./index-BvmWjxWc.js');
|
|
5
|
+
var lifecycle = require('./lifecycle-DeSsFfQZ.js');
|
|
5
6
|
var v4 = require('./v4-_2BfiRUa.js');
|
|
6
7
|
|
|
7
8
|
const arrowSvg = (rotate = false) => `<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="${rotate
|
|
@@ -26,9 +27,12 @@ const Calendar = class {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
componentWillLoad() {
|
|
29
|
-
this.calendarInputId = this.inputId;
|
|
30
|
+
this.calendarInputId = this.inputId ?? '';
|
|
30
31
|
}
|
|
31
32
|
componentDidLoad() {
|
|
33
|
+
if (!lifecycle.isBrowser()) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
32
36
|
this.flatpickrInstance = index$1.flatpickr(this.inputElement, {
|
|
33
37
|
allowInput: true,
|
|
34
38
|
dateFormat: this.dateFormat,
|
|
@@ -41,9 +45,8 @@ const Calendar = class {
|
|
|
41
45
|
inline: true,
|
|
42
46
|
monthSelectorType: 'dropdown',
|
|
43
47
|
onChange: (selectedDates) => {
|
|
44
|
-
var _a;
|
|
45
48
|
if (this.mode === 'single') {
|
|
46
|
-
this.dateSelected.emit(
|
|
49
|
+
this.dateSelected.emit(selectedDates[0]?.toISOString());
|
|
47
50
|
}
|
|
48
51
|
else {
|
|
49
52
|
this.dateSelected.emit(selectedDates.map((date) => date.toISOString()));
|
|
@@ -57,8 +60,9 @@ const Calendar = class {
|
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
62
|
render() {
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
61
|
-
|
|
63
|
+
return (index.h(index.Host, { key: '76d2b26fe34d766b1e1348f7d5336c5ec478bae9', class: "xpl-calendar" }, index.h("input", { key: '8f015adda8e5c4f7a5f0dd9815bdead0249e3a4e', class: "xpl-calendar-input", type: "text", id: this.calendarInputId, ref: (el) => {
|
|
64
|
+
if (el)
|
|
65
|
+
this.inputElement = el;
|
|
62
66
|
} })));
|
|
63
67
|
}
|
|
64
68
|
};
|