@xplortech/apollo-core 2.5.0 → 2.7.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 +1156 -115
- package/build/style.css +12151 -5333
- package/dist/apollo-core/apollo-core.css +68 -37
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-f4c2626d.entry.js → p-084d26ed.entry.js} +1 -1
- package/dist/apollo-core/p-146d5d55.entry.js +1 -0
- package/dist/apollo-core/p-16742606.entry.js +1 -0
- package/dist/apollo-core/{p-0ac33b3a.entry.js → p-28d12fd3.entry.js} +1 -1
- package/dist/apollo-core/{p-7d245bf0.entry.js → p-3eb5eb7c.entry.js} +1 -1
- package/dist/apollo-core/p-4882f0bd.entry.js +1 -0
- package/dist/apollo-core/p-64b34268.entry.js +1 -0
- package/dist/apollo-core/p-6c956d4e.entry.js +1 -0
- package/dist/apollo-core/p-71b75f36.entry.js +1 -0
- package/dist/apollo-core/p-7eb86c63.entry.js +1 -0
- package/dist/apollo-core/{p-0e1877a2.entry.js → p-84254a24.entry.js} +1 -1
- package/dist/apollo-core/p-9f2a0321.entry.js +1 -0
- package/dist/apollo-core/p-C7bgJs6C.js +2 -0
- package/dist/apollo-core/p-cde83ab0.entry.js +1 -0
- package/dist/apollo-core/p-e7363036.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +3 -3
- package/dist/cjs/{index-D__N_vw2.js → index-BQ97-AWw.js} +149 -96
- 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_41.cjs.entry.js → xpl-avatar_61.cjs.entry.js} +9154 -1989
- 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-main-nav.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 +26 -8
- 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 +122 -103
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +250 -16
- 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 +76 -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 +296 -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 +201 -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 +48 -26
- 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 +3 -3
- 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/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/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/xpl-header-accordion.js +47 -54
- package/dist/collection/components/xpl-icon/xpl-icon.js +3 -3
- package/dist/collection/components/xpl-input/input.stories.js +170 -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-search/xpl-input-search.js +485 -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 +223 -17
- 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 +300 -63
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +818 -0
- package/dist/collection/components/xpl-list/xpl-list.js +580 -22
- 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 +53 -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-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-progress-indicator/progress-indicator.stories.js +118 -0
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +171 -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/xpl-select.js +7 -7
- 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/xpl-skeleton.js +2 -2
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +2 -2
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +385 -0
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +1085 -0
- package/dist/collection/components/xpl-tab/xpl-tab.js +262 -9
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +23 -16
- package/dist/collection/components/xpl-table/table.stories.js +319 -67
- package/dist/collection/components/xpl-table/utils/move-row-dom.js +50 -0
- package/dist/collection/components/xpl-table/utils/table-internal.js +58 -0
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +155 -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-header/table-header.stories.js +131 -0
- package/dist/collection/components/xpl-table/xpl-table-header/xpl-table-header.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-header-cell/table-header-cell.stories.js +105 -0
- package/dist/collection/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.js +402 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +121 -0
- package/dist/collection/components/xpl-table/xpl-table.js +1449 -144
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +31 -0
- package/dist/collection/components/xpl-tabs/tabs.shared.js +156 -0
- package/dist/collection/components/xpl-tabs/tabs.stories.js +10 -60
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +339 -63
- package/dist/collection/components/xpl-tag/tag.stories.js +153 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +313 -10
- package/dist/collection/components/xpl-toast/xpl-toast.js +3 -3
- 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/xpl-tooltip.js +2 -2
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +625 -0
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +122 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +481 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +433 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +2 -2
- package/dist/collection/utils/layout-ancestors.js +22 -0
- package/dist/collection/utils/lifecycle.js +79 -0
- package/dist/collection/utils/tab-a11y-ids.js +22 -0
- package/dist/components/floating-ui.dom.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/lifecycle.js +1 -0
- package/dist/components/tab-a11y-ids.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-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 -1
- 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-search.d.ts +11 -0
- package/dist/components/xpl-input-search.js +1 -0
- package/dist/components/xpl-input-search2.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-progress.d.ts → xpl-list-item.d.ts} +4 -4
- package/dist/components/xpl-list-item.js +1 -0
- package/dist/components/xpl-list-item2.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/xpl-nav-header-menu.js +1 -0
- 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-indicator.d.ts +11 -0
- package/dist/components/xpl-progress-indicator.js +1 -0
- 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-spotlight.d.ts +11 -0
- package/dist/components/xpl-spotlight.js +1 -0
- 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-cell.d.ts +11 -0
- package/dist/components/xpl-table-cell.js +1 -0
- package/dist/components/xpl-table-cell2.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-cell2.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-cell2.js +1 -0
- 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-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-top-nav-item.d.ts +11 -0
- package/dist/components/xpl-top-nav-item.js +1 -0
- package/dist/components/xpl-top-nav-item2.js +1 -0
- package/dist/components/xpl-top-nav.d.ts +11 -0
- package/dist/components/xpl-top-nav.js +1 -0
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +4 -0
- package/dist/docs/xpl-avatar/readme.md +291 -12
- package/dist/docs/xpl-backdrop/readme.md +1 -1
- package/dist/docs/xpl-badge/readme.md +104 -6
- package/dist/docs/xpl-banner/readme.md +203 -0
- package/dist/docs/xpl-button/readme.md +161 -14
- package/dist/docs/xpl-button-row/readme.md +1 -0
- package/dist/docs/xpl-calendar/readme.md +2 -1
- package/dist/docs/xpl-checkbox/readme.md +19 -14
- package/dist/docs/xpl-choicelist/readme.md +1 -0
- package/dist/docs/xpl-data-card/readme.md +2 -2
- package/dist/docs/xpl-divider/readme.md +6 -4
- package/dist/docs/xpl-dropdown/readme.md +15 -12
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +1 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +6 -0
- package/dist/docs/xpl-dynamic-table/readme.md +22 -19
- package/dist/docs/xpl-dynamic-table-cell/readme.md +20 -18
- package/dist/docs/xpl-dynamic-table-row/readme.md +21 -19
- package/dist/docs/xpl-icon/readme.md +27 -3
- package/dist/docs/xpl-input/readme.md +72 -37
- package/dist/docs/xpl-input/xpl-input-color/readme.md +5 -0
- package/dist/docs/xpl-input/xpl-input-phone/readme.md +168 -0
- package/dist/docs/xpl-input/xpl-input-search/readme.md +175 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +5 -0
- package/dist/docs/xpl-large-card/readme.md +1 -1
- package/dist/docs/xpl-list/readme.md +320 -10
- package/dist/docs/xpl-list/xpl-list-item/readme.md +99 -0
- package/dist/docs/xpl-modal/readme.md +3 -0
- package/dist/docs/xpl-pagination/readme.md +4 -0
- package/dist/docs/xpl-panel/readme.md +174 -0
- package/dist/docs/xpl-popover/readme.md +3 -1
- package/dist/docs/xpl-progress-bar/readme.md +145 -0
- package/dist/docs/xpl-progress-indicator/readme.md +234 -0
- package/dist/docs/xpl-radio/readme.md +6 -4
- package/dist/docs/xpl-select/readme.md +3 -1
- 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-slideout/readme.md +2 -1
- package/dist/docs/xpl-spotlight/readme.md +235 -0
- package/dist/docs/xpl-tab/readme.md +43 -7
- package/dist/docs/xpl-tab-panel/readme.md +42 -0
- package/dist/docs/xpl-table/readme.md +110 -46
- package/dist/docs/xpl-table/xpl-table-body/readme.md +10 -0
- package/dist/docs/xpl-table/xpl-table-cell/readme.md +33 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +10 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +30 -0
- package/dist/docs/{xpl-table-header → xpl-table/xpl-table-header}/readme.md +13 -13
- package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +66 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +19 -0
- package/dist/docs/xpl-tabs/readme.md +63 -8
- package/dist/docs/xpl-tag/readme.md +379 -4
- package/dist/docs/xpl-toast/readme.md +56 -1
- package/dist/docs/xpl-top-nav/readme.md +179 -0
- package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +81 -0
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +87 -0
- package/dist/esm/apollo-core.js +4 -4
- package/dist/esm/{index-DhZas3eX.js → index-C7bgJs6C.js} +149 -97
- 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_41.entry.js → xpl-avatar_61.entry.js} +9087 -1942
- 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-main-nav.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 +90 -27
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +30 -3
- 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 +47 -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 +21 -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 +5 -4
- 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 +1 -1
- 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/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/xpl-header-accordion.d.ts +10 -11
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +1 -1
- package/dist/types/components/xpl-input/input.stories.d.ts +37 -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-search/xpl-input-search.d.ts +39 -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 +23 -5
- 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 +299 -13
- package/dist/types/components/xpl-list/listitem.d.ts +13 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +71 -0
- package/dist/types/components/xpl-list/xpl-list.d.ts +56 -3
- 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 +22 -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-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-progress-indicator/progress-indicator.stories.d.ts +62 -0
- package/dist/types/components/xpl-progress-indicator/xpl-progress-indicator.d.ts +11 -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/xpl-select.d.ts +1 -1
- 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/xpl-slideout.d.ts +1 -1
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +197 -0
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +101 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +15 -2
- package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +3 -2
- package/dist/types/components/xpl-table/table.stories.d.ts +161 -19
- package/dist/types/components/xpl-table/utils/move-row-dom.d.ts +3 -0
- package/dist/types/components/xpl-table/utils/table-internal.d.ts +8 -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-cell/xpl-table-cell.d.ts +11 -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-header → xpl-table/xpl-table-header}/table-header.stories.d.ts +13 -16
- package/dist/types/components/xpl-table/xpl-table-header/xpl-table-header.d.ts +3 -0
- package/dist/types/components/{xpl-table-header-cell → xpl-table/xpl-table-header-cell}/table-header-cell.stories.d.ts +24 -20
- package/dist/types/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.d.ts +32 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +13 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +124 -22
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +112 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +156 -0
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +65 -12
- package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +38 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +65 -0
- package/dist/types/components/xpl-tag/xpl-tag.d.ts +37 -2
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +1 -1
- 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/xpl-tooltip.d.ts +1 -1
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +471 -0
- package/dist/types/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.d.ts +18 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +48 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +51 -0
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -1
- package/dist/types/components.d.ts +3059 -278
- package/dist/types/stencil-public-runtime.d.ts +23 -2
- package/dist/types/utils/layout-ancestors.d.ts +2 -0
- package/dist/types/utils/lifecycle.d.ts +16 -0
- package/dist/types/utils/tab-a11y-ids.d.ts +4 -0
- package/package.json +42 -28
- package/dist/apollo-core/p-1c2e4034.entry.js +0 -1
- package/dist/apollo-core/p-3b5f8989.entry.js +0 -1
- package/dist/apollo-core/p-4fab8172.entry.js +0 -1
- package/dist/apollo-core/p-576ce90f.entry.js +0 -1
- package/dist/apollo-core/p-5ec45742.entry.js +0 -1
- package/dist/apollo-core/p-77f0fd4a.entry.js +0 -1
- package/dist/apollo-core/p-7b7db57a.entry.js +0 -1
- package/dist/apollo-core/p-7c22b842.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-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-list.cjs.entry.js +0 -32
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +0 -57
- package/dist/cjs/xpl-table-header.cjs.entry.js +0 -14
- package/dist/collection/components/xpl-progress/progress.stories.js +0 -106
- package/dist/collection/components/xpl-progress/xpl-progress.js +0 -60
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -126
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +0 -7
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -75
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +0 -188
- package/dist/components/xpl-progress.js +0 -1
- package/dist/docs/xpl-progress/readme.md +0 -22
- package/dist/docs/xpl-table-header-cell/readme.md +0 -47
- package/dist/esm/xpl-list.entry.js +0 -30
- package/dist/esm/xpl-table-header-cell.entry.js +0 -55
- package/dist/esm/xpl-table-header.entry.js +0 -12
- package/dist/types/components/xpl-progress/progress.stories.d.ts +0 -38
- package/dist/types/components/xpl-progress/xpl-progress.d.ts +0 -6
- package/dist/types/components/xpl-table-header/xpl-table-header.d.ts +0 -3
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +0 -13
|
@@ -1,26 +1,124 @@
|
|
|
1
1
|
# xpl-badge
|
|
2
2
|
|
|
3
|
+
`xpl-badge` is a small, non-interactive status indicator used to communicate counts, states, or supplementary information next to another element. Badges are **never clickable** – use a button or link if you need interaction.
|
|
4
|
+
|
|
5
|
+
Badges support multiple **variants** (colors), **sizes**, **shapes**, and **dot styles**, so they can be used both as pill labels and as compact status / notification indicators.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<xpl-badge variant="green">Active</xpl-badge>
|
|
11
|
+
<xpl-badge variant="yellow">Pending</xpl-badge>
|
|
12
|
+
<xpl-badge variant="red">Error</xpl-badge>
|
|
13
|
+
<xpl-badge variant="gray" size="small">Draft</xpl-badge>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Attach badges close to the item they describe (a label, row, chip, or control). Prefer **short labels** (often one or two words) for readability.
|
|
17
|
+
|
|
18
|
+
### Label text and overflow
|
|
19
|
+
|
|
20
|
+
Slot content is rendered inside an internal `.xpl-badge__label` wrapper (you do not add this in your markup). Labels are **single-line**: text does not wrap to multiple lines. When horizontal space is tight (for example a narrow column or flex layout), overflowing text **truncates with an ellipsis** (`…`). The host respects the parent width (`max-width: 100%`). If truncation makes a label hard to read, shorten the copy or widen the layout; use a tooltip or similar only if your product needs the full string on hover.
|
|
21
|
+
|
|
22
|
+
## Sizes & shapes
|
|
23
|
+
|
|
24
|
+
- **size**
|
|
25
|
+
- `default` (default): `24px` tall pill, used for most cases.
|
|
26
|
+
- `small`: `20px` tall, more compact for dense UIs or table rows.
|
|
27
|
+
- **shape**
|
|
28
|
+
- `rounded` (default): full pill with fully rounded ends.
|
|
29
|
+
- `boxy`: rounded corners but not a full pill; better for more neutral / data-heavy contexts.
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<xpl-badge size="default" shape="rounded">Default pill</xpl-badge>
|
|
33
|
+
<xpl-badge size="small" shape="boxy">Small boxy</xpl-badge>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Dots and dot-only badges
|
|
37
|
+
|
|
38
|
+
### Dot badge (pill with leading dot)
|
|
39
|
+
|
|
40
|
+
Set `dot` to add a colored dot before the text, inside the pill:
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<xpl-badge variant="green" dot>Online</xpl-badge>
|
|
44
|
+
<xpl-badge variant="yellow" dot>Syncing</xpl-badge>
|
|
45
|
+
<xpl-badge variant="red" dot>Error</xpl-badge>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Dot-only badge (compact status / count)
|
|
49
|
+
|
|
50
|
+
> [!IMPORTANT]
|
|
51
|
+
> Dot-only badges are meant to be used with **numeric values** (or very short strings). For longer text labels, use the standard badge (without `dot-only`).
|
|
52
|
+
|
|
53
|
+
- When overlaying another element with a background color, use the `bordered` property so the badge separates clearly from what is behind it.
|
|
54
|
+
|
|
55
|
+
Set `dot-only` when you want a badge built around the dot:
|
|
56
|
+
|
|
57
|
+
- With **no children**: renders a small circular status dot.
|
|
58
|
+
- With **children**: renders a compact pill with text or a number inside (for example an unread count).
|
|
59
|
+
- **Notification-style counts** are often appended to a label or another component. Dot-only label text follows the same **single-line truncation** rules as standard badges when space is limited.
|
|
60
|
+
- Use **`bordered`** to toggle a ring around the dot badge for separation from an avatar or similar surface.
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<!-- Status dot only -->
|
|
64
|
+
<xpl-badge variant="green" dot-only></xpl-badge>
|
|
65
|
+
|
|
66
|
+
<!-- Dot with count / text -->
|
|
67
|
+
<xpl-badge variant="red" dot-only>3</xpl-badge>
|
|
68
|
+
<xpl-badge variant="blue" dot-only>99+</xpl-badge>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Variants
|
|
72
|
+
|
|
73
|
+
Use variants to communicate state or category. Preferred values for `variant`:
|
|
74
|
+
|
|
75
|
+
- `purple` (default)
|
|
76
|
+
- `green`
|
|
77
|
+
- `yellow`
|
|
78
|
+
- `orange`
|
|
79
|
+
- `gray`
|
|
80
|
+
- `red`
|
|
81
|
+
- `blue`
|
|
82
|
+
|
|
83
|
+
The legacy semantic names `success`, `warning`, `inactive`, and `error` are still accepted and map to `green`, `yellow`, `gray`, and `red` respectively. Prefer the color names for new code.
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<xpl-badge variant="purple">Default</xpl-badge>
|
|
87
|
+
<xpl-badge variant="orange" dot>In progress</xpl-badge>
|
|
88
|
+
<xpl-badge variant="blue" dot-only>12</xpl-badge>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
- Each dot has **stronger solid color** for dot-only badges, with dark-mode adjustments handled by CSS.
|
|
92
|
+
|
|
93
|
+
- Each variant uses Apollo Foundation badge tokens (`--xpl-background-badge-`*, `--xpl-border-badge-*`, `--xpl-icon-badge-*`, `--xpl-text-badge-*`) that auto-switch between light and dark modes. Dot-only badges use the corresponding `--xpl-icon-badge-*` accent color for their solid fill.
|
|
94
|
+
|
|
3
95
|
<!-- Auto Generated Below -->
|
|
4
96
|
|
|
5
97
|
|
|
6
98
|
## Properties
|
|
7
99
|
|
|
8
|
-
| Property
|
|
9
|
-
|
|
|
10
|
-
| `
|
|
11
|
-
| `
|
|
100
|
+
| Property | Attribute | Description | Type | Default |
|
|
101
|
+
| ---------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
102
|
+
| `bordered` | `bordered` | Whether badge shows a bordered ring | `boolean` | `false` |
|
|
103
|
+
| `dot` | `dot` | Whether badge shows a dot icon before the text (inside the pill) | `boolean` | `undefined` |
|
|
104
|
+
| `dotOnly` | `dot-only` | When true, render a compact badge built around the dot. - With no children: just a dot (status/dot badge) - With children: a small dot badge with the text/number inside | `boolean` | `false` |
|
|
105
|
+
| `shape` | `shape` | Badge shape rounded (pill) boxy (rounded corners) | `"boxy" \| "rounded"` | `'rounded'` |
|
|
106
|
+
| `size` | `size` | Badge size default \| small | `"default" \| "small"` | `'default'` |
|
|
107
|
+
| `variant` | `variant` | Badge variant (color). Preferred values: `purple`, `green`, `yellow`, `orange`, `gray`, `red`, `blue`. The legacy semantic names `success`, `warning`, `inactive`, and `error` are still accepted and map to `green`, `yellow`, `gray`, and `red` respectively. Prefer the color names for new code. | `"blue" \| "error" \| "gray" \| "green" \| "inactive" \| "orange" \| "purple" \| "red" \| "success" \| "warning" \| "yellow"` | `'purple'` |
|
|
12
108
|
|
|
13
109
|
|
|
14
110
|
## Dependencies
|
|
15
111
|
|
|
16
112
|
### Used by
|
|
17
113
|
|
|
18
|
-
- [xpl-
|
|
114
|
+
- [xpl-avatar](../xpl-avatar)
|
|
115
|
+
- [xpl-list-item](../xpl-list/xpl-list-item)
|
|
19
116
|
|
|
20
117
|
### Graph
|
|
21
118
|
```mermaid
|
|
22
119
|
graph TD;
|
|
23
|
-
xpl-
|
|
120
|
+
xpl-avatar --> xpl-badge
|
|
121
|
+
xpl-list-item --> xpl-badge
|
|
24
122
|
style xpl-badge fill:#f9f,stroke:#333,stroke-width:4px
|
|
25
123
|
```
|
|
26
124
|
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
### Web component (`<xpl-banner>`)
|
|
8
|
+
|
|
9
|
+
Bar layout (default) with heading, description, primary action, and dismiss:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<xpl-banner
|
|
13
|
+
appearance="information"
|
|
14
|
+
heading="Your session will expire soon."
|
|
15
|
+
description="Save your work to avoid losing changes."
|
|
16
|
+
action-text="Extend session"
|
|
17
|
+
is-dismissible="true"
|
|
18
|
+
></xpl-banner>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Section layout with optional secondary action and no leading icon:
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<xpl-banner
|
|
25
|
+
appearance="positive"
|
|
26
|
+
is-section="true"
|
|
27
|
+
has-icon="false"
|
|
28
|
+
heading="Changes saved"
|
|
29
|
+
description="Your updates are stored."
|
|
30
|
+
action-text="View details"
|
|
31
|
+
secondary-action-text="Undo"
|
|
32
|
+
></xpl-banner>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Plain HTML (BEM classes)
|
|
36
|
+
|
|
37
|
+
Use the same structure when styling with `banner.css` without the Stencil component. Switch bar vs section with host modifiers (`xpl-banner--section`, `xpl-banner--no-icon`, `xpl-banner--{appearance}`).
|
|
38
|
+
|
|
39
|
+
## Accessibility
|
|
40
|
+
|
|
41
|
+
`xpl-banner` uses `role="region"` so the banner is a navigable landmark.
|
|
42
|
+
|
|
43
|
+
**`aria-label` on the host (never empty):**
|
|
44
|
+
|
|
45
|
+
| Layout | `aria-label` source |
|
|
46
|
+
| ------ | ------------------- |
|
|
47
|
+
| Bar (default) | Fixed label from `appearance`: `"Information banner"`, `"Positive banner"`, `"Warning banner"`, or `"Error banner"`. |
|
|
48
|
+
| Section | Trimmed `heading` when present; otherwise `"Section banner"`. |
|
|
49
|
+
|
|
50
|
+
Keyboard: **Tab** moves focus to action buttons and the dismiss control; **Enter** and **Space** activate `xpl-button` actions and the dismiss button. Focus rings use `:focus-visible` (dismiss uses appearance-specific outline tokens in CSS; actions use `xpl-button` focus styles).
|
|
51
|
+
|
|
52
|
+
- The leading icon wrapper carries `aria-hidden="true"` — the icon is decorative; the message text is the accessible content.
|
|
53
|
+
- The dismiss `<xpl-icon>` inside the dismiss button also carries `aria-hidden="true"` so the decorative icon is not announced in addition to the button label.
|
|
54
|
+
- The dismiss button `aria-label` is `"Dismiss banner"` in bar layout and `"Dismiss section banner"` when `is-section` is true.
|
|
55
|
+
|
|
56
|
+
## Token Use
|
|
57
|
+
|
|
58
|
+
- `information`
|
|
59
|
+
- Background: `--xpl-background-messaging-information`
|
|
60
|
+
- Border: `--xpl-border-accent-information`
|
|
61
|
+
- Icon: `--xpl-icon-default`
|
|
62
|
+
- Main text: `--xpl-text-strong` (with `--xpl-text-default` fallback)
|
|
63
|
+
- Detail text: `--xpl-text-default`
|
|
64
|
+
- `warning`
|
|
65
|
+
- Background: `--xpl-background-messaging-warning`
|
|
66
|
+
- Border: `--xpl-border-accent-warning`
|
|
67
|
+
- Icon: `--xpl-icon-default`
|
|
68
|
+
- Main text: `--xpl-text-strong` (with `--xpl-text-default` fallback)
|
|
69
|
+
- Detail text: `--xpl-text-default`
|
|
70
|
+
- Dismiss focus ring: `--xpl-border-accent-warning`
|
|
71
|
+
- `positive`
|
|
72
|
+
- Background: `--xpl-background-messaging-positive`
|
|
73
|
+
- Border: `--xpl-border-positive`
|
|
74
|
+
- Icon: `--xpl-icon-default`
|
|
75
|
+
- Main text: `--xpl-text-strong` (with `--xpl-text-default` fallback)
|
|
76
|
+
- Detail text: `--xpl-text-default`
|
|
77
|
+
- `error`
|
|
78
|
+
- Background: `--xpl-background-messaging-negative-bold`
|
|
79
|
+
- Border: `--xpl-border-negative`
|
|
80
|
+
- Icon and text: `--xpl-text-inverse-on-dark`
|
|
81
|
+
- Dismiss focus ring: `--xpl-text-inverse-on-dark`
|
|
82
|
+
- Dismiss button follows the same icon token as the current appearance.
|
|
83
|
+
- `information` dismiss focus ring uses `--xpl-border-accent-information`.
|
|
84
|
+
|
|
85
|
+
Light and dark mode are handled by Apollo Foundation token definitions. `xpl-banner` does not use component-level `.dark` token overrides.
|
|
86
|
+
|
|
87
|
+
## Icon Mapping
|
|
88
|
+
|
|
89
|
+
Each `appearance` value maps to a fixed `xpl-icon` name. When building the component in plain HTML, use the icon from this table:
|
|
90
|
+
|
|
91
|
+
| `appearance` | `xpl-icon` name |
|
|
92
|
+
| ------------- | ------------------ |
|
|
93
|
+
| `information` | `circle-info` |
|
|
94
|
+
| `warning` | `triangle-warning` |
|
|
95
|
+
| `positive` | `circle-check` |
|
|
96
|
+
| `error` | `octagon-warning` |
|
|
97
|
+
|
|
98
|
+
## Actions
|
|
99
|
+
|
|
100
|
+
Use `actionText` and `secondaryActionText` to render up to two `xpl-button` actions in the banner.
|
|
101
|
+
Both action buttons always render at `size="xs"` to match compact banner spacing.
|
|
102
|
+
|
|
103
|
+
The `variant` and `state` attributes on the action buttons depend on both `appearance` and layout:
|
|
104
|
+
|
|
105
|
+
| Layout | `appearance` | `variant` | `state` |
|
|
106
|
+
| --------- | ------------- | ----------- | ----------- |
|
|
107
|
+
| bar | `information` | `subtle` | — |
|
|
108
|
+
| bar | `warning` | `subtle` | — |
|
|
109
|
+
| bar | `positive` | `subtle` | — |
|
|
110
|
+
| bar | `error` | `primary` | `warning` |
|
|
111
|
+
| section | `information` | `subtle` | — |
|
|
112
|
+
| section | `warning` | `subtle` | — |
|
|
113
|
+
| section | `positive` | `subtle` | `success` |
|
|
114
|
+
| section | `error` | `subtle` | `warning` |
|
|
115
|
+
|
|
116
|
+
## Section Layout
|
|
117
|
+
|
|
118
|
+
Set `is-section` to render the section-banner layout:
|
|
119
|
+
- Header row with icon, heading, and optional dismiss
|
|
120
|
+
- Description below the header (2-line clamp by default)
|
|
121
|
+
- Actions below description
|
|
122
|
+
|
|
123
|
+
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`.
|
|
124
|
+
|
|
125
|
+
Bar and section variants share the same DOM shape. Plain-HTML example (classes only):
|
|
126
|
+
|
|
127
|
+
```html
|
|
128
|
+
<!-- Bar variant -->
|
|
129
|
+
<div class="xpl-banner xpl-banner--information">
|
|
130
|
+
<div class="xpl-banner__icon" aria-hidden="true">
|
|
131
|
+
<xpl-icon icon="circle-info" size="24"></xpl-icon>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="xpl-banner__body">
|
|
134
|
+
<p class="xpl-banner__heading">Heading</p>
|
|
135
|
+
<p class="xpl-banner__description">Description text</p>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="xpl-banner__actions">
|
|
138
|
+
<xpl-button size="xs" variant="subtle">Action</xpl-button>
|
|
139
|
+
</div>
|
|
140
|
+
<button class="xpl-banner__dismiss" type="button" aria-label="Dismiss banner">
|
|
141
|
+
<xpl-icon icon="xmark" size="24" aria-hidden="true"></xpl-icon>
|
|
142
|
+
</button>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<!-- Section variant — add xpl-banner--section; same markup otherwise -->
|
|
146
|
+
<div class="xpl-banner xpl-banner--section xpl-banner--information">
|
|
147
|
+
...
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
<!-- Section variant without icon -->
|
|
151
|
+
<div class="xpl-banner xpl-banner--section xpl-banner--no-icon xpl-banner--information">
|
|
152
|
+
<!-- omit .xpl-banner__icon -->
|
|
153
|
+
<div class="xpl-banner__body">...</div>
|
|
154
|
+
...
|
|
155
|
+
</div>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
<!-- Auto Generated Below -->
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## Properties
|
|
162
|
+
|
|
163
|
+
| Property | Attribute | Description | Type | Default |
|
|
164
|
+
| --------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | --------------- |
|
|
165
|
+
| `actionText` | `action-text` | Primary action label. When provided, an action button is rendered. | `string` | `undefined` |
|
|
166
|
+
| `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'` |
|
|
167
|
+
| `description` | `description` | Optional supporting message shown after the heading. Description text uses `--xpl-text-default`. | `string` | `undefined` |
|
|
168
|
+
| `hasIcon` | `has-icon` | Whether to render the leading icon in section layout. Ignored in bar layout — bar banners always show the icon. | `boolean` | `true` |
|
|
169
|
+
| `heading` | `heading` | Primary banner message shown with stronger title typography. | `string` | `undefined` |
|
|
170
|
+
| `isDismissible` | `is-dismissible` | Whether to show the trailing dismiss control. | `boolean` | `true` |
|
|
171
|
+
| `isSection` | `is-section` | Renders the section-style banner layout when true. | `boolean` | `false` |
|
|
172
|
+
| `secondaryActionText` | `secondary-action-text` | Secondary action label. When provided, a second action button is rendered. | `string` | `undefined` |
|
|
173
|
+
| `truncateDesc` | `truncate-desc` | When true, `description` is constrained to one line with ellipsis so banner height stays stable. | `boolean` | `false` |
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## Events
|
|
177
|
+
|
|
178
|
+
| Event | Description | Type |
|
|
179
|
+
| ----------------- | --------------------------------------------- | ------------------- |
|
|
180
|
+
| `action` | Emitted when the primary action is clicked. | `CustomEvent<void>` |
|
|
181
|
+
| `dismiss` | Emitted when the dismiss button is clicked. | `CustomEvent<void>` |
|
|
182
|
+
| `secondaryAction` | Emitted when the secondary action is clicked. | `CustomEvent<void>` |
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
## Dependencies
|
|
186
|
+
|
|
187
|
+
### Depends on
|
|
188
|
+
|
|
189
|
+
- [xpl-icon](../xpl-icon)
|
|
190
|
+
- [xpl-button](../xpl-button)
|
|
191
|
+
|
|
192
|
+
### Graph
|
|
193
|
+
```mermaid
|
|
194
|
+
graph TD;
|
|
195
|
+
xpl-banner --> xpl-icon
|
|
196
|
+
xpl-banner --> xpl-button
|
|
197
|
+
xpl-button --> xpl-icon
|
|
198
|
+
style xpl-banner fill:#f9f,stroke:#333,stroke-width:4px
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
----------------------------------------------
|
|
202
|
+
|
|
203
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -1,41 +1,188 @@
|
|
|
1
1
|
# xpl-button
|
|
2
2
|
|
|
3
|
-
Buttons allow users to take an action
|
|
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-*`, `aria-*`, and `role` on the host:** mirrored onto the inner `<button>` after render for accessibility and testing tools. After forwarding, these attributes are removed from the host element. Avoid relying on `role` on the host for external selectors.
|
|
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
|
+
- For **WAI-ARIA composite widgets** (like tabs), use the **`controlAttrs`** prop to apply `id`, `role`, `aria-controls`, `aria-selected`, and `aria-current` directly to the inner `<button>`. This is preferred over setting these attributes on the host, which would be forwarded and removed from the host.
|
|
4
131
|
|
|
5
132
|
<!-- Auto Generated Below -->
|
|
6
133
|
|
|
7
134
|
|
|
8
135
|
## Properties
|
|
9
136
|
|
|
10
|
-
| Property
|
|
11
|
-
|
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
137
|
+
| Property | Attribute | Description | Type | Default |
|
|
138
|
+
| -------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
139
|
+
| `controlAttrs` | -- | Attributes to apply to the inner native `<button>` (e.g., tab a11y wiring). Use this instead of setting `id` / `role` / `aria-*` on the host when the inner control is the element that needs them (e.g., WAI-ARIA composite widgets). | `{ id?: string; role?: string; 'aria-controls'?: string; 'aria-selected'?: "true" \| "false"; 'aria-current'?: string; }` | `undefined` |
|
|
140
|
+
| `disabled` | `disabled` | Whether button should be disabled | `boolean` | `false` |
|
|
141
|
+
| `form` | `form` | An optional form attribute for the button if type is submit | `string` | `undefined` |
|
|
142
|
+
| `fullWidth` | `full-width` | Whether the button should be of full width as per parent container. | `boolean` | `false` |
|
|
143
|
+
| `icon` | `icon` | Icon to render - icon name as string (from xpl-icon library). | `string` | `''` |
|
|
144
|
+
| `iconOnly` | `icon-only` | When true, the button renders in icon-only circular style. Use for icon-only buttons. | `boolean` | `false` |
|
|
145
|
+
| `iconPosition` | `icon-position` | Icon position relative to slot content. Ignored if no icon is provided. | `"end" \| "start"` | `'start'` |
|
|
146
|
+
| `isLoading` | `is-loading` | When true, shows a loading overlay with spinner over the button. Button is non-interactive. | `boolean` | `false` |
|
|
147
|
+
| `link` | `link` | whether button should yield a slot for a link tag | `boolean` | `undefined` |
|
|
148
|
+
| `name` | `name` | Name of the button, submitted with form data. Passed through to the native button element. | `string` | `undefined` |
|
|
149
|
+
| `sentiment` | `sentiment` | Sentiment of the button, which applies different color schemes to indicate purpose/intent. | `"negative" \| "neutral" \| "positive"` | `'neutral'` |
|
|
150
|
+
| `size` | `size` | Button size. Use 'default', 'xs' (extra small), or 'sm' (small). | `"default" \| "sm" \| "xs"` | `'default'` |
|
|
151
|
+
| `state` | `state` | <span style="color:red">**[DEPRECATED]**</span> : Use `sentiment` with values "neutral", "negative", "positive" instead of `state` .<br/><br/> | `"neutral" \| "success" \| "warning"` | `undefined` |
|
|
152
|
+
| `type` | `type` | HTML button type attribute. | `"button" \| "reset" \| "submit"` | `undefined` |
|
|
153
|
+
| `value` | `value` | Value of the button, submitted with form data. Passed through to the native button element. | `string` | `undefined` |
|
|
154
|
+
| `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'` |
|
|
23
155
|
|
|
24
156
|
|
|
25
157
|
## Dependencies
|
|
26
158
|
|
|
27
159
|
### Used by
|
|
28
160
|
|
|
161
|
+
- [xpl-banner](../xpl-banner)
|
|
29
162
|
- [xpl-button-row](../xpl-button-row)
|
|
163
|
+
- [xpl-list-item](../xpl-list/xpl-list-item)
|
|
30
164
|
- [xpl-modal](../xpl-modal)
|
|
31
165
|
- [xpl-slideout](../xpl-slideout)
|
|
166
|
+
- [xpl-spotlight](../xpl-spotlight)
|
|
167
|
+
- [xpl-tab](../xpl-tab)
|
|
168
|
+
- [xpl-top-nav](../xpl-top-nav)
|
|
169
|
+
|
|
170
|
+
### Depends on
|
|
171
|
+
|
|
172
|
+
- [xpl-icon](../xpl-icon)
|
|
32
173
|
|
|
33
174
|
### Graph
|
|
34
175
|
```mermaid
|
|
35
176
|
graph TD;
|
|
177
|
+
xpl-button --> xpl-icon
|
|
178
|
+
xpl-banner --> xpl-button
|
|
36
179
|
xpl-button-row --> xpl-button
|
|
180
|
+
xpl-list-item --> xpl-button
|
|
37
181
|
xpl-modal --> xpl-button
|
|
38
182
|
xpl-slideout --> xpl-button
|
|
183
|
+
xpl-spotlight --> xpl-button
|
|
184
|
+
xpl-tab --> xpl-button
|
|
185
|
+
xpl-top-nav --> xpl-button
|
|
39
186
|
style xpl-button fill:#f9f,stroke:#333,stroke-width:4px
|
|
40
187
|
```
|
|
41
188
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# xpl-calendar
|
|
2
2
|
|
|
3
|
-
|
|
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://apollo.xplordocs.com/?path=/story/components-input--datepicker).
|
|
4
5
|
|
|
5
6
|
<!-- Auto Generated Below -->
|
|
6
7
|
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
# xpl-checkbox
|
|
2
|
-
|
|
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
|
+
Provide visible label text in the default slot, or set `aria-label` when the checkbox has no adjacent label (for example, icon-only toolbars or table selection cells).
|
|
6
|
+
|
|
3
7
|
<!-- Auto Generated Below -->
|
|
4
8
|
|
|
5
9
|
|
|
6
10
|
## Properties
|
|
7
11
|
|
|
8
|
-
| Property | Attribute | Description
|
|
9
|
-
| --------------- | --------------- |
|
|
10
|
-
| `
|
|
11
|
-
| `
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
12
|
+
| Property | Attribute | Description | Type | Default |
|
|
13
|
+
| --------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | ----------- |
|
|
14
|
+
| `ariaLabel` | `aria-label` | Accessible name for the native checkbox input (sets `aria-label` on the `input`). Use when there is no visible label text in the default slot. Defaults to `''`; empty or whitespace-only values omit `aria-label` on the input so a visible `<label>` remains the sole name source. | `string` | `''` |
|
|
15
|
+
| `checked` | `checked` | Whether the input is checked | `boolean` | `undefined` |
|
|
16
|
+
| `dataId` | `data-id` | A custom data attribute for the checkbox | `string` | `undefined` |
|
|
17
|
+
| `description` | `description` | Description text for the field | `string` | `undefined` |
|
|
18
|
+
| `disabled` | `disabled` | Whether the input is disabled | `boolean` | `undefined` |
|
|
19
|
+
| `indeterminate` | `indeterminate` | A visual state for when the input has not been interacted with | `boolean` | `undefined` |
|
|
20
|
+
| `name` | `name` | The name attribute for the html input. (submitted in form as name/value pair) | `string` | `undefined` |
|
|
21
|
+
| `required` | `required` | Whether the input is required | `boolean` | `undefined` |
|
|
22
|
+
| `styled` | `styled` | Whether the input is contained in a box with a border and a background | `boolean` | `undefined` |
|
|
23
|
+
| `value` | `value` | The value attribute for the checkbox input. (submittted in form as name/value pair) | `string` | `undefined` |
|
|
19
24
|
|
|
20
25
|
|
|
21
26
|
## Events
|
|
@@ -31,7 +36,7 @@
|
|
|
31
36
|
|
|
32
37
|
- [xpl-choicelist](../xpl-choicelist)
|
|
33
38
|
- [xpl-header-accordion](../xpl-header-accordion)
|
|
34
|
-
- [xpl-table-header-cell](../xpl-table-header-cell)
|
|
39
|
+
- [xpl-table-header-cell](../xpl-table/xpl-table-header-cell)
|
|
35
40
|
|
|
36
41
|
### Graph
|
|
37
42
|
```mermaid
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# xpl-choicelist
|
|
2
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.
|
|
3
4
|
<!-- Auto Generated Below -->
|
|
4
5
|
|
|
5
6
|
|