@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,55 @@
|
|
|
1
|
+
# xpl-pagination
|
|
2
|
+
|
|
3
|
+
Pagination bar allows users to navigate pages of content.
|
|
4
|
+
|
|
5
|
+
> **Note:** This component is in beta. Use with caution and expect updates before the full release.
|
|
6
|
+
|
|
7
|
+
<!-- Auto Generated Below -->
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Properties
|
|
11
|
+
|
|
12
|
+
| Property | Attribute | Description | Type | Default |
|
|
13
|
+
| --------------------- | ------------------------ | ------------------------------------------------------------------------------------------------- | --------- | -------------------- |
|
|
14
|
+
| `currentPage` | `current-page` | The current active page (1-based). Marked as mutable so we can update from inside this component. | `number` | `1` |
|
|
15
|
+
| `rowsPerPageOptions` | `rows-per-page-options` | The rows-per-page options offered in the dropdown. | `string` | `'10,25,50,100,150'` |
|
|
16
|
+
| `selectedRowsPerPage` | `selected-rows-per-page` | The currently selected rows-per-page. | `number` | `10` |
|
|
17
|
+
| `totalPages` | `total-pages` | Total number of pages. | `number` | `1` |
|
|
18
|
+
| `withPageControl` | `with-page-control` | Whether to allow go to page navigation. | `boolean` | `false` |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Events
|
|
22
|
+
|
|
23
|
+
| Event | Description | Type |
|
|
24
|
+
| ------------------- | ------------------------------------------- | --------------------- |
|
|
25
|
+
| `pageChange` | Emitted whenever the current page changes. | `CustomEvent<number>` |
|
|
26
|
+
| `rowsPerPageChange` | Emitted whenever the rows-per-page changes. | `CustomEvent<number>` |
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Dependencies
|
|
30
|
+
|
|
31
|
+
### Depends on
|
|
32
|
+
|
|
33
|
+
- [xpl-select](../xpl-select)
|
|
34
|
+
- [xpl-icon](../xpl-icon)
|
|
35
|
+
|
|
36
|
+
### Graph
|
|
37
|
+
```mermaid
|
|
38
|
+
graph TD;
|
|
39
|
+
xpl-pagination --> xpl-select
|
|
40
|
+
xpl-pagination --> xpl-icon
|
|
41
|
+
xpl-select --> xpl-tag
|
|
42
|
+
xpl-select --> xpl-icon
|
|
43
|
+
xpl-select --> xpl-dropdown
|
|
44
|
+
xpl-dropdown --> xpl-dropdown-group
|
|
45
|
+
xpl-dropdown --> xpl-dropdown-option
|
|
46
|
+
xpl-dropdown-group --> xpl-dropdown-group
|
|
47
|
+
xpl-dropdown-group --> xpl-dropdown-option
|
|
48
|
+
xpl-dropdown-group --> xpl-dropdown-heading
|
|
49
|
+
xpl-dropdown-option --> xpl-icon
|
|
50
|
+
style xpl-pagination fill:#f9f,stroke:#333,stroke-width:4px
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
----------------------------------------------
|
|
54
|
+
|
|
55
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# xpl-panel
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
XPL-Panel is a stateless, composable container component that defines a section on a page and can house any type of content. Panels are not dismissible and may contain a top accent in 5 standard accent colors.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
### Basic panel (no accent)
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<xpl-panel>
|
|
13
|
+
<p>Any content goes here.</p>
|
|
14
|
+
</xpl-panel>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Panel with accent
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<xpl-panel accent="primary">
|
|
21
|
+
<p>Content with a primary accent bar.</p>
|
|
22
|
+
</xpl-panel>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Available accent values: `none` (default), `primary`, `secondary`, `positive`,
|
|
26
|
+
`negative`, `highlight`.
|
|
27
|
+
|
|
28
|
+
### Padding density
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<xpl-panel padding="tight">
|
|
32
|
+
<p>Tighter padding on all breakpoints.</p>
|
|
33
|
+
</xpl-panel>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Available padding values: `default`, `tight`, `loose`. Padding is responsive
|
|
37
|
+
and automatically scales down at tablet (768 px) and mobile (480 px) breakpoints.
|
|
38
|
+
|
|
39
|
+
### Composing with other components
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<xpl-panel accent="secondary" padding="loose">
|
|
43
|
+
<xpl-accordion header="Details">
|
|
44
|
+
<div slot="content">Accordion inside a panel.</div>
|
|
45
|
+
</xpl-accordion>
|
|
46
|
+
</xpl-panel>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Dark mode
|
|
50
|
+
|
|
51
|
+
Wrap with an ancestor that has the `dark` class — the panel automatically
|
|
52
|
+
adapts its background, border, and accent colors.
|
|
53
|
+
|
|
54
|
+
## Design
|
|
55
|
+
|
|
56
|
+
- [Figma: XPL-Panel](https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=1546-136120&p=f&t=SMeY3LnfDOiNmx1p-11)
|
|
57
|
+
|
|
58
|
+
<!-- Auto Generated Below -->
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## Overview
|
|
62
|
+
|
|
63
|
+
A stateless container that defines a section on a page and can house any
|
|
64
|
+
type of content. Panels are not dismissible and may contain a top accent.
|
|
65
|
+
|
|
66
|
+
## Properties
|
|
67
|
+
|
|
68
|
+
| Property | Attribute | Description | Type | Default |
|
|
69
|
+
| --------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ----------- |
|
|
70
|
+
| `accent` | `accent` | Color accent bar displayed at the top of the panel. - `none` – no accent (default) - `primary` – brand primary color - `secondary` – brand secondary color - `positive` – positive / success color - `negative` – negative / error color - `highlight` – highlight / warning color | `"highlight" \| "negative" \| "none" \| "positive" \| "primary" \| "secondary"` | `'none'` |
|
|
71
|
+
| `padding` | `padding` | Padding density applied to the content area. Responsive: scales down at tablet and mobile breakpoints. - `default` – 24 px desktop / 16 px tablet+mobile - `tight` – 16 px desktop / 8 px tablet+mobile - `loose` – 40 px desktop / 32 px tablet / 24 px mobile | `"default" \| "loose" \| "tight"` | `'default'` |
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Slots
|
|
75
|
+
|
|
76
|
+
| Slot | Description |
|
|
77
|
+
| ---- | ------------------------------------------------------------------------------------------------------------------ |
|
|
78
|
+
| | Default slot for panel content. Compose other Apollo components within the slot or build your own local component. |
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
----------------------------------------------
|
|
82
|
+
|
|
83
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# xpl-popover
|
|
2
|
+
|
|
3
|
+
A popover is an overlay that pops up over all other layers and is triggered by a click or tap, and dismissed by clicking outside the popover or a dismiss icon. Popovers can contain additional actions and allow those actions to be triggered.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ---------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
|
|
12
|
+
| `disabled` | `disabled` | Whether the popover is disabled or not. | `boolean` | `false` |
|
|
13
|
+
| `display` | `display` | The display style of the popover, either as an arrow or a menu. - 'arrow': Displays an arrow pointing to the trigger element. - 'menu': Displays a menu-style popover without an arrow. | `"arrow" \| "menu"` | `'arrow'` |
|
|
14
|
+
| `isOpen` | `is-open` | Whether the popover is open by default or not. | `boolean` | `false` |
|
|
15
|
+
| `position` | `position` | The position of the trigger element relative to the popover. | `"bottom-end" \| "bottom-left" \| "bottom-middle" \| "bottom-right" \| "bottom-start" \| "middle-left" \| "middle-right" \| "top-end" \| "top-left" \| "top-middle" \| "top-right" \| "top-start"` | `'bottom-middle'` |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Events
|
|
19
|
+
|
|
20
|
+
| Event | Description | Type |
|
|
21
|
+
| -------------- | --------------------------------------------------- | ---------------------- |
|
|
22
|
+
| `isOpenChange` | Event emitted when the popover is opened or closed. | `CustomEvent<boolean>` |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
| Slot | Description |
|
|
28
|
+
| ----------------- | ----------------------------------------------------- |
|
|
29
|
+
| `"Inner Content"` | Content inside the popover |
|
|
30
|
+
| `"trigger"` | The element that, when clicked, will open the popover |
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Dependencies
|
|
34
|
+
|
|
35
|
+
### Used by
|
|
36
|
+
|
|
37
|
+
- [xpl-input-color](../xpl-input/xpl-input-color)
|
|
38
|
+
|
|
39
|
+
### Graph
|
|
40
|
+
```mermaid
|
|
41
|
+
graph TD;
|
|
42
|
+
xpl-input-color --> xpl-popover
|
|
43
|
+
style xpl-popover fill:#f9f,stroke:#333,stroke-width:4px
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
----------------------------------------------
|
|
47
|
+
|
|
48
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# xpl-progress
|
|
2
|
+
|
|
3
|
+
A progress indicator guides users through any linear, multi-step task by showing the user their completed, current, and future steps.
|
|
4
|
+
|
|
5
|
+
Progress indicators help manage a user’s expectations when completing a multistep process. They show which step the user is currently on, the total number of steps, and overall progress in completing a task.
|
|
6
|
+
|
|
7
|
+
Horizontal Progress Indicator is used in most desktop applications where a stepped process is required to finish a task and it is beneficial to the user to see their progress. This creates confidence in the user and sets expectations for the length and complexity of the process.
|
|
8
|
+
|
|
9
|
+
<!-- Auto Generated Below -->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
| Property | Attribute | Description | Type | Default |
|
|
15
|
+
| ------------- | -------------- | ----------------------------------------------------- | ---------- | ----------- |
|
|
16
|
+
| `currentStep` | `current-step` | Current step, is the index of the current active step | `number` | `0` |
|
|
17
|
+
| `steps` | -- | The steps is an array of the steps name. | `string[]` | `undefined` |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
----------------------------------------------
|
|
21
|
+
|
|
22
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# xpl-progress-bar
|
|
2
|
+
|
|
3
|
+
The `xpl-progress-bar` component displays the progress of an operation, such as file uploads, form completion, or loading states. It supports multiple visual variants including default, success, error, and indeterminate states, with optional label and helper text.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
### Basic progress bar
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<xpl-progress-bar label="Uploading..." value="45"></xpl-progress-bar>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### With helper text
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<xpl-progress-bar
|
|
17
|
+
label="Uploading file..."
|
|
18
|
+
value="65"
|
|
19
|
+
helper-text="2.4 MB of 5 MB">
|
|
20
|
+
</xpl-progress-bar>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Error state
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<xpl-progress-bar
|
|
27
|
+
label="Upload failed"
|
|
28
|
+
value="30"
|
|
29
|
+
variant="error"
|
|
30
|
+
helper-text="Network error. Please check your connection.">
|
|
31
|
+
</xpl-progress-bar>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Indeterminate loading
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<xpl-progress-bar label="Processing..." variant="indeterminate"></xpl-progress-bar>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Small size
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<xpl-progress-bar value="60" size="sm"></xpl-progress-bar>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Custom max value
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<xpl-progress-bar value="75" max="150" label="75 of 150 items"></xpl-progress-bar>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Variants
|
|
53
|
+
|
|
54
|
+
| Variant | Description |
|
|
55
|
+
|---------|-------------|
|
|
56
|
+
| `default` | Standard progress bar with accent color fill. Shows a checkmark icon when value reaches max. |
|
|
57
|
+
| `success` | Explicit success state with positive color. Shows a checkmark icon. |
|
|
58
|
+
| `error` | Error state with negative color. Shows an error (x-mark) icon. Helper text is recommended for this state. |
|
|
59
|
+
| `indeterminate` | Used when the progress duration is unknown. Displays an animated sliding bar instead of a fill percentage. |
|
|
60
|
+
|
|
61
|
+
## Sizes
|
|
62
|
+
|
|
63
|
+
- `lg` (default): 6px height
|
|
64
|
+
- `sm`: 4px height
|
|
65
|
+
|
|
66
|
+
## Icon Mapping
|
|
67
|
+
|
|
68
|
+
The component automatically renders status icons based on the variant or completion state:
|
|
69
|
+
|
|
70
|
+
| State | xpl-icon name |
|
|
71
|
+
|-------|---------------|
|
|
72
|
+
| Complete (default variant when value equals max) | `circle-check-1` |
|
|
73
|
+
| Success variant | `circle-check-1` |
|
|
74
|
+
| Error variant | `circle-xmark-1` |
|
|
75
|
+
|
|
76
|
+
## Design Tokens
|
|
77
|
+
|
|
78
|
+
The following Apollo Foundation tokens are used by this component:
|
|
79
|
+
|
|
80
|
+
### Background Colors (Fill)
|
|
81
|
+
- `--xpl-background-accent-default` - Default variant fill
|
|
82
|
+
- `--xpl-background-accent-positive-bold` - Success/complete fill
|
|
83
|
+
- `--xpl-background-accent-negative-bold` - Error fill
|
|
84
|
+
- `--xpl-background-accent-neutral` - Track background
|
|
85
|
+
|
|
86
|
+
### Icon Colors
|
|
87
|
+
- `--xpl-icon-positive` - Success/complete icon
|
|
88
|
+
- `--xpl-icon-negative` - Error icon
|
|
89
|
+
|
|
90
|
+
### Text Colors
|
|
91
|
+
- `--xpl-text-default` - Label text
|
|
92
|
+
- `--xpl-text-subdued` - Helper text
|
|
93
|
+
- `--xpl-text-negative` - Error helper text
|
|
94
|
+
|
|
95
|
+
### Typography
|
|
96
|
+
- `--xpl-font-size-callout` - Label font size
|
|
97
|
+
- `--xpl-font-size-caption` - Helper text font size
|
|
98
|
+
- `--xpl-font-weight-normal` - Label and helper font weight
|
|
99
|
+
|
|
100
|
+
### Spacing & Sizing
|
|
101
|
+
- `--xpl-space-8` - Gap between elements
|
|
102
|
+
- `--xpl-size-025` (4px) - Small bar height
|
|
103
|
+
- `--xpl-size-0375` (6px) - Large bar height
|
|
104
|
+
- `--xpl-border-radius-full` - Bar border radius
|
|
105
|
+
|
|
106
|
+
## Accessibility
|
|
107
|
+
|
|
108
|
+
- **Determinate variants** (default, success, error) use the native HTML `<progress>` element, which provides:
|
|
109
|
+
- Native `role="progressbar"` semantics
|
|
110
|
+
- Automatic `aria-valuenow`, `aria-valuemin`, `aria-valuemax` handling
|
|
111
|
+
- Native value/max API with built-in clamping
|
|
112
|
+
- **Indeterminate variant** uses a custom `<div role="progressbar">` since native `<progress>` indeterminate state cannot be styled cross-browser
|
|
113
|
+
- The `aria-label` is set from the `label` prop, or falls back to `'Progress'` when no label is provided
|
|
114
|
+
|
|
115
|
+
<!-- Auto Generated Below -->
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## Properties
|
|
119
|
+
|
|
120
|
+
| Property | Attribute | Description | Type | Default |
|
|
121
|
+
| ------------ | ------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------ | ----------- |
|
|
122
|
+
| `helperText` | `helper-text` | The helper text displayed below the progress bar (recommended for error state) | `string` | `undefined` |
|
|
123
|
+
| `label` | `label` | The label text displayed above the progress bar | `string` | `undefined` |
|
|
124
|
+
| `max` | `max` | The maximum value of the progress (mirrors native <progress> max attribute) | `number` | `100` |
|
|
125
|
+
| `size` | `size` | The size of the progress bar height: sm = 4px, lg = 6px | `"lg" \| "sm"` | `'lg'` |
|
|
126
|
+
| `value` | `value` | The current value of the progress (mirrors native <progress> value attribute) | `number` | `0` |
|
|
127
|
+
| `variant` | `variant` | The visual variant of the progress bar | `"default" \| "error" \| "indeterminate" \| "success"` | `'default'` |
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## Dependencies
|
|
131
|
+
|
|
132
|
+
### Depends on
|
|
133
|
+
|
|
134
|
+
- [xpl-icon](../xpl-icon)
|
|
135
|
+
|
|
136
|
+
### Graph
|
|
137
|
+
```mermaid
|
|
138
|
+
graph TD;
|
|
139
|
+
xpl-progress-bar --> xpl-icon
|
|
140
|
+
style xpl-progress-bar fill:#f9f,stroke:#333,stroke-width:4px
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
----------------------------------------------
|
|
144
|
+
|
|
145
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# xpl-radio
|
|
2
|
+
|
|
3
|
+
Radio buttons allow users to make selections or choices. Radios are always single select, and can 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 "on" | `boolean` | `undefined` |
|
|
13
|
+
| `description` | `description` | Description text for the field | `string` | `undefined` |
|
|
14
|
+
| `disabled` | `disabled` | Whether the input is disabled | `boolean` | `undefined` |
|
|
15
|
+
| `name` | `name` | The name attribute for the html input. (submittted in form as name/value pair) | `string` | `undefined` |
|
|
16
|
+
| `required` | `required` | Whether the input is required | `boolean` | `undefined` |
|
|
17
|
+
| `styled` | `styled` | Whether the input is contained in a box with a border and, in disabled state, a background | `boolean` | `undefined` |
|
|
18
|
+
| `value` | `value` | The value attribute for the radio input. (submittted in form as name/value pair) | `string` | `undefined` |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Events
|
|
22
|
+
|
|
23
|
+
| Event | Description | Type |
|
|
24
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
|
|
25
|
+
| `radioChange` | Event that emits the current value of the radio input Returns the value of the radio input if a value is provided, otherwise returns the checked state | `CustomEvent<boolean \| string>` |
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Dependencies
|
|
29
|
+
|
|
30
|
+
### Used by
|
|
31
|
+
|
|
32
|
+
- [xpl-choicelist](../xpl-choicelist)
|
|
33
|
+
|
|
34
|
+
### Graph
|
|
35
|
+
```mermaid
|
|
36
|
+
graph TD;
|
|
37
|
+
xpl-choicelist --> xpl-radio
|
|
38
|
+
style xpl-radio fill:#f9f,stroke:#333,stroke-width:4px
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
----------------------------------------------
|
|
42
|
+
|
|
43
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# secondary-nav
|
|
2
|
+
|
|
3
|
+
The Secondary Nav component is a component that allows navigation within the content area. It yields one slot where a <ul> element with <xpl-nav-item> elements should be rendered.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
----------------------------------------------
|
|
9
|
+
|
|
10
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# xpl-select
|
|
2
|
+
|
|
3
|
+
Select allows users to make a single selection or multiple selections from a list of options. Items can be a simple list, grouped, simple multi-select. User selections typically appear within the Select Box once created unless multiple selections are made, where truncation or another method of showing these selections is required.
|
|
4
|
+
|
|
5
|
+
***When the list of options contains “Actions”, use a ***[Dropdown component](https://xplor-apollo.herokuapp.com/?path=/story/components-dropdown--simple).
|
|
6
|
+
|
|
7
|
+
The `selectIcon` property accepts icon names as strings. See [xpl-icon available icons](../xpl-icon/ICONS.md) for the complete list.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<!-- Auto Generated Below -->
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
| Property | Attribute | Description | Type | Default |
|
|
17
|
+
| -------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ---------------- |
|
|
18
|
+
| `choices` | -- | An array of choices for the user to choose from. Each choice should be of the form: { label: string; href?: string; value?: string; isGroupHeading?: boolean; isSelected?: boolean; isDisabled?: boolean; options?: DropdownItem[]; groupName?: string; } | `Partial<DropdownOption & DropdownOptionGroup>[]` | `[]` |
|
|
19
|
+
| `classNames` | `class-names` | The class name to apply to the select component. | `string` | `undefined` |
|
|
20
|
+
| `customDisplayValue` | `custom-display-value` | If true, enables custom display value rendering via slot. | `boolean` | `undefined` |
|
|
21
|
+
| `description` | `description` | Optional text that appears below the input label. | `string` | `undefined` |
|
|
22
|
+
| `disabled` | `disabled` | Whether the field is disabled | `boolean` | `undefined` |
|
|
23
|
+
| `error` | `error` | If an empty string (attribute present with no value), will display visually as an error. If a string is included, will display visually as an error and include the value as an error message. | `string` | `undefined` |
|
|
24
|
+
| `label` | `label` | The label that appears above the select dropdown | `string` | `undefined` |
|
|
25
|
+
| `mode` | `mode` | Whether to allow a single choice or multiple choices. | `"multi" \| "single"` | `'single'` |
|
|
26
|
+
| `name` | `name` | The name of the hidden input field that contains the selected option's value(s) | `string` | `undefined` |
|
|
27
|
+
| `placeholder` | `placeholder` | Placeholder text that appears when the field has no value | `string` | `undefined` |
|
|
28
|
+
| `selectIcon` | `select-icon` | The icon to display in the select trigger button. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names. | `string` | `'chevron-down'` |
|
|
29
|
+
| `selectedValues` | `selected-values` | The value(s) currently selected in the select component. | `string \| string[]` | `undefined` |
|
|
30
|
+
| `truncate` | `truncate` | Only used in multi-choice selects. If `true`, badges representing selections that would overflow the container are replaced with "+x more" (where x is the number not shown). If `false`, the container's height will adjust to show all badges representing selections. | `boolean` | `true` |
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Events
|
|
34
|
+
|
|
35
|
+
| Event | Description | Type |
|
|
36
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------- |
|
|
37
|
+
| `changeEvent` | Emits the value of the selected option in the select menu on change | `CustomEvent<string \| string[]>` |
|
|
38
|
+
| `dropdownStateChange` | Emits when the dropdown opens or closes | `CustomEvent<boolean>` |
|
|
39
|
+
| `selectChange` | Emits the value of the selected option in the select menu on change | `CustomEvent<string>` |
|
|
40
|
+
| `triggerDropdown` | Emits before the dropdown state changes, allowing listeners to prevent the default behavior. The event detail contains the previous and new dropdown states. | `CustomEvent<{ prevState: boolean; nextState: boolean; }>` |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Methods
|
|
44
|
+
|
|
45
|
+
### `reset() => Promise<void>`
|
|
46
|
+
|
|
47
|
+
Resets the select component to its initial state with no selections.
|
|
48
|
+
This clears all selected values and returns the component to its default state.
|
|
49
|
+
|
|
50
|
+
#### Returns
|
|
51
|
+
|
|
52
|
+
Type: `Promise<void>`
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Dependencies
|
|
58
|
+
|
|
59
|
+
### Used by
|
|
60
|
+
|
|
61
|
+
- [xpl-pagination](../xpl-pagination)
|
|
62
|
+
- [xpl-tabs](../xpl-tabs)
|
|
63
|
+
|
|
64
|
+
### Depends on
|
|
65
|
+
|
|
66
|
+
- [xpl-tag](../xpl-tag)
|
|
67
|
+
- [xpl-icon](../xpl-icon)
|
|
68
|
+
- [xpl-dropdown](../xpl-dropdown)
|
|
69
|
+
|
|
70
|
+
### Graph
|
|
71
|
+
```mermaid
|
|
72
|
+
graph TD;
|
|
73
|
+
xpl-select --> xpl-tag
|
|
74
|
+
xpl-select --> xpl-icon
|
|
75
|
+
xpl-select --> xpl-dropdown
|
|
76
|
+
xpl-dropdown --> xpl-dropdown-group
|
|
77
|
+
xpl-dropdown --> xpl-dropdown-option
|
|
78
|
+
xpl-dropdown-group --> xpl-dropdown-group
|
|
79
|
+
xpl-dropdown-group --> xpl-dropdown-option
|
|
80
|
+
xpl-dropdown-group --> xpl-dropdown-heading
|
|
81
|
+
xpl-dropdown-option --> xpl-icon
|
|
82
|
+
xpl-pagination --> xpl-select
|
|
83
|
+
xpl-tabs --> xpl-select
|
|
84
|
+
style xpl-select fill:#f9f,stroke:#333,stroke-width:4px
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
----------------------------------------------
|
|
88
|
+
|
|
89
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# xpl-side-nav
|
|
2
|
+
|
|
3
|
+
Slot-based sidebar for app navigation: scrollable main area and a fixed footer. Compose with [`xpl-side-nav-item`](./xpl-side-nav-item) for rows in the section and footer.
|
|
4
|
+
|
|
5
|
+
## Slots
|
|
6
|
+
|
|
7
|
+
| Slot | Description |
|
|
8
|
+
| ---- | ----------- |
|
|
9
|
+
| `section` | Primary navigation. Place `xpl-side-nav-item` elements (or wrappers) inside this slot; layout uses internal section markup. |
|
|
10
|
+
| `nav-footer` | Footer actions (e.g. Help, Logout). Same item component; typically smaller label styling via CSS. |
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
Use the **`label`** prop for a unique accessible name on the `<nav>` when multiple landmarks exist on the page (see **Multi-Navigation Layouts** below).
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<xpl-side-nav label="Main navigation">
|
|
18
|
+
<div slot="section">
|
|
19
|
+
<xpl-side-nav-item label="Dashboard" icon="house-4" selected></xpl-side-nav-item>
|
|
20
|
+
<xpl-side-nav-item has-children label="Settings" expanded>
|
|
21
|
+
<xpl-side-nav-item label="Profile"></xpl-side-nav-item>
|
|
22
|
+
</xpl-side-nav-item>
|
|
23
|
+
</div>
|
|
24
|
+
<div slot="nav-footer">
|
|
25
|
+
<xpl-side-nav-item label="Help" icon="headset"></xpl-side-nav-item>
|
|
26
|
+
</div>
|
|
27
|
+
</xpl-side-nav>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Link rows:** use `xpl-side-nav-item` with `link` and an anchor in the default slot — see [xpl-side-nav-item](./xpl-side-nav-item) **Link mode**.
|
|
31
|
+
|
|
32
|
+
### Multi-Navigation Layouts (Accessibility)
|
|
33
|
+
|
|
34
|
+
When multiple navigation landmarks exist on a page (e.g., side nav, top nav, breadcrumbs), use the `label` prop to provide a unique accessible name for each `<nav>` element. This helps screen reader users distinguish between them.
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<!-- Main side navigation -->
|
|
38
|
+
<xpl-side-nav label="Main navigation">
|
|
39
|
+
...
|
|
40
|
+
</xpl-side-nav>
|
|
41
|
+
|
|
42
|
+
<!-- Top navigation (different component) -->
|
|
43
|
+
<xpl-top-navigation label="User menu">
|
|
44
|
+
...
|
|
45
|
+
</xpl-top-navigation>
|
|
46
|
+
|
|
47
|
+
<!-- Breadcrumbs (different component) -->
|
|
48
|
+
<xpl-breadcrumbs label="Breadcrumb">
|
|
49
|
+
...
|
|
50
|
+
</xpl-breadcrumbs>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**WCAG Note:** When a page has multiple `<nav>` landmarks, each should have a unique accessible name via `aria-label`.
|
|
54
|
+
|
|
55
|
+
## Related components
|
|
56
|
+
|
|
57
|
+
- [xpl-side-nav-item](../xpl-side-nav-item) — Navigation rows (leaf, expandable, or link) for section and footer.
|
|
58
|
+
|
|
59
|
+
<!-- Auto Generated Below -->
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## Properties
|
|
63
|
+
|
|
64
|
+
| Property | Attribute | Description | Type | Default |
|
|
65
|
+
| -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
|
|
66
|
+
| `label` | `label` | Accessible label for the navigation landmark. Maps to `aria-label` on the `<nav>` element. Recommended when multiple navigation landmarks exist on a page (e.g., side nav + top nav + breadcrumbs) to help screen readers distinguish them. | `string` | `undefined` |
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
----------------------------------------------
|
|
70
|
+
|
|
71
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|