@xplortech/apollo-core 2.4.3 → 2.6.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 +1257 -3360
- package/build/style.css +4227 -1019
- package/dist/apollo-core/apollo-core.css +18 -27
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-02167464.entry.js +1 -0
- package/dist/apollo-core/p-0bce3874.entry.js +1 -0
- package/dist/apollo-core/{p-8c1f73ea.entry.js → p-1fd3dc87.entry.js} +1 -1
- package/dist/apollo-core/{p-0ac33b3a.entry.js → p-42016063.entry.js} +1 -1
- package/dist/apollo-core/{p-31461db7.entry.js → p-5549756c.entry.js} +1 -1
- package/dist/apollo-core/p-56fa4941.entry.js +1 -0
- package/dist/apollo-core/p-76c324da.entry.js +1 -0
- package/dist/apollo-core/p-7a3224b4.entry.js +1 -0
- package/dist/apollo-core/p-7e924697.entry.js +1 -0
- package/dist/apollo-core/{p-b1f4604d.entry.js → p-8a1affce.entry.js} +1 -1
- package/dist/apollo-core/p-9efca9e1.entry.js +1 -0
- package/dist/apollo-core/p-C_Z2nG0p.js +2 -0
- package/dist/apollo-core/p-b252b380.entry.js +1 -0
- package/dist/apollo-core/p-c91daac1.entry.js +1 -0
- package/dist/apollo-core/p-d9b62508.entry.js +1 -0
- package/dist/apollo-core/p-eaea16d1.entry.js +1 -0
- package/dist/apollo-core/p-eed13bca.entry.js +1 -0
- package/dist/apollo-core/{p-4fab8172.entry.js → p-f5af9539.entry.js} +1 -1
- package/dist/cjs/apollo-core.cjs.js +3 -3
- package/dist/cjs/{index-D__N_vw2.js → index-DH6pgWru.js} +137 -87
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -5
- package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -4
- package/dist/cjs/xpl-avatar_47.cjs.entry.js +18618 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +4 -4
- package/dist/cjs/xpl-calendar.cjs.entry.js +4 -4
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +4 -4
- package/dist/cjs/xpl-grid-item.cjs.entry.js +4 -4
- package/dist/cjs/xpl-grid.cjs.entry.js +4 -4
- package/dist/cjs/xpl-large-card.cjs.entry.js +4 -4
- package/dist/cjs/xpl-list.cjs.entry.js +4 -4
- package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -4
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +3 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +4 -4
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +10 -3
- package/dist/collection/components/xpl-accordion/accordion.stories.js +4 -0
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +3 -3
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +4 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +2 -2
- package/dist/collection/components/xpl-avatar/avatar.stories.js +4 -0
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +3 -3
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +4 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +2 -2
- package/dist/collection/components/xpl-badge/badge.stories.js +108 -33
- package/dist/collection/components/xpl-badge/xpl-badge.js +122 -14
- package/dist/collection/components/xpl-banner/banner.stories.js +64 -0
- package/dist/collection/components/xpl-banner/xpl-banner.js +295 -0
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +4 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -2
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -2
- package/dist/collection/components/xpl-button/button.stories.js +102 -98
- package/dist/collection/components/xpl-button/xpl-button.js +183 -93
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +2 -2
- package/dist/collection/components/xpl-calendar/calendar.stories.js +4 -0
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +2 -2
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +4 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +4 -4
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +4 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +2 -2
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +2 -2
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +2 -2
- package/dist/collection/components/xpl-data-card/data-card.stories.js +4 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +12 -26
- package/dist/collection/components/xpl-divider/divider.stories.js +4 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +2 -2
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +4 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +29 -4
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +120 -79
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +4 -0
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +3 -3
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +3 -3
- package/dist/collection/components/xpl-grid/xpl-grid.js +2 -2
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +2 -2
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +4 -0
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +2 -2
- package/dist/collection/components/xpl-icon/icon-types.js +1 -0
- package/dist/collection/components/xpl-icon/icons.stories.js +47 -12
- package/dist/collection/components/xpl-icon/xpl-icon.js +14 -16
- package/dist/collection/components/xpl-input/input.stories.js +79 -9
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +9 -9
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +55 -17
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-phone/phone-country-data.js +58 -0
- package/dist/collection/components/xpl-input/xpl-input-phone/phone-format.js +219 -0
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +469 -0
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input.js +101 -7
- package/dist/collection/components/xpl-large-card/large-card.stories.js +4 -0
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +2 -2
- package/dist/collection/components/xpl-list/list.stories.js +4 -0
- package/dist/collection/components/xpl-list/xpl-list.js +2 -2
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +2 -2
- package/dist/collection/components/xpl-modal/modal.stories.js +4 -0
- package/dist/collection/components/xpl-modal/xpl-modal.js +2 -2
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +3 -3
- package/dist/collection/components/xpl-pagination/pagination.stories.js +4 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +4 -4
- package/dist/collection/components/xpl-panel/panel.stories.js +51 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +60 -0
- package/dist/collection/components/xpl-popover/popover.stories.js +4 -0
- package/dist/collection/components/xpl-popover/xpl-popover.js +5 -5
- package/dist/collection/components/xpl-progress/progress.stories.js +4 -0
- package/dist/collection/components/xpl-progress/xpl-progress.js +2 -2
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +96 -0
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +158 -0
- package/dist/collection/components/xpl-radio/radio.stories.js +4 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +4 -4
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -2
- package/dist/collection/components/xpl-select/select.stories.js +4 -0
- package/dist/collection/components/xpl-select/xpl-select.js +11 -17
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +519 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +259 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +32 -0
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +4 -0
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +2 -2
- package/dist/collection/components/xpl-slideout/slideout.stories.js +6 -0
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +2 -2
- package/dist/collection/components/xpl-tab/xpl-tab.js +3 -3
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -3
- package/dist/collection/components/xpl-table/table.stories.js +4 -0
- package/dist/collection/components/xpl-table/xpl-table.js +6 -6
- package/dist/collection/components/xpl-table-header/table-header.stories.js +4 -0
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +2 -2
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +4 -0
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +6 -16
- package/dist/collection/components/xpl-tabs/tabs.stories.js +4 -0
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +6 -6
- package/dist/collection/components/xpl-tag/xpl-tag.js +3 -3
- package/dist/collection/components/xpl-toast/toast.stories.js +4 -0
- package/dist/collection/components/xpl-toast/xpl-toast.js +3 -3
- package/dist/collection/components/xpl-toggle/toggle.stories.js +4 -0
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +4 -4
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +3 -3
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +4 -0
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +2 -2
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +2 -2
- package/dist/collection/utils/layout-ancestors.js +22 -0
- package/dist/components/index.js +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-avatar2.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-backdrop2.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-badge2.js +1 -1
- package/dist/components/xpl-banner.d.ts +11 -0
- package/dist/components/xpl-banner.js +1 -0
- 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-button2.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-checkbox2.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-divider2.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-group2.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-heading2.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown-option2.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dropdown2.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-icon2.js +1 -6
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-date2.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-file2.js +1 -1
- package/dist/components/xpl-input-phone.d.ts +11 -0
- package/dist/components/xpl-input-phone.js +1 -0
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-input2.js +1 -1
- package/dist/components/xpl-large-card.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-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.d.ts +11 -0
- package/dist/components/xpl-panel.js +1 -0
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-popover2.js +1 -1
- package/dist/components/xpl-progress-bar.d.ts +11 -0
- package/dist/components/xpl-progress-bar.js +1 -0
- package/dist/components/xpl-progress.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-radio2.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-select2.js +1 -1
- package/dist/components/xpl-side-nav-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-item.js +1 -0
- package/dist/components/xpl-side-nav.d.ts +11 -0
- package/dist/components/xpl-side-nav.js +1 -0
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-tag2.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-tooltip2.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +66 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-avatar/readme.md +40 -0
- package/dist/docs/xpl-backdrop/readme.md +34 -0
- package/dist/docs/xpl-badge/readme.md +122 -0
- package/dist/docs/xpl-banner/readme.md +166 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +19 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +22 -0
- package/dist/docs/xpl-button/readme.md +181 -0
- package/dist/docs/xpl-button-row/readme.md +42 -0
- package/dist/docs/xpl-calendar/readme.md +49 -0
- package/dist/docs/xpl-checkbox/readme.md +49 -0
- package/dist/docs/xpl-choicelist/readme.md +44 -0
- package/dist/docs/xpl-content-area/readme.md +17 -0
- package/dist/docs/xpl-dashboard/readme.md +10 -0
- package/dist/docs/xpl-data-card/readme.md +54 -0
- package/dist/docs/xpl-divider/readme.md +30 -0
- package/dist/docs/xpl-dropdown/readme.md +83 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +40 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +30 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +42 -0
- package/dist/docs/xpl-dynamic-table/readme.md +19 -0
- package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -0
- package/dist/docs/xpl-dynamic-table-row/readme.md +19 -0
- package/dist/docs/xpl-grid/readme.md +10 -0
- package/dist/docs/xpl-grid-item/readme.md +20 -0
- package/dist/docs/xpl-header-accordion/readme.md +39 -0
- package/dist/docs/xpl-icon/readme.md +92 -0
- package/dist/docs/xpl-input/readme.md +100 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +65 -0
- package/dist/docs/xpl-input/xpl-input-date/readme.md +56 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +79 -0
- package/dist/docs/xpl-input/xpl-input-phone/readme.md +167 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +73 -0
- package/dist/docs/xpl-large-card/readme.md +40 -0
- package/dist/docs/xpl-list/readme.md +34 -0
- package/dist/docs/xpl-main-nav/readme.md +28 -0
- package/dist/docs/xpl-modal/readme.md +58 -0
- package/dist/docs/xpl-nav-item/readme.md +24 -0
- package/dist/docs/xpl-pagination/readme.md +55 -0
- package/dist/docs/xpl-panel/readme.md +83 -0
- package/dist/docs/xpl-popover/readme.md +48 -0
- package/dist/docs/xpl-progress/readme.md +22 -0
- package/dist/docs/xpl-progress-bar/readme.md +145 -0
- package/dist/docs/xpl-radio/readme.md +43 -0
- package/dist/docs/xpl-secondary-nav/readme.md +10 -0
- package/dist/docs/xpl-select/readme.md +89 -0
- package/dist/docs/xpl-side-nav/readme.md +71 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +115 -0
- package/dist/docs/xpl-skeleton/readme.md +31 -0
- package/dist/docs/xpl-slideout/readme.md +47 -0
- package/dist/docs/xpl-tab/readme.md +25 -0
- package/dist/docs/xpl-tab-panel/readme.md +18 -0
- package/dist/docs/xpl-table/readme.md +46 -0
- package/dist/docs/xpl-table-header/readme.md +13 -0
- package/dist/docs/xpl-table-header-cell/readme.md +47 -0
- package/dist/docs/xpl-tabs/readme.md +55 -0
- package/dist/docs/xpl-tag/readme.md +30 -0
- package/dist/docs/xpl-toast/readme.md +97 -0
- package/dist/docs/xpl-toggle/readme.md +23 -0
- package/dist/docs/xpl-toolbar/readme.md +18 -0
- package/dist/docs/xpl-tooltip/readme.md +35 -0
- package/dist/docs/xpl-utility-bar/readme.md +55 -0
- package/dist/esm/apollo-core.js +4 -4
- package/dist/esm/{index-DhZas3eX.js → index-C_Z2nG0p.js} +137 -87
- package/dist/esm/loader.js +3 -3
- package/dist/esm/xpl-accordion.entry.js +5 -5
- package/dist/esm/xpl-application-shell.entry.js +4 -4
- package/dist/esm/xpl-avatar_47.entry.js +18570 -0
- package/dist/esm/xpl-button-row.entry.js +4 -4
- package/dist/esm/xpl-calendar.entry.js +4 -4
- package/dist/esm/xpl-dynamic-table-cell.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +4 -4
- package/dist/esm/xpl-grid-item.entry.js +4 -4
- package/dist/esm/xpl-grid.entry.js +4 -4
- package/dist/esm/xpl-large-card.entry.js +4 -4
- package/dist/esm/xpl-list.entry.js +4 -4
- package/dist/esm/xpl-main-nav.entry.js +4 -4
- package/dist/esm/xpl-table-header-cell.entry.js +3 -3
- package/dist/esm/xpl-table-header.entry.js +4 -4
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +5 -5
- package/dist/types/components/xpl-accordion/xpl-accordion.d.ts +1 -1
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +4 -0
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +4 -0
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +1 -1
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +4 -0
- package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +1 -1
- package/dist/types/components/xpl-badge/badge.stories.d.ts +66 -11
- package/dist/types/components/xpl-badge/xpl-badge.d.ts +9 -2
- package/dist/types/components/xpl-banner/banner.stories.d.ts +77 -0
- package/dist/types/components/xpl-banner/xpl-banner.d.ts +20 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +4 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +1 -1
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +1 -1
- package/dist/types/components/xpl-button/button.stories.d.ts +68 -30
- package/dist/types/components/xpl-button/xpl-button.d.ts +14 -8
- package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +1 -1
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +4 -0
- package/dist/types/components/xpl-calendar/xpl-calendar.d.ts +1 -1
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +4 -0
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +1 -1
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +4 -0
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -1
- package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +1 -1
- package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +1 -1
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +4 -0
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +3 -4
- package/dist/types/components/xpl-divider/divider.stories.d.ts +4 -0
- package/dist/types/components/xpl-divider/xpl-divider.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/dropdown-option.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +3 -2
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +11 -8
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +4 -0
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +1 -1
- package/dist/types/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.d.ts +1 -1
- package/dist/types/components/xpl-dynamic-table-row/xpl-dynamic-table-row.d.ts +1 -1
- package/dist/types/components/xpl-grid/xpl-grid.d.ts +1 -1
- package/dist/types/components/xpl-grid-item/xpl-grid-item.d.ts +1 -1
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +4 -0
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +1 -1
- package/dist/types/components/xpl-icon/icon-types.d.ts +2 -0
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +2 -4
- package/dist/types/components/xpl-input/input.stories.d.ts +40 -7
- package/dist/types/components/xpl-input/xpl-input-color/xpl-input-color.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +10 -3
- 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/phone-country-data.d.ts +13 -0
- package/dist/types/components/xpl-input/xpl-input-phone/phone-format.d.ts +5 -0
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +48 -0
- 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 +12 -2
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +4 -0
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +1 -1
- package/dist/types/components/xpl-list/list.stories.d.ts +4 -0
- package/dist/types/components/xpl-list/xpl-list.d.ts +1 -1
- package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +4 -0
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +1 -1
- package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +4 -0
- package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
- package/dist/types/components/xpl-panel/panel.stories.d.ts +20 -0
- package/dist/types/components/xpl-panel/xpl-panel.d.ts +5 -0
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +1 -1
- package/dist/types/components/xpl-progress/progress.stories.d.ts +4 -0
- package/dist/types/components/xpl-progress/xpl-progress.d.ts +1 -1
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +73 -0
- package/dist/types/components/xpl-progress-bar/xpl-progress-bar.d.ts +15 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +4 -0
- package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
- package/dist/types/components/xpl-secondary-nav/xpl-secondary-nav.d.ts +1 -1
- package/dist/types/components/xpl-select/select.stories.d.ts +4 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +2 -4
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +80 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +20 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +4 -0
- package/dist/types/components/xpl-skeleton/xpl-skeleton.d.ts +1 -1
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +6 -0
- package/dist/types/components/xpl-slideout/xpl-slideout.d.ts +1 -1
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +1 -1
- package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +1 -1
- package/dist/types/components/xpl-table/table.stories.d.ts +4 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +1 -1
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header/xpl-table-header.d.ts +1 -1
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +2 -3
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +4 -0
- package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +2 -2
- package/dist/types/components/xpl-tag/xpl-tag.d.ts +1 -1
- package/dist/types/components/xpl-toast/toast.stories.d.ts +4 -0
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +1 -1
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +4 -0
- package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
- package/dist/types/components/xpl-toolbar/xpl-toolbar.d.ts +1 -1
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +4 -0
- package/dist/types/components/xpl-tooltip/xpl-tooltip.d.ts +1 -1
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -1
- package/dist/types/components.d.ts +1210 -173
- package/dist/types/stencil-public-runtime.d.ts +23 -2
- package/dist/types/utils/layout-ancestors.d.ts +2 -0
- package/package.json +45 -28
- package/dist/apollo-core/p-3b5f8989.entry.js +0 -1
- package/dist/apollo-core/p-576ce90f.entry.js +0 -1
- package/dist/apollo-core/p-5c0236db.entry.js +0 -6
- package/dist/apollo-core/p-5ec45742.entry.js +0 -1
- package/dist/apollo-core/p-7b7db57a.entry.js +0 -1
- package/dist/apollo-core/p-7f8e5cd0.entry.js +0 -1
- package/dist/apollo-core/p-812bb0e4.entry.js +0 -1
- package/dist/apollo-core/p-845eef0d.entry.js +0 -1
- package/dist/apollo-core/p-94209785.entry.js +0 -1
- package/dist/apollo-core/p-9853028c.entry.js +0 -1
- package/dist/apollo-core/p-9d65ece7.entry.js +0 -1
- package/dist/apollo-core/p-DhZas3eX.js +0 -2
- package/dist/apollo-core/p-be292555.entry.js +0 -1
- package/dist/cjs/xpl-avatar_41.cjs.entry.js +0 -5522
- package/dist/esm/xpl-avatar_41.entry.js +0 -5480
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# xpl-banner
|
|
2
|
+
|
|
3
|
+
Banners display a system level or page level message at the top of the screen. The section-banner variant displays important messages inline within a section.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
`xpl-banner` renders with `role="region"` and a computed `aria-label` that reflects the current `appearance`
|
|
8
|
+
(e.g. "Information banner", "Positive banner", "Warning banner", "Error banner"). This makes the banner a navigable ARIA
|
|
9
|
+
landmark so assistive-technology users can locate and identify it without reading the full message content.
|
|
10
|
+
|
|
11
|
+
- The leading icon wrapper carries `aria-hidden="true"` — the icon is decorative; the message text is the
|
|
12
|
+
accessible content.
|
|
13
|
+
- The dismiss `<xpl-icon>` inside the dismiss button also carries `aria-hidden="true"` to prevent the
|
|
14
|
+
icon's figcaption ("xmark icon") from being announced alongside the button's own `aria-label`.
|
|
15
|
+
- The dismiss button `aria-label` is "Dismiss banner" for default layout and "Dismiss section banner" for section layout.
|
|
16
|
+
|
|
17
|
+
## Token Use
|
|
18
|
+
|
|
19
|
+
- `information`
|
|
20
|
+
- Background: `--xpl-background-messaging-information`
|
|
21
|
+
- Border: `--xpl-border-accent-information`
|
|
22
|
+
- Icon: `--xpl-icon-default`
|
|
23
|
+
- Main text: `--xpl-text-strong` (with `--xpl-text-default` fallback)
|
|
24
|
+
- Detail text: `--xpl-text-default`
|
|
25
|
+
- `warning`
|
|
26
|
+
- Background: `--xpl-background-messaging-warning`
|
|
27
|
+
- Border: `--xpl-border-accent-warning`
|
|
28
|
+
- Icon: `--xpl-icon-default`
|
|
29
|
+
- Main text: `--xpl-text-strong` (with `--xpl-text-default` fallback)
|
|
30
|
+
- Detail text: `--xpl-text-default`
|
|
31
|
+
- Dismiss focus ring: `--xpl-border-accent-warning`
|
|
32
|
+
- `positive`
|
|
33
|
+
- Background: `--xpl-background-messaging-positive`
|
|
34
|
+
- Border: `--xpl-border-positive`
|
|
35
|
+
- Icon: `--xpl-icon-default`
|
|
36
|
+
- Main text: `--xpl-text-strong` (with `--xpl-text-default` fallback)
|
|
37
|
+
- Detail text: `--xpl-text-default`
|
|
38
|
+
- `error`
|
|
39
|
+
- Background: `--xpl-background-messaging-negative-bold`
|
|
40
|
+
- Border: `--xpl-border-negative`
|
|
41
|
+
- Icon and text: `--xpl-text-inverse-on-dark`
|
|
42
|
+
- Dismiss focus ring: `--xpl-text-inverse-on-dark`
|
|
43
|
+
- Dismiss button follows the same icon token as the current appearance.
|
|
44
|
+
- `information` dismiss focus ring uses `--xpl-border-accent-information`.
|
|
45
|
+
|
|
46
|
+
Light and dark mode are handled by Apollo Foundation token definitions. `xpl-banner` does not use component-level `.dark` token overrides.
|
|
47
|
+
|
|
48
|
+
## Icon Mapping
|
|
49
|
+
|
|
50
|
+
Each `appearance` value maps to a fixed `xpl-icon` name. When building the component in plain HTML, use the icon from this table:
|
|
51
|
+
|
|
52
|
+
| `appearance` | `xpl-icon` name |
|
|
53
|
+
| ------------- | ------------------ |
|
|
54
|
+
| `information` | `circle-info` |
|
|
55
|
+
| `warning` | `triangle-warning` |
|
|
56
|
+
| `positive` | `circle-check` |
|
|
57
|
+
| `error` | `octagon-warning` |
|
|
58
|
+
|
|
59
|
+
## Actions
|
|
60
|
+
|
|
61
|
+
Use `actionText` and `secondaryActionText` to render up to two `xpl-button` actions in the banner.
|
|
62
|
+
Both action buttons always render at `size="xs"` to match compact banner spacing.
|
|
63
|
+
|
|
64
|
+
The `variant` and `state` attributes on the action buttons depend on both `appearance` and layout:
|
|
65
|
+
|
|
66
|
+
| Layout | `appearance` | `variant` | `state` |
|
|
67
|
+
| --------- | ------------- | ----------- | ----------- |
|
|
68
|
+
| bar | `information` | `subtle` | — |
|
|
69
|
+
| bar | `warning` | `subtle` | — |
|
|
70
|
+
| bar | `positive` | `subtle` | — |
|
|
71
|
+
| bar | `error` | `primary` | `warning` |
|
|
72
|
+
| section | `information` | `subtle` | — |
|
|
73
|
+
| section | `warning` | `subtle` | — |
|
|
74
|
+
| section | `positive` | `subtle` | `success` |
|
|
75
|
+
| section | `error` | `subtle` | `warning` |
|
|
76
|
+
|
|
77
|
+
## Section Layout
|
|
78
|
+
|
|
79
|
+
Set `is-section` to render the section-banner layout:
|
|
80
|
+
- Header row with icon, heading, and optional dismiss
|
|
81
|
+
- Description below the header (2-line clamp by default)
|
|
82
|
+
- Actions below description
|
|
83
|
+
|
|
84
|
+
Set `has-icon="false"` to hide the leading icon in the section layout. This applies `xpl-banner--no-icon` on the host, which shifts heading, description, and actions to start in the first grid column instead of the second. In bar layout the icon always renders regardless of `hasIcon`.
|
|
85
|
+
|
|
86
|
+
## HTML/CSS Usage
|
|
87
|
+
|
|
88
|
+
Both the bar and section variants share the same DOM structure. Switch between them using only a class on the host:
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<!-- Bar variant -->
|
|
92
|
+
<div class="xpl-banner xpl-banner--information">
|
|
93
|
+
<div class="xpl-banner__icon" aria-hidden="true">
|
|
94
|
+
<xpl-icon icon="circle-info" size="24"></xpl-icon>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="xpl-banner__body">
|
|
97
|
+
<p class="xpl-banner__heading">Heading</p>
|
|
98
|
+
<p class="xpl-banner__description">Description text</p>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="xpl-banner__actions">
|
|
101
|
+
<xpl-button size="xs" variant="subtle">Action</xpl-button>
|
|
102
|
+
</div>
|
|
103
|
+
<button class="xpl-banner__dismiss" type="button" aria-label="Dismiss banner">
|
|
104
|
+
<xpl-icon icon="xmark" size="24" aria-hidden="true"></xpl-icon>
|
|
105
|
+
</button>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<!-- Section variant — add xpl-banner--section; same markup otherwise -->
|
|
109
|
+
<div class="xpl-banner xpl-banner--section xpl-banner--information">
|
|
110
|
+
...
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<!-- Section variant without icon -->
|
|
114
|
+
<div class="xpl-banner xpl-banner--section xpl-banner--no-icon xpl-banner--information">
|
|
115
|
+
<!-- omit .xpl-banner__icon -->
|
|
116
|
+
<div class="xpl-banner__body">...</div>
|
|
117
|
+
...
|
|
118
|
+
</div>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
<!-- Auto Generated Below -->
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## Properties
|
|
125
|
+
|
|
126
|
+
| Property | Attribute | Description | Type | Default |
|
|
127
|
+
| --------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | --------------- |
|
|
128
|
+
| `actionText` | `action-text` | Primary action label. When provided, an action button is rendered. | `string` | `undefined` |
|
|
129
|
+
| `appearance` | `appearance` | Controls the visual appearance and semantic meaning of the banner. These values map to messaging background/border token sets in `banner.css`. Banner icons use `--xpl-icon-default`, except `error` which uses inverse icon/text tokens for contrast on dark backgrounds. | `"error" \| "information" \| "positive" \| "warning"` | `'information'` |
|
|
130
|
+
| `description` | `description` | Optional supporting message shown after the heading. Description text uses `--xpl-text-default`. | `string` | `undefined` |
|
|
131
|
+
| `hasIcon` | `has-icon` | Whether to render the leading icon in section layout. Ignored in bar layout — bar banners always show the icon. | `boolean` | `true` |
|
|
132
|
+
| `heading` | `heading` | Primary banner message shown with stronger title typography. | `string` | `undefined` |
|
|
133
|
+
| `isDismissible` | `is-dismissible` | Whether to show the trailing dismiss control. | `boolean` | `true` |
|
|
134
|
+
| `isSection` | `is-section` | Renders the section-style banner layout when true. | `boolean` | `false` |
|
|
135
|
+
| `secondaryActionText` | `secondary-action-text` | Secondary action label. When provided, a second action button is rendered. | `string` | `undefined` |
|
|
136
|
+
| `truncateDesc` | `truncate-desc` | When true, `description` is constrained to one line with ellipsis so banner height stays stable. | `boolean` | `false` |
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## Events
|
|
140
|
+
|
|
141
|
+
| Event | Description | Type |
|
|
142
|
+
| ----------------- | --------------------------------------------- | ------------------- |
|
|
143
|
+
| `action` | Emitted when the primary action is clicked. | `CustomEvent<void>` |
|
|
144
|
+
| `dismiss` | Emitted when the dismiss button is clicked. | `CustomEvent<void>` |
|
|
145
|
+
| `secondaryAction` | Emitted when the secondary action is clicked. | `CustomEvent<void>` |
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## Dependencies
|
|
149
|
+
|
|
150
|
+
### Depends on
|
|
151
|
+
|
|
152
|
+
- [xpl-icon](../xpl-icon)
|
|
153
|
+
- [xpl-button](../xpl-button)
|
|
154
|
+
|
|
155
|
+
### Graph
|
|
156
|
+
```mermaid
|
|
157
|
+
graph TD;
|
|
158
|
+
xpl-banner --> xpl-icon
|
|
159
|
+
xpl-banner --> xpl-button
|
|
160
|
+
xpl-button --> xpl-icon
|
|
161
|
+
style xpl-banner fill:#f9f,stroke:#333,stroke-width:4px
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
----------------------------------------------
|
|
165
|
+
|
|
166
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# xpl-breadcrumb-item
|
|
2
|
+
|
|
3
|
+
The `<xpl-breadcrumb-item>` component has a role of `listitem`. This component should only be used in combination with `<xpl-breadcrumbs>`.
|
|
4
|
+
This component yields an unnamed slot. Only links and buttons (styled as links) should be used within this component.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<!-- Auto Generated Below -->
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Slots
|
|
11
|
+
|
|
12
|
+
| Slot | Description |
|
|
13
|
+
| ----------- | ----------------------------------------------------------------------- |
|
|
14
|
+
| `"unnamed"` | content rendered inside <li>, should be link or button (styled as link) |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
----------------------------------------------
|
|
18
|
+
|
|
19
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# xpl-breadcrumbs
|
|
2
|
+
|
|
3
|
+
The `xpl-breadcrumbs` component is a navigation group. It yields an unnamed slot that is rendered inside a `<ol></ol>` element.
|
|
4
|
+
|
|
5
|
+
This component can be used as a wrapper to `<xpl-breadcrumb-item>` components.
|
|
6
|
+
|
|
7
|
+
The number of items is not restricted, although per Apollo's design guidelines, a maximum of three items should be used.
|
|
8
|
+
In small screens (xs), only the 2 deepest items will be visible, even if 3 items are provided.
|
|
9
|
+
|
|
10
|
+
<!-- Auto Generated Below -->
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Slots
|
|
14
|
+
|
|
15
|
+
| Slot | Description |
|
|
16
|
+
| ----------- | ------------------------------------------------------------------------- |
|
|
17
|
+
| `"unnamed"` | content rendered <ol>, should be a group of <li> or <xpl-breadcrumb-item> |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
----------------------------------------------
|
|
21
|
+
|
|
22
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# xpl-button
|
|
2
|
+
|
|
3
|
+
Buttons allow users to take an action with clear visual hierarchy (variant), semantic meaning (sentiment), and size.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
> [!IMPORTANT]
|
|
8
|
+
> Older props such as `state` still work, but we recommend using the sentiment described below.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Basic button
|
|
12
|
+
|
|
13
|
+
Pass button text via the default slot (same as native `<button>`):
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<xpl-button>Primary action</xpl-button>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Variant and sentiment
|
|
20
|
+
|
|
21
|
+
Use `variant` for style (primary, secondary, tertiary) and `sentiment` for intent (default, positive, negative):
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<xpl-button variant="secondary">Secondary</xpl-button>
|
|
25
|
+
<xpl-button variant="tertiary" sentiment="positive">Positive action</xpl-button>
|
|
26
|
+
<xpl-button sentiment="negative">Destructive</xpl-button>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Size
|
|
30
|
+
|
|
31
|
+
Use **`size`** for button size: `default`, `sm` (small), or `xs` (extra small):
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<xpl-button size="sm">Small</xpl-button>
|
|
35
|
+
<xpl-button size="xs">Extra small</xpl-button>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Icon from Apollo icon library
|
|
39
|
+
|
|
40
|
+
Use `icon` with a name from the xpl-icon library; use `icon-position` to place the icon at start or end:
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<xpl-button icon="download" icon-position="end">
|
|
44
|
+
Download
|
|
45
|
+
</xpl-button>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Icon-only button
|
|
49
|
+
|
|
50
|
+
Use `icon-only` when the button shows only an icon (no label). Always set `icon` and use a descriptive `aria-label` on the host or inner button for accessibility:
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<xpl-button icon-only icon="x" aria-label="Close"></xpl-button>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Loading state
|
|
57
|
+
|
|
58
|
+
When `is-loading` is true, the button shows a spinner, hides the label and icon, stays the same size, and is non-interactive:
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<xpl-button is-loading>Submitting</xpl-button>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Form submission
|
|
65
|
+
|
|
66
|
+
The component renders a native `<button>`. Use `type` (`submit`, `reset`, or `button`), `name`, `value`, and `form` for form behaviour:
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<form id="my-form">
|
|
70
|
+
<xpl-button type="submit" name="action" value="save">Save</xpl-button>
|
|
71
|
+
</form>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Disabled
|
|
75
|
+
|
|
76
|
+
Use the `disabled` prop to disable the button (same as native `disabled`):
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<xpl-button disabled>Disabled</xpl-button>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## DOM classes
|
|
83
|
+
|
|
84
|
+
The host element includes BEM-style classes, including:
|
|
85
|
+
|
|
86
|
+
- **Size:** `xpl-button--default` | `xpl-button--sm` | `xpl-button--xs`
|
|
87
|
+
- **Variant:** `xpl-button--primary` | `xpl-button--secondary` | `xpl-button--tertiary` (and `xpl-button--subtle` while that value is still supported)
|
|
88
|
+
- **Sentiment:** `xpl-button--neutral` | `xpl-button--positive` | `xpl-button--negative` when using `sentiment`
|
|
89
|
+
- **Deprecated `state`:** if set, legacy classes `xpl-button--neutral` | `xpl-button--warning` | `xpl-button--success` are applied instead of the sentiment-based classes above (see migration)
|
|
90
|
+
|
|
91
|
+
Prefer targeting **`sentiment`** + **`variant`** + **`size`** in new code; avoid relying on deprecated `state` class names for new selectors.
|
|
92
|
+
|
|
93
|
+
## Migration Notes:
|
|
94
|
+
|
|
95
|
+
The class **`xpl-button--default`** on the host continues to mean **size** (`size="default"`), not sentiment.
|
|
96
|
+
|
|
97
|
+
### Deprecated `state` prop
|
|
98
|
+
|
|
99
|
+
The **`state`** prop (`neutral` | `warning` | `success`) is deprecated. Use **`sentiment`** instead:
|
|
100
|
+
|
|
101
|
+
| Old `state` | New `sentiment` |
|
|
102
|
+
| ------------- | ----------------- |
|
|
103
|
+
| `neutral` | `neutral` (default) |
|
|
104
|
+
| `warning` | `negative` |
|
|
105
|
+
| `success` | `positive` |
|
|
106
|
+
|
|
107
|
+
**Backward compatibility:** if **`state`** is set, it controls the sentiment segment of the host class list (`xpl-button--neutral`, `xpl-button--warning`, `xpl-button--success`) so existing styles or tests that key off those class names can keep working. New work should use **`sentiment`** only (`neutral` | `negative` | `positive`).
|
|
108
|
+
|
|
109
|
+
### Deprecated `variant="subtle"` → `tertiary`
|
|
110
|
+
|
|
111
|
+
**`variant="subtle"`** is deprecated and retained only for backward compatibility, applying the **`xpl-button--subtle`** class. Use **`variant="tertiary"`** instead, which applies **`xpl-button--tertiary`**.
|
|
112
|
+
|
|
113
|
+
### Other API notes
|
|
114
|
+
|
|
115
|
+
- **`isLoading` / `is-loading`:** loading UI without forcing the disabled (gray) visual treatment.
|
|
116
|
+
- **`icon`**, **`icon-position`**, **`icon-only`:** use Apollo icon names; no inline SVGs required.
|
|
117
|
+
- **`data-*` and `aria-*` on the host:** mirrored onto the inner `<button>` after render for accessibility and testing tools.
|
|
118
|
+
|
|
119
|
+
## Guidelines
|
|
120
|
+
|
|
121
|
+
- **Pass button content via the default slot:** `<xpl-button>Save</xpl-button>`. Slots support rich content (formatted text, inline icons, etc.).
|
|
122
|
+
- Use **`iconOnly`** for icon-only buttons and provide an **`aria-label`** (or ensure the inner button has an accessible name).
|
|
123
|
+
- Use **`icon`** for icon names from the xpl-icon library; use **`icon-position`** to place the icon at start or end of the slot content.
|
|
124
|
+
|
|
125
|
+
## Accessibility
|
|
126
|
+
|
|
127
|
+
- The component renders a native `<button>`, so it is focusable and keyboard-activable by default.
|
|
128
|
+
- When **`is-loading`** is true, the inner button has `aria-busy="true"` and the loading spinner is marked **`aria-hidden="true"`** so the label remains the accessible name.
|
|
129
|
+
- For **icon-only** buttons, provide an accessible name via **`aria-label`** on the host (e.g. `<xpl-button icon-only icon="x" aria-label="Close">`) so screen readers announce the action.
|
|
130
|
+
|
|
131
|
+
<!-- Auto Generated Below -->
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## Properties
|
|
135
|
+
|
|
136
|
+
| Property | Attribute | Description | Type | Default |
|
|
137
|
+
| -------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ----------- |
|
|
138
|
+
| `disabled` | `disabled` | Whether button should be disabled | `boolean` | `false` |
|
|
139
|
+
| `form` | `form` | An optional form attribute for the button if type is submit | `string` | `undefined` |
|
|
140
|
+
| `fullWidth` | `full-width` | Whether the button should be of full width as per parent container. | `boolean` | `false` |
|
|
141
|
+
| `icon` | `icon` | Icon to render - icon name as string (from xpl-icon library). | `string` | `''` |
|
|
142
|
+
| `iconOnly` | `icon-only` | When true, the button renders in icon-only circular style. Use for icon-only buttons. | `boolean` | `false` |
|
|
143
|
+
| `iconPosition` | `icon-position` | Icon position relative to slot content. Ignored if no icon is provided. | `"end" \| "start"` | `'start'` |
|
|
144
|
+
| `isLoading` | `is-loading` | When true, shows a loading overlay with spinner over the button. Button is non-interactive. | `boolean` | `false` |
|
|
145
|
+
| `link` | `link` | whether button should yield a slot for a link tag | `boolean` | `undefined` |
|
|
146
|
+
| `name` | `name` | Name of the button, submitted with form data. Passed through to the native button element. | `string` | `undefined` |
|
|
147
|
+
| `sentiment` | `sentiment` | Sentiment of the button, which applies different color schemes to indicate purpose/intent. | `"negative" \| "neutral" \| "positive"` | `'neutral'` |
|
|
148
|
+
| `size` | `size` | Button size. Use 'default', 'xs' (extra small), or 'sm' (small). | `"default" \| "sm" \| "xs"` | `'default'` |
|
|
149
|
+
| `state` | `state` | <span style="color:red">**[DEPRECATED]**</span> : Use `sentiment` with values "neutral", "negative", "positive" instead of `state` .<br/><br/> | `"neutral" \| "success" \| "warning"` | `undefined` |
|
|
150
|
+
| `type` | `type` | HTML button type attribute. | `"button" \| "reset" \| "submit"` | `undefined` |
|
|
151
|
+
| `value` | `value` | Value of the button, submitted with form data. Passed through to the native button element. | `string` | `undefined` |
|
|
152
|
+
| `variant` | `variant` | Button variant/style. Use "primary", "secondary", "tertiary" for new usage. "subtle" is deprecated but still supported for backward compatibility. | `"primary" \| "secondary" \| "subtle" \| "tertiary"` | `'primary'` |
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## Dependencies
|
|
156
|
+
|
|
157
|
+
### Used by
|
|
158
|
+
|
|
159
|
+
- [xpl-banner](../xpl-banner)
|
|
160
|
+
- [xpl-button-row](../xpl-button-row)
|
|
161
|
+
- [xpl-modal](../xpl-modal)
|
|
162
|
+
- [xpl-slideout](../xpl-slideout)
|
|
163
|
+
|
|
164
|
+
### Depends on
|
|
165
|
+
|
|
166
|
+
- [xpl-icon](../xpl-icon)
|
|
167
|
+
|
|
168
|
+
### Graph
|
|
169
|
+
```mermaid
|
|
170
|
+
graph TD;
|
|
171
|
+
xpl-button --> xpl-icon
|
|
172
|
+
xpl-banner --> xpl-button
|
|
173
|
+
xpl-button-row --> xpl-button
|
|
174
|
+
xpl-modal --> xpl-button
|
|
175
|
+
xpl-slideout --> xpl-button
|
|
176
|
+
style xpl-button fill:#f9f,stroke:#333,stroke-width:4px
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
----------------------------------------------
|
|
180
|
+
|
|
181
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# xpl-button-row
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ----------- | ----------- | ------------------------------------------------------------------------------------- | ---------- | ----------- |
|
|
12
|
+
| `primary` | `primary` | The text for the primary button. | `"string"` | `undefined` |
|
|
13
|
+
| `secondary` | `secondary` | The text for the secondary button. If left empty, will not render a secondary button. | `"string"` | `undefined` |
|
|
14
|
+
| `tertiary` | `tertiary` | The text for the tertiary button. If left empty, will not render a secondary button. | `"string"` | `undefined` |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Events
|
|
18
|
+
|
|
19
|
+
| Event | Description | Type |
|
|
20
|
+
| ---------------- | --------------------------------------------------------------------------------------------------- | ------------------ |
|
|
21
|
+
| `clickPrimary` | Fires on the primary button. If not set, the button can act as a standard submit button for a form. | `CustomEvent<any>` |
|
|
22
|
+
| `clickSecondary` | Adds an event listener to the secondary button. | `CustomEvent<any>` |
|
|
23
|
+
| `clickTertiary` | Adds an event listener to the tertiary button. | `CustomEvent<any>` |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Dependencies
|
|
27
|
+
|
|
28
|
+
### Depends on
|
|
29
|
+
|
|
30
|
+
- [xpl-button](../xpl-button)
|
|
31
|
+
|
|
32
|
+
### Graph
|
|
33
|
+
```mermaid
|
|
34
|
+
graph TD;
|
|
35
|
+
xpl-button-row --> xpl-button
|
|
36
|
+
xpl-button --> xpl-icon
|
|
37
|
+
style xpl-button-row fill:#f9f,stroke:#333,stroke-width:4px
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
----------------------------------------------
|
|
41
|
+
|
|
42
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# xpl-calendar
|
|
2
|
+
|
|
3
|
+
Calendars allow users to view and select dates. Use XPL-Calendar when date picking is needed on a page or in a in a container.
|
|
4
|
+
If a calendar is needed within a form, use [XPL-Datepicker](https://xplor-apollo.herokuapp.com/?path=/story/components-input--datepicker).
|
|
5
|
+
|
|
6
|
+
<!-- Auto Generated Below -->
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
| Property | Attribute | Description | Type | Default |
|
|
12
|
+
| ------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------- |
|
|
13
|
+
| `dateFormat` | `date-format` | Format of the date displayed in the calendar. Default is 'Y-m-d'. | `string` | `'Y-m-d'` |
|
|
14
|
+
| `defaultDate` | `default-date` | Default date to be displayed when the calendar is first loaded. | `string` | `undefined` |
|
|
15
|
+
| `inputId` | `input-id` | Unique identifier for the calendar element. | `string` | `uuid()` |
|
|
16
|
+
| `max` | `max` | Maximum selectable date in the calendar. | `number \| string` | `undefined` |
|
|
17
|
+
| `min` | `min` | Minimum selectable date in the calendar. | `number \| string` | `undefined` |
|
|
18
|
+
| `mode` | `mode` | Mode of the calendar, either 'single' for single date selection or 'range' for selecting a range of dates. Default is 'single'. | `"range" \| "single"` | `'single'` |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Events
|
|
22
|
+
|
|
23
|
+
| Event | Description | Type |
|
|
24
|
+
| -------------- | ------------------------------------- | --------------------------------- |
|
|
25
|
+
| `dateSelected` | Event emitted when a date is selected | `CustomEvent<string \| string[]>` |
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Methods
|
|
29
|
+
|
|
30
|
+
### `setDate(date: string | string[]) => Promise<void>`
|
|
31
|
+
|
|
32
|
+
Method to update the calendar date from external input
|
|
33
|
+
|
|
34
|
+
#### Parameters
|
|
35
|
+
|
|
36
|
+
| Name | Type | Description |
|
|
37
|
+
| ------ | -------------------- | ----------- |
|
|
38
|
+
| `date` | `string \| string[]` | |
|
|
39
|
+
|
|
40
|
+
#### Returns
|
|
41
|
+
|
|
42
|
+
Type: `Promise<void>`
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
----------------------------------------------
|
|
48
|
+
|
|
49
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# xpl-checkbox
|
|
2
|
+
|
|
3
|
+
Checkboxes allow users to make selections or choices. Checkboxes can be multi-select, and also act as controls.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| --------------- | --------------- | ----------------------------------------------------------------------------------- | --------- | ----------- |
|
|
12
|
+
| `checked` | `checked` | Whether the input is checked | `boolean` | `undefined` |
|
|
13
|
+
| `dataId` | `data-id` | A custom data attribute for the checkbox | `string` | `undefined` |
|
|
14
|
+
| `description` | `description` | Description text for the field | `string` | `undefined` |
|
|
15
|
+
| `disabled` | `disabled` | Whether the input is disabled | `boolean` | `undefined` |
|
|
16
|
+
| `indeterminate` | `indeterminate` | A visual state for when the input has not been interacted with | `boolean` | `undefined` |
|
|
17
|
+
| `name` | `name` | The name attribute for the html input. (submitted in form as name/value pair) | `string` | `undefined` |
|
|
18
|
+
| `required` | `required` | Whether the input is required | `boolean` | `undefined` |
|
|
19
|
+
| `styled` | `styled` | Whether the input is contained in a box with a border and a background | `boolean` | `undefined` |
|
|
20
|
+
| `value` | `value` | The value attribute for the checkbox input. (submittted in form as name/value pair) | `string` | `undefined` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Events
|
|
24
|
+
|
|
25
|
+
| Event | Description | Type |
|
|
26
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
|
|
27
|
+
| `checkboxChange` | Event that emits the current value of the checkbox input Returns the value of the checkbox input if a value is provided, otherwise returns the checked state | `CustomEvent<boolean \| string>` |
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## Dependencies
|
|
31
|
+
|
|
32
|
+
### Used by
|
|
33
|
+
|
|
34
|
+
- [xpl-choicelist](../xpl-choicelist)
|
|
35
|
+
- [xpl-header-accordion](../xpl-header-accordion)
|
|
36
|
+
- [xpl-table-header-cell](../xpl-table-header-cell)
|
|
37
|
+
|
|
38
|
+
### Graph
|
|
39
|
+
```mermaid
|
|
40
|
+
graph TD;
|
|
41
|
+
xpl-choicelist --> xpl-checkbox
|
|
42
|
+
xpl-header-accordion --> xpl-checkbox
|
|
43
|
+
xpl-table-header-cell --> xpl-checkbox
|
|
44
|
+
style xpl-checkbox fill:#f9f,stroke:#333,stroke-width:4px
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
----------------------------------------------
|
|
48
|
+
|
|
49
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# xpl-choicelist
|
|
2
|
+
|
|
3
|
+
A Choice List allows users to make single or multiple selections from a list of choices. This component is meant to consume the radio and checkbox components, either styled or unstyled, then allow for customizing an option list very quickly.
|
|
4
|
+
<!-- Auto Generated Below -->
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Description | Type | Default |
|
|
10
|
+
| ------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ----------- |
|
|
11
|
+
| `choices` | -- | An array of choices to be displayed in the list. Each choice should be an object with keys: - `checked` [boolean] - whether to pre-check or not - `children` [Choice[]] - an array of child choices (recursive) - `description` [string] - `label` [string] | `Choice[]` | `undefined` |
|
|
12
|
+
| `description` | `description` | Descriptive text to be displayed above the choice-list. | `string` | `undefined` |
|
|
13
|
+
| `heading` | `heading` | The title text to be displayed above the choice-list. | `string` | `undefined` |
|
|
14
|
+
| `multi` | `multi` | Whether the user can select more than one choice (true) or only a single choice (false). Corresponds to checkboxes vs. radio buttons. | `boolean` | `undefined` |
|
|
15
|
+
| `name` | `name` | The `name` to be associated with form data. | `string` | `uuid()` |
|
|
16
|
+
| `styled` | `styled` | If `true`, will include borders around the list and between individual choices. | `boolean` | `undefined` |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
| Event | Description | Type |
|
|
22
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
|
|
23
|
+
| `choicelistChange` | An event that is emitted when the selected value changes. The event detail will be an array of booleans, where each boolean corresponds to the checked state of the choices. | `CustomEvent<boolean[]>` |
|
|
24
|
+
| `choicelistValueChange` | An event that is emitted when the selected value changes. The event detail will be an array if the multi prop is true, otherwise it will be a single value. The value will be string if value is provided for choices, otherwise it will be a boolean. NOTE: This will only be emitted if choices have a value property. | `CustomEvent<(string \| boolean)[] \| boolean \| string>` |
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Dependencies
|
|
28
|
+
|
|
29
|
+
### Depends on
|
|
30
|
+
|
|
31
|
+
- [xpl-checkbox](../xpl-checkbox)
|
|
32
|
+
- [xpl-radio](../xpl-radio)
|
|
33
|
+
|
|
34
|
+
### Graph
|
|
35
|
+
```mermaid
|
|
36
|
+
graph TD;
|
|
37
|
+
xpl-choicelist --> xpl-checkbox
|
|
38
|
+
xpl-choicelist --> xpl-radio
|
|
39
|
+
style xpl-choicelist fill:#f9f,stroke:#333,stroke-width:4px
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
----------------------------------------------
|
|
43
|
+
|
|
44
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# xpl-content-area
|
|
2
|
+
|
|
3
|
+
The `<xpl-content-area>` sets up the area for the main content of the page. This component renders a `<main>` element with an unnamed `<slot>`, and should not be combined with another `<main>` in the same page.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------- | --------- | ----------- | ------------------------------ | -------- |
|
|
12
|
+
| `size` | `size` | | `"full" \| "narrow" \| "wide"` | `'wide'` |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
----------------------------------------------
|
|
16
|
+
|
|
17
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# xpl-dashboard
|
|
2
|
+
|
|
3
|
+
The XPL-Dashboard component is a code-only utility component for responsive layouts using the XPL-Data Card component.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
----------------------------------------------
|
|
9
|
+
|
|
10
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|