@xplortech/apollo-core 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.typings/apollo-components.html-data.json +134 -12
- package/AGENTS.md +27 -3
- package/README.md +12 -0
- package/build/components/accordion.css +1 -0
- package/build/components/application-shell.css +1 -0
- package/build/components/avatar.css +1 -0
- package/build/components/backdrop.css +1 -0
- package/build/components/badge.css +1 -0
- package/build/components/banner.css +1 -0
- package/build/components/breadcrumbs.css +1 -0
- package/build/components/button-row.css +1 -0
- package/build/components/button.css +1 -0
- package/build/components/calendar.css +1 -0
- package/build/components/checkbox-radio.css +1 -0
- package/build/components/choicelist.css +1 -0
- package/build/components/content-area.css +1 -0
- package/build/components/dashboard.css +1 -0
- package/build/components/data-card.css +1 -0
- package/build/components/divider.css +1 -0
- package/build/components/dropdown.css +1 -0
- package/build/components/dynamic-table-cell.css +1 -0
- package/build/components/dynamic-table-row.css +1 -0
- package/build/components/dynamic-table.css +1 -0
- package/build/components/grid.css +1 -0
- package/build/components/header-accordion.css +1 -0
- package/build/components/icon.css +1 -0
- package/build/components/input-color.css +1 -0
- package/build/components/input-date.css +1 -0
- package/build/components/input-file.css +1 -0
- package/build/components/input-phone.css +1 -0
- package/build/components/input-search.css +1 -0
- package/build/components/input-time.css +1 -0
- package/build/components/input.css +1 -0
- package/build/components/label.css +1 -0
- package/build/components/large-card.css +1 -0
- package/build/components/list-action.css +1 -0
- package/build/components/list-item.css +1 -0
- package/build/components/list.css +1 -0
- package/build/components/main-nav.css +1 -0
- package/build/components/modal.css +1 -0
- package/build/components/nav-item.css +1 -0
- package/build/components/pagination.css +1 -0
- package/build/components/panel.css +1 -0
- package/build/components/popover.css +1 -0
- package/build/components/progress-bar.css +1 -0
- package/build/components/progress-indicator.css +1 -0
- package/build/components/secondary-nav.css +1 -0
- package/build/components/select.css +1 -0
- package/build/components/side-nav.css +1 -0
- package/build/components/skeleton.css +1 -0
- package/build/components/slideout.css +1 -0
- package/build/components/spotlight.css +1 -0
- package/build/components/table-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table.css +1 -0
- package/build/components/tabs.css +1 -0
- package/build/components/tag.css +1 -0
- package/build/components/toast.css +1 -0
- package/build/components/toggle.css +1 -0
- package/build/components/toolbar.css +1 -0
- package/build/components/tooltip.css +1 -0
- package/build/components/top-nav.css +1 -0
- package/build/components/utility-bar.css +1 -0
- package/build/components-manifest.json +220 -0
- package/build/core.css +2 -0
- package/build/reset.css +394 -0
- package/build/style.css +2 -13120
- package/build/tailwind-theme.css +2 -0
- package/build/typography.css +1 -0
- package/build/variables/apollo.css +779 -0
- package/build/variables/field-edge.css +554 -0
- package/build/vendor/flatpickr.css +1 -0
- package/dist/apollo-core/apollo-core.css +2 -55
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0095174c.entry.js +1 -0
- package/dist/apollo-core/p-020ecd66.entry.js +1 -0
- package/dist/apollo-core/p-0463c29f.entry.js +1 -0
- package/dist/apollo-core/p-091411e3.entry.js +1 -0
- package/dist/apollo-core/p-0be4dbb8.entry.js +1 -0
- package/dist/apollo-core/p-1139fac0.entry.js +1 -0
- package/dist/apollo-core/p-121d1a4b.entry.js +1 -0
- package/dist/apollo-core/p-140a96c7.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a417191.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-26861d09.entry.js +1 -0
- package/dist/apollo-core/p-26b6a0ed.entry.js +1 -0
- package/dist/apollo-core/p-39e71d86.entry.js +1 -0
- package/dist/apollo-core/p-3d9c90ee.entry.js +1 -0
- package/dist/apollo-core/p-3dd1de49.entry.js +1 -0
- package/dist/apollo-core/p-4129d971.entry.js +1 -0
- package/dist/apollo-core/p-46d21684.entry.js +1 -0
- package/dist/apollo-core/p-4e61587f.entry.js +1 -0
- package/dist/apollo-core/p-5afc9831.entry.js +1 -0
- package/dist/apollo-core/p-5ca18bc1.entry.js +1 -0
- package/dist/apollo-core/p-5d25a84a.entry.js +1 -0
- package/dist/apollo-core/p-5e5c5016.entry.js +1 -0
- package/dist/apollo-core/p-601b3ab5.entry.js +1 -0
- package/dist/apollo-core/p-616c5a32.entry.js +1 -0
- package/dist/apollo-core/p-638fd9b1.entry.js +1 -0
- package/dist/apollo-core/p-643c8038.entry.js +1 -0
- package/dist/apollo-core/p-707b1918.entry.js +1 -0
- package/dist/apollo-core/p-724c5038.entry.js +1 -0
- package/dist/apollo-core/p-76f64d65.entry.js +1 -0
- package/dist/apollo-core/p-7976cd3b.entry.js +1 -0
- package/dist/apollo-core/p-7f105d63.entry.js +1 -0
- package/dist/apollo-core/p-80a11cad.entry.js +1 -0
- package/dist/apollo-core/p-853418be.entry.js +1 -0
- package/dist/apollo-core/p-875e0eaa.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a81ef98.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-8ddbf2e2.entry.js +1 -0
- package/dist/apollo-core/p-9747cf43.entry.js +1 -0
- package/dist/apollo-core/p-9b0174b1.entry.js +1 -0
- package/dist/apollo-core/p-9bf2ff9f.entry.js +1 -0
- package/dist/apollo-core/p-BFTU3MAI.js +1 -0
- package/dist/apollo-core/p-BQtbf88X.js +1 -0
- package/dist/apollo-core/p-CWdQxaaX.js +1 -0
- package/dist/apollo-core/p-C_PEOQWj.js +1 -0
- package/dist/apollo-core/p-CzwViN3U.js +1 -0
- package/dist/apollo-core/p-DkqlawVY.js +1 -0
- package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
- package/dist/apollo-core/p-_r9-FML8.js +1 -0
- package/dist/apollo-core/p-a0d3b7f8.entry.js +1 -0
- package/dist/apollo-core/p-a33b0943.entry.js +1 -0
- package/dist/apollo-core/p-b537f72d.entry.js +1 -0
- package/dist/apollo-core/p-ba41bbd5.entry.js +1 -0
- package/dist/apollo-core/p-bb22ed2a.entry.js +1 -0
- package/dist/apollo-core/p-c25aebe5.entry.js +1 -0
- package/dist/apollo-core/p-c427a31d.entry.js +1 -0
- package/dist/apollo-core/p-cde21f72.entry.js +1 -0
- package/dist/apollo-core/p-d288c1d1.entry.js +1 -0
- package/dist/apollo-core/p-d37488d4.entry.js +1 -0
- package/dist/apollo-core/p-d3f2b8b8.entry.js +1 -0
- package/dist/apollo-core/p-dfaba114.entry.js +1 -0
- package/dist/apollo-core/p-e00ed4f4.entry.js +1 -0
- package/dist/apollo-core/p-e2a16242.entry.js +1 -0
- package/dist/apollo-core/p-e4ae3f60.entry.js +1 -0
- package/dist/apollo-core/p-ec488f9c.entry.js +1 -0
- package/dist/apollo-core/p-efa21ec0.entry.js +1 -0
- package/dist/apollo-core/p-f199ad66.entry.js +1 -0
- package/dist/apollo-core/p-f2bfe6a6.entry.js +1 -0
- package/dist/apollo-core/p-fd2756d8.entry.js +1 -0
- package/dist/apollo-core/p-fef6c256.entry.js +1 -0
- package/dist/apollo-core/p-ff8acf15.entry.js +1 -0
- package/dist/apollo-core/p-ukZKsqqq.js +2 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
- package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +760 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/lifecycle-DeSsFfQZ.js +74 -0
- package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
- package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
- package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
- package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +210 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
- package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +81 -0
- package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
- package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
- package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
- package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +577 -0
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
- package/dist/{esm/xpl-avatar_54.entry.js → cjs/xpl-icon.cjs.entry.js} +1293 -10607
- package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
- package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
- package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
- package/dist/cjs/xpl-input_4.cjs.entry.js +524 -0
- package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
- package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
- package/dist/cjs/xpl-list.cjs.entry.js +396 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +78 -0
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
- package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
- package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
- package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
- package/dist/cjs/xpl-side-nav.cjs.entry.js +272 -0
- package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
- package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +5 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table.cjs.entry.js +185 -0
- package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
- package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +91 -0
- package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +6 -2
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +19 -1
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/avatar.stories.js +19 -9
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +12 -16
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +17 -3
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/badge.stories.js +21 -8
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/banner.stories.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +5 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/button.stories.js +2 -0
- package/dist/collection/components/xpl-button/xpl-button.js +17 -14
- package/dist/collection/components/xpl-button-row/button-row.stories.js +9 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/calendar.stories.js +11 -3
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +11 -2
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +24 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- package/dist/collection/components/xpl-content-area/content-area.stories.js +13 -24
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +9 -0
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/data-card.stories.js +55 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
- package/dist/collection/components/xpl-divider/divider.stories.js +11 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +13 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +9 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +108 -116
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +5 -1
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
- package/dist/collection/components/xpl-grid/grid.stories.js +9 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +6 -2
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/icons.stories.js +21 -2
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/input.stories.js +120 -104
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +12 -6
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
- package/dist/collection/components/xpl-input/xpl-input.js +69 -37
- package/dist/collection/components/xpl-large-card/large-card.stories.js +27 -3
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- package/dist/collection/components/xpl-list/list.stories.js +11 -2
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
- package/dist/collection/components/xpl-list/xpl-list.js +21 -26
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +5 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/modal.stories.js +15 -6
- package/dist/collection/components/xpl-modal/xpl-modal.js +21 -8
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/pagination.stories.js +10 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/panel.stories.js +9 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/popover.stories.js +15 -5
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +10 -1
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +9 -1
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/radio.stories.js +9 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +10 -5
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.stories.js +11 -8
- package/dist/collection/components/xpl-select/xpl-select.js +91 -49
- package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +454 -18
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +75 -12
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +10 -1
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/slideout.stories.js +13 -0
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +22 -15
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
- package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
- package/dist/collection/components/xpl-table/table.stories.js +11 -2
- package/dist/collection/components/xpl-table/xpl-table.js +52 -36
- package/dist/collection/components/xpl-table-header/table-header.stories.js +9 -1
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +10 -2
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +10 -1
- package/dist/collection/components/xpl-tabs/tabs.shared.js +77 -19
- package/dist/collection/components/xpl-tabs/tabs.stories.js +14 -2
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/tag.stories.js +15 -9
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/toast.stories.js +43 -17
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/toggle.stories.js +8 -1
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- package/dist/collection/components/xpl-toolbar/toolbar.stories.js +39 -0
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +9 -0
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/top-nav-constants.js +1 -0
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +160 -21
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +11 -5
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/top-nav-item-constants.js +2 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +335 -97
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +114 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +101 -33
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +16 -9
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/collection/utils/floating.js +69 -0
- package/dist/collection/utils/layout-ancestors.js +7 -0
- package/dist/collection/utils/lifecycle.js +31 -10
- package/dist/collection/utils/light-dom-slots.js +15 -0
- package/dist/collection/utils/slot-presence.js +6 -0
- package/dist/collection/utils/ssr-known-mismatches.js +50 -0
- package/dist/collection/utils/tab-a11y-ids.js +1 -2
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/p-2jYZ7ACH.js +1 -0
- package/dist/components/p-BGqQbjLl.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BnTsRbko.js +1 -0
- package/dist/components/p-Bseq_BgD.js +1 -0
- package/dist/components/p-CCgZCY_A.js +1 -0
- package/dist/components/p-CJzsLWeV.js +1 -0
- package/dist/components/p-CRKY79vL.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-CjbPCnPP.js +1 -0
- package/dist/components/p-Cjxw-qOg.js +1 -0
- package/dist/components/p-D6JUVA1x.js +1 -0
- package/dist/components/p-DFGw0APN.js +1 -0
- package/dist/components/p-DLLQBDCb.js +1 -0
- package/dist/components/p-DS2Kv5fl.js +1 -0
- package/dist/components/p-DWUJ_jsx.js +1 -0
- package/dist/components/p-Di1NDy0w.js +1 -0
- package/dist/components/p-DkM7jyQB.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-DsRsm61K.js +1 -0
- package/dist/components/p-DywQ3S73.js +1 -0
- package/dist/components/p-Dzp5p-eh.js +1 -0
- package/dist/components/p-Mehog36m.js +1 -0
- package/dist/components/p-RYnBuuDE.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-B1PBAEzg.js → p-imCMp2Nl.js} +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-header-item.js +1 -0
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.d.ts +11 -0
- package/dist/components/xpl-side-nav-section.js +1 -0
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.d.ts +11 -0
- package/dist/components/xpl-top-nav-menu.js +1 -0
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/css/typography.stories.js +9 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-backdrop/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +2 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
- package/dist/docs/xpl-button/readme.md +4 -2
- package/dist/docs/xpl-checkbox/readme.md +12 -0
- package/dist/docs/xpl-choicelist/readme.md +21 -0
- package/dist/docs/xpl-content-area/readme.md +8 -0
- package/dist/docs/xpl-data-card/readme.md +26 -0
- package/dist/docs/xpl-dropdown/readme.md +32 -6
- package/dist/docs/xpl-dynamic-table/readme.md +35 -0
- package/dist/docs/xpl-header-accordion/readme.md +18 -0
- package/dist/docs/xpl-icon/readme.md +23 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
- package/dist/docs/xpl-large-card/readme.md +18 -0
- package/dist/docs/xpl-list/readme.md +2 -2
- package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
- package/dist/docs/xpl-main-nav/readme.md +16 -0
- package/dist/docs/xpl-modal/readme.md +20 -0
- package/dist/docs/xpl-nav-item/readme.md +14 -0
- package/dist/docs/xpl-pagination/readme.md +29 -0
- package/dist/docs/xpl-radio/readme.md +12 -0
- package/dist/docs/xpl-secondary-nav/readme.md +25 -0
- package/dist/docs/xpl-select/readme.md +13 -0
- package/dist/docs/xpl-side-nav/readme.md +12 -7
- package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
- package/dist/docs/xpl-slideout/readme.md +23 -0
- package/dist/docs/xpl-tab/readme.md +14 -8
- package/dist/docs/xpl-table/readme.md +4 -4
- package/dist/docs/xpl-toast/readme.md +90 -7
- package/dist/docs/xpl-toggle/readme.md +46 -0
- package/dist/docs/xpl-toolbar/readme.md +19 -0
- package/dist/docs/xpl-top-nav/readme.md +5 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +79 -20
- package/dist/docs/xpl-top-nav/xpl-top-nav-menu/readme.md +96 -0
- package/dist/docs/xpl-utility-bar/readme.md +12 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +16441 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
- package/dist/esm/index-BhYfWG18.js +454 -0
- package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +760 -9
- package/dist/esm/lifecycle-Dqb1pIRo.js +71 -0
- package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
- package/dist/esm/slot-presence-_r9-FML8.js +8 -0
- package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
- package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
- package/dist/esm/xpl-accordion.entry.js +5 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +206 -0
- package/dist/esm/xpl-backdrop.entry.js +17 -0
- package/dist/esm/xpl-badge.entry.js +35 -0
- package/dist/esm/xpl-banner.entry.js +72 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +79 -0
- package/dist/esm/xpl-calendar.entry.js +10 -6
- package/dist/esm/xpl-checkbox.entry.js +30 -0
- package/dist/esm/xpl-choicelist.entry.js +66 -0
- package/dist/esm/xpl-content-area.entry.js +13 -0
- package/dist/esm/xpl-dashboard.entry.js +12 -0
- package/dist/esm/xpl-data-card.entry.js +109 -0
- package/dist/esm/xpl-dropdown_4.entry.js +572 -0
- package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +11 -18
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +6 -6
- package/dist/esm/xpl-header-accordion.entry.js +67 -0
- package/dist/{cjs/xpl-avatar_54.cjs.entry.js → esm/xpl-icon.entry.js} +1290 -10661
- package/dist/esm/xpl-input-color.entry.js +433 -0
- package/dist/esm/xpl-input-phone.entry.js +507 -0
- package/dist/esm/xpl-input-time.entry.js +194 -0
- package/dist/esm/xpl-input_4.entry.js +519 -0
- package/dist/esm/xpl-large-card.entry.js +63 -4
- package/dist/esm/xpl-list-item.entry.js +458 -0
- package/dist/esm/xpl-list.entry.js +394 -0
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +76 -0
- package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
- package/dist/esm/xpl-nav-item.entry.js +23 -0
- package/dist/esm/xpl-pagination.entry.js +110 -0
- package/dist/esm/xpl-panel.entry.js +19 -0
- package/dist/esm/xpl-popover.entry.js +263 -0
- package/dist/esm/xpl-progress-bar.entry.js +39 -0
- package/dist/esm/xpl-progress-indicator.entry.js +72 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select_2.entry.js +490 -0
- package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
- package/dist/esm/xpl-side-nav-item.entry.js +128 -0
- package/dist/esm/xpl-side-nav-section.entry.js +103 -0
- package/dist/esm/xpl-side-nav.entry.js +270 -0
- package/dist/esm/xpl-skeleton.entry.js +24 -0
- package/dist/esm/xpl-slideout.entry.js +45 -0
- package/dist/esm/xpl-spotlight.entry.js +720 -0
- package/dist/esm/xpl-tab-panel.entry.js +22 -0
- package/dist/esm/xpl-tab.entry.js +85 -0
- package/dist/esm/xpl-table-header-cell.entry.js +5 -3
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table.entry.js +183 -0
- package/dist/esm/xpl-tabs.entry.js +371 -0
- package/dist/esm/xpl-toast.entry.js +89 -0
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +16 -0
- package/dist/esm/xpl-top-nav-item.entry.js +433 -0
- package/dist/esm/xpl-top-nav-menu.entry.js +89 -0
- package/dist/esm/xpl-top-nav.entry.js +340 -0
- package/dist/esm/xpl-utility-bar.entry.js +21 -0
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +11 -2
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +5 -23
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +17 -116
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +2 -0
- package/dist/types/components/xpl-badge/badge.stories.d.ts +7 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +10 -27
- package/dist/types/components/xpl-button/button.stories.d.ts +4 -0
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +10 -21
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +11 -28
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +13 -31
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +9 -23
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +7 -1
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +8 -17
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +32 -37
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- package/dist/types/components/xpl-divider/divider.stories.d.ts +10 -23
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +160 -8
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +7 -22
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-grid/grid.stories.d.ts +23 -47
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +8 -24
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- package/dist/types/components/xpl-icon/icons.stories.d.ts +16 -39
- package/dist/types/components/xpl-input/input.stories.d.ts +255 -54
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +2 -2
- package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input.d.ts +11 -6
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +12 -30
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
- package/dist/types/components/xpl-list/list.stories.d.ts +33 -1
- package/dist/types/components/xpl-list/listitem.d.ts +5 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +7 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +16 -16
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +3 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +9 -30
- package/dist/types/components/xpl-panel/panel.stories.d.ts +9 -1
- package/dist/types/components/xpl-popover/popover.stories.d.ts +12 -3
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +13 -24
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +2 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +3 -0
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +4 -1
- package/dist/types/components/xpl-select/select.stories.d.ts +35 -45
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +73 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +11 -1
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +20 -16
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +7 -1
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +16 -37
- package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +21 -48
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +11 -34
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +22 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +35 -1
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +29 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +3 -0
- package/dist/types/components/xpl-toast/toast.stories.d.ts +17 -13
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +13 -31
- package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +35 -0
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +10 -24
- package/dist/types/components/xpl-top-nav/top-nav-constants.d.ts +1 -0
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +79 -1
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/top-nav-item-constants.d.ts +2 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +26 -4
- package/dist/types/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.d.ts +18 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +8 -2
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +9 -2
- package/dist/types/components.d.ts +1186 -66
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +11 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +1 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +76 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/story-vrt.d.ts +1 -0
- package/dist/types/third-party.d.ts +20 -0
- package/dist/types/utils/floating.d.ts +26 -0
- package/dist/types/utils/lifecycle.d.ts +4 -1
- package/dist/types/utils/light-dom-slots.d.ts +6 -0
- package/dist/types/utils/slot-presence.d.ts +1 -0
- package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
- package/dist/utils/form-bindings.js +64 -0
- package/dist/utils/story-vrt.js +48 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +51669 -0
- package/hydrate/index.mjs +51659 -0
- package/hydrate/package.json +12 -0
- package/package.json +111 -44
- package/dist/apollo-core/p-0e45f332.entry.js +0 -1
- package/dist/apollo-core/p-0f251f98.entry.js +0 -1
- package/dist/apollo-core/p-1691c4f3.entry.js +0 -1
- package/dist/apollo-core/p-172ac720.entry.js +0 -1
- package/dist/apollo-core/p-23870463.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-44a16751.entry.js +0 -1
- package/dist/apollo-core/p-4efecab2.entry.js +0 -1
- package/dist/apollo-core/p-5094dd97.entry.js +0 -1
- package/dist/apollo-core/p-70e7facc.entry.js +0 -1
- package/dist/apollo-core/p-728341d2.entry.js +0 -1
- package/dist/apollo-core/p-910be81f.entry.js +0 -1
- package/dist/apollo-core/p-9adf3694.entry.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-c17b6351.entry.js +0 -1
- package/dist/apollo-core/p-e08b434c.entry.js +0 -1
- package/dist/apollo-core/p-e9e7577f.entry.js +0 -1
- package/dist/components/p-3qMYyqTe.js +0 -1
- package/dist/components/p-BG0-6Xek.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BWyAzrwu.js +0 -1
- package/dist/components/p-B_Wi--Ov.js +0 -1
- package/dist/components/p-Bd6JweBt.js +0 -1
- package/dist/components/p-Bn-27-xj.js +0 -1
- package/dist/components/p-Bs6vq0C6.js +0 -1
- package/dist/components/p-C9BO2vL-.js +0 -1
- package/dist/components/p-CFW_w5Wj.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CGNq3DyC.js +0 -1
- package/dist/components/p-CVqbA9op.js +0 -1
- package/dist/components/p-CtIUusUL.js +0 -1
- package/dist/components/p-D97c0GjM.js +0 -1
- package/dist/components/p-DBWV65V-.js +0 -1
- package/dist/components/p-DEl4Rvzs.js +0 -1
- package/dist/components/p-DPTHmitJ.js +0 -1
- package/dist/components/p-DllC7F-H.js +0 -1
- package/dist/components/p-Ds28UyUR.js +0 -1
- package/dist/components/p-U5dPMCXE.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-hPUzON4O.js +0 -1
- package/dist/components/p-kPHfCq1d.js +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { isBrowser } from "../../../utils/lifecycle";
|
|
2
3
|
import { rgbToHsl, rgbToHex, hexToRgb, objectToStringColor, stringToObjectColor, reverseCursorPosition, hsvToRgb, } from "./color-utils";
|
|
3
4
|
const fallbackColorValues = {
|
|
4
5
|
hex: '',
|
|
@@ -10,19 +11,14 @@ const fallbackColorValues = {
|
|
|
10
11
|
export class InputColor {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.placeholder = 'Select color';
|
|
13
|
-
this.eyeDropperSupported =
|
|
14
|
-
this.colorInputElements = {
|
|
15
|
-
hex: null,
|
|
16
|
-
r: null,
|
|
17
|
-
g: null,
|
|
18
|
-
b: null,
|
|
19
|
-
a: null,
|
|
20
|
-
hue: null,
|
|
21
|
-
slGrid: null,
|
|
22
|
-
alpha: null,
|
|
23
|
-
};
|
|
14
|
+
this.eyeDropperSupported = false;
|
|
15
|
+
this.colorInputElements = {};
|
|
24
16
|
this.handleMove = (e) => {
|
|
25
|
-
const
|
|
17
|
+
const { slGrid } = this.colorInputElements;
|
|
18
|
+
if (!slGrid) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const rect = slGrid.getBoundingClientRect();
|
|
26
22
|
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
27
23
|
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
28
24
|
const x = Math.max(0, Math.min(clientX - rect.left, rect.width));
|
|
@@ -60,7 +56,6 @@ export class InputColor {
|
|
|
60
56
|
window.removeEventListener('touchend', this.stopDrag);
|
|
61
57
|
};
|
|
62
58
|
this.onHexInputChange = (event) => {
|
|
63
|
-
var _a;
|
|
64
59
|
const hex = event.detail ? event.detail.trim().replace(/#/g, '') : '';
|
|
65
60
|
if (hex) {
|
|
66
61
|
const [r, g, b] = hexToRgb(hex);
|
|
@@ -69,11 +64,11 @@ export class InputColor {
|
|
|
69
64
|
r,
|
|
70
65
|
g,
|
|
71
66
|
b,
|
|
72
|
-
a:
|
|
67
|
+
a: this.colorValues.a ?? 1,
|
|
73
68
|
};
|
|
74
69
|
}
|
|
75
70
|
else {
|
|
76
|
-
this.colorValues =
|
|
71
|
+
this.colorValues = { ...fallbackColorValues };
|
|
77
72
|
}
|
|
78
73
|
};
|
|
79
74
|
this.onRgbaInputChange = (el, event) => {
|
|
@@ -82,7 +77,7 @@ export class InputColor {
|
|
|
82
77
|
this.hasErrorState = `invalid value from ${el.name}: ${value}`;
|
|
83
78
|
return;
|
|
84
79
|
}
|
|
85
|
-
const newColor =
|
|
80
|
+
const newColor = { ...this.colorValues };
|
|
86
81
|
switch (el.name) {
|
|
87
82
|
case 'color-r-input':
|
|
88
83
|
newColor.r = value;
|
|
@@ -115,7 +110,10 @@ export class InputColor {
|
|
|
115
110
|
this.hue = value;
|
|
116
111
|
break;
|
|
117
112
|
case 'color-alpha-slider':
|
|
118
|
-
this.colorValues =
|
|
113
|
+
this.colorValues = {
|
|
114
|
+
...this.colorValues,
|
|
115
|
+
a: value,
|
|
116
|
+
};
|
|
119
117
|
break;
|
|
120
118
|
default:
|
|
121
119
|
this.hasErrorState = `unhandled input: ${el.name}`;
|
|
@@ -144,13 +142,13 @@ export class InputColor {
|
|
|
144
142
|
this.colorValues = stringToObjectColor(value);
|
|
145
143
|
this.hue = rgbToHsl(this.colorValues.r, this.colorValues.g, this.colorValues.b).hue;
|
|
146
144
|
}
|
|
147
|
-
catch
|
|
145
|
+
catch {
|
|
148
146
|
this.hasErrorState = 'invalid color format';
|
|
149
147
|
this.hue = 0;
|
|
150
148
|
}
|
|
151
149
|
}
|
|
152
150
|
else {
|
|
153
|
-
this.colorValues =
|
|
151
|
+
this.colorValues = { ...fallbackColorValues };
|
|
154
152
|
this.hasErrorState = null;
|
|
155
153
|
this.hue = 0;
|
|
156
154
|
}
|
|
@@ -159,26 +157,33 @@ export class InputColor {
|
|
|
159
157
|
this.syncColorFromValue(this.value);
|
|
160
158
|
}
|
|
161
159
|
componentDidLoad() {
|
|
160
|
+
if (isBrowser()) {
|
|
161
|
+
this.eyeDropperSupported = 'EyeDropper' in window;
|
|
162
|
+
}
|
|
162
163
|
const { r, g, b, a, hue, alpha, hex } = this.colorInputElements;
|
|
163
|
-
hex
|
|
164
|
+
hex?.addEventListener('valueChange', (e) => {
|
|
164
165
|
this.onHexInputChange(e);
|
|
165
166
|
e.stopPropagation();
|
|
166
167
|
});
|
|
167
168
|
[r, g, b, a].forEach((el) => {
|
|
168
|
-
el
|
|
169
|
+
el?.addEventListener('valueChange', (e) => {
|
|
169
170
|
this.onRgbaInputChange(el, e);
|
|
170
171
|
e.stopPropagation();
|
|
171
172
|
});
|
|
172
173
|
});
|
|
173
174
|
[hue, alpha].forEach((el) => {
|
|
174
|
-
el
|
|
175
|
+
el?.addEventListener('input', () => {
|
|
175
176
|
this.onSliderInputChange(el);
|
|
176
177
|
});
|
|
177
178
|
});
|
|
178
179
|
}
|
|
179
180
|
async openEyeDropper() {
|
|
180
181
|
try {
|
|
181
|
-
const
|
|
182
|
+
const EyeDropperConstructor = window.EyeDropper;
|
|
183
|
+
if (!EyeDropperConstructor) {
|
|
184
|
+
throw new Error('EyeDropper API is not available');
|
|
185
|
+
}
|
|
186
|
+
const eyeDropper = new EyeDropperConstructor();
|
|
182
187
|
const result = await eyeDropper.open();
|
|
183
188
|
this.colorValues = stringToObjectColor(result.sRGBHex);
|
|
184
189
|
}
|
|
@@ -195,27 +200,27 @@ export class InputColor {
|
|
|
195
200
|
top: `${y}px`,
|
|
196
201
|
background: `rgb(${r}, ${g}, ${b})`,
|
|
197
202
|
};
|
|
198
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: '02aa7baed3d45ad3a2e995f588c0915e3e348bfc', class: "xpl-input-color" }, h("xpl-popover", { key: '4739858b3b027f3d436c8fe84d62aa917d06ec5e', disabled: this.disabled, display: "menu" }, h("div", { key: '470b4bd07706693748829a25fc8499965581d48b', slot: "trigger" }, h("div", { key: '03a100cb1041eaa939c9db7c0574ac53bc639ef7', class: {
|
|
199
204
|
'xpl-input-color__display': true,
|
|
200
|
-
'xpl-input-color__display--disabled': this.disabled,
|
|
205
|
+
'xpl-input-color__display--disabled': !!this.disabled,
|
|
201
206
|
'xpl-input-color__display--error': !!this.hasErrorState,
|
|
202
|
-
} }, h("span", { key: '
|
|
207
|
+
} }, h("span", { key: '61594874f76b2f6da3befd6b7b6ff0136992c5d7', class: "xpl-input-color__color", style: {
|
|
203
208
|
background: objectToStringColor(this.colorValues),
|
|
204
|
-
} }), this.colorValues.hex ? (h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (h("xpl-icon", { key: '
|
|
209
|
+
} }), this.colorValues.hex ? (h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (h("xpl-icon", { key: 'e6997616cc18e0cec266b6029cfbee068744967c', size: 20, icon: "eye-dropper", class: "xpl-input-color__icon", onClick: (e) => {
|
|
205
210
|
e.stopPropagation();
|
|
206
211
|
this.openEyeDropper();
|
|
207
|
-
} })))), h("div", { key: '
|
|
208
|
-
this.colorInputElements.slGrid = el;
|
|
212
|
+
} })))), h("div", { key: '7253fbb77364e884b4eca04c705fda8875f16250', class: "xpl-input-color__menu" }, h("div", { key: '75a2f6545771354c1d5a6b01ada16a090ceb47e7', class: "xpl-input-color__sl-grid", ref: (el) => {
|
|
213
|
+
this.colorInputElements.slGrid = el ?? undefined;
|
|
209
214
|
}, style: {
|
|
210
215
|
background: [
|
|
211
216
|
`linear-gradient(to top, #000, #0000)`,
|
|
212
217
|
`linear-gradient(to right, #fff, #fff0)`,
|
|
213
218
|
`rgb(${hueBaseColor.r} ${hueBaseColor.g} ${hueBaseColor.b})`,
|
|
214
219
|
].join(', '),
|
|
215
|
-
}, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, h("div", { key: '
|
|
216
|
-
this.colorInputElements.hue = el;
|
|
217
|
-
} }), h("input", { key: '
|
|
218
|
-
this.colorInputElements.alpha = el;
|
|
220
|
+
}, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, h("div", { key: '363f0f591d7a9214e808e3374449492d1bb35096', class: "xpl-input-color__sl-thumb", style: slThumbStyle })), h("div", { key: '6c227329fac4c27e60e05fc4635adc9e11149289', class: "xpl-input-color__grid" }, h("input", { key: 'ae66886dcd2384b01146238ca90144b2aaa7d315', type: "range", min: "0", max: "360", value: this.hue, class: "xpl-input-color__slider xpl-input-color__hue", name: "color-hue-slider", ref: (el) => {
|
|
221
|
+
this.colorInputElements.hue = el ?? undefined;
|
|
222
|
+
} }), h("input", { key: 'fae631f4530dcabcef0e4ba748d7104d7539a573', type: "range", min: "0", max: "1", step: "0.01", value: a, class: "xpl-input-color__slider xpl-input-color__alpha", name: "color-alpha-slider", ref: (el) => {
|
|
223
|
+
this.colorInputElements.alpha = el ?? undefined;
|
|
219
224
|
}, style: {
|
|
220
225
|
backgroundImage: [
|
|
221
226
|
`linear-gradient(to right, rgb(${r} ${g} ${b} / 0) 0%, rgb(${r} ${g} ${b} / 1) 100%)`,
|
|
@@ -224,12 +229,16 @@ export class InputColor {
|
|
|
224
229
|
`linear-gradient(45deg, transparent 75%, #ccc 75%)`,
|
|
225
230
|
`linear-gradient(-45deg, transparent 75%, #ccc 75%)`,
|
|
226
231
|
].join(', '),
|
|
227
|
-
} }), h("div", { key: '
|
|
232
|
+
} }), h("div", { key: '01dcd22dc144e4b8a8288b7e4cde2fc781c4f8f0', class: "xpl-input-color__preview", style: {
|
|
228
233
|
background: `rgba(${r}, ${g}, ${b}, ${a})`,
|
|
229
|
-
} })), h("div", { key: '
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
234
|
+
} })), h("div", { key: '64e69fd55e9f7030ca1ee354e4c322d837d41993', class: "xpl-input-color__inputs" }, [
|
|
235
|
+
'hex',
|
|
236
|
+
'r',
|
|
237
|
+
'g',
|
|
238
|
+
'b',
|
|
239
|
+
'a',
|
|
240
|
+
].map((key) => (h("xpl-input", { key: key, label: key.toLocaleUpperCase(), name: `color-${key}-input`, placeholder: key === 'hex' ? '793EF7' : '0', value: String(this.colorValues[key]), ref: (elRef) => {
|
|
241
|
+
this.colorInputElements[key] = elRef ?? undefined;
|
|
233
242
|
} }))))))));
|
|
234
243
|
}
|
|
235
244
|
static get is() { return "xpl-input-color"; }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
2
|
import flatpickr from "flatpickr";
|
|
3
3
|
import { getNearestScrollableAncestor, isInsideFixedPosition, } from "../../../utils/layout-ancestors";
|
|
4
|
+
import { isBrowser } from "../../../utils/lifecycle";
|
|
4
5
|
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
|
|
5
6
|
? 'M0.557948 5.6813L6.06209 0.132167C6.23831 -0.0440556 6.52327 -0.0440556 6.69949 0.132167L7.44187 0.874551C7.61809 1.05077 7.61809 1.33573 7.44187 1.51195L2.99882 6L7.44187 10.488C7.61809 10.6643 7.61809 10.9492 7.44187 11.1254L6.69949 11.8678C6.52327 12.0441 6.23831 12.0441 6.06209 11.8678L0.557948 6.3187C0.381726 6.14248 0.381726 5.85752 0.557948 5.6813Z'
|
|
6
7
|
: 'M7.44187 6.3187L1.93773 11.8678C1.76151 12.0441 1.47655 12.0441 1.30033 11.8678L0.557948 11.1254C0.381726 10.9492 0.381726 10.6643 0.557948 10.488L5.001 6L0.557948 1.51195C0.381726 1.33573 0.381726 1.05077 0.557948 0.874551L1.30033 0.132167C1.47655 -0.0440556 1.76151 -0.0440556 1.93773 0.132167L7.44187 5.6813C7.6181 5.85752 7.6181 6.14248 7.44187 6.3187Z'}" /></svg>`;
|
|
@@ -18,15 +19,13 @@ export class InputDate {
|
|
|
18
19
|
this.hasErrorStateChanged.emit(newValue);
|
|
19
20
|
}
|
|
20
21
|
onValueChanged(newValue) {
|
|
21
|
-
|
|
22
|
-
(_a = this.flatpickrInstance) === null || _a === void 0 ? void 0 : _a.setDate(newValue);
|
|
22
|
+
this.flatpickrInstance?.setDate(newValue);
|
|
23
23
|
}
|
|
24
24
|
connectedCallback() {
|
|
25
25
|
queueMicrotask(() => this.ensureFlatpickr());
|
|
26
26
|
}
|
|
27
27
|
disconnectedCallback() {
|
|
28
|
-
|
|
29
|
-
(_a = this.flatpickrInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
28
|
+
this.flatpickrInstance?.destroy();
|
|
30
29
|
this.flatpickrInstance = undefined;
|
|
31
30
|
this.flatpickrStaticLayout = false;
|
|
32
31
|
this.unwrapStaleFlatpickrWrapper();
|
|
@@ -35,6 +34,9 @@ export class InputDate {
|
|
|
35
34
|
this.ensureFlatpickr();
|
|
36
35
|
}
|
|
37
36
|
ensureFlatpickr() {
|
|
37
|
+
if (!isBrowser()) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
38
40
|
if (this.flatpickrInstance || !this.input || !this.el.isConnected) {
|
|
39
41
|
return;
|
|
40
42
|
}
|
|
@@ -42,10 +44,24 @@ export class InputDate {
|
|
|
42
44
|
this.initFlatpickr();
|
|
43
45
|
}
|
|
44
46
|
initFlatpickr() {
|
|
47
|
+
const { input } = this;
|
|
48
|
+
if (!input) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
45
51
|
const insideFixed = isInsideFixedPosition(this.el);
|
|
46
|
-
this.flatpickrInstance = flatpickr(
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
this.flatpickrInstance = flatpickr(input, {
|
|
53
|
+
allowInput: true,
|
|
54
|
+
...(insideFixed
|
|
55
|
+
? { static: true }
|
|
56
|
+
: { appendTo: getNearestScrollableAncestor(this.el) }),
|
|
57
|
+
dateFormat: this.dateFormat,
|
|
58
|
+
defaultDate: this.value,
|
|
59
|
+
maxDate: this.max,
|
|
60
|
+
minDate: this.min,
|
|
61
|
+
mode: this.mode,
|
|
62
|
+
nextArrow: arrowSvg(),
|
|
63
|
+
prevArrow: arrowSvg(true),
|
|
64
|
+
onClose: (selectedDates) => {
|
|
49
65
|
const minRequiredDates = !this.required ? 0 : this.mode === 'single' ? 1 : 2;
|
|
50
66
|
this.hasErrorState = selectedDates.length < minRequiredDates ? 'required' : null;
|
|
51
67
|
if (selectedDates.length === 2) {
|
|
@@ -55,7 +71,8 @@ export class InputDate {
|
|
|
55
71
|
end,
|
|
56
72
|
});
|
|
57
73
|
}
|
|
58
|
-
}
|
|
74
|
+
},
|
|
75
|
+
});
|
|
59
76
|
queueMicrotask(() => {
|
|
60
77
|
if (this.flatpickrStaticLayout !== insideFixed) {
|
|
61
78
|
this.flatpickrStaticLayout = insideFixed;
|
|
@@ -64,8 +81,8 @@ export class InputDate {
|
|
|
64
81
|
}
|
|
65
82
|
unwrapStaleFlatpickrWrapper() {
|
|
66
83
|
const { input } = this;
|
|
67
|
-
const wrapper = input
|
|
68
|
-
if (!
|
|
84
|
+
const wrapper = input?.parentElement;
|
|
85
|
+
if (!wrapper?.classList.contains('flatpickr-wrapper')) {
|
|
69
86
|
return;
|
|
70
87
|
}
|
|
71
88
|
const parent = wrapper.parentElement;
|
|
@@ -78,16 +95,16 @@ export class InputDate {
|
|
|
78
95
|
parent.removeChild(wrapper);
|
|
79
96
|
}
|
|
80
97
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: 'ed469d24ccc404df6d361338c6f34b9a902c2a67', class: {
|
|
82
99
|
'xpl-input-date': true,
|
|
83
100
|
[`xpl-input-date--mode-${this.mode}`]: true,
|
|
84
101
|
'xpl-input-date--error': !!this.hasErrorState,
|
|
85
102
|
'xpl-input-date--flatpickr-static': this.flatpickrStaticLayout,
|
|
86
|
-
} }, h("div", { key: '
|
|
87
|
-
this.input = el;
|
|
103
|
+
} }, h("div", { key: 'ab4798bd6bb4be6495050504eb8a606d80fe84dc', class: "xpl-input-wrapper" }, this.pre && (h("label", { key: '4bf483491d4a688564f745ef75b770e741177599', class: "xpl-input-pre", htmlFor: this.inputId }, this.pre)), h("input", { key: '99030b75c8fe9bb681d9d3c4ea44b16346316c7c', type: "date", id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, ref: (el) => {
|
|
104
|
+
this.input = el ?? undefined;
|
|
88
105
|
}, onChange: (event) => {
|
|
89
106
|
this.valueChanged(event);
|
|
90
|
-
} }), h("xpl-icon", { key: '
|
|
107
|
+
} }), h("xpl-icon", { key: 'fb4de593bb36664cd8f95518b5da622df545e437', class: "xpl-input-calendar", icon: "calendar", size: 24 }), this.post && (h("label", { key: '6835c6b4832918efa513e57c62ec5326f63d8c36', class: "xpl-input-post", htmlFor: this.inputId }, this.post)))));
|
|
91
108
|
}
|
|
92
109
|
static get is() { return "xpl-input-date"; }
|
|
93
110
|
static get properties() {
|
|
@@ -8,18 +8,17 @@ export class InputFile {
|
|
|
8
8
|
this.hideAcceptText = false;
|
|
9
9
|
this.files = null;
|
|
10
10
|
this.openFileDialog = () => {
|
|
11
|
-
var _a;
|
|
12
11
|
if (this.disabled) {
|
|
13
12
|
return;
|
|
14
13
|
}
|
|
15
|
-
|
|
14
|
+
this.fileInput?.click();
|
|
16
15
|
};
|
|
17
16
|
this.handleFileChange = (event) => {
|
|
18
17
|
const target = event.target;
|
|
19
|
-
this.files = Array.from(target.files);
|
|
18
|
+
this.files = target.files ? Array.from(target.files) : null;
|
|
20
19
|
};
|
|
21
20
|
this.onRemoveFileByIndex = (fileIndex) => {
|
|
22
|
-
this.files = this.files.filter((_, i) => i !== fileIndex);
|
|
21
|
+
this.files = (this.files ?? []).filter((_, i) => i !== fileIndex);
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
24
|
onFilesChange(newFiles) {
|
|
@@ -32,20 +31,19 @@ export class InputFile {
|
|
|
32
31
|
this.onRemoveFileByIndex(fileIndex);
|
|
33
32
|
}
|
|
34
33
|
render() {
|
|
35
|
-
|
|
36
|
-
return (h(Host, { key: '579d1ec1094bc5b1aeec622996694728fb1facca', class: {
|
|
34
|
+
return (h(Host, { key: '62b134a3517ea8e5d9c0ba8a0f0c0ba56413a05b', class: {
|
|
37
35
|
'xpl-input-file': true,
|
|
38
|
-
'xpl-input-file--hide-trigger-on-select': this.hideTriggerOnSelect,
|
|
39
|
-
'xpl-input-file--disabled': this.disabled,
|
|
40
|
-
} }, h("span", { key: '
|
|
36
|
+
'xpl-input-file--hide-trigger-on-select': !!this.hideTriggerOnSelect,
|
|
37
|
+
'xpl-input-file--disabled': !!this.disabled,
|
|
38
|
+
} }, h("span", { key: '8f3aa455cf7fe9f27dbab609969dfac1bf4b1a3a', class: {
|
|
41
39
|
'xpl-input-file__trigger-wrapper': true,
|
|
42
|
-
'xpl-input-file__trigger-wrapper--hidden': this.hideTriggerOnSelect && (
|
|
43
|
-
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, h("slot", { key: '
|
|
40
|
+
'xpl-input-file__trigger-wrapper--hidden': !!this.hideTriggerOnSelect && (this.files?.length ?? 0) > 0,
|
|
41
|
+
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, h("slot", { key: '3d5d42f659cd78b9f54e008113a2ff99ddaa4a03', name: "trigger" })), (this.files?.length ?? 0) > 0 && !this.hideFileNames && (h("ul", { key: 'd827f178ba04e03d8879b1cf81674226b3f265c7', class: "xpl-input-file__file-list" }, (this.files ?? []).map((file, fileIndex) => (h("li", { class: "xpl-input-file__file-item" }, h("span", { class: "xpl-input-file__file-name" }, file.name), h("xpl-icon", { icon: "x-circle", size: 24, onClick: (e) => {
|
|
44
42
|
e.preventDefault();
|
|
45
43
|
e.stopPropagation();
|
|
46
44
|
this.onRemoveFileByIndex(fileIndex);
|
|
47
|
-
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (h("span", { key: '
|
|
48
|
-
this.fileInput = el;
|
|
45
|
+
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (h("span", { key: '3bc1ab3c72d4039a2635b9ceb4a22f4a98875632', class: "xpl-input-file__accept" }, "Accepted file types: ", this.accept)), h("input", { key: '23f6d50b87fe8e4b315670c73565bc50ca592ed5', onChange: this.handleFileChange, type: "file", ref: (el) => {
|
|
46
|
+
this.fileInput = el ?? undefined;
|
|
49
47
|
}, hidden: true, accept: this.accept, multiple: this.multiple, name: this.name })));
|
|
50
48
|
}
|
|
51
49
|
static get is() { return "xpl-input-file"; }
|
|
@@ -22,10 +22,9 @@ export class InputPhone {
|
|
|
22
22
|
this.dropdownOpen = !this.dropdownOpen;
|
|
23
23
|
};
|
|
24
24
|
this.handleNumberInput = (ev) => {
|
|
25
|
-
var _a;
|
|
26
25
|
const target = ev.target;
|
|
27
26
|
const raw = target.value || '';
|
|
28
|
-
this.lastCursorRef =
|
|
27
|
+
this.lastCursorRef = target.selectionStart ?? 0;
|
|
29
28
|
this.lastFormattedRef = raw;
|
|
30
29
|
let nationalDigits;
|
|
31
30
|
if (this.isInternational && raw.startsWith('+')) {
|
|
@@ -48,26 +47,24 @@ export class InputPhone {
|
|
|
48
47
|
target.value = this.displayValue;
|
|
49
48
|
};
|
|
50
49
|
this.handleClear = () => {
|
|
51
|
-
var _a;
|
|
52
50
|
this.nationalNumber = '';
|
|
53
51
|
this.emitValue();
|
|
54
|
-
|
|
52
|
+
this.inputEl?.focus();
|
|
55
53
|
};
|
|
56
54
|
this.handleDropdownUpdate = (_e, { component }) => {
|
|
57
|
-
|
|
58
|
-
const dropdown = component !== null && component !== void 0 ? component : this.dropdownRef;
|
|
55
|
+
const dropdown = component ?? this.dropdownRef;
|
|
59
56
|
if (!dropdown)
|
|
60
57
|
return;
|
|
61
58
|
const { options } = dropdown;
|
|
62
|
-
if (options
|
|
63
|
-
const flat = options.reduce((acc, curr) =>
|
|
59
|
+
if (options?.length) {
|
|
60
|
+
const flat = options.reduce((acc, curr) => [...acc, ...(curr.groupName ? (curr.options ?? []) : [curr])], []);
|
|
64
61
|
const selected = flat.find((o) => o.isSelected);
|
|
65
|
-
if (selected
|
|
62
|
+
if (selected?.value) {
|
|
66
63
|
const country = getCountryByCode(selected.value);
|
|
67
64
|
if (country) {
|
|
68
65
|
this.selectedCountry = country;
|
|
69
66
|
this.emitValue();
|
|
70
|
-
|
|
67
|
+
this.inputEl?.focus();
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
}
|
|
@@ -82,21 +79,21 @@ export class InputPhone {
|
|
|
82
79
|
this.hasErrorStateChanged.emit(newValue);
|
|
83
80
|
}
|
|
84
81
|
onValueChange(newValue) {
|
|
85
|
-
var _a, _b;
|
|
86
82
|
if (newValue == null || newValue === '') {
|
|
87
|
-
const country = getCountryByCode(this.defaultCountry) || PHONE_COUNTRIES[0];
|
|
83
|
+
const country = getCountryByCode(this.defaultCountry ?? 'US') || PHONE_COUNTRIES[0];
|
|
88
84
|
this.selectedCountry = country;
|
|
89
85
|
this.nationalNumber = '';
|
|
90
86
|
return;
|
|
91
87
|
}
|
|
92
88
|
const parsed = parseE164(newValue);
|
|
93
89
|
if (parsed) {
|
|
94
|
-
if (
|
|
90
|
+
if (this.selectedCountry?.dialCode === parsed.dialCode) {
|
|
95
91
|
this.nationalNumber = parsed.nationalNumber;
|
|
96
92
|
}
|
|
97
93
|
else {
|
|
98
|
-
const defaultForCode = getCountryByCode(this.defaultCountry);
|
|
99
|
-
const country = (
|
|
94
|
+
const defaultForCode = getCountryByCode(this.defaultCountry ?? 'US');
|
|
95
|
+
const country = (defaultForCode?.dialCode === parsed.dialCode ? defaultForCode : undefined) ??
|
|
96
|
+
getCountryByDialCode(parsed.dialCode);
|
|
100
97
|
if (country) {
|
|
101
98
|
this.selectedCountry = country;
|
|
102
99
|
this.nationalNumber = parsed.nationalNumber;
|
|
@@ -104,7 +101,8 @@ export class InputPhone {
|
|
|
104
101
|
}
|
|
105
102
|
}
|
|
106
103
|
else if (!this.selectedCountry) {
|
|
107
|
-
this.selectedCountry =
|
|
104
|
+
this.selectedCountry =
|
|
105
|
+
getCountryByCode(this.defaultCountry ?? 'US') || PHONE_COUNTRIES[0];
|
|
108
106
|
}
|
|
109
107
|
}
|
|
110
108
|
componentWillLoad() {
|
|
@@ -112,7 +110,8 @@ export class InputPhone {
|
|
|
112
110
|
this.onValueChange(this.value);
|
|
113
111
|
}
|
|
114
112
|
else {
|
|
115
|
-
this.selectedCountry =
|
|
113
|
+
this.selectedCountry =
|
|
114
|
+
getCountryByCode(this.defaultCountry ?? 'US') || PHONE_COUNTRIES[0];
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
componentDidUpdate() {
|
|
@@ -129,12 +128,10 @@ export class InputPhone {
|
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
get effectiveCountryCode() {
|
|
132
|
-
|
|
133
|
-
return (_c = (_b = (_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode) !== null && _b !== void 0 ? _b : this.defaultCountry) !== null && _c !== void 0 ? _c : 'US';
|
|
131
|
+
return this.selectedCountry?.countryCode ?? this.defaultCountry ?? 'US';
|
|
134
132
|
}
|
|
135
133
|
get effectiveDialCode() {
|
|
136
|
-
|
|
137
|
-
return (_b = (_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.dialCode) !== null && _b !== void 0 ? _b : '+1';
|
|
134
|
+
return this.selectedCountry?.dialCode ?? '+1';
|
|
138
135
|
}
|
|
139
136
|
get isEditable() {
|
|
140
137
|
return !this.disabled && !this.readonly;
|
|
@@ -142,7 +139,12 @@ export class InputPhone {
|
|
|
142
139
|
get orderedCountries() {
|
|
143
140
|
const preferred = this.preferredCountries || [];
|
|
144
141
|
const rest = PHONE_COUNTRIES.filter((c) => !preferred.includes(c.countryCode));
|
|
145
|
-
return [
|
|
142
|
+
return [
|
|
143
|
+
...preferred
|
|
144
|
+
.map((code) => getCountryByCode(code))
|
|
145
|
+
.filter((country) => country !== undefined),
|
|
146
|
+
...rest,
|
|
147
|
+
];
|
|
146
148
|
}
|
|
147
149
|
get filteredCountries() {
|
|
148
150
|
const q = this.searchQuery.trim().toLowerCase();
|
|
@@ -166,15 +168,12 @@ export class InputPhone {
|
|
|
166
168
|
return getPlaceholderPattern(country.countryCode);
|
|
167
169
|
}
|
|
168
170
|
get dropdownOptions() {
|
|
169
|
-
return this.filteredCountries.map((c) => {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
isSelected: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode) === c.countryCode,
|
|
176
|
-
});
|
|
177
|
-
});
|
|
171
|
+
return this.filteredCountries.map((c) => ({
|
|
172
|
+
icon: getCountryIconName(c.name),
|
|
173
|
+
label: `${c.name} (${c.dialCode})`,
|
|
174
|
+
value: c.countryCode,
|
|
175
|
+
isSelected: this.selectedCountry?.countryCode === c.countryCode,
|
|
176
|
+
}));
|
|
178
177
|
}
|
|
179
178
|
get maxInputLength() {
|
|
180
179
|
const maxNationalDigits = getMaxNationalNumberLength(this.effectiveCountryCode);
|
|
@@ -195,22 +194,20 @@ export class InputPhone {
|
|
|
195
194
|
this.hasErrorState = null;
|
|
196
195
|
}
|
|
197
196
|
render() {
|
|
198
|
-
|
|
199
|
-
return (h(Host, { key: '894f6acde4dea6d5640d4e51bc4e9bbe82d9d3ea', class: {
|
|
197
|
+
return (h(Host, { key: 'c180c62687c5d1b9c9f31400df8b76475ffe821e', class: {
|
|
200
198
|
'xpl-input-phone': true,
|
|
201
199
|
'xpl-input-phone--error': !!this.hasErrorState || !!this.error,
|
|
202
200
|
'xpl-input-phone--open': this.dropdownOpen,
|
|
203
201
|
'xpl-input-phone--domestic': !this.isInternational,
|
|
204
|
-
} }, h("div", { key: '
|
|
205
|
-
this.inputEl = el;
|
|
206
|
-
}, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState || this.error ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (h("button", { key: '
|
|
207
|
-
this.dropdownRef = el;
|
|
202
|
+
} }, h("div", { key: 'ea5b833f60f7bac459ef6362091a15beac015dec', class: "xpl-input-wrapper" }, this.isInternational && (h("button", { key: '6e0d7b18dc7784ffcadcc13500c02bbec1977b90', type: "button", id: this.triggerId, class: "xpl-input-phone__trigger", disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpen ? 'true' : 'false', "aria-label": "Select country", onClick: this.handleTriggerClick }, this.selectedCountry?.name && (h("xpl-icon", { key: '038a87158d9417ad9889e3b0a94cd63bc16f5538', class: "xpl-input-phone__flag", icon: getCountryIconName(this.selectedCountry.name), size: 24, "aria-hidden": "true" })), h("xpl-icon", { key: '5434d2645e31bd30207c26f8e0a5004c00c699c6', class: "xpl-input-phone__trigger-icon", icon: "chevron-down", size: 20, "aria-hidden": "true" }))), h("div", { key: '623f1b49c156614a40cee574e1a41c2d09014e2b', class: "xpl-input-phone__input-wrap" }, this.isInternational && (h("span", { key: '535313ab4c84a989b0bedfe07bbd080ffaa4b76b', class: "xpl-input-phone__dial-code" }, this.effectiveDialCode)), h("input", { key: 'e9f03ca04b18fab0f9e6407f3686e43a072a3d81', ref: (el) => {
|
|
203
|
+
this.inputEl = el ?? undefined;
|
|
204
|
+
}, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState || this.error ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (h("button", { key: '9e52b938631e3414225506cf13a50129e4046bd1', type: "button", class: "xpl-input-phone__clear", "aria-label": "Clear phone number", onClick: this.handleClear }, h("xpl-icon", { key: 'd7fa5c395ac0677db31405b2406ec33c1aef8d7d', icon: "x-circle", size: 16 }))))), this.isInternational && this.isEditable && (h("xpl-dropdown", { key: '1df1f72efa719f230e582e57c62f62eff98abfc8', ref: (el) => {
|
|
205
|
+
this.dropdownRef = el ?? undefined;
|
|
208
206
|
}, isOpen: this.dropdownOpen, triggerId: this.triggerId, anchorToTrigger: true, closeOnSelect: true, mode: "single", options: this.dropdownOptions, update: this.handleDropdownUpdate, onIsOpenChange: (e) => {
|
|
209
207
|
this.dropdownOpen = e.detail;
|
|
210
|
-
}, "aria-label": "Country" }, h("div", { key: '
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
} }, h("xpl-icon", { key: 'fa51061eb3617c3f55485cff16dbc1e307d98f08', slot: "pre", class: "xpl-input-phone__search-icon", icon: "magnifier", size: 20 })))))));
|
|
208
|
+
}, "aria-label": "Country" }, h("div", { key: 'ce221f1de83d5cce87162c316aa3e64fbb0396a5', slot: "header", class: "xpl-input-phone__search-wrap" }, h("xpl-input", { key: '884815148c6827573b8a7584bb06eb8cfeaa9976', class: "xpl-input-phone__search", type: "text", label: "", placeholder: "Search", value: this.searchQuery, autocomplete: "off", onInputEvent: (e) => {
|
|
209
|
+
this.searchQuery = e.detail ?? '';
|
|
210
|
+
} }, h("xpl-icon", { key: '9edff232287061494d5b8af93885c2a12fbe969b', slot: "pre", class: "xpl-input-phone__search-icon", icon: "magnifier", size: 20 })))))));
|
|
214
211
|
}
|
|
215
212
|
static get is() { return "xpl-input-phone"; }
|
|
216
213
|
static get properties() {
|
|
@@ -20,7 +20,6 @@ export class InputSearch {
|
|
|
20
20
|
this.emitSearchCommit(this.value.trim());
|
|
21
21
|
};
|
|
22
22
|
this.handleClear = (event) => {
|
|
23
|
-
var _a;
|
|
24
23
|
event.preventDefault();
|
|
25
24
|
if (this.disabled || this.readonly) {
|
|
26
25
|
return;
|
|
@@ -28,7 +27,7 @@ export class InputSearch {
|
|
|
28
27
|
this.value = '';
|
|
29
28
|
this.valueChange.emit('');
|
|
30
29
|
this.inputEvent.emit('');
|
|
31
|
-
|
|
30
|
+
this.inputEl?.focus();
|
|
32
31
|
};
|
|
33
32
|
this.handleInput = (event) => {
|
|
34
33
|
const target = event.target;
|
|
@@ -60,8 +59,7 @@ export class InputSearch {
|
|
|
60
59
|
this.syncAncestorFormFlag();
|
|
61
60
|
}
|
|
62
61
|
async setFocus() {
|
|
63
|
-
|
|
64
|
-
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
62
|
+
this.inputEl?.focus();
|
|
65
63
|
}
|
|
66
64
|
syncAncestorFormFlag() {
|
|
67
65
|
const root = this.el;
|
|
@@ -74,11 +72,10 @@ export class InputSearch {
|
|
|
74
72
|
return this.value !== undefined && this.value.length > 0;
|
|
75
73
|
}
|
|
76
74
|
get resolvedInputAriaLabel() {
|
|
77
|
-
var _a;
|
|
78
75
|
if (this.hasVisibleLabel) {
|
|
79
76
|
return undefined;
|
|
80
77
|
}
|
|
81
|
-
return (
|
|
78
|
+
return (this.ariaLabel ?? '').trim() || 'Search';
|
|
82
79
|
}
|
|
83
80
|
get rendersInnerSearchForm() {
|
|
84
81
|
return !this.hasAncestorForm;
|
|
@@ -88,7 +85,7 @@ export class InputSearch {
|
|
|
88
85
|
}
|
|
89
86
|
renderShell() {
|
|
90
87
|
const shell = (h("div", { class: "xpl-input-search__shell" }, h("span", { class: "xpl-input-search__icon", "aria-hidden": "true" }, h("xpl-icon", { icon: "magnifier", size: 20 })), h("input", { "aria-describedby": this.hasError ? this.errorMessageId : undefined, "aria-invalid": this.hasError ? 'true' : undefined, "aria-label": this.resolvedInputAriaLabel, autocomplete: this.autocomplete, class: "xpl-input-search__input", disabled: this.disabled, id: this.inputId, name: this.name, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
|
|
91
|
-
this.inputEl = el
|
|
88
|
+
this.inputEl = el ?? undefined;
|
|
92
89
|
}, required: this.required, role: "searchbox", type: "text", value: this.value }), h("button", { "aria-hidden": this.hasValue ? undefined : 'true', "aria-label": "Clear search", class: "xpl-input-search__clear", disabled: this.disabled || this.readonly, onClick: this.handleClear, type: "button" }, h("xpl-icon", { icon: "circle-xmark", size: 16 }))));
|
|
93
90
|
if (this.rendersInnerSearchForm) {
|
|
94
91
|
return (h("form", { class: "xpl-input-search__form", onSubmit: this.handleInnerFormSubmit }, shell));
|
|
@@ -96,7 +93,7 @@ export class InputSearch {
|
|
|
96
93
|
return shell;
|
|
97
94
|
}
|
|
98
95
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '017e5d3958dccf6ca1096cd623ffd49b302a5ab3', class: {
|
|
100
97
|
'xpl-input-search': true,
|
|
101
98
|
'xpl-input-search--disabled': this.disabled,
|
|
102
99
|
'xpl-input-search--error': this.hasError,
|