@xplortech/apollo-core 2.11.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.typings/apollo-components.html-data.json +160 -10
- package/AGENTS.md +29 -5
- package/README.md +42 -3
- package/build/components/accordion.css +1 -0
- package/build/components/application-shell.css +1 -0
- package/build/components/avatar.css +1 -0
- package/build/components/backdrop.css +1 -0
- package/build/components/badge.css +1 -0
- package/build/components/banner.css +1 -0
- package/build/components/breadcrumbs.css +1 -0
- package/build/components/button-row.css +1 -0
- package/build/components/button.css +1 -0
- package/build/components/calendar.css +1 -0
- package/build/components/checkbox-radio.css +1 -0
- package/build/components/choicelist.css +1 -0
- package/build/components/content-area.css +1 -0
- package/build/components/dashboard.css +1 -0
- package/build/components/data-card.css +1 -0
- package/build/components/divider.css +1 -0
- package/build/components/dropdown.css +1 -0
- package/build/components/dynamic-table-cell.css +1 -0
- package/build/components/dynamic-table-row.css +1 -0
- package/build/components/dynamic-table.css +1 -0
- package/build/components/grid.css +1 -0
- package/build/components/header-accordion.css +1 -0
- package/build/components/icon.css +1 -0
- package/build/components/input-color.css +1 -0
- package/build/components/input-date.css +1 -0
- package/build/components/input-file.css +1 -0
- package/build/components/input-phone.css +1 -0
- package/build/components/input-search.css +1 -0
- package/build/components/input-time.css +1 -0
- package/build/components/input.css +1 -0
- package/build/components/label.css +1 -0
- package/build/components/large-card.css +1 -0
- package/build/components/list-action.css +1 -0
- package/build/components/list-item.css +1 -0
- package/build/components/list.css +1 -0
- package/build/components/main-nav.css +1 -0
- package/build/components/modal.css +1 -0
- package/build/components/nav-item.css +1 -0
- package/build/components/pagination.css +1 -0
- package/build/components/panel.css +1 -0
- package/build/components/popover.css +1 -0
- package/build/components/progress-bar.css +1 -0
- package/build/components/progress-indicator.css +1 -0
- package/build/components/secondary-nav.css +1 -0
- package/build/components/select.css +1 -0
- package/build/components/side-nav.css +1 -0
- package/build/components/skeleton.css +1 -0
- package/build/components/slideout.css +1 -0
- package/build/components/spotlight.css +1 -0
- package/build/components/table-body.css +1 -0
- package/build/components/table-footer-cell.css +1 -0
- package/build/components/table-footer.css +1 -0
- package/build/components/table-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table-row.css +1 -0
- package/build/components/table.css +1 -0
- package/build/components/tabs.css +1 -0
- package/build/components/tag.css +1 -0
- package/build/components/toast.css +1 -0
- package/build/components/toggle.css +1 -0
- package/build/components/toolbar.css +1 -0
- package/build/components/tooltip.css +1 -0
- package/build/components/top-nav.css +1 -0
- package/build/components/utility-bar.css +1 -0
- package/build/components-manifest.json +232 -0
- package/build/core.css +2 -0
- package/build/reset.css +394 -0
- package/build/style.css +2 -13345
- package/build/tailwind-theme.css +2 -0
- package/build/typography.css +1 -0
- package/build/variables/apollo.css +779 -0
- package/build/variables/field-edge.css +554 -0
- package/build/vendor/flatpickr.css +1 -0
- package/dist/apollo-core/apollo-core.css +2 -55
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0368a1df.entry.js +1 -0
- package/dist/apollo-core/p-056a99e4.entry.js +1 -0
- package/dist/apollo-core/p-068e3532.entry.js +1 -0
- package/dist/apollo-core/p-06a9a27b.entry.js +1 -0
- package/dist/apollo-core/p-0958c719.entry.js +1 -0
- package/dist/apollo-core/p-0a0a6e43.entry.js +1 -0
- package/dist/apollo-core/p-149ddd12.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a94c2d9.entry.js +1 -0
- package/dist/apollo-core/p-2139f9f6.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-28bce81a.entry.js +1 -0
- package/dist/apollo-core/p-2938ab4f.entry.js +1 -0
- package/dist/apollo-core/p-2c995d80.entry.js +1 -0
- package/dist/apollo-core/p-2faa7b9c.entry.js +1 -0
- package/dist/apollo-core/p-30b1b700.entry.js +1 -0
- package/dist/apollo-core/p-32084caf.entry.js +1 -0
- package/dist/apollo-core/p-38586952.entry.js +1 -0
- package/dist/apollo-core/p-47bda204.entry.js +1 -0
- package/dist/apollo-core/p-4a2323b3.entry.js +1 -0
- package/dist/apollo-core/p-4ad79534.entry.js +1 -0
- package/dist/apollo-core/p-4d4acd1f.entry.js +1 -0
- package/dist/apollo-core/p-50fae269.entry.js +1 -0
- package/dist/apollo-core/p-54903322.entry.js +1 -0
- package/dist/apollo-core/p-5730d96c.entry.js +1 -0
- package/dist/apollo-core/p-581b702c.entry.js +1 -0
- package/dist/apollo-core/p-5d9a593e.entry.js +1 -0
- package/dist/apollo-core/p-60cb3cfb.entry.js +1 -0
- package/dist/apollo-core/p-722b145a.entry.js +1 -0
- package/dist/apollo-core/p-75e5bfe0.entry.js +1 -0
- package/dist/apollo-core/p-77fe3cc1.entry.js +1 -0
- package/dist/apollo-core/p-790709c0.entry.js +1 -0
- package/dist/apollo-core/p-82812126.entry.js +1 -0
- package/dist/apollo-core/p-83bb7607.entry.js +1 -0
- package/dist/apollo-core/p-8664d88b.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-9064badb.entry.js +1 -0
- package/dist/apollo-core/p-91895c40.entry.js +1 -0
- package/dist/apollo-core/p-969d5cca.entry.js +1 -0
- package/dist/apollo-core/p-99a79cf4.entry.js +1 -0
- package/dist/apollo-core/p-BFTU3MAI.js +1 -0
- package/dist/apollo-core/p-BQtbf88X.js +1 -0
- package/dist/apollo-core/p-CWdQxaaX.js +1 -0
- package/dist/apollo-core/p-C_PEOQWj.js +1 -0
- package/dist/apollo-core/p-CzwViN3U.js +1 -0
- package/dist/apollo-core/p-DkqlawVY.js +1 -0
- package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
- package/dist/apollo-core/p-_r9-FML8.js +1 -0
- package/dist/apollo-core/p-a0d3b7f8.entry.js +1 -0
- package/dist/apollo-core/p-abdf199b.entry.js +1 -0
- package/dist/apollo-core/p-ae8a5f66.entry.js +1 -0
- package/dist/apollo-core/p-af8ebf49.entry.js +1 -0
- package/dist/apollo-core/p-b29025b2.entry.js +1 -0
- package/dist/apollo-core/p-b45179fb.entry.js +1 -0
- package/dist/apollo-core/p-b5a61076.entry.js +1 -0
- package/dist/apollo-core/p-bf7d8e18.entry.js +1 -0
- package/dist/apollo-core/p-c48e4884.entry.js +1 -0
- package/dist/apollo-core/p-ca4652b3.entry.js +1 -0
- package/dist/apollo-core/p-cb5b15c2.entry.js +1 -0
- package/dist/apollo-core/p-cc57f20d.entry.js +1 -0
- package/dist/apollo-core/p-cdacfcd4.entry.js +1 -0
- package/dist/apollo-core/p-cdb5b5c4.entry.js +1 -0
- package/dist/apollo-core/p-d0bc7c45.entry.js +1 -0
- package/dist/apollo-core/p-d41b8f46.entry.js +1 -0
- package/dist/apollo-core/p-d443291f.entry.js +1 -0
- package/dist/apollo-core/p-d724c419.entry.js +1 -0
- package/dist/apollo-core/p-d9070ae5.entry.js +1 -0
- package/dist/apollo-core/p-dca48977.entry.js +1 -0
- package/dist/apollo-core/p-e1833287.entry.js +1 -0
- package/dist/apollo-core/p-e2890eb1.entry.js +1 -0
- package/dist/apollo-core/p-e2b73b60.entry.js +1 -0
- package/dist/apollo-core/p-e7e445b0.entry.js +1 -0
- package/dist/apollo-core/p-f1c103ff.entry.js +1 -0
- package/dist/apollo-core/p-f3a2c79b.entry.js +1 -0
- package/dist/apollo-core/p-ffc2f0cf.entry.js +1 -0
- package/dist/apollo-core/p-ukZKsqqq.js +2 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
- package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +772 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/{lifecycle-Bf3QwiVa.js → lifecycle-DeSsFfQZ.js} +4 -0
- package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
- package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
- package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
- package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +211 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
- package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +81 -0
- package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
- package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
- package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
- package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +580 -0
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
- package/dist/cjs/{xpl-avatar_54.cjs.entry.js → xpl-icon.cjs.entry.js} +1174 -10592
- package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
- package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
- package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
- package/dist/cjs/xpl-input_4.cjs.entry.js +525 -0
- package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
- package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
- package/dist/cjs/xpl-list.cjs.entry.js +396 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +107 -0
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
- package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
- package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
- package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
- package/dist/cjs/xpl-side-nav.cjs.entry.js +276 -0
- package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
- package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
- package/dist/cjs/xpl-table-body.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-footer-cell.cjs.entry.js +18 -0
- package/dist/cjs/xpl-table-footer.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +5 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-row.cjs.entry.js +20 -0
- package/dist/cjs/xpl-table.cjs.entry.js +185 -0
- package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
- package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +16 -22
- package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +13 -16
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/xpl-button.js +17 -14
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +9 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +113 -118
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
- package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +16 -10
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
- package/dist/collection/components/xpl-input/xpl-input.js +73 -40
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
- package/dist/collection/components/xpl-list/xpl-list.js +21 -26
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +61 -19
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.shared.js +82 -0
- package/dist/collection/components/xpl-select/xpl-select.js +91 -49
- package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +80 -13
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
- package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +37 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +78 -0
- package/dist/collection/components/xpl-table/xpl-table.js +52 -36
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/tabs.shared.js +75 -50
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +11 -5
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +50 -32
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +13 -18
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +96 -34
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/collection/utils/floating.js +69 -0
- package/dist/collection/utils/layout-ancestors.js +7 -0
- package/dist/collection/utils/lifecycle.js +13 -10
- package/dist/collection/utils/light-dom-slots.js +15 -0
- package/dist/collection/utils/slot-presence.js +6 -0
- package/dist/collection/utils/ssr-known-mismatches.js +50 -0
- package/dist/collection/utils/tab-a11y-ids.js +1 -2
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/{p-BxHFEnPN.js → p-9VnxPQLs.js} +1 -1
- package/dist/components/p-B2oLZUDD.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BYYFsuD3.js +1 -0
- package/dist/components/p-BZtxVB1R.js +1 -0
- package/dist/components/p-BdpZR4KO.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-Chpgh5SL.js +1 -0
- package/dist/components/p-CiHTfk3E.js +1 -0
- package/dist/components/p-CnVGKN63.js +1 -0
- package/dist/components/p-Cz7zDaI4.js +1 -0
- package/dist/components/p-D--kzomA.js +1 -0
- package/dist/components/p-D4rv6CNJ.js +1 -0
- package/dist/components/p-DAb-txW3.js +1 -0
- package/dist/components/p-DYmvElhR.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-EfW0v54z.js +1 -0
- package/dist/components/p-JyNpXfDe.js +1 -0
- package/dist/components/p-U0JYwf4c.js +1 -0
- package/dist/components/p-YG9Jza0y.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-ByJRw26d.js → p-l3EZ-agL.js} +1 -1
- package/dist/components/p-oIn1krdu.js +1 -0
- package/dist/components/p-wIU7KUhA.js +1 -0
- package/dist/components/p-xFsB212F.js +1 -0
- package/dist/components/p-xtOHikY0.js +1 -0
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-header-item.js +1 -0
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.d.ts +11 -0
- package/dist/components/xpl-side-nav-section.js +1 -0
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-body.d.ts +11 -0
- package/dist/components/xpl-table-body.js +1 -0
- package/dist/components/xpl-table-footer-cell.d.ts +11 -0
- package/dist/components/xpl-table-footer-cell.js +1 -0
- package/dist/components/xpl-table-footer.d.ts +11 -0
- package/dist/components/xpl-table-footer.js +1 -0
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.d.ts +11 -0
- package/dist/components/xpl-table-row.js +1 -0
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-backdrop/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +2 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
- package/dist/docs/xpl-button/readme.md +4 -2
- package/dist/docs/xpl-checkbox/readme.md +12 -0
- package/dist/docs/xpl-choicelist/readme.md +21 -0
- package/dist/docs/xpl-content-area/readme.md +8 -0
- package/dist/docs/xpl-data-card/readme.md +26 -0
- package/dist/docs/xpl-dropdown/readme.md +32 -6
- package/dist/docs/xpl-dynamic-table/readme.md +35 -0
- package/dist/docs/xpl-header-accordion/readme.md +18 -0
- package/dist/docs/xpl-icon/readme.md +21 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
- package/dist/docs/xpl-large-card/readme.md +18 -0
- package/dist/docs/xpl-list/readme.md +2 -2
- package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
- package/dist/docs/xpl-main-nav/readme.md +16 -0
- package/dist/docs/xpl-modal/readme.md +38 -2
- package/dist/docs/xpl-nav-item/readme.md +14 -0
- package/dist/docs/xpl-pagination/readme.md +29 -0
- package/dist/docs/xpl-radio/readme.md +12 -0
- package/dist/docs/xpl-secondary-nav/readme.md +25 -0
- package/dist/docs/xpl-select/readme.md +13 -0
- package/dist/docs/xpl-side-nav/readme.md +12 -7
- package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
- package/dist/docs/xpl-slideout/readme.md +23 -0
- package/dist/docs/xpl-tab/readme.md +14 -8
- package/dist/docs/xpl-table/readme.md +4 -4
- package/dist/docs/xpl-table/xpl-table-body/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +31 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +34 -0
- package/dist/docs/xpl-toast/readme.md +90 -7
- package/dist/docs/xpl-toggle/readme.md +46 -0
- package/dist/docs/xpl-toolbar/readme.md +19 -0
- package/dist/docs/xpl-top-nav/readme.md +2 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +5 -5
- package/dist/docs/xpl-utility-bar/readme.md +12 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +16642 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
- package/dist/esm/index-BhYfWG18.js +454 -0
- package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +772 -9
- package/dist/esm/{lifecycle-BUgtURvw.js → lifecycle-Dqb1pIRo.js} +4 -1
- package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
- package/dist/esm/slot-presence-_r9-FML8.js +8 -0
- package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
- package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
- package/dist/esm/xpl-accordion.entry.js +5 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +207 -0
- package/dist/esm/xpl-backdrop.entry.js +17 -0
- package/dist/esm/xpl-badge.entry.js +35 -0
- package/dist/esm/xpl-banner.entry.js +72 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +79 -0
- package/dist/esm/xpl-calendar.entry.js +10 -6
- package/dist/esm/xpl-checkbox.entry.js +30 -0
- package/dist/esm/xpl-choicelist.entry.js +66 -0
- package/dist/esm/xpl-content-area.entry.js +13 -0
- package/dist/esm/xpl-dashboard.entry.js +12 -0
- package/dist/esm/xpl-data-card.entry.js +109 -0
- package/dist/esm/xpl-dropdown_4.entry.js +575 -0
- package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +11 -18
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +6 -6
- package/dist/esm/xpl-header-accordion.entry.js +67 -0
- package/dist/esm/{xpl-avatar_54.entry.js → xpl-icon.entry.js} +1174 -10539
- package/dist/esm/xpl-input-color.entry.js +433 -0
- package/dist/esm/xpl-input-phone.entry.js +507 -0
- package/dist/esm/xpl-input-time.entry.js +194 -0
- package/dist/esm/xpl-input_4.entry.js +520 -0
- package/dist/esm/xpl-large-card.entry.js +63 -4
- package/dist/esm/xpl-list-item.entry.js +458 -0
- package/dist/esm/xpl-list.entry.js +394 -0
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +105 -0
- package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
- package/dist/esm/xpl-nav-item.entry.js +23 -0
- package/dist/esm/xpl-pagination.entry.js +110 -0
- package/dist/esm/xpl-panel.entry.js +19 -0
- package/dist/esm/xpl-popover.entry.js +263 -0
- package/dist/esm/xpl-progress-bar.entry.js +39 -0
- package/dist/esm/xpl-progress-indicator.entry.js +72 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select_2.entry.js +490 -0
- package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
- package/dist/esm/xpl-side-nav-item.entry.js +128 -0
- package/dist/esm/xpl-side-nav-section.entry.js +103 -0
- package/dist/esm/xpl-side-nav.entry.js +274 -0
- package/dist/esm/xpl-skeleton.entry.js +24 -0
- package/dist/esm/xpl-slideout.entry.js +45 -0
- package/dist/esm/xpl-spotlight.entry.js +720 -0
- package/dist/esm/xpl-tab-panel.entry.js +22 -0
- package/dist/esm/xpl-tab.entry.js +85 -0
- package/dist/esm/xpl-table-body.entry.js +12 -0
- package/dist/esm/xpl-table-footer-cell.entry.js +16 -0
- package/dist/esm/xpl-table-footer.entry.js +12 -0
- package/dist/esm/xpl-table-header-cell.entry.js +5 -3
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table-row.entry.js +18 -0
- package/dist/esm/xpl-table.entry.js +183 -0
- package/dist/esm/xpl-tabs.entry.js +371 -0
- package/dist/esm/xpl-toast.entry.js +89 -0
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +16 -0
- package/dist/esm/xpl-top-nav-item.entry.js +433 -0
- package/dist/esm/xpl-top-nav-menu.entry.js +15 -21
- package/dist/esm/xpl-top-nav.entry.js +340 -0
- package/dist/esm/xpl-utility-bar.entry.js +21 -0
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +2 -2
- package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input.d.ts +11 -6
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
- package/dist/types/components/xpl-list/listitem.d.ts +5 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +10 -2
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-select/select.shared.d.ts +23 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -0
- package/dist/types/components/xpl-table/xpl-table-body/xpl-table-body.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +4 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +6 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +34 -2
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +3 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +7 -2
- package/dist/types/components.d.ts +1109 -51
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils/story-vrt.d.ts +1 -0
- package/dist/types/third-party.d.ts +20 -0
- package/dist/types/utils/floating.d.ts +26 -0
- package/dist/types/utils/lifecycle.d.ts +1 -1
- package/dist/types/utils/light-dom-slots.d.ts +6 -0
- package/dist/types/utils/slot-presence.d.ts +1 -0
- package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
- package/dist/utils/form-bindings.js +64 -0
- package/dist/utils/story-vrt.js +48 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +51795 -0
- package/hydrate/index.mjs +51785 -0
- package/hydrate/package.json +12 -0
- package/package.json +112 -59
- package/dist/apollo-core/p-048fdde0.entry.js +0 -1
- package/dist/apollo-core/p-0abc496e.entry.js +0 -1
- package/dist/apollo-core/p-1442c052.entry.js +0 -1
- package/dist/apollo-core/p-1e498763.entry.js +0 -1
- package/dist/apollo-core/p-26c3a508.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-4ce52107.entry.js +0 -1
- package/dist/apollo-core/p-6710fb29.entry.js +0 -1
- package/dist/apollo-core/p-7e622809.entry.js +0 -1
- package/dist/apollo-core/p-87068144.entry.js +0 -1
- package/dist/apollo-core/p-BUgtURvw.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-a3b4820a.entry.js +0 -1
- package/dist/apollo-core/p-b2d6dd0e.entry.js +0 -1
- package/dist/apollo-core/p-bd2249ef.entry.js +0 -1
- package/dist/apollo-core/p-c96b7957.entry.js +0 -1
- package/dist/apollo-core/p-d6be63cd.entry.js +0 -1
- package/dist/apollo-core/p-ddf76cee.entry.js +0 -1
- package/dist/apollo-core/p-f0554edd.entry.js +0 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +0 -80
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +0 -737
- package/dist/collection/components/xpl-avatar/avatar.stories.js +0 -147
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +0 -24
- package/dist/collection/components/xpl-badge/badge.stories.js +0 -91
- package/dist/collection/components/xpl-banner/banner.stories.js +0 -69
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +0 -134
- package/dist/collection/components/xpl-button/button.stories.js +0 -142
- package/dist/collection/components/xpl-button-row/button-row.stories.js +0 -59
- package/dist/collection/components/xpl-calendar/calendar.stories.js +0 -63
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +0 -83
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +0 -138
- package/dist/collection/components/xpl-content-area/content-area.stories.js +0 -55
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +0 -48
- package/dist/collection/components/xpl-data-card/data-card.stories.js +0 -115
- package/dist/collection/components/xpl-divider/divider.stories.js +0 -36
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +0 -387
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +0 -165
- package/dist/collection/components/xpl-grid/grid.stories.js +0 -76
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +0 -52
- package/dist/collection/components/xpl-icon/icons.stories.js +0 -142
- package/dist/collection/components/xpl-input/input.stories.js +0 -696
- package/dist/collection/components/xpl-large-card/large-card.stories.js +0 -131
- package/dist/collection/components/xpl-list/list.stories.js +0 -389
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +0 -307
- package/dist/collection/components/xpl-modal/modal.stories.js +0 -91
- package/dist/collection/components/xpl-pagination/pagination.stories.js +0 -57
- package/dist/collection/components/xpl-panel/panel.stories.js +0 -53
- package/dist/collection/components/xpl-popover/popover.stories.js +0 -164
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +0 -96
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +0 -118
- package/dist/collection/components/xpl-radio/radio.stories.js +0 -106
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +0 -78
- package/dist/collection/components/xpl-select/select.stories.js +0 -297
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +0 -634
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +0 -71
- package/dist/collection/components/xpl-slideout/slideout.stories.js +0 -109
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +0 -385
- package/dist/collection/components/xpl-table/table.stories.js +0 -147
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -126
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -75
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +0 -31
- package/dist/collection/components/xpl-tabs/tabs.stories.js +0 -31
- package/dist/collection/components/xpl-tag/tag.stories.js +0 -153
- package/dist/collection/components/xpl-toast/toast.stories.js +0 -86
- package/dist/collection/components/xpl-toggle/toggle.stories.js +0 -88
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +0 -58
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +0 -745
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +0 -87
- package/dist/components/p-2xGSxBGa.js +0 -1
- package/dist/components/p-B8RYNiz-.js +0 -1
- package/dist/components/p-BDWXBWGE.js +0 -1
- package/dist/components/p-BJqNuBZr.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BUgtURvw.js +0 -1
- package/dist/components/p-B_sq_SAX.js +0 -1
- package/dist/components/p-Bsy-VVS5.js +0 -1
- package/dist/components/p-C5_Yo0ZP.js +0 -1
- package/dist/components/p-C8rmEAx6.js +0 -1
- package/dist/components/p-CF_YTx16.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CUYkG-PB.js +0 -1
- package/dist/components/p-CaW0fL0P.js +0 -1
- package/dist/components/p-CuisR8WP.js +0 -1
- package/dist/components/p-D2SFagIb.js +0 -1
- package/dist/components/p-DKUNbsb0.js +0 -1
- package/dist/components/p-DcXL24UI.js +0 -1
- package/dist/components/p-Dp3H99Yc.js +0 -1
- package/dist/components/p-M900WO1C.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-ZTFt9sBy.js +0 -1
- package/dist/components/p-gfb3l9Pr.js +0 -1
- package/dist/components/p-h1Gbk5lO.js +0 -1
- package/dist/css/typography.stories.js +0 -144
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +0 -37
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +0 -64
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +0 -138
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +0 -21
- package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -80
- package/dist/types/components/xpl-banner/banner.stories.d.ts +0 -79
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +0 -57
- package/dist/types/components/xpl-button/button.stories.d.ts +0 -132
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +0 -45
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +0 -62
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +0 -69
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +0 -44
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +0 -13
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +0 -31
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +0 -118
- package/dist/types/components/xpl-divider/divider.stories.d.ts +0 -41
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +0 -25
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +0 -45
- package/dist/types/components/xpl-grid/grid.stories.d.ts +0 -133
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +0 -48
- package/dist/types/components/xpl-icon/icons.stories.d.ts +0 -54
- package/dist/types/components/xpl-input/input.stories.d.ts +0 -240
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +0 -75
- package/dist/types/components/xpl-list/list.stories.d.ts +0 -353
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +0 -13
- package/dist/types/components/xpl-modal/modal.stories.d.ts +0 -103
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +0 -52
- package/dist/types/components/xpl-panel/panel.stories.d.ts +0 -22
- package/dist/types/components/xpl-popover/popover.stories.d.ts +0 -12
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +0 -73
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +0 -62
- package/dist/types/components/xpl-radio/radio.stories.d.ts +0 -93
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +0 -5
- package/dist/types/components/xpl-select/select.stories.d.ts +0 -168
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +0 -101
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +0 -26
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +0 -120
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +0 -197
- package/dist/types/components/xpl-table/table.stories.d.ts +0 -88
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +0 -107
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +0 -59
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +0 -112
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +0 -97
- package/dist/types/components/xpl-tag/tag.stories.d.ts +0 -65
- package/dist/types/components/xpl-toast/toast.stories.d.ts +0 -66
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +0 -71
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +0 -43
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +0 -540
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +0 -20
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { v4 as uuid } from "uuid";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Table',
|
|
4
|
-
argTypes: {
|
|
5
|
-
freeze: { control: { type: 'boolean' } },
|
|
6
|
-
multiselect: { control: { type: 'boolean' } },
|
|
7
|
-
striped: { control: { type: 'boolean' } },
|
|
8
|
-
columns: { control: { type: 'object' } },
|
|
9
|
-
data: { control: { type: 'object' } },
|
|
10
|
-
footer: { control: { type: 'object' } },
|
|
11
|
-
isSortable: { control: { type: 'boolean' } },
|
|
12
|
-
sortableColumns: { control: { type: 'object' } },
|
|
13
|
-
},
|
|
14
|
-
parameters: {
|
|
15
|
-
actions: {
|
|
16
|
-
handles: ['tableSelect', 'sortChanged'],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
const columnsDefault = [
|
|
21
|
-
'Name',
|
|
22
|
-
'Total Days Played',
|
|
23
|
-
'Average Days Played',
|
|
24
|
-
'Seasons',
|
|
25
|
-
'Individual Immunity Wins',
|
|
26
|
-
'Votes Against',
|
|
27
|
-
];
|
|
28
|
-
const dataDefault = [
|
|
29
|
-
['Boston Rob Mariano', '152', '30.4', 'S4, S8, S20, S22, S40', '9', '24'],
|
|
30
|
-
['Parvati Shallow', '149', '37.25', 'S13, S16, S20', '4', '17'],
|
|
31
|
-
['Ozzy Lusth', '128', '32.0', 'S13, S16, S23, S34', '7', '34'],
|
|
32
|
-
['Cirie Fields', '121', '30.25', 'S12, S16, S20, S34', '2', '9'],
|
|
33
|
-
['Tyson Apostol', '116.5', '29.1', 'S18, S20, S27, S40', '4', '22'],
|
|
34
|
-
];
|
|
35
|
-
const selectedValuesDefault = [
|
|
36
|
-
'boston-rob-mariano',
|
|
37
|
-
'parvati-shallow',
|
|
38
|
-
'ozzy-lusth',
|
|
39
|
-
'cirie-fields',
|
|
40
|
-
'tyson-apostol',
|
|
41
|
-
];
|
|
42
|
-
const sortableColumnsDefault = [false, false, false, false, false, false];
|
|
43
|
-
const footerDefault = [['Total', '676.5', '159.75', 'All Seasons', '26', '106']];
|
|
44
|
-
const script = ({ columns, data, footer, id, selectedValues, isSortable, sortableColumns }) => `
|
|
45
|
-
(function() {
|
|
46
|
-
const table = document.getElementById("${id}");
|
|
47
|
-
table.columns = ${JSON.stringify(columns)};
|
|
48
|
-
table.data = ${JSON.stringify(data)};
|
|
49
|
-
${footer ? `table.footer = ${JSON.stringify(footer)};` : ''}
|
|
50
|
-
table.selectedValues = ${JSON.stringify(selectedValues)};
|
|
51
|
-
table.sortableColumns = ${JSON.stringify(sortableColumns)};
|
|
52
|
-
table.isSortable = ${isSortable};
|
|
53
|
-
})();
|
|
54
|
-
`;
|
|
55
|
-
export const Table = ({ columns, data, footer, freeze, multiselect, selectedValues, striped, isSortable, sortableColumns, }) => {
|
|
56
|
-
const id = uuid();
|
|
57
|
-
let attrs = '';
|
|
58
|
-
if (freeze)
|
|
59
|
-
attrs += ' freeze';
|
|
60
|
-
if (multiselect)
|
|
61
|
-
attrs += ' multiselect';
|
|
62
|
-
if (isSortable)
|
|
63
|
-
attrs += ' isSortable';
|
|
64
|
-
if (striped)
|
|
65
|
-
attrs += ' striped';
|
|
66
|
-
return `
|
|
67
|
-
<div style="max-width: 600px;">
|
|
68
|
-
<xpl-table id="${id}"${attrs}></xpl-table>
|
|
69
|
-
</div>
|
|
70
|
-
<script>
|
|
71
|
-
${script({ id, columns, data, footer, selectedValues, sortableColumns, isSortable })}
|
|
72
|
-
</script>
|
|
73
|
-
`;
|
|
74
|
-
};
|
|
75
|
-
Table.args = {
|
|
76
|
-
freeze: true,
|
|
77
|
-
multiselect: false,
|
|
78
|
-
striped: false,
|
|
79
|
-
columns: columnsDefault,
|
|
80
|
-
data: dataDefault,
|
|
81
|
-
footer: footerDefault,
|
|
82
|
-
selectedValues: selectedValuesDefault,
|
|
83
|
-
isSortable: false,
|
|
84
|
-
sortableColumns: sortableColumnsDefault,
|
|
85
|
-
};
|
|
86
|
-
Table.parameters = {
|
|
87
|
-
layout: 'centered',
|
|
88
|
-
'web-component': {
|
|
89
|
-
render: (({ freeze, multiselect, striped }) => {
|
|
90
|
-
let attrs = '';
|
|
91
|
-
if (freeze)
|
|
92
|
-
attrs += ' freeze';
|
|
93
|
-
if (multiselect)
|
|
94
|
-
attrs += ' multiselect';
|
|
95
|
-
if (striped)
|
|
96
|
-
attrs += ' striped';
|
|
97
|
-
return [
|
|
98
|
-
`<xpl-table${attrs}></xpl-table>`,
|
|
99
|
-
`table.columns = [
|
|
100
|
-
"Name", "Total Days Played", ...
|
|
101
|
-
];`,
|
|
102
|
-
`table.data = [
|
|
103
|
-
["Boston Rob Mariano", ...],
|
|
104
|
-
["Parvati Shallow", ...],
|
|
105
|
-
...
|
|
106
|
-
];`,
|
|
107
|
-
];
|
|
108
|
-
})(Table.args),
|
|
109
|
-
},
|
|
110
|
-
html: {
|
|
111
|
-
render: (({ freeze, striped }) => {
|
|
112
|
-
let className = 'xpl-table';
|
|
113
|
-
if (striped)
|
|
114
|
-
className += ' xpl-table--striped';
|
|
115
|
-
if (freeze)
|
|
116
|
-
className += ' xpl-table--freeze';
|
|
117
|
-
return [
|
|
118
|
-
`WARNING: For \`multiselect\` tables, there is JS interactivity that is provided only by the web component. The code shown below does not reflect the additional \`multiselect\` table markup and interactivity.`,
|
|
119
|
-
`<div class="xpl-table-container">
|
|
120
|
-
<table class="${className}">
|
|
121
|
-
<thead>
|
|
122
|
-
<th>Name</th>
|
|
123
|
-
<th>Total Days Played</th>
|
|
124
|
-
...
|
|
125
|
-
</thead>
|
|
126
|
-
<tbody>
|
|
127
|
-
<tr>
|
|
128
|
-
<td>Boston Rob Mariano</td>
|
|
129
|
-
<td>152</td>
|
|
130
|
-
...
|
|
131
|
-
</tr>
|
|
132
|
-
<tr>
|
|
133
|
-
<td>Parvati Shallow</td>
|
|
134
|
-
<td>149</td>
|
|
135
|
-
...
|
|
136
|
-
</tr>
|
|
137
|
-
</tbody>
|
|
138
|
-
</table>
|
|
139
|
-
</div>`,
|
|
140
|
-
];
|
|
141
|
-
})(Table.args),
|
|
142
|
-
},
|
|
143
|
-
design: {
|
|
144
|
-
type: 'figma',
|
|
145
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=20-258&p=f&t=vVY2x58f7oPprNSr-11',
|
|
146
|
-
},
|
|
147
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Dynamic Table/Table Header',
|
|
3
|
-
component: 'xpl-table-header',
|
|
4
|
-
argTypes: {
|
|
5
|
-
firstCellType: {
|
|
6
|
-
control: 'select',
|
|
7
|
-
options: ['label', 'checkbox', 'icon'],
|
|
8
|
-
},
|
|
9
|
-
firstCellLabel: {
|
|
10
|
-
control: 'text',
|
|
11
|
-
},
|
|
12
|
-
firstCellIcon: {
|
|
13
|
-
control: 'select',
|
|
14
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
15
|
-
},
|
|
16
|
-
firstCellWidth: {
|
|
17
|
-
control: 'number',
|
|
18
|
-
},
|
|
19
|
-
firstCellSortable: { control: 'boolean' },
|
|
20
|
-
secondCellType: {
|
|
21
|
-
control: 'select',
|
|
22
|
-
options: ['label', 'checkbox', 'icon'],
|
|
23
|
-
},
|
|
24
|
-
secondCellLabel: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
},
|
|
27
|
-
secondCellIcon: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
30
|
-
},
|
|
31
|
-
secondCellWidth: {
|
|
32
|
-
control: 'number',
|
|
33
|
-
},
|
|
34
|
-
secondCellSortable: { control: 'boolean' },
|
|
35
|
-
thirdCellType: {
|
|
36
|
-
control: 'select',
|
|
37
|
-
options: ['label', 'checkbox', 'icon'],
|
|
38
|
-
},
|
|
39
|
-
thirdCellLabel: {
|
|
40
|
-
control: 'text',
|
|
41
|
-
},
|
|
42
|
-
thirdCellIcon: {
|
|
43
|
-
control: 'select',
|
|
44
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
45
|
-
},
|
|
46
|
-
thirdCellWidth: {
|
|
47
|
-
control: 'number',
|
|
48
|
-
},
|
|
49
|
-
thirdCellSortable: { control: 'boolean' },
|
|
50
|
-
},
|
|
51
|
-
tags: ['beta'],
|
|
52
|
-
};
|
|
53
|
-
export const TableHeader = ({ firstCellType, firstCellLabel, firstCellIcon, firstCellWidth, firstCellSortable, secondCellType, secondCellLabel, secondCellIcon, secondCellWidth, secondCellSortable, thirdCellType, thirdCellLabel, thirdCellIcon, thirdCellWidth, thirdCellSortable, }) => `
|
|
54
|
-
<xpl-dynamic-table>
|
|
55
|
-
<div slot="header">
|
|
56
|
-
<xpl-table-header>
|
|
57
|
-
<xpl-table-header-cell
|
|
58
|
-
type=${firstCellType}
|
|
59
|
-
label="${firstCellLabel}"
|
|
60
|
-
icon=${firstCellIcon}
|
|
61
|
-
width=${firstCellWidth}
|
|
62
|
-
sortable=${firstCellSortable}
|
|
63
|
-
></xpl-table-header-cell>
|
|
64
|
-
<xpl-table-header-cell
|
|
65
|
-
type=${secondCellType}
|
|
66
|
-
label="${secondCellLabel}"
|
|
67
|
-
icon=${secondCellIcon}
|
|
68
|
-
width=${secondCellWidth}
|
|
69
|
-
sortable=${secondCellSortable}
|
|
70
|
-
></xpl-table-header-cell>
|
|
71
|
-
<xpl-table-header-cell
|
|
72
|
-
type=${thirdCellType}
|
|
73
|
-
label="${thirdCellLabel}"
|
|
74
|
-
icon=${thirdCellIcon}
|
|
75
|
-
width=${thirdCellWidth}
|
|
76
|
-
sortable=${thirdCellSortable}
|
|
77
|
-
>
|
|
78
|
-
</xpl-table-header-cell>
|
|
79
|
-
</xpl-table-header>
|
|
80
|
-
</div>
|
|
81
|
-
</xpl-dynamic-table>
|
|
82
|
-
|
|
83
|
-
`;
|
|
84
|
-
TableHeader.args = {
|
|
85
|
-
firstCellType: 'label',
|
|
86
|
-
firstCellLabel: '',
|
|
87
|
-
firstCellIcon: 'heart',
|
|
88
|
-
firstCellWidth: 48,
|
|
89
|
-
firstCellSortable: false,
|
|
90
|
-
secondCellType: 'icon',
|
|
91
|
-
secondCellLabel: 'Column Item 2',
|
|
92
|
-
secondCellIcon: 'heart',
|
|
93
|
-
secondCellWidth: 48,
|
|
94
|
-
secondCellSortable: false,
|
|
95
|
-
thirdCellType: 'label',
|
|
96
|
-
thirdCellLabel: 'Column Item 3',
|
|
97
|
-
thirdCellIcon: 'heart',
|
|
98
|
-
thirdCellWidth: 208,
|
|
99
|
-
thirdCellSortable: true,
|
|
100
|
-
};
|
|
101
|
-
TableHeader.parameters = {
|
|
102
|
-
'web-component': {
|
|
103
|
-
render: TableHeader(TableHeader.args),
|
|
104
|
-
},
|
|
105
|
-
html: {
|
|
106
|
-
render: `
|
|
107
|
-
<tr class="xpl-table-header table-header">
|
|
108
|
-
<th class="header-cell">
|
|
109
|
-
<span></span>
|
|
110
|
-
</th>
|
|
111
|
-
<th class="header-cell">
|
|
112
|
-
<xpl-icon class="header-icon" icon="heart"></xpl-icon>
|
|
113
|
-
</th>
|
|
114
|
-
<th class="header-cell">
|
|
115
|
-
<button class="sortable">
|
|
116
|
-
<span class="sortable-text">Column Item 3</span>
|
|
117
|
-
<xpl-icon class="sort-icon" icon="arrow-down"></xpl-icon>
|
|
118
|
-
</button>
|
|
119
|
-
</th>
|
|
120
|
-
</tr>`,
|
|
121
|
-
},
|
|
122
|
-
design: {
|
|
123
|
-
type: 'figma',
|
|
124
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=14764-42036&p=f&t=xrSF2t7u1Brg2fnZ-11',
|
|
125
|
-
},
|
|
126
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Dynamic Table/Table Header Cell',
|
|
3
|
-
component: 'xpl-table-header-cell',
|
|
4
|
-
argTypes: {
|
|
5
|
-
type: {
|
|
6
|
-
control: 'select',
|
|
7
|
-
options: ['label', 'checkbox', 'icon'],
|
|
8
|
-
},
|
|
9
|
-
label: {
|
|
10
|
-
control: 'text',
|
|
11
|
-
},
|
|
12
|
-
icon: {
|
|
13
|
-
control: 'select',
|
|
14
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
15
|
-
},
|
|
16
|
-
width: {
|
|
17
|
-
control: 'number',
|
|
18
|
-
},
|
|
19
|
-
sortable: { control: 'boolean' },
|
|
20
|
-
},
|
|
21
|
-
tags: ['beta'],
|
|
22
|
-
};
|
|
23
|
-
export const TableHeaderCell = ({ type, label, icon, width, sortable }) => `
|
|
24
|
-
<xpl-table-header-cell
|
|
25
|
-
type=${type}
|
|
26
|
-
label="${label}"
|
|
27
|
-
icon=${icon}
|
|
28
|
-
width=${width}
|
|
29
|
-
sortable=${sortable}
|
|
30
|
-
></xpl-table-header-cell>
|
|
31
|
-
`;
|
|
32
|
-
TableHeaderCell.args = {
|
|
33
|
-
type: 'label',
|
|
34
|
-
label: 'Column Item',
|
|
35
|
-
icon: 'chevron-down',
|
|
36
|
-
width: null,
|
|
37
|
-
sortable: false,
|
|
38
|
-
};
|
|
39
|
-
TableHeaderCell.parameters = {
|
|
40
|
-
'web-component': {
|
|
41
|
-
render: TableHeaderCell(TableHeaderCell.args),
|
|
42
|
-
},
|
|
43
|
-
html: {
|
|
44
|
-
render: ({ type, label, icon, width, sortable }) => {
|
|
45
|
-
const renderContent = () => {
|
|
46
|
-
switch (type) {
|
|
47
|
-
case 'label':
|
|
48
|
-
return `<span>${label}</span>`;
|
|
49
|
-
case 'checkbox':
|
|
50
|
-
return `<input type="checkbox" class="xpl-checkbox">`;
|
|
51
|
-
case 'icon':
|
|
52
|
-
return `<xpl-icon icon="${icon}"></xpl-icon>`;
|
|
53
|
-
default:
|
|
54
|
-
return '';
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
return `
|
|
58
|
-
<th class="header-cell" style="width: ${width}px">
|
|
59
|
-
${sortable
|
|
60
|
-
? `
|
|
61
|
-
<button class="sortable">
|
|
62
|
-
${renderContent()}
|
|
63
|
-
<xpl-icon icon="arrow-down"></xpl-icon>
|
|
64
|
-
</button>
|
|
65
|
-
`
|
|
66
|
-
: `<div class="non-sortable">renderContent()</div>`}
|
|
67
|
-
</th>
|
|
68
|
-
`;
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
design: {
|
|
72
|
-
type: 'figma',
|
|
73
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=14764-42036&p=f&t=xrSF2t7u1Brg2fnZ-11',
|
|
74
|
-
},
|
|
75
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { renderTabsStoryMarkup, segmentControlDefaultArgs, segmentControlStoryArgTypes, tabsPlainDomSegmentStoryHtml, } from "./tabs.shared";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Segment Control',
|
|
4
|
-
component: 'xpl-tabs',
|
|
5
|
-
parameters: {
|
|
6
|
-
actions: {
|
|
7
|
-
handles: ['tabChange'],
|
|
8
|
-
},
|
|
9
|
-
docs: {
|
|
10
|
-
description: {
|
|
11
|
-
component: '**Segment Control** is `xpl-tabs` with `type="segment"`. For underline tabs see **Components/Tabs**.',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
argTypes: segmentControlStoryArgTypes,
|
|
16
|
-
};
|
|
17
|
-
export const SegmentControl = (args, context) => renderTabsStoryMarkup(args, context !== null && context !== void 0 ? context : {});
|
|
18
|
-
SegmentControl.args = segmentControlDefaultArgs;
|
|
19
|
-
SegmentControl.parameters = {
|
|
20
|
-
layout: 'padded',
|
|
21
|
-
'web-component': {
|
|
22
|
-
render: renderTabsStoryMarkup(segmentControlDefaultArgs),
|
|
23
|
-
},
|
|
24
|
-
html: {
|
|
25
|
-
render: tabsPlainDomSegmentStoryHtml,
|
|
26
|
-
},
|
|
27
|
-
design: {
|
|
28
|
-
type: 'figma',
|
|
29
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=6405-96230',
|
|
30
|
-
},
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { renderTabsStoryMarkup, tabsPlainDomUnderlineStoryHtml, tabsStoryBaseArgTypes, tabsUnderlineDefaultArgs, } from "./tabs.shared";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Tabs',
|
|
4
|
-
component: 'xpl-tabs',
|
|
5
|
-
parameters: {
|
|
6
|
-
actions: {
|
|
7
|
-
handles: ['tabChange'],
|
|
8
|
-
},
|
|
9
|
-
docs: {
|
|
10
|
-
description: {
|
|
11
|
-
component: 'Underline tabs use `xpl-tabs` with `type="tabs"` (default). **Segment Control** is the same component with `type="segment"` — see **Components/Segment Control** in the sidebar.',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
argTypes: Object.assign(Object.assign({}, tabsStoryBaseArgTypes), { type: Object.assign(Object.assign({}, tabsStoryBaseArgTypes.type), { table: { disable: true } }), icon: Object.assign(Object.assign({}, tabsStoryBaseArgTypes.icon), { table: { disable: true } }), iconPosition: Object.assign(Object.assign({}, tabsStoryBaseArgTypes.iconPosition), { table: { disable: true } }) }),
|
|
16
|
-
};
|
|
17
|
-
export const Tabs = (args, context) => renderTabsStoryMarkup(args, context !== null && context !== void 0 ? context : {});
|
|
18
|
-
Tabs.args = tabsUnderlineDefaultArgs;
|
|
19
|
-
Tabs.parameters = {
|
|
20
|
-
layout: 'padded',
|
|
21
|
-
'web-component': {
|
|
22
|
-
render: renderTabsStoryMarkup(tabsUnderlineDefaultArgs),
|
|
23
|
-
},
|
|
24
|
-
html: {
|
|
25
|
-
render: tabsPlainDomUnderlineStoryHtml,
|
|
26
|
-
},
|
|
27
|
-
design: {
|
|
28
|
-
type: 'figma',
|
|
29
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=1536-178224&p=f&t=vVY2x58f7oPprNSr-11',
|
|
30
|
-
},
|
|
31
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
function tagAttrs(args) {
|
|
2
|
-
const { disabled, dismissible, isDraggable, size, tagId } = args;
|
|
3
|
-
return [
|
|
4
|
-
`size="${size}"`,
|
|
5
|
-
disabled ? 'disabled' : '',
|
|
6
|
-
dismissible ? '' : 'dismissible="false"',
|
|
7
|
-
isDraggable ? 'is-draggable' : '',
|
|
8
|
-
tagId ? `tag-id="${tagId}"` : '',
|
|
9
|
-
]
|
|
10
|
-
.filter(Boolean)
|
|
11
|
-
.join(' ');
|
|
12
|
-
}
|
|
13
|
-
export default {
|
|
14
|
-
title: 'Components/Tag',
|
|
15
|
-
component: 'xpl-tag',
|
|
16
|
-
argTypes: {
|
|
17
|
-
size: {
|
|
18
|
-
options: ['default', 'sm'],
|
|
19
|
-
control: { type: 'select' },
|
|
20
|
-
},
|
|
21
|
-
disabled: { control: 'boolean' },
|
|
22
|
-
dismissible: { control: 'boolean' },
|
|
23
|
-
isDraggable: { control: 'boolean' },
|
|
24
|
-
slot: { control: 'text' },
|
|
25
|
-
tagId: { control: 'text' },
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
export const Tag = (args) => {
|
|
29
|
-
var _a;
|
|
30
|
-
const attrs = tagAttrs(args);
|
|
31
|
-
const text = (_a = args.slot) !== null && _a !== void 0 ? _a : '';
|
|
32
|
-
return `
|
|
33
|
-
<div style="padding: var(--xpl-space-32);">
|
|
34
|
-
<xpl-tag ${attrs}>${text}</xpl-tag>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<hr style="margin: var(--xpl-space-32) 0; border: none; border-top: var(--xpl-border-small) solid var(--xpl-border-subtle)" />
|
|
38
|
-
|
|
39
|
-
<p style="margin: 0 0 var(--xpl-space-12); color: var(--xpl-text-subdued)">Drag tags to reorder them within the container.</p>
|
|
40
|
-
<div
|
|
41
|
-
id="drag-playground"
|
|
42
|
-
style="display: flex; flex-wrap: wrap; gap: var(--xpl-space-8); padding: var(--xpl-space-16); border: var(--xpl-border-large) dashed var(--xpl-border-default); border-radius: var(--xpl-border-radius-default); min-height: var(--xpl-size-300); transition: border-color 0.2s"
|
|
43
|
-
>
|
|
44
|
-
<xpl-tag tag-id="tag-design" is-draggable ${attrs}>Design</xpl-tag>
|
|
45
|
-
<xpl-tag tag-id="tag-develop" is-draggable ${attrs}>Development</xpl-tag>
|
|
46
|
-
<xpl-tag tag-id="tag-qa" is-draggable ${attrs}>QA</xpl-tag>
|
|
47
|
-
<xpl-tag tag-id="tag-release" is-draggable ${attrs}>Release</xpl-tag>
|
|
48
|
-
</div>
|
|
49
|
-
<script>
|
|
50
|
-
(function() {
|
|
51
|
-
const container = document.getElementById('drag-playground');
|
|
52
|
-
if (!container) return;
|
|
53
|
-
let draggedElement = null;
|
|
54
|
-
|
|
55
|
-
container.addEventListener('dragstart', function(e) {
|
|
56
|
-
const tag = e.target instanceof Element ? e.target.closest('xpl-tag') : null;
|
|
57
|
-
if (tag) {
|
|
58
|
-
draggedElement = tag;
|
|
59
|
-
container.style.borderColor = 'var(--xpl-border-accent-information)';
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
container.addEventListener('dragend', function() {
|
|
64
|
-
draggedElement = null;
|
|
65
|
-
container.style.borderColor = '';
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
container.addEventListener('dragover', function(e) {
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
if (!draggedElement) return;
|
|
71
|
-
const afterElement = getDragAfterElement(container, e.clientX);
|
|
72
|
-
if (afterElement == null) {
|
|
73
|
-
container.appendChild(draggedElement);
|
|
74
|
-
} else {
|
|
75
|
-
container.insertBefore(draggedElement, afterElement);
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
function getDragAfterElement(cont, x) {
|
|
80
|
-
const els = [...cont.querySelectorAll('xpl-tag')].filter(el => el !== draggedElement);
|
|
81
|
-
return els.reduce((closest, child) => {
|
|
82
|
-
const box = child.getBoundingClientRect();
|
|
83
|
-
const offset = x - box.left - box.width / 2;
|
|
84
|
-
return offset < 0 && offset > closest.offset
|
|
85
|
-
? { offset, element: child }
|
|
86
|
-
: closest;
|
|
87
|
-
}, { offset: Number.NEGATIVE_INFINITY }).element;
|
|
88
|
-
}
|
|
89
|
-
})();
|
|
90
|
-
</script>
|
|
91
|
-
`;
|
|
92
|
-
};
|
|
93
|
-
Tag.args = {
|
|
94
|
-
disabled: false,
|
|
95
|
-
dismissible: true,
|
|
96
|
-
isDraggable: false,
|
|
97
|
-
size: 'default',
|
|
98
|
-
slot: 'Tag label',
|
|
99
|
-
tagId: '',
|
|
100
|
-
};
|
|
101
|
-
Tag.parameters = {
|
|
102
|
-
layout: 'padded',
|
|
103
|
-
docs: {
|
|
104
|
-
description: {
|
|
105
|
-
story: 'Tags represent interactive keywords for labeling and categorization. Use `size` to switch between Default (24px) and Small (20px) variants. Set `dismissible={false}` to hide the close button. Set `disabled` to disable interaction. Try long text in the `slot` control to see truncation at max-width.',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
'web-component': {
|
|
109
|
-
render: (() => {
|
|
110
|
-
var _a;
|
|
111
|
-
const args = Object.assign({}, Tag.args);
|
|
112
|
-
const attrs = tagAttrs(args);
|
|
113
|
-
return `<xpl-tag ${attrs}>${(_a = args.slot) !== null && _a !== void 0 ? _a : ''}</xpl-tag>`;
|
|
114
|
-
})(),
|
|
115
|
-
},
|
|
116
|
-
html: {
|
|
117
|
-
render: (() => {
|
|
118
|
-
var _a, _b;
|
|
119
|
-
const args = Object.assign({}, Tag.args);
|
|
120
|
-
const sizeMod = args.size === 'sm' ? 'xpl-tag--sm' : '';
|
|
121
|
-
const disabledMod = args.disabled ? 'xpl-tag--disabled' : '';
|
|
122
|
-
const dismissibleMod = args.dismissible ? 'xpl-tag--dismissible' : '';
|
|
123
|
-
const dragEnabled = args.isDraggable && !args.disabled;
|
|
124
|
-
const draggableMod = dragEnabled ? 'xpl-tag--draggable' : '';
|
|
125
|
-
const hostClasses = [
|
|
126
|
-
'xpl-tag',
|
|
127
|
-
'xpl-tag-container',
|
|
128
|
-
sizeMod,
|
|
129
|
-
disabledMod,
|
|
130
|
-
dismissibleMod,
|
|
131
|
-
draggableMod,
|
|
132
|
-
]
|
|
133
|
-
.filter(Boolean)
|
|
134
|
-
.join(' ');
|
|
135
|
-
const contentTag = dragEnabled ? 'div' : 'button';
|
|
136
|
-
const disabledAttr = args.disabled ? ' disabled' : '';
|
|
137
|
-
const contentAttrs = dragEnabled
|
|
138
|
-
? 'role="button" tabindex="0" draggable="true"'
|
|
139
|
-
: `type="button"${disabledAttr}`;
|
|
140
|
-
const contentEl = `<${contentTag} class="xpl-tag__content xpl-tag" ${contentAttrs}>${(_a = args.slot) !== null && _a !== void 0 ? _a : ''}</${contentTag}>`;
|
|
141
|
-
const dismissLabelBase = ((_b = args.slot) !== null && _b !== void 0 ? _b : '').trim() || 'tag';
|
|
142
|
-
const dismissAriaLabel = `Dismiss ${dismissLabelBase}`.replace(/"/g, '"');
|
|
143
|
-
const dismissButton = args.dismissible
|
|
144
|
-
? `<button class="xpl-tag__dismiss xpl-tag__close" type="button" aria-label="${dismissAriaLabel}"${disabledAttr}><xpl-icon icon="xmark" size="10"></xpl-icon></button>`
|
|
145
|
-
: '';
|
|
146
|
-
return `<div class="${hostClasses}">${contentEl}${dismissButton}</div>`;
|
|
147
|
-
})(),
|
|
148
|
-
},
|
|
149
|
-
design: {
|
|
150
|
-
type: 'figma',
|
|
151
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=15243-65363',
|
|
152
|
-
},
|
|
153
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Toast',
|
|
3
|
-
component: 'xpl-toast',
|
|
4
|
-
argTypes: {
|
|
5
|
-
variant: {
|
|
6
|
-
options: ['neutral', 'warning', 'success'],
|
|
7
|
-
control: {
|
|
8
|
-
type: 'select',
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
showIcon: { control: 'boolean' },
|
|
12
|
-
showAction: { control: 'boolean' },
|
|
13
|
-
dismissible: { control: 'boolean' },
|
|
14
|
-
toastTitle: { control: 'text', required: true },
|
|
15
|
-
caption: { control: 'text', required: false },
|
|
16
|
-
timeout: { control: 'number', required: false },
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export const Toast = ({ variant, showIcon, dismissible, toastTitle, caption, showAction, timeout, }) => `
|
|
20
|
-
<p style="color: var(--xpl-color-red-600); font-family: var(--xpl-font-family-default);">
|
|
21
|
-
Use the "Remount Component" button to reload the toast
|
|
22
|
-
</p>
|
|
23
|
-
<xpl-toast
|
|
24
|
-
variant="${variant}"
|
|
25
|
-
show-icon="${showIcon}"
|
|
26
|
-
caption="${caption}"
|
|
27
|
-
dismissible="${dismissible}"
|
|
28
|
-
timeout="${timeout}"
|
|
29
|
-
>
|
|
30
|
-
<p slot="title">${toastTitle}</p>
|
|
31
|
-
${showAction
|
|
32
|
-
? `<xpl-button slot="action" size="sm" variant="${variant}">Test Action</xpl-button>`
|
|
33
|
-
: ''}
|
|
34
|
-
</xpl-toast>
|
|
35
|
-
`;
|
|
36
|
-
Toast.args = {
|
|
37
|
-
variant: 'neutral',
|
|
38
|
-
showIcon: true,
|
|
39
|
-
showAction: false,
|
|
40
|
-
dismissible: true,
|
|
41
|
-
toastTitle: 'This is a toast',
|
|
42
|
-
caption: 'This is the caption',
|
|
43
|
-
timeout: 8000,
|
|
44
|
-
};
|
|
45
|
-
Toast.parameters = {
|
|
46
|
-
'web-component': {
|
|
47
|
-
render: Toast(Toast.args),
|
|
48
|
-
},
|
|
49
|
-
html: {
|
|
50
|
-
render: (({ variant, showIcon, dismissible, toastTitle, caption, showAction }) => {
|
|
51
|
-
const getIcon = () => {
|
|
52
|
-
switch (variant) {
|
|
53
|
-
case 'warning':
|
|
54
|
-
return '<xpl-icon icon="alert-hex" size="24" />';
|
|
55
|
-
case 'success':
|
|
56
|
-
return '<xpl-icon icon="check-circle" size="24" />';
|
|
57
|
-
default:
|
|
58
|
-
return '<xpl-icon icon="comment-alt" size="24" />';
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
return `
|
|
62
|
-
<div class="toast toast--${variant}">
|
|
63
|
-
<div class="toast__left">
|
|
64
|
-
${showIcon ? `<span class="toast__icon">${getIcon()}</span>` : ''}
|
|
65
|
-
<div class="toast__notification">
|
|
66
|
-
<p class="toast__title">${toastTitle}</p>
|
|
67
|
-
<p class="xpl-toast__caption">
|
|
68
|
-
${caption === null || caption === void 0 ? void 0 : caption.substring(0, 85)}
|
|
69
|
-
</p>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="toast__action">
|
|
73
|
-
${showAction ? `<button class="toast__button">Test Action</button>` : ''}
|
|
74
|
-
</div>
|
|
75
|
-
${dismissible
|
|
76
|
-
? `<button class="toast__close"><xpl-icon icon="x" /></button>`
|
|
77
|
-
: ''}
|
|
78
|
-
</div>
|
|
79
|
-
`;
|
|
80
|
-
})(Toast.args),
|
|
81
|
-
},
|
|
82
|
-
design: {
|
|
83
|
-
type: 'figma',
|
|
84
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=13039-31141&p=f&t=vVY2x58f7oPprNSr-11',
|
|
85
|
-
},
|
|
86
|
-
};
|