@pitchfork-ui/elements 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +73 -2
- package/dist/cjs/aria-5oCPUGFo.js +25 -0
- package/dist/cjs/aria-5oCPUGFo.js.map +1 -0
- package/dist/cjs/cartesian-C7GC9oo_.js +198 -0
- package/dist/cjs/cartesian-C7GC9oo_.js.map +1 -0
- package/dist/cjs/command-Du9CowoS.js +42 -0
- package/dist/cjs/command-Du9CowoS.js.map +1 -0
- package/dist/cjs/date-CzVt5Lej.js +170 -0
- package/dist/cjs/date-CzVt5Lej.js.map +1 -0
- package/dist/cjs/form-validity-BCrcqnZ7.js +37 -0
- package/dist/cjs/form-validity-BCrcqnZ7.js.map +1 -0
- package/dist/cjs/icons-Db3Bk5fj.js +81 -0
- package/dist/cjs/icons-Db3Bk5fj.js.map +1 -0
- package/dist/cjs/index-CIskGKk1.js +2307 -0
- package/dist/cjs/index-CIskGKk1.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/keys-S3YTuCcn.js +20 -0
- package/dist/cjs/keys-S3YTuCcn.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/motion-Bjlaq-ac.js +45 -0
- package/dist/cjs/motion-Bjlaq-ac.js.map +1 -0
- package/dist/cjs/nav-C4LaACXb.js +27 -0
- package/dist/cjs/nav-C4LaACXb.js.map +1 -0
- package/dist/cjs/navigation-CZce-g58.js +35 -0
- package/dist/cjs/navigation-CZce-g58.js.map +1 -0
- package/dist/cjs/number-field-DIVYv25j.js +76 -0
- package/dist/cjs/number-field-DIVYv25j.js.map +1 -0
- package/dist/cjs/pf-accordion-item.cjs.entry.js +62 -0
- package/dist/cjs/pf-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-accordion.cjs.entry.js +146 -0
- package/dist/cjs/pf-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-alert.cjs.entry.js +67 -0
- package/dist/cjs/pf-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-avatar-group.cjs.entry.js +120 -0
- package/dist/cjs/pf-avatar-group.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-avatar.cjs.entry.js +30 -0
- package/dist/cjs/pf-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-badge-group.cjs.entry.js +36 -0
- package/dist/cjs/pf-badge-group.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-badge.cjs.entry.js +22 -0
- package/dist/cjs/pf-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-bar-chart.cjs.entry.js +112 -0
- package/dist/cjs/pf-bar-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-breadcrumb.cjs.entry.js +43 -0
- package/dist/cjs/pf-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-breadcrumbs.cjs.entry.js +96 -0
- package/dist/cjs/pf-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-button-group-item.cjs.entry.js +51 -0
- package/dist/cjs/pf-button-group-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-button-group.cjs.entry.js +102 -0
- package/dist/cjs/pf-button-group.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-button.cjs.entry.js +43 -0
- package/dist/cjs/pf-button.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-calendar.cjs.entry.js +222 -0
- package/dist/cjs/pf-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-card-content.cjs.entry.js +20 -0
- package/dist/cjs/pf-card-content.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-card-footer.cjs.entry.js +20 -0
- package/dist/cjs/pf-card-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-card-header.cjs.entry.js +20 -0
- package/dist/cjs/pf-card-header.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-card.cjs.entry.js +20 -0
- package/dist/cjs/pf-card.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-carousel-slide.cjs.entry.js +33 -0
- package/dist/cjs/pf-carousel-slide.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-carousel.cjs.entry.js +170 -0
- package/dist/cjs/pf-carousel.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-chart-series.cjs.entry.js +33 -0
- package/dist/cjs/pf-chart-series.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-checkbox.cjs.entry.js +110 -0
- package/dist/cjs/pf-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-code-snippet.cjs.entry.js +157 -0
- package/dist/cjs/pf-code-snippet.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-collapsible.cjs.entry.js +76 -0
- package/dist/cjs/pf-collapsible.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-combobox.cjs.entry.js +339 -0
- package/dist/cjs/pf-combobox.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-command-group.cjs.entry.js +22 -0
- package/dist/cjs/pf-command-group.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-command-item.cjs.entry.js +50 -0
- package/dist/cjs/pf-command-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-command-palette.cjs.entry.js +273 -0
- package/dist/cjs/pf-command-palette.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-content-divider.cjs.entry.js +55 -0
- package/dist/cjs/pf-content-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-context-menu.cjs.entry.js +159 -0
- package/dist/cjs/pf-context-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-credit-card.cjs.entry.js +40 -0
- package/dist/cjs/pf-credit-card.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-date-picker.cjs.entry.js +241 -0
- package/dist/cjs/pf-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-date-range-picker.cjs.entry.js +476 -0
- package/dist/cjs/pf-date-range-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-dropdown.cjs.entry.js +183 -0
- package/dist/cjs/pf-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-empty-state.cjs.entry.js +55 -0
- package/dist/cjs/pf-empty-state.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-file-uploader.cjs.entry.js +312 -0
- package/dist/cjs/pf-file-uploader.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-gauge-chart.cjs.entry.js +41 -0
- package/dist/cjs/pf-gauge-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-header-navigation.cjs.entry.js +77 -0
- package/dist/cjs/pf-header-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-heatmap.cjs.entry.js +252 -0
- package/dist/cjs/pf-heatmap.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-icon.cjs.entry.js +327 -0
- package/dist/cjs/pf-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-inline-cta.cjs.entry.js +86 -0
- package/dist/cjs/pf-inline-cta.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-input.cjs.entry.js +122 -0
- package/dist/cjs/pf-input.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-kbd.cjs.entry.js +27 -0
- package/dist/cjs/pf-kbd.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-line-chart.cjs.entry.js +117 -0
- package/dist/cjs/pf-line-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-loading-dots.cjs.entry.js +24 -0
- package/dist/cjs/pf-loading-dots.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-loading-skeleton.cjs.entry.js +43 -0
- package/dist/cjs/pf-loading-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-loading-spinner.cjs.entry.js +30 -0
- package/dist/cjs/pf-loading-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-menu-item.cjs.entry.js +57 -0
- package/dist/cjs/pf-menu-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-menu-separator.cjs.entry.js +20 -0
- package/dist/cjs/pf-menu-separator.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-metric-card.cjs.entry.js +54 -0
- package/dist/cjs/pf-metric-card.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-metric-grid.cjs.entry.js +20 -0
- package/dist/cjs/pf-metric-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-modal-body.cjs.entry.js +20 -0
- package/dist/cjs/pf-modal-body.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-modal-footer.cjs.entry.js +20 -0
- package/dist/cjs/pf-modal-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-modal-header.cjs.entry.js +20 -0
- package/dist/cjs/pf-modal-header.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-modal.cjs.entry.js +141 -0
- package/dist/cjs/pf-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-multi-select.cjs.entry.js +316 -0
- package/dist/cjs/pf-multi-select.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-nav-item.cjs.entry.js +58 -0
- package/dist/cjs/pf-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-nav-section.cjs.entry.js +54 -0
- package/dist/cjs/pf-nav-section.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-notification.cjs.entry.js +68 -0
- package/dist/cjs/pf-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-number-input.cjs.entry.js +192 -0
- package/dist/cjs/pf-number-input.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-option.cjs.entry.js +50 -0
- package/dist/cjs/pf-option.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-page-header.cjs.entry.js +35 -0
- package/dist/cjs/pf-page-header.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-pagination.cjs.entry.js +113 -0
- package/dist/cjs/pf-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-pie-chart.cjs.entry.js +94 -0
- package/dist/cjs/pf-pie-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-pie-slice.cjs.entry.js +36 -0
- package/dist/cjs/pf-pie-slice.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-popover.cjs.entry.js +157 -0
- package/dist/cjs/pf-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-progress-bar.cjs.entry.js +32 -0
- package/dist/cjs/pf-progress-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-progress-circle.cjs.entry.js +40 -0
- package/dist/cjs/pf-progress-circle.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-progress-step.cjs.entry.js +42 -0
- package/dist/cjs/pf-progress-step.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-progress-steps.cjs.entry.js +99 -0
- package/dist/cjs/pf-progress-steps.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-radar-axis.cjs.entry.js +33 -0
- package/dist/cjs/pf-radar-axis.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-radar-chart.cjs.entry.js +185 -0
- package/dist/cjs/pf-radar-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-radio-button.cjs.entry.js +73 -0
- package/dist/cjs/pf-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-radio-group.cjs.entry.js +174 -0
- package/dist/cjs/pf-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-rating-badge.cjs.entry.js +35 -0
- package/dist/cjs/pf-rating-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-rating-stars.cjs.entry.js +46 -0
- package/dist/cjs/pf-rating-stars.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-resizable.cjs.entry.js +205 -0
- package/dist/cjs/pf-resizable.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-rich-text-editor.cjs.entry.js +261 -0
- package/dist/cjs/pf-rich-text-editor.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-scroll-area.cjs.entry.js +43 -0
- package/dist/cjs/pf-scroll-area.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-section-footer.cjs.entry.js +41 -0
- package/dist/cjs/pf-section-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-section-header.cjs.entry.js +37 -0
- package/dist/cjs/pf-section-header.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-select.cjs.entry.js +412 -0
- package/dist/cjs/pf-select.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-sidebar-navigation.cjs.entry.js +103 -0
- package/dist/cjs/pf-sidebar-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-slideout-menu.cjs.entry.js +155 -0
- package/dist/cjs/pf-slideout-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-slider.cjs.entry.js +125 -0
- package/dist/cjs/pf-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-sparkline.cjs.entry.js +123 -0
- package/dist/cjs/pf-sparkline.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-switch.cjs.entry.js +110 -0
- package/dist/cjs/pf-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tab-panel.cjs.entry.js +41 -0
- package/dist/cjs/pf-tab-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tab.cjs.entry.js +96 -0
- package/dist/cjs/pf-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-table-cell.cjs.entry.js +50 -0
- package/dist/cjs/pf-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-table-row.cjs.entry.js +51 -0
- package/dist/cjs/pf-table-row.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-table.cjs.entry.js +145 -0
- package/dist/cjs/pf-table.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tabs.cjs.entry.js +342 -0
- package/dist/cjs/pf-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tag-input.cjs.entry.js +199 -0
- package/dist/cjs/pf-tag-input.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tag.cjs.entry.js +32 -0
- package/dist/cjs/pf-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-textarea.cjs.entry.js +140 -0
- package/dist/cjs/pf-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-time-picker.cjs.entry.js +328 -0
- package/dist/cjs/pf-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-timeline-item.cjs.entry.js +46 -0
- package/dist/cjs/pf-timeline-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-timeline.cjs.entry.js +55 -0
- package/dist/cjs/pf-timeline.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-toaster.cjs.entry.js +90 -0
- package/dist/cjs/pf-toaster.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-toolbar-separator.cjs.entry.js +22 -0
- package/dist/cjs/pf-toolbar-separator.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-toolbar.cjs.entry.js +75 -0
- package/dist/cjs/pf-toolbar.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tooltip.cjs.entry.js +179 -0
- package/dist/cjs/pf-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tree-item.cjs.entry.js +81 -0
- package/dist/cjs/pf-tree-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-tree-view.cjs.entry.js +342 -0
- package/dist/cjs/pf-tree-view.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-utility-button.cjs.entry.js +56 -0
- package/dist/cjs/pf-utility-button.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-video-player.cjs.entry.js +62 -0
- package/dist/cjs/pf-video-player.cjs.entry.js.map +1 -0
- package/dist/cjs/pf-visually-hidden.cjs.entry.js +25 -0
- package/dist/cjs/pf-visually-hidden.cjs.entry.js.map +1 -0
- package/dist/cjs/pie-Bf7gKQU2.js +117 -0
- package/dist/cjs/pie-Bf7gKQU2.js.map +1 -0
- package/dist/cjs/pitchfork.cjs.js +27 -0
- package/dist/cjs/pitchfork.cjs.js.map +1 -0
- package/dist/cjs/place-popover-CMqeolzZ.js +200 -0
- package/dist/cjs/place-popover-CMqeolzZ.js.map +1 -0
- package/dist/cjs/progress-DVUoQ3h5.js +87 -0
- package/dist/cjs/progress-DVUoQ3h5.js.map +1 -0
- package/dist/cjs/rating-B-EBGYMD.js +56 -0
- package/dist/cjs/rating-B-EBGYMD.js.map +1 -0
- package/dist/cjs/roving-BNDruU3m.js +71 -0
- package/dist/cjs/roving-BNDruU3m.js.map +1 -0
- package/dist/cjs/scroll-lock-DllDwdH9.js +46 -0
- package/dist/cjs/scroll-lock-DllDwdH9.js.map +1 -0
- package/dist/cjs/text-DQvgAqew.js +59 -0
- package/dist/cjs/text-DQvgAqew.js.map +1 -0
- package/dist/cjs/value-list-zSKmhcgH.js +109 -0
- package/dist/cjs/value-list-zSKmhcgH.js.map +1 -0
- package/dist/collection/collection-manifest.json +120 -0
- package/dist/collection/components/pf-accordion/pf-accordion.css +10 -0
- package/dist/collection/components/pf-accordion/pf-accordion.js +289 -0
- package/dist/collection/components/pf-accordion/pf-accordion.js.map +1 -0
- package/dist/collection/components/pf-accordion-item/pf-accordion-item.css +94 -0
- package/dist/collection/components/pf-accordion-item/pf-accordion-item.js +194 -0
- package/dist/collection/components/pf-accordion-item/pf-accordion-item.js.map +1 -0
- package/dist/collection/components/pf-alert/pf-alert.css +140 -0
- package/dist/collection/components/pf-alert/pf-alert.js +238 -0
- package/dist/collection/components/pf-alert/pf-alert.js.map +1 -0
- package/dist/collection/components/pf-avatar/pf-avatar.css +101 -0
- package/dist/collection/components/pf-avatar/pf-avatar.js +152 -0
- package/dist/collection/components/pf-avatar/pf-avatar.js.map +1 -0
- package/dist/collection/components/pf-avatar-group/pf-avatar-group.css +55 -0
- package/dist/collection/components/pf-avatar-group/pf-avatar-group.js +222 -0
- package/dist/collection/components/pf-avatar-group/pf-avatar-group.js.map +1 -0
- package/dist/collection/components/pf-badge/pf-badge.css +43 -0
- package/dist/collection/components/pf-badge/pf-badge.js +59 -0
- package/dist/collection/components/pf-badge/pf-badge.js.map +1 -0
- package/dist/collection/components/pf-badge-group/pf-badge-group.css +119 -0
- package/dist/collection/components/pf-badge-group/pf-badge-group.js +164 -0
- package/dist/collection/components/pf-badge-group/pf-badge-group.js.map +1 -0
- package/dist/collection/components/pf-bar-chart/pf-bar-chart.css +96 -0
- package/dist/collection/components/pf-bar-chart/pf-bar-chart.js +263 -0
- package/dist/collection/components/pf-bar-chart/pf-bar-chart.js.map +1 -0
- package/dist/collection/components/pf-breadcrumb/pf-breadcrumb.css +40 -0
- package/dist/collection/components/pf-breadcrumb/pf-breadcrumb.js +160 -0
- package/dist/collection/components/pf-breadcrumb/pf-breadcrumb.js.map +1 -0
- package/dist/collection/components/pf-breadcrumbs/pf-breadcrumbs.css +27 -0
- package/dist/collection/components/pf-breadcrumbs/pf-breadcrumbs.js +162 -0
- package/dist/collection/components/pf-breadcrumbs/pf-breadcrumbs.js.map +1 -0
- package/dist/collection/components/pf-button/pf-button.css +134 -0
- package/dist/collection/components/pf-button/pf-button.js +216 -0
- package/dist/collection/components/pf-button/pf-button.js.map +1 -0
- package/dist/collection/components/pf-button-group/pf-button-group.css +14 -0
- package/dist/collection/components/pf-button-group/pf-button-group.js +229 -0
- package/dist/collection/components/pf-button-group/pf-button-group.js.map +1 -0
- package/dist/collection/components/pf-button-group-item/pf-button-group-item.css +103 -0
- package/dist/collection/components/pf-button-group-item/pf-button-group-item.js +206 -0
- package/dist/collection/components/pf-button-group-item/pf-button-group-item.js.map +1 -0
- package/dist/collection/components/pf-calendar/pf-calendar.css +151 -0
- package/dist/collection/components/pf-calendar/pf-calendar.js +479 -0
- package/dist/collection/components/pf-calendar/pf-calendar.js.map +1 -0
- package/dist/collection/components/pf-card/pf-card.css +17 -0
- package/dist/collection/components/pf-card/pf-card.js +32 -0
- package/dist/collection/components/pf-card/pf-card.js.map +1 -0
- package/dist/collection/components/pf-card-content/pf-card-content.css +8 -0
- package/dist/collection/components/pf-card-content/pf-card-content.js +24 -0
- package/dist/collection/components/pf-card-content/pf-card-content.js.map +1 -0
- package/dist/collection/components/pf-card-footer/pf-card-footer.css +10 -0
- package/dist/collection/components/pf-card-footer/pf-card-footer.js +26 -0
- package/dist/collection/components/pf-card-footer/pf-card-footer.js.map +1 -0
- package/dist/collection/components/pf-card-header/pf-card-header.css +14 -0
- package/dist/collection/components/pf-card-header/pf-card-header.js +24 -0
- package/dist/collection/components/pf-card-header/pf-card-header.js.map +1 -0
- package/dist/collection/components/pf-carousel/pf-carousel.css +145 -0
- package/dist/collection/components/pf-carousel/pf-carousel.js +397 -0
- package/dist/collection/components/pf-carousel/pf-carousel.js.map +1 -0
- package/dist/collection/components/pf-carousel-slide/pf-carousel-slide.css +12 -0
- package/dist/collection/components/pf-carousel-slide/pf-carousel-slide.js +106 -0
- package/dist/collection/components/pf-carousel-slide/pf-carousel-slide.js.map +1 -0
- package/dist/collection/components/pf-chart-series/pf-chart-series.css +18 -0
- package/dist/collection/components/pf-chart-series/pf-chart-series.js +132 -0
- package/dist/collection/components/pf-chart-series/pf-chart-series.js.map +1 -0
- package/dist/collection/components/pf-checkbox/pf-checkbox.css +77 -0
- package/dist/collection/components/pf-checkbox/pf-checkbox.js +324 -0
- package/dist/collection/components/pf-checkbox/pf-checkbox.js.map +1 -0
- package/dist/collection/components/pf-code-snippet/pf-code-snippet.css +164 -0
- package/dist/collection/components/pf-code-snippet/pf-code-snippet.js +371 -0
- package/dist/collection/components/pf-code-snippet/pf-code-snippet.js.map +1 -0
- package/dist/collection/components/pf-collapsible/pf-collapsible.css +85 -0
- package/dist/collection/components/pf-collapsible/pf-collapsible.js +224 -0
- package/dist/collection/components/pf-collapsible/pf-collapsible.js.map +1 -0
- package/dist/collection/components/pf-combobox/pf-combobox.css +158 -0
- package/dist/collection/components/pf-combobox/pf-combobox.js +753 -0
- package/dist/collection/components/pf-combobox/pf-combobox.js.map +1 -0
- package/dist/collection/components/pf-command-group/pf-command-group.css +18 -0
- package/dist/collection/components/pf-command-group/pf-command-group.js +57 -0
- package/dist/collection/components/pf-command-group/pf-command-group.js.map +1 -0
- package/dist/collection/components/pf-command-item/pf-command-item.css +76 -0
- package/dist/collection/components/pf-command-item/pf-command-item.js +142 -0
- package/dist/collection/components/pf-command-item/pf-command-item.js.map +1 -0
- package/dist/collection/components/pf-command-palette/pf-command-palette.css +113 -0
- package/dist/collection/components/pf-command-palette/pf-command-palette.js +503 -0
- package/dist/collection/components/pf-command-palette/pf-command-palette.js.map +1 -0
- package/dist/collection/components/pf-content-divider/pf-content-divider.css +61 -0
- package/dist/collection/components/pf-content-divider/pf-content-divider.js +121 -0
- package/dist/collection/components/pf-content-divider/pf-content-divider.js.map +1 -0
- package/dist/collection/components/pf-context-menu/pf-context-menu.css +58 -0
- package/dist/collection/components/pf-context-menu/pf-context-menu.js +331 -0
- package/dist/collection/components/pf-context-menu/pf-context-menu.js.map +1 -0
- package/dist/collection/components/pf-credit-card/pf-credit-card.css +118 -0
- package/dist/collection/components/pf-credit-card/pf-credit-card.js +180 -0
- package/dist/collection/components/pf-credit-card/pf-credit-card.js.map +1 -0
- package/dist/collection/components/pf-date-picker/pf-date-picker.css +141 -0
- package/dist/collection/components/pf-date-picker/pf-date-picker.js +696 -0
- package/dist/collection/components/pf-date-picker/pf-date-picker.js.map +1 -0
- package/dist/collection/components/pf-date-range-picker/pf-date-range-picker.css +267 -0
- package/dist/collection/components/pf-date-range-picker/pf-date-range-picker.js +833 -0
- package/dist/collection/components/pf-date-range-picker/pf-date-range-picker.js.map +1 -0
- package/dist/collection/components/pf-dropdown/pf-dropdown.css +57 -0
- package/dist/collection/components/pf-dropdown/pf-dropdown.js +369 -0
- package/dist/collection/components/pf-dropdown/pf-dropdown.js.map +1 -0
- package/dist/collection/components/pf-empty-state/pf-empty-state.css +94 -0
- package/dist/collection/components/pf-empty-state/pf-empty-state.js +126 -0
- package/dist/collection/components/pf-empty-state/pf-empty-state.js.map +1 -0
- package/dist/collection/components/pf-file-uploader/pf-file-uploader.css +186 -0
- package/dist/collection/components/pf-file-uploader/pf-file-uploader.js +557 -0
- package/dist/collection/components/pf-file-uploader/pf-file-uploader.js.map +1 -0
- package/dist/collection/components/pf-gauge-chart/pf-gauge-chart.css +83 -0
- package/dist/collection/components/pf-gauge-chart/pf-gauge-chart.js +186 -0
- package/dist/collection/components/pf-gauge-chart/pf-gauge-chart.js.map +1 -0
- package/dist/collection/components/pf-header-navigation/pf-header-navigation.css +83 -0
- package/dist/collection/components/pf-header-navigation/pf-header-navigation.js +150 -0
- package/dist/collection/components/pf-header-navigation/pf-header-navigation.js.map +1 -0
- package/dist/collection/components/pf-heatmap/pf-heatmap.css +108 -0
- package/dist/collection/components/pf-heatmap/pf-heatmap.js +321 -0
- package/dist/collection/components/pf-heatmap/pf-heatmap.js.map +1 -0
- package/dist/collection/components/pf-icon/bundled-icons.js +40 -0
- package/dist/collection/components/pf-icon/bundled-icons.js.map +1 -0
- package/dist/collection/components/pf-icon/custom-icons.js +37 -0
- package/dist/collection/components/pf-icon/custom-icons.js.map +1 -0
- package/dist/collection/components/pf-icon/icon-names.js +9 -0
- package/dist/collection/components/pf-icon/icon-names.js.map +1 -0
- package/dist/collection/components/pf-icon/pf-icon.css +17 -0
- package/dist/collection/components/pf-icon/pf-icon.js +105 -0
- package/dist/collection/components/pf-icon/pf-icon.js.map +1 -0
- package/dist/collection/components/pf-inline-cta/pf-inline-cta.css +167 -0
- package/dist/collection/components/pf-inline-cta/pf-inline-cta.js +263 -0
- package/dist/collection/components/pf-inline-cta/pf-inline-cta.js.map +1 -0
- package/dist/collection/components/pf-input/pf-input.css +82 -0
- package/dist/collection/components/pf-input/pf-input.js +421 -0
- package/dist/collection/components/pf-input/pf-input.js.map +1 -0
- package/dist/collection/components/pf-kbd/pf-kbd.css +33 -0
- package/dist/collection/components/pf-kbd/pf-kbd.js +102 -0
- package/dist/collection/components/pf-kbd/pf-kbd.js.map +1 -0
- package/dist/collection/components/pf-line-chart/pf-line-chart.css +98 -0
- package/dist/collection/components/pf-line-chart/pf-line-chart.js +294 -0
- package/dist/collection/components/pf-line-chart/pf-line-chart.js.map +1 -0
- package/dist/collection/components/pf-loading-dots/pf-loading-dots.css +75 -0
- package/dist/collection/components/pf-loading-dots/pf-loading-dots.js +79 -0
- package/dist/collection/components/pf-loading-dots/pf-loading-dots.js.map +1 -0
- package/dist/collection/components/pf-loading-skeleton/pf-loading-skeleton.css +54 -0
- package/dist/collection/components/pf-loading-skeleton/pf-loading-skeleton.js +131 -0
- package/dist/collection/components/pf-loading-skeleton/pf-loading-skeleton.js.map +1 -0
- package/dist/collection/components/pf-loading-spinner/pf-loading-spinner.css +51 -0
- package/dist/collection/components/pf-loading-spinner/pf-loading-spinner.js +78 -0
- package/dist/collection/components/pf-loading-spinner/pf-loading-spinner.js.map +1 -0
- package/dist/collection/components/pf-menu-item/pf-menu-item.css +70 -0
- package/dist/collection/components/pf-menu-item/pf-menu-item.js +167 -0
- package/dist/collection/components/pf-menu-item/pf-menu-item.js.map +1 -0
- package/dist/collection/components/pf-menu-separator/pf-menu-separator.css +11 -0
- package/dist/collection/components/pf-menu-separator/pf-menu-separator.js +25 -0
- package/dist/collection/components/pf-menu-separator/pf-menu-separator.js.map +1 -0
- package/dist/collection/components/pf-metric-card/pf-metric-card.css +125 -0
- package/dist/collection/components/pf-metric-card/pf-metric-card.js +128 -0
- package/dist/collection/components/pf-metric-card/pf-metric-card.js.map +1 -0
- package/dist/collection/components/pf-metric-grid/pf-metric-grid.css +14 -0
- package/dist/collection/components/pf-metric-grid/pf-metric-grid.js +29 -0
- package/dist/collection/components/pf-metric-grid/pf-metric-grid.js.map +1 -0
- package/dist/collection/components/pf-modal/pf-modal.css +94 -0
- package/dist/collection/components/pf-modal/pf-modal.js +325 -0
- package/dist/collection/components/pf-modal/pf-modal.js.map +1 -0
- package/dist/collection/components/pf-modal-body/pf-modal-body.css +9 -0
- package/dist/collection/components/pf-modal-body/pf-modal-body.js +28 -0
- package/dist/collection/components/pf-modal-body/pf-modal-body.js.map +1 -0
- package/dist/collection/components/pf-modal-footer/pf-modal-footer.css +11 -0
- package/dist/collection/components/pf-modal-footer/pf-modal-footer.js +28 -0
- package/dist/collection/components/pf-modal-footer/pf-modal-footer.js.map +1 -0
- package/dist/collection/components/pf-modal-header/pf-modal-header.css +10 -0
- package/dist/collection/components/pf-modal-header/pf-modal-header.js +28 -0
- package/dist/collection/components/pf-modal-header/pf-modal-header.js.map +1 -0
- package/dist/collection/components/pf-multi-select/pf-multi-select.css +139 -0
- package/dist/collection/components/pf-multi-select/pf-multi-select.js +691 -0
- package/dist/collection/components/pf-multi-select/pf-multi-select.js.map +1 -0
- package/dist/collection/components/pf-nav-item/pf-nav-item.css +125 -0
- package/dist/collection/components/pf-nav-item/pf-nav-item.js +220 -0
- package/dist/collection/components/pf-nav-item/pf-nav-item.js.map +1 -0
- package/dist/collection/components/pf-nav-section/pf-nav-section.css +39 -0
- package/dist/collection/components/pf-nav-section/pf-nav-section.js +94 -0
- package/dist/collection/components/pf-nav-section/pf-nav-section.js.map +1 -0
- package/dist/collection/components/pf-notification/pf-notification.css +200 -0
- package/dist/collection/components/pf-notification/pf-notification.js +234 -0
- package/dist/collection/components/pf-notification/pf-notification.js.map +1 -0
- package/dist/collection/components/pf-number-input/pf-number-input.css +137 -0
- package/dist/collection/components/pf-number-input/pf-number-input.js +560 -0
- package/dist/collection/components/pf-number-input/pf-number-input.js.map +1 -0
- package/dist/collection/components/pf-option/pf-option.css +46 -0
- package/dist/collection/components/pf-option/pf-option.js +162 -0
- package/dist/collection/components/pf-option/pf-option.js.map +1 -0
- package/dist/collection/components/pf-page-header/pf-page-header.css +101 -0
- package/dist/collection/components/pf-page-header/pf-page-header.js +64 -0
- package/dist/collection/components/pf-page-header/pf-page-header.js.map +1 -0
- package/dist/collection/components/pf-pagination/pf-pagination.css +109 -0
- package/dist/collection/components/pf-pagination/pf-pagination.js +232 -0
- package/dist/collection/components/pf-pagination/pf-pagination.js.map +1 -0
- package/dist/collection/components/pf-pie-chart/pf-pie-chart.css +115 -0
- package/dist/collection/components/pf-pie-chart/pf-pie-chart.js +226 -0
- package/dist/collection/components/pf-pie-chart/pf-pie-chart.js.map +1 -0
- package/dist/collection/components/pf-pie-slice/pf-pie-slice.css +37 -0
- package/dist/collection/components/pf-pie-slice/pf-pie-slice.js +155 -0
- package/dist/collection/components/pf-pie-slice/pf-pie-slice.js.map +1 -0
- package/dist/collection/components/pf-popover/pf-popover.css +49 -0
- package/dist/collection/components/pf-popover/pf-popover.js +325 -0
- package/dist/collection/components/pf-popover/pf-popover.js.map +1 -0
- package/dist/collection/components/pf-progress-bar/pf-progress-bar.css +49 -0
- package/dist/collection/components/pf-progress-bar/pf-progress-bar.js +121 -0
- package/dist/collection/components/pf-progress-bar/pf-progress-bar.js.map +1 -0
- package/dist/collection/components/pf-progress-circle/pf-progress-circle.css +62 -0
- package/dist/collection/components/pf-progress-circle/pf-progress-circle.js +170 -0
- package/dist/collection/components/pf-progress-circle/pf-progress-circle.js.map +1 -0
- package/dist/collection/components/pf-progress-step/pf-progress-step.css +167 -0
- package/dist/collection/components/pf-progress-step/pf-progress-step.js +176 -0
- package/dist/collection/components/pf-progress-step/pf-progress-step.js.map +1 -0
- package/dist/collection/components/pf-progress-steps/pf-progress-steps.css +35 -0
- package/dist/collection/components/pf-progress-steps/pf-progress-steps.js +139 -0
- package/dist/collection/components/pf-progress-steps/pf-progress-steps.js.map +1 -0
- package/dist/collection/components/pf-radar-axis/pf-radar-axis.css +26 -0
- package/dist/collection/components/pf-radar-axis/pf-radar-axis.js +108 -0
- package/dist/collection/components/pf-radar-axis/pf-radar-axis.js.map +1 -0
- package/dist/collection/components/pf-radar-chart/pf-radar-chart.css +123 -0
- package/dist/collection/components/pf-radar-chart/pf-radar-chart.js +280 -0
- package/dist/collection/components/pf-radar-chart/pf-radar-chart.js.map +1 -0
- package/dist/collection/components/pf-radio-button/pf-radio-button.css +60 -0
- package/dist/collection/components/pf-radio-button/pf-radio-button.js +175 -0
- package/dist/collection/components/pf-radio-button/pf-radio-button.js.map +1 -0
- package/dist/collection/components/pf-radio-group/pf-radio-group.css +36 -0
- package/dist/collection/components/pf-radio-group/pf-radio-group.js +420 -0
- package/dist/collection/components/pf-radio-group/pf-radio-group.js.map +1 -0
- package/dist/collection/components/pf-rating-badge/pf-rating-badge.css +48 -0
- package/dist/collection/components/pf-rating-badge/pf-rating-badge.js +131 -0
- package/dist/collection/components/pf-rating-badge/pf-rating-badge.js.map +1 -0
- package/dist/collection/components/pf-rating-stars/pf-rating-stars.css +54 -0
- package/dist/collection/components/pf-rating-stars/pf-rating-stars.js +159 -0
- package/dist/collection/components/pf-rating-stars/pf-rating-stars.js.map +1 -0
- package/dist/collection/components/pf-resizable/pf-resizable.css +83 -0
- package/dist/collection/components/pf-resizable/pf-resizable.js +309 -0
- package/dist/collection/components/pf-resizable/pf-resizable.js.map +1 -0
- package/dist/collection/components/pf-rich-text-editor/pf-rich-text-editor.css +136 -0
- package/dist/collection/components/pf-rich-text-editor/pf-rich-text-editor.js +519 -0
- package/dist/collection/components/pf-rich-text-editor/pf-rich-text-editor.js.map +1 -0
- package/dist/collection/components/pf-scroll-area/pf-scroll-area.css +62 -0
- package/dist/collection/components/pf-scroll-area/pf-scroll-area.js +98 -0
- package/dist/collection/components/pf-scroll-area/pf-scroll-area.js.map +1 -0
- package/dist/collection/components/pf-section-footer/pf-section-footer.css +73 -0
- package/dist/collection/components/pf-section-footer/pf-section-footer.js +113 -0
- package/dist/collection/components/pf-section-footer/pf-section-footer.js.map +1 -0
- package/dist/collection/components/pf-section-header/pf-section-header.css +93 -0
- package/dist/collection/components/pf-section-header/pf-section-header.js +113 -0
- package/dist/collection/components/pf-section-header/pf-section-header.js.map +1 -0
- package/dist/collection/components/pf-select/pf-select.css +127 -0
- package/dist/collection/components/pf-select/pf-select.js +712 -0
- package/dist/collection/components/pf-select/pf-select.js.map +1 -0
- package/dist/collection/components/pf-sidebar-navigation/pf-sidebar-navigation.css +69 -0
- package/dist/collection/components/pf-sidebar-navigation/pf-sidebar-navigation.js +191 -0
- package/dist/collection/components/pf-sidebar-navigation/pf-sidebar-navigation.js.map +1 -0
- package/dist/collection/components/pf-slideout-menu/pf-slideout-menu.css +179 -0
- package/dist/collection/components/pf-slideout-menu/pf-slideout-menu.js +414 -0
- package/dist/collection/components/pf-slideout-menu/pf-slideout-menu.js.map +1 -0
- package/dist/collection/components/pf-slider/pf-slider.css +119 -0
- package/dist/collection/components/pf-slider/pf-slider.js +419 -0
- package/dist/collection/components/pf-slider/pf-slider.js.map +1 -0
- package/dist/collection/components/pf-sparkline/pf-sparkline.css +76 -0
- package/dist/collection/components/pf-sparkline/pf-sparkline.js +271 -0
- package/dist/collection/components/pf-sparkline/pf-sparkline.js.map +1 -0
- package/dist/collection/components/pf-switch/pf-switch.css +79 -0
- package/dist/collection/components/pf-switch/pf-switch.js +329 -0
- package/dist/collection/components/pf-switch/pf-switch.js.map +1 -0
- package/dist/collection/components/pf-tab/pf-tab.css +88 -0
- package/dist/collection/components/pf-tab/pf-tab.js +374 -0
- package/dist/collection/components/pf-tab/pf-tab.js.map +1 -0
- package/dist/collection/components/pf-tab-panel/pf-tab-panel.css +15 -0
- package/dist/collection/components/pf-tab-panel/pf-tab-panel.js +95 -0
- package/dist/collection/components/pf-tab-panel/pf-tab-panel.js.map +1 -0
- package/dist/collection/components/pf-table/pf-table.css +86 -0
- package/dist/collection/components/pf-table/pf-table.js +353 -0
- package/dist/collection/components/pf-table/pf-table.js.map +1 -0
- package/dist/collection/components/pf-table-cell/pf-table-cell.css +77 -0
- package/dist/collection/components/pf-table-cell/pf-table-cell.js +226 -0
- package/dist/collection/components/pf-table-cell/pf-table-cell.js.map +1 -0
- package/dist/collection/components/pf-table-row/pf-table-row.css +21 -0
- package/dist/collection/components/pf-table-row/pf-table-row.js +131 -0
- package/dist/collection/components/pf-table-row/pf-table-row.js.map +1 -0
- package/dist/collection/components/pf-tabs/pf-tabs.css +108 -0
- package/dist/collection/components/pf-tabs/pf-tabs.js +499 -0
- package/dist/collection/components/pf-tabs/pf-tabs.js.map +1 -0
- package/dist/collection/components/pf-tag/pf-tag.css +71 -0
- package/dist/collection/components/pf-tag/pf-tag.js +128 -0
- package/dist/collection/components/pf-tag/pf-tag.js.map +1 -0
- package/dist/collection/components/pf-tag-input/pf-tag-input.css +80 -0
- package/dist/collection/components/pf-tag-input/pf-tag-input.js +533 -0
- package/dist/collection/components/pf-tag-input/pf-tag-input.js.map +1 -0
- package/dist/collection/components/pf-textarea/pf-textarea.css +70 -0
- package/dist/collection/components/pf-textarea/pf-textarea.js +432 -0
- package/dist/collection/components/pf-textarea/pf-textarea.js.map +1 -0
- package/dist/collection/components/pf-time-picker/pf-time-picker.css +151 -0
- package/dist/collection/components/pf-time-picker/pf-time-picker.js +613 -0
- package/dist/collection/components/pf-time-picker/pf-time-picker.js.map +1 -0
- package/dist/collection/components/pf-timeline/pf-timeline.css +13 -0
- package/dist/collection/components/pf-timeline/pf-timeline.js +109 -0
- package/dist/collection/components/pf-timeline/pf-timeline.js.map +1 -0
- package/dist/collection/components/pf-timeline-item/pf-timeline-item.css +118 -0
- package/dist/collection/components/pf-timeline-item/pf-timeline-item.js +115 -0
- package/dist/collection/components/pf-timeline-item/pf-timeline-item.js.map +1 -0
- package/dist/collection/components/pf-toaster/pf-toaster.css +56 -0
- package/dist/collection/components/pf-toaster/pf-toaster.js +255 -0
- package/dist/collection/components/pf-toaster/pf-toaster.js.map +1 -0
- package/dist/collection/components/pf-toolbar/pf-toolbar.css +23 -0
- package/dist/collection/components/pf-toolbar/pf-toolbar.js +131 -0
- package/dist/collection/components/pf-toolbar/pf-toolbar.js.map +1 -0
- package/dist/collection/components/pf-toolbar-separator/pf-toolbar-separator.css +19 -0
- package/dist/collection/components/pf-toolbar-separator/pf-toolbar-separator.js +59 -0
- package/dist/collection/components/pf-toolbar-separator/pf-toolbar-separator.js.map +1 -0
- package/dist/collection/components/pf-tooltip/pf-tooltip.css +51 -0
- package/dist/collection/components/pf-tooltip/pf-tooltip.js +323 -0
- package/dist/collection/components/pf-tooltip/pf-tooltip.js.map +1 -0
- package/dist/collection/components/pf-tree-item/pf-tree-item.css +115 -0
- package/dist/collection/components/pf-tree-item/pf-tree-item.js +315 -0
- package/dist/collection/components/pf-tree-item/pf-tree-item.js.map +1 -0
- package/dist/collection/components/pf-tree-view/pf-tree-view.css +26 -0
- package/dist/collection/components/pf-tree-view/pf-tree-view.js +426 -0
- package/dist/collection/components/pf-tree-view/pf-tree-view.js.map +1 -0
- package/dist/collection/components/pf-utility-button/pf-utility-button.css +100 -0
- package/dist/collection/components/pf-utility-button/pf-utility-button.js +199 -0
- package/dist/collection/components/pf-utility-button/pf-utility-button.js.map +1 -0
- package/dist/collection/components/pf-video-player/pf-video-player.css +77 -0
- package/dist/collection/components/pf-video-player/pf-video-player.js +415 -0
- package/dist/collection/components/pf-video-player/pf-video-player.js.map +1 -0
- package/dist/collection/components/pf-visually-hidden/pf-visually-hidden.css +42 -0
- package/dist/collection/components/pf-visually-hidden/pf-visually-hidden.js +60 -0
- package/dist/collection/components/pf-visually-hidden/pf-visually-hidden.js.map +1 -0
- package/dist/collection/form-validity.js +31 -0
- package/dist/collection/form-validity.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/place-popover.js +22 -0
- package/dist/collection/place-popover.js.map +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-BA6CMosJ.js +2 -0
- package/dist/components/p-BA6CMosJ.js.map +1 -0
- package/dist/components/p-Bb-s2aqK.js +2 -0
- package/dist/components/p-Bb-s2aqK.js.map +1 -0
- package/dist/components/p-BmcsJLdy.js +2 -0
- package/dist/components/p-BmcsJLdy.js.map +1 -0
- package/dist/components/p-C-VLyxRR.js +2 -0
- package/dist/components/p-C-VLyxRR.js.map +1 -0
- package/dist/components/p-C4aE66tt.js +2 -0
- package/dist/components/p-C4aE66tt.js.map +1 -0
- package/dist/components/p-C9jNMqLs.js +2 -0
- package/dist/components/p-C9jNMqLs.js.map +1 -0
- package/dist/components/p-CAz7-p8y.js +2 -0
- package/dist/components/p-CAz7-p8y.js.map +1 -0
- package/dist/components/p-CC7AyfOt.js +2 -0
- package/dist/components/p-CC7AyfOt.js.map +1 -0
- package/dist/components/p-COAc4ZDB.js +2 -0
- package/dist/components/p-COAc4ZDB.js.map +1 -0
- package/dist/components/p-CSsYpnzu.js +2 -0
- package/dist/components/p-CSsYpnzu.js.map +1 -0
- package/dist/components/p-CkFjPRTe.js +7 -0
- package/dist/components/p-CkFjPRTe.js.map +1 -0
- package/dist/components/p-ClI1g7kx.js +2 -0
- package/dist/components/p-ClI1g7kx.js.map +1 -0
- package/dist/components/p-CmX-kVk-.js +2 -0
- package/dist/components/p-CmX-kVk-.js.map +1 -0
- package/dist/components/p-Cr6IXrUk.js +2 -0
- package/dist/components/p-Cr6IXrUk.js.map +1 -0
- package/dist/components/p-Cta76kgc.js +2 -0
- package/dist/components/p-Cta76kgc.js.map +1 -0
- package/dist/components/p-DSXauhXX.js +2 -0
- package/dist/components/p-DSXauhXX.js.map +1 -0
- package/dist/components/p-DToIJg5W.js +2 -0
- package/dist/components/p-DToIJg5W.js.map +1 -0
- package/dist/components/p-DVK0sUX2.js +2 -0
- package/dist/components/p-DVK0sUX2.js.map +1 -0
- package/dist/components/p-DfpCerXM.js +2 -0
- package/dist/components/p-DfpCerXM.js.map +1 -0
- package/dist/components/p-DhgtpS36.js +2 -0
- package/dist/components/p-DhgtpS36.js.map +1 -0
- package/dist/components/p-DkBJMi_M.js +2 -0
- package/dist/components/p-DkBJMi_M.js.map +1 -0
- package/dist/components/p-Dkd7BUB5.js +2 -0
- package/dist/components/p-Dkd7BUB5.js.map +1 -0
- package/dist/components/p-E7EWeR1F.js +2 -0
- package/dist/components/p-E7EWeR1F.js.map +1 -0
- package/dist/components/p-Fiuz9ck7.js +2 -0
- package/dist/components/p-Fiuz9ck7.js.map +1 -0
- package/dist/components/p-g4FlTDZx.js +2 -0
- package/dist/components/p-g4FlTDZx.js.map +1 -0
- package/dist/components/pf-accordion-item.d.ts +11 -0
- package/dist/components/pf-accordion-item.js +2 -0
- package/dist/components/pf-accordion-item.js.map +1 -0
- package/dist/components/pf-accordion.d.ts +11 -0
- package/dist/components/pf-accordion.js +2 -0
- package/dist/components/pf-accordion.js.map +1 -0
- package/dist/components/pf-alert.d.ts +11 -0
- package/dist/components/pf-alert.js +2 -0
- package/dist/components/pf-alert.js.map +1 -0
- package/dist/components/pf-avatar-group.d.ts +11 -0
- package/dist/components/pf-avatar-group.js +2 -0
- package/dist/components/pf-avatar-group.js.map +1 -0
- package/dist/components/pf-avatar.d.ts +11 -0
- package/dist/components/pf-avatar.js +2 -0
- package/dist/components/pf-avatar.js.map +1 -0
- package/dist/components/pf-badge-group.d.ts +11 -0
- package/dist/components/pf-badge-group.js +2 -0
- package/dist/components/pf-badge-group.js.map +1 -0
- package/dist/components/pf-badge.d.ts +11 -0
- package/dist/components/pf-badge.js +2 -0
- package/dist/components/pf-badge.js.map +1 -0
- package/dist/components/pf-bar-chart.d.ts +11 -0
- package/dist/components/pf-bar-chart.js +2 -0
- package/dist/components/pf-bar-chart.js.map +1 -0
- package/dist/components/pf-breadcrumb.d.ts +11 -0
- package/dist/components/pf-breadcrumb.js +2 -0
- package/dist/components/pf-breadcrumb.js.map +1 -0
- package/dist/components/pf-breadcrumbs.d.ts +11 -0
- package/dist/components/pf-breadcrumbs.js +2 -0
- package/dist/components/pf-breadcrumbs.js.map +1 -0
- package/dist/components/pf-button-group-item.d.ts +11 -0
- package/dist/components/pf-button-group-item.js +2 -0
- package/dist/components/pf-button-group-item.js.map +1 -0
- package/dist/components/pf-button-group.d.ts +11 -0
- package/dist/components/pf-button-group.js +2 -0
- package/dist/components/pf-button-group.js.map +1 -0
- package/dist/components/pf-button.d.ts +11 -0
- package/dist/components/pf-button.js +2 -0
- package/dist/components/pf-button.js.map +1 -0
- package/dist/components/pf-calendar.d.ts +11 -0
- package/dist/components/pf-calendar.js +2 -0
- package/dist/components/pf-calendar.js.map +1 -0
- package/dist/components/pf-card-content.d.ts +11 -0
- package/dist/components/pf-card-content.js +2 -0
- package/dist/components/pf-card-content.js.map +1 -0
- package/dist/components/pf-card-footer.d.ts +11 -0
- package/dist/components/pf-card-footer.js +2 -0
- package/dist/components/pf-card-footer.js.map +1 -0
- package/dist/components/pf-card-header.d.ts +11 -0
- package/dist/components/pf-card-header.js +2 -0
- package/dist/components/pf-card-header.js.map +1 -0
- package/dist/components/pf-card.d.ts +11 -0
- package/dist/components/pf-card.js +2 -0
- package/dist/components/pf-card.js.map +1 -0
- package/dist/components/pf-carousel-slide.d.ts +11 -0
- package/dist/components/pf-carousel-slide.js +2 -0
- package/dist/components/pf-carousel-slide.js.map +1 -0
- package/dist/components/pf-carousel.d.ts +11 -0
- package/dist/components/pf-carousel.js +2 -0
- package/dist/components/pf-carousel.js.map +1 -0
- package/dist/components/pf-chart-series.d.ts +11 -0
- package/dist/components/pf-chart-series.js +2 -0
- package/dist/components/pf-chart-series.js.map +1 -0
- package/dist/components/pf-checkbox.d.ts +11 -0
- package/dist/components/pf-checkbox.js +2 -0
- package/dist/components/pf-checkbox.js.map +1 -0
- package/dist/components/pf-code-snippet.d.ts +11 -0
- package/dist/components/pf-code-snippet.js +2 -0
- package/dist/components/pf-code-snippet.js.map +1 -0
- package/dist/components/pf-collapsible.d.ts +11 -0
- package/dist/components/pf-collapsible.js +2 -0
- package/dist/components/pf-collapsible.js.map +1 -0
- package/dist/components/pf-combobox.d.ts +11 -0
- package/dist/components/pf-combobox.js +2 -0
- package/dist/components/pf-combobox.js.map +1 -0
- package/dist/components/pf-command-group.d.ts +11 -0
- package/dist/components/pf-command-group.js +2 -0
- package/dist/components/pf-command-group.js.map +1 -0
- package/dist/components/pf-command-item.d.ts +11 -0
- package/dist/components/pf-command-item.js +2 -0
- package/dist/components/pf-command-item.js.map +1 -0
- package/dist/components/pf-command-palette.d.ts +11 -0
- package/dist/components/pf-command-palette.js +2 -0
- package/dist/components/pf-command-palette.js.map +1 -0
- package/dist/components/pf-content-divider.d.ts +11 -0
- package/dist/components/pf-content-divider.js +2 -0
- package/dist/components/pf-content-divider.js.map +1 -0
- package/dist/components/pf-context-menu.d.ts +11 -0
- package/dist/components/pf-context-menu.js +2 -0
- package/dist/components/pf-context-menu.js.map +1 -0
- package/dist/components/pf-credit-card.d.ts +11 -0
- package/dist/components/pf-credit-card.js +2 -0
- package/dist/components/pf-credit-card.js.map +1 -0
- package/dist/components/pf-date-picker.d.ts +11 -0
- package/dist/components/pf-date-picker.js +2 -0
- package/dist/components/pf-date-picker.js.map +1 -0
- package/dist/components/pf-date-range-picker.d.ts +11 -0
- package/dist/components/pf-date-range-picker.js +2 -0
- package/dist/components/pf-date-range-picker.js.map +1 -0
- package/dist/components/pf-dropdown.d.ts +11 -0
- package/dist/components/pf-dropdown.js +2 -0
- package/dist/components/pf-dropdown.js.map +1 -0
- package/dist/components/pf-empty-state.d.ts +11 -0
- package/dist/components/pf-empty-state.js +2 -0
- package/dist/components/pf-empty-state.js.map +1 -0
- package/dist/components/pf-file-uploader.d.ts +11 -0
- package/dist/components/pf-file-uploader.js +2 -0
- package/dist/components/pf-file-uploader.js.map +1 -0
- package/dist/components/pf-gauge-chart.d.ts +11 -0
- package/dist/components/pf-gauge-chart.js +2 -0
- package/dist/components/pf-gauge-chart.js.map +1 -0
- package/dist/components/pf-header-navigation.d.ts +11 -0
- package/dist/components/pf-header-navigation.js +2 -0
- package/dist/components/pf-header-navigation.js.map +1 -0
- package/dist/components/pf-heatmap.d.ts +11 -0
- package/dist/components/pf-heatmap.js +2 -0
- package/dist/components/pf-heatmap.js.map +1 -0
- package/dist/components/pf-icon.d.ts +11 -0
- package/dist/components/pf-icon.js +2 -0
- package/dist/components/pf-icon.js.map +1 -0
- package/dist/components/pf-inline-cta.d.ts +11 -0
- package/dist/components/pf-inline-cta.js +2 -0
- package/dist/components/pf-inline-cta.js.map +1 -0
- package/dist/components/pf-input.d.ts +11 -0
- package/dist/components/pf-input.js +2 -0
- package/dist/components/pf-input.js.map +1 -0
- package/dist/components/pf-kbd.d.ts +11 -0
- package/dist/components/pf-kbd.js +2 -0
- package/dist/components/pf-kbd.js.map +1 -0
- package/dist/components/pf-line-chart.d.ts +11 -0
- package/dist/components/pf-line-chart.js +2 -0
- package/dist/components/pf-line-chart.js.map +1 -0
- package/dist/components/pf-loading-dots.d.ts +11 -0
- package/dist/components/pf-loading-dots.js +2 -0
- package/dist/components/pf-loading-dots.js.map +1 -0
- package/dist/components/pf-loading-skeleton.d.ts +11 -0
- package/dist/components/pf-loading-skeleton.js +2 -0
- package/dist/components/pf-loading-skeleton.js.map +1 -0
- package/dist/components/pf-loading-spinner.d.ts +11 -0
- package/dist/components/pf-loading-spinner.js +2 -0
- package/dist/components/pf-loading-spinner.js.map +1 -0
- package/dist/components/pf-menu-item.d.ts +11 -0
- package/dist/components/pf-menu-item.js +2 -0
- package/dist/components/pf-menu-item.js.map +1 -0
- package/dist/components/pf-menu-separator.d.ts +11 -0
- package/dist/components/pf-menu-separator.js +2 -0
- package/dist/components/pf-menu-separator.js.map +1 -0
- package/dist/components/pf-metric-card.d.ts +11 -0
- package/dist/components/pf-metric-card.js +2 -0
- package/dist/components/pf-metric-card.js.map +1 -0
- package/dist/components/pf-metric-grid.d.ts +11 -0
- package/dist/components/pf-metric-grid.js +2 -0
- package/dist/components/pf-metric-grid.js.map +1 -0
- package/dist/components/pf-modal-body.d.ts +11 -0
- package/dist/components/pf-modal-body.js +2 -0
- package/dist/components/pf-modal-body.js.map +1 -0
- package/dist/components/pf-modal-footer.d.ts +11 -0
- package/dist/components/pf-modal-footer.js +2 -0
- package/dist/components/pf-modal-footer.js.map +1 -0
- package/dist/components/pf-modal-header.d.ts +11 -0
- package/dist/components/pf-modal-header.js +2 -0
- package/dist/components/pf-modal-header.js.map +1 -0
- package/dist/components/pf-modal.d.ts +11 -0
- package/dist/components/pf-modal.js +2 -0
- package/dist/components/pf-modal.js.map +1 -0
- package/dist/components/pf-multi-select.d.ts +11 -0
- package/dist/components/pf-multi-select.js +2 -0
- package/dist/components/pf-multi-select.js.map +1 -0
- package/dist/components/pf-nav-item.d.ts +11 -0
- package/dist/components/pf-nav-item.js +2 -0
- package/dist/components/pf-nav-item.js.map +1 -0
- package/dist/components/pf-nav-section.d.ts +11 -0
- package/dist/components/pf-nav-section.js +2 -0
- package/dist/components/pf-nav-section.js.map +1 -0
- package/dist/components/pf-notification.d.ts +11 -0
- package/dist/components/pf-notification.js +2 -0
- package/dist/components/pf-notification.js.map +1 -0
- package/dist/components/pf-number-input.d.ts +11 -0
- package/dist/components/pf-number-input.js +2 -0
- package/dist/components/pf-number-input.js.map +1 -0
- package/dist/components/pf-option.d.ts +11 -0
- package/dist/components/pf-option.js +2 -0
- package/dist/components/pf-option.js.map +1 -0
- package/dist/components/pf-page-header.d.ts +11 -0
- package/dist/components/pf-page-header.js +2 -0
- package/dist/components/pf-page-header.js.map +1 -0
- package/dist/components/pf-pagination.d.ts +11 -0
- package/dist/components/pf-pagination.js +2 -0
- package/dist/components/pf-pagination.js.map +1 -0
- package/dist/components/pf-pie-chart.d.ts +11 -0
- package/dist/components/pf-pie-chart.js +2 -0
- package/dist/components/pf-pie-chart.js.map +1 -0
- package/dist/components/pf-pie-slice.d.ts +11 -0
- package/dist/components/pf-pie-slice.js +2 -0
- package/dist/components/pf-pie-slice.js.map +1 -0
- package/dist/components/pf-popover.d.ts +11 -0
- package/dist/components/pf-popover.js +2 -0
- package/dist/components/pf-popover.js.map +1 -0
- package/dist/components/pf-progress-bar.d.ts +11 -0
- package/dist/components/pf-progress-bar.js +2 -0
- package/dist/components/pf-progress-bar.js.map +1 -0
- package/dist/components/pf-progress-circle.d.ts +11 -0
- package/dist/components/pf-progress-circle.js +2 -0
- package/dist/components/pf-progress-circle.js.map +1 -0
- package/dist/components/pf-progress-step.d.ts +11 -0
- package/dist/components/pf-progress-step.js +2 -0
- package/dist/components/pf-progress-step.js.map +1 -0
- package/dist/components/pf-progress-steps.d.ts +11 -0
- package/dist/components/pf-progress-steps.js +2 -0
- package/dist/components/pf-progress-steps.js.map +1 -0
- package/dist/components/pf-radar-axis.d.ts +11 -0
- package/dist/components/pf-radar-axis.js +2 -0
- package/dist/components/pf-radar-axis.js.map +1 -0
- package/dist/components/pf-radar-chart.d.ts +11 -0
- package/dist/components/pf-radar-chart.js +2 -0
- package/dist/components/pf-radar-chart.js.map +1 -0
- package/dist/components/pf-radio-button.d.ts +11 -0
- package/dist/components/pf-radio-button.js +2 -0
- package/dist/components/pf-radio-button.js.map +1 -0
- package/dist/components/pf-radio-group.d.ts +11 -0
- package/dist/components/pf-radio-group.js +2 -0
- package/dist/components/pf-radio-group.js.map +1 -0
- package/dist/components/pf-rating-badge.d.ts +11 -0
- package/dist/components/pf-rating-badge.js +2 -0
- package/dist/components/pf-rating-badge.js.map +1 -0
- package/dist/components/pf-rating-stars.d.ts +11 -0
- package/dist/components/pf-rating-stars.js +2 -0
- package/dist/components/pf-rating-stars.js.map +1 -0
- package/dist/components/pf-resizable.d.ts +11 -0
- package/dist/components/pf-resizable.js +2 -0
- package/dist/components/pf-resizable.js.map +1 -0
- package/dist/components/pf-rich-text-editor.d.ts +11 -0
- package/dist/components/pf-rich-text-editor.js +2 -0
- package/dist/components/pf-rich-text-editor.js.map +1 -0
- package/dist/components/pf-scroll-area.d.ts +11 -0
- package/dist/components/pf-scroll-area.js +2 -0
- package/dist/components/pf-scroll-area.js.map +1 -0
- package/dist/components/pf-section-footer.d.ts +11 -0
- package/dist/components/pf-section-footer.js +2 -0
- package/dist/components/pf-section-footer.js.map +1 -0
- package/dist/components/pf-section-header.d.ts +11 -0
- package/dist/components/pf-section-header.js +2 -0
- package/dist/components/pf-section-header.js.map +1 -0
- package/dist/components/pf-select.d.ts +11 -0
- package/dist/components/pf-select.js +2 -0
- package/dist/components/pf-select.js.map +1 -0
- package/dist/components/pf-sidebar-navigation.d.ts +11 -0
- package/dist/components/pf-sidebar-navigation.js +2 -0
- package/dist/components/pf-sidebar-navigation.js.map +1 -0
- package/dist/components/pf-slideout-menu.d.ts +11 -0
- package/dist/components/pf-slideout-menu.js +2 -0
- package/dist/components/pf-slideout-menu.js.map +1 -0
- package/dist/components/pf-slider.d.ts +11 -0
- package/dist/components/pf-slider.js +2 -0
- package/dist/components/pf-slider.js.map +1 -0
- package/dist/components/pf-sparkline.d.ts +11 -0
- package/dist/components/pf-sparkline.js +2 -0
- package/dist/components/pf-sparkline.js.map +1 -0
- package/dist/components/pf-switch.d.ts +11 -0
- package/dist/components/pf-switch.js +2 -0
- package/dist/components/pf-switch.js.map +1 -0
- package/dist/components/pf-tab-panel.d.ts +11 -0
- package/dist/components/pf-tab-panel.js +2 -0
- package/dist/components/pf-tab-panel.js.map +1 -0
- package/dist/components/pf-tab.d.ts +11 -0
- package/dist/components/pf-tab.js +2 -0
- package/dist/components/pf-tab.js.map +1 -0
- package/dist/components/pf-table-cell.d.ts +11 -0
- package/dist/components/pf-table-cell.js +2 -0
- package/dist/components/pf-table-cell.js.map +1 -0
- package/dist/components/pf-table-row.d.ts +11 -0
- package/dist/components/pf-table-row.js +2 -0
- package/dist/components/pf-table-row.js.map +1 -0
- package/dist/components/pf-table.d.ts +11 -0
- package/dist/components/pf-table.js +2 -0
- package/dist/components/pf-table.js.map +1 -0
- package/dist/components/pf-tabs.d.ts +11 -0
- package/dist/components/pf-tabs.js +2 -0
- package/dist/components/pf-tabs.js.map +1 -0
- package/dist/components/pf-tag-input.d.ts +11 -0
- package/dist/components/pf-tag-input.js +2 -0
- package/dist/components/pf-tag-input.js.map +1 -0
- package/dist/components/pf-tag.d.ts +11 -0
- package/dist/components/pf-tag.js +2 -0
- package/dist/components/pf-tag.js.map +1 -0
- package/dist/components/pf-textarea.d.ts +11 -0
- package/dist/components/pf-textarea.js +2 -0
- package/dist/components/pf-textarea.js.map +1 -0
- package/dist/components/pf-time-picker.d.ts +11 -0
- package/dist/components/pf-time-picker.js +2 -0
- package/dist/components/pf-time-picker.js.map +1 -0
- package/dist/components/pf-timeline-item.d.ts +11 -0
- package/dist/components/pf-timeline-item.js +2 -0
- package/dist/components/pf-timeline-item.js.map +1 -0
- package/dist/components/pf-timeline.d.ts +11 -0
- package/dist/components/pf-timeline.js +2 -0
- package/dist/components/pf-timeline.js.map +1 -0
- package/dist/components/pf-toaster.d.ts +11 -0
- package/dist/components/pf-toaster.js +2 -0
- package/dist/components/pf-toaster.js.map +1 -0
- package/dist/components/pf-toolbar-separator.d.ts +11 -0
- package/dist/components/pf-toolbar-separator.js +2 -0
- package/dist/components/pf-toolbar-separator.js.map +1 -0
- package/dist/components/pf-toolbar.d.ts +11 -0
- package/dist/components/pf-toolbar.js +2 -0
- package/dist/components/pf-toolbar.js.map +1 -0
- package/dist/components/pf-tooltip.d.ts +11 -0
- package/dist/components/pf-tooltip.js +2 -0
- package/dist/components/pf-tooltip.js.map +1 -0
- package/dist/components/pf-tree-item.d.ts +11 -0
- package/dist/components/pf-tree-item.js +2 -0
- package/dist/components/pf-tree-item.js.map +1 -0
- package/dist/components/pf-tree-view.d.ts +11 -0
- package/dist/components/pf-tree-view.js +2 -0
- package/dist/components/pf-tree-view.js.map +1 -0
- package/dist/components/pf-utility-button.d.ts +11 -0
- package/dist/components/pf-utility-button.js +2 -0
- package/dist/components/pf-utility-button.js.map +1 -0
- package/dist/components/pf-video-player.d.ts +11 -0
- package/dist/components/pf-video-player.js +2 -0
- package/dist/components/pf-video-player.js.map +1 -0
- package/dist/components/pf-visually-hidden.d.ts +11 -0
- package/dist/components/pf-visually-hidden.js +2 -0
- package/dist/components/pf-visually-hidden.js.map +1 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +26352 -0
- package/dist/elements.json +9959 -0
- package/dist/esm/aria-DfpCerXM.js +22 -0
- package/dist/esm/aria-DfpCerXM.js.map +1 -0
- package/dist/esm/cartesian-rMXGMSEx.js +184 -0
- package/dist/esm/cartesian-rMXGMSEx.js.map +1 -0
- package/dist/esm/command-Dkd7BUB5.js +39 -0
- package/dist/esm/command-Dkd7BUB5.js.map +1 -0
- package/dist/esm/date-C9jNMqLs.js +154 -0
- package/dist/esm/date-C9jNMqLs.js.map +1 -0
- package/dist/esm/form-validity-Cr6IXrUk.js +35 -0
- package/dist/esm/form-validity-Cr6IXrUk.js.map +1 -0
- package/dist/esm/icons-CCln56Fj.js +75 -0
- package/dist/esm/icons-CCln56Fj.js.map +1 -0
- package/dist/esm/index-Bm6UxEit.js +2279 -0
- package/dist/esm/index-Bm6UxEit.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/keys-g4FlTDZx.js +17 -0
- package/dist/esm/keys-g4FlTDZx.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/motion-Cta76kgc.js +43 -0
- package/dist/esm/motion-Cta76kgc.js.map +1 -0
- package/dist/esm/nav-DToIJg5W.js +25 -0
- package/dist/esm/nav-DToIJg5W.js.map +1 -0
- package/dist/esm/navigation-CAz7-p8y.js +32 -0
- package/dist/esm/navigation-CAz7-p8y.js.map +1 -0
- package/dist/esm/number-field-DSXauhXX.js +70 -0
- package/dist/esm/number-field-DSXauhXX.js.map +1 -0
- package/dist/esm/pf-accordion-item.entry.js +60 -0
- package/dist/esm/pf-accordion-item.entry.js.map +1 -0
- package/dist/esm/pf-accordion.entry.js +144 -0
- package/dist/esm/pf-accordion.entry.js.map +1 -0
- package/dist/esm/pf-alert.entry.js +65 -0
- package/dist/esm/pf-alert.entry.js.map +1 -0
- package/dist/esm/pf-avatar-group.entry.js +118 -0
- package/dist/esm/pf-avatar-group.entry.js.map +1 -0
- package/dist/esm/pf-avatar.entry.js +28 -0
- package/dist/esm/pf-avatar.entry.js.map +1 -0
- package/dist/esm/pf-badge-group.entry.js +34 -0
- package/dist/esm/pf-badge-group.entry.js.map +1 -0
- package/dist/esm/pf-badge.entry.js +20 -0
- package/dist/esm/pf-badge.entry.js.map +1 -0
- package/dist/esm/pf-bar-chart.entry.js +110 -0
- package/dist/esm/pf-bar-chart.entry.js.map +1 -0
- package/dist/esm/pf-breadcrumb.entry.js +41 -0
- package/dist/esm/pf-breadcrumb.entry.js.map +1 -0
- package/dist/esm/pf-breadcrumbs.entry.js +94 -0
- package/dist/esm/pf-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/pf-button-group-item.entry.js +49 -0
- package/dist/esm/pf-button-group-item.entry.js.map +1 -0
- package/dist/esm/pf-button-group.entry.js +100 -0
- package/dist/esm/pf-button-group.entry.js.map +1 -0
- package/dist/esm/pf-button.entry.js +41 -0
- package/dist/esm/pf-button.entry.js.map +1 -0
- package/dist/esm/pf-calendar.entry.js +220 -0
- package/dist/esm/pf-calendar.entry.js.map +1 -0
- package/dist/esm/pf-card-content.entry.js +18 -0
- package/dist/esm/pf-card-content.entry.js.map +1 -0
- package/dist/esm/pf-card-footer.entry.js +18 -0
- package/dist/esm/pf-card-footer.entry.js.map +1 -0
- package/dist/esm/pf-card-header.entry.js +18 -0
- package/dist/esm/pf-card-header.entry.js.map +1 -0
- package/dist/esm/pf-card.entry.js +18 -0
- package/dist/esm/pf-card.entry.js.map +1 -0
- package/dist/esm/pf-carousel-slide.entry.js +31 -0
- package/dist/esm/pf-carousel-slide.entry.js.map +1 -0
- package/dist/esm/pf-carousel.entry.js +168 -0
- package/dist/esm/pf-carousel.entry.js.map +1 -0
- package/dist/esm/pf-chart-series.entry.js +31 -0
- package/dist/esm/pf-chart-series.entry.js.map +1 -0
- package/dist/esm/pf-checkbox.entry.js +108 -0
- package/dist/esm/pf-checkbox.entry.js.map +1 -0
- package/dist/esm/pf-code-snippet.entry.js +155 -0
- package/dist/esm/pf-code-snippet.entry.js.map +1 -0
- package/dist/esm/pf-collapsible.entry.js +74 -0
- package/dist/esm/pf-collapsible.entry.js.map +1 -0
- package/dist/esm/pf-combobox.entry.js +337 -0
- package/dist/esm/pf-combobox.entry.js.map +1 -0
- package/dist/esm/pf-command-group.entry.js +20 -0
- package/dist/esm/pf-command-group.entry.js.map +1 -0
- package/dist/esm/pf-command-item.entry.js +48 -0
- package/dist/esm/pf-command-item.entry.js.map +1 -0
- package/dist/esm/pf-command-palette.entry.js +271 -0
- package/dist/esm/pf-command-palette.entry.js.map +1 -0
- package/dist/esm/pf-content-divider.entry.js +53 -0
- package/dist/esm/pf-content-divider.entry.js.map +1 -0
- package/dist/esm/pf-context-menu.entry.js +157 -0
- package/dist/esm/pf-context-menu.entry.js.map +1 -0
- package/dist/esm/pf-credit-card.entry.js +38 -0
- package/dist/esm/pf-credit-card.entry.js.map +1 -0
- package/dist/esm/pf-date-picker.entry.js +239 -0
- package/dist/esm/pf-date-picker.entry.js.map +1 -0
- package/dist/esm/pf-date-range-picker.entry.js +474 -0
- package/dist/esm/pf-date-range-picker.entry.js.map +1 -0
- package/dist/esm/pf-dropdown.entry.js +181 -0
- package/dist/esm/pf-dropdown.entry.js.map +1 -0
- package/dist/esm/pf-empty-state.entry.js +53 -0
- package/dist/esm/pf-empty-state.entry.js.map +1 -0
- package/dist/esm/pf-file-uploader.entry.js +310 -0
- package/dist/esm/pf-file-uploader.entry.js.map +1 -0
- package/dist/esm/pf-gauge-chart.entry.js +39 -0
- package/dist/esm/pf-gauge-chart.entry.js.map +1 -0
- package/dist/esm/pf-header-navigation.entry.js +75 -0
- package/dist/esm/pf-header-navigation.entry.js.map +1 -0
- package/dist/esm/pf-heatmap.entry.js +250 -0
- package/dist/esm/pf-heatmap.entry.js.map +1 -0
- package/dist/esm/pf-icon.entry.js +325 -0
- package/dist/esm/pf-icon.entry.js.map +1 -0
- package/dist/esm/pf-inline-cta.entry.js +84 -0
- package/dist/esm/pf-inline-cta.entry.js.map +1 -0
- package/dist/esm/pf-input.entry.js +120 -0
- package/dist/esm/pf-input.entry.js.map +1 -0
- package/dist/esm/pf-kbd.entry.js +25 -0
- package/dist/esm/pf-kbd.entry.js.map +1 -0
- package/dist/esm/pf-line-chart.entry.js +115 -0
- package/dist/esm/pf-line-chart.entry.js.map +1 -0
- package/dist/esm/pf-loading-dots.entry.js +22 -0
- package/dist/esm/pf-loading-dots.entry.js.map +1 -0
- package/dist/esm/pf-loading-skeleton.entry.js +41 -0
- package/dist/esm/pf-loading-skeleton.entry.js.map +1 -0
- package/dist/esm/pf-loading-spinner.entry.js +28 -0
- package/dist/esm/pf-loading-spinner.entry.js.map +1 -0
- package/dist/esm/pf-menu-item.entry.js +55 -0
- package/dist/esm/pf-menu-item.entry.js.map +1 -0
- package/dist/esm/pf-menu-separator.entry.js +18 -0
- package/dist/esm/pf-menu-separator.entry.js.map +1 -0
- package/dist/esm/pf-metric-card.entry.js +52 -0
- package/dist/esm/pf-metric-card.entry.js.map +1 -0
- package/dist/esm/pf-metric-grid.entry.js +18 -0
- package/dist/esm/pf-metric-grid.entry.js.map +1 -0
- package/dist/esm/pf-modal-body.entry.js +18 -0
- package/dist/esm/pf-modal-body.entry.js.map +1 -0
- package/dist/esm/pf-modal-footer.entry.js +18 -0
- package/dist/esm/pf-modal-footer.entry.js.map +1 -0
- package/dist/esm/pf-modal-header.entry.js +18 -0
- package/dist/esm/pf-modal-header.entry.js.map +1 -0
- package/dist/esm/pf-modal.entry.js +139 -0
- package/dist/esm/pf-modal.entry.js.map +1 -0
- package/dist/esm/pf-multi-select.entry.js +314 -0
- package/dist/esm/pf-multi-select.entry.js.map +1 -0
- package/dist/esm/pf-nav-item.entry.js +56 -0
- package/dist/esm/pf-nav-item.entry.js.map +1 -0
- package/dist/esm/pf-nav-section.entry.js +52 -0
- package/dist/esm/pf-nav-section.entry.js.map +1 -0
- package/dist/esm/pf-notification.entry.js +66 -0
- package/dist/esm/pf-notification.entry.js.map +1 -0
- package/dist/esm/pf-number-input.entry.js +190 -0
- package/dist/esm/pf-number-input.entry.js.map +1 -0
- package/dist/esm/pf-option.entry.js +48 -0
- package/dist/esm/pf-option.entry.js.map +1 -0
- package/dist/esm/pf-page-header.entry.js +33 -0
- package/dist/esm/pf-page-header.entry.js.map +1 -0
- package/dist/esm/pf-pagination.entry.js +111 -0
- package/dist/esm/pf-pagination.entry.js.map +1 -0
- package/dist/esm/pf-pie-chart.entry.js +92 -0
- package/dist/esm/pf-pie-chart.entry.js.map +1 -0
- package/dist/esm/pf-pie-slice.entry.js +34 -0
- package/dist/esm/pf-pie-slice.entry.js.map +1 -0
- package/dist/esm/pf-popover.entry.js +155 -0
- package/dist/esm/pf-popover.entry.js.map +1 -0
- package/dist/esm/pf-progress-bar.entry.js +30 -0
- package/dist/esm/pf-progress-bar.entry.js.map +1 -0
- package/dist/esm/pf-progress-circle.entry.js +38 -0
- package/dist/esm/pf-progress-circle.entry.js.map +1 -0
- package/dist/esm/pf-progress-step.entry.js +40 -0
- package/dist/esm/pf-progress-step.entry.js.map +1 -0
- package/dist/esm/pf-progress-steps.entry.js +97 -0
- package/dist/esm/pf-progress-steps.entry.js.map +1 -0
- package/dist/esm/pf-radar-axis.entry.js +31 -0
- package/dist/esm/pf-radar-axis.entry.js.map +1 -0
- package/dist/esm/pf-radar-chart.entry.js +183 -0
- package/dist/esm/pf-radar-chart.entry.js.map +1 -0
- package/dist/esm/pf-radio-button.entry.js +71 -0
- package/dist/esm/pf-radio-button.entry.js.map +1 -0
- package/dist/esm/pf-radio-group.entry.js +172 -0
- package/dist/esm/pf-radio-group.entry.js.map +1 -0
- package/dist/esm/pf-rating-badge.entry.js +33 -0
- package/dist/esm/pf-rating-badge.entry.js.map +1 -0
- package/dist/esm/pf-rating-stars.entry.js +44 -0
- package/dist/esm/pf-rating-stars.entry.js.map +1 -0
- package/dist/esm/pf-resizable.entry.js +203 -0
- package/dist/esm/pf-resizable.entry.js.map +1 -0
- package/dist/esm/pf-rich-text-editor.entry.js +259 -0
- package/dist/esm/pf-rich-text-editor.entry.js.map +1 -0
- package/dist/esm/pf-scroll-area.entry.js +41 -0
- package/dist/esm/pf-scroll-area.entry.js.map +1 -0
- package/dist/esm/pf-section-footer.entry.js +39 -0
- package/dist/esm/pf-section-footer.entry.js.map +1 -0
- package/dist/esm/pf-section-header.entry.js +35 -0
- package/dist/esm/pf-section-header.entry.js.map +1 -0
- package/dist/esm/pf-select.entry.js +410 -0
- package/dist/esm/pf-select.entry.js.map +1 -0
- package/dist/esm/pf-sidebar-navigation.entry.js +101 -0
- package/dist/esm/pf-sidebar-navigation.entry.js.map +1 -0
- package/dist/esm/pf-slideout-menu.entry.js +153 -0
- package/dist/esm/pf-slideout-menu.entry.js.map +1 -0
- package/dist/esm/pf-slider.entry.js +123 -0
- package/dist/esm/pf-slider.entry.js.map +1 -0
- package/dist/esm/pf-sparkline.entry.js +121 -0
- package/dist/esm/pf-sparkline.entry.js.map +1 -0
- package/dist/esm/pf-switch.entry.js +108 -0
- package/dist/esm/pf-switch.entry.js.map +1 -0
- package/dist/esm/pf-tab-panel.entry.js +39 -0
- package/dist/esm/pf-tab-panel.entry.js.map +1 -0
- package/dist/esm/pf-tab.entry.js +94 -0
- package/dist/esm/pf-tab.entry.js.map +1 -0
- package/dist/esm/pf-table-cell.entry.js +48 -0
- package/dist/esm/pf-table-cell.entry.js.map +1 -0
- package/dist/esm/pf-table-row.entry.js +49 -0
- package/dist/esm/pf-table-row.entry.js.map +1 -0
- package/dist/esm/pf-table.entry.js +143 -0
- package/dist/esm/pf-table.entry.js.map +1 -0
- package/dist/esm/pf-tabs.entry.js +340 -0
- package/dist/esm/pf-tabs.entry.js.map +1 -0
- package/dist/esm/pf-tag-input.entry.js +197 -0
- package/dist/esm/pf-tag-input.entry.js.map +1 -0
- package/dist/esm/pf-tag.entry.js +30 -0
- package/dist/esm/pf-tag.entry.js.map +1 -0
- package/dist/esm/pf-textarea.entry.js +138 -0
- package/dist/esm/pf-textarea.entry.js.map +1 -0
- package/dist/esm/pf-time-picker.entry.js +326 -0
- package/dist/esm/pf-time-picker.entry.js.map +1 -0
- package/dist/esm/pf-timeline-item.entry.js +44 -0
- package/dist/esm/pf-timeline-item.entry.js.map +1 -0
- package/dist/esm/pf-timeline.entry.js +53 -0
- package/dist/esm/pf-timeline.entry.js.map +1 -0
- package/dist/esm/pf-toaster.entry.js +88 -0
- package/dist/esm/pf-toaster.entry.js.map +1 -0
- package/dist/esm/pf-toolbar-separator.entry.js +20 -0
- package/dist/esm/pf-toolbar-separator.entry.js.map +1 -0
- package/dist/esm/pf-toolbar.entry.js +73 -0
- package/dist/esm/pf-toolbar.entry.js.map +1 -0
- package/dist/esm/pf-tooltip.entry.js +177 -0
- package/dist/esm/pf-tooltip.entry.js.map +1 -0
- package/dist/esm/pf-tree-item.entry.js +79 -0
- package/dist/esm/pf-tree-item.entry.js.map +1 -0
- package/dist/esm/pf-tree-view.entry.js +340 -0
- package/dist/esm/pf-tree-view.entry.js.map +1 -0
- package/dist/esm/pf-utility-button.entry.js +54 -0
- package/dist/esm/pf-utility-button.entry.js.map +1 -0
- package/dist/esm/pf-video-player.entry.js +60 -0
- package/dist/esm/pf-video-player.entry.js.map +1 -0
- package/dist/esm/pf-visually-hidden.entry.js +23 -0
- package/dist/esm/pf-visually-hidden.entry.js.map +1 -0
- package/dist/esm/pie-COAc4ZDB.js +111 -0
- package/dist/esm/pie-COAc4ZDB.js.map +1 -0
- package/dist/esm/pitchfork.js +23 -0
- package/dist/esm/pitchfork.js.map +1 -0
- package/dist/esm/place-popover-CC7AyfOt.js +195 -0
- package/dist/esm/place-popover-CC7AyfOt.js.map +1 -0
- package/dist/esm/progress-BA6CMosJ.js +80 -0
- package/dist/esm/progress-BA6CMosJ.js.map +1 -0
- package/dist/esm/rating-DVK0sUX2.js +52 -0
- package/dist/esm/rating-DVK0sUX2.js.map +1 -0
- package/dist/esm/roving-BzRAGyFO.js +67 -0
- package/dist/esm/roving-BzRAGyFO.js.map +1 -0
- package/dist/esm/scroll-lock-C-VLyxRR.js +44 -0
- package/dist/esm/scroll-lock-C-VLyxRR.js.map +1 -0
- package/dist/esm/text-B8ulhYUJ.js +54 -0
- package/dist/esm/text-B8ulhYUJ.js.map +1 -0
- package/dist/esm/value-list-BmcsJLdy.js +100 -0
- package/dist/esm/value-list-BmcsJLdy.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/pitchfork/index.esm.js +2 -0
- package/dist/pitchfork/index.esm.js.map +1 -0
- package/dist/pitchfork/p-03db6bae.entry.js +2 -0
- package/dist/pitchfork/p-03db6bae.entry.js.map +1 -0
- package/dist/pitchfork/p-04869bdc.entry.js +2 -0
- package/dist/pitchfork/p-04869bdc.entry.js.map +1 -0
- package/dist/pitchfork/p-068baf6d.entry.js +2 -0
- package/dist/pitchfork/p-068baf6d.entry.js.map +1 -0
- package/dist/pitchfork/p-0bbec059.entry.js +2 -0
- package/dist/pitchfork/p-0bbec059.entry.js.map +1 -0
- package/dist/pitchfork/p-1133b2fa.entry.js +2 -0
- package/dist/pitchfork/p-1133b2fa.entry.js.map +1 -0
- package/dist/pitchfork/p-1bb6b456.entry.js +2 -0
- package/dist/pitchfork/p-1bb6b456.entry.js.map +1 -0
- package/dist/pitchfork/p-1bc87b8c.entry.js +2 -0
- package/dist/pitchfork/p-1bc87b8c.entry.js.map +1 -0
- package/dist/pitchfork/p-1dbea97f.entry.js +2 -0
- package/dist/pitchfork/p-1dbea97f.entry.js.map +1 -0
- package/dist/pitchfork/p-1e171d52.entry.js +2 -0
- package/dist/pitchfork/p-1e171d52.entry.js.map +1 -0
- package/dist/pitchfork/p-1e7e8d25.entry.js +2 -0
- package/dist/pitchfork/p-1e7e8d25.entry.js.map +1 -0
- package/dist/pitchfork/p-1fa3b37b.entry.js +2 -0
- package/dist/pitchfork/p-1fa3b37b.entry.js.map +1 -0
- package/dist/pitchfork/p-22c7e5b4.entry.js +2 -0
- package/dist/pitchfork/p-22c7e5b4.entry.js.map +1 -0
- package/dist/pitchfork/p-23b1be9b.entry.js +2 -0
- package/dist/pitchfork/p-23b1be9b.entry.js.map +1 -0
- package/dist/pitchfork/p-248bd301.entry.js +2 -0
- package/dist/pitchfork/p-248bd301.entry.js.map +1 -0
- package/dist/pitchfork/p-2577564c.entry.js +7 -0
- package/dist/pitchfork/p-2577564c.entry.js.map +1 -0
- package/dist/pitchfork/p-25d0a34b.entry.js +2 -0
- package/dist/pitchfork/p-25d0a34b.entry.js.map +1 -0
- package/dist/pitchfork/p-26e119df.entry.js +2 -0
- package/dist/pitchfork/p-26e119df.entry.js.map +1 -0
- package/dist/pitchfork/p-2798795f.entry.js +2 -0
- package/dist/pitchfork/p-2798795f.entry.js.map +1 -0
- package/dist/pitchfork/p-3133eb1a.entry.js +2 -0
- package/dist/pitchfork/p-3133eb1a.entry.js.map +1 -0
- package/dist/pitchfork/p-31e0fbc7.entry.js +2 -0
- package/dist/pitchfork/p-31e0fbc7.entry.js.map +1 -0
- package/dist/pitchfork/p-33857f80.entry.js +2 -0
- package/dist/pitchfork/p-33857f80.entry.js.map +1 -0
- package/dist/pitchfork/p-34f2df95.entry.js +2 -0
- package/dist/pitchfork/p-34f2df95.entry.js.map +1 -0
- package/dist/pitchfork/p-37ee290d.entry.js +2 -0
- package/dist/pitchfork/p-37ee290d.entry.js.map +1 -0
- package/dist/pitchfork/p-3843faa6.entry.js +2 -0
- package/dist/pitchfork/p-3843faa6.entry.js.map +1 -0
- package/dist/pitchfork/p-3cd7d421.entry.js +2 -0
- package/dist/pitchfork/p-3cd7d421.entry.js.map +1 -0
- package/dist/pitchfork/p-3fd3444b.entry.js +2 -0
- package/dist/pitchfork/p-3fd3444b.entry.js.map +1 -0
- package/dist/pitchfork/p-41d997d9.entry.js +2 -0
- package/dist/pitchfork/p-41d997d9.entry.js.map +1 -0
- package/dist/pitchfork/p-4217a92a.entry.js +2 -0
- package/dist/pitchfork/p-4217a92a.entry.js.map +1 -0
- package/dist/pitchfork/p-43c103bb.entry.js +2 -0
- package/dist/pitchfork/p-43c103bb.entry.js.map +1 -0
- package/dist/pitchfork/p-47cabc33.entry.js +2 -0
- package/dist/pitchfork/p-47cabc33.entry.js.map +1 -0
- package/dist/pitchfork/p-48b2d3f7.entry.js +2 -0
- package/dist/pitchfork/p-48b2d3f7.entry.js.map +1 -0
- package/dist/pitchfork/p-4959a556.entry.js +2 -0
- package/dist/pitchfork/p-4959a556.entry.js.map +1 -0
- package/dist/pitchfork/p-4b05851a.entry.js +2 -0
- package/dist/pitchfork/p-4b05851a.entry.js.map +1 -0
- package/dist/pitchfork/p-4b16ef92.entry.js +2 -0
- package/dist/pitchfork/p-4b16ef92.entry.js.map +1 -0
- package/dist/pitchfork/p-4b7c186f.entry.js +2 -0
- package/dist/pitchfork/p-4b7c186f.entry.js.map +1 -0
- package/dist/pitchfork/p-4df4eed8.entry.js +2 -0
- package/dist/pitchfork/p-4df4eed8.entry.js.map +1 -0
- package/dist/pitchfork/p-4e785310.entry.js +2 -0
- package/dist/pitchfork/p-4e785310.entry.js.map +1 -0
- package/dist/pitchfork/p-4e7c51e4.entry.js +2 -0
- package/dist/pitchfork/p-4e7c51e4.entry.js.map +1 -0
- package/dist/pitchfork/p-5064d2dd.entry.js +2 -0
- package/dist/pitchfork/p-5064d2dd.entry.js.map +1 -0
- package/dist/pitchfork/p-50ad12be.entry.js +2 -0
- package/dist/pitchfork/p-50ad12be.entry.js.map +1 -0
- package/dist/pitchfork/p-51528462.entry.js +2 -0
- package/dist/pitchfork/p-51528462.entry.js.map +1 -0
- package/dist/pitchfork/p-52eef7eb.entry.js +2 -0
- package/dist/pitchfork/p-52eef7eb.entry.js.map +1 -0
- package/dist/pitchfork/p-578db1a6.entry.js +2 -0
- package/dist/pitchfork/p-578db1a6.entry.js.map +1 -0
- package/dist/pitchfork/p-6066ce98.entry.js +2 -0
- package/dist/pitchfork/p-6066ce98.entry.js.map +1 -0
- package/dist/pitchfork/p-643f7e00.entry.js +2 -0
- package/dist/pitchfork/p-643f7e00.entry.js.map +1 -0
- package/dist/pitchfork/p-685f817b.entry.js +2 -0
- package/dist/pitchfork/p-685f817b.entry.js.map +1 -0
- package/dist/pitchfork/p-69d27f61.entry.js +2 -0
- package/dist/pitchfork/p-69d27f61.entry.js.map +1 -0
- package/dist/pitchfork/p-6cfacd82.entry.js +2 -0
- package/dist/pitchfork/p-6cfacd82.entry.js.map +1 -0
- package/dist/pitchfork/p-6d3c4094.entry.js +2 -0
- package/dist/pitchfork/p-6d3c4094.entry.js.map +1 -0
- package/dist/pitchfork/p-717b552a.entry.js +2 -0
- package/dist/pitchfork/p-717b552a.entry.js.map +1 -0
- package/dist/pitchfork/p-742f2cc4.entry.js +2 -0
- package/dist/pitchfork/p-742f2cc4.entry.js.map +1 -0
- package/dist/pitchfork/p-76f0f473.entry.js +2 -0
- package/dist/pitchfork/p-76f0f473.entry.js.map +1 -0
- package/dist/pitchfork/p-77168a0d.entry.js +2 -0
- package/dist/pitchfork/p-77168a0d.entry.js.map +1 -0
- package/dist/pitchfork/p-7e5ba1f9.entry.js +2 -0
- package/dist/pitchfork/p-7e5ba1f9.entry.js.map +1 -0
- package/dist/pitchfork/p-845c5252.entry.js +2 -0
- package/dist/pitchfork/p-845c5252.entry.js.map +1 -0
- package/dist/pitchfork/p-8718bb3a.entry.js +2 -0
- package/dist/pitchfork/p-8718bb3a.entry.js.map +1 -0
- package/dist/pitchfork/p-8a1e2ba8.entry.js +2 -0
- package/dist/pitchfork/p-8a1e2ba8.entry.js.map +1 -0
- package/dist/pitchfork/p-8e1a4b26.entry.js +2 -0
- package/dist/pitchfork/p-8e1a4b26.entry.js.map +1 -0
- package/dist/pitchfork/p-8e304481.entry.js +2 -0
- package/dist/pitchfork/p-8e304481.entry.js.map +1 -0
- package/dist/pitchfork/p-97dd4193.entry.js +2 -0
- package/dist/pitchfork/p-97dd4193.entry.js.map +1 -0
- package/dist/pitchfork/p-9d93b1ea.entry.js +2 -0
- package/dist/pitchfork/p-9d93b1ea.entry.js.map +1 -0
- package/dist/pitchfork/p-9dc1dd8a.entry.js +2 -0
- package/dist/pitchfork/p-9dc1dd8a.entry.js.map +1 -0
- package/dist/pitchfork/p-B8ulhYUJ.js +2 -0
- package/dist/pitchfork/p-B8ulhYUJ.js.map +1 -0
- package/dist/pitchfork/p-BA6CMosJ.js +2 -0
- package/dist/pitchfork/p-BA6CMosJ.js.map +1 -0
- package/dist/pitchfork/p-Bm6UxEit.js +3 -0
- package/dist/pitchfork/p-Bm6UxEit.js.map +1 -0
- package/dist/pitchfork/p-BmcsJLdy.js +2 -0
- package/dist/pitchfork/p-BmcsJLdy.js.map +1 -0
- package/dist/pitchfork/p-C-VLyxRR.js +2 -0
- package/dist/pitchfork/p-C-VLyxRR.js.map +1 -0
- package/dist/pitchfork/p-C9jNMqLs.js +2 -0
- package/dist/pitchfork/p-C9jNMqLs.js.map +1 -0
- package/dist/pitchfork/p-CAz7-p8y.js +2 -0
- package/dist/pitchfork/p-CAz7-p8y.js.map +1 -0
- package/dist/pitchfork/p-CC7AyfOt.js +2 -0
- package/dist/pitchfork/p-CC7AyfOt.js.map +1 -0
- package/dist/pitchfork/p-CCln56Fj.js +2 -0
- package/dist/pitchfork/p-CCln56Fj.js.map +1 -0
- package/dist/pitchfork/p-COAc4ZDB.js +2 -0
- package/dist/pitchfork/p-COAc4ZDB.js.map +1 -0
- package/dist/pitchfork/p-CmX-kVk-.js +2 -0
- package/dist/pitchfork/p-CmX-kVk-.js.map +1 -0
- package/dist/pitchfork/p-Cr6IXrUk.js +2 -0
- package/dist/pitchfork/p-Cr6IXrUk.js.map +1 -0
- package/dist/pitchfork/p-Cta76kgc.js +2 -0
- package/dist/pitchfork/p-Cta76kgc.js.map +1 -0
- package/dist/pitchfork/p-DSXauhXX.js +2 -0
- package/dist/pitchfork/p-DSXauhXX.js.map +1 -0
- package/dist/pitchfork/p-DToIJg5W.js +2 -0
- package/dist/pitchfork/p-DToIJg5W.js.map +1 -0
- package/dist/pitchfork/p-DVK0sUX2.js +2 -0
- package/dist/pitchfork/p-DVK0sUX2.js.map +1 -0
- package/dist/pitchfork/p-DfpCerXM.js +2 -0
- package/dist/pitchfork/p-DfpCerXM.js.map +1 -0
- package/dist/pitchfork/p-Dkd7BUB5.js +2 -0
- package/dist/pitchfork/p-Dkd7BUB5.js.map +1 -0
- package/dist/pitchfork/p-Fiuz9ck7.js +2 -0
- package/dist/pitchfork/p-Fiuz9ck7.js.map +1 -0
- package/dist/pitchfork/p-a1a7838d.entry.js +2 -0
- package/dist/pitchfork/p-a1a7838d.entry.js.map +1 -0
- package/dist/pitchfork/p-a24bf2bd.entry.js +2 -0
- package/dist/pitchfork/p-a24bf2bd.entry.js.map +1 -0
- package/dist/pitchfork/p-a4cc62e1.entry.js +2 -0
- package/dist/pitchfork/p-a4cc62e1.entry.js.map +1 -0
- package/dist/pitchfork/p-a4fad812.entry.js +2 -0
- package/dist/pitchfork/p-a4fad812.entry.js.map +1 -0
- package/dist/pitchfork/p-a5b5c09a.entry.js +2 -0
- package/dist/pitchfork/p-a5b5c09a.entry.js.map +1 -0
- package/dist/pitchfork/p-a7ce64b1.entry.js +2 -0
- package/dist/pitchfork/p-a7ce64b1.entry.js.map +1 -0
- package/dist/pitchfork/p-a864dae5.entry.js +2 -0
- package/dist/pitchfork/p-a864dae5.entry.js.map +1 -0
- package/dist/pitchfork/p-a9b77dbb.entry.js +2 -0
- package/dist/pitchfork/p-a9b77dbb.entry.js.map +1 -0
- package/dist/pitchfork/p-aa2acec3.entry.js +2 -0
- package/dist/pitchfork/p-aa2acec3.entry.js.map +1 -0
- package/dist/pitchfork/p-aa615fe9.entry.js +2 -0
- package/dist/pitchfork/p-aa615fe9.entry.js.map +1 -0
- package/dist/pitchfork/p-aa869013.entry.js +2 -0
- package/dist/pitchfork/p-aa869013.entry.js.map +1 -0
- package/dist/pitchfork/p-aac27e62.entry.js +2 -0
- package/dist/pitchfork/p-aac27e62.entry.js.map +1 -0
- package/dist/pitchfork/p-ac3fcb57.entry.js +2 -0
- package/dist/pitchfork/p-ac3fcb57.entry.js.map +1 -0
- package/dist/pitchfork/p-ad93b614.entry.js +2 -0
- package/dist/pitchfork/p-ad93b614.entry.js.map +1 -0
- package/dist/pitchfork/p-ae5fd08e.entry.js +2 -0
- package/dist/pitchfork/p-ae5fd08e.entry.js.map +1 -0
- package/dist/pitchfork/p-b26df5a0.entry.js +2 -0
- package/dist/pitchfork/p-b26df5a0.entry.js.map +1 -0
- package/dist/pitchfork/p-b2df1ecb.entry.js +2 -0
- package/dist/pitchfork/p-b2df1ecb.entry.js.map +1 -0
- package/dist/pitchfork/p-b442330b.entry.js +2 -0
- package/dist/pitchfork/p-b442330b.entry.js.map +1 -0
- package/dist/pitchfork/p-b4480baf.entry.js +2 -0
- package/dist/pitchfork/p-b4480baf.entry.js.map +1 -0
- package/dist/pitchfork/p-b4774cba.entry.js +2 -0
- package/dist/pitchfork/p-b4774cba.entry.js.map +1 -0
- package/dist/pitchfork/p-b6b18062.entry.js +2 -0
- package/dist/pitchfork/p-b6b18062.entry.js.map +1 -0
- package/dist/pitchfork/p-be2c6150.entry.js +2 -0
- package/dist/pitchfork/p-be2c6150.entry.js.map +1 -0
- package/dist/pitchfork/p-bf044fb5.entry.js +2 -0
- package/dist/pitchfork/p-bf044fb5.entry.js.map +1 -0
- package/dist/pitchfork/p-c07c5847.entry.js +2 -0
- package/dist/pitchfork/p-c07c5847.entry.js.map +1 -0
- package/dist/pitchfork/p-c6bdd9cd.entry.js +2 -0
- package/dist/pitchfork/p-c6bdd9cd.entry.js.map +1 -0
- package/dist/pitchfork/p-c82804d4.entry.js +2 -0
- package/dist/pitchfork/p-c82804d4.entry.js.map +1 -0
- package/dist/pitchfork/p-d0d2070b.entry.js +2 -0
- package/dist/pitchfork/p-d0d2070b.entry.js.map +1 -0
- package/dist/pitchfork/p-d248b027.entry.js +2 -0
- package/dist/pitchfork/p-d248b027.entry.js.map +1 -0
- package/dist/pitchfork/p-d4bbcba0.entry.js +2 -0
- package/dist/pitchfork/p-d4bbcba0.entry.js.map +1 -0
- package/dist/pitchfork/p-d6425298.entry.js +2 -0
- package/dist/pitchfork/p-d6425298.entry.js.map +1 -0
- package/dist/pitchfork/p-d7eb6335.entry.js +2 -0
- package/dist/pitchfork/p-d7eb6335.entry.js.map +1 -0
- package/dist/pitchfork/p-dcaaedeb.entry.js +2 -0
- package/dist/pitchfork/p-dcaaedeb.entry.js.map +1 -0
- package/dist/pitchfork/p-dd0e0d79.entry.js +2 -0
- package/dist/pitchfork/p-dd0e0d79.entry.js.map +1 -0
- package/dist/pitchfork/p-e882124b.entry.js +2 -0
- package/dist/pitchfork/p-e882124b.entry.js.map +1 -0
- package/dist/pitchfork/p-e944f504.entry.js +2 -0
- package/dist/pitchfork/p-e944f504.entry.js.map +1 -0
- package/dist/pitchfork/p-e9d767df.entry.js +2 -0
- package/dist/pitchfork/p-e9d767df.entry.js.map +1 -0
- package/dist/pitchfork/p-ea63c122.entry.js +2 -0
- package/dist/pitchfork/p-ea63c122.entry.js.map +1 -0
- package/dist/pitchfork/p-edb28479.entry.js +2 -0
- package/dist/pitchfork/p-edb28479.entry.js.map +1 -0
- package/dist/pitchfork/p-f0889512.entry.js +2 -0
- package/dist/pitchfork/p-f0889512.entry.js.map +1 -0
- package/dist/pitchfork/p-f3d80b42.entry.js +2 -0
- package/dist/pitchfork/p-f3d80b42.entry.js.map +1 -0
- package/dist/pitchfork/p-f5242cee.entry.js +2 -0
- package/dist/pitchfork/p-f5242cee.entry.js.map +1 -0
- package/dist/pitchfork/p-f689e353.entry.js +2 -0
- package/dist/pitchfork/p-f689e353.entry.js.map +1 -0
- package/dist/pitchfork/p-f855c9d4.entry.js +2 -0
- package/dist/pitchfork/p-f855c9d4.entry.js.map +1 -0
- package/dist/pitchfork/p-fa1302c7.entry.js +2 -0
- package/dist/pitchfork/p-fa1302c7.entry.js.map +1 -0
- package/dist/pitchfork/p-fd5a5ea1.entry.js +2 -0
- package/dist/pitchfork/p-fd5a5ea1.entry.js.map +1 -0
- package/dist/pitchfork/p-fe6f403c.entry.js +2 -0
- package/dist/pitchfork/p-fe6f403c.entry.js.map +1 -0
- package/dist/pitchfork/p-g4FlTDZx.js +2 -0
- package/dist/pitchfork/p-g4FlTDZx.js.map +1 -0
- package/dist/pitchfork/pitchfork.css +40 -0
- package/dist/pitchfork/pitchfork.esm.js +2 -0
- package/dist/pitchfork/pitchfork.esm.js.map +1 -0
- package/dist/types/components/pf-accordion/pf-accordion.d.ts +80 -0
- package/dist/types/components/pf-accordion-item/pf-accordion-item.d.ts +57 -0
- package/dist/types/components/pf-alert/pf-alert.d.ts +57 -0
- package/dist/types/components/pf-avatar/pf-avatar.d.ts +25 -0
- package/dist/types/components/pf-avatar-group/pf-avatar-group.d.ts +46 -0
- package/dist/types/components/pf-badge/pf-badge.d.ts +14 -0
- package/dist/types/components/pf-badge-group/pf-badge-group.d.ts +23 -0
- package/dist/types/components/pf-bar-chart/pf-bar-chart.d.ts +39 -0
- package/dist/types/components/pf-breadcrumb/pf-breadcrumb.d.ts +40 -0
- package/dist/types/components/pf-breadcrumbs/pf-breadcrumbs.d.ts +52 -0
- package/dist/types/components/pf-button/pf-button.d.ts +38 -0
- package/dist/types/components/pf-button-group/pf-button-group.d.ts +53 -0
- package/dist/types/components/pf-button-group-item/pf-button-group-item.d.ts +47 -0
- package/dist/types/components/pf-calendar/pf-calendar.d.ts +101 -0
- package/dist/types/components/pf-card/pf-card.d.ts +16 -0
- package/dist/types/components/pf-card-content/pf-card-content.d.ts +8 -0
- package/dist/types/components/pf-card-footer/pf-card-footer.d.ts +10 -0
- package/dist/types/components/pf-card-header/pf-card-header.d.ts +8 -0
- package/dist/types/components/pf-carousel/pf-carousel.d.ts +73 -0
- package/dist/types/components/pf-carousel-slide/pf-carousel-slide.d.ts +19 -0
- package/dist/types/components/pf-chart-series/pf-chart-series.d.ts +33 -0
- package/dist/types/components/pf-checkbox/pf-checkbox.d.ts +56 -0
- package/dist/types/components/pf-code-snippet/pf-code-snippet.d.ts +74 -0
- package/dist/types/components/pf-collapsible/pf-collapsible.d.ts +56 -0
- package/dist/types/components/pf-combobox/pf-combobox.d.ts +123 -0
- package/dist/types/components/pf-command-group/pf-command-group.d.ts +18 -0
- package/dist/types/components/pf-command-item/pf-command-item.d.ts +41 -0
- package/dist/types/components/pf-command-palette/pf-command-palette.d.ts +102 -0
- package/dist/types/components/pf-content-divider/pf-content-divider.d.ts +39 -0
- package/dist/types/components/pf-context-menu/pf-context-menu.d.ts +54 -0
- package/dist/types/components/pf-credit-card/pf-credit-card.d.ts +31 -0
- package/dist/types/components/pf-date-picker/pf-date-picker.d.ts +121 -0
- package/dist/types/components/pf-date-range-picker/pf-date-range-picker.d.ts +122 -0
- package/dist/types/components/pf-dropdown/pf-dropdown.d.ts +66 -0
- package/dist/types/components/pf-empty-state/pf-empty-state.d.ts +43 -0
- package/dist/types/components/pf-file-uploader/pf-file-uploader.d.ts +96 -0
- package/dist/types/components/pf-gauge-chart/pf-gauge-chart.d.ts +36 -0
- package/dist/types/components/pf-header-navigation/pf-header-navigation.d.ts +55 -0
- package/dist/types/components/pf-heatmap/pf-heatmap.d.ts +55 -0
- package/dist/types/components/pf-icon/bundled-icons.d.ts +3 -0
- package/dist/types/components/pf-icon/custom-icons.d.ts +3 -0
- package/dist/types/components/pf-icon/icon-names.d.ts +6 -0
- package/dist/types/components/pf-icon/pf-icon.d.ts +22 -0
- package/dist/types/components/pf-inline-cta/pf-inline-cta.d.ts +69 -0
- package/dist/types/components/pf-input/pf-input.d.ts +79 -0
- package/dist/types/components/pf-kbd/pf-kbd.d.ts +18 -0
- package/dist/types/components/pf-line-chart/pf-line-chart.d.ts +68 -0
- package/dist/types/components/pf-loading-dots/pf-loading-dots.d.ts +14 -0
- package/dist/types/components/pf-loading-skeleton/pf-loading-skeleton.d.ts +24 -0
- package/dist/types/components/pf-loading-spinner/pf-loading-spinner.d.ts +12 -0
- package/dist/types/components/pf-menu-item/pf-menu-item.d.ts +43 -0
- package/dist/types/components/pf-menu-separator/pf-menu-separator.d.ts +9 -0
- package/dist/types/components/pf-metric-card/pf-metric-card.d.ts +42 -0
- package/dist/types/components/pf-metric-grid/pf-metric-grid.d.ts +13 -0
- package/dist/types/components/pf-modal/pf-modal.d.ts +84 -0
- package/dist/types/components/pf-modal-body/pf-modal-body.d.ts +12 -0
- package/dist/types/components/pf-modal-footer/pf-modal-footer.d.ts +12 -0
- package/dist/types/components/pf-modal-header/pf-modal-header.d.ts +12 -0
- package/dist/types/components/pf-multi-select/pf-multi-select.d.ts +108 -0
- package/dist/types/components/pf-nav-item/pf-nav-item.d.ts +58 -0
- package/dist/types/components/pf-nav-section/pf-nav-section.d.ts +44 -0
- package/dist/types/components/pf-notification/pf-notification.d.ts +53 -0
- package/dist/types/components/pf-number-input/pf-number-input.d.ts +87 -0
- package/dist/types/components/pf-option/pf-option.d.ts +40 -0
- package/dist/types/components/pf-page-header/pf-page-header.d.ts +33 -0
- package/dist/types/components/pf-pagination/pf-pagination.d.ts +41 -0
- package/dist/types/components/pf-pie-chart/pf-pie-chart.d.ts +52 -0
- package/dist/types/components/pf-pie-slice/pf-pie-slice.d.ts +36 -0
- package/dist/types/components/pf-popover/pf-popover.d.ts +82 -0
- package/dist/types/components/pf-progress-bar/pf-progress-bar.d.ts +18 -0
- package/dist/types/components/pf-progress-circle/pf-progress-circle.d.ts +23 -0
- package/dist/types/components/pf-progress-step/pf-progress-step.d.ts +38 -0
- package/dist/types/components/pf-progress-steps/pf-progress-steps.d.ts +42 -0
- package/dist/types/components/pf-radar-axis/pf-radar-axis.d.ts +28 -0
- package/dist/types/components/pf-radar-chart/pf-radar-chart.d.ts +62 -0
- package/dist/types/components/pf-radio-button/pf-radio-button.d.ts +55 -0
- package/dist/types/components/pf-radio-group/pf-radio-group.d.ts +80 -0
- package/dist/types/components/pf-rating-badge/pf-rating-badge.d.ts +23 -0
- package/dist/types/components/pf-rating-stars/pf-rating-stars.d.ts +31 -0
- package/dist/types/components/pf-resizable/pf-resizable.d.ts +68 -0
- package/dist/types/components/pf-rich-text-editor/pf-rich-text-editor.d.ts +99 -0
- package/dist/types/components/pf-scroll-area/pf-scroll-area.d.ts +28 -0
- package/dist/types/components/pf-section-footer/pf-section-footer.d.ts +30 -0
- package/dist/types/components/pf-section-header/pf-section-header.d.ts +35 -0
- package/dist/types/components/pf-select/pf-select.d.ts +110 -0
- package/dist/types/components/pf-sidebar-navigation/pf-sidebar-navigation.d.ts +74 -0
- package/dist/types/components/pf-slideout-menu/pf-slideout-menu.d.ts +103 -0
- package/dist/types/components/pf-slider/pf-slider.d.ts +65 -0
- package/dist/types/components/pf-sparkline/pf-sparkline.d.ts +54 -0
- package/dist/types/components/pf-switch/pf-switch.d.ts +61 -0
- package/dist/types/components/pf-tab/pf-tab.d.ts +83 -0
- package/dist/types/components/pf-tab-panel/pf-tab-panel.d.ts +24 -0
- package/dist/types/components/pf-table/pf-table.d.ts +76 -0
- package/dist/types/components/pf-table-cell/pf-table-cell.d.ts +43 -0
- package/dist/types/components/pf-table-row/pf-table-row.d.ts +31 -0
- package/dist/types/components/pf-tabs/pf-tabs.d.ts +149 -0
- package/dist/types/components/pf-tag/pf-tag.d.ts +26 -0
- package/dist/types/components/pf-tag-input/pf-tag-input.d.ts +92 -0
- package/dist/types/components/pf-textarea/pf-textarea.d.ts +89 -0
- package/dist/types/components/pf-time-picker/pf-time-picker.d.ts +105 -0
- package/dist/types/components/pf-timeline/pf-timeline.d.ts +27 -0
- package/dist/types/components/pf-timeline-item/pf-timeline-item.d.ts +40 -0
- package/dist/types/components/pf-toaster/pf-toaster.d.ts +66 -0
- package/dist/types/components/pf-toolbar/pf-toolbar.d.ts +37 -0
- package/dist/types/components/pf-toolbar-separator/pf-toolbar-separator.d.ts +14 -0
- package/dist/types/components/pf-tooltip/pf-tooltip.d.ts +74 -0
- package/dist/types/components/pf-tree-item/pf-tree-item.d.ts +75 -0
- package/dist/types/components/pf-tree-view/pf-tree-view.d.ts +94 -0
- package/dist/types/components/pf-utility-button/pf-utility-button.d.ts +41 -0
- package/dist/types/components/pf-video-player/pf-video-player.d.ts +72 -0
- package/dist/types/components/pf-visually-hidden/pf-visually-hidden.d.ts +20 -0
- package/dist/types/components.d.ts +11948 -0
- package/dist/types/form-validity.d.ts +24 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/place-popover.d.ts +16 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +95 -4
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
import { l as liveRegionRole } from './aria-DfpCerXM.js';
|
|
3
|
+
import { s as severityIconName } from './icons-CCln56Fj.js';
|
|
4
|
+
import { a as animationsFinished } from './motion-Cta76kgc.js';
|
|
5
|
+
|
|
6
|
+
const pfAlertCss = () => `:host{display:block}:host([hidden]){display:none}.alert{align-items:flex-start;border:1px solid var(--pf-alert-border);border-radius:var(--radius-md);display:flex;gap:var(--space-3);padding:var(--space-3)}:host([variant='info']) .alert{background:var(--pf-alert-info-background);border-color:var(--pf-alert-info-border);color:var(--pf-alert-info-foreground)}:host([variant='success']) .alert{background:var(--pf-alert-success-background);border-color:var(--pf-alert-success-border);color:var(--pf-alert-success-foreground)}:host([variant='warning']) .alert{background:var(--pf-alert-warning-background);border-color:var(--pf-alert-warning-border);color:var(--pf-alert-warning-foreground)}:host([variant='danger']) .alert{background:var(--pf-alert-danger-background);border-color:var(--pf-alert-danger-border);color:var(--pf-alert-danger-foreground)}.icon{align-items:center;display:inline-flex;font-size:var(--font-size-lg);height:1em;justify-content:center;line-height:1;margin-top:1px;width:1em}.content{display:grid;gap:var(--space-1)}.title{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);line-height:1.3;margin:0}.body{font-size:var(--font-size-sm);line-height:1.4}.body.empty{display:none}::slotted(p){margin:0}.dismiss{align-items:center;background:transparent;border:0;border-radius:var(--radius-sm);color:currentcolor;cursor:pointer;display:inline-flex;font-size:var(--font-size-md);justify-content:center;margin-inline-start:auto;padding:0}.dismiss:focus-visible{box-shadow:var(--pf-alert-focus-ring, var(--pf-focus-ring));outline:none}.alert--exiting{animation:pf-alert-out var(--duration-moderate) var(--easing-accelerate) forwards;overflow:hidden;pointer-events:none}@keyframes pf-alert-out{from{max-height:480px;opacity:1}to{margin-bottom:0;margin-top:0;max-height:0;opacity:0;padding-bottom:0;padding-top:0}}@media (prefers-reduced-motion: reduce){.alert--exiting{animation:none}}`;
|
|
7
|
+
|
|
8
|
+
const PfAlert = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.pfDismiss = createEvent(this, "pfDismiss");
|
|
12
|
+
}
|
|
13
|
+
get el() { return getElement(this); }
|
|
14
|
+
/** Reflected, because the stylesheet selects on it for the colours. */
|
|
15
|
+
variant = 'info';
|
|
16
|
+
heading;
|
|
17
|
+
/** The body. A slotted body is used instead when there is one. */
|
|
18
|
+
description;
|
|
19
|
+
/** Show the dismiss button. Reflected. */
|
|
20
|
+
dismissible = false;
|
|
21
|
+
/** The dismiss button's accessible name. */
|
|
22
|
+
dismissLabel = 'Dismiss alert';
|
|
23
|
+
/** Fires once the alert has finished leaving. */
|
|
24
|
+
pfDismiss;
|
|
25
|
+
/** Reflected, because that is what the exit animation selects on. */
|
|
26
|
+
exiting = false;
|
|
27
|
+
/** Whether anything was slotted into the default slot. */
|
|
28
|
+
hasSlottedBody = false;
|
|
29
|
+
/** The light DOM is readable here, so first paint is already right. */
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
this.readBody();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Dismisses the alert, waiting for its exit animation first.
|
|
35
|
+
*
|
|
36
|
+
* The wait is core's `animationsFinished`, which asks the element what is
|
|
37
|
+
* actually running rather than sleeping for a duration someone wrote down:
|
|
38
|
+
* under `prefers-reduced-motion` the stylesheet sets `animation: none`, no
|
|
39
|
+
* test project applies `styleUrl` CSS at all, and a consumer may not have
|
|
40
|
+
* loaded the stylesheet — in all three an `animationend` listener would
|
|
41
|
+
* wait for ever and a timeout would be a fiction.
|
|
42
|
+
*/
|
|
43
|
+
async dismiss() {
|
|
44
|
+
if (this.exiting)
|
|
45
|
+
return;
|
|
46
|
+
this.exiting = true;
|
|
47
|
+
await animationsFinished(this.el.shadowRoot?.querySelector('.alert'));
|
|
48
|
+
this.pfDismiss.emit();
|
|
49
|
+
}
|
|
50
|
+
readBody() {
|
|
51
|
+
this.hasSlottedBody = Array.from(this.el.childNodes).some((node) => node.nodeType === Node.ELEMENT_NODE
|
|
52
|
+
? !node.getAttribute('slot')
|
|
53
|
+
: Boolean(node.textContent?.trim()));
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
const hasBody = this.hasSlottedBody || Boolean(this.description);
|
|
57
|
+
return (h(Host, { key: 'f3522c8ef72b489525e45dc1fc3c70086af533ac' }, h("div", { key: 'b5b402130872fdfc94878b4d09329399c4adacb5', class: { alert: true, 'alert--exiting': this.exiting }, part: "alert", role: liveRegionRole(this.variant) }, h("span", { key: '048f80625f800c1835fa6e356dfe15d0fdd7f35c', class: "icon", part: "icon", "aria-hidden": "true" }, h("slot", { key: '6a42e99211fd2906e0162bfb31586e06af30aaa5', name: "icon" }, h("pf-icon", { key: '146ff1c59c4f860ec78a6f84162cab58f3e5e15d', name: severityIconName(this.variant) }))), h("div", { key: 'a74939fe38d05d8cf8a3de2c75e048f103b9739c', class: "content" }, this.heading && (h("p", { key: 'a9758f5cfece50320d0eff15c0cbc47a1d7f8a46', class: "title", part: "title" }, this.heading)), h("div", { key: 'e48f83b618e566b3c1884212372607c211557bee', class: { body: true, empty: !hasBody }, part: "body" }, h("slot", { key: '472cbf494dfcaa7f0f539fc2e243a6eab68b05b9', onSlotchange: () => this.readBody() }, this.description))), this.dismissible && (h("button", { key: 'f2cceb0cee8e905cac8d001304ca927245329b1e', type: "button", class: "dismiss", part: "dismiss", "aria-label": this.dismissLabel, onClick: () => this.dismiss() }, h("pf-icon", { key: '0190d8ca15d01969f8992e7dfc14c814c4fa29bf', name: "circle-xmark", "aria-hidden": "true" }))))));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
PfAlert.style = pfAlertCss();
|
|
61
|
+
|
|
62
|
+
export { PfAlert as pf_alert };
|
|
63
|
+
//# sourceMappingURL=pf-alert.entry.js.map
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=pf-alert.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-alert.entry.js","sources":["src/components/pf-alert/pf-alert.css?tag=pf-alert&encapsulation=shadow","src/components/pf-alert/pf-alert.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.alert {\n align-items: flex-start;\n border: 1px solid var(--pf-alert-border);\n border-radius: var(--radius-md);\n display: flex;\n gap: var(--space-3);\n padding: var(--space-3);\n}\n\n/*\n * The colours come from the reflected attribute rather than a class: the\n * generated bindings set props as properties, so an unreflected prop would\n * leave no attribute to select on.\n */\n:host([variant='info']) .alert {\n background: var(--pf-alert-info-background);\n border-color: var(--pf-alert-info-border);\n color: var(--pf-alert-info-foreground);\n}\n\n:host([variant='success']) .alert {\n background: var(--pf-alert-success-background);\n border-color: var(--pf-alert-success-border);\n color: var(--pf-alert-success-foreground);\n}\n\n:host([variant='warning']) .alert {\n background: var(--pf-alert-warning-background);\n border-color: var(--pf-alert-warning-border);\n color: var(--pf-alert-warning-foreground);\n}\n\n:host([variant='danger']) .alert {\n background: var(--pf-alert-danger-background);\n border-color: var(--pf-alert-danger-border);\n color: var(--pf-alert-danger-foreground);\n}\n\n.icon {\n align-items: center;\n display: inline-flex;\n font-size: var(--font-size-lg);\n height: 1em;\n justify-content: center;\n line-height: 1;\n margin-top: 1px;\n width: 1em;\n}\n\n.content {\n display: grid;\n gap: var(--space-1);\n}\n\n.title {\n font-size: var(--font-size-sm);\n font-weight: var(--font-weight-semibold);\n line-height: 1.3;\n margin: 0;\n}\n\n.body {\n font-size: var(--font-size-sm);\n line-height: 1.4;\n}\n\n/*\n * Two classes deep, because the ties break on source order. The slot stays\n * rendered inside the hidden box, or content added later never fires\n * `slotchange`.\n */\n.body.empty {\n display: none;\n}\n\n/* The browser's own paragraphs, if a consumer slots any. */\n::slotted(p) {\n margin: 0;\n}\n\n.dismiss {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: var(--radius-sm);\n color: currentcolor;\n cursor: pointer;\n display: inline-flex;\n font-size: var(--font-size-md);\n justify-content: center;\n margin-inline-start: auto;\n padding: 0;\n}\n\n.dismiss:focus-visible {\n box-shadow: var(--pf-alert-focus-ring, var(--pf-focus-ring));\n outline: none;\n}\n\n/*\n * Fade *and* collapse, so the content below reflows into the space rather\n * than jumping when the alert is removed. This is the difference from\n * `pf-notification`, which slides out of a stack instead.\n */\n.alert--exiting {\n animation: pf-alert-out var(--duration-moderate) var(--easing-accelerate) forwards;\n overflow: hidden;\n pointer-events: none;\n}\n\n/* Its own copy: `@keyframes` do not cross a shadow boundary. */\n@keyframes pf-alert-out {\n from {\n max-height: 480px;\n opacity: 1;\n }\n\n to {\n margin-bottom: 0;\n margin-top: 0;\n max-height: 0;\n opacity: 0;\n padding-bottom: 0;\n padding-top: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .alert--exiting {\n animation: none;\n }\n}\n","import {\n animationsFinished,\n liveRegionRole,\n severityIconName,\n type LiveRegionVariant,\n} from '@pitchfork-ui/core';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\n\nexport type PfAlertVariant = LiveRegionVariant;\n\n/**\n * An inline alert: an icon, a heading, a body and an optional dismiss button.\n *\n * The sibling of `pf-notification`, and deliberately a separate element\n * rather than a variant of it: an alert belongs in the page's flow and\n * collapses its own height when dismissed so the content below reflows, while\n * a notification is one of a stack in a corner and slides out. The two look\n * alike and behave differently, which is exactly when one element serving\n * both goes wrong.\n *\n * The role comes from core's `liveRegionRole`, so `warning` and `danger`\n * announce assertively and `info` and `success` wait their turn.\n *\n * @slot - the body, used instead of the `description` prop when present.\n * @slot icon - replaces the icon the variant would choose.\n * @part alert - the root box.\n * @part icon - the icon's box.\n * @part title - the heading.\n * @part body - the description's box.\n * @part dismiss - the dismiss button.\n */\n@Component({\n tag: 'pf-alert',\n styleUrl: 'pf-alert.css',\n shadow: true,\n})\nexport class PfAlert {\n @Element() el!: HTMLElement;\n\n /** Reflected, because the stylesheet selects on it for the colours. */\n @Prop({ reflect: true }) variant: PfAlertVariant = 'info';\n\n @Prop() heading?: string;\n\n /** The body. A slotted body is used instead when there is one. */\n @Prop() description?: string;\n\n /** Show the dismiss button. Reflected. */\n @Prop({ reflect: true }) dismissible = false;\n\n /** The dismiss button's accessible name. */\n @Prop() dismissLabel = 'Dismiss alert';\n\n /** Fires once the alert has finished leaving. */\n @Event() pfDismiss!: EventEmitter<void>;\n\n /** Reflected, because that is what the exit animation selects on. */\n @State() exiting = false;\n\n /** Whether anything was slotted into the default slot. */\n @State() hasSlottedBody = false;\n\n /** The light DOM is readable here, so first paint is already right. */\n componentWillLoad() {\n this.readBody();\n }\n\n /**\n * Dismisses the alert, waiting for its exit animation first.\n *\n * The wait is core's `animationsFinished`, which asks the element what is\n * actually running rather than sleeping for a duration someone wrote down:\n * under `prefers-reduced-motion` the stylesheet sets `animation: none`, no\n * test project applies `styleUrl` CSS at all, and a consumer may not have\n * loaded the stylesheet — in all three an `animationend` listener would\n * wait for ever and a timeout would be a fiction.\n */\n @Method()\n async dismiss() {\n if (this.exiting) return;\n this.exiting = true;\n\n await animationsFinished(this.el.shadowRoot?.querySelector('.alert'));\n this.pfDismiss.emit();\n }\n\n private readBody() {\n this.hasSlottedBody = Array.from(this.el.childNodes).some((node) =>\n node.nodeType === Node.ELEMENT_NODE\n ? !(node as Element).getAttribute('slot')\n : Boolean(node.textContent?.trim()),\n );\n }\n\n render() {\n const hasBody = this.hasSlottedBody || Boolean(this.description);\n\n return (\n <Host>\n <div\n class={{ alert: true, 'alert--exiting': this.exiting }}\n part=\"alert\"\n role={liveRegionRole(this.variant)}\n >\n <span class=\"icon\" part=\"icon\" aria-hidden=\"true\">\n <slot name=\"icon\">\n <pf-icon name={severityIconName(this.variant)}></pf-icon>\n </slot>\n </span>\n\n <div class=\"content\">\n {this.heading && (\n <p class=\"title\" part=\"title\">\n {this.heading}\n </p>\n )}\n {/*\n The slot stays in the tree whether or not it holds anything: a\n slot that is not rendered never fires `slotchange`, so a body\n added later would stay invisible for good.\n */}\n <div class={{ body: true, empty: !hasBody }} part=\"body\">\n <slot onSlotchange={() => this.readBody()}>{this.description}</slot>\n </div>\n </div>\n\n {this.dismissible && (\n <button\n type=\"button\"\n class=\"dismiss\"\n part=\"dismiss\"\n aria-label={this.dismissLabel}\n onClick={() => this.dismiss()}\n >\n <pf-icon name=\"circle-xmark\" aria-hidden=\"true\"></pf-icon>\n </button>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
|
|
3
|
+
//#region src/avatar-group.ts
|
|
4
|
+
/**
|
|
5
|
+
* Splits `count` avatars into the ones shown and the overflow.
|
|
6
|
+
*
|
|
7
|
+
* `total` is for a group that knows how many people there are without being
|
|
8
|
+
* handed an avatar for each — "5 of 40" shows five faces and `+35`. Without
|
|
9
|
+
* it the count is simply how many avatars there are.
|
|
10
|
+
*
|
|
11
|
+
* A negative or fractional `max` cannot produce a negative row: it floors at
|
|
12
|
+
* zero, which shows the chip alone.
|
|
13
|
+
*/
|
|
14
|
+
function splitAvatarGroup(count, max, total) {
|
|
15
|
+
const safeCount = Number.isFinite(count) ? Math.max(Math.floor(count), 0) : 0;
|
|
16
|
+
const shown = Math.min(safeCount, Number.isFinite(max) ? Math.max(Math.floor(max), 0) : 0);
|
|
17
|
+
const resolvedTotal = total !== void 0 && Number.isFinite(total) ? Math.max(Math.floor(total), 0) : safeCount;
|
|
18
|
+
return {
|
|
19
|
+
shown,
|
|
20
|
+
overflow: Math.max(resolvedTotal - shown, 0),
|
|
21
|
+
total: resolvedTotal
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* What an unnamed avatar group is called: "1 person", "4 people".
|
|
26
|
+
*
|
|
27
|
+
* Here rather than in either layer because it is the group's accessible name,
|
|
28
|
+
* and a group that announced itself differently in the two layers would be a
|
|
29
|
+
* different control to a screen reader.
|
|
30
|
+
*/
|
|
31
|
+
function avatarGroupLabel(total) {
|
|
32
|
+
const safeTotal = Number.isFinite(total) ? Math.max(Math.floor(total), 0) : 0;
|
|
33
|
+
return `${safeTotal} ${safeTotal === 1 ? "person" : "people"}`;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const pfAvatarGroupCss = () => `:host{--pf-avatar-group-overlap:8px;align-items:center;display:inline-flex}:host([hidden]){display:none}:host([size='lg']),:host([size='xl']){--pf-avatar-group-overlap:12px}::slotted(pf-avatar),.overflow{box-shadow:0 0 0 2px var(--pf-avatar-group-ring);position:relative}::slotted(pf-avatar:not(:first-child)),.overflow{margin-inline-start:calc(-1 * var(--pf-avatar-group-overlap))}::slotted(pf-avatar[data-pf-overflow]){display:none}.overflow{--pf-avatar-bg:var(--pf-avatar-group-overflow-bg);--pf-avatar-text:var(--pf-avatar-group-overflow-text)}`;
|
|
37
|
+
|
|
38
|
+
const PfAvatarGroup = class {
|
|
39
|
+
constructor(hostRef) {
|
|
40
|
+
registerInstance(this, hostRef);
|
|
41
|
+
}
|
|
42
|
+
get el() { return getElement(this); }
|
|
43
|
+
/** How many avatars to show before collapsing the rest into the chip. */
|
|
44
|
+
max = 5;
|
|
45
|
+
/** Applied to every avatar in the group. Reflected, and pushed down. */
|
|
46
|
+
size = 'md';
|
|
47
|
+
/**
|
|
48
|
+
* The group's real size, for a group that knows how many people there are
|
|
49
|
+
* without being handed an avatar for each: five faces and `+35`.
|
|
50
|
+
*/
|
|
51
|
+
total;
|
|
52
|
+
/** Overrides the generated name, which counts the people in the group. */
|
|
53
|
+
label;
|
|
54
|
+
/** How many did not fit, which is what the chip says. */
|
|
55
|
+
overflow = 0;
|
|
56
|
+
/** How many the group counts, which is what its name says. */
|
|
57
|
+
counted = 0;
|
|
58
|
+
/** The light DOM is readable here, so first paint is already right. */
|
|
59
|
+
componentWillLoad() {
|
|
60
|
+
this.sync();
|
|
61
|
+
}
|
|
62
|
+
componentDidLoad() {
|
|
63
|
+
this.sync();
|
|
64
|
+
}
|
|
65
|
+
handleStateChange() {
|
|
66
|
+
this.sync();
|
|
67
|
+
}
|
|
68
|
+
/** Re-reads the children, for a consumer who changed one through a property. */
|
|
69
|
+
async refresh() {
|
|
70
|
+
this.sync();
|
|
71
|
+
}
|
|
72
|
+
/** Direct children only: a nested group owns its own avatars. */
|
|
73
|
+
get avatars() {
|
|
74
|
+
return Array.from(this.el.querySelectorAll('pf-avatar')).filter((avatar) => avatar.parentElement === this.el);
|
|
75
|
+
}
|
|
76
|
+
sync() {
|
|
77
|
+
const avatars = this.avatars;
|
|
78
|
+
const split = splitAvatarGroup(avatars.length, Number(this.max), this.total);
|
|
79
|
+
for (const [index, avatar] of avatars.entries()) {
|
|
80
|
+
avatar.size = this.size;
|
|
81
|
+
/*
|
|
82
|
+
* A data attribute of the group's own rather than `hidden`: `hidden` is
|
|
83
|
+
* the consumer's to set, and overwriting it would lose an avatar they
|
|
84
|
+
* had hidden themselves. This says "the group collapsed you", which is
|
|
85
|
+
* a different thing, and the stylesheet selects on it.
|
|
86
|
+
*/
|
|
87
|
+
if (index < split.shown)
|
|
88
|
+
avatar.removeAttribute('data-pf-overflow');
|
|
89
|
+
else
|
|
90
|
+
avatar.setAttribute('data-pf-overflow', '');
|
|
91
|
+
// Earlier avatars stack above later ones, and the chip sits under all
|
|
92
|
+
// of them -- so the overlap reads as a stack rather than a ribbon.
|
|
93
|
+
avatar.style.zIndex = index < split.shown ? `${split.shown - index}` : '';
|
|
94
|
+
}
|
|
95
|
+
this.overflow = split.overflow;
|
|
96
|
+
this.counted = split.total;
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return (h(Host, { key: '42ec24fb2307fda7fee46622cab9cd04fd33626d', role: "group", "aria-label": this.label ?? avatarGroupLabel(this.counted) }, h("slot", { key: '774448c455e6aa400b050fde75831f1c9e66ac95', onSlotchange: () => this.refresh() }), this.overflow > 0 && (h("pf-avatar", { key: 'fee71535c6973de304a38761fb8db8ddb5734e3e', class: "overflow", part: "overflow", size: this.size, name: `${this.overflow} more` }, "+", this.overflow))));
|
|
100
|
+
}
|
|
101
|
+
static get watchers() { return {
|
|
102
|
+
"max": [{
|
|
103
|
+
"handleStateChange": 0
|
|
104
|
+
}],
|
|
105
|
+
"size": [{
|
|
106
|
+
"handleStateChange": 0
|
|
107
|
+
}],
|
|
108
|
+
"total": [{
|
|
109
|
+
"handleStateChange": 0
|
|
110
|
+
}]
|
|
111
|
+
}; }
|
|
112
|
+
};
|
|
113
|
+
PfAvatarGroup.style = pfAvatarGroupCss();
|
|
114
|
+
|
|
115
|
+
export { PfAvatarGroup as pf_avatar_group };
|
|
116
|
+
//# sourceMappingURL=pf-avatar-group.entry.js.map
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=pf-avatar-group.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-avatar-group.entry.js","sources":["../core/dist/avatar-group.js","src/components/pf-avatar-group/pf-avatar-group.css?tag=pf-avatar-group&encapsulation=shadow","src/components/pf-avatar-group/pf-avatar-group.tsx"],"sourcesContent":["//#region src/avatar-group.ts\n/**\n* Splits `count` avatars into the ones shown and the overflow.\n*\n* `total` is for a group that knows how many people there are without being\n* handed an avatar for each — \"5 of 40\" shows five faces and `+35`. Without\n* it the count is simply how many avatars there are.\n*\n* A negative or fractional `max` cannot produce a negative row: it floors at\n* zero, which shows the chip alone.\n*/\nfunction splitAvatarGroup(count, max, total) {\n\tconst safeCount = Number.isFinite(count) ? Math.max(Math.floor(count), 0) : 0;\n\tconst shown = Math.min(safeCount, Number.isFinite(max) ? Math.max(Math.floor(max), 0) : 0);\n\tconst resolvedTotal = total !== void 0 && Number.isFinite(total) ? Math.max(Math.floor(total), 0) : safeCount;\n\treturn {\n\t\tshown,\n\t\toverflow: Math.max(resolvedTotal - shown, 0),\n\t\ttotal: resolvedTotal\n\t};\n}\n/**\n* What an unnamed avatar group is called: \"1 person\", \"4 people\".\n*\n* Here rather than in either layer because it is the group's accessible name,\n* and a group that announced itself differently in the two layers would be a\n* different control to a screen reader.\n*/\nfunction avatarGroupLabel(total) {\n\tconst safeTotal = Number.isFinite(total) ? Math.max(Math.floor(total), 0) : 0;\n\treturn `${safeTotal} ${safeTotal === 1 ? \"person\" : \"people\"}`;\n}\n//#endregion\nexport { avatarGroupLabel, splitAvatarGroup };\n",":host {\n /* How far each avatar laps over the one before it. */\n --pf-avatar-group-overlap: 8px;\n align-items: center;\n display: inline-flex;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([size='lg']),\n:host([size='xl']) {\n --pf-avatar-group-overlap: 12px;\n}\n\n/*\n * The ring is drawn in the surface colour, so overlapping avatars stay\n * separated. `position: relative` is what makes the z-index the group writes\n * on each avatar mean anything.\n */\n::slotted(pf-avatar),\n.overflow {\n box-shadow: 0 0 0 2px var(--pf-avatar-group-ring);\n position: relative;\n}\n\n/*\n * `:not(:first-child)` inside `::slotted()` rather than a sibling combinator:\n * the parens take a compound selector and no combinator, so `::slotted(a + a)`\n * cannot be written -- the same limit that keeps pf-accordion's rule in the\n * child. A pseudo-class is part of a compound selector, so this one is fine.\n */\n::slotted(pf-avatar:not(:first-child)),\n.overflow {\n margin-inline-start: calc(-1 * var(--pf-avatar-group-overlap));\n}\n\n/*\n * Collapsed by the group. A data attribute of the group's own, so an avatar\n * the *consumer* hid with `hidden` is a separate thing and still works.\n */\n::slotted(pf-avatar[data-pf-overflow]) {\n display: none;\n}\n\n/*\n * The chip's colours go through the properties pf-avatar already reads, which\n * inherit through the shadow boundary -- the pf-option bridge again, and the\n * way to colour a nested element without reaching into its shadow root.\n */\n.overflow {\n --pf-avatar-bg: var(--pf-avatar-group-overflow-bg);\n --pf-avatar-text: var(--pf-avatar-group-overflow-text);\n}\n","import { avatarGroupLabel, splitAvatarGroup } from '@pitchfork-ui/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\n\nimport type { PfAvatarSize } from '../pf-avatar/pf-avatar';\n\n/**\n * A stack of overlapping `pf-avatar` children, with a `+N` chip for the ones\n * that did not fit.\n *\n * Children rather than an array of people, as everywhere else — a consumer\n * loops in their own template, and each avatar keeps its own `src`, `name` and\n * `status`.\n *\n * The chip is a `pf-avatar` of its own, in the shadow root: it needs an\n * avatar's shape, size and ring, and reusing the element is how it gets them\n * without a second copy of all three. Its colours come through the\n * `--pf-avatar-*` properties the avatar already reads, which inherit through\n * the shadow boundary.\n *\n * @slot - the `pf-avatar` children.\n * @part overflow - the `+N` chip, when something did not fit.\n */\n@Component({\n tag: 'pf-avatar-group',\n styleUrl: 'pf-avatar-group.css',\n shadow: true,\n})\nexport class PfAvatarGroup {\n @Element() el!: HTMLElement;\n\n /** How many avatars to show before collapsing the rest into the chip. */\n @Prop() max = 5;\n\n /** Applied to every avatar in the group. Reflected, and pushed down. */\n @Prop({ reflect: true }) size: PfAvatarSize = 'md';\n\n /**\n * The group's real size, for a group that knows how many people there are\n * without being handed an avatar for each: five faces and `+35`.\n */\n @Prop() total?: number;\n\n /** Overrides the generated name, which counts the people in the group. */\n @Prop() label?: string;\n\n /** How many did not fit, which is what the chip says. */\n @State() overflow = 0;\n\n /** How many the group counts, which is what its name says. */\n @State() counted = 0;\n\n /** The light DOM is readable here, so first paint is already right. */\n componentWillLoad() {\n this.sync();\n }\n\n componentDidLoad() {\n this.sync();\n }\n\n @Watch('max')\n @Watch('size')\n @Watch('total')\n handleStateChange() {\n this.sync();\n }\n\n /** Re-reads the children, for a consumer who changed one through a property. */\n @Method()\n async refresh() {\n this.sync();\n }\n\n /** Direct children only: a nested group owns its own avatars. */\n private get avatars(): HTMLElement[] {\n return Array.from(this.el.querySelectorAll<HTMLElement>('pf-avatar')).filter(\n (avatar) => avatar.parentElement === this.el,\n );\n }\n\n private sync() {\n const avatars = this.avatars;\n const split = splitAvatarGroup(avatars.length, Number(this.max), this.total);\n\n for (const [index, avatar] of avatars.entries()) {\n (avatar as HTMLElement & { size: PfAvatarSize }).size = this.size;\n\n /*\n * A data attribute of the group's own rather than `hidden`: `hidden` is\n * the consumer's to set, and overwriting it would lose an avatar they\n * had hidden themselves. This says \"the group collapsed you\", which is\n * a different thing, and the stylesheet selects on it.\n */\n if (index < split.shown) avatar.removeAttribute('data-pf-overflow');\n else avatar.setAttribute('data-pf-overflow', '');\n\n // Earlier avatars stack above later ones, and the chip sits under all\n // of them -- so the overlap reads as a stack rather than a ribbon.\n avatar.style.zIndex = index < split.shown ? `${split.shown - index}` : '';\n }\n\n this.overflow = split.overflow;\n this.counted = split.total;\n }\n\n render() {\n return (\n <Host role=\"group\" aria-label={this.label ?? avatarGroupLabel(this.counted)}>\n <slot onSlotchange={() => this.refresh()} />\n {this.overflow > 0 && (\n <pf-avatar\n class=\"overflow\"\n part=\"overflow\"\n size={this.size}\n name={`${this.overflow} more`}\n >\n +{this.overflow}\n </pf-avatar>\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
import { g as getAvatarInitials } from './text-B8ulhYUJ.js';
|
|
3
|
+
|
|
4
|
+
const pfAvatarCss = () => `:host{--pf-avatar-status-size:10px;--pf-avatar-status-offset:-2px;background:var(--pf-avatar-bg, var(--pf-surface-subtle));border:1px solid var(--pf-avatar-border, var(--pf-surface-border));border-radius:var(--radius-full);color:var(--pf-avatar-text);display:inline-flex;font-weight:var(--font-weight-semibold);justify-content:center;overflow:visible;position:relative;text-transform:uppercase;user-select:none}:host([size='sm']){--pf-avatar-status-size:9px;--pf-avatar-status-offset:-2px;font-size:var(--font-size-2xs);height:24px;width:24px}:host([size='md']){--pf-avatar-status-size:10px;--pf-avatar-status-offset:-2px;font-size:var(--font-size-xs);height:32px;width:32px}:host([size='lg']){--pf-avatar-status-size:12px;--pf-avatar-status-offset:-2px;font-size:var(--font-size-sm);height:40px;width:40px}:host([size='xl']){--pf-avatar-status-size:14px;--pf-avatar-status-offset:-1px;font-size:var(--font-size-md);height:56px;width:56px}.image{border-radius:inherit;display:block;height:100%;object-fit:cover;width:100%}.fallback{align-items:center;border-radius:inherit;display:inline-flex;height:100%;justify-content:center;line-height:1;width:100%}.status{border:2px solid var(--pf-avatar-status-border);border-radius:var(--radius-full);top:var(--pf-avatar-status-offset);height:var(--pf-avatar-status-size, 10px);position:absolute;inset-inline-end:var(--pf-avatar-status-offset);width:var(--pf-avatar-status-size, 10px);z-index:1}:host([status='online']) .status{background:var(--pf-avatar-status-online)}:host([status='away']) .status{background:var(--pf-avatar-status-away)}:host([status='busy']) .status{background:var(--pf-avatar-status-busy)}:host([status='offline']) .status{background:var(--pf-avatar-status-offline)}:host([hidden]){display:none}`;
|
|
5
|
+
|
|
6
|
+
const PfAvatar = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/** Photo URL. Without one the avatar shows initials. */
|
|
11
|
+
src;
|
|
12
|
+
/** Alternative text for the photo. */
|
|
13
|
+
alt;
|
|
14
|
+
/** The person's name: used for the accessible name and the initials. */
|
|
15
|
+
name;
|
|
16
|
+
size = 'md';
|
|
17
|
+
/** Presence indicator. Decorative — convey it in text as well. */
|
|
18
|
+
status;
|
|
19
|
+
render() {
|
|
20
|
+
return (h(Host, { key: '0824f0bfb483b0be9d76d5e9044dd9e4ae248ebf', role: this.name ? 'img' : null, "aria-label": this.name }, this.src ? (h("img", { class: "image", part: "image", src: this.src, alt: this.alt ?? (this.name ? '' : 'Avatar') })) : (h("span", { class: "fallback", part: "fallback", "aria-hidden": "true" }, h("slot", null, getAvatarInitials(this.name)))), this.status && h("span", { key: '25327b534f0c459ecfd499f4eaca1f5d7484968c', class: "status", part: "status", "aria-hidden": "true" })));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
PfAvatar.style = pfAvatarCss();
|
|
24
|
+
|
|
25
|
+
export { PfAvatar as pf_avatar };
|
|
26
|
+
//# sourceMappingURL=pf-avatar.entry.js.map
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=pf-avatar.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-avatar.entry.js","sources":["src/components/pf-avatar/pf-avatar.css?tag=pf-avatar&encapsulation=shadow","src/components/pf-avatar/pf-avatar.tsx"],"sourcesContent":[":host {\n --pf-avatar-status-size: 10px;\n --pf-avatar-status-offset: -2px;\n\n background: var(--pf-avatar-bg, var(--pf-surface-subtle));\n border: 1px solid var(--pf-avatar-border, var(--pf-surface-border));\n border-radius: var(--radius-full);\n color: var(--pf-avatar-text);\n display: inline-flex;\n font-weight: var(--font-weight-semibold);\n justify-content: center;\n overflow: visible;\n position: relative;\n text-transform: uppercase;\n user-select: none;\n}\n\n:host([size='sm']) {\n --pf-avatar-status-size: 9px;\n --pf-avatar-status-offset: -2px;\n\n font-size: var(--font-size-2xs);\n height: 24px;\n width: 24px;\n}\n\n:host([size='md']) {\n --pf-avatar-status-size: 10px;\n --pf-avatar-status-offset: -2px;\n\n font-size: var(--font-size-xs);\n height: 32px;\n width: 32px;\n}\n\n:host([size='lg']) {\n --pf-avatar-status-size: 12px;\n --pf-avatar-status-offset: -2px;\n\n font-size: var(--font-size-sm);\n height: 40px;\n width: 40px;\n}\n\n:host([size='xl']) {\n --pf-avatar-status-size: 14px;\n --pf-avatar-status-offset: -1px;\n\n font-size: var(--font-size-md);\n height: 56px;\n width: 56px;\n}\n\n.image {\n border-radius: inherit;\n display: block;\n height: 100%;\n object-fit: cover;\n width: 100%;\n}\n\n.fallback {\n align-items: center;\n border-radius: inherit;\n display: inline-flex;\n height: 100%;\n justify-content: center;\n line-height: 1;\n width: 100%;\n}\n\n.status {\n border: 2px solid var(--pf-avatar-status-border);\n border-radius: var(--radius-full);\n top: var(--pf-avatar-status-offset);\n height: var(--pf-avatar-status-size, 10px);\n position: absolute;\n inset-inline-end: var(--pf-avatar-status-offset);\n width: var(--pf-avatar-status-size, 10px);\n z-index: 1;\n}\n\n:host([status='online']) .status {\n background: var(--pf-avatar-status-online);\n}\n\n:host([status='away']) .status {\n background: var(--pf-avatar-status-away);\n}\n\n:host([status='busy']) .status {\n background: var(--pf-avatar-status-busy);\n}\n\n:host([status='offline']) .status {\n background: var(--pf-avatar-status-offline);\n}\n\n:host([hidden]) {\n display: none;\n}\n","import { getAvatarInitials } from '@pitchfork-ui/core';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\nexport type PfAvatarSize = 'sm' | 'md' | 'lg' | 'xl';\nexport type PfAvatarStatus = 'online' | 'away' | 'busy' | 'offline';\n\n/**\n * A person or entity, as a photo or as initials.\n *\n * The initials are derived from `name` by core's `avatarInitials`, so this and\n * the React `Avatar` shorten the same name the same way.\n *\n * @slot - overrides the derived initials.\n * @part image - the photo, when `src` is set.\n * @part fallback - the initials, when it is not.\n * @part status - the presence dot, when `status` is set.\n */\n@Component({\n tag: 'pf-avatar',\n styleUrl: 'pf-avatar.css',\n shadow: true,\n})\nexport class PfAvatar {\n /** Photo URL. Without one the avatar shows initials. */\n @Prop() src?: string;\n\n /** Alternative text for the photo. */\n @Prop() alt?: string;\n\n /** The person's name: used for the accessible name and the initials. */\n @Prop() name?: string;\n\n @Prop({ reflect: true }) size: PfAvatarSize = 'md';\n\n /** Presence indicator. Decorative — convey it in text as well. */\n @Prop({ reflect: true }) status?: PfAvatarStatus;\n\n render() {\n return (\n <Host role={this.name ? 'img' : null} aria-label={this.name}>\n {this.src ? (\n <img\n class=\"image\"\n part=\"image\"\n src={this.src}\n alt={this.alt ?? (this.name ? '' : 'Avatar')}\n />\n ) : (\n <span class=\"fallback\" part=\"fallback\" aria-hidden=\"true\">\n <slot>{getAvatarInitials(this.name)}</slot>\n </span>\n )}\n {this.status && <span class=\"status\" part=\"status\" aria-hidden=\"true\"></span>}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,WAAW,GAAG,MAAM,CAAC,+tDAA+tD,CAAC;;MCsB9uD,QAAQ,GAAA,MAAA;;;;;AAEX,IAAA,GAAG;;AAGH,IAAA,GAAG;;AAGH,IAAA,IAAI;IAEa,IAAI,GAAiB,IAAI;;AAGzB,IAAA,MAAM;IAE/B,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,KAAK,GAAG,IAAI,EAAA,YAAA,EAAc,IAAI,CAAC,IAAI,EAAA,EACxD,IAAI,CAAC,GAAG,IACP,CAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,GAAG,EAAE,GAAG,QAAQ,CAAC,EAAA,CAC5C,KAEF,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,UAAU,EAAA,aAAA,EAAa,MAAM,EAAA,EACvD,CAAA,CAAA,MAAA,EAAA,IAAA,EAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAQ,CACtC,CACR,EACA,IAAI,CAAC,MAAM,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAA,aAAA,EAAa,MAAM,EAAA,CAAQ,CACxE;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
|
|
3
|
+
const pfBadgeGroupCss = () => `:host{align-items:center;display:inline-flex;font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:1}:host([hidden]){display:none}.badge,.text{border:1px solid;display:inline-flex;min-height:24px;padding:0 var(--space-2);white-space:nowrap}.badge{align-items:center;border-radius:var(--radius-full);z-index:1}.text{align-items:center}:host([badge-position='leading']) .text{border-radius:0 var(--radius-full) var(--radius-full) 0;margin-inline-start:-1px;padding-inline-start:calc(var(--space-2) + 2px)}:host([badge-position='leading']) .badge{border-radius:var(--radius-full) 0 0 var(--radius-full)}:host([badge-position='trailing']) .text{border-radius:var(--radius-full) 0 0 var(--radius-full);margin-inline-end:-1px;padding-inline-end:calc(var(--space-2) + 2px)}:host([badge-position='trailing']) .badge{border-radius:0 var(--radius-full) var(--radius-full) 0}:host([color='gray']) .badge{background:var(--pf-badgegroup-gray-100);border-color:var(--pf-badgegroup-gray-200);color:var(--pf-badgegroup-gray-700)}:host([color='brand']) .badge{background:var(--pf-badgegroup-brand-100);border-color:var(--pf-badgegroup-brand-300);color:var(--pf-badgegroup-brand-700)}:host([color='error']) .badge{background:var(--pf-badgegroup-danger-bg);border-color:var(--pf-badgegroup-danger-border);color:var(--pf-badgegroup-danger-text)}:host([color='warning']) .badge{background:var(--pf-badgegroup-warning-bg);border-color:var(--pf-badgegroup-warning-border);color:var(--pf-badgegroup-warning-text)}:host([color='success']) .badge{background:var(--pf-badgegroup-success-bg);border-color:var(--pf-badgegroup-success-border);color:var(--pf-badgegroup-success-text)}:host([appearance='pill']) .text{background:var(--pf-badgegroup-surface-bg, var(--pf-surface-bg))}:host([appearance='modern']) .text{background:var(--pf-badgegroup-surface-subtle, var(--pf-surface-subtle))}:host([color='gray']) .text{border-color:var(--pf-badgegroup-gray-200);color:var(--pf-badgegroup-gray-700)}:host([color='brand']) .text{border-color:var(--pf-badgegroup-brand-300);color:var(--pf-badgegroup-brand-700)}:host([color='error']) .text{border-color:var(--pf-badgegroup-danger-border);color:var(--pf-badgegroup-danger-text)}:host([color='warning']) .text{border-color:var(--pf-badgegroup-warning-border);color:var(--pf-badgegroup-warning-text)}:host([color='success']) .text{border-color:var(--pf-badgegroup-success-border);color:var(--pf-badgegroup-success-text)}`;
|
|
4
|
+
|
|
5
|
+
const PfBadgeGroup = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** The badge's text. */
|
|
10
|
+
label = '';
|
|
11
|
+
/** The message beside the badge. */
|
|
12
|
+
message = '';
|
|
13
|
+
/** Colour treatment. Reflected so the stylesheet can select on it. */
|
|
14
|
+
color = 'gray';
|
|
15
|
+
/** Surface treatment for the message. Reflected for the stylesheet. */
|
|
16
|
+
appearance = 'pill';
|
|
17
|
+
/** Which side the badge sits on. Reflected for the stylesheet. */
|
|
18
|
+
badgePosition = 'leading';
|
|
19
|
+
render() {
|
|
20
|
+
const badge = (h("span", { key: 'decc69e468385f59c798b7b5fc542fd9f0fc76be', class: "badge", part: "badge" }, this.label));
|
|
21
|
+
const text = (h("span", { key: '944cbbd02fab9c6cc3c344464a55bc2f0d5c2082', class: "text", part: "text" }, this.message));
|
|
22
|
+
/*
|
|
23
|
+
* Ordered in the DOM rather than reversed with `flex-direction`, so a
|
|
24
|
+
* screen reader reads the badge and the message in the order they appear.
|
|
25
|
+
*/
|
|
26
|
+
return h(Host, { key: 'cdb8ab25262ced71a32ad6de49f3eab4e3daab6a' }, this.badgePosition === 'leading' ? [badge, text] : [text, badge]);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
PfBadgeGroup.style = pfBadgeGroupCss();
|
|
30
|
+
|
|
31
|
+
export { PfBadgeGroup as pf_badge_group };
|
|
32
|
+
//# sourceMappingURL=pf-badge-group.entry.js.map
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=pf-badge-group.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-badge-group.entry.js","sources":["src/components/pf-badge-group/pf-badge-group.css?tag=pf-badge-group&encapsulation=shadow","src/components/pf-badge-group/pf-badge-group.tsx"],"sourcesContent":[":host {\n align-items: center;\n display: inline-flex;\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-medium);\n line-height: 1;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.badge,\n.text {\n border: 1px solid;\n display: inline-flex;\n min-height: 24px;\n padding: 0 var(--space-2);\n white-space: nowrap;\n}\n\n.badge {\n align-items: center;\n border-radius: var(--radius-full);\n /* Above the text, so the shared edge shows the badge's border, not both. */\n z-index: 1;\n}\n\n.text {\n align-items: center;\n}\n\n/*\n * The two halves overlap by a pixel so their borders coincide into one line,\n * and the inner padding gains that pixel back so the text is not pulled\n * off-centre.\n */\n:host([badge-position='leading']) .text {\n border-radius: 0 var(--radius-full) var(--radius-full) 0;\n margin-inline-start: -1px;\n padding-inline-start: calc(var(--space-2) + 2px);\n}\n\n:host([badge-position='leading']) .badge {\n border-radius: var(--radius-full) 0 0 var(--radius-full);\n}\n\n:host([badge-position='trailing']) .text {\n border-radius: var(--radius-full) 0 0 var(--radius-full);\n margin-inline-end: -1px;\n padding-inline-end: calc(var(--space-2) + 2px);\n}\n\n:host([badge-position='trailing']) .badge {\n border-radius: 0 var(--radius-full) var(--radius-full) 0;\n}\n\n:host([color='gray']) .badge {\n background: var(--pf-badgegroup-gray-100);\n border-color: var(--pf-badgegroup-gray-200);\n color: var(--pf-badgegroup-gray-700);\n}\n\n:host([color='brand']) .badge {\n background: var(--pf-badgegroup-brand-100);\n border-color: var(--pf-badgegroup-brand-300);\n color: var(--pf-badgegroup-brand-700);\n}\n\n:host([color='error']) .badge {\n background: var(--pf-badgegroup-danger-bg);\n border-color: var(--pf-badgegroup-danger-border);\n color: var(--pf-badgegroup-danger-text);\n}\n\n:host([color='warning']) .badge {\n background: var(--pf-badgegroup-warning-bg);\n border-color: var(--pf-badgegroup-warning-border);\n color: var(--pf-badgegroup-warning-text);\n}\n\n:host([color='success']) .badge {\n background: var(--pf-badgegroup-success-bg);\n border-color: var(--pf-badgegroup-success-border);\n color: var(--pf-badgegroup-success-text);\n}\n\n:host([appearance='pill']) .text {\n background: var(--pf-badgegroup-surface-bg, var(--pf-surface-bg));\n}\n\n:host([appearance='modern']) .text {\n background: var(--pf-badgegroup-surface-subtle, var(--pf-surface-subtle));\n}\n\n:host([color='gray']) .text {\n border-color: var(--pf-badgegroup-gray-200);\n color: var(--pf-badgegroup-gray-700);\n}\n\n:host([color='brand']) .text {\n border-color: var(--pf-badgegroup-brand-300);\n color: var(--pf-badgegroup-brand-700);\n}\n\n:host([color='error']) .text {\n border-color: var(--pf-badgegroup-danger-border);\n color: var(--pf-badgegroup-danger-text);\n}\n\n:host([color='warning']) .text {\n border-color: var(--pf-badgegroup-warning-border);\n color: var(--pf-badgegroup-warning-text);\n}\n\n:host([color='success']) .text {\n border-color: var(--pf-badgegroup-success-border);\n color: var(--pf-badgegroup-success-text);\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\nexport type PfBadgeGroupColor = 'gray' | 'brand' | 'error' | 'warning' | 'success';\nexport type PfBadgeGroupAppearance = 'pill' | 'modern';\nexport type PfBadgeGroupBadgePosition = 'leading' | 'trailing';\n\n/**\n * A badge joined to a line of text, sharing one rounded outline — the\n * \"2 new · See what's changed\" pattern.\n *\n * @part badge - the coloured badge.\n * @part text - the message beside it.\n */\n@Component({\n tag: 'pf-badge-group',\n styleUrl: 'pf-badge-group.css',\n shadow: true,\n})\nexport class PfBadgeGroup {\n /** The badge's text. */\n @Prop() label = '';\n\n /** The message beside the badge. */\n @Prop() message = '';\n\n /** Colour treatment. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) color: PfBadgeGroupColor = 'gray';\n\n /** Surface treatment for the message. Reflected for the stylesheet. */\n @Prop({ reflect: true }) appearance: PfBadgeGroupAppearance = 'pill';\n\n /** Which side the badge sits on. Reflected for the stylesheet. */\n @Prop({ reflect: true }) badgePosition: PfBadgeGroupBadgePosition = 'leading';\n\n render() {\n const badge = (\n <span class=\"badge\" part=\"badge\">\n {this.label}\n </span>\n );\n const text = (\n <span class=\"text\" part=\"text\">\n {this.message}\n </span>\n );\n\n /*\n * Ordered in the DOM rather than reversed with `flex-direction`, so a\n * screen reader reads the badge and the message in the order they appear.\n */\n return <Host>{this.badgePosition === 'leading' ? [badge, text] : [text, badge]}</Host>;\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,MAAM,CAAC,05EAA05E,CAAC;;MCkB76E,YAAY,GAAA,MAAA;;;;;IAEf,KAAK,GAAG,EAAE;;IAGV,OAAO,GAAG,EAAE;;IAGK,KAAK,GAAsB,MAAM;;IAGjC,UAAU,GAA2B,MAAM;;IAG3C,aAAa,GAA8B,SAAS;IAE7E,MAAM,GAAA;QACJ,MAAM,KAAK,IACT,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAA,EAC7B,IAAI,CAAC,KAAK,CACN,CACR;QACD,MAAM,IAAI,IACR,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAA,EAC3B,IAAI,CAAC,OAAO,CACR,CACR;AAED;;;AAGG;AACH,QAAA,OAAO,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAE,IAAI,CAAC,aAAa,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAQ;;;;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
|
|
3
|
+
const pfBadgeCss = () => `:host{align-items:center;border-radius:var(--radius-full);display:inline-flex;font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:1;min-height:22px;padding:0 var(--space-2)}:host([hidden]){display:none}:host([variant='neutral']){background:var(--pf-badge-neutral-background);color:var(--pf-badge-neutral-foreground)}:host([variant='brand']){background:var(--pf-badge-brand-background);color:var(--pf-badge-brand-foreground)}:host([variant='success']){background:var(--pf-badge-success-background);color:var(--pf-badge-success-foreground)}:host([variant='warning']){background:var(--pf-badge-warning-background);color:var(--pf-badge-warning-foreground)}:host([variant='danger']){background:var(--pf-badge-danger-background);color:var(--pf-badge-danger-foreground)}`;
|
|
4
|
+
|
|
5
|
+
const PfBadge = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Colour treatment. Reflected so the stylesheet can select on it. */
|
|
10
|
+
variant = 'neutral';
|
|
11
|
+
render() {
|
|
12
|
+
return (h(Host, { key: 'b89402baeefee0c660694be6d26124c7b5a7c44f' }, h("slot", { key: '5df44b2057e50dfe77519f03ac67b2a1a287ec2d' })));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
PfBadge.style = pfBadgeCss();
|
|
16
|
+
|
|
17
|
+
export { PfBadge as pf_badge };
|
|
18
|
+
//# sourceMappingURL=pf-badge.entry.js.map
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=pf-badge.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-badge.entry.js","sources":["src/components/pf-badge/pf-badge.css?tag=pf-badge&encapsulation=shadow","src/components/pf-badge/pf-badge.tsx"],"sourcesContent":["/*\n * The host is the badge. There is no inner wrapper to expose as a part,\n * because a consumer styling the badge styles `pf-badge` itself.\n */\n:host {\n align-items: center;\n border-radius: var(--radius-full);\n display: inline-flex;\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-medium);\n line-height: 1;\n min-height: 22px;\n padding: 0 var(--space-2);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([variant='neutral']) {\n background: var(--pf-badge-neutral-background);\n color: var(--pf-badge-neutral-foreground);\n}\n\n:host([variant='brand']) {\n background: var(--pf-badge-brand-background);\n color: var(--pf-badge-brand-foreground);\n}\n\n:host([variant='success']) {\n background: var(--pf-badge-success-background);\n color: var(--pf-badge-success-foreground);\n}\n\n:host([variant='warning']) {\n background: var(--pf-badge-warning-background);\n color: var(--pf-badge-warning-foreground);\n}\n\n:host([variant='danger']) {\n background: var(--pf-badge-danger-background);\n color: var(--pf-badge-danger-foreground);\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\nexport type PfBadgeVariant = 'neutral' | 'brand' | 'success' | 'warning' | 'danger';\n\n/**\n * A short status or count, rendered inline with the text around it.\n *\n * The leaf the `::part()` and reflected-attribute conventions were established\n * on, back when the stakes were low.\n *\n * @slot - the badge's content.\n */\n@Component({\n tag: 'pf-badge',\n styleUrl: 'pf-badge.css',\n shadow: true,\n})\nexport class PfBadge {\n /** Colour treatment. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) variant: PfBadgeVariant = 'neutral';\n\n render() {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,UAAU,GAAG,MAAM,CAAC,uxBAAuxB,CAAC;;MCiBryB,OAAO,GAAA,MAAA;;;;;IAEO,OAAO,GAAmB,SAAS;IAE5D,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACH;;;;;;;"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
import { c as chartSeriesColor, n as niceAxisTicks, b as barGeometry, C as CHART_VIEW, p as plotY, a as CHART_PADDING, d as CHART_PLOT, f as formatAxisTick, e as axisLabelStep } from './cartesian-rMXGMSEx.js';
|
|
3
|
+
import './pie-COAc4ZDB.js';
|
|
4
|
+
|
|
5
|
+
const pfBarChartCss = () => `:host{display:flex;flex-direction:column;gap:var(--space-3);width:100%}:host([hidden]){display:none}.svg{display:block;height:auto;overflow:visible;width:100%}.empty{align-items:center;color:var(--pf-chart-text-muted);display:flex;font-size:var(--font-size-sm);height:120px;justify-content:center}.grid{stroke:var(--pf-chart-grid);stroke-width:1}.tick{fill:var(--pf-chart-text-muted);font-family:inherit;font-size:var(--font-size-2xs)}.tick--y{dominant-baseline:middle;text-anchor:end}.tick--x{dominant-baseline:hanging;text-anchor:middle}.axis-label{fill:var(--pf-chart-text-muted);font-family:inherit;font-size:var(--font-size-2xs);text-anchor:middle}.bar{transition:opacity 80ms ease}.bar:hover{opacity:0.75}.legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);list-style:none;margin:0;padding:0;padding-inline-start:var(--pf-chart-plot-inset-left, 0)}.legend.legend--hidden{display:none}.legend slot{display:contents}@media (prefers-reduced-motion: reduce){.bar{transition:none}}`;
|
|
6
|
+
|
|
7
|
+
const PfBarChart = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
get el() { return getElement(this); }
|
|
12
|
+
/** The rows to plot. An array, or JSON for plain HTML. */
|
|
13
|
+
data = [];
|
|
14
|
+
/** Stack each group's series rather than standing them side by side. */
|
|
15
|
+
stacked = false;
|
|
16
|
+
showLegend = true;
|
|
17
|
+
yAxisLabel;
|
|
18
|
+
label;
|
|
19
|
+
series = [];
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.sync();
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
this.sync();
|
|
25
|
+
}
|
|
26
|
+
async refresh() {
|
|
27
|
+
this.sync();
|
|
28
|
+
}
|
|
29
|
+
/** Direct children only; named to avoid shadowing `Element.children`. */
|
|
30
|
+
get seriesElements() {
|
|
31
|
+
return Array.from(this.el.children).filter((child) => child.tagName.toLowerCase() === 'pf-chart-series');
|
|
32
|
+
}
|
|
33
|
+
get rows() {
|
|
34
|
+
const raw = this.data;
|
|
35
|
+
if (Array.isArray(raw))
|
|
36
|
+
return raw;
|
|
37
|
+
try {
|
|
38
|
+
const parsed = JSON.parse(String(raw || '[]'));
|
|
39
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
sync() {
|
|
46
|
+
this.series = this.seriesElements.map((element, index) => {
|
|
47
|
+
const node = element;
|
|
48
|
+
const color = chartSeriesColor(index, node.color ?? element.getAttribute('color') ?? undefined);
|
|
49
|
+
element.swatch = color;
|
|
50
|
+
return { key: node.seriesKey ?? element.getAttribute('series-key') ?? '', color };
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const rows = this.rows;
|
|
55
|
+
const series = this.series;
|
|
56
|
+
if (rows.length === 0 || series.length === 0) {
|
|
57
|
+
return (h(Host, null, h("div", { class: "empty", part: "empty" }, h("slot", { name: "empty" }, "No data")), h("ul", { class: "legend legend--hidden", part: "legend" }, h("slot", { onSlotchange: () => this.refresh() }))));
|
|
58
|
+
}
|
|
59
|
+
/*
|
|
60
|
+
* Clamped here and nowhere else. A negative value must not pull a stack
|
|
61
|
+
* down, and it must not give a `<rect>` a negative `height` — which is
|
|
62
|
+
* an error the browser drops the element for. One clamp rather than two,
|
|
63
|
+
* so there is one thing to keep right.
|
|
64
|
+
*/
|
|
65
|
+
const valueAt = (row, key) => Math.max(0, Number(row[key] ?? 0) || 0);
|
|
66
|
+
/*
|
|
67
|
+
* A stacked chart's scale is the tallest *stack*, not the tallest bar —
|
|
68
|
+
* otherwise the top of the stack is drawn above the plot.
|
|
69
|
+
*/
|
|
70
|
+
const totals = this.stacked
|
|
71
|
+
? rows.map((row) => series.reduce((sum, item) => sum + valueAt(row, item.key), 0))
|
|
72
|
+
: series.flatMap((item) => rows.map((row) => valueAt(row, item.key)));
|
|
73
|
+
const ticks = niceAxisTicks(Math.max(0, ...totals));
|
|
74
|
+
const maxTick = ticks[ticks.length - 1];
|
|
75
|
+
const geometry = barGeometry(rows.length, series.length, this.stacked);
|
|
76
|
+
const labelStep = axisLabelStep(rows.length);
|
|
77
|
+
const floor = CHART_PADDING.top + CHART_PLOT.height;
|
|
78
|
+
return (h(Host, { style: {
|
|
79
|
+
'--pf-chart-plot-inset-left': `${(CHART_PADDING.left / CHART_VIEW.width) * 100}%`,
|
|
80
|
+
} }, h("svg", { class: "svg", part: "svg", viewBox: `0 0 ${CHART_VIEW.width} ${CHART_VIEW.height}`, role: "img", "aria-label": this.label ?? this.yAxisLabel ?? 'Bar chart' }, ticks.map((tick) => {
|
|
81
|
+
const y = plotY(tick, maxTick);
|
|
82
|
+
return (h("g", null, h("line", { class: "grid", part: "grid", x1: CHART_PADDING.left, y1: y, x2: CHART_PADDING.left + CHART_PLOT.width, y2: y }), h("text", { class: "tick tick--y", part: "tick", x: CHART_PADDING.left - 8, y: y }, formatAxisTick(tick))));
|
|
83
|
+
}), rows.map((row, index) => index % labelStep === 0 ? (h("text", { class: "tick tick--x", part: "tick", x: geometry.groupCenters[index], y: floor + 20 }, row.label)) : null), this.yAxisLabel && (h("text", { class: "axis-label", x: -112, y: 14, transform: "rotate(-90)" }, this.yAxisLabel)), rows.map((row, groupIndex) => {
|
|
84
|
+
let base = 0;
|
|
85
|
+
return (h("g", null, series.map((item, seriesIndex) => {
|
|
86
|
+
const value = valueAt(row, item.key);
|
|
87
|
+
const height = (value / (maxTick > 0 ? maxTick : 1)) * CHART_PLOT.height;
|
|
88
|
+
const x = this.stacked
|
|
89
|
+
? geometry.groupLefts[groupIndex]
|
|
90
|
+
: geometry.groupLefts[groupIndex] +
|
|
91
|
+
seriesIndex * (geometry.barWidth + geometry.gap);
|
|
92
|
+
const y = this.stacked ? plotY(base + value, maxTick) : floor - height;
|
|
93
|
+
if (this.stacked)
|
|
94
|
+
base += value;
|
|
95
|
+
return (h("rect", { class: "bar", part: "bar", x: x, y: y, width: geometry.barWidth, height: height, rx: "2", fill: item.color }, h("title", null, `${row.label} — ${item.key}: ${formatAxisTick(value)}`)));
|
|
96
|
+
})));
|
|
97
|
+
})), h("ul", { class: { legend: true, 'legend--hidden': !this.showLegend || series.length < 2 }, part: "legend" }, h("slot", { onSlotchange: () => this.refresh() }))));
|
|
98
|
+
}
|
|
99
|
+
static get watchers() { return {
|
|
100
|
+
"data": [{
|
|
101
|
+
"sync": 0
|
|
102
|
+
}]
|
|
103
|
+
}; }
|
|
104
|
+
};
|
|
105
|
+
PfBarChart.style = pfBarChartCss();
|
|
106
|
+
|
|
107
|
+
export { PfBarChart as pf_bar_chart };
|
|
108
|
+
//# sourceMappingURL=pf-bar-chart.entry.js.map
|
|
109
|
+
|
|
110
|
+
//# sourceMappingURL=pf-bar-chart.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-bar-chart.entry.js","sources":["src/components/pf-bar-chart/pf-bar-chart.css?tag=pf-bar-chart&encapsulation=shadow","src/components/pf-bar-chart/pf-bar-chart.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n gap: var(--space-3);\n width: 100%;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.svg {\n display: block;\n height: auto;\n /* The y-axis label is drawn outside the plot, so the box must not clip. */\n overflow: visible;\n width: 100%;\n}\n\n.empty {\n align-items: center;\n color: var(--pf-chart-text-muted);\n display: flex;\n font-size: var(--font-size-sm);\n height: 120px;\n justify-content: center;\n}\n\n.grid {\n stroke: var(--pf-chart-grid);\n stroke-width: 1;\n}\n\n.tick {\n fill: var(--pf-chart-text-muted);\n font-family: inherit;\n font-size: var(--font-size-2xs);\n}\n\n.tick--y {\n dominant-baseline: middle;\n text-anchor: end;\n}\n\n.tick--x {\n dominant-baseline: hanging;\n text-anchor: middle;\n}\n\n.axis-label {\n fill: var(--pf-chart-text-muted);\n font-family: inherit;\n font-size: var(--font-size-2xs);\n text-anchor: middle;\n}\n\n.bar {\n transition: opacity 80ms ease;\n}\n\n.bar:hover {\n opacity: 0.75;\n}\n\n.legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-2) var(--space-4);\n list-style: none;\n margin: 0;\n /*\n * Lines the legend's start edge up with the plot area: the SVG is inset by\n * the y-axis gutter, and the inset is set inline from the chart's geometry.\n */\n padding: 0;\n padding-inline-start: var(--pf-chart-plot-inset-left, 0);\n}\n\n/*\n * Hidden rather than dropped, so the series stay slotted and `slotchange`\n * still fires. Two classes deep, because the tie breaks on source order.\n */\n.legend.legend--hidden {\n display: none;\n}\n\n/* The series are flex children of the list, not of a box inside it. */\n.legend slot {\n display: contents;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bar {\n transition: none;\n }\n}\n","import {\n CHART_PADDING,\n CHART_PLOT,\n CHART_VIEW,\n axisLabelStep,\n barGeometry,\n chartSeriesColor,\n formatAxisTick,\n niceAxisTicks,\n plotY,\n} from '@pitchfork-ui/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport type { PfChartRow } from '../pf-line-chart/pf-line-chart';\n\n/**\n * A grouped or stacked bar chart over `pf-chart-series` children.\n *\n * The same split as `pf-line-chart`: the rows are bulk numbers in a property,\n * the series are named and coloured and live in the light DOM so the legend\n * can reach their labels.\n *\n * @slot - the `pf-chart-series` children.\n * @slot empty - what to show when there is nothing to draw.\n * @part svg - the drawing.\n * @part grid - one gridline.\n * @part tick - one axis label.\n * @part bar - one bar.\n * @part legend - the list the series are slotted into.\n * @part empty - the empty state's box.\n */\n@Component({\n tag: 'pf-bar-chart',\n styleUrl: 'pf-bar-chart.css',\n shadow: true,\n})\nexport class PfBarChart {\n @Element() el!: HTMLElement;\n\n /** The rows to plot. An array, or JSON for plain HTML. */\n @Prop() data: PfChartRow[] | string = [];\n\n /** Stack each group's series rather than standing them side by side. */\n @Prop({ reflect: true }) stacked = false;\n\n @Prop({ reflect: true }) showLegend = true;\n\n @Prop() yAxisLabel?: string;\n\n @Prop() label?: string;\n\n @State() series: { key: string; color: string }[] = [];\n\n componentWillLoad() {\n this.sync();\n }\n\n componentDidLoad() {\n this.sync();\n }\n\n @Method()\n async refresh() {\n this.sync();\n }\n\n /** Direct children only; named to avoid shadowing `Element.children`. */\n private get seriesElements(): HTMLElement[] {\n return Array.from(this.el.children).filter(\n (child) => child.tagName.toLowerCase() === 'pf-chart-series',\n ) as HTMLElement[];\n }\n\n private get rows(): PfChartRow[] {\n const raw = this.data;\n if (Array.isArray(raw)) return raw;\n\n try {\n const parsed = JSON.parse(String(raw || '[]'));\n return Array.isArray(parsed) ? parsed : [];\n } catch {\n return [];\n }\n }\n\n @Watch('data')\n sync() {\n this.series = this.seriesElements.map((element, index) => {\n const node = element as HTMLElement & { seriesKey?: string; color?: string };\n const color = chartSeriesColor(\n index,\n node.color ?? element.getAttribute('color') ?? undefined,\n );\n\n (element as HTMLElement & { swatch: string }).swatch = color;\n\n return { key: node.seriesKey ?? element.getAttribute('series-key') ?? '', color };\n });\n }\n\n render() {\n const rows = this.rows;\n const series = this.series;\n\n if (rows.length === 0 || series.length === 0) {\n return (\n <Host>\n <div class=\"empty\" part=\"empty\">\n <slot name=\"empty\">No data</slot>\n </div>\n <ul class=\"legend legend--hidden\" part=\"legend\">\n <slot onSlotchange={() => this.refresh()} />\n </ul>\n </Host>\n );\n }\n\n /*\n * Clamped here and nowhere else. A negative value must not pull a stack\n * down, and it must not give a `<rect>` a negative `height` — which is\n * an error the browser drops the element for. One clamp rather than two,\n * so there is one thing to keep right.\n */\n const valueAt = (row: PfChartRow, key: string) => Math.max(0, Number(row[key] ?? 0) || 0);\n /*\n * A stacked chart's scale is the tallest *stack*, not the tallest bar —\n * otherwise the top of the stack is drawn above the plot.\n */\n const totals = this.stacked\n ? rows.map((row) => series.reduce((sum, item) => sum + valueAt(row, item.key), 0))\n : series.flatMap((item) => rows.map((row) => valueAt(row, item.key)));\n\n const ticks = niceAxisTicks(Math.max(0, ...totals));\n const maxTick = ticks[ticks.length - 1];\n const geometry = barGeometry(rows.length, series.length, this.stacked);\n const labelStep = axisLabelStep(rows.length);\n const floor = CHART_PADDING.top + CHART_PLOT.height;\n\n return (\n <Host\n style={{\n '--pf-chart-plot-inset-left': `${(CHART_PADDING.left / CHART_VIEW.width) * 100}%`,\n }}\n >\n <svg\n class=\"svg\"\n part=\"svg\"\n viewBox={`0 0 ${CHART_VIEW.width} ${CHART_VIEW.height}`}\n role=\"img\"\n aria-label={this.label ?? this.yAxisLabel ?? 'Bar chart'}\n >\n {ticks.map((tick) => {\n const y = plotY(tick, maxTick);\n return (\n <g>\n <line\n class=\"grid\"\n part=\"grid\"\n x1={CHART_PADDING.left}\n y1={y}\n x2={CHART_PADDING.left + CHART_PLOT.width}\n y2={y}\n />\n <text class=\"tick tick--y\" part=\"tick\" x={CHART_PADDING.left - 8} y={y}>\n {formatAxisTick(tick)}\n </text>\n </g>\n );\n })}\n\n {rows.map((row, index) =>\n index % labelStep === 0 ? (\n <text\n class=\"tick tick--x\"\n part=\"tick\"\n x={geometry.groupCenters[index]}\n y={floor + 20}\n >\n {row.label}\n </text>\n ) : null,\n )}\n\n {this.yAxisLabel && (\n <text\n class=\"axis-label\"\n x={-(CHART_PADDING.top + CHART_PLOT.height / 2)}\n y={14}\n transform=\"rotate(-90)\"\n >\n {this.yAxisLabel}\n </text>\n )}\n\n {rows.map((row, groupIndex) => {\n let base = 0;\n\n return (\n <g>\n {series.map((item, seriesIndex) => {\n const value = valueAt(row, item.key);\n const height = (value / (maxTick > 0 ? maxTick : 1)) * CHART_PLOT.height;\n const x = this.stacked\n ? geometry.groupLefts[groupIndex]\n : geometry.groupLefts[groupIndex] +\n seriesIndex * (geometry.barWidth + geometry.gap);\n const y = this.stacked ? plotY(base + value, maxTick) : floor - height;\n\n if (this.stacked) base += value;\n\n return (\n <rect\n class=\"bar\"\n part=\"bar\"\n x={x}\n y={y}\n width={geometry.barWidth}\n height={height}\n rx=\"2\"\n fill={item.color}\n >\n <title>{`${row.label} — ${item.key}: ${formatAxisTick(value)}`}</title>\n </rect>\n );\n })}\n </g>\n );\n })}\n </svg>\n\n <ul\n class={{ legend: true, 'legend--hidden': !this.showLegend || series.length < 2 }}\n part=\"legend\"\n >\n <slot onSlotchange={() => this.refresh()} />\n </ul>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
|
|
3
|
+
const pfBreadcrumbCss = () => `:host{align-items:center;display:inline-flex;gap:var(--space-2)}:host([hidden]){display:none}.link{color:var(--pf-breadcrumbs-link-color);font-size:var(--font-size-sm);line-height:1.4;text-decoration:none}a.link:hover{color:var(--pf-breadcrumbs-link-hover-color);text-decoration:underline}:host([current-page]) .link,.link[aria-current='page']{color:var(--pf-breadcrumbs-link-current-color);font-weight:var(--font-weight-medium);text-decoration:none}.separator{color:var(--pf-breadcrumbs-separator-color);display:inline-flex;font-size:var(--font-size-xs);line-height:1}`;
|
|
4
|
+
|
|
5
|
+
const PfBreadcrumb = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Where the crumb goes. Reflected; a consumer's stylesheet reads it. */
|
|
10
|
+
href;
|
|
11
|
+
/**
|
|
12
|
+
* Set it to mark this crumb as the current page, rather than letting the
|
|
13
|
+
* last crumb be it.
|
|
14
|
+
*
|
|
15
|
+
* This is the *asking* half, and the group never writes it — `currentPage`
|
|
16
|
+
* below is the answer. Keeping the two apart is what lets the trail change:
|
|
17
|
+
* if the group wrote its answer back here, the crumb that happened to be
|
|
18
|
+
* last would look like a crumb the consumer had marked, and appending
|
|
19
|
+
* another would leave the mark behind on it.
|
|
20
|
+
*/
|
|
21
|
+
current = false;
|
|
22
|
+
/**
|
|
23
|
+
* Set by the group: the resolved current page, which is the one thing that
|
|
24
|
+
* renders `aria-current="page"`. Exactly one crumb in a trail carries it.
|
|
25
|
+
*/
|
|
26
|
+
currentPage = false;
|
|
27
|
+
/** Set by the group: no separator is drawn after the last crumb. */
|
|
28
|
+
last = false;
|
|
29
|
+
/** Set by the group from its own `separator`. */
|
|
30
|
+
separator = '/';
|
|
31
|
+
render() {
|
|
32
|
+
const label = h("slot", { key: '9867775efe95a88c9d79894089761a835aec4a2c' });
|
|
33
|
+
return (h(Host, { key: 'ed743e2c769ac704621241b6c63857e0919d7386', role: "listitem" }, this.href ? (h("a", { class: "link", part: "link", href: this.href, "aria-current": this.currentPage ? 'page' : null }, label)) : (h("span", { class: "link", part: "link", "aria-current": this.currentPage ? 'page' : null }, label)), !this.last && (h("span", { key: '0bf16efee1d46f196bbf61555d05042b0bb8040d', class: "separator", part: "separator", "aria-hidden": "true" }, this.separator))));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
PfBreadcrumb.style = pfBreadcrumbCss();
|
|
37
|
+
|
|
38
|
+
export { PfBreadcrumb as pf_breadcrumb };
|
|
39
|
+
//# sourceMappingURL=pf-breadcrumb.entry.js.map
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=pf-breadcrumb.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-breadcrumb.entry.js","sources":["src/components/pf-breadcrumb/pf-breadcrumb.css?tag=pf-breadcrumb&encapsulation=shadow","src/components/pf-breadcrumb/pf-breadcrumb.tsx"],"sourcesContent":[":host {\n align-items: center;\n display: inline-flex;\n gap: var(--space-2);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.link {\n color: var(--pf-breadcrumbs-link-color);\n font-size: var(--font-size-sm);\n line-height: 1.4;\n text-decoration: none;\n}\n\na.link:hover {\n color: var(--pf-breadcrumbs-link-hover-color);\n text-decoration: underline;\n}\n\n/*\n * `current-page` is the group's answer, not the consumer's `current` ask --\n * a trail where nothing was marked has a current page all the same, and this\n * is the attribute that says which.\n */\n:host([current-page]) .link,\n.link[aria-current='page'] {\n color: var(--pf-breadcrumbs-link-current-color);\n font-weight: var(--font-weight-medium);\n text-decoration: none;\n}\n\n.separator {\n color: var(--pf-breadcrumbs-separator-color);\n display: inline-flex;\n font-size: var(--font-size-xs);\n line-height: 1;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * One crumb in a `pf-breadcrumbs` trail.\n *\n * With an `href` it renders a link; without one it renders a plain span, which\n * is both what a current page wants and the way to use a framework's own\n * router — slot an `<a routerLink>` or a `<Link>` in and leave `href` unset.\n *\n * `currentPage`, `last` and `separator` are the group's to set: only it can\n * see the trail. A consumer asks by setting `current`; the group resolves the\n * trail with core's rule and writes the answer to `currentPage`.\n *\n * @slot - the crumb's label.\n * @part link - the link, or the span standing in for one.\n * @part separator - the separator after this crumb. Absent on the last.\n */\n@Component({\n tag: 'pf-breadcrumb',\n styleUrl: 'pf-breadcrumb.css',\n shadow: true,\n})\nexport class PfBreadcrumb {\n /** Where the crumb goes. Reflected; a consumer's stylesheet reads it. */\n @Prop({ reflect: true }) href?: string;\n\n /**\n * Set it to mark this crumb as the current page, rather than letting the\n * last crumb be it.\n *\n * This is the *asking* half, and the group never writes it — `currentPage`\n * below is the answer. Keeping the two apart is what lets the trail change:\n * if the group wrote its answer back here, the crumb that happened to be\n * last would look like a crumb the consumer had marked, and appending\n * another would leave the mark behind on it.\n */\n @Prop({ reflect: true }) current = false;\n\n /**\n * Set by the group: the resolved current page, which is the one thing that\n * renders `aria-current=\"page\"`. Exactly one crumb in a trail carries it.\n */\n @Prop({ mutable: true, reflect: true }) currentPage = false;\n\n /** Set by the group: no separator is drawn after the last crumb. */\n @Prop({ mutable: true, reflect: true }) last = false;\n\n /** Set by the group from its own `separator`. */\n @Prop({ mutable: true }) separator = '/';\n\n render() {\n const label = <slot />;\n\n return (\n <Host role=\"listitem\">\n {this.href ? (\n <a\n class=\"link\"\n part=\"link\"\n href={this.href}\n aria-current={this.currentPage ? 'page' : null}\n >\n {label}\n </a>\n ) : (\n <span class=\"link\" part=\"link\" aria-current={this.currentPage ? 'page' : null}>\n {label}\n </span>\n )}\n {!this.last && (\n <span class=\"separator\" part=\"separator\" aria-hidden=\"true\">\n {this.separator}\n </span>\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,MAAM,CAAC,yjBAAyjB,CAAC;;MCsB5kB,YAAY,GAAA,MAAA;;;;;AAEE,IAAA,IAAI;AAE7B;;;;;;;;;AASG;IACsB,OAAO,GAAG,KAAK;AAExC;;;AAGG;IACqC,WAAW,GAAG,KAAK;;IAGnB,IAAI,GAAG,KAAK;;IAG3B,SAAS,GAAG,GAAG;IAExC,MAAM,GAAA;AACJ,QAAA,MAAM,KAAK,GAAG,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ;AAEtB,QAAA,QACE,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,IAAI,EAAC,UAAU,EAAA,EAClB,IAAI,CAAC,IAAI,IACR,CAAA,CAAA,GAAA,EAAA,EACE,KAAK,EAAC,MAAM,EACZ,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,EAAA,cAAA,EACD,IAAI,CAAC,WAAW,GAAG,MAAM,GAAG,IAAI,EAAA,EAE7C,KAAK,CACJ,KAEJ,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAA,cAAA,EAAe,IAAI,CAAC,WAAW,GAAG,MAAM,GAAG,IAAI,EAAA,EAC1E,KAAK,CACD,CACR,EACA,CAAC,IAAI,CAAC,IAAI,KACT,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,WAAW,EAAA,aAAA,EAAa,MAAM,EAAA,EACxD,IAAI,CAAC,SAAS,CACV,CACR,CACI;;;;;;;"}
|