@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,115 @@
|
|
|
1
|
+
# xpl-side-nav-item
|
|
2
|
+
|
|
3
|
+
Row for [`xpl-side-nav`](../xpl-side-nav): place items in `slot="section"` or `slot="nav-footer"`. Supports **leaf** (button), **expandable** (`has-children`), and **link** (slot-only) modes, plus `selected`, `disabled`, and `hidden`.
|
|
4
|
+
|
|
5
|
+
## Modes
|
|
6
|
+
|
|
7
|
+
- **Leaf (default)** — Button with optional `label`, `icon`, and `slot="icon"`. Click emits **`navClick`** (not used for expandable rows).
|
|
8
|
+
- **Expandable (`has-children`)** — Put nested `xpl-side-nav-item` elements in the **default slot**. Parent row is **chevron + label only** (no icon column; the `icon` prop is ignored). Click toggles **`expanded`** and emits **`expandedChange`**. “Only one section open” / accordion behavior is **not** built in — your app coordinates `expanded` if needed.
|
|
9
|
+
- **Link (`link`)** — **Default slot only**: pass a real `<a>` or router link with full content. Renders a single `<slot>` (no inner button). **Cannot** be combined with `has-children` (see **Rules**).
|
|
10
|
+
|
|
11
|
+
## Rules
|
|
12
|
+
|
|
13
|
+
| Topic | Behavior |
|
|
14
|
+
| ----- | ---------- |
|
|
15
|
+
| **`link` vs `has-children`** | Mutually exclusive. When **`link`** is true, **`hasChildren`** is always false; if both attributes appear in markup, `has-children` is cleared. |
|
|
16
|
+
| **Icons** | `icon` / `slot="icon"` only for **non-link** leaf/footer rows. **Not** rendered for expandable parents. **Nested** items under a parent should use **label only** (icon column hidden in CSS). |
|
|
17
|
+
| **Events** | **`navClick`** — leaf button rows. **`expandedChange`** — expandable rows only (detail = new `expanded` boolean). See **Events** table below. |
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Leaf
|
|
22
|
+
```html
|
|
23
|
+
<xpl-side-nav-item label="Dashboard" icon="house-4" selected></xpl-side-nav-item>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Expandable parent
|
|
27
|
+
```html
|
|
28
|
+
<xpl-side-nav-item has-children label="Settings" expanded>
|
|
29
|
+
<xpl-side-nav-item label="Profile"></xpl-side-nav-item>
|
|
30
|
+
<xpl-side-nav-item label="Billing"></xpl-side-nav-item>
|
|
31
|
+
</xpl-side-nav-item>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Link (slot-only)
|
|
35
|
+
```html
|
|
36
|
+
<xpl-side-nav-item link>
|
|
37
|
+
<a href="#reports">
|
|
38
|
+
<xpl-icon icon="chart-line" size="16"></xpl-icon>
|
|
39
|
+
Reports
|
|
40
|
+
</a>
|
|
41
|
+
</xpl-side-nav-item>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Disabled and hidden
|
|
45
|
+
```html
|
|
46
|
+
<xpl-side-nav-item label="Disabled" disabled></xpl-side-nav-item>
|
|
47
|
+
<xpl-side-nav-item label="Hidden" hidden></xpl-side-nav-item>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Slots
|
|
51
|
+
|
|
52
|
+
| Slot | Description |
|
|
53
|
+
| ---- | ----------- |
|
|
54
|
+
| `icon` | **Button rows only** (`link` and `has-children` do not expose this slot in the DOM). Optional leading icon: default content from the `icon` prop, or override with slotted content. Omit on nested items under an expandable parent. |
|
|
55
|
+
| *(default)* | **`has-children`:** nested `xpl-side-nav-item` elements. **`link`:** one anchor (or router component) with icon + text as needed. |
|
|
56
|
+
|
|
57
|
+
## Link mode checklist
|
|
58
|
+
|
|
59
|
+
- Do **not** use `label` or `icon` props — put text and icons inside your anchor.
|
|
60
|
+
- Set **`aria-current="page"`** on the anchor when the route is active.
|
|
61
|
+
- For **disabled** links: set `disabled` on the host and `aria-disabled="true"` + `tabindex="-1"` on the anchor (see **Accessibility**).
|
|
62
|
+
|
|
63
|
+
## Accessibility
|
|
64
|
+
|
|
65
|
+
- **Selected (non-link):** `aria-current="page"` on the `button` (leaf or expandable row).
|
|
66
|
+
- **Selected (link):** set `aria-current="page"` on your slotted anchor.
|
|
67
|
+
- **Expandable:** `aria-expanded` on the parent `button` matches `expanded`.
|
|
68
|
+
- **Disabled:** use the `disabled` prop on non-link rows; for link mode, coordinate host `disabled` with the anchor as above.
|
|
69
|
+
- **Hidden:** `hidden` hides the row; it does not disable interaction by itself — use `disabled` when appropriate.
|
|
70
|
+
|
|
71
|
+
## Related
|
|
72
|
+
|
|
73
|
+
- [xpl-side-nav](../xpl-side-nav) — Sidebar container (`slot="section"`, `slot="nav-footer"`).
|
|
74
|
+
|
|
75
|
+
<!-- Auto Generated Below -->
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## Properties
|
|
79
|
+
|
|
80
|
+
| Property | Attribute | Description | Type | Default |
|
|
81
|
+
| ------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------- |
|
|
82
|
+
| `disabled` | `disabled` | Whether the component is disabled | `boolean` | `false` |
|
|
83
|
+
| `expanded` | `expanded` | Whether the item is currently expanded (only applies when hasChildren is true) | `boolean` | `false` |
|
|
84
|
+
| `hasChildren` | `has-children` | Whether the item has child items; when true, shows expand/collapse and a default slot for nested items. Mutually exclusive with <code>link</code>. If <code>link</code> is already true, setting <code>has-children</code> is reverted (<code>@Watch('hasChildren')</code>, <code>@Watch('link')</code>, <code>componentWillLoad</code>, and <code>componentWillRender</code>) so reflected attributes match CSS. | `boolean` | `false` |
|
|
85
|
+
| `hidden` | `hidden` | Whether the component is hidden | `boolean` | `false` |
|
|
86
|
+
| `icon` | `icon` | Optional icon name; default content for <code>slot="icon"</code> (leaf and footer rows only). Expandable parents (<code>has-children</code>) do not show an icon column — only the chevron and label. Omit for nested children under a <code>has-children</code> parent — the icon column is hidden for sub-items. | `string` | `undefined` |
|
|
87
|
+
| `label` | `label` | The display label for the navigation item (button / expandable rows; omit in <code>link</code> mode). | `string` | `undefined` |
|
|
88
|
+
| `link` | `link` | When true, the row becomes a slot-only container for consumer-provided links. The consumer provides the full anchor element (or router link) via the default slot. In link mode, <code>label</code> and <code>icon</code> props should not be used. Link mode does not support <code>has-children</code>; use the default button mode for expandable items. When <code>link</code> is true, <code>hasChildren</code> is always false (enforced by <code>@Watch('link')</code>, <code>@Watch('hasChildren')</code>, <code>componentWillLoad</code>, and <code>componentWillRender</code>). | `boolean` | `false` |
|
|
89
|
+
| `selected` | `selected` | Whether the item is currently in a selected state | `boolean` | `false` |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## Events
|
|
93
|
+
|
|
94
|
+
| Event | Description | Type |
|
|
95
|
+
| ---------------- | --------------------------------------------------------------------------------------------------- | ---------------------- |
|
|
96
|
+
| `expandedChange` | Emitted when the expanded state changes (hasChildren items only). Detail is the new expanded value. | `CustomEvent<boolean>` |
|
|
97
|
+
| `navClick` | Emitted when a leaf item is clicked. Expandable parents use expandedChange instead. | `CustomEvent<void>` |
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## Dependencies
|
|
101
|
+
|
|
102
|
+
### Depends on
|
|
103
|
+
|
|
104
|
+
- [xpl-icon](../../xpl-icon)
|
|
105
|
+
|
|
106
|
+
### Graph
|
|
107
|
+
```mermaid
|
|
108
|
+
graph TD;
|
|
109
|
+
xpl-side-nav-item --> xpl-icon
|
|
110
|
+
style xpl-side-nav-item fill:#f9f,stroke:#333,stroke-width:4px
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
----------------------------------------------
|
|
114
|
+
|
|
115
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# xpl-skeleton
|
|
2
|
+
|
|
3
|
+
Skeleton components are progress indicators used for full page loading states that reduce the perception of long loading times and provide both reassurance to the user as well as clues for how the page will ultimately look.
|
|
4
|
+
|
|
5
|
+
Includes:
|
|
6
|
+
Components - Text, Shape, Data
|
|
7
|
+
Variants - Text: Display, Title, Body Shape: rectangle, pill, circle, square
|
|
8
|
+
Properties - Text/Body: show 1, 2 or 3 lines
|
|
9
|
+
|
|
10
|
+
**Note: The “shimmer” effect uses Tailwind’s `animated-pulse` for the duration skeletons are present. The [animated pulse](https://tailwindcss.com/docs/animation#adding-a-pulse-animation) animates the color between our `color-background-surface-transparent-10` and `color-background-surface-transparent-5` variables.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<!-- Auto Generated Below -->
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
| Property | Attribute | Description | Type | Default |
|
|
19
|
+
| ------------ | ------------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ------------- |
|
|
20
|
+
| `classNames` | `class-names` | A CSS class name to apply to the component. | `string` | `undefined` |
|
|
21
|
+
| `fullWidth` | `full-width` | If true, the skeleton will take up the full width of its container. | `boolean` | `undefined` |
|
|
22
|
+
| `height` | `height` | The height of the skeleton. (e.g. '100px', '100%', 'auto') accepts any valid CSS height value | `string` | `undefined` |
|
|
23
|
+
| `margin` | `margin` | The margin of the skeleton. (e.g. '10px', '1rem', '1rem 0') accepts any valid CSS margin value | `string` | `undefined` |
|
|
24
|
+
| `shape` | `shape` | The shape of the skeleton. | `"circle" \| "rectangle" \| "square"` | `'rectangle'` |
|
|
25
|
+
| `size` | `size` | The predefined size of the skeleton. | `"body" \| "custom" \| "display" \| "title-1" \| "title-2" \| "title-3" \| "title-4" \| "title-5"` | `'custom'` |
|
|
26
|
+
| `width` | `width` | The width of the skeleton. (e.g. '100px', '100%', 'auto') accepts any valid CSS width value | `string` | `undefined` |
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
----------------------------------------------
|
|
30
|
+
|
|
31
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# xpl-slideout
|
|
2
|
+
|
|
3
|
+
Content and Footer subcomponents are optional and can be hidden. Slideout always has a header with an X close button upper right. Slide Out Panel OPTIONALLY uses the [<xpl-backdrop>](https://xplor-apollo.herokuapp.com/?path=/story/components-backdrop--backdrop) component to overlay content and create focus on the Slide Out Panel content.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ------------ | ------------- | ------------------------------------------------------------------------ | ------------------------ | ----------- |
|
|
12
|
+
| `backdrop` | `backdrop` | Whether to show a backdrop behind the slideout. | `boolean` | `false` |
|
|
13
|
+
| `isOpen` | `is-open` | Whether the slideout is open. | `boolean` | `false` |
|
|
14
|
+
| `showFooter` | `show-footer` | Whether to show the footer section in the slideout. | `boolean` | `true` |
|
|
15
|
+
| `variant` | `variant` | The visual style variant of the slideout. Can be 'default' or 'warning'. | `"default" \| "warning"` | `'default'` |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Events
|
|
19
|
+
|
|
20
|
+
| Event | Description | Type |
|
|
21
|
+
| -------------- | ----------------------------------------- | ---------------------- |
|
|
22
|
+
| `isOpenChange` | Emitted when the isOpen property changes. | `CustomEvent<boolean>` |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Dependencies
|
|
26
|
+
|
|
27
|
+
### Depends on
|
|
28
|
+
|
|
29
|
+
- [xpl-backdrop](../xpl-backdrop)
|
|
30
|
+
- [xpl-button](../xpl-button)
|
|
31
|
+
- [xpl-icon](../xpl-icon)
|
|
32
|
+
- [xpl-divider](../xpl-divider)
|
|
33
|
+
|
|
34
|
+
### Graph
|
|
35
|
+
```mermaid
|
|
36
|
+
graph TD;
|
|
37
|
+
xpl-slideout --> xpl-backdrop
|
|
38
|
+
xpl-slideout --> xpl-button
|
|
39
|
+
xpl-slideout --> xpl-icon
|
|
40
|
+
xpl-slideout --> xpl-divider
|
|
41
|
+
xpl-button --> xpl-icon
|
|
42
|
+
style xpl-slideout fill:#f9f,stroke:#333,stroke-width:4px
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
----------------------------------------------
|
|
46
|
+
|
|
47
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# xpl-tab
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ---------- | ---------- | ---------------------------------------------------------- | --------- | ----------- |
|
|
12
|
+
| `selected` | `selected` | Whether the tab is selected | `boolean` | `false` |
|
|
13
|
+
| `target` | `target` | The target of the tab, required for the tab to be selected | `string` | `undefined` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Events
|
|
17
|
+
|
|
18
|
+
| Event | Description | Type |
|
|
19
|
+
| ----------- | ----------------------------------------------- | --------------------- |
|
|
20
|
+
| `tabChange` | Event that emits the target of the selected tab | `CustomEvent<string>` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
----------------------------------------------
|
|
24
|
+
|
|
25
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# xpl-tab-panel
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ---------- | ---------- | ---------------------------------------------------------- | --------- | ----------- |
|
|
12
|
+
| `selected` | `selected` | Whether the panel is selected | `boolean` | `false` |
|
|
13
|
+
| `target` | `target` | The target of the tab, required for the tab to be selected | `string` | `undefined` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
----------------------------------------------
|
|
17
|
+
|
|
18
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# xpl-table
|
|
2
|
+
|
|
3
|
+
Tables are used to organize and display information from a data set.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ----------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- |
|
|
12
|
+
| `columns` | -- | The header values for each column. | `string[]` | `undefined` |
|
|
13
|
+
| `data` | -- | The data for the body of the table. | `string[][]` | `undefined` |
|
|
14
|
+
| `footer` | -- | The data for the footer of the table. | `string[][]` | `undefined` |
|
|
15
|
+
| `freeze` | `freeze` | When true, the first column of the table is sticky and will cover the leftmost rows in a horizontally scrollable container. | `boolean` | `undefined` |
|
|
16
|
+
| `isSortable` | `is-sortable` | Toggles to show the sort button on each table head | `boolean` | `false` |
|
|
17
|
+
| `multiselect` | `multiselect` | Toggles a selectable checkbox for each row in the table | `boolean` | `undefined` |
|
|
18
|
+
| `selectedValues` | -- | The values for the input for each row when multiselect is activated. | `string[]` | `[]` |
|
|
19
|
+
| `sortableColumns` | -- | Manually determined if the column is sortable | `boolean[]` | `[]` |
|
|
20
|
+
| `striped` | `striped` | Toggles an optional styling of the background of each even row of the table body. | `boolean` | `undefined` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Events
|
|
24
|
+
|
|
25
|
+
| Event | Description | Type |
|
|
26
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
27
|
+
| `sortChanged` | Emits an event whenever the sort changes. The 'sortChanged' event passes an object with colNum (number), colName (string), sortTypeArr(string[]). The default action can be overridden by calling event.preventDefault(). | `CustomEvent<{ colNum: number; colName: string; sortTypeArr: string[]; }>` |
|
|
28
|
+
| `tableSelect` | Callback function that is called when the checkbox for a row of a `multiselect` table is checked | `CustomEvent<any>` |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Dependencies
|
|
32
|
+
|
|
33
|
+
### Depends on
|
|
34
|
+
|
|
35
|
+
- [xpl-icon](../xpl-icon)
|
|
36
|
+
|
|
37
|
+
### Graph
|
|
38
|
+
```mermaid
|
|
39
|
+
graph TD;
|
|
40
|
+
xpl-table --> xpl-icon
|
|
41
|
+
style xpl-table fill:#f9f,stroke:#333,stroke-width:4px
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
----------------------------------------------
|
|
45
|
+
|
|
46
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# xpl-table-header
|
|
2
|
+
|
|
3
|
+
Component parts used to assemble the Dynamic Table.
|
|
4
|
+
|
|
5
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<!-- Auto Generated Below -->
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
----------------------------------------------
|
|
12
|
+
|
|
13
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# xpl-table-header-cell
|
|
2
|
+
|
|
3
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
4
|
+
|
|
5
|
+
The `icon` property accepts icon names as strings. See [xpl-icon available icons](../xpl-icon/ICONS.md) for the complete list.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- Auto Generated Below -->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
| Property | Attribute | Description | Type | Default |
|
|
15
|
+
| ---------- | ---------- | -------------------------------------------------------------------------------------------------------- | --------------------------------- | ----------- |
|
|
16
|
+
| `icon` | `icon` | Icon to display in the cell. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names. | `string` | `undefined` |
|
|
17
|
+
| `label` | `label` | | `string` | `''` |
|
|
18
|
+
| `sortable` | `sortable` | | `boolean` | `false` |
|
|
19
|
+
| `type` | `type` | | `"checkbox" \| "icon" \| "label"` | `'label'` |
|
|
20
|
+
| `width` | `width` | | `number` | `undefined` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Events
|
|
24
|
+
|
|
25
|
+
| Event | Description | Type |
|
|
26
|
+
| ------------- | ---------------------------------------- | ---------------------------------------- |
|
|
27
|
+
| `sortChanged` | Emitted when the sort direction changes. | `CustomEvent<"asc" \| "desc" \| "none">` |
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## Dependencies
|
|
31
|
+
|
|
32
|
+
### Depends on
|
|
33
|
+
|
|
34
|
+
- [xpl-checkbox](../xpl-checkbox)
|
|
35
|
+
- [xpl-icon](../xpl-icon)
|
|
36
|
+
|
|
37
|
+
### Graph
|
|
38
|
+
```mermaid
|
|
39
|
+
graph TD;
|
|
40
|
+
xpl-table-header-cell --> xpl-checkbox
|
|
41
|
+
xpl-table-header-cell --> xpl-icon
|
|
42
|
+
style xpl-table-header-cell fill:#f9f,stroke:#333,stroke-width:4px
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
----------------------------------------------
|
|
46
|
+
|
|
47
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# xpl-tabs
|
|
2
|
+
|
|
3
|
+
Tabs organize content across different screens, data sets, and other interactions.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ----------- | ------------ | -------------------------------------------------------- | --------- | ----------- |
|
|
12
|
+
| `fullWidth` | `full-width` | Whether to make the tabs full width | `boolean` | `false` |
|
|
13
|
+
| `value` | `value` | The selected tab target value, defaults to the first tab | `string` | `undefined` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Events
|
|
17
|
+
|
|
18
|
+
| Event | Description | Type |
|
|
19
|
+
| ----------- | ----------------------------------------------- | --------------------- |
|
|
20
|
+
| `tabChange` | Event that emits the target of the selected tab | `CustomEvent<string>` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
|
|
25
|
+
| Slot | Description |
|
|
26
|
+
| ----------- | ------------------------------------------------------------------------------------ |
|
|
27
|
+
| `"heading"` | The heading for each tab (required, target attribute is required on the xpl-tab) |
|
|
28
|
+
| `"panel"` | The panel for each tab (required, target attribute is required on the xpl-tab-panel) |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Dependencies
|
|
32
|
+
|
|
33
|
+
### Depends on
|
|
34
|
+
|
|
35
|
+
- [xpl-select](../xpl-select)
|
|
36
|
+
|
|
37
|
+
### Graph
|
|
38
|
+
```mermaid
|
|
39
|
+
graph TD;
|
|
40
|
+
xpl-tabs --> xpl-select
|
|
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-tabs fill:#f9f,stroke:#333,stroke-width:4px
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
----------------------------------------------
|
|
54
|
+
|
|
55
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# xpl-tag
|
|
2
|
+
|
|
3
|
+
Tags represent a set of interactive keywords that help label, organize, and categorize objects. Tags can be added or removed from an object by the user. Unlike Badges, Tags are clickable, draggable, used in dropdowns, multi-select, search bars, etc..
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Events
|
|
9
|
+
|
|
10
|
+
| Event | Description | Type |
|
|
11
|
+
| ------- | --------------------------------------------------------------------- | ------------------ |
|
|
12
|
+
| `close` | Callback function that is called when tag text or `x` icon is clicked | `CustomEvent<any>` |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Dependencies
|
|
16
|
+
|
|
17
|
+
### Used by
|
|
18
|
+
|
|
19
|
+
- [xpl-select](../xpl-select)
|
|
20
|
+
|
|
21
|
+
### Graph
|
|
22
|
+
```mermaid
|
|
23
|
+
graph TD;
|
|
24
|
+
xpl-select --> xpl-tag
|
|
25
|
+
style xpl-tag fill:#f9f,stroke:#333,stroke-width:4px
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
----------------------------------------------
|
|
29
|
+
|
|
30
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# xpl-toast
|
|
2
|
+
|
|
3
|
+
Toasts are brief, non-disruptive messages that provide quick, at-a-glance feedback. They can have 3 sentiments; neutral, positive and negative and contain actions such as a button or link, or a close button. Messaging can include a title and caption limited to 85 characters. Keep your toast messaging short and to the point and tone in line with the sentiment of the Toast.
|
|
4
|
+
|
|
5
|
+
The Toast component is configurable by Sentiment plus show/hide properties for Icon, Caption, Button and Dismissible. Use the nested component’s properties to customize further as needed.
|
|
6
|
+
|
|
7
|
+
When possible, Toasts should auto-dismiss after 8 seconds. When an action is present, it may not be desirable to time out the Toast depending on your specific context.
|
|
8
|
+
|
|
9
|
+
Match your messaging with the sentiment of the toast. Most messages will have a neutral sentiment. Reserve negative sentiments for when an explicit failure has occurred. Give users the information they need to correct the issue.
|
|
10
|
+
|
|
11
|
+
Toasts only support a single action and up to 85 characters. If multiple actions can be taken, or the message is longer than a few words, use a [Modal component](https://xplor-apollo.herokuapp.com/?path=/story/components-modal--modal) instead.
|
|
12
|
+
|
|
13
|
+
## Positioning
|
|
14
|
+
|
|
15
|
+
The default position is arbitrarily set to `40px` from top and `40px` from right of the browser viewport on desktop and bottom-center on mobile. This position should be adjusted to ensure it's not covering your App's header. Apollo, by design, does not prescribe a position for toasts because this will be dependent on the app that it is being used in.
|
|
16
|
+
|
|
17
|
+
Positioning of toasts should be global to your app. For example, if it is decided that your app will always position the toast in the top right corner, then this convention should be followed throughout. It should not be positioned top-right on one screen and bottom-center on another.
|
|
18
|
+
|
|
19
|
+
*****Consult your designer for the best placement for your product.**
|
|
20
|
+
|
|
21
|
+
### Overriding the default position
|
|
22
|
+
|
|
23
|
+
The toast uses `position: fixed` and can be repositioned by overriding the `.xpl-toast` CSS class in your app's stylesheet. Set `top`, `right`, `bottom`, and `left` as needed and use `unset` or `initial` to clear any defaults you don't want.
|
|
24
|
+
|
|
25
|
+
**Top-left example:**
|
|
26
|
+
```css
|
|
27
|
+
.xpl-toast {
|
|
28
|
+
top: 24px;
|
|
29
|
+
right: unset;
|
|
30
|
+
left: 24px;
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Bottom-right example:**
|
|
35
|
+
```css
|
|
36
|
+
.xpl-toast {
|
|
37
|
+
top: unset;
|
|
38
|
+
right: 24px;
|
|
39
|
+
bottom: 24px;
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Centered at the top:**
|
|
44
|
+
```css
|
|
45
|
+
.xpl-toast {
|
|
46
|
+
top: 24px;
|
|
47
|
+
right: unset;
|
|
48
|
+
left: 50%;
|
|
49
|
+
transform: translateX(-50%);
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The mobile breakpoint (≤ 768px) resets the toast to bottom-center. If your app needs a different mobile position, override the media query as well:
|
|
54
|
+
|
|
55
|
+
```css
|
|
56
|
+
@media screen and (max-width: 768px) {
|
|
57
|
+
.xpl-toast {
|
|
58
|
+
/* your mobile overrides */
|
|
59
|
+
bottom: 16px;
|
|
60
|
+
left: 50%;
|
|
61
|
+
transform: translateX(-50%);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
> **Tip:** Place these overrides in a global stylesheet so every toast in your app appears in the same location.
|
|
67
|
+
|
|
68
|
+
<!-- Auto Generated Below -->
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## Properties
|
|
72
|
+
|
|
73
|
+
| Property | Attribute | Description | Type | Default |
|
|
74
|
+
| ------------- | ------------- | ----------- | ------------------------------------- | ----------- |
|
|
75
|
+
| `caption` | `caption` | | `string` | `undefined` |
|
|
76
|
+
| `dismissable` | `dismissable` | | `boolean` | `true` |
|
|
77
|
+
| `showIcon` | `show-icon` | | `boolean` | `true` |
|
|
78
|
+
| `timeout` | `timeout` | | `number` | `8000` |
|
|
79
|
+
| `variant` | `variant` | | `"neutral" \| "success" \| "warning"` | `'neutral'` |
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Dependencies
|
|
83
|
+
|
|
84
|
+
### Depends on
|
|
85
|
+
|
|
86
|
+
- [xpl-icon](../xpl-icon)
|
|
87
|
+
|
|
88
|
+
### Graph
|
|
89
|
+
```mermaid
|
|
90
|
+
graph TD;
|
|
91
|
+
xpl-toast --> xpl-icon
|
|
92
|
+
style xpl-toast fill:#f9f,stroke:#333,stroke-width:4px
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
----------------------------------------------
|
|
96
|
+
|
|
97
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# xpl-toggle
|
|
2
|
+
|
|
3
|
+
A Toggle is a type of form control that is used to switch between enabled and disabled states of an element.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ------------- | ------------- | ------------------------------------------------------------------------------ | ---------------------- | ----------- |
|
|
12
|
+
| `checked` | `checked` | Whether the toggle is `on` | `boolean` | `undefined` |
|
|
13
|
+
| `description` | `description` | The toggle's description appears *above* the toggle. | `string` | `undefined` |
|
|
14
|
+
| `disabled` | `disabled` | Whether the toggle is disabled | `boolean` | `undefined` |
|
|
15
|
+
| `heading` | `heading` | The toggle's heading appears *above* the toggle. | `string` | `undefined` |
|
|
16
|
+
| `label` | `label` | The toggle's label appears *to the right of* the toggle. | `string` | `undefined` |
|
|
17
|
+
| `name` | `name` | The name attribute for the html input. (submittted in form as name/value pair) | `string` | `undefined` |
|
|
18
|
+
| `variant` | `variant` | The size of the toggle -- `default` or `small` | `"default" \| "small"` | `'default'` |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
----------------------------------------------
|
|
22
|
+
|
|
23
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# xpl-toolbar
|
|
2
|
+
|
|
3
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!-- Auto Generated Below -->
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
| Property | Attribute | Description | Type | Default |
|
|
12
|
+
| ------------------- | --------------------- | ------------------------------------------------------- | -------- | ------- |
|
|
13
|
+
| `selectedItemCount` | `selected-item-count` | The number of selected items to display in the toolbar. | `number` | `0` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
----------------------------------------------
|
|
17
|
+
|
|
18
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# xpl-tooltip
|
|
2
|
+
|
|
3
|
+
Tooltips are intended to be short one to two sentence messages adding contextual information for the user. Keep messages short and to the point. Tooltips are static and do not contain actions, and only appear when the context is hovered.
|
|
4
|
+
|
|
5
|
+
Tooltip variants control one of 8 arrow positions indicating the direction the tooltip will appear in relation to it's trigger:
|
|
6
|
+
"bottom-left" | "bottom-middle" | "bottom-right" | "left" | "right" | "top-left" | "top-middle" | "top-right"
|
|
7
|
+
|
|
8
|
+
<!-- Auto Generated Below -->
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
| Property | Attribute | Description | Type | Default |
|
|
14
|
+
| ----------- | ------------ | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
15
|
+
| `hideArrow` | `hide-arrow` | Hide the arrow | `boolean` | `false` |
|
|
16
|
+
| `position` | `position` | Position of the tooltip relative to the element | `"bottom-left" \| "bottom-middle" \| "bottom-right" \| "left" \| "right" \| "top-left" \| "top-middle" \| "top-right"` | `'top-middle'` |
|
|
17
|
+
| `text` | `text` | The tooltip text to display | `string` | `undefined` |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Dependencies
|
|
21
|
+
|
|
22
|
+
### Used by
|
|
23
|
+
|
|
24
|
+
- [xpl-data-card](../xpl-data-card)
|
|
25
|
+
|
|
26
|
+
### Graph
|
|
27
|
+
```mermaid
|
|
28
|
+
graph TD;
|
|
29
|
+
xpl-data-card --> xpl-tooltip
|
|
30
|
+
style xpl-tooltip fill:#f9f,stroke:#333,stroke-width:4px
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
----------------------------------------------
|
|
34
|
+
|
|
35
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|