@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,696 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Input',
|
|
3
|
-
parameters: {
|
|
4
|
-
actions: {
|
|
5
|
-
handles: [
|
|
6
|
-
'inputChange',
|
|
7
|
-
'inputEvent',
|
|
8
|
-
'valueChange',
|
|
9
|
-
'hasErrorStateChanged',
|
|
10
|
-
'rangeSelected',
|
|
11
|
-
'search',
|
|
12
|
-
],
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
argTypes: {
|
|
16
|
-
label: {
|
|
17
|
-
type: { name: 'string', required: true },
|
|
18
|
-
},
|
|
19
|
-
description: {
|
|
20
|
-
type: { name: 'string', required: false },
|
|
21
|
-
},
|
|
22
|
-
disabled: {
|
|
23
|
-
type: {
|
|
24
|
-
name: 'boolean',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
error: {
|
|
28
|
-
type: {
|
|
29
|
-
name: 'boolean',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
errorMessage: {
|
|
33
|
-
type: { name: 'string', required: false },
|
|
34
|
-
},
|
|
35
|
-
type: {
|
|
36
|
-
options: [
|
|
37
|
-
'text',
|
|
38
|
-
'number',
|
|
39
|
-
'file',
|
|
40
|
-
'password',
|
|
41
|
-
'date',
|
|
42
|
-
'time',
|
|
43
|
-
'color',
|
|
44
|
-
'phone',
|
|
45
|
-
'search',
|
|
46
|
-
],
|
|
47
|
-
control: {
|
|
48
|
-
type: 'select',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
export const Input = ({ label, description, disabled, error, errorMessage, pre, post, type, defaultCountry, isInternational, }) => {
|
|
54
|
-
let attrs = '';
|
|
55
|
-
if (label)
|
|
56
|
-
attrs += ` label="${label}"`;
|
|
57
|
-
if (description)
|
|
58
|
-
attrs += ` description="${description}"`;
|
|
59
|
-
if (disabled)
|
|
60
|
-
attrs += ` disabled`;
|
|
61
|
-
if (error)
|
|
62
|
-
attrs += ` error${errorMessage ? `="${errorMessage}"` : ''}`;
|
|
63
|
-
if (pre)
|
|
64
|
-
attrs += ` pre="${pre}"`;
|
|
65
|
-
if (post)
|
|
66
|
-
attrs += ` post="${post}"`;
|
|
67
|
-
if (type !== 'text')
|
|
68
|
-
attrs += ` type="${type}"`;
|
|
69
|
-
if (type === 'phone' && defaultCountry)
|
|
70
|
-
attrs += ` default-country="${defaultCountry}"`;
|
|
71
|
-
if (type === 'phone' && isInternational === false)
|
|
72
|
-
attrs += ` is-international="false"`;
|
|
73
|
-
return `<xpl-input${attrs} name="input-name" placeholder="Placeholder"></xpl-input>`;
|
|
74
|
-
};
|
|
75
|
-
Input.args = {
|
|
76
|
-
label: 'Input',
|
|
77
|
-
description: 'A brief description',
|
|
78
|
-
disabled: false,
|
|
79
|
-
error: false,
|
|
80
|
-
errorMessage: '',
|
|
81
|
-
pre: '',
|
|
82
|
-
post: '',
|
|
83
|
-
type: 'text',
|
|
84
|
-
defaultCountry: 'US',
|
|
85
|
-
isInternational: true,
|
|
86
|
-
};
|
|
87
|
-
Input.argTypes = {
|
|
88
|
-
defaultCountry: {
|
|
89
|
-
control: { type: 'text' },
|
|
90
|
-
description: 'Default country (ISO code) for phone input',
|
|
91
|
-
if: { arg: 'type', eq: 'phone' },
|
|
92
|
-
},
|
|
93
|
-
isInternational: {
|
|
94
|
-
control: { type: 'boolean' },
|
|
95
|
-
description: 'Enables international mode with country selector. When false, locked to defaultCountry with no picker.',
|
|
96
|
-
if: { arg: 'type', eq: 'phone' },
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
Input.parameters = {
|
|
100
|
-
layout: 'centered',
|
|
101
|
-
'web-component': {
|
|
102
|
-
render: Input(Input.args),
|
|
103
|
-
},
|
|
104
|
-
html: {
|
|
105
|
-
render: (({ label, description, disabled, error, errorMessage, pre, post, type }) => {
|
|
106
|
-
const output = [];
|
|
107
|
-
let className = 'xpl-input';
|
|
108
|
-
if (disabled)
|
|
109
|
-
className += ' xpl-input--disabled';
|
|
110
|
-
if (error)
|
|
111
|
-
className += ' xpl-input--error';
|
|
112
|
-
output.push(`
|
|
113
|
-
<div class="${className}">
|
|
114
|
-
<label for="id">
|
|
115
|
-
${label}
|
|
116
|
-
${description ? `<small>${description}</small>` : ''}
|
|
117
|
-
</label>
|
|
118
|
-
<div class="xpl-input-wrapper">
|
|
119
|
-
${pre ? `<label class="xpl-input-pre" for="id">${pre}</label>` : ''}
|
|
120
|
-
<input ${disabled ? 'disabled ' : ''}id="id" name="input-name" placeholder="Placeholder" type="${type}" />${post
|
|
121
|
-
? `
|
|
122
|
-
<label class="xpl-input-post" for="id">${post}</label>`
|
|
123
|
-
: ''}
|
|
124
|
-
</div>${errorMessage
|
|
125
|
-
? `
|
|
126
|
-
<label class="xpl-input-error" for="id">
|
|
127
|
-
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" /></svg>
|
|
128
|
-
${errorMessage}
|
|
129
|
-
</label>`
|
|
130
|
-
: ''}
|
|
131
|
-
</div>`);
|
|
132
|
-
return output;
|
|
133
|
-
})(Input.args),
|
|
134
|
-
},
|
|
135
|
-
design: {
|
|
136
|
-
type: 'figma',
|
|
137
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=16215-5412&p=f&t=vVY2x58f7oPprNSr-11',
|
|
138
|
-
},
|
|
139
|
-
};
|
|
140
|
-
export const Multiline = ({ label, description, disabled, error, errorMessage, maxCharacterCount, }) => {
|
|
141
|
-
let attrs = ' multiline';
|
|
142
|
-
if (label)
|
|
143
|
-
attrs += ` label="${label}"`;
|
|
144
|
-
if (description)
|
|
145
|
-
attrs += ` description="${description}"`;
|
|
146
|
-
if (disabled)
|
|
147
|
-
attrs += ` disabled`;
|
|
148
|
-
if (error)
|
|
149
|
-
attrs += ` error${errorMessage ? `="${errorMessage}"` : ''}`;
|
|
150
|
-
if (maxCharacterCount >= 0)
|
|
151
|
-
attrs += ` max-character-count="${maxCharacterCount}"`;
|
|
152
|
-
return `<xpl-input${attrs} name="input-name" placeholder="Placeholder"></xpl-input>`;
|
|
153
|
-
};
|
|
154
|
-
Multiline.args = {
|
|
155
|
-
label: 'Multiline Input',
|
|
156
|
-
description: 'A brief description',
|
|
157
|
-
disabled: false,
|
|
158
|
-
error: false,
|
|
159
|
-
errorMessage: '',
|
|
160
|
-
maxCharacterCount: 50,
|
|
161
|
-
};
|
|
162
|
-
Multiline.parameters = {
|
|
163
|
-
layout: 'centered',
|
|
164
|
-
'web-component': {
|
|
165
|
-
render: Multiline(Multiline.args),
|
|
166
|
-
},
|
|
167
|
-
html: {
|
|
168
|
-
render: (({ disabled, error, errorMessage, label, description, maxCharacterCount }) => {
|
|
169
|
-
const output = [];
|
|
170
|
-
if (maxCharacterCount > 0)
|
|
171
|
-
output.push(`WARNING: For multiline inputs with a max. character count,
|
|
172
|
-
there is JS interactivity that is provided only by
|
|
173
|
-
the web component. The code shown below does not
|
|
174
|
-
reflect the additional markup and interactivity.`);
|
|
175
|
-
let className = 'xpl-input';
|
|
176
|
-
if (disabled)
|
|
177
|
-
className += ' xpl-input--disabled';
|
|
178
|
-
if (error)
|
|
179
|
-
className += ' xpl-input--error';
|
|
180
|
-
output.push(`<div class="${className}">
|
|
181
|
-
<label for="id">
|
|
182
|
-
${label}${description
|
|
183
|
-
? `
|
|
184
|
-
<small>${description}</small>`
|
|
185
|
-
: ''}
|
|
186
|
-
</label>
|
|
187
|
-
<div class="xpl-input-wrapper">
|
|
188
|
-
<textarea ${disabled ? 'disabled ' : ''}id="id" name="input-name" placeholder="Placeholder"></textarea>
|
|
189
|
-
</div>${errorMessage
|
|
190
|
-
? `
|
|
191
|
-
<label class="xpl-input-error" for="id">
|
|
192
|
-
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" /></svg>
|
|
193
|
-
${errorMessage}
|
|
194
|
-
</label>`
|
|
195
|
-
: ''}
|
|
196
|
-
</div>`);
|
|
197
|
-
return output;
|
|
198
|
-
})(Multiline.args),
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
export const Datepicker = ({ label, dateFormat, description, disabled, error, errorMessage, min, mode, max, required, type, }) => {
|
|
202
|
-
let attrs = ` type="${type}"`;
|
|
203
|
-
if (label)
|
|
204
|
-
attrs += ` label="${label}"`;
|
|
205
|
-
if (dateFormat)
|
|
206
|
-
attrs += ` date-format="${dateFormat}"`;
|
|
207
|
-
if (description)
|
|
208
|
-
attrs += ` description="${description}"`;
|
|
209
|
-
if (disabled)
|
|
210
|
-
attrs += ` disabled`;
|
|
211
|
-
if (error)
|
|
212
|
-
attrs += ` error${errorMessage ? `="${errorMessage}"` : ''}`;
|
|
213
|
-
if (min)
|
|
214
|
-
attrs += ` min="${min}"`;
|
|
215
|
-
if (max)
|
|
216
|
-
attrs += ` max="${max}"`;
|
|
217
|
-
if (mode)
|
|
218
|
-
attrs += ` mode="${mode}"`;
|
|
219
|
-
if (required)
|
|
220
|
-
attrs += ` required`;
|
|
221
|
-
return `<xpl-input${attrs} name="input-name" placeholder="Placeholder"></xpl-input>`;
|
|
222
|
-
};
|
|
223
|
-
Datepicker.argTypes = {
|
|
224
|
-
mode: {
|
|
225
|
-
options: ['single', 'range'],
|
|
226
|
-
control: {
|
|
227
|
-
type: 'select',
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
type: {
|
|
231
|
-
options: ['date', 'time'],
|
|
232
|
-
control: {
|
|
233
|
-
type: 'select',
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
};
|
|
237
|
-
Datepicker.args = {
|
|
238
|
-
mode: 'single',
|
|
239
|
-
label: 'Datepicker',
|
|
240
|
-
dateFormat: 'm/d/Y',
|
|
241
|
-
description: 'A brief description',
|
|
242
|
-
disabled: false,
|
|
243
|
-
error: false,
|
|
244
|
-
errorMessage: '',
|
|
245
|
-
min: '01/01/2000',
|
|
246
|
-
max: '12/31/2099',
|
|
247
|
-
required: false,
|
|
248
|
-
type: 'date',
|
|
249
|
-
};
|
|
250
|
-
Datepicker.parameters = {
|
|
251
|
-
layout: 'centered',
|
|
252
|
-
'web-component': {
|
|
253
|
-
render: Datepicker(Datepicker.args),
|
|
254
|
-
},
|
|
255
|
-
html: {
|
|
256
|
-
render: (({ label, description, disabled, error, errorMessage, min, max, required }) => {
|
|
257
|
-
const output = [
|
|
258
|
-
`The full-featured Datepicker Input only supports web component usage. However, a 'lite' version that uses native browser features is included here:`,
|
|
259
|
-
];
|
|
260
|
-
let className = 'xpl-input';
|
|
261
|
-
if (disabled)
|
|
262
|
-
className += ' xpl-input--disabled';
|
|
263
|
-
if (error)
|
|
264
|
-
className += ' xpl-input--error';
|
|
265
|
-
output.push(`<div class="${className}">
|
|
266
|
-
<label for="id">
|
|
267
|
-
${label}${description
|
|
268
|
-
? `
|
|
269
|
-
<small>${description}</small>`
|
|
270
|
-
: ''}
|
|
271
|
-
</label>
|
|
272
|
-
<div class="xpl-input-wrapper">
|
|
273
|
-
<input ${required ? 'required ' : ''}${disabled ? 'disabled ' : ''}id="id"${min ? ` min="${min}"` : ''}${max ? ` max="${max}"` : ''} name="input-name" placeholder="Placeholder" type="date" />
|
|
274
|
-
</div>${errorMessage
|
|
275
|
-
? `
|
|
276
|
-
<label class="xpl-input-error" for="id">
|
|
277
|
-
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" /></svg>
|
|
278
|
-
${errorMessage}
|
|
279
|
-
</label>`
|
|
280
|
-
: ''}
|
|
281
|
-
</div>`);
|
|
282
|
-
return output;
|
|
283
|
-
})(Datepicker.args),
|
|
284
|
-
},
|
|
285
|
-
};
|
|
286
|
-
export const Timepicker = ({ label, description, disabled, error, errorMessage, required, readonly, value, step, timeFormat, allowCustomOption, min, max, type, }) => {
|
|
287
|
-
let attrs = '';
|
|
288
|
-
if (label)
|
|
289
|
-
attrs += `label="${label}"`;
|
|
290
|
-
if (description)
|
|
291
|
-
attrs += ` description="${description}"`;
|
|
292
|
-
if (disabled)
|
|
293
|
-
attrs += ` disabled`;
|
|
294
|
-
if (error)
|
|
295
|
-
attrs += ` error${errorMessage ? `="${errorMessage}"` : ''}`;
|
|
296
|
-
if (min)
|
|
297
|
-
attrs += ` min="${min}"`;
|
|
298
|
-
if (max)
|
|
299
|
-
attrs += ` max="${max}"`;
|
|
300
|
-
if (required)
|
|
301
|
-
attrs += ` required`;
|
|
302
|
-
if (readonly)
|
|
303
|
-
attrs += ` readonly`;
|
|
304
|
-
if (value)
|
|
305
|
-
attrs += ` value="${value}"`;
|
|
306
|
-
if (step)
|
|
307
|
-
attrs += ` step="${step}"`;
|
|
308
|
-
if (timeFormat)
|
|
309
|
-
attrs += ` time-format="${timeFormat}"`;
|
|
310
|
-
if (allowCustomOption)
|
|
311
|
-
attrs += ` allow-custom-option`;
|
|
312
|
-
if (type)
|
|
313
|
-
attrs += ` type="${type}"`;
|
|
314
|
-
return `<xpl-input ${attrs} name="input-name"></xpl-input>`;
|
|
315
|
-
};
|
|
316
|
-
Timepicker.args = {
|
|
317
|
-
label: 'Timepicker',
|
|
318
|
-
description: 'A brief description',
|
|
319
|
-
disabled: false,
|
|
320
|
-
error: false,
|
|
321
|
-
errorMessage: 'This field is required.',
|
|
322
|
-
required: true,
|
|
323
|
-
readonly: false,
|
|
324
|
-
value: '15:30',
|
|
325
|
-
step: 30,
|
|
326
|
-
timeFormat: '12h',
|
|
327
|
-
allowCustomOption: false,
|
|
328
|
-
min: '10:00',
|
|
329
|
-
max: '18:00',
|
|
330
|
-
type: 'time',
|
|
331
|
-
};
|
|
332
|
-
Timepicker.argTypes = {
|
|
333
|
-
timeFormat: {
|
|
334
|
-
control: { type: 'select' },
|
|
335
|
-
options: ['12h', '24h'],
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
Timepicker.parameters = {
|
|
339
|
-
layout: 'centered',
|
|
340
|
-
'web-component': {
|
|
341
|
-
render: Timepicker(Timepicker.args),
|
|
342
|
-
},
|
|
343
|
-
html: {
|
|
344
|
-
render: (({ label, description, disabled, error, errorMessage, min, max, required, type, timeFormat, }) => {
|
|
345
|
-
const output = [
|
|
346
|
-
`The full-featured Timepicker Input only supports web component usage. However, a 'lite' version that uses native browser features is included here:`,
|
|
347
|
-
];
|
|
348
|
-
let className = 'xpl-input';
|
|
349
|
-
if (disabled)
|
|
350
|
-
className += ' xpl-input--disabled';
|
|
351
|
-
if (error)
|
|
352
|
-
className += ' xpl-input--error';
|
|
353
|
-
output.push(`<div class="${className}">
|
|
354
|
-
<label for="id">
|
|
355
|
-
${label}${description
|
|
356
|
-
? `
|
|
357
|
-
<small>${description}</small>`
|
|
358
|
-
: ''}
|
|
359
|
-
</label>
|
|
360
|
-
<div class="xpl-input-wrapper">
|
|
361
|
-
<label class="xpl-input-pre"><xpl-icon icon="clock" size="24"></xpl-icon></label>
|
|
362
|
-
<input type="${type}" ${required ? 'required ' : ''}${disabled ? 'disabled ' : ''}id="id"${min ? ` min="${min}"` : ''}${max ? ` max="${max}"` : ''} name="input-name" placeholder="Placeholder" />
|
|
363
|
-
<label class="xpl-input-post">${timeFormat === '12h' ? 'AM' : ''}</label>
|
|
364
|
-
<xpl-dropdown options={[
|
|
365
|
-
{
|
|
366
|
-
"label": "10:00 AM",
|
|
367
|
-
"value": "10:00"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"label": "10:30 AM",
|
|
371
|
-
"value": "10:30"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"label": "11:00 AM",
|
|
375
|
-
"value": "11:00"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"label": "5:30 PM",
|
|
379
|
-
"value": "17:30"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"label": "6:00 PM",
|
|
383
|
-
"value": "18:00"
|
|
384
|
-
}
|
|
385
|
-
]}></xpl-dropdown>
|
|
386
|
-
</div>${errorMessage
|
|
387
|
-
? `
|
|
388
|
-
<label class="xpl-input-error" for="id">
|
|
389
|
-
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" /></svg>
|
|
390
|
-
${errorMessage}
|
|
391
|
-
</label>`
|
|
392
|
-
: ''}
|
|
393
|
-
</div>`);
|
|
394
|
-
return output;
|
|
395
|
-
})(Timepicker.args),
|
|
396
|
-
},
|
|
397
|
-
};
|
|
398
|
-
export const Password = ({ label, description, disabled, error, errorMessage, pre, post, }) => {
|
|
399
|
-
let attrs = '';
|
|
400
|
-
if (label)
|
|
401
|
-
attrs += ` label="${label}"`;
|
|
402
|
-
if (description)
|
|
403
|
-
attrs += ` description="${description}"`;
|
|
404
|
-
if (disabled)
|
|
405
|
-
attrs += ` disabled`;
|
|
406
|
-
if (error)
|
|
407
|
-
attrs += ` error${errorMessage ? `="${errorMessage}"` : ''}`;
|
|
408
|
-
if (pre)
|
|
409
|
-
attrs += ` pre="${pre}"`;
|
|
410
|
-
if (post)
|
|
411
|
-
attrs += ` post="${post}"`;
|
|
412
|
-
return `<xpl-input type="password"${attrs} name="input-name"></xpl-input>`;
|
|
413
|
-
};
|
|
414
|
-
Password.args = {
|
|
415
|
-
label: 'Password',
|
|
416
|
-
description: 'Enter a password:',
|
|
417
|
-
disabled: false,
|
|
418
|
-
error: false,
|
|
419
|
-
errorMessage: '',
|
|
420
|
-
};
|
|
421
|
-
Password.parameters = {
|
|
422
|
-
layout: 'centered',
|
|
423
|
-
'web-component': {
|
|
424
|
-
render: Password(Password.args),
|
|
425
|
-
},
|
|
426
|
-
html: {
|
|
427
|
-
render: ((_) => `Sorry, the Password Input only supports web component usage.`)(Password.args),
|
|
428
|
-
},
|
|
429
|
-
};
|
|
430
|
-
export const File = ({ accept, multiple, hideTriggerOnSelect, hideFileNames, hideAcceptText, label, triggerContent, description, disabled, error, errorMessage, }) => {
|
|
431
|
-
const renderFileUpload = () => `
|
|
432
|
-
<xpl-input
|
|
433
|
-
label="${label}"
|
|
434
|
-
accept="${accept}"
|
|
435
|
-
multiple="${multiple}"
|
|
436
|
-
type="file"
|
|
437
|
-
name="file-input"
|
|
438
|
-
hide-trigger-on-select="${hideTriggerOnSelect}"
|
|
439
|
-
hide-file-names="${hideFileNames}"
|
|
440
|
-
hide-accept-text="${hideAcceptText}"
|
|
441
|
-
description="${description}"
|
|
442
|
-
disabled="${disabled}"
|
|
443
|
-
${error ? `error="${errorMessage}"` : ''}
|
|
444
|
-
>
|
|
445
|
-
${triggerContent}
|
|
446
|
-
</xpl-input>
|
|
447
|
-
`;
|
|
448
|
-
return renderFileUpload();
|
|
449
|
-
};
|
|
450
|
-
File.args = {
|
|
451
|
-
accept: 'image/png, image/jpeg',
|
|
452
|
-
multiple: false,
|
|
453
|
-
hideTriggerOnSelect: false,
|
|
454
|
-
hideFileNames: false,
|
|
455
|
-
hideAcceptText: false,
|
|
456
|
-
label: 'Upload File',
|
|
457
|
-
triggerContent: `<xpl-button slot="trigger"><xpl-icon icon="upload" size="24"></xpl-icon>Upload File</xpl-button>`,
|
|
458
|
-
description: '',
|
|
459
|
-
disabled: false,
|
|
460
|
-
error: false,
|
|
461
|
-
errorMessage: 'This field is required.',
|
|
462
|
-
type: 'file',
|
|
463
|
-
};
|
|
464
|
-
File.parameters = {
|
|
465
|
-
layout: 'centered',
|
|
466
|
-
'web-component': {
|
|
467
|
-
render: File(File.args),
|
|
468
|
-
},
|
|
469
|
-
html: {
|
|
470
|
-
render: ((args) => {
|
|
471
|
-
const output = [];
|
|
472
|
-
output.push(`<label class="xpl-input-label">${args.label}<small>${args.description}</small></label>`);
|
|
473
|
-
output.push(`<div class="xpl-input-file" ${args.hideTriggerOnSelect ? 'xpl-input-file--hide-trigger-on-select' : ''} ${args.disabled ? 'xpl-input-file--disabled' : ''} >`);
|
|
474
|
-
output.push(`<span class="xpl-input-file__trigger-wrapper" role="button" tabindex="0">${args.triggerContent}</span>`);
|
|
475
|
-
if (args.hideAcceptText !== true && args.accept) {
|
|
476
|
-
output.push(`<span class="xpl-input-file__accept xpl-text-caption">Accepted file types: ${args.accept}</span>`);
|
|
477
|
-
}
|
|
478
|
-
if (!args.hideFileNames) {
|
|
479
|
-
output.push(`<ul class="xpl-input-file__file-list">
|
|
480
|
-
<li class="xpl-input-file__file-item">
|
|
481
|
-
<span class="xpl-text-callout">Filename1.png</span>
|
|
482
|
-
<xpl-icon icon="x-circle" size="24" class="xpl-input-file__remove-icon"></xpl-icon>
|
|
483
|
-
</li>
|
|
484
|
-
<li class="xpl-input-file__file-item">
|
|
485
|
-
<span class="xpl-text-callout">Filename2.png</span>
|
|
486
|
-
<xpl-icon icon="x-circle" size="24" class="xpl-input-file__remove-icon"></xpl-icon>
|
|
487
|
-
</li>
|
|
488
|
-
</ul>`);
|
|
489
|
-
}
|
|
490
|
-
output.push('</div>');
|
|
491
|
-
return output.join('');
|
|
492
|
-
})(File.args),
|
|
493
|
-
},
|
|
494
|
-
};
|
|
495
|
-
export const Color = ({ value, label, placeholder, disabled, required, requiredErrorMessage, hideEyeDropper, }) => {
|
|
496
|
-
const renderFileUpload = () => `
|
|
497
|
-
<xpl-input
|
|
498
|
-
type="color"
|
|
499
|
-
label="${label}"
|
|
500
|
-
value="${value}"
|
|
501
|
-
placeholder="${placeholder}"
|
|
502
|
-
disabled="${disabled}"
|
|
503
|
-
required="${required}"
|
|
504
|
-
required-error-message="${requiredErrorMessage}"
|
|
505
|
-
hide-eye-dropper="${hideEyeDropper}"
|
|
506
|
-
>
|
|
507
|
-
</xpl-input>
|
|
508
|
-
`;
|
|
509
|
-
return renderFileUpload();
|
|
510
|
-
};
|
|
511
|
-
Color.args = {
|
|
512
|
-
label: 'Select Color',
|
|
513
|
-
placeholder: 'Choose color',
|
|
514
|
-
value: '#ffff00',
|
|
515
|
-
disabled: false,
|
|
516
|
-
required: false,
|
|
517
|
-
requiredErrorMessage: 'This field is required.',
|
|
518
|
-
hideEyeDropper: false,
|
|
519
|
-
};
|
|
520
|
-
Color.parameters = {
|
|
521
|
-
layout: 'centered',
|
|
522
|
-
'web-component': {
|
|
523
|
-
render: Color(Color.args),
|
|
524
|
-
},
|
|
525
|
-
html: {
|
|
526
|
-
render: ((args) => {
|
|
527
|
-
const output = [];
|
|
528
|
-
output.push(`
|
|
529
|
-
<div class="xpl-input-color">
|
|
530
|
-
<label class="xpl-input-color__label">${args.label}</label>
|
|
531
|
-
<xpl-popover disabled="${args.disabled}">
|
|
532
|
-
<div class="xpl-input-color__display" ${args.disabled ? 'xpl-input-color__display--disabled' : ''}>
|
|
533
|
-
<span class="xpl-input-color__color" style="background: ${args.value}"></span>
|
|
534
|
-
<span class="xpl-input-color__value">${args.value}</span>
|
|
535
|
-
<xpl-icon class="xpl-input-color__icon" icon="eye-droper"></xpl-icon>
|
|
536
|
-
</div>
|
|
537
|
-
<div class="xpl-popover__arrow"></div>
|
|
538
|
-
<div class="xpl-popover__content">
|
|
539
|
-
<div class="xpl-input-color__menu">
|
|
540
|
-
<div class="xpl-input-color__sl-grid" style="background: linear-gradient(to right, rgb(128, 128, 128), rgb(81, 0, 255)), linear-gradient(to top, black, transparent);">
|
|
541
|
-
<div class="xpl-input-color__sl-thumb" style="left: 92%; top: 39%;"></div>
|
|
542
|
-
<input type="range" min="0" max="360" value="0" class="xpl-input-color__slider xpl-input-color__hue" name="color-hue-slider" />
|
|
543
|
-
</div>
|
|
544
|
-
<div class="xpl-input-color__grid">
|
|
545
|
-
<input type="range" min="0" max="360" value="0" class="xpl-input-color__slider xpl-input-color__hue" name="color-hue-slider" />
|
|
546
|
-
<input type="range" min="0" max="1" step="0.01" value="0" class="xpl-input-color__slider xpl-input-color__alpha" name="color-alpha-slider" />
|
|
547
|
-
<div class="xpl-input-color__preview" style="background: rgba(255, 255, 0, 1);"></div>
|
|
548
|
-
</div>
|
|
549
|
-
<div class="xpl-input-color__inputs">
|
|
550
|
-
<xpl-input label="Hex" name="color-hex-input" placeholder="793EF7" value="${args.value}" />
|
|
551
|
-
<xpl-input label="R" name="color-r-input" placeholder="0" value="${args.value}" />
|
|
552
|
-
<xpl-input label="G" name="color-g-input" placeholder="0" value="${args.value}" />
|
|
553
|
-
<xpl-input label="B" name="color-b-input" placeholder="0" value="${args.value}" />
|
|
554
|
-
<xpl-input label="A" name="color-a-input" placeholder="1" value="${args.value}" />
|
|
555
|
-
</div>
|
|
556
|
-
</div>
|
|
557
|
-
</div>
|
|
558
|
-
</xpl-popover>
|
|
559
|
-
</div>
|
|
560
|
-
`);
|
|
561
|
-
return output.join('');
|
|
562
|
-
})(Color.args),
|
|
563
|
-
},
|
|
564
|
-
};
|
|
565
|
-
export const Phone = ({ label, description, placeholder, disabled, defaultCountry, isInternational, value, }) => {
|
|
566
|
-
let attrs = ` type="phone" label="${label}" name="phone" placeholder="${placeholder}"`;
|
|
567
|
-
if (description)
|
|
568
|
-
attrs += ` description="${description}"`;
|
|
569
|
-
if (disabled)
|
|
570
|
-
attrs += ` disabled`;
|
|
571
|
-
if (defaultCountry)
|
|
572
|
-
attrs += ` default-country="${defaultCountry}"`;
|
|
573
|
-
if (isInternational === false)
|
|
574
|
-
attrs += ` is-international="false"`;
|
|
575
|
-
if (value)
|
|
576
|
-
attrs += ` value="${value}"`;
|
|
577
|
-
return `<xpl-input${attrs}></xpl-input>`;
|
|
578
|
-
};
|
|
579
|
-
Phone.args = {
|
|
580
|
-
defaultCountry: 'US',
|
|
581
|
-
description: 'Enter your phone number with country code',
|
|
582
|
-
disabled: false,
|
|
583
|
-
error: false,
|
|
584
|
-
errorMessage: '',
|
|
585
|
-
isInternational: true,
|
|
586
|
-
label: 'Phone number',
|
|
587
|
-
placeholder: 'Enter number',
|
|
588
|
-
value: '+0000000000',
|
|
589
|
-
};
|
|
590
|
-
Phone.argTypes = {
|
|
591
|
-
isInternational: {
|
|
592
|
-
control: { type: 'boolean' },
|
|
593
|
-
description: 'Enables international mode with country selector. When false, locked to defaultCountry with no picker.',
|
|
594
|
-
},
|
|
595
|
-
};
|
|
596
|
-
Phone.parameters = {
|
|
597
|
-
layout: 'centered',
|
|
598
|
-
'web-component': {
|
|
599
|
-
render: Phone(Phone.args),
|
|
600
|
-
},
|
|
601
|
-
html: {
|
|
602
|
-
render: (() => `
|
|
603
|
-
<div class="xpl-input">
|
|
604
|
-
<label class="xpl-input-label" for="phone-id">${Phone.args.label}</label>
|
|
605
|
-
${Phone.args.description ? `<small>${Phone.args.description}</small>` : ''}
|
|
606
|
-
<div class="xpl-input-wrapper xpl-input-phone">
|
|
607
|
-
<button type="button" class="xpl-input-phone__trigger" aria-haspopup="listbox">+1</button>
|
|
608
|
-
<input type="tel" id="phone-id" name="phone" placeholder="${Phone.args.placeholder}" class="xpl-input-phone__input" />
|
|
609
|
-
</div>
|
|
610
|
-
</div>`)(),
|
|
611
|
-
},
|
|
612
|
-
};
|
|
613
|
-
export const Search = ({ label, description, disabled, error, readonly, errorMessage, placeholder, value, name, shape, autocomplete, ariaLabel, }) => {
|
|
614
|
-
let attrs = ' type="search"';
|
|
615
|
-
if (label !== undefined && label !== '')
|
|
616
|
-
attrs += ` label="${label}"`;
|
|
617
|
-
if (description)
|
|
618
|
-
attrs += ` description="${description}"`;
|
|
619
|
-
if (disabled)
|
|
620
|
-
attrs += ` disabled`;
|
|
621
|
-
if (error)
|
|
622
|
-
attrs += ` error${errorMessage ? `="${errorMessage}"` : ''}`;
|
|
623
|
-
if (placeholder)
|
|
624
|
-
attrs += ` placeholder="${placeholder}"`;
|
|
625
|
-
if (value)
|
|
626
|
-
attrs += ` value="${value}"`;
|
|
627
|
-
if (name)
|
|
628
|
-
attrs += ` name="${name}"`;
|
|
629
|
-
if (shape)
|
|
630
|
-
attrs += ` shape="${shape}"`;
|
|
631
|
-
if (autocomplete)
|
|
632
|
-
attrs += ` autocomplete="${autocomplete}"`;
|
|
633
|
-
if (ariaLabel)
|
|
634
|
-
attrs += ` aria-label="${ariaLabel}"`;
|
|
635
|
-
if (readonly)
|
|
636
|
-
attrs += ` readonly`;
|
|
637
|
-
return `<xpl-input${attrs}></xpl-input>`;
|
|
638
|
-
};
|
|
639
|
-
Search.args = {
|
|
640
|
-
ariaLabel: '',
|
|
641
|
-
autocomplete: '',
|
|
642
|
-
description: '',
|
|
643
|
-
disabled: false,
|
|
644
|
-
error: false,
|
|
645
|
-
errorMessage: '',
|
|
646
|
-
label: '',
|
|
647
|
-
readonly: false,
|
|
648
|
-
name: '',
|
|
649
|
-
placeholder: 'Search…',
|
|
650
|
-
shape: 'rounded',
|
|
651
|
-
value: '',
|
|
652
|
-
};
|
|
653
|
-
Search.argTypes = {
|
|
654
|
-
ariaLabel: {
|
|
655
|
-
control: { type: 'text' },
|
|
656
|
-
description: 'Accessible name when no visible label (search inputs only)',
|
|
657
|
-
},
|
|
658
|
-
shape: {
|
|
659
|
-
control: { type: 'select' },
|
|
660
|
-
options: ['rounded', 'box'],
|
|
661
|
-
},
|
|
662
|
-
};
|
|
663
|
-
Search.parameters = {
|
|
664
|
-
layout: 'centered',
|
|
665
|
-
design: {
|
|
666
|
-
type: 'figma',
|
|
667
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=2430-168374&p=f&t=oG14CHMwd7GirmPv-11',
|
|
668
|
-
},
|
|
669
|
-
'web-component': {
|
|
670
|
-
render: Search(Search.args),
|
|
671
|
-
},
|
|
672
|
-
html: {
|
|
673
|
-
render: (() => `
|
|
674
|
-
<div class="xpl-input xpl-input--search">
|
|
675
|
-
<div class="xpl-input-search">
|
|
676
|
-
<form class="xpl-input-search__form">
|
|
677
|
-
<div class="xpl-input-search__shell">
|
|
678
|
-
<span class="xpl-input-search__icon" aria-hidden="true"></span>
|
|
679
|
-
<input
|
|
680
|
-
class="xpl-input-search__input"
|
|
681
|
-
id="search-html-id"
|
|
682
|
-
name="${Search.args.name}"
|
|
683
|
-
type="text"
|
|
684
|
-
role="searchbox"
|
|
685
|
-
aria-label="Search"
|
|
686
|
-
placeholder="${Search.args.placeholder}"
|
|
687
|
-
autocomplete="off"
|
|
688
|
-
/>
|
|
689
|
-
<button type="button" class="xpl-input-search__clear" aria-label="Clear search"></button>
|
|
690
|
-
</div>
|
|
691
|
-
</form>
|
|
692
|
-
</div>
|
|
693
|
-
</div>
|
|
694
|
-
`)(),
|
|
695
|
-
},
|
|
696
|
-
};
|