@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 @@
|
|
|
1
|
+
{"version":3,"names":["pfLineChartCss","PfLineChart","data","area","curved","showLegend","yAxisLabel","label","series","componentWillLoad","this","sync","componentDidLoad","refresh","seriesElements","Array","from","el","children","filter","child","tagName","toLowerCase","rows","raw","isArray","parsed","JSON","parse","String","elements","map","element","index","node","color","chartSeriesColor","getAttribute","undefined","swatch","key","seriesKey","dashed","hasAttribute","render","length","h","Host","class","part","name","onSlotchange","valueAt","row","Number","highest","Math","max","flatMap","item","ticks","niceAxisTicks","maxTick","labelStep","axisLabelStep","floor","CHART_PADDING","top","CHART_PLOT","height","style","left","CHART_VIEW","width","viewBox","role","tick","y","plotY","x1","y1","x2","y2","x","formatAxisTick","plotX","transform","points","line","smoothSeriesPath","straightSeriesPath","d","areaSeriesPath","fill","stroke","point","cx","cy","r","legend"],"sources":["src/components/pf-line-chart/pf-line-chart.css?tag=pf-line-chart&encapsulation=shadow","src/components/pf-line-chart/pf-line-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/* The dots appear on hover, so the line reads cleanly at rest. */\n.dot {\n opacity: 0;\n transition: opacity 80ms ease;\n}\n\n.svg:hover .dot {\n opacity: 1;\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 .dot {\n transition: none;\n }\n}\n","import {\n CHART_PADDING,\n CHART_PLOT,\n CHART_VIEW,\n areaSeriesPath,\n axisLabelStep,\n chartSeriesColor,\n formatAxisTick,\n niceAxisTicks,\n plotX,\n plotY,\n smoothSeriesPath,\n straightSeriesPath,\n} from '@pitchfork-ui/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\n\n/** One row of a chart's data: a label and a number per series. */\nexport type PfChartRow = { label: string } & Record<string, string | number>;\n\n/**\n * A line or area chart over `pf-chart-series` children.\n *\n * The split follows what the data is: the rows are bulk numbers and live in a\n * property, while the series are the part with names and colours and live in\n * the light DOM, where a consumer can loop over them and where the legend can\n * reach their labels.\n *\n * Every scale and path is core's, so this and the React `LineChart` draw the\n * same chart — the axis labels and the geometry have to come from the same\n * tick scale, or the gridlines say one thing and the line says another.\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 line - one series' line.\n * @part area - one series' fill, on the area variant.\n * @part dot - one data point.\n * @part legend - the list the series are slotted into.\n * @part empty - the empty state's box.\n */\n@Component({\n tag: 'pf-line-chart',\n styleUrl: 'pf-line-chart.css',\n shadow: true,\n})\nexport class PfLineChart {\n @Element() el!: HTMLElement;\n\n /**\n * The rows to plot.\n *\n * An array for a framework consumer, or JSON for plain HTML, because\n * Stencil coerces an attribute only for the primitive types it recognises.\n */\n @Prop() data: PfChartRow[] | string = [];\n\n /** Fill under each line. Reflected. */\n @Prop({ reflect: true }) area = false;\n\n /** Curve the lines through their points rather than joining them straight. */\n @Prop({ reflect: true }) curved = true;\n\n @Prop({ reflect: true }) showLegend = true;\n\n /** Printed down the y axis, and used as the chart's name when it has none. */\n @Prop() yAxisLabel?: string;\n\n /** The chart's accessible name. */\n @Prop() label?: string;\n\n /** The series, read from the light DOM. */\n @State() series: { key: string; color: string; dashed: boolean }[] = [];\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 /** Re-reads the series, for a consumer who changed one through a property. */\n @Method()\n async refresh() {\n this.sync();\n }\n\n /**\n * Direct children only: a nested chart owns its own series.\n *\n * Named `seriesElements`, not `children`: a component class's members land\n * on the custom element itself, so a getter called `children` shadows\n * `Element.children` and anything that walks it recurses for ever.\n */\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 // A malformed attribute is an empty chart, not a thrown render.\n return [];\n }\n }\n\n @Watch('data')\n sync() {\n const elements = this.seriesElements;\n\n this.series = elements.map((element, index) => {\n const node = element as HTMLElement & {\n seriesKey?: string;\n color?: string;\n dashed?: boolean;\n };\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 {\n key: node.seriesKey ?? element.getAttribute('series-key') ?? '',\n color,\n dashed: node.dashed ?? element.hasAttribute('dashed'),\n };\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 {/* The list stays in the tree, or `slotchange` never fires again. */}\n <ul class=\"legend legend--hidden\" part=\"legend\">\n <slot onSlotchange={() => this.refresh()} />\n </ul>\n </Host>\n );\n }\n\n const valueAt = (row: PfChartRow, key: string) => Number(row[key] ?? 0);\n const highest = Math.max(\n 0,\n ...series.flatMap((item) => rows.map((row) => valueAt(row, item.key))),\n );\n const ticks = niceAxisTicks(highest);\n const maxTick = ticks[ticks.length - 1];\n const labelStep = axisLabelStep(rows.length);\n const floor = CHART_PADDING.top + CHART_PLOT.height;\n\n return (\n <Host\n style={{\n // Lets the legend's start edge line up with the plot area.\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 ?? 'Line 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 class=\"tick tick--x\" part=\"tick\" x={plotX(index, rows.length)} y={floor + 20}>\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 {series.map((item) => {\n const points = rows.map((row, index) => ({\n x: plotX(index, rows.length),\n y: plotY(valueAt(row, item.key), maxTick),\n }));\n const line = this.curved ? smoothSeriesPath(points) : straightSeriesPath(points);\n\n return (\n <g>\n {this.area && (\n <path\n class=\"area\"\n part=\"area\"\n d={areaSeriesPath(line, points)}\n fill={item.color}\n fill-opacity=\"0.12\"\n stroke=\"none\"\n />\n )}\n <path\n class=\"line\"\n part=\"line\"\n d={line}\n fill=\"none\"\n stroke={item.color}\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-dasharray={item.dashed ? '6 4' : undefined}\n />\n {points.map((point, index) => (\n <circle\n class=\"dot\"\n part=\"dot\"\n cx={point.x}\n cy={point.y}\n r=\"3.5\"\n fill={item.color}\n >\n <title>{`${rows[index].label}: ${formatAxisTick(\n valueAt(rows[index], item.key),\n )}`}</title>\n </circle>\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"],"mappings":"kMAAA,MAAMA,EAAiB,IAAM,u/B,MC+ChBC,EAAW,M,iDASdC,KAA8B,GAGbC,KAAO,MAGPC,OAAS,KAETC,WAAa,KAG9BC,WAGAC,MAGCC,OAA4D,GAGrE,iBAAAC,GACEC,KAAKC,M,CAGP,gBAAAC,GACEF,KAAKC,M,CAKP,aAAME,GACJH,KAAKC,M,CAUP,kBAAYG,GACV,OAAOC,MAAMC,KAAKN,KAAKO,GAAGC,UAAUC,QACjCC,GAAUA,EAAMC,QAAQC,gBAAkB,mB,CAI/C,QAAYC,GACV,MAAMC,EAAMd,KAAKR,KACjB,GAAIa,MAAMU,QAAQD,GAAM,OAAOA,EAE/B,IACE,MAAME,EAASC,KAAKC,MAAMC,OAAOL,GAAO,OACxC,OAAOT,MAAMU,QAAQC,GAAUA,EAAS,E,CACxC,MAEA,MAAO,E,EAKX,IAAAf,GACE,MAAMmB,EAAWpB,KAAKI,eAEtBJ,KAAKF,OAASsB,EAASC,KAAI,CAACC,EAASC,KACnC,MAAMC,EAAOF,EAKb,MAAMG,EAAQC,EACZH,EACAC,EAAKC,OAASH,EAAQK,aAAa,UAAYC,WAGhDN,EAA6CO,OAASJ,EAEvD,MAAO,CACLK,IAAKN,EAAKO,WAAaT,EAAQK,aAAa,eAAiB,GAC7DF,QACAO,OAAQR,EAAKQ,QAAUV,EAAQW,aAAa,UAC7C,G,CAIL,MAAAC,GACE,MAAMrB,EAAOb,KAAKa,KAClB,MAAMf,EAASE,KAAKF,OAEpB,GAAIe,EAAKsB,SAAW,GAAKrC,EAAOqC,SAAW,EAAG,CAC5C,OACEC,EAACC,EAAI,KACHD,EAAA,OAAKE,MAAM,QAAQC,KAAK,SACtBH,EAAA,QAAMI,KAAK,SAAO,YAGpBJ,EAAA,MAAIE,MAAM,wBAAwBC,KAAK,UACrCH,EAAA,QAAMK,aAAc,IAAMzC,KAAKG,a,CAMvC,MAAMuC,EAAU,CAACC,EAAiBb,IAAgBc,OAAOD,EAAIb,IAAQ,GACrE,MAAMe,EAAUC,KAAKC,IACnB,KACGjD,EAAOkD,SAASC,GAASpC,EAAKQ,KAAKsB,GAAQD,EAAQC,EAAKM,EAAKnB,UAElE,MAAMoB,EAAQC,EAAcN,GAC5B,MAAMO,EAAUF,EAAMA,EAAMf,OAAS,GACrC,MAAMkB,EAAYC,EAAczC,EAAKsB,QACrC,MAAMoB,EAAQC,EAAcC,IAAMC,EAAWC,OAE7C,OACEvB,EAACC,EAAI,CACHuB,MAAO,CAEL,6BAA8B,GAAIJ,EAAcK,KAAOC,EAAWC,MAAS,SAG7E3B,EAAA,OACEE,MAAM,MACNC,KAAK,MACLyB,QAAS,OAAOF,EAAWC,SAASD,EAAWH,SAC/CM,KAAK,MAAK,aACEjE,KAAKH,OAASG,KAAKJ,YAAc,cAE5CsD,EAAM7B,KAAK6C,IACV,MAAMC,EAAIC,EAAMF,EAAMd,GACtB,OACEhB,EAAA,SACEA,EAAA,QACEE,MAAM,OACNC,KAAK,OACL8B,GAAIb,EAAcK,KAClBS,GAAIH,EACJI,GAAIf,EAAcK,KAAOH,EAAWK,MACpCS,GAAIL,IAEN/B,EAAA,QAAME,MAAM,eAAeC,KAAK,OAAOkC,EAAGjB,EAAcK,KAAO,EAAGM,EAAGA,GAClEO,EAAeR,IAEhB,IAIPrD,EAAKQ,KAAI,CAACsB,EAAKpB,IACdA,EAAQ8B,IAAc,EACpBjB,EAAA,QAAME,MAAM,eAAeC,KAAK,OAAOkC,EAAGE,EAAMpD,EAAOV,EAAKsB,QAASgC,EAAGZ,EAAQ,IAC7EZ,EAAI9C,OAEL,OAGLG,KAAKJ,YACJwC,EAAA,QACEE,MAAM,aACNmC,GAAG,IACHN,EAAG,GACHS,UAAU,eAET5E,KAAKJ,YAITE,EAAOuB,KAAK4B,IACX,MAAM4B,EAAShE,EAAKQ,KAAI,CAACsB,EAAKpB,KAAK,CACjCkD,EAAGE,EAAMpD,EAAOV,EAAKsB,QACrBgC,EAAGC,EAAM1B,EAAQC,EAAKM,EAAKnB,KAAMsB,OAEnC,MAAM0B,EAAO9E,KAAKN,OAASqF,EAAiBF,GAAUG,EAAmBH,GAEzE,OACEzC,EAAA,SACGpC,KAAKP,MACJ2C,EAAA,QACEE,MAAM,OACNC,KAAK,OACL0C,EAAGC,EAAeJ,EAAMD,GACxBM,KAAMlC,EAAKxB,MAAK,eACH,OACb2D,OAAO,SAGXhD,EAAA,QACEE,MAAM,OACNC,KAAK,OACL0C,EAAGH,EACHK,KAAK,OACLC,OAAQnC,EAAKxB,MAAK,eACL,IAAG,iBACD,QAAO,kBACN,QAAO,mBACLwB,EAAKjB,OAAS,MAAQJ,YAEzCiD,EAAOxD,KAAI,CAACgE,EAAO9D,IAClBa,EAAA,UACEE,MAAM,MACNC,KAAK,MACL+C,GAAID,EAAMZ,EACVc,GAAIF,EAAMlB,EACVqB,EAAE,MACFL,KAAMlC,EAAKxB,OAEXW,EAAA,aAAQ,GAAGvB,EAAKU,GAAO1B,UAAU6E,EAC/BhC,EAAQ7B,EAAKU,GAAQ0B,EAAKnB,YAI9B,KAKVM,EAAA,MACEE,MAAO,CAAEmD,OAAQ,KAAM,kBAAmBzF,KAAKL,YAAcG,EAAOqC,OAAS,GAC7EI,KAAK,UAELH,EAAA,QAAMK,aAAc,IAAMzC,KAAKG,a","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as a,H as r}from"./p-Bm6UxEit.js";const s=()=>`:host{background:var(--pf-carousel-slide-background, transparent);color:var(--pf-carousel-slide-text);flex:0 0 100%;min-width:0;padding:var(--pf-carousel-slide-padding, 0)}:host([hidden]){display:none}`;const i=class{constructor(a){e(this,a)}active=false;position=1;total=1;render(){return a(r,{key:"5b8c82c4edca6c10ea5b20f1122cc62d8d37f0d5",role:"group","aria-roledescription":"slide","aria-label":`Slide ${this.position} of ${this.total}`,"aria-hidden":this.active?null:"true",inert:!this.active},a("slot",{key:"36ea0239c2c53b175e94f701cc047eabd4e1d41d"}))}};i.style=s();export{i as pf_carousel_slide};
|
|
2
|
+
//# sourceMappingURL=p-643f7e00.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfCarouselSlideCss","PfCarouselSlide","active","position","total","render","h","Host","key","role","this","inert"],"sources":["src/components/pf-carousel-slide/pf-carousel-slide.css?tag=pf-carousel-slide&encapsulation=shadow","src/components/pf-carousel-slide/pf-carousel-slide.tsx"],"sourcesContent":[":host {\n background: var(--pf-carousel-slide-background, transparent);\n color: var(--pf-carousel-slide-text);\n /* One slide per viewport, which is what the track's transform steps by. */\n flex: 0 0 100%;\n min-width: 0;\n padding: var(--pf-carousel-slide-padding, 0);\n}\n\n:host([hidden]) {\n display: none;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * One slide of a `pf-carousel`.\n *\n * The carousel tells it where it sits and whether it is the one on show; it\n * owns only what that means for itself — chiefly that an off-screen slide is\n * `inert`, so the focusable content inside it cannot be tabbed to while it is\n * scrolled out of sight.\n *\n * @slot - the slide's content.\n */\n@Component({\n tag: 'pf-carousel-slide',\n styleUrl: 'pf-carousel-slide.css',\n shadow: true,\n})\nexport class PfCarouselSlide {\n /** Set by the carousel: the slide on show. Reflected for the stylesheet. */\n @Prop({ mutable: true, reflect: true }) active = false;\n\n /** Set by the carousel: this slide's place, counting from 1. */\n @Prop({ mutable: true }) position = 1;\n\n /** Set by the carousel: how many slides there are. */\n @Prop({ mutable: true }) total = 1;\n\n render() {\n return (\n <Host\n role=\"group\"\n aria-roledescription=\"slide\"\n aria-label={`Slide ${this.position} of ${this.total}`}\n aria-hidden={this.active ? null : 'true'}\n /*\n * `inert` as well as `aria-hidden`: the slide is still laid out, just\n * scrolled out of view, so without it a button inside the next slide\n * is a tab stop nobody can see. The same reason an accordion's closed\n * panel is inert.\n */\n inert={!this.active}\n >\n <slot />\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAqB,IAAM,4M,MCiBpBC,EAAe,M,yBAEcC,OAAS,MAGxBC,SAAW,EAGXC,MAAQ,EAEjC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,QAAO,uBACS,QAAO,aAChB,SAASC,KAAKP,eAAeO,KAAKN,QAAO,cACxCM,KAAKR,OAAS,KAAO,OAOlCS,OAAQD,KAAKR,QAEbI,EAAA,QAAAE,IAAA,6C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,h as a,H as r}from"./p-Bm6UxEit.js";const i=()=>`:host{border-top:1px solid var(--pf-accordion-border);display:block}:host(:first-child){border-top:0}:host([hidden]){display:none}.heading{font-size:inherit;font-weight:inherit;margin:0}.trigger{align-items:center;background:transparent;border:0;color:var(--pf-accordion-trigger-text);cursor:pointer;display:flex;font:inherit;font-weight:var(--font-weight-medium);gap:var(--space-3);justify-content:space-between;padding:var(--space-3) var(--space-4);text-align:start;width:100%}.trigger:hover:not(:disabled){background:var(--pf-accordion-trigger-bg-hover)}.trigger:focus-visible{box-shadow:var(--pf-focus-ring);outline:none}.trigger:disabled{cursor:not-allowed;opacity:0.5}.icon{align-items:center;color:var(--pf-accordion-icon);display:inline-flex;flex-shrink:0;transition:transform var(--pf-transition-fast)}:host([expanded]) .icon{transform:rotate(180deg)}.panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--pf-transition-medium)}:host([expanded]) .panel{grid-template-rows:1fr}.content{color:var(--pf-accordion-content-text);min-height:0;overflow:hidden}.inner{padding:0 var(--space-4) var(--space-4)}@media (prefers-reduced-motion: reduce){.panel,.icon{transition:none}}`;const n=class{constructor(a){e(this,a);this.pfAccordionToggle=t(this,"pfAccordionToggle")}value="";disabled=false;expanded=false;headingLevel=3;pfAccordionToggle;get level(){const e=Math.round(Number(this.headingLevel));if(!Number.isFinite(e))return 3;return Math.min(Math.max(e,2),6)}onClick=()=>{if(this.disabled)return;this.pfAccordionToggle.emit({value:this.value})};render(){const e=`h${this.level}`;return a(r,{key:"35e729954b5bd58447dc4d3bc4f9e57e7bf0bdff"},a(e,{key:"455c96a2d76607ee70cc3f6f81a64f43ccc047c8",class:"heading",part:"heading"},a("button",{key:"4fdeae121e827c2cab00c9f583b0282be828c743",type:"button",id:"trigger",class:"trigger",part:"trigger","aria-expanded":this.expanded?"true":"false","aria-controls":"panel",disabled:this.disabled,onClick:this.onClick},a("span",{key:"10cabf948a5cbe16ddaeedd379e2c5485f92b568",class:"title",part:"title"},a("slot",{key:"1d050d2bd6a0ed6f0494cd9b4afa96e9abb21211",name:"title"})),a("span",{key:"f4a3dd3d8f519538f53623cbb9fe24b03b138db6",class:"icon",part:"icon","aria-hidden":"true"},a("pf-icon",{key:"53e79af5f641fc306bb6b80dc8166847d084224f",name:"chevron-down"})))),a("div",{key:"2dc77acf0e8cfe6f9ab01af1adb3cec47de80f2f",class:"panel",part:"panel"},a("div",{key:"e1531908c103894b176438690f08578b0ed964b6",class:"content",part:"content",id:"panel",role:"region","aria-labelledby":"trigger",inert:!this.expanded},a("div",{key:"9f21bf640cd85cd22fc90d1376140f3f74b9a69b",class:"inner",part:"inner"},a("slot",{key:"3e92f2c1f5cea1e8ab89f67633b0659935505161"})))))}static get delegatesFocus(){return true}};n.style=i();export{n as pf_accordion_item};
|
|
2
|
+
//# sourceMappingURL=p-685f817b.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfAccordionItemCss","PfAccordionItem","value","disabled","expanded","headingLevel","pfAccordionToggle","level","asNumber","Math","round","Number","this","isFinite","min","max","onClick","emit","render","Heading","h","Host","key","class","part","type","id","name","role","inert"],"sources":["src/components/pf-accordion-item/pf-accordion-item.css?tag=pf-accordion-item&encapsulation=shadow","src/components/pf-accordion-item/pf-accordion-item.tsx"],"sourcesContent":["/*\n * The rule between sections lives here rather than in the group's sheet,\n * because `::slotted()` takes a compound selector and no combinator -- there is\n * no way to say `::slotted(item + item)` from outside. `:host(:first-child)`\n * says the same thing from in here, and needs no coordination.\n */\n:host {\n border-top: 1px solid var(--pf-accordion-border);\n display: block;\n}\n\n:host(:first-child) {\n border-top: 0;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.heading {\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n}\n\n.trigger {\n align-items: center;\n background: transparent;\n border: 0;\n color: var(--pf-accordion-trigger-text);\n cursor: pointer;\n display: flex;\n font: inherit;\n font-weight: var(--font-weight-medium);\n gap: var(--space-3);\n justify-content: space-between;\n padding: var(--space-3) var(--space-4);\n text-align: start;\n width: 100%;\n}\n\n.trigger:hover:not(:disabled) {\n background: var(--pf-accordion-trigger-bg-hover);\n}\n\n.trigger:focus-visible {\n box-shadow: var(--pf-focus-ring);\n outline: none;\n}\n\n.trigger:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.icon {\n align-items: center;\n color: var(--pf-accordion-icon);\n display: inline-flex;\n flex-shrink: 0;\n transition: transform var(--pf-transition-fast);\n}\n\n:host([expanded]) .icon {\n transform: rotate(180deg);\n}\n\n/* The 0fr -> 1fr technique, which animates to the content's own height. */\n.panel {\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows var(--pf-transition-medium);\n}\n\n:host([expanded]) .panel {\n grid-template-rows: 1fr;\n}\n\n.content {\n color: var(--pf-accordion-content-text);\n min-height: 0;\n overflow: hidden;\n}\n\n.inner {\n padding: 0 var(--space-4) var(--space-4);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .panel,\n .icon {\n transition: none;\n }\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\nimport type { PfAccordionHeadingLevel } from '../pf-accordion/pf-accordion';\n\n/**\n * One section inside a `pf-accordion`.\n *\n * It owns its header, its panel and the open/close animation; the group owns\n * only *which* sections are open, because in `single` mode that depends on\n * what else is. So this element reports that it was clicked and waits to be\n * told, exactly as `pf-radio-button` does.\n *\n * The header is a real `<button>` in the shadow root, which makes it tabbable\n * with no help and gives Enter and Space for free. `delegatesFocus` is what\n * lets the group's arrow keys hand focus to it through the host.\n *\n * Both IDREFs here point inside this one shadow root, which is the case where\n * an IDREF resolves — the header names the panel with `aria-controls` and the\n * panel names the header back with `aria-labelledby`.\n *\n * @slot title - the header's label.\n * @slot - the section's content.\n * @part heading - the heading element wrapping the header button.\n * @part trigger - the header button.\n * @part title - the label's box inside the header.\n * @part icon - the chevron.\n * @part panel - the animating box around the content.\n * @part content - the region holding the content.\n */\n@Component({\n tag: 'pf-accordion-item',\n styleUrl: 'pf-accordion-item.css',\n shadow: { delegatesFocus: true },\n})\nexport class PfAccordionItem {\n /**\n * Identifies the section in the group's open set.\n *\n * Reflected because the generated bindings set props as *properties*: an\n * unreflected prop leaves no attribute, and anything selecting on one — a\n * consumer's stylesheet, or a test — finds nothing. The group reads the\n * property.\n */\n @Prop({ reflect: true }) value = '';\n\n /** Reflected; the stylesheet and the group's own filtering both read it. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set by the group. Reflected, so the stylesheet can turn the chevron. */\n @Prop({ mutable: true, reflect: true }) expanded = false;\n\n /** Set by the group from its own `headingLevel`. */\n @Prop({ mutable: true }) headingLevel: PfAccordionHeadingLevel = 3;\n\n /** Asks the group to open or close this section. The group decides. */\n @Event() pfAccordionToggle!: EventEmitter<{ value: string }>;\n\n /**\n * Coerced, because an attribute of a union-literal type arrives as a string:\n * `heading-level=\"2\"` would otherwise build an `h2` tag out of `\"2\"` by luck\n * and compare false to `2` everywhere else. Clamped, so a level outside\n * h2–h6 cannot produce a tag that is not a heading at all.\n */\n private get level(): PfAccordionHeadingLevel {\n const asNumber = Math.round(Number(this.headingLevel));\n if (!Number.isFinite(asNumber)) return 3;\n return Math.min(Math.max(asNumber, 2), 6) as PfAccordionHeadingLevel;\n }\n\n private onClick = () => {\n if (this.disabled) return;\n this.pfAccordionToggle.emit({ value: this.value });\n };\n\n render() {\n /*\n * A dynamic intrinsic tag, cast to one of the literals: `h('h' + level,\n * ...)` does not type-check, because Stencil's overload for a plain string\n * tag types `class` as a className map and rejects the string.\n */\n const Heading = `h${this.level}` as 'h3';\n\n return (\n <Host>\n <Heading class=\"heading\" part=\"heading\">\n <button\n type=\"button\"\n id=\"trigger\"\n class=\"trigger\"\n part=\"trigger\"\n aria-expanded={this.expanded ? 'true' : 'false'}\n aria-controls=\"panel\"\n disabled={this.disabled}\n onClick={this.onClick}\n >\n <span class=\"title\" part=\"title\">\n <slot name=\"title\" />\n </span>\n <span class=\"icon\" part=\"icon\" aria-hidden=\"true\">\n <pf-icon name=\"chevron-down\"></pf-icon>\n </span>\n </button>\n </Heading>\n <div class=\"panel\" part=\"panel\">\n {/*\n `inert` as well as the collapsed height, because a panel animating\n to zero still has focusable content in it: without this, tabbing\n from a closed section's header lands inside the box it just closed.\n */}\n <div\n class=\"content\"\n part=\"content\"\n id=\"panel\"\n role=\"region\"\n aria-labelledby=\"trigger\"\n inert={!this.expanded}\n >\n <div class=\"inner\" part=\"inner\">\n <slot />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAqB,IAAM,srC,MCkCpBC,EAAe,M,4EASDC,MAAQ,GAGRC,SAAW,MAGIC,SAAW,MAG1BC,aAAwC,EAGxDC,kBAQT,SAAYC,GACV,MAAMC,EAAWC,KAAKC,MAAMC,OAAOC,KAAKP,eACxC,IAAKM,OAAOE,SAASL,GAAW,OAAO,EACvC,OAAOC,KAAKK,IAAIL,KAAKM,IAAIP,EAAU,GAAI,E,CAGjCQ,QAAU,KAChB,GAAIJ,KAAKT,SAAU,OACnBS,KAAKN,kBAAkBW,KAAK,CAAEf,MAAOU,KAAKV,OAAQ,EAGpD,MAAAgB,GAME,MAAMC,EAAU,IAAIP,KAAKL,QAEzB,OACEa,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAACD,EAAO,CAAAG,IAAA,2CAACC,MAAM,UAAUC,KAAK,WAC5BJ,EAAA,UAAAE,IAAA,2CACEG,KAAK,SACLC,GAAG,UACHH,MAAM,UACNC,KAAK,UAAS,gBACCZ,KAAKR,SAAW,OAAS,QAAO,gBACjC,QACdD,SAAUS,KAAKT,SACfa,QAASJ,KAAKI,SAEdI,EAAA,QAAAE,IAAA,2CAAMC,MAAM,QAAQC,KAAK,SACvBJ,EAAA,QAAAE,IAAA,2CAAMK,KAAK,WAEbP,EAAA,QAAAE,IAAA,2CAAMC,MAAM,OAAOC,KAAK,OAAM,cAAa,QACzCJ,EAAA,WAAAE,IAAA,2CAASK,KAAK,oBAIpBP,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QAAQC,KAAK,SAMtBJ,EAAA,OAAAE,IAAA,2CACEC,MAAM,UACNC,KAAK,UACLE,GAAG,QACHE,KAAK,SAAQ,kBACG,UAChBC,OAAQjB,KAAKR,UAEbgB,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QAAQC,KAAK,SACtBJ,EAAA,QAAAE,IAAA,gD","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as c,H as d}from"./p-Bm6UxEit.js";const e=()=>`:host{display:block;padding:var(--pf-card-section-padding, var(--space-4))}:host([hidden]){display:none}`;const s=class{constructor(c){a(this,c)}render(){return c(d,{key:"59a59b62c908361de72c2a887083eaf0e4cd8990"},c("slot",{key:"666c791fcd20f18eb92e1d7cbdf688db3a9f46e9"}))}};s.style=e();export{s as pf_card_content};
|
|
2
|
+
//# sourceMappingURL=p-69d27f61.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfCardContentCss","PfCardContent","render","h","Host","key"],"sources":["src/components/pf-card-content/pf-card-content.css?tag=pf-card-content&encapsulation=shadow","src/components/pf-card-content/pf-card-content.tsx"],"sourcesContent":[":host {\n display: block;\n padding: var(--pf-card-section-padding, var(--space-4));\n}\n\n:host([hidden]) {\n display: none;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n/**\n * The body section of a `pf-card`.\n *\n * @slot - the content.\n */\n@Component({\n tag: 'pf-card-content',\n styleUrl: 'pf-card-content.css',\n shadow: true,\n})\nexport class PfCardContent {\n render() {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAmB,IAAM,2G,MCYlBC,EAAa,M,yBACxB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,6C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as e,H as t}from"./p-Bm6UxEit.js";const i=()=>`:host{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);display:block;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}:host([hidden]){display:none}:host([focusable]:focus),:host([focusable]:focus-within){clip:auto;clip-path:none;height:auto;margin:0;overflow:visible;position:static;white-space:normal;width:auto}`;const s=class{constructor(e){o(this,e)}focusable=false;render(){return e(t,{key:"196f44613e3141b9ac8e022cd119376e57c4e4ca"},e("slot",{key:"6524bd35bbbcb027aa6b596fcf08ead6e5101bd3"}))}};s.style=i();export{s as pf_visually_hidden};
|
|
2
|
+
//# sourceMappingURL=p-6cfacd82.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfVisuallyHiddenCss","PfVisuallyHidden","focusable","render","h","Host","key"],"sources":["src/components/pf-visually-hidden/pf-visually-hidden.css?tag=pf-visually-hidden&encapsulation=shadow","src/components/pf-visually-hidden/pf-visually-hidden.tsx"],"sourcesContent":["/*\n * The host does the hiding, so the slotted content needs no cooperation: it is\n * clipped wherever it happens to be in the consumer's tree.\n */\n:host {\n border: 0;\n /* `clip` is the deprecated fallback the React library also carries; both are\n kept so the two layers hide content identically in older Safari. */\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n display: block;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/*\n * Reveal on keyboard focus (skip-link pattern). `:focus-within` is what catches\n * the common case of a focusable descendant, such as a skip link's anchor;\n * `:focus` alone covers a consumer who made the host itself focusable with\n * tabindex.\n */\n:host([focusable]:focus),\n:host([focusable]:focus-within) {\n clip: auto;\n clip-path: none;\n height: auto;\n margin: 0;\n overflow: visible;\n /* Flow back into layout so the revealed content doesn't overlap siblings. */\n position: static;\n white-space: normal;\n width: auto;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * Hides content visually while keeping it available to screen readers and\n * other assistive technology. Use for labels, instructions and status text\n * that are implied visually but need to be announced.\n *\n * The React component takes an `as` prop to choose its tag; a custom element's\n * tag is fixed, so wrap this instead of configuring it — `<h2><pf-visually-\n * hidden>Results</pf-visually-hidden></h2>` is still a heading named\n * \"Results\".\n *\n * @slot - the content to hide visually.\n */\n@Component({\n tag: 'pf-visually-hidden',\n styleUrl: 'pf-visually-hidden.css',\n shadow: true,\n})\nexport class PfVisuallyHidden {\n /**\n * Reveal the content when it, or a descendant, receives keyboard focus — the\n * classic \"skip link\" pattern. Reflected so the stylesheet can select on it.\n */\n @Prop({ reflect: true }) focusable = false;\n\n render() {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAsB,IAAM,2W,MCmBrBC,EAAgB,M,yBAKFC,UAAY,MAErC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,6C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,a as r,h as s,H as i}from"./p-Bm6UxEit.js";import{r as a}from"./p-CAz7-p8y.js";import{s as o,r as n}from"./p-Fiuz9ck7.js";import{a as c}from"./p-Cr6IXrUk.js";import"./p-g4FlTDZx.js";const l=()=>`:host{display:block}:host([hidden]){display:none}.field{display:grid;gap:var(--space-2)}.legend{color:var(--pf-radiogroup-text);font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);margin-bottom:var(--space-1)}.choices{display:grid;gap:var(--space-3)}:host([orientation='horizontal']) .choices{column-gap:var(--space-6);grid-auto-flow:column;justify-content:flex-start}.error{color:var(--pf-radiogroup-field-error, var(--pf-field-error));font-size:var(--font-size-sm);margin:0}`;const d=class{constructor(r){e(this,r);this.pfChange=t(this,"pfChange");if(r.$hostElement$["s-ei"]){this.internals=r.$hostElement$["s-ei"]}else{this.internals=r.$hostElement$.attachInternals();r.$hostElement$["s-ei"]=this.internals}}get el(){return r(this)}internals;name;value="";legend;error;orientation="vertical";required=false;disabled=false;pfChange;initialValue="";componentWillLoad(){this.initialValue=this.value;this.syncFormState()}componentDidLoad(){this.syncChildren()}syncFormState(){this.internals.setFormValue(this.value||null);c(this.internals,Boolean(this.value),this.required,this.error)}async checkValidity(){return this.internals.checkValidity()}async reportValidity(){return this.internals.reportValidity()}async getValidationMessage(){return this.internals.validationMessage}formResetCallback(){this.value=this.initialValue;this.syncChildren()}get radios(){return Array.from(this.el.querySelectorAll("pf-radio-button"))}isDisabled(e){return this.disabled||e.hasAttribute("disabled")}syncChildren(){const e=this.radios;if(e.length===0)return;for(const t of e){const e=t.value===this.value;t.checked=e;t.setAttribute("aria-checked",e?"true":"false")}const t=e.filter((e=>!this.isDisabled(e)));const r=t.find((e=>e.value===this.value));o(t,r??t[0]);for(const t of e){if(this.isDisabled(t))t.tabIndex=-1}}handleSelect(e){e.stopPropagation();if(this.disabled)return;const t=e.detail.value;if(t===this.value)return;this.value=t;this.syncChildren();this.pfChange.emit({value:t})}handleKeyDown(e){if(e.defaultPrevented||this.disabled)return;const t=n(e.key,this.orientation);if(!t)return;const r=this.radios.filter((e=>!this.isDisabled(e)));if(r.length===0)return;const s=r.indexOf(document.activeElement);const i=a(t,r.map(((e,t)=>t)),s);if(i<0)return;e.preventDefault();const o=r[i];this.value=o.value;this.syncChildren();o.focus();this.pfChange.emit({value:o.value})}render(){return s(i,{key:"a1fceefbb8b63d192de9d4c47b13655d86c699cb",role:"radiogroup","aria-labelledby":this.legend?"legend":null,"aria-describedby":this.error?"error":null,"aria-invalid":this.error?"true":null,"aria-required":this.required?"true":null},s("div",{key:"9ac01e771ab31419fcfc3f9c13f6d5e7610ea902",class:"field",part:"field"},this.legend&&s("span",{key:"ae208de4c221e0d83b1612fe2e24aa6b35453717",class:"legend",part:"legend",id:"legend"},this.legend),s("div",{key:"e015065c2d269b5b29bba200df93ec4a0c2fc777",class:"choices",part:"choices"},s("slot",{key:"32f707a32f56beaa9ee538ef00fe03b1c14aed80",onSlotchange:()=>this.syncChildren()})),this.error&&s("p",{key:"9dc3e40a8b44ae72cdb1839c2109b703b28b7ad0",class:"error",part:"error",id:"error"},this.error)))}static get formAssociated(){return true}static get watchers(){return{value:[{syncFormState:0},{syncChildren:0}],error:[{syncFormState:0}],required:[{syncFormState:0}],disabled:[{syncChildren:0}]}}};d.style=l();export{d as pf_radio_group};
|
|
2
|
+
//# sourceMappingURL=p-6d3c4094.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfRadioGroupCss","PfRadioGroup","internals","name","value","legend","error","orientation","required","disabled","pfChange","initialValue","componentWillLoad","this","syncFormState","componentDidLoad","syncChildren","setFormValue","applyControlValidity","Boolean","checkValidity","reportValidity","getValidationMessage","validationMessage","formResetCallback","radios","Array","from","el","querySelectorAll","isDisabled","radio","hasAttribute","length","selected","checked","setAttribute","enabled","filter","find","syncRovingTabIndex","tabIndex","handleSelect","event","stopPropagation","next","detail","emit","handleKeyDown","defaultPrevented","action","resolveRovingKey","key","currentIndex","indexOf","document","activeElement","nextIndex","resolveListMove","map","_","index","preventDefault","target","focus","render","h","Host","role","class","part","id","onSlotchange"],"sources":["src/components/pf-radio-group/pf-radio-group.css?tag=pf-radio-group&encapsulation=shadow","src/components/pf-radio-group/pf-radio-group.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.field {\n display: grid;\n gap: var(--space-2);\n}\n\n.legend {\n color: var(--pf-radiogroup-text);\n font-size: var(--font-size-md);\n font-weight: var(--font-weight-semibold);\n margin-bottom: var(--space-1);\n}\n\n.choices {\n display: grid;\n gap: var(--space-3);\n}\n\n:host([orientation='horizontal']) .choices {\n column-gap: var(--space-6);\n grid-auto-flow: column;\n justify-content: flex-start;\n}\n\n.error {\n color: var(--pf-radiogroup-field-error, var(--pf-field-error));\n font-size: var(--font-size-sm);\n margin: 0;\n}\n","import { resolveListMove, resolveRovingKey, syncRovingTabIndex } from '@pitchfork-ui/core';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\n\nimport { applyControlValidity } from '../../form-validity';\n\nexport type PfRadioGroupOrientation = 'vertical' | 'horizontal';\n\n/**\n * A form-associated group of `pf-radio-button` children.\n *\n * The group is the control, not the radios: it holds the one `name` and the\n * one `value`, because a form-associated custom element gets no radio grouping\n * from the browser. Measured — three independent form-associated elements with\n * the same name all stay checked and all submit. So single selection is this\n * element's job, and it is the only one of the pair that touches the form.\n *\n * Keyboard follows the ARIA radiogroup pattern rather than the toolbar one:\n * the group is a single tab stop, and the arrows both move and select.\n *\n * @slot - the `pf-radio-button` children.\n * @part field - the wrapper around legend, choices and error.\n * @part legend - the group's heading.\n * @part choices - the container the children are slotted into.\n * @part error - the error message below the group.\n */\n@Component({\n tag: 'pf-radio-group',\n styleUrl: 'pf-radio-group.css',\n formAssociated: true,\n shadow: true,\n})\nexport class PfRadioGroup {\n @Element() el!: HTMLElement;\n\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * Submitted under this name. Reflected, because a form-associated element\n * takes its submission name from the attribute, not this property.\n */\n @Prop({ reflect: true }) name?: string;\n\n /** The selected choice's value. Empty means nothing is selected. */\n @Prop({ mutable: true }) value = '';\n\n /** The group's heading. */\n @Prop() legend?: string;\n\n /** Error message. Its presence is what marks the group invalid. */\n @Prop() error?: string;\n\n /** Layout and arrow-key axis. Reflected for the stylesheet. */\n @Prop({ reflect: true }) orientation: PfRadioGroupOrientation = 'vertical';\n\n @Prop({ reflect: true }) required = false;\n\n /** Disable every choice. Reflected for the stylesheet. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Fires when the selection changes. */\n @Event() pfChange!: EventEmitter<{ value: string }>;\n\n /** The value a form reset restores, which is the initial attribute. */\n private initialValue = '';\n\n componentWillLoad() {\n this.initialValue = this.value;\n this.syncFormState();\n }\n\n componentDidLoad() {\n this.syncChildren();\n }\n\n @Watch('value')\n @Watch('error')\n @Watch('required')\n syncFormState() {\n /*\n * `null`, not an empty string, with nothing selected: a radio group where\n * no choice is picked is absent from the submission, exactly as a set of\n * native radios with none checked is.\n */\n this.internals.setFormValue(this.value || null);\n applyControlValidity(this.internals, Boolean(this.value), this.required, this.error);\n }\n\n /** A form-associated custom element does not inherit this. */\n @Method()\n async checkValidity(): Promise<boolean> {\n return this.internals.checkValidity();\n }\n\n /** As `checkValidity`, but also shows the browser's validation message. */\n @Method()\n async reportValidity(): Promise<boolean> {\n return this.internals.reportValidity();\n }\n\n /** The message explaining why the group is invalid, or an empty string. */\n @Method()\n async getValidationMessage(): Promise<string> {\n return this.internals.validationMessage;\n }\n\n /** A reset restores the choice the group started with. */\n formResetCallback() {\n this.value = this.initialValue;\n this.syncChildren();\n }\n\n /** The choices, in source order. */\n private get radios(): HTMLElement[] {\n return Array.from(this.el.querySelectorAll('pf-radio-button'));\n }\n\n private isDisabled(radio: HTMLElement) {\n return this.disabled || radio.hasAttribute('disabled');\n }\n\n /**\n * Pushes the group's state onto its children: one checked, the rest not, and\n * exactly one tab stop.\n *\n * The ARIA pattern puts the tab stop on the *selected* choice rather than on\n * whichever was focused last, so that tabbing into the group lands on the\n * current answer. With nothing selected it falls to the first enabled one,\n * which is how a user reaches an unanswered group at all.\n */\n @Watch('value')\n @Watch('disabled')\n syncChildren() {\n const radios = this.radios;\n if (radios.length === 0) return;\n\n for (const radio of radios) {\n const selected = (radio as HTMLElement & { value: string }).value === this.value;\n (radio as HTMLElement & { checked: boolean }).checked = selected;\n radio.setAttribute('aria-checked', selected ? 'true' : 'false');\n }\n\n const enabled = radios.filter((radio) => !this.isDisabled(radio));\n const checked = enabled.find(\n (radio) => (radio as HTMLElement & { value: string }).value === this.value,\n );\n // Only the enabled choices are tab stops; a disabled one is never reachable.\n syncRovingTabIndex(enabled, checked ?? enabled[0]);\n for (const radio of radios) {\n if (this.isDisabled(radio)) radio.tabIndex = -1;\n }\n }\n\n @Listen('pfRadioSelect')\n handleSelect(event: CustomEvent<{ value: string }>) {\n event.stopPropagation();\n if (this.disabled) return;\n\n const next = event.detail.value;\n if (next === this.value) return;\n\n this.value = next;\n this.syncChildren();\n this.pfChange.emit({ value: next });\n }\n\n /**\n * In a radiogroup the arrows move *and* select — unlike a toolbar, where\n * they only move. Disabled choices are skipped entirely, which is why the\n * index maths runs over the enabled subset rather than over all children.\n */\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n if (event.defaultPrevented || this.disabled) return;\n\n const action = resolveRovingKey(event.key, this.orientation);\n if (!action) return;\n\n const enabled = this.radios.filter((radio) => !this.isDisabled(radio));\n if (enabled.length === 0) return;\n\n const currentIndex = enabled.indexOf(document.activeElement as HTMLElement);\n const nextIndex = resolveListMove(\n action,\n enabled.map((_, index) => index),\n currentIndex,\n );\n if (nextIndex < 0) return;\n\n event.preventDefault();\n const target = enabled[nextIndex] as HTMLElement & { value: string };\n this.value = target.value;\n this.syncChildren();\n target.focus();\n this.pfChange.emit({ value: target.value });\n }\n\n render() {\n return (\n <Host\n role=\"radiogroup\"\n aria-labelledby={this.legend ? 'legend' : null}\n aria-describedby={this.error ? 'error' : null}\n aria-invalid={this.error ? 'true' : null}\n aria-required={this.required ? 'true' : null}\n >\n <div class=\"field\" part=\"field\">\n {this.legend && (\n <span class=\"legend\" part=\"legend\" id=\"legend\">\n {this.legend}\n </span>\n )}\n <div class=\"choices\" part=\"choices\">\n <slot onSlotchange={() => this.syncChildren()} />\n </div>\n {this.error && (\n <p class=\"error\" part=\"error\" id=\"error\">\n {this.error}\n </p>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"2MAAA,MAAMA,EAAkB,IAAM,if,MC2CjBC,EAAY,M,mPAGJC,UAMMC,KAGAC,MAAQ,GAGzBC,OAGAC,MAGiBC,YAAuC,WAEvCC,SAAW,MAGXC,SAAW,MAG3BC,SAGDC,aAAe,GAEvB,iBAAAC,GACEC,KAAKF,aAAeE,KAAKT,MACzBS,KAAKC,e,CAGP,gBAAAC,GACEF,KAAKG,c,CAMP,aAAAF,GAMED,KAAKX,UAAUe,aAAaJ,KAAKT,OAAS,MAC1Cc,EAAqBL,KAAKX,UAAWiB,QAAQN,KAAKT,OAAQS,KAAKL,SAAUK,KAAKP,M,CAKhF,mBAAMc,GACJ,OAAOP,KAAKX,UAAUkB,e,CAKxB,oBAAMC,GACJ,OAAOR,KAAKX,UAAUmB,gB,CAKxB,0BAAMC,GACJ,OAAOT,KAAKX,UAAUqB,iB,CAIxB,iBAAAC,GACEX,KAAKT,MAAQS,KAAKF,aAClBE,KAAKG,c,CAIP,UAAYS,GACV,OAAOC,MAAMC,KAAKd,KAAKe,GAAGC,iBAAiB,mB,CAGrC,UAAAC,CAAWC,GACjB,OAAOlB,KAAKJ,UAAYsB,EAAMC,aAAa,W,CAc7C,YAAAhB,GACE,MAAMS,EAASZ,KAAKY,OACpB,GAAIA,EAAOQ,SAAW,EAAG,OAEzB,IAAK,MAAMF,KAASN,EAAQ,CAC1B,MAAMS,EAAYH,EAA0C3B,QAAUS,KAAKT,MAC1E2B,EAA6CI,QAAUD,EACxDH,EAAMK,aAAa,eAAgBF,EAAW,OAAS,Q,CAGzD,MAAMG,EAAUZ,EAAOa,QAAQP,IAAWlB,KAAKiB,WAAWC,KAC1D,MAAMI,EAAUE,EAAQE,MACrBR,GAAWA,EAA0C3B,QAAUS,KAAKT,QAGvEoC,EAAmBH,EAASF,GAAWE,EAAQ,IAC/C,IAAK,MAAMN,KAASN,EAAQ,CAC1B,GAAIZ,KAAKiB,WAAWC,GAAQA,EAAMU,UAAW,C,EAKjD,YAAAC,CAAaC,GACXA,EAAMC,kBACN,GAAI/B,KAAKJ,SAAU,OAEnB,MAAMoC,EAAOF,EAAMG,OAAO1C,MAC1B,GAAIyC,IAAShC,KAAKT,MAAO,OAEzBS,KAAKT,MAAQyC,EACbhC,KAAKG,eACLH,KAAKH,SAASqC,KAAK,CAAE3C,MAAOyC,G,CAS9B,aAAAG,CAAcL,GACZ,GAAIA,EAAMM,kBAAoBpC,KAAKJ,SAAU,OAE7C,MAAMyC,EAASC,EAAiBR,EAAMS,IAAKvC,KAAKN,aAChD,IAAK2C,EAAQ,OAEb,MAAMb,EAAUxB,KAAKY,OAAOa,QAAQP,IAAWlB,KAAKiB,WAAWC,KAC/D,GAAIM,EAAQJ,SAAW,EAAG,OAE1B,MAAMoB,EAAehB,EAAQiB,QAAQC,SAASC,eAC9C,MAAMC,EAAYC,EAChBR,EACAb,EAAQsB,KAAI,CAACC,EAAGC,IAAUA,IAC1BR,GAEF,GAAII,EAAY,EAAG,OAEnBd,EAAMmB,iBACN,MAAMC,EAAS1B,EAAQoB,GACvB5C,KAAKT,MAAQ2D,EAAO3D,MACpBS,KAAKG,eACL+C,EAAOC,QACPnD,KAAKH,SAASqC,KAAK,CAAE3C,MAAO2D,EAAO3D,O,CAGrC,MAAA6D,GACE,OACEC,EAACC,EAAI,CAAAf,IAAA,2CACHgB,KAAK,aAAY,kBACAvD,KAAKR,OAAS,SAAW,KAAI,mBAC5BQ,KAAKP,MAAQ,QAAU,KAAI,eAC/BO,KAAKP,MAAQ,OAAS,KAAI,gBACzBO,KAAKL,SAAW,OAAS,MAExC0D,EAAA,OAAAd,IAAA,2CAAKiB,MAAM,QAAQC,KAAK,SACrBzD,KAAKR,QACJ6D,EAAA,QAAAd,IAAA,2CAAMiB,MAAM,SAASC,KAAK,SAASC,GAAG,UACnC1D,KAAKR,QAGV6D,EAAA,OAAAd,IAAA,2CAAKiB,MAAM,UAAUC,KAAK,WACxBJ,EAAA,QAAAd,IAAA,2CAAMoB,aAAc,IAAM3D,KAAKG,kBAEhCH,KAAKP,OACJ4D,EAAA,KAAAd,IAAA,2CAAGiB,MAAM,QAAQC,KAAK,QAAQC,GAAG,SAC9B1D,KAAKP,Q","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as t,H as s}from"./p-Bm6UxEit.js";import{g as e}from"./p-B8ulhYUJ.js";const r=()=>`: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}`;const i=class{constructor(t){a(this,t)}src;alt;name;size="md";status;render(){return t(s,{key:"0824f0bfb483b0be9d76d5e9044dd9e4ae248ebf",role:this.name?"img":null,"aria-label":this.name},this.src?t("img",{class:"image",part:"image",src:this.src,alt:this.alt??(this.name?"":"Avatar")}):t("span",{class:"fallback",part:"fallback","aria-hidden":"true"},t("slot",null,e(this.name))),this.status&&t("span",{key:"25327b534f0c459ecfd499f4eaca1f5d7484968c",class:"status",part:"status","aria-hidden":"true"}))}};i.style=r();export{i as pf_avatar};
|
|
2
|
+
//# sourceMappingURL=p-717b552a.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfAvatarCss","PfAvatar","src","alt","name","size","status","render","h","Host","key","role","this","class","part","getAvatarInitials"],"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"],"mappings":"sFAAA,MAAMA,EAAc,IAAM,kuD,MCsBbC,EAAQ,M,yBAEXC,IAGAC,IAGAC,KAEiBC,KAAqB,KAGrBC,OAEzB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAMC,KAAKR,KAAO,MAAQ,KAAI,aAAcQ,KAAKR,MACpDQ,KAAKV,IACJM,EAAA,OACEK,MAAM,QACNC,KAAK,QACLZ,IAAKU,KAAKV,IACVC,IAAKS,KAAKT,MAAQS,KAAKR,KAAO,GAAK,YAGrCI,EAAA,QAAMK,MAAM,WAAWC,KAAK,WAAU,cAAa,QACjDN,EAAA,YAAOO,EAAkBH,KAAKR,QAGjCQ,KAAKN,QAAUE,EAAA,QAAAE,IAAA,2CAAMG,MAAM,SAASC,KAAK,SAAQ,cAAa,S","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,a as t,h as a,H as s}from"./p-Bm6UxEit.js";const i=()=>`:host{align-items:center;display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-8);text-align:center}:host([hidden]){display:none}:host([size='sm']){gap:var(--space-2);padding:var(--space-4)}:host([size='lg']){gap:var(--space-4);padding:var(--space-10)}.icon.empty,.action.empty{display:none}.icon{color:var(--pf-empty-state-icon);display:inline-flex;font-size:var(--font-size-3xl);line-height:1;margin-bottom:var(--space-1)}:host([size='sm']) .icon{font-size:var(--font-size-xl);margin-bottom:0}:host([size='lg']) .icon{font-size:var(--font-size-5xl);margin-bottom:var(--space-2)}.heading{color:var(--pf-empty-state-text);font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);line-height:1.3;margin:0}:host([size='sm']) .heading{font-size:var(--font-size-sm)}:host([size='lg']) .heading{font-size:var(--font-size-xl)}slot[name='description']::slotted(*){color:var(--pf-empty-state-text-muted);display:block;font-size:var(--font-size-sm);line-height:1.5;margin:0;max-width:40ch}:host([size='lg']) slot[name='description']::slotted(*){font-size:var(--font-size-md);max-width:48ch}.action{align-items:center;display:inline-flex;gap:var(--space-2);margin-top:var(--space-1)}`;const n=class{constructor(t){e(this,t)}get el(){return t(this)}size="md";icon;hasIcon=false;hasAction=false;componentWillLoad(){this.read()}read=()=>{const e=e=>Array.from(this.el.children).some((t=>t.getAttribute("slot")===e));this.hasIcon=e("icon");this.hasAction=e("action")};render(){const e=this.hasIcon||Boolean(this.icon);return a(s,{key:"617129c001ebd91e05ed9c4e9d6977429edb3c9d"},a("span",{key:"0f560b88267604b2a5b8c8cf6fcc6a3f2d7e5c68",class:{icon:true,empty:!e},part:"icon","aria-hidden":"true"},this.icon&&!this.hasIcon&&a("pf-icon",{key:"57033cbb4f7cb1a9a4b4941f572b22e1f1108190",name:this.icon}),a("slot",{key:"2e224aa7c0c9dacef8924e53b4de76b2b5f427d9",name:"icon",onSlotchange:this.read})),a("p",{key:"b9b110143eb28dde873041d3cba58c3be6b92f3a",class:"heading",part:"heading"},a("slot",{key:"976168fccdb51ad83df26034c0ea4f3de3b87ed3"})),a("slot",{key:"871107fa5635be28aa95de994cb088d6af1e0cb6",name:"description"}),a("span",{key:"7a6dff80ce76676d059b7ca9406f17fa66fc5149",class:{action:true,empty:!this.hasAction},part:"action"},a("slot",{key:"25b97e145e7007b85051e3e587cc8c374a020547",name:"action",onSlotchange:this.read})))}};n.style=i();export{n as pf_empty_state};
|
|
2
|
+
//# sourceMappingURL=p-742f2cc4.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfEmptyStateCss","PfEmptyState","size","icon","hasIcon","hasAction","componentWillLoad","this","read","slotted","name","Array","from","el","children","some","child","getAttribute","render","showIcon","Boolean","h","Host","key","class","empty","part","onSlotchange","action"],"sources":["src/components/pf-empty-state/pf-empty-state.css?tag=pf-empty-state&encapsulation=shadow","src/components/pf-empty-state/pf-empty-state.tsx"],"sourcesContent":[":host {\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: var(--space-3);\n padding: var(--space-8);\n text-align: center;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([size='sm']) {\n gap: var(--space-2);\n padding: var(--space-4);\n}\n\n:host([size='lg']) {\n gap: var(--space-4);\n padding: var(--space-10);\n}\n\n/*\n * The two wrappers that carry layout are hidden rather than left out when\n * there is nothing in them, because a slot that is not rendered never fires\n * `slotchange` -- an icon or an action added later would stay invisible.\n *\n * Two classes deep, because both boxes set their own `display` below: `.empty`\n * alone ties on specificity and loses on order.\n */\n.icon.empty,\n.action.empty {\n display: none;\n}\n\n.icon {\n color: var(--pf-empty-state-icon);\n display: inline-flex;\n font-size: var(--font-size-3xl);\n line-height: 1;\n margin-bottom: var(--space-1);\n}\n\n:host([size='sm']) .icon {\n font-size: var(--font-size-xl);\n margin-bottom: 0;\n}\n\n:host([size='lg']) .icon {\n font-size: var(--font-size-5xl);\n margin-bottom: var(--space-2);\n}\n\n.heading {\n color: var(--pf-empty-state-text);\n font-size: var(--font-size-md);\n font-weight: var(--font-weight-semibold);\n line-height: 1.3;\n margin: 0;\n}\n\n:host([size='sm']) .heading {\n font-size: var(--font-size-sm);\n}\n\n:host([size='lg']) .heading {\n font-size: var(--font-size-xl);\n}\n\n/*\n * The description needs no box of its own, so it has none: an unassigned slot\n * generates nothing, where an empty wrapper would leave its own gap behind.\n */\nslot[name='description']::slotted(*) {\n color: var(--pf-empty-state-text-muted);\n display: block;\n font-size: var(--font-size-sm);\n line-height: 1.5;\n margin: 0;\n max-width: 40ch;\n}\n\n:host([size='lg']) slot[name='description']::slotted(*) {\n font-size: var(--font-size-md);\n max-width: 48ch;\n}\n\n.action {\n align-items: center;\n display: inline-flex;\n gap: var(--space-2);\n margin-top: var(--space-1);\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\nexport type PfEmptyStateSize = 'sm' | 'md' | 'lg';\n\n/**\n * What to show in place of content that is not there: an icon, a heading, a\n * line of explanation and something to do about it.\n *\n * The icon can be a name — `icon=\"folder-open\"`, which renders a `pf-icon` —\n * or anything slotted into the `icon` slot, for an illustration this library\n * does not have. The slot wins where both are given.\n *\n * @slot - the heading.\n * @slot description - a line explaining the emptiness.\n * @slot action - what to do about it, usually a button.\n * @slot icon - an icon or illustration, in place of the `icon` name.\n * @part icon - the icon's box.\n * @part heading - the heading's box.\n * @part action - the box holding the action slot.\n */\n@Component({\n tag: 'pf-empty-state',\n styleUrl: 'pf-empty-state.css',\n shadow: true,\n})\nexport class PfEmptyState {\n @Element() el!: HTMLElement;\n\n /** Padding and type scale. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) size: PfEmptyStateSize = 'md';\n\n /** An icon name from the same registry as `pf-icon`. */\n @Prop() icon?: string;\n\n /**\n * Whether anything is slotted into the `icon` and `action` slots, which\n * decides whether their boxes are drawn at all.\n *\n * Asked in JS, because a wrapper around a slot cannot be collapsed from\n * CSS: `:not(:has(*))` never matches, since the `<slot>` is itself a child.\n * The description needs no box of its own, so it is styled through\n * `::slotted()` and collapses on its own — these two carry layout their\n * content cannot.\n */\n @State() hasIcon = false;\n @State() hasAction = false;\n\n /**\n * Read from the light DOM so first paint is right: the mock DOM never fires\n * `slotchange`, and a real one fires it after the first render.\n */\n componentWillLoad() {\n this.read();\n }\n\n private read = () => {\n const slotted = (name: string) =>\n Array.from(this.el.children).some((child) => child.getAttribute('slot') === name);\n\n this.hasIcon = slotted('icon');\n this.hasAction = slotted('action');\n };\n\n render() {\n /*\n * Both wrappers stay in the tree and are hidden when empty, rather than\n * being left out: a slot that is not rendered never fires `slotchange`, so\n * content added later would stay invisible for good.\n */\n const showIcon = this.hasIcon || Boolean(this.icon);\n\n return (\n <Host>\n <span class={{ icon: true, empty: !showIcon }} part=\"icon\" aria-hidden=\"true\">\n {/* The slot wins: a consumer who has slotted an illustration does\n not also want the named icon beside it. */}\n {this.icon && !this.hasIcon && <pf-icon name={this.icon}></pf-icon>}\n <slot name=\"icon\" onSlotchange={this.read} />\n </span>\n\n <p class=\"heading\" part=\"heading\">\n <slot />\n </p>\n\n <slot name=\"description\" />\n\n <span class={{ action: true, empty: !this.hasAction }} part=\"action\">\n <slot name=\"action\" onSlotchange={this.read} />\n </span>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAkB,IAAM,yrC,MCyBjBC,EAAY,M,iDAIEC,KAAyB,KAG1CC,KAYCC,QAAU,MACVC,UAAY,MAMrB,iBAAAC,GACEC,KAAKC,M,CAGCA,KAAO,KACb,MAAMC,EAAWC,GACfC,MAAMC,KAAKL,KAAKM,GAAGC,UAAUC,MAAMC,GAAUA,EAAMC,aAAa,UAAYP,IAE9EH,KAAKH,QAAUK,EAAQ,QACvBF,KAAKF,UAAYI,EAAQ,SAAS,EAGpC,MAAAS,GAME,MAAMC,EAAWZ,KAAKH,SAAWgB,QAAQb,KAAKJ,MAE9C,OACEkB,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,2CAAMC,MAAO,CAAErB,KAAM,KAAMsB,OAAQN,GAAYO,KAAK,OAAM,cAAa,QAGpEnB,KAAKJ,OAASI,KAAKH,SAAWiB,EAAA,WAAAE,IAAA,2CAASb,KAAMH,KAAKJ,OACnDkB,EAAA,QAAAE,IAAA,2CAAMb,KAAK,OAAOiB,aAAcpB,KAAKC,QAGvCa,EAAA,KAAAE,IAAA,2CAAGC,MAAM,UAAUE,KAAK,WACtBL,EAAA,QAAAE,IAAA,8CAGFF,EAAA,QAAAE,IAAA,2CAAMb,KAAK,gBAEXW,EAAA,QAAAE,IAAA,2CAAMC,MAAO,CAAEI,OAAQ,KAAMH,OAAQlB,KAAKF,WAAaqB,KAAK,UAC1DL,EAAA,QAAAE,IAAA,2CAAMb,KAAK,SAASiB,aAAcpB,KAAKC,Q","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,a,h as t,H as s}from"./p-Bm6UxEit.js";const i=()=>`:host{align-items:flex-start;display:flex;flex-direction:column;gap:var(--space-4);justify-content:space-between;padding-bottom:var(--space-4)}:host([hidden]){display:none}@media (min-width: 640px){:host{align-items:center;flex-direction:row}}:host([divider]){border-bottom:1px solid var(--pf-section-header-border)}:host([align='start']){justify-content:flex-start}:host([align='end']){justify-content:flex-end}.metadata.empty,.actions.empty{display:none}.content{min-width:0}slot[name='eyebrow']::slotted(*){color:var(--pf-section-header-text-muted);display:block;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:0.04em;margin:0 0 var(--space-1);text-transform:uppercase}.heading{color:var(--pf-section-header-text);font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);margin:0}slot[name='description']::slotted(*){color:var(--pf-section-header-text-muted);display:block;font-size:var(--font-size-sm);line-height:1.5;margin:var(--space-1) 0 0}.metadata{align-items:center;color:var(--pf-section-header-text-muted);display:inline-flex;flex-wrap:wrap;font-size:var(--font-size-sm);gap:var(--space-2);margin-top:var(--space-2)}.actions{align-items:center;display:inline-flex;flex-wrap:wrap;gap:var(--space-2);width:100%}@media (min-width: 640px){.actions{width:auto}}`;const n=class{constructor(a){e(this,a)}get el(){return a(this)}divider=false;align="between";hasMetadata=false;hasActions=false;componentWillLoad(){this.read()}read=()=>{const e=e=>Array.from(this.el.children).some((a=>a.getAttribute("slot")===e));this.hasMetadata=e("metadata");this.hasActions=e("actions")};render(){return t(s,{key:"4ccd9a76ae1dc8921ba2a16ab7a15ced1b626986"},t("div",{key:"1df5a554bae92dd018741c0eb353f8fb6b0749d1",class:"content",part:"content"},t("slot",{key:"1559805e1974477782291d45e87bfaafa58e4bbf",name:"eyebrow"}),t("h2",{key:"ae351a3f5853a16aeaf83f0af5b959a113a7e827",class:"heading",part:"heading"},t("slot",{key:"e8f154fc36e3e77e550b28320a0e35f085d3a1ee"})),t("slot",{key:"29213ae43627969251138fc9b1b70193e693ae91",name:"description"}),t("div",{key:"55c17fef4be98e763ac1d9bbf169ad14309f240d",class:{metadata:true,empty:!this.hasMetadata},part:"metadata"},t("slot",{key:"191d9e23d9e769303862b6f1afe05b57242cafbe",name:"metadata",onSlotchange:this.read}))),t("div",{key:"ac2fb5005a90c8f49c70c04a4193c2787ed0f004",class:{actions:true,empty:!this.hasActions},part:"actions"},t("slot",{key:"02ce065806d229d45f9498715db2648c767aec10",name:"actions",onSlotchange:this.read})))}};n.style=i();export{n as pf_section_header};
|
|
2
|
+
//# sourceMappingURL=p-76f0f473.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfSectionHeaderCss","PfSectionHeader","divider","align","hasMetadata","hasActions","componentWillLoad","this","read","slotted","name","Array","from","el","children","some","child","getAttribute","render","h","Host","key","class","part","metadata","empty","onSlotchange","actions"],"sources":["src/components/pf-section-header/pf-section-header.css?tag=pf-section-header&encapsulation=shadow","src/components/pf-section-header/pf-section-header.tsx"],"sourcesContent":[":host {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: var(--space-4);\n justify-content: space-between;\n padding-bottom: var(--space-4);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n@media (--sm) {\n :host {\n align-items: center;\n flex-direction: row;\n }\n}\n\n:host([divider]) {\n border-bottom: 1px solid var(--pf-section-header-border);\n}\n\n:host([align='start']) {\n justify-content: flex-start;\n}\n\n:host([align='end']) {\n justify-content: flex-end;\n}\n\n/*\n * Hidden rather than left out, so a later `slotchange` still arrives. Two\n * classes deep, because both boxes set their own `display` below.\n */\n.metadata.empty,\n.actions.empty {\n display: none;\n}\n\n.content {\n min-width: 0;\n}\n\nslot[name='eyebrow']::slotted(*) {\n color: var(--pf-section-header-text-muted);\n display: block;\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-semibold);\n letter-spacing: 0.04em;\n margin: 0 0 var(--space-1);\n text-transform: uppercase;\n}\n\n.heading {\n color: var(--pf-section-header-text);\n font-size: var(--font-size-xl);\n font-weight: var(--font-weight-semibold);\n margin: 0;\n}\n\nslot[name='description']::slotted(*) {\n color: var(--pf-section-header-text-muted);\n display: block;\n font-size: var(--font-size-sm);\n line-height: 1.5;\n margin: var(--space-1) 0 0;\n}\n\n.metadata {\n align-items: center;\n color: var(--pf-section-header-text-muted);\n display: inline-flex;\n flex-wrap: wrap;\n font-size: var(--font-size-sm);\n gap: var(--space-2);\n margin-top: var(--space-2);\n}\n\n.actions {\n align-items: center;\n display: inline-flex;\n flex-wrap: wrap;\n gap: var(--space-2);\n width: 100%;\n}\n\n@media (--sm) {\n .actions {\n width: auto;\n }\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\nexport type PfSectionHeaderAlign = 'start' | 'between' | 'end';\n\n/**\n * The heading of a section, with room for an eyebrow, a line of explanation,\n * some metadata and a control or two.\n *\n * Every optional box stays in the tree and is hidden when empty rather than\n * being left out, because a slot that is not rendered never fires\n * `slotchange` — content added later would stay invisible for good. The\n * eyebrow and the description need no box of their own, so they are styled\n * through `::slotted()` and collapse on their own.\n *\n * @slot eyebrow - small text above the heading.\n * @slot - the heading.\n * @slot description - a line below the heading.\n * @slot metadata - small facts below the description.\n * @slot actions - controls, which sit opposite the heading on a wide screen.\n * @part content - the box holding everything but the actions.\n * @part heading - the heading's box.\n * @part metadata - the box holding the metadata slot.\n * @part actions - the box holding the actions slot.\n */\n@Component({\n tag: 'pf-section-header',\n styleUrl: 'pf-section-header.css',\n shadow: true,\n})\nexport class PfSectionHeader {\n @Element() el!: HTMLElement;\n\n /** Draw a rule below the header. Reflected for the stylesheet. */\n @Prop({ reflect: true }) divider = false;\n\n /** How the heading and the actions share the row. Reflected. */\n @Prop({ reflect: true }) align: PfSectionHeaderAlign = 'between';\n\n /** Which of the boxes that carry layout have anything in them. */\n @State() hasMetadata = false;\n @State() hasActions = false;\n\n /** Read from the light DOM, so first paint is right without `slotchange`. */\n componentWillLoad() {\n this.read();\n }\n\n private read = () => {\n const slotted = (name: string) =>\n Array.from(this.el.children).some((child) => child.getAttribute('slot') === name);\n\n this.hasMetadata = slotted('metadata');\n this.hasActions = slotted('actions');\n };\n\n render() {\n return (\n <Host>\n <div class=\"content\" part=\"content\">\n <slot name=\"eyebrow\" />\n <h2 class=\"heading\" part=\"heading\">\n <slot />\n </h2>\n <slot name=\"description\" />\n <div class={{ metadata: true, empty: !this.hasMetadata }} part=\"metadata\">\n <slot name=\"metadata\" onSlotchange={this.read} />\n </div>\n </div>\n\n <div class={{ actions: true, empty: !this.hasActions }} part=\"actions\">\n <slot name=\"actions\" onSlotchange={this.read} />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"oDAAA,MAAMA,EAAqB,IAAM,0yC,MC6BpBC,EAAe,M,iDAIDC,QAAU,MAGVC,MAA8B,UAG9CC,YAAc,MACdC,WAAa,MAGtB,iBAAAC,GACEC,KAAKC,M,CAGCA,KAAO,KACb,MAAMC,EAAWC,GACfC,MAAMC,KAAKL,KAAKM,GAAGC,UAAUC,MAAMC,GAAUA,EAAMC,aAAa,UAAYP,IAE9EH,KAAKH,YAAcK,EAAQ,YAC3BF,KAAKF,WAAaI,EAAQ,UAAU,EAGtC,MAAAS,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,UAAUC,KAAK,WACxBJ,EAAA,QAAAE,IAAA,2CAAMX,KAAK,YACXS,EAAA,MAAAE,IAAA,2CAAIC,MAAM,UAAUC,KAAK,WACvBJ,EAAA,QAAAE,IAAA,8CAEFF,EAAA,QAAAE,IAAA,2CAAMX,KAAK,gBACXS,EAAA,OAAAE,IAAA,2CAAKC,MAAO,CAAEE,SAAU,KAAMC,OAAQlB,KAAKH,aAAemB,KAAK,YAC7DJ,EAAA,QAAAE,IAAA,2CAAMX,KAAK,WAAWgB,aAAcnB,KAAKC,SAI7CW,EAAA,OAAAE,IAAA,2CAAKC,MAAO,CAAEK,QAAS,KAAMF,OAAQlB,KAAKF,YAAckB,KAAK,WAC3DJ,EAAA,QAAAE,IAAA,2CAAMX,KAAK,UAAUgB,aAAcnB,KAAKC,Q","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,a,h as r,H as s}from"./p-Bm6UxEit.js";function e(t){const a=t.findIndex((t=>t.current));if(a>=0)return a;return t.length-1}const n=()=>`:host{display:block;width:100%}:host([hidden]){display:none}.list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--space-2);list-style:none;margin:0;padding:0}.list slot{display:contents}`;const i=class{constructor(a){t(this,a)}get el(){return a(this)}label="Breadcrumb";separator="/";componentWillLoad(){this.sync()}componentDidLoad(){this.sync()}handleSeparatorChange(){this.sync()}async refresh(){this.sync()}get crumbs(){return Array.from(this.el.querySelectorAll("pf-breadcrumb")).filter((t=>t.parentElement===this.el))}isCurrent(t){return t.current??t.hasAttribute("current")}sync(){const t=this.crumbs;const a=e(t.map((t=>({current:this.isCurrent(t)}))));for(const[r,s]of t.entries()){const e=s;e.currentPage=r===a;e.last=r===t.length-1;e.separator=this.separator}}render(){return r(s,{key:"ba6aac87bd5f235035ea7d15cc7be4a400dd4882",role:"navigation","aria-label":this.label},r("ol",{key:"fdca023c17af41cba5fa4009de9b0972abf770ab",class:"list",part:"list"},r("slot",{key:"cd8e5645f012b2db1ac6b22fe90d49c7794064f3",onSlotchange:()=>this.refresh()})))}static get watchers(){return{separator:[{handleSeparatorChange:0}]}}};i.style=n();export{i as pf_breadcrumbs};
|
|
2
|
+
//# sourceMappingURL=p-77168a0d.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolveCurrentCrumb","crumbs","explicit","findIndex","crumb","current","length","pfBreadcrumbsCss","PfBreadcrumbs","label","separator","componentWillLoad","this","sync","componentDidLoad","handleSeparatorChange","refresh","Array","from","el","querySelectorAll","filter","parentElement","isCurrent","hasAttribute","currentIndex","map","index","entries","node","currentPage","last","render","h","Host","key","role","class","part","onSlotchange"],"sources":["../core/dist/breadcrumbs.js","src/components/pf-breadcrumbs/pf-breadcrumbs.css?tag=pf-breadcrumbs&encapsulation=shadow","src/components/pf-breadcrumbs/pf-breadcrumbs.tsx"],"sourcesContent":["//#region src/breadcrumbs.ts\n/**\n* The index of the current crumb: the first one marked `current`, or the last\n* crumb when none is. `-1` for an empty trail.\n*\n* One index rather than a per-crumb answer, because that is what stops a trail\n* marking two pages. The React `Breadcrumbs` read `item.current ?? isLast` per\n* item, which marked both the explicitly-current crumb *and* the last one as\n* soon as a consumer marked anything but the last — so a screen reader was\n* told the user was on two pages at once.\n*/\nfunction resolveCurrentCrumb(crumbs) {\n\tconst explicit = crumbs.findIndex((crumb) => crumb.current);\n\tif (explicit >= 0) return explicit;\n\treturn crumbs.length - 1;\n}\n//#endregion\nexport { resolveCurrentCrumb };\n",":host {\n display: block;\n width: 100%;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.list {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-2);\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\n * The crumbs have to be flex items of the list, not of a box inside it. The UA\n * stylesheet already gives a slot `display: contents`, and this says so out\n * loud -- the same thing pf-calendar needs for a semantic row in a grid.\n */\n.list slot {\n display: contents;\n}\n","import { resolveCurrentCrumb } from '@pitchfork-ui/core';\nimport { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core';\n\n/**\n * A breadcrumb trail over `pf-breadcrumb` children.\n *\n * The group owns the two things a crumb cannot know on its own: which crumb is\n * the current page, and which one is last — so only the last goes without a\n * separator after it.\n *\n * The separator is a **string**, where the React `separator` is a\n * `ReactNode`, because it has to appear between every pair: a slot renders its\n * assigned content once and in one place, so there is no way to repeat\n * slotted content down the trail. Each crumb draws its own instead, which is\n * why the group pushes the string down.\n *\n * @slot - the `pf-breadcrumb` children.\n * @part list - the ordered list the crumbs are slotted into.\n */\n@Component({\n tag: 'pf-breadcrumbs',\n styleUrl: 'pf-breadcrumbs.css',\n shadow: true,\n})\nexport class PfBreadcrumbs {\n @Element() el!: HTMLElement;\n\n /** The trail's accessible name. */\n @Prop() label = 'Breadcrumb';\n\n /** Drawn after every crumb but the last. */\n @Prop() separator = '/';\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('separator')\n handleSeparatorChange() {\n this.sync();\n }\n\n /**\n * Re-reads the children, for a consumer who marked a crumb current through\n * its *property* — which leaves no attribute and fires no `slotchange`.\n */\n @Method()\n async refresh() {\n this.sync();\n }\n\n /** Direct children only: a nested trail owns its own crumbs. */\n private get crumbs(): HTMLElement[] {\n return Array.from(this.el.querySelectorAll<HTMLElement>('pf-breadcrumb')).filter(\n (crumb) => crumb.parentElement === this.el,\n );\n }\n\n /**\n * The property if the crumb has upgraded, the attribute if it has not:\n * `componentWillLoad` can run before a child parsed from HTML upgrades.\n */\n private isCurrent(crumb: HTMLElement) {\n return (crumb as HTMLElement & { current?: boolean }).current ?? crumb.hasAttribute('current');\n }\n\n /**\n * Core's rule for which crumb is current — the first one marked, or the last\n * — so the React `Breadcrumbs` marks the same one. One index, which is what\n * stops a trail claiming two current pages.\n *\n * The answer goes to `currentPage`, never to the `current` the consumer\n * asked with. Writing it back to `current` looked tidier and was wrong:\n * with nothing marked, the last crumb was given `current`, and appending\n * another crumb then found that one marked and left the mark behind on it.\n * A browser test appends a crumb, which is what caught it.\n */\n private sync() {\n const crumbs = this.crumbs;\n const currentIndex = resolveCurrentCrumb(\n crumbs.map((crumb) => ({ current: this.isCurrent(crumb) })),\n );\n\n for (const [index, crumb] of crumbs.entries()) {\n const node = crumb as HTMLElement & {\n currentPage: boolean;\n last: boolean;\n separator: string;\n };\n node.currentPage = index === currentIndex;\n node.last = index === crumbs.length - 1;\n node.separator = this.separator;\n }\n }\n\n render() {\n return (\n <Host role=\"navigation\" aria-label={this.label}>\n <ol class=\"list\" part=\"list\">\n <slot onSlotchange={() => this.refresh()} />\n </ol>\n </Host>\n );\n }\n}\n"],"mappings":"oDAWA,SAASA,EAAoBC,GAC5B,MAAMC,EAAWD,EAAOE,WAAWC,GAAUA,EAAMC,UACnD,GAAIH,GAAY,EAAG,OAAOA,EAC1B,OAAOD,EAAOK,OAAS,CACxB,CCfA,MAAMC,EAAmB,IAAM,sM,MCwBlBC,EAAa,M,iDAIhBC,MAAQ,aAGRC,UAAY,IAGpB,iBAAAC,GACEC,KAAKC,M,CAGP,gBAAAC,GACEF,KAAKC,M,CAIP,qBAAAE,GACEH,KAAKC,M,CAQP,aAAMG,GACJJ,KAAKC,M,CAIP,UAAYZ,GACV,OAAOgB,MAAMC,KAAKN,KAAKO,GAAGC,iBAA8B,kBAAkBC,QACvEjB,GAAUA,EAAMkB,gBAAkBV,KAAKO,I,CAQpC,SAAAI,CAAUnB,GAChB,OAAQA,EAA8CC,SAAWD,EAAMoB,aAAa,U,CAc9E,IAAAX,GACN,MAAMZ,EAASW,KAAKX,OACpB,MAAMwB,EAAezB,EACnBC,EAAOyB,KAAKtB,IAAK,CAAQC,QAASO,KAAKW,UAAUnB,QAGnD,IAAK,MAAOuB,EAAOvB,KAAUH,EAAO2B,UAAW,CAC7C,MAAMC,EAAOzB,EAKbyB,EAAKC,YAAcH,IAAUF,EAC7BI,EAAKE,KAAOJ,IAAU1B,EAAOK,OAAS,EACtCuB,EAAKnB,UAAYE,KAAKF,S,EAI1B,MAAAsB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,aAAY,aAAaxB,KAAKH,OACvCwB,EAAA,MAAAE,IAAA,2CAAIE,MAAM,OAAOC,KAAK,QACpBL,EAAA,QAAAE,IAAA,2CAAMI,aAAc,IAAM3B,KAAKI,a","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as o,H as r}from"./p-Bm6UxEit.js";const n=()=>`@keyframes pf-spin{to{transform:rotate(360deg)}}:host{display:inline-flex}:host([full-width]){display:flex;width:100%}:host([hidden]){display:none}button{align-items:center;background:none;border:1px solid transparent;border-radius:var(--radius-md);color:inherit;cursor:pointer;display:inline-flex;flex:1;font-family:inherit;font-size:inherit;font-weight:var(--font-weight-semibold);gap:var(--space-2);justify-content:center;line-height:1;min-height:40px;text-decoration:none;transition:background-color var(--pf-transition-fast), border-color var(--pf-transition-fast), color var(--pf-transition-fast), box-shadow var(--pf-transition-fast)}button:focus-visible{box-shadow:var(--pf-button-focus-ring, var(--pf-focus-ring));outline:none}button:disabled{cursor:not-allowed;opacity:0.55}:host([size='sm']) button{font-size:var(--font-size-sm);min-height:36px;padding:0 var(--space-3)}:host([size='md']) button{font-size:var(--font-size-md);min-height:40px;padding:0 var(--space-4)}:host([size='lg']) button{font-size:var(--font-size-lg);min-height:48px;padding:0 var(--space-5)}:host([variant='primary']) button{background:var(--pf-button-primary-bg);color:var(--pf-button-primary-text)}:host([variant='primary']) button:hover:not(:disabled){background:var(--pf-button-primary-bg-hover)}:host([variant='secondary']) button{background:var(--pf-button-secondary-bg);border-color:var(--pf-button-secondary-border);color:var(--pf-button-secondary-text)}:host([variant='secondary']) button:hover:not(:disabled){background:var(--pf-button-secondary-bg-hover);border-color:var(--pf-button-secondary-border-hover)}:host([variant='ghost']) button{background:transparent;color:var(--pf-button-ghost-text)}:host([variant='ghost']) button:hover:not(:disabled){background:var(--pf-button-ghost-bg-hover)}:host([variant='destructive']) button{background:var(--pf-button-destructive-bg);color:var(--pf-button-destructive-text)}:host([variant='destructive']) button:hover:not(:disabled){background:var(--pf-button-destructive-bg-hover)}:host([loading]) button:disabled{cursor:wait;opacity:1}.spinner{animation:pf-spin 0.65s linear infinite;flex-shrink:0}@media (prefers-reduced-motion: reduce){button{transition:none}.spinner{animation-duration:0.01ms;animation-iteration-count:1}}`;const e=class{constructor(o){t(this,o)}variant="primary";size="md";fullWidth=false;loading=false;disabled=false;type="button";label;renderSpinner(){return o("svg",{class:"spinner",part:"spinner",viewBox:"0 0 24 24",fill:"none",width:"1em",height:"1em","aria-hidden":"true",focusable:"false"},o("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"32","stroke-dashoffset":"8"}))}render(){const t=this.disabled||this.loading;return o(r,{key:"9adf86112a2c18facb4513de37871f81a3b373e2"},o("button",{key:"1edecdfbce26d76fec0b746f14b7adc6f5d603d5",part:"button",type:this.type,disabled:t,"aria-busy":this.loading?"true":null,"aria-label":this.label},this.loading&&this.renderSpinner(),o("slot",{key:"6ff1a6b6b4cb32ccc865d42ffa396cd5acd43bbe"})))}static get delegatesFocus(){return true}};e.style=n();export{e as pf_button};
|
|
2
|
+
//# sourceMappingURL=p-7e5ba1f9.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfButtonCss","PfButton","variant","size","fullWidth","loading","disabled","type","label","renderSpinner","h","class","part","viewBox","fill","width","height","focusable","cx","cy","r","stroke","render","isDisabled","this","Host","key"],"sources":["src/components/pf-button/pf-button.css?tag=pf-button&encapsulation=shadow","src/components/pf-button/pf-button.tsx"],"sourcesContent":["/*\n * `@keyframes` do not cross a shadow boundary. In the React library pf-spin is\n * declared once in LoadingIndicators.css and every component picks it up from\n * the global sheet; here each shadow root needs its own copy.\n */\n@keyframes pf-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n:host {\n display: inline-flex;\n}\n\n:host([full-width]) {\n display: flex;\n width: 100%;\n}\n\n:host([hidden]) {\n display: none;\n}\n\nbutton {\n align-items: center;\n background: none;\n border: 1px solid transparent;\n border-radius: var(--radius-md);\n color: inherit;\n cursor: pointer;\n display: inline-flex;\n flex: 1;\n font-family: inherit;\n font-size: inherit;\n font-weight: var(--font-weight-semibold);\n gap: var(--space-2);\n justify-content: center;\n line-height: 1;\n min-height: 40px;\n text-decoration: none;\n transition:\n background-color var(--pf-transition-fast),\n border-color var(--pf-transition-fast),\n color var(--pf-transition-fast),\n box-shadow var(--pf-transition-fast);\n}\n\nbutton:focus-visible {\n box-shadow: var(--pf-button-focus-ring, var(--pf-focus-ring));\n outline: none;\n}\n\nbutton:disabled {\n cursor: not-allowed;\n opacity: 0.55;\n}\n\n:host([size='sm']) button {\n font-size: var(--font-size-sm);\n min-height: 36px;\n padding: 0 var(--space-3);\n}\n\n:host([size='md']) button {\n font-size: var(--font-size-md);\n min-height: 40px;\n padding: 0 var(--space-4);\n}\n\n:host([size='lg']) button {\n font-size: var(--font-size-lg);\n min-height: 48px;\n padding: 0 var(--space-5);\n}\n\n:host([variant='primary']) button {\n background: var(--pf-button-primary-bg);\n color: var(--pf-button-primary-text);\n}\n\n:host([variant='primary']) button:hover:not(:disabled) {\n background: var(--pf-button-primary-bg-hover);\n}\n\n:host([variant='secondary']) button {\n background: var(--pf-button-secondary-bg);\n border-color: var(--pf-button-secondary-border);\n color: var(--pf-button-secondary-text);\n}\n\n:host([variant='secondary']) button:hover:not(:disabled) {\n background: var(--pf-button-secondary-bg-hover);\n border-color: var(--pf-button-secondary-border-hover);\n}\n\n:host([variant='ghost']) button {\n background: transparent;\n color: var(--pf-button-ghost-text);\n}\n\n:host([variant='ghost']) button:hover:not(:disabled) {\n background: var(--pf-button-ghost-bg-hover);\n}\n\n:host([variant='destructive']) button {\n background: var(--pf-button-destructive-bg);\n color: var(--pf-button-destructive-text);\n}\n\n:host([variant='destructive']) button:hover:not(:disabled) {\n background: var(--pf-button-destructive-bg-hover);\n}\n\n:host([loading]) button:disabled {\n cursor: wait;\n opacity: 1;\n}\n\n.spinner {\n animation: pf-spin 0.65s linear infinite;\n flex-shrink: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n button {\n transition: none;\n }\n\n .spinner {\n animation-duration: 0.01ms;\n animation-iteration-count: 1;\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\nexport type PfButtonVariant = 'primary' | 'secondary' | 'ghost' | 'destructive';\nexport type PfButtonSize = 'sm' | 'md' | 'lg';\nexport type PfButtonType = 'button' | 'submit' | 'reset';\n\n/**\n * A button, with the variants, sizes and loading state the React `Button` has.\n *\n * The first element in this package, and the one the whole pipeline was proved\n * on: the PostCSS chain, the generated React bindings and the generated Angular\n * component all exist because this built end to end before anything else was\n * attempted. `delegatesFocus` is why focusing the host reaches the real button\n * inside, which is what lets `pf-toolbar` treat it as an item.\n *\n * @slot - the button's label.\n * @part button - the native button element.\n * @part spinner - the loading spinner.\n */\n@Component({\n tag: 'pf-button',\n styleUrl: 'pf-button.css',\n // delegatesFocus so that focusing <pf-button> reaches the real button, and\n // :focus-visible lands on the element that is actually styled for it.\n shadow: { delegatesFocus: true },\n})\nexport class PfButton {\n /** Visual style. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) variant: PfButtonVariant = 'primary';\n\n /** Control size. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) size: PfButtonSize = 'md';\n\n /** Stretch to the width of the container. */\n @Prop({ reflect: true }) fullWidth = false;\n\n /** Show a spinner and block interaction. */\n @Prop({ reflect: true }) loading = false;\n\n /** Disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Mirrors the native attribute. `submit` and `reset` do not yet act on a form\n * outside this element's shadow root -- that needs ElementInternals, which\n * arrives with the form controls in Wave 3.\n */\n @Prop() type: PfButtonType = 'button';\n\n /** Accessible name, for when the slot holds only an icon. */\n @Prop() label?: string;\n\n private renderSpinner() {\n return (\n <svg\n class=\"spinner\"\n part=\"spinner\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n width=\"1em\"\n height=\"1em\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <circle\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-dasharray=\"32\"\n stroke-dashoffset=\"8\"\n />\n </svg>\n );\n }\n\n render() {\n const isDisabled = this.disabled || this.loading;\n\n return (\n <Host>\n <button\n part=\"button\"\n type={this.type}\n disabled={isDisabled}\n aria-busy={this.loading ? 'true' : null}\n aria-label={this.label}\n >\n {this.loading && this.renderSpinner()}\n <slot />\n </button>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAc,IAAM,quE,MC0BbC,EAAQ,M,yBAEMC,QAA2B,UAG3BC,KAAqB,KAGrBC,UAAY,MAGZC,QAAU,MAGVC,SAAW,MAO5BC,KAAqB,SAGrBC,MAEA,aAAAC,GACN,OACEC,EAAA,OACEC,MAAM,UACNC,KAAK,UACLC,QAAQ,YACRC,KAAK,OACLC,MAAM,MACNC,OAAO,MAAK,cACA,OACZC,UAAU,SAEVP,EAAA,UACEQ,GAAG,KACHC,GAAG,KACHC,EAAE,KACFC,OAAO,eAAc,eACR,IAAG,iBACD,QAAO,mBACL,KAAI,oBACH,M,CAM1B,MAAAC,GACE,MAAMC,EAAaC,KAAKlB,UAAYkB,KAAKnB,QAEzC,OACEK,EAACe,EAAI,CAAAC,IAAA,4CACHhB,EAAA,UAAAgB,IAAA,2CACEd,KAAK,SACLL,KAAMiB,KAAKjB,KACXD,SAAUiB,EAAU,YACTC,KAAKnB,QAAU,OAAS,KAAI,aAC3BmB,KAAKhB,OAEhBgB,KAAKnB,SAAWmB,KAAKf,gBACtBC,EAAA,QAAAgB,IAAA,8C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,a,h as r,H as i}from"./p-Bm6UxEit.js";import{c as s}from"./p-DfpCerXM.js";import{a as o}from"./p-Cr6IXrUk.js";const d=()=>`:host{display:block}:host([hidden]){display:none}.field{display:grid;gap:var(--space-2)}.label{color:var(--pf-textarea-field-label, var(--pf-field-label));font-size:var(--font-size-sm);font-weight:var(--font-weight-medium)}.required{color:var(--pf-field-required);margin-inline-start:var(--space-1)}.description{color:var(--pf-textarea-field-description, var(--pf-field-description));font-size:var(--font-size-sm);margin:0}.error{color:var(--pf-textarea-field-error, var(--pf-field-error));font-size:var(--font-size-sm);margin:0}.textarea{background:var(--pf-textarea-bg);border:1px solid var(--pf-textarea-border);border-radius:var(--radius-md);color:var(--pf-textarea-text);font:inherit;line-height:1.45;min-height:96px;padding:var(--space-2) var(--space-3);resize:vertical;width:100%}.textarea:focus{outline:none}.textarea:focus-visible{border-color:var(--pf-textarea-focus-border);box-shadow:var(--pf-textarea-focus-ring, var(--pf-focus-ring))}.textarea::placeholder{color:var(--pf-textarea-text-muted)}.textarea--invalid{border-color:var(--pf-textarea-invalid-border)}.textarea:disabled{cursor:not-allowed;opacity:0.6}`;const n=class{constructor(a){e(this,a);this.pfInput=t(this,"pfInput");this.pfChange=t(this,"pfChange");if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}}get el(){return a(this)}internals;name;value="";rows=4;label;description;error;placeholder;required=false;disabled=false;readonly=false;pfInput;pfChange;initialValue="";componentWillLoad(){this.initialValue=this.value??"";this.syncFormState()}syncFormState(){this.internals.setFormValue(this.value??"");o(this.internals,Boolean(this.value),this.required,this.error)}async checkValidity(){return this.internals.checkValidity()}async reportValidity(){return this.internals.reportValidity()}async getValidationMessage(){return this.internals.validationMessage}formResetCallback(){this.value=this.initialValue}onInput=e=>{this.value=e.target.value;this.pfInput.emit({value:this.value})};onChange=()=>{this.pfChange.emit({value:this.value})};componentDidRender(){const e=this.el.shadowRoot?.querySelector("textarea");if(e&&e.value!==(this.value??"")){e.value=this.value??""}}render(){const e=s(this.description&&"description",this.error&&"error");return r(i,{key:"2ec86efeeb1ce4aa2ec112e93157a8f205731bf3"},r("div",{key:"8d68eda3ec27c38703391e14f724e7dc06e76503",class:"field",part:"field"},this.label&&r("label",{key:"d73433e1f64c2e47b8a8ca88aa1805610e9058bb",class:"label",part:"label",htmlFor:"input"},this.label,this.required&&r("span",{key:"1a52649b0e92dd7700aa21d3658126764bbac0d0",class:"required","aria-hidden":"true"},"*")),r("textarea",{key:"879a93a961d1f20d5835873bb8351e2ab04c2a79",id:"input",part:"textarea",class:{textarea:true,"textarea--invalid":Boolean(this.error)},name:this.name,rows:this.rows,placeholder:this.placeholder,required:this.required,disabled:this.disabled,readOnly:this.readonly,"aria-invalid":this.error?"true":null,"aria-describedby":e,onInput:this.onInput,onChange:this.onChange}),this.description&&r("p",{key:"91b2ffdb3da3e93e868d2b9a9398d99c2df49a27",class:"description",part:"description",id:"description"},this.description),this.error&&r("p",{key:"58508d7aa6efbf4b55b304b029fb8c2ec6c817e3",class:"error",part:"error",id:"error"},this.error)))}static get delegatesFocus(){return true}static get formAssociated(){return true}static get watchers(){return{value:[{syncFormState:0}],error:[{syncFormState:0}],required:[{syncFormState:0}]}}};n.style=d();export{n as pf_textarea};
|
|
2
|
+
//# sourceMappingURL=p-845c5252.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfTextareaCss","PfTextarea","internals","name","value","rows","label","description","error","placeholder","required","disabled","readonly","pfInput","pfChange","initialValue","componentWillLoad","this","syncFormState","setFormValue","applyControlValidity","Boolean","checkValidity","reportValidity","getValidationMessage","validationMessage","formResetCallback","onInput","event","target","emit","onChange","componentDidRender","control","el","shadowRoot","querySelector","render","describedBy","composeDescribedBy","h","Host","key","class","part","htmlFor","id","textarea","readOnly"],"sources":["src/components/pf-textarea/pf-textarea.css?tag=pf-textarea&encapsulation=shadow","src/components/pf-textarea/pf-textarea.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.field {\n display: grid;\n gap: var(--space-2);\n}\n\n.label {\n color: var(--pf-textarea-field-label, var(--pf-field-label));\n font-size: var(--font-size-sm);\n font-weight: var(--font-weight-medium);\n}\n\n.required {\n color: var(--pf-field-required);\n margin-inline-start: var(--space-1);\n}\n\n.description {\n color: var(--pf-textarea-field-description, var(--pf-field-description));\n font-size: var(--font-size-sm);\n margin: 0;\n}\n\n.error {\n color: var(--pf-textarea-field-error, var(--pf-field-error));\n font-size: var(--font-size-sm);\n margin: 0;\n}\n\n.textarea {\n background: var(--pf-textarea-bg);\n border: 1px solid var(--pf-textarea-border);\n border-radius: var(--radius-md);\n color: var(--pf-textarea-text);\n font: inherit;\n line-height: 1.45;\n min-height: 96px;\n padding: var(--space-2) var(--space-3);\n resize: vertical;\n width: 100%;\n}\n\n.textarea:focus {\n outline: none;\n}\n\n.textarea:focus-visible {\n border-color: var(--pf-textarea-focus-border);\n box-shadow: var(--pf-textarea-focus-ring, var(--pf-focus-ring));\n}\n\n.textarea::placeholder {\n color: var(--pf-textarea-text-muted);\n}\n\n.textarea--invalid {\n border-color: var(--pf-textarea-invalid-border);\n}\n\n.textarea:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n}\n","import { composeDescribedBy } from '@pitchfork-ui/core';\nimport { applyControlValidity } from '../../form-validity';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\n\n/**\n * A form-associated multi-line text control.\n *\n * Shares `pf-input`'s field anatomy and form wiring; the control is a\n * `<textarea>` rather than an `<input>`, so it takes `rows` and resizes.\n *\n * @part field - the wrapper around label, control and messages.\n * @part label - the label element.\n * @part textarea - the native textarea.\n * @part description - the hint text below the control.\n * @part error - the error message below the control.\n */\n@Component({\n tag: 'pf-textarea',\n styleUrl: 'pf-textarea.css',\n formAssociated: true,\n shadow: { delegatesFocus: true },\n})\nexport class PfTextarea {\n @Element() el!: HTMLElement;\n\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * Submitted under this name.\n *\n * Reflected, because a form-associated custom element takes its submission\n * name from the `name` *content attribute* -- not from this property. A\n * framework wrapper that sets properties rather than attributes (the\n * generated React bindings do) would otherwise leave the control nameless\n * and absent from the submission, with every other sign of working.\n */\n @Prop({ reflect: true }) name?: string;\n\n /** The control's value. */\n @Prop({ mutable: true }) value = '';\n\n /** Visible rows. Mirrors the native attribute. */\n @Prop() rows = 4;\n\n /** Visible label. Rendered in the same root as the input, so `for` works. */\n @Prop() label?: string;\n\n /** Hint text below the control. */\n @Prop() description?: string;\n\n /** Error message. Its presence is what marks the control invalid. */\n @Prop() error?: string;\n\n @Prop() placeholder?: string;\n\n @Prop({ reflect: true }) required = false;\n\n @Prop({ reflect: true }) disabled = false;\n\n @Prop({ reflect: true }) readonly = false;\n\n /** Fires on every keystroke, like the native `input` event. */\n @Event() pfInput!: EventEmitter<{ value: string }>;\n\n /** Fires when the value is committed, like the native `change` event. */\n @Event() pfChange!: EventEmitter<{ value: string }>;\n\n /**\n * The value the control had when it was created, which is what a form reset\n * restores. Captured here because `value` has been overwritten by then.\n */\n private initialValue = '';\n\n componentWillLoad() {\n this.initialValue = this.value ?? '';\n this.syncFormState();\n }\n\n @Watch('value')\n @Watch('error')\n @Watch('required')\n syncFormState() {\n this.internals.setFormValue(this.value ?? '');\n applyControlValidity(this.internals, Boolean(this.value), this.required, this.error);\n }\n\n /**\n * Whether the control currently satisfies its constraints.\n *\n * A form-associated custom element does not inherit `checkValidity` from\n * anywhere -- the spec puts it on ElementInternals, so the element has to\n * forward it or consumers cannot ask.\n */\n @Method()\n async checkValidity(): Promise<boolean> {\n return this.internals.checkValidity();\n }\n\n /** As `checkValidity`, but also shows the browser's validation message. */\n @Method()\n async reportValidity(): Promise<boolean> {\n return this.internals.reportValidity();\n }\n\n /** The message explaining why the control is invalid, or an empty string. */\n @Method()\n async getValidationMessage(): Promise<string> {\n return this.internals.validationMessage;\n }\n\n /**\n * A reset restores the value the control started with, not an empty string —\n * verified against a native `<input value=\"initial\">`, which comes back to\n * \"initial\" rather than to \"\". Clearing it was a real defect: a\n * `<pf-textarea value=\"…\">` in a form lost its value on any reset.\n */\n formResetCallback() {\n this.value = this.initialValue;\n }\n\n private onInput = (event: Event) => {\n this.value = (event.target as HTMLTextAreaElement).value;\n this.pfInput.emit({ value: this.value });\n };\n\n private onChange = () => {\n this.pfChange.emit({ value: this.value });\n };\n\n /**\n * A textarea's value is its text content, not an attribute, so it cannot be\n * rendered as a JSX child without Stencil replacing that text node on every\n * keystroke. It is written through the DOM property instead, which is what\n * the browser itself does.\n *\n * Guarded on inequality: assigning the same string still moves the caret to\n * the end in some engines, which would make typing into the middle of a\n * paragraph jump the cursor away on every character.\n */\n componentDidRender() {\n const control = this.el.shadowRoot?.querySelector('textarea');\n if (control && control.value !== (this.value ?? '')) {\n control.value = this.value ?? '';\n }\n }\n\n render() {\n // IDs are scoped to this shadow root, so they can be literal -- the useId()\n // the React component needs has no counterpart here.\n const describedBy = composeDescribedBy(\n this.description && 'description',\n this.error && 'error',\n );\n\n return (\n <Host>\n <div class=\"field\" part=\"field\">\n {this.label && (\n <label class=\"label\" part=\"label\" htmlFor=\"input\">\n {this.label}\n {this.required && (\n <span class=\"required\" aria-hidden=\"true\">\n *\n </span>\n )}\n </label>\n )}\n <textarea\n id=\"input\"\n part=\"textarea\"\n class={{ textarea: true, 'textarea--invalid': Boolean(this.error) }}\n name={this.name}\n rows={this.rows}\n placeholder={this.placeholder}\n required={this.required}\n disabled={this.disabled}\n readOnly={this.readonly}\n aria-invalid={this.error ? 'true' : null}\n aria-describedby={describedBy}\n onInput={this.onInput}\n onChange={this.onChange}\n />\n {this.description && (\n <p class=\"description\" part=\"description\" id=\"description\">\n {this.description}\n </p>\n )}\n {this.error && (\n <p class=\"error\" part=\"error\" id=\"error\">\n {this.error}\n </p>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"mIAAA,MAAMA,EAAgB,IAAM,smC,MCiCfC,EAAU,M,kRAGFC,UAWMC,KAGAC,MAAQ,GAGzBC,KAAO,EAGPC,MAGAC,YAGAC,MAEAC,YAEiBC,SAAW,MAEXC,SAAW,MAEXC,SAAW,MAG3BC,QAGAC,SAMDC,aAAe,GAEvB,iBAAAC,GACEC,KAAKF,aAAeE,KAAKb,OAAS,GAClCa,KAAKC,e,CAMP,aAAAA,GACED,KAAKf,UAAUiB,aAAaF,KAAKb,OAAS,IAC1CgB,EAAqBH,KAAKf,UAAWmB,QAAQJ,KAAKb,OAAQa,KAAKP,SAAUO,KAAKT,M,CAWhF,mBAAMc,GACJ,OAAOL,KAAKf,UAAUoB,e,CAKxB,oBAAMC,GACJ,OAAON,KAAKf,UAAUqB,gB,CAKxB,0BAAMC,GACJ,OAAOP,KAAKf,UAAUuB,iB,CASxB,iBAAAC,GACET,KAAKb,MAAQa,KAAKF,Y,CAGZY,QAAWC,IACjBX,KAAKb,MAASwB,EAAMC,OAA+BzB,MACnDa,KAAKJ,QAAQiB,KAAK,CAAE1B,MAAOa,KAAKb,OAAQ,EAGlC2B,SAAW,KACjBd,KAAKH,SAASgB,KAAK,CAAE1B,MAAOa,KAAKb,OAAQ,EAa3C,kBAAA4B,GACE,MAAMC,EAAUhB,KAAKiB,GAAGC,YAAYC,cAAc,YAClD,GAAIH,GAAWA,EAAQ7B,SAAWa,KAAKb,OAAS,IAAK,CACnD6B,EAAQ7B,MAAQa,KAAKb,OAAS,E,EAIlC,MAAAiC,GAGE,MAAMC,EAAcC,EAClBtB,KAAKV,aAAe,cACpBU,KAAKT,OAAS,SAGhB,OACEgC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QAAQC,KAAK,SACrB3B,KAAKX,OACJkC,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQC,KAAK,QAAQC,QAAQ,SACvC5B,KAAKX,MACLW,KAAKP,UACJ8B,EAAA,QAAAE,IAAA,2CAAMC,MAAM,WAAU,cAAa,QAAM,MAM/CH,EAAA,YAAAE,IAAA,2CACEI,GAAG,QACHF,KAAK,WACLD,MAAO,CAAEI,SAAU,KAAM,oBAAqB1B,QAAQJ,KAAKT,QAC3DL,KAAMc,KAAKd,KACXE,KAAMY,KAAKZ,KACXI,YAAaQ,KAAKR,YAClBC,SAAUO,KAAKP,SACfC,SAAUM,KAAKN,SACfqC,SAAU/B,KAAKL,SAAQ,eACTK,KAAKT,MAAQ,OAAS,KAAI,mBACtB8B,EAClBX,QAASV,KAAKU,QACdI,SAAUd,KAAKc,WAEhBd,KAAKV,aACJiC,EAAA,KAAAE,IAAA,2CAAGC,MAAM,cAAcC,KAAK,cAAcE,GAAG,eAC1C7B,KAAKV,aAGTU,KAAKT,OACJgC,EAAA,KAAAE,IAAA,2CAAGC,MAAM,QAAQC,KAAK,QAAQE,GAAG,SAC9B7B,KAAKT,Q","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,c as e,a as r,h as t,H as i}from"./p-Bm6UxEit.js";function s(a,e,r=false){if(!(e>0))return-1;if(!Number.isFinite(a))return 0;const t=Math.trunc(a);if(r)return(t%e+e)%e;return Math.min(Math.max(t,0),e-1)}function o(a,e){if(!(e>0))return"No slides";return`Slide ${s(a,e)+1} of ${e}`}const n=()=>`:host{background:var(--pf-carousel-bg);border:1px solid var(--pf-carousel-border);border-radius:var(--pf-carousel-radius, var(--radius-md));display:grid;gap:var(--pf-carousel-gap, var(--space-3));overflow:hidden;padding:var(--pf-carousel-padding, var(--space-3));width:100%}:host([hidden]){display:none}.viewport{background:var(--pf-carousel-viewport-bg);border-radius:var(--pf-carousel-viewport-radius, var(--radius-sm));overflow:hidden;width:100%}.track{display:flex;transition:transform var(--pf-carousel-transition-duration, var(--duration-moderate)) var(--easing-decelerate);width:100%}.track.empty{display:none}.empty{align-items:center;color:var(--pf-carousel-empty-text);display:flex;font-size:var(--pf-carousel-empty-font-size, var(--font-size-sm));justify-content:center;min-height:var(--pf-carousel-empty-min-height, 180px);padding:var(--pf-carousel-empty-padding, var(--space-4));text-align:center}.sr-only{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.controls{align-items:center;display:grid;gap:var(--pf-carousel-controls-gap, var(--space-2));grid-template-columns:var(--pf-carousel-nav-size, 28px) 1fr var(--pf-carousel-nav-size, 28px)}.nav{align-items:center;background:transparent;border:0;border-radius:var(--pf-carousel-nav-radius, var(--radius-sm));color:var(--pf-carousel-nav-text);cursor:pointer;display:inline-flex;font-size:var(--pf-carousel-nav-font-size, var(--font-size-sm));height:var(--pf-carousel-nav-size, 28px);justify-content:center;padding:0;width:var(--pf-carousel-nav-size, 28px)}.nav:hover:not(:disabled){background:var(--pf-carousel-nav-hover-bg);color:var(--pf-carousel-nav-hover-text)}.nav:focus-visible{box-shadow:var(--pf-carousel-focus-ring, var(--pf-focus-ring));outline:none}.nav:disabled{color:var(--pf-carousel-nav-text);cursor:not-allowed;opacity:var(--pf-carousel-disabled-opacity, 0.45)}.indicators{align-items:center;display:inline-flex;gap:var(--pf-carousel-indicator-gap, var(--space-1));justify-content:center}.indicator{background:var(--pf-carousel-indicator-bg);border:0;border-radius:var(--pf-carousel-indicator-radius, var(--radius-full));cursor:pointer;height:var(--pf-carousel-indicator-size, 8px);padding:0;transition:all var(--pf-carousel-indicator-transition-duration, var(--duration-fast)) var(--easing-decelerate);width:var(--pf-carousel-indicator-size, 8px)}.indicator--active{background:var(--pf-carousel-indicator-active-bg);width:var(--pf-carousel-indicator-active-width, 20px)}.indicator:focus-visible{box-shadow:var(--pf-carousel-focus-ring, var(--pf-focus-ring));outline:none}.indicator-spacer{display:block;min-height:var(--pf-carousel-indicator-size, 8px)}@media (prefers-reduced-motion: reduce){.track,.indicator{transition:none}}`;const c=class{constructor(r){a(this,r);this.pfChange=e(this,"pfChange")}get el(){return r(this)}index=0;loop=true;showIndicators=true;autoPlay=false;autoPlayInterval=5e3;label="Carousel";previousLabel="Previous slide";nextLabel="Next slide";pfChange;total=0;timer;componentWillLoad(){this.sync()}componentDidLoad(){this.sync();this.startTimer()}disconnectedCallback(){this.stopTimer()}handleIndexChange(){this.sync()}handleTimerChange(){this.startTimer()}async refresh(){this.sync()}async next(){this.goTo(this.resolved+1)}async previous(){this.goTo(this.resolved-1)}get slides(){return Array.from(this.el.querySelectorAll("pf-carousel-slide")).filter((a=>a.parentElement===this.el))}get resolved(){return Math.max(s(this.index,this.total),0)}sync(){const a=this.slides;this.total=a.length;const e=this.resolved;for(const[r,t]of a.entries()){const i=t;i.active=r===e;i.position=r+1;i.total=a.length}}goTo(a){const e=s(a,this.total,this.loop);if(e<0||e===this.resolved)return;this.index=e;this.sync();this.pfChange.emit({index:e})}startTimer(){this.stopTimer();if(!this.autoPlay||this.total<2)return;this.timer=window.setInterval((()=>{this.goTo(this.resolved+1)}),Number(this.autoPlayInterval)||5e3)}stopTimer(){if(this.timer!==undefined)window.clearInterval(this.timer);this.timer=undefined}render(){const a=this.resolved;const e=!this.loop&&a<=0;const r=!this.loop&&a>=this.total-1;return t(i,{key:"4f5a52bd33464c438e7a11d18c19c136ae9a1c81",role:"region","aria-roledescription":"carousel","aria-label":this.label},t("div",{key:"04ee0fe33dadacf5e0097e97eb8968a4cb07bf6e",class:"viewport",part:"viewport"},this.total===0?t("div",{class:"empty",part:"empty",role:"status"},t("slot",{name:"empty"},"Add at least one slide.")):null,t("div",{key:"a8fc8ce03bd7f8e8ac43215a61074f71e8fdb8e3",class:{track:true,empty:this.total===0},part:"track",style:{transform:`translateX(-${a*100}%)`}},t("slot",{key:"55720356b707f7589cbe50daf6ccbacf8503b333",onSlotchange:()=>this.refresh()}))),t("span",{key:"90ab70084b5b7bc1797350160805de10cae812f0",class:"sr-only","aria-live":"polite","aria-atomic":"true"},this.total>0?o(a,this.total):""),t("div",{key:"37edc5f9cff2e99992ade51d1189ee9da073cf63",class:"controls",part:"controls"},t("button",{key:"aa1470ae4a33ba1ecb6675ae0444d7ebcce31c0d",type:"button",class:"nav",part:"previous","aria-label":this.previousLabel,disabled:e||this.total<2,onClick:()=>this.goTo(a-1)},t("pf-icon",{key:"7af19a182498df4e9e8c78ef10fcc24e202a87a9",name:"square-caret-left","aria-hidden":"true"})),this.showIndicators&&this.total>1?t("div",{class:"indicators",part:"indicators",role:"group","aria-label":"Slide indicators"},Array.from({length:this.total},((e,r)=>t("button",{type:"button",class:{indicator:true,"indicator--active":r===a},part:"indicator","aria-label":`Go to slide ${r+1}`,"aria-current":r===a?"true":null,onClick:()=>this.goTo(r)})))):t("span",{class:"indicator-spacer","aria-hidden":"true"}),t("button",{key:"a9ce64398be6552d49926d467f7a2b74024d34a1",type:"button",class:"nav",part:"next","aria-label":this.nextLabel,disabled:r||this.total<2,onClick:()=>this.goTo(a+1)},t("pf-icon",{key:"385f7b01bb6086d454be41ca4f04a449a2e0504c",name:"square-caret-right","aria-hidden":"true"}))))}static get watchers(){return{index:[{handleIndexChange:0}],loop:[{handleIndexChange:0}],autoPlay:[{handleTimerChange:0}],autoPlayInterval:[{handleTimerChange:0}]}}};c.style=n();export{c as pf_carousel};
|
|
2
|
+
//# sourceMappingURL=p-8718bb3a.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolveSlideIndex","next","total","loop","Number","isFinite","index","Math","trunc","min","max","slidePositionLabel","pfCarouselCss","PfCarousel","showIndicators","autoPlay","autoPlayInterval","label","previousLabel","nextLabel","pfChange","timer","componentWillLoad","this","sync","componentDidLoad","startTimer","disconnectedCallback","stopTimer","handleIndexChange","handleTimerChange","refresh","goTo","resolved","previous","slides","Array","from","el","querySelectorAll","filter","slide","parentElement","length","active","position","entries","node","emit","window","setInterval","undefined","clearInterval","render","atStart","atEnd","h","Host","key","role","class","part","name","track","empty","style","transform","onSlotchange","type","disabled","onClick","_","indicator"],"sources":["../core/dist/carousel.js","src/components/pf-carousel/pf-carousel.css?tag=pf-carousel&encapsulation=shadow","src/components/pf-carousel/pf-carousel.tsx"],"sourcesContent":["//#region src/carousel.ts\n/**\n* Which slide a carousel lands on, and what it says it is showing.\n*\n* Shared because looping is a decision: stepping past the last slide either\n* wraps to the first or stays put, and a React `Carousel` and a\n* `<pf-carousel>` that disagreed would be two components wearing one name.\n*/\n/**\n* The slide `next` resolves to, out of `total`.\n*\n* With `loop` it wraps at both ends — including from a negative index, which\n* is what stepping back from the first slide gives, and which a bare `%` in\n* JavaScript gets wrong: `-1 % 5` is `-1`, not `4`. Without it the index is\n* clamped. An empty carousel has no slide to land on and reports `-1`.\n*/\nfunction resolveSlideIndex(next, total, loop = false) {\n\tif (!(total > 0)) return -1;\n\tif (!Number.isFinite(next)) return 0;\n\tconst index = Math.trunc(next);\n\tif (loop) return (index % total + total) % total;\n\treturn Math.min(Math.max(index, 0), total - 1);\n}\n/**\n* What a carousel announces, which is the one thing a reader who cannot see it\n* has to go on: \"Slide 2 of 5\".\n*\n* Here rather than in either layer because it is read out, and two layers\n* announcing the same carousel differently would be two different controls to\n* a screen reader.\n*/\nfunction slidePositionLabel(index, total) {\n\tif (!(total > 0)) return \"No slides\";\n\treturn `Slide ${resolveSlideIndex(index, total) + 1} of ${total}`;\n}\n//#endregion\nexport { resolveSlideIndex, slidePositionLabel };\n",":host {\n background: var(--pf-carousel-bg);\n border: 1px solid var(--pf-carousel-border);\n border-radius: var(--pf-carousel-radius, var(--radius-md));\n display: grid;\n gap: var(--pf-carousel-gap, var(--space-3));\n overflow: hidden;\n padding: var(--pf-carousel-padding, var(--space-3));\n width: 100%;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.viewport {\n background: var(--pf-carousel-viewport-bg);\n border-radius: var(--pf-carousel-viewport-radius, var(--radius-sm));\n overflow: hidden;\n width: 100%;\n}\n\n.track {\n display: flex;\n transition: transform var(--pf-carousel-transition-duration, var(--duration-moderate))\n var(--easing-decelerate);\n width: 100%;\n}\n\n/*\n * The track stays in the tree with no slides in it — a slot that is not\n * rendered never fires `slotchange` — and is simply not laid out. Two classes\n * deep, because the track sets its own `display` above.\n */\n.track.empty {\n display: none;\n}\n\n.empty {\n align-items: center;\n color: var(--pf-carousel-empty-text);\n display: flex;\n font-size: var(--pf-carousel-empty-font-size, var(--font-size-sm));\n justify-content: center;\n min-height: var(--pf-carousel-empty-min-height, 180px);\n padding: var(--pf-carousel-empty-padding, var(--space-4));\n text-align: center;\n}\n\n/*\n * Each element needs its own copy: `.pf-sr-only` is declared once in the React\n * library's global sheet and does not cross a shadow boundary.\n */\n.sr-only {\n border: 0;\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.controls {\n align-items: center;\n display: grid;\n gap: var(--pf-carousel-controls-gap, var(--space-2));\n grid-template-columns:\n var(--pf-carousel-nav-size, 28px) 1fr\n var(--pf-carousel-nav-size, 28px);\n}\n\n.nav {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: var(--pf-carousel-nav-radius, var(--radius-sm));\n color: var(--pf-carousel-nav-text);\n cursor: pointer;\n display: inline-flex;\n font-size: var(--pf-carousel-nav-font-size, var(--font-size-sm));\n height: var(--pf-carousel-nav-size, 28px);\n justify-content: center;\n padding: 0;\n width: var(--pf-carousel-nav-size, 28px);\n}\n\n.nav:hover:not(:disabled) {\n background: var(--pf-carousel-nav-hover-bg);\n color: var(--pf-carousel-nav-hover-text);\n}\n\n.nav:focus-visible {\n box-shadow: var(--pf-carousel-focus-ring, var(--pf-focus-ring));\n outline: none;\n}\n\n.nav:disabled {\n color: var(--pf-carousel-nav-text);\n cursor: not-allowed;\n opacity: var(--pf-carousel-disabled-opacity, 0.45);\n}\n\n.indicators {\n align-items: center;\n display: inline-flex;\n gap: var(--pf-carousel-indicator-gap, var(--space-1));\n justify-content: center;\n}\n\n.indicator {\n background: var(--pf-carousel-indicator-bg);\n border: 0;\n border-radius: var(--pf-carousel-indicator-radius, var(--radius-full));\n cursor: pointer;\n height: var(--pf-carousel-indicator-size, 8px);\n padding: 0;\n transition: all var(--pf-carousel-indicator-transition-duration, var(--duration-fast))\n var(--easing-decelerate);\n width: var(--pf-carousel-indicator-size, 8px);\n}\n\n.indicator--active {\n background: var(--pf-carousel-indicator-active-bg);\n width: var(--pf-carousel-indicator-active-width, 20px);\n}\n\n.indicator:focus-visible {\n box-shadow: var(--pf-carousel-focus-ring, var(--pf-focus-ring));\n outline: none;\n}\n\n.indicator-spacer {\n display: block;\n min-height: var(--pf-carousel-indicator-size, 8px);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .track,\n .indicator {\n transition: none;\n }\n}\n","import { resolveSlideIndex, slidePositionLabel } from '@pitchfork-ui/core';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\n\n/**\n * A carousel over `pf-carousel-slide` children.\n *\n * The group owns the index, the controls, the indicators and the live region\n * that announces the move; each slide owns only whether it is the one on show.\n *\n * `role=\"region\"` with `aria-roledescription=\"carousel\"` rather than any of\n * the tab or listbox patterns: a carousel is a region whose content changes,\n * and the announcement is what tells a reader it has.\n *\n * @slot - the `pf-carousel-slide` children.\n * @slot empty - what to show when there are no slides.\n * @part viewport - the clipping box.\n * @part track - the strip that slides.\n * @part controls - the row holding the buttons and the indicators.\n * @part previous - the step-back button.\n * @part next - the step-forward button.\n * @part indicators - the box holding the dots.\n * @part indicator - one dot.\n */\n@Component({\n tag: 'pf-carousel',\n styleUrl: 'pf-carousel.css',\n shadow: true,\n})\nexport class PfCarousel {\n @Element() el!: HTMLElement;\n\n /** The slide on show, counting from 0. */\n @Prop({ mutable: true }) index = 0;\n\n /** Wrap at both ends rather than stopping. */\n @Prop({ reflect: true }) loop = true;\n\n /** Show the dots. */\n @Prop({ reflect: true }) showIndicators = true;\n\n /** Step forward on a timer. */\n @Prop({ reflect: true }) autoPlay = false;\n\n /** How long between steps, in milliseconds. */\n @Prop() autoPlayInterval = 5000;\n\n /** The carousel's accessible name. */\n @Prop() label = 'Carousel';\n\n /** The step-back button's accessible name. */\n @Prop() previousLabel = 'Previous slide';\n\n /** The step-forward button's accessible name. */\n @Prop() nextLabel = 'Next slide';\n\n /** Fires when the slide on show changes, however it changed. */\n @Event() pfChange!: EventEmitter<{ index: number }>;\n\n /** How many slides there are, which every control depends on. */\n @State() total = 0;\n\n private timer?: number;\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 this.startTimer();\n }\n\n disconnectedCallback() {\n this.stopTimer();\n }\n\n @Watch('index')\n @Watch('loop')\n handleIndexChange() {\n this.sync();\n }\n\n @Watch('autoPlay')\n @Watch('autoPlayInterval')\n handleTimerChange() {\n this.startTimer();\n }\n\n /** Re-reads the slides, for a consumer who changed them imperatively. */\n @Method()\n async refresh() {\n this.sync();\n }\n\n /** Steps one slide forward, as the button and the timer do. */\n @Method()\n async next() {\n this.goTo(this.resolved + 1);\n }\n\n /** Steps one slide back. */\n @Method()\n async previous() {\n this.goTo(this.resolved - 1);\n }\n\n /** Direct children only: a nested carousel owns its own slides. */\n private get slides(): HTMLElement[] {\n return Array.from(this.el.querySelectorAll<HTMLElement>('pf-carousel-slide')).filter(\n (slide) => slide.parentElement === this.el,\n );\n }\n\n /** The slide actually on show, which an out-of-range index resolves to. */\n private get resolved(): number {\n return Math.max(resolveSlideIndex(this.index, this.total), 0);\n }\n\n private sync() {\n const slides = this.slides;\n this.total = slides.length;\n const active = this.resolved;\n\n for (const [position, slide] of slides.entries()) {\n const node = slide as HTMLElement & { active: boolean; position: number; total: number };\n node.active = position === active;\n node.position = position + 1;\n node.total = slides.length;\n }\n }\n\n private goTo(next: number) {\n const index = resolveSlideIndex(next, this.total, this.loop);\n if (index < 0 || index === this.resolved) return;\n\n this.index = index;\n this.sync();\n this.pfChange.emit({ index });\n }\n\n /**\n * One timer, restarted rather than stacked: a consumer changing the interval\n * while it runs would otherwise leave the old one going, and the carousel\n * would step twice as often for no visible reason.\n */\n private startTimer() {\n this.stopTimer();\n if (!this.autoPlay || this.total < 2) return;\n\n this.timer = window.setInterval(\n () => {\n this.goTo(this.resolved + 1);\n },\n Number(this.autoPlayInterval) || 5000,\n );\n }\n\n private stopTimer() {\n if (this.timer !== undefined) window.clearInterval(this.timer);\n this.timer = undefined;\n }\n\n render() {\n const active = this.resolved;\n const atStart = !this.loop && active <= 0;\n const atEnd = !this.loop && active >= this.total - 1;\n\n return (\n <Host role=\"region\" aria-roledescription=\"carousel\" aria-label={this.label}>\n <div class=\"viewport\" part=\"viewport\">\n {this.total === 0 ? (\n <div class=\"empty\" part=\"empty\" role=\"status\">\n <slot name=\"empty\">Add at least one slide.</slot>\n </div>\n ) : null}\n {/*\n The track stays in the tree even with no slides, because a slot\n that is not rendered never fires `slotchange` — slides added later\n would stay invisible for good.\n */}\n <div\n class={{ track: true, empty: this.total === 0 }}\n part=\"track\"\n style={{ transform: `translateX(-${active * 100}%)` }}\n >\n <slot onSlotchange={() => this.refresh()} />\n </div>\n </div>\n\n {/*\n The announcement, which is the only thing a reader who cannot see the\n carousel has to go on. `aria-live` on a box that is always present:\n a live region added at the moment it changes is not announced.\n */}\n <span class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\n {this.total > 0 ? slidePositionLabel(active, this.total) : ''}\n </span>\n\n <div class=\"controls\" part=\"controls\">\n <button\n type=\"button\"\n class=\"nav\"\n part=\"previous\"\n aria-label={this.previousLabel}\n disabled={atStart || this.total < 2}\n onClick={() => this.goTo(active - 1)}\n >\n <pf-icon name=\"square-caret-left\" aria-hidden=\"true\"></pf-icon>\n </button>\n\n {this.showIndicators && this.total > 1 ? (\n <div class=\"indicators\" part=\"indicators\" role=\"group\" aria-label=\"Slide indicators\">\n {Array.from({ length: this.total }, (_, position) => (\n <button\n type=\"button\"\n class={{ indicator: true, 'indicator--active': position === active }}\n part=\"indicator\"\n aria-label={`Go to slide ${position + 1}`}\n aria-current={position === active ? 'true' : null}\n onClick={() => this.goTo(position)}\n ></button>\n ))}\n </div>\n ) : (\n <span class=\"indicator-spacer\" aria-hidden=\"true\"></span>\n )}\n\n <button\n type=\"button\"\n class=\"nav\"\n part=\"next\"\n aria-label={this.nextLabel}\n disabled={atEnd || this.total < 2}\n onClick={() => this.goTo(active + 1)}\n >\n <pf-icon name=\"square-caret-right\" aria-hidden=\"true\"></pf-icon>\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gEAgBA,SAASA,EAAkBC,EAAMC,EAAOC,EAAO,OAC9C,KAAMD,EAAQ,GAAI,OAAO,EACzB,IAAKE,OAAOC,SAASJ,GAAO,OAAO,EACnC,MAAMK,EAAQC,KAAKC,MAAMP,GACzB,GAAIE,EAAM,OAAQG,EAAQJ,EAAQA,GAASA,EAC3C,OAAOK,KAAKE,IAAIF,KAAKG,IAAIJ,EAAO,GAAIJ,EAAQ,EAC7C,CASA,SAASS,EAAmBL,EAAOJ,GAClC,KAAMA,EAAQ,GAAI,MAAO,YACzB,MAAO,SAASF,EAAkBM,EAAOJ,GAAS,QAAQA,GAC3D,CClCA,MAAMU,EAAgB,IAAM,kvF,MCuCfC,EAAU,M,kFAIIP,MAAQ,EAGRH,KAAO,KAGPW,eAAiB,KAGjBC,SAAW,MAG5BC,iBAAmB,IAGnBC,MAAQ,WAGRC,cAAgB,iBAGhBC,UAAY,aAGXC,SAGAlB,MAAQ,EAETmB,MAGR,iBAAAC,GACEC,KAAKC,M,CAGP,gBAAAC,GACEF,KAAKC,OACLD,KAAKG,Y,CAGP,oBAAAC,GACEJ,KAAKK,W,CAKP,iBAAAC,GACEN,KAAKC,M,CAKP,iBAAAM,GACEP,KAAKG,Y,CAKP,aAAMK,GACJR,KAAKC,M,CAKP,UAAMvB,GACJsB,KAAKS,KAAKT,KAAKU,SAAW,E,CAK5B,cAAMC,GACJX,KAAKS,KAAKT,KAAKU,SAAW,E,CAI5B,UAAYE,GACV,OAAOC,MAAMC,KAAKd,KAAKe,GAAGC,iBAA8B,sBAAsBC,QAC3EC,GAAUA,EAAMC,gBAAkBnB,KAAKe,I,CAK5C,YAAYL,GACV,OAAO1B,KAAKG,IAAIV,EAAkBuB,KAAKjB,MAAOiB,KAAKrB,OAAQ,E,CAGrD,IAAAsB,GACN,MAAMW,EAASZ,KAAKY,OACpBZ,KAAKrB,MAAQiC,EAAOQ,OACpB,MAAMC,EAASrB,KAAKU,SAEpB,IAAK,MAAOY,EAAUJ,KAAUN,EAAOW,UAAW,CAChD,MAAMC,EAAON,EACbM,EAAKH,OAASC,IAAaD,EAC3BG,EAAKF,SAAWA,EAAW,EAC3BE,EAAK7C,MAAQiC,EAAOQ,M,EAIhB,IAAAX,CAAK/B,GACX,MAAMK,EAAQN,EAAkBC,EAAMsB,KAAKrB,MAAOqB,KAAKpB,MACvD,GAAIG,EAAQ,GAAKA,IAAUiB,KAAKU,SAAU,OAE1CV,KAAKjB,MAAQA,EACbiB,KAAKC,OACLD,KAAKH,SAAS4B,KAAK,CAAE1C,S,CAQf,UAAAoB,GACNH,KAAKK,YACL,IAAKL,KAAKR,UAAYQ,KAAKrB,MAAQ,EAAG,OAEtCqB,KAAKF,MAAQ4B,OAAOC,aAClB,KACE3B,KAAKS,KAAKT,KAAKU,SAAW,EAAE,GAE9B7B,OAAOmB,KAAKP,mBAAqB,I,CAI7B,SAAAY,GACN,GAAIL,KAAKF,QAAU8B,UAAWF,OAAOG,cAAc7B,KAAKF,OACxDE,KAAKF,MAAQ8B,S,CAGf,MAAAE,GACE,MAAMT,EAASrB,KAAKU,SACpB,MAAMqB,GAAW/B,KAAKpB,MAAQyC,GAAU,EACxC,MAAMW,GAAShC,KAAKpB,MAAQyC,GAAUrB,KAAKrB,MAAQ,EAEnD,OACEsD,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,SAAQ,uBAAsB,WAAU,aAAapC,KAAKN,OACnEuC,EAAA,OAAAE,IAAA,2CAAKE,MAAM,WAAWC,KAAK,YACxBtC,KAAKrB,QAAU,EACdsD,EAAA,OAAKI,MAAM,QAAQC,KAAK,QAAQF,KAAK,UACnCH,EAAA,QAAMM,KAAK,SAAO,4BAElB,KAMJN,EAAA,OAAAE,IAAA,2CACEE,MAAO,CAAEG,MAAO,KAAMC,MAAOzC,KAAKrB,QAAU,GAC5C2D,KAAK,QACLI,MAAO,CAAEC,UAAW,eAAetB,EAAS,UAE5CY,EAAA,QAAAE,IAAA,2CAAMS,aAAc,IAAM5C,KAAKQ,cASnCyB,EAAA,QAAAE,IAAA,2CAAME,MAAM,UAAS,YAAW,SAAQ,cAAa,QAClDrC,KAAKrB,MAAQ,EAAIS,EAAmBiC,EAAQrB,KAAKrB,OAAS,IAG7DsD,EAAA,OAAAE,IAAA,2CAAKE,MAAM,WAAWC,KAAK,YACzBL,EAAA,UAAAE,IAAA,2CACEU,KAAK,SACLR,MAAM,MACNC,KAAK,WAAU,aACHtC,KAAKL,cACjBmD,SAAUf,GAAW/B,KAAKrB,MAAQ,EAClCoE,QAAS,IAAM/C,KAAKS,KAAKY,EAAS,IAElCY,EAAA,WAAAE,IAAA,2CAASI,KAAK,oBAAmB,cAAa,UAG/CvC,KAAKT,gBAAkBS,KAAKrB,MAAQ,EACnCsD,EAAA,OAAKI,MAAM,aAAaC,KAAK,aAAaF,KAAK,QAAO,aAAY,oBAC/DvB,MAAMC,KAAK,CAAEM,OAAQpB,KAAKrB,QAAS,CAACqE,EAAG1B,IACtCW,EAAA,UACEY,KAAK,SACLR,MAAO,CAAEY,UAAW,KAAM,oBAAqB3B,IAAaD,GAC5DiB,KAAK,YAAW,aACJ,eAAehB,EAAW,IAAG,eAC3BA,IAAaD,EAAS,OAAS,KAC7C0B,QAAS,IAAM/C,KAAKS,KAAKa,QAK/BW,EAAA,QAAMI,MAAM,mBAAkB,cAAa,SAG7CJ,EAAA,UAAAE,IAAA,2CACEU,KAAK,SACLR,MAAM,MACNC,KAAK,OAAM,aACCtC,KAAKJ,UACjBkD,SAAUd,GAAShC,KAAKrB,MAAQ,EAChCoE,QAAS,IAAM/C,KAAKS,KAAKY,EAAS,IAElCY,EAAA,WAAAE,IAAA,2CAASI,KAAK,qBAAoB,cAAa,W","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,a as s,h as a,H as i}from"./p-Bm6UxEit.js";import{p as n,a as h,f as r}from"./p-BmcsJLdy.js";const o=()=>`:host{align-items:stretch;display:inline-flex;flex-wrap:wrap}:host([hidden]){display:none}slot{display:contents}`;const l=class{constructor(s){t(this,s);this.pfChange=e(this,"pfChange")}get el(){return s(this)}value="";multiple=false;disabled=false;pfChange;componentWillLoad(){this.sync()}componentDidLoad(){this.sync()}handleStateChange(){this.sync()}async refresh(){this.sync()}get items(){return Array.from(this.el.querySelectorAll("pf-button-group-item")).filter((t=>t.parentElement===this.el))}get chosen(){return n(this.value)}itemValue(t){return t.value??t.getAttribute("value")??""}sync(){const t=this.chosen;for(const e of this.items){const s=e;s.selected=t.includes(this.itemValue(e));s.groupDisabled=this.disabled}}handleSelect(t){t.stopPropagation();if(this.disabled)return;const e=this.items.find((e=>this.itemValue(e)===t.detail.value));if(!e||e.disabled)return;const s=this.multiple?h(this.chosen,t.detail.value):[t.detail.value];this.value=r(s);this.sync();this.pfChange.emit({value:this.value,values:s})}render(){return a(i,{key:"b7fbde0a2e14fccf291687b378dfd93a16660692",role:"group"},a("slot",{key:"c81eb48bb1ab31f7b35c7fb9e0c16b8f524e8520",onSlotchange:()=>this.refresh()}))}static get watchers(){return{value:[{handleStateChange:0}],multiple:[{handleStateChange:0}],disabled:[{handleStateChange:0}]}}};l.style=o();export{l as pf_button_group};
|
|
2
|
+
//# sourceMappingURL=p-8a1e2ba8.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfButtonGroupCss","PfButtonGroup","value","multiple","disabled","pfChange","componentWillLoad","this","sync","componentDidLoad","handleStateChange","refresh","items","Array","from","el","querySelectorAll","filter","item","parentElement","chosen","parseValueList","itemValue","getAttribute","node","selected","includes","groupDisabled","handleSelect","event","stopPropagation","find","candidate","detail","next","toggleValueInList","formatValueList","emit","values","render","h","Host","key","role","onSlotchange"],"sources":["src/components/pf-button-group/pf-button-group.css?tag=pf-button-group&encapsulation=shadow","src/components/pf-button-group/pf-button-group.tsx"],"sourcesContent":[":host {\n align-items: stretch;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/* The buttons have to be flex items of the host, not of a box inside it. */\nslot {\n display: contents;\n}\n","import { formatValueList, parseValueList, toggleValueInList } from '@pitchfork-ui/core';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\n\n/**\n * A row of joined toggle buttons: pick one, or several.\n *\n * The group owns the selection, because \"one at a time\" is not a thing a\n * button can decide for itself — the same division as `pf-radio-group`. Each\n * `pf-button-group-item` renders a real `<button>` in its own shadow root, so\n * every one of them is an ordinary tab stop: a group of toggle buttons is not\n * a roving-tabindex pattern, unlike a toolbar or a tab strip.\n *\n * `value` is one comma-separated string, because that is what an attribute\n * can carry; `pfChange` also reports the parsed array, which is what a\n * framework consumer usually wants.\n *\n * @slot - the `pf-button-group-item` children.\n */\n@Component({\n tag: 'pf-button-group',\n styleUrl: 'pf-button-group.css',\n shadow: true,\n})\nexport class PfButtonGroup {\n @Element() el!: HTMLElement;\n\n /** The chosen value, or values, as one comma-separated string. */\n @Prop({ mutable: true, reflect: true }) value = '';\n\n /** Allow several at once. Reflected for the stylesheet. */\n @Prop({ reflect: true }) multiple = false;\n\n /** Disable every button. Reflected, and pushed down. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Fires when the selection changes, however it was changed. */\n @Event() pfChange!: EventEmitter<{ value: string; values: string[] }>;\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('value')\n @Watch('multiple')\n @Watch('disabled')\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 buttons. */\n private get items(): HTMLElement[] {\n return Array.from(this.el.querySelectorAll<HTMLElement>('pf-button-group-item')).filter(\n (item) => item.parentElement === this.el,\n );\n }\n\n private get chosen(): string[] {\n return parseValueList(this.value);\n }\n\n /**\n * The property if the item has upgraded, the attribute if it has not:\n * `componentWillLoad` can run before a child parsed from HTML upgrades.\n */\n private itemValue(item: HTMLElement) {\n return (item as HTMLElement & { value?: string }).value ?? item.getAttribute('value') ?? '';\n }\n\n private sync() {\n const chosen = this.chosen;\n\n for (const item of this.items) {\n const node = item as HTMLElement & { selected: boolean; groupDisabled: boolean };\n node.selected = chosen.includes(this.itemValue(item));\n /*\n * The group's disabled state goes to a prop of its own, not to the\n * item's `disabled`: that one is the consumer's, and overwriting it\n * would lose a button they had disabled on its own — and un-disable it\n * the moment the group was enabled again.\n */\n node.groupDisabled = this.disabled;\n }\n }\n\n /**\n * A button asking to be chosen. The group decides, because in single mode\n * the answer depends on what else is chosen.\n */\n @Listen('pfButtonGroupSelect')\n handleSelect(event: CustomEvent<{ value: string }>) {\n event.stopPropagation();\n if (this.disabled) return;\n\n const item = this.items.find((candidate) => this.itemValue(candidate) === event.detail.value);\n if (!item || (item as HTMLElement & { disabled?: boolean }).disabled) return;\n\n const next = this.multiple\n ? toggleValueInList(this.chosen, event.detail.value)\n : [event.detail.value];\n\n this.value = formatValueList(next);\n this.sync();\n this.pfChange.emit({ value: this.value, values: next });\n }\n\n render() {\n return (\n <Host role=\"group\">\n <slot onSlotchange={() => this.refresh()} />\n </Host>\n );\n }\n}\n"],"mappings":"kHAAA,MAAMA,EAAmB,IAAM,mH,MCkClBC,EAAa,M,kFAIgBC,MAAQ,GAGvBC,SAAW,MAGXC,SAAW,MAG3BC,SAGT,iBAAAC,GACEC,KAAKC,M,CAGP,gBAAAC,GACEF,KAAKC,M,CAMP,iBAAAE,GACEH,KAAKC,M,CAKP,aAAMG,GACJJ,KAAKC,M,CAIP,SAAYI,GACV,OAAOC,MAAMC,KAAKP,KAAKQ,GAAGC,iBAA8B,yBAAyBC,QAC9EC,GAASA,EAAKC,gBAAkBZ,KAAKQ,I,CAI1C,UAAYK,GACV,OAAOC,EAAed,KAAKL,M,CAOrB,SAAAoB,CAAUJ,GAChB,OAAQA,EAA0ChB,OAASgB,EAAKK,aAAa,UAAY,E,CAGnF,IAAAf,GACN,MAAMY,EAASb,KAAKa,OAEpB,IAAK,MAAMF,KAAQX,KAAKK,MAAO,CAC7B,MAAMY,EAAON,EACbM,EAAKC,SAAWL,EAAOM,SAASnB,KAAKe,UAAUJ,IAO/CM,EAAKG,cAAgBpB,KAAKH,Q,EAS9B,YAAAwB,CAAaC,GACXA,EAAMC,kBACN,GAAIvB,KAAKH,SAAU,OAEnB,MAAMc,EAAOX,KAAKK,MAAMmB,MAAMC,GAAczB,KAAKe,UAAUU,KAAeH,EAAMI,OAAO/B,QACvF,IAAKgB,GAASA,EAA8Cd,SAAU,OAEtE,MAAM8B,EAAO3B,KAAKJ,SACdgC,EAAkB5B,KAAKa,OAAQS,EAAMI,OAAO/B,OAC5C,CAAC2B,EAAMI,OAAO/B,OAElBK,KAAKL,MAAQkC,EAAgBF,GAC7B3B,KAAKC,OACLD,KAAKF,SAASgC,KAAK,CAAEnC,MAAOK,KAAKL,MAAOoC,OAAQJ,G,CAGlD,MAAAK,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,SACTH,EAAA,QAAAE,IAAA,2CAAME,aAAc,IAAMrC,KAAKI,Y","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as e,H as s}from"./p-Bm6UxEit.js";const t=()=>`:host{align-items:center;color:var(--pf-chart-text-muted);display:flex;font-size:var(--font-size-sm);gap:var(--space-2)}:host([hidden]){display:none}.dot{border-radius:var(--radius-full);flex-shrink:0;height:8px;width:8px}`;const r=class{constructor(e){a(this,e)}seriesKey="";color;dashed=false;swatch="";render(){return e(s,{key:"42e03761d372da7b9878a86b5afd081e583232e9",role:"listitem"},e("span",{key:"73da1c97180054c5178eaaecaa882c5a440216e5",class:"dot",part:"dot","aria-hidden":"true",style:{background:this.swatch}}),e("span",{key:"dada4085c9a46265eaf454bbcb10b1d849839ca6",class:"label",part:"label"},e("slot",{key:"bca6cc3bd7c0fd8f65f10a696ca823526aea46f9"},this.seriesKey)))}};r.style=t();export{r as pf_chart_series};
|
|
2
|
+
//# sourceMappingURL=p-8e1a4b26.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfChartSeriesCss","PfChartSeries","seriesKey","color","dashed","swatch","render","h","Host","key","role","class","part","style","background","this"],"sources":["src/components/pf-chart-series/pf-chart-series.css?tag=pf-chart-series&encapsulation=shadow","src/components/pf-chart-series/pf-chart-series.tsx"],"sourcesContent":[":host {\n align-items: center;\n color: var(--pf-chart-text-muted);\n display: flex;\n font-size: var(--font-size-sm);\n gap: var(--space-2);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.dot {\n border-radius: var(--radius-full);\n flex-shrink: 0;\n height: 8px;\n width: 8px;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * One series of a `pf-line-chart` or a `pf-bar-chart`, and its own row in the\n * legend.\n *\n * The chart's data is a single array of rows keyed by series — bulk numbers,\n * which belong in a property — while the series are the part with names and\n * colours, which belong in the light DOM so a consumer can loop over them and\n * so the legend can hold their labels. A legend built in the chart's shadow\n * root could not reach a slotted label at all.\n *\n * `swatch` is the chart's to set: only it knows this series' place in the\n * palette.\n *\n * @slot - the series' name. Falls back to `seriesKey`.\n * @part dot - the colour swatch.\n * @part label - the name.\n */\n@Component({\n tag: 'pf-chart-series',\n styleUrl: 'pf-chart-series.css',\n shadow: true,\n})\nexport class PfChartSeries {\n /**\n * The property each data row carries this series' value under.\n *\n * `seriesKey`, not `key`: `key` is the vdom's own prop name and reserved,\n * the same family as `animate` shadowing `Element.prototype.animate`.\n */\n @Prop({ reflect: true }) seriesKey = '';\n\n /** Overrides the palette colour the chart would give it. */\n @Prop({ reflect: true }) color?: string;\n\n /** Draw this series' line dashed. Line charts only. Reflected. */\n @Prop({ reflect: true }) dashed = false;\n\n /** Set by the chart: the colour actually used, palette or override. */\n @Prop({ mutable: true }) swatch = '';\n\n render() {\n return (\n <Host role=\"listitem\">\n <span class=\"dot\" part=\"dot\" aria-hidden=\"true\" style={{ background: this.swatch }}></span>\n <span class=\"label\" part=\"label\">\n <slot>{this.seriesKey}</slot>\n </span>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAmB,IAAM,iO,MCwBlBC,EAAa,M,yBAOCC,UAAY,GAGZC,MAGAC,OAAS,MAGTC,OAAS,GAElC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,YACTH,EAAA,QAAAE,IAAA,2CAAME,MAAM,MAAMC,KAAK,MAAK,cAAa,OAAOC,MAAO,CAAEC,WAAYC,KAAKV,UAC1EE,EAAA,QAAAE,IAAA,2CAAME,MAAM,QAAQC,KAAK,SACvBL,EAAA,QAAAE,IAAA,4CAAOM,KAAKb,Y","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,a,h as s,H as e}from"./p-Bm6UxEit.js";const o=()=>`:host{display:table-row}:host([hidden]){display:none}:host([odd]){background:var(--pf-table-row-stripe, transparent)}:host(:not([head]):hover){background:var(--pf-table-row-hover, transparent)}`;const r=class{constructor(a){t(this,a)}get el(){return a(this)}head=false;odd=false;last=false;componentWillLoad(){this.sync()}sync(){for(const t of Array.from(this.el.querySelectorAll("pf-table-cell"))){if(t.parentElement!==this.el)continue;const a=t;a.head=this.head;a.last=this.last}}render(){return s(e,{key:"d9c4ff6abef4826dd24c2099e10b7096bea0c93a",role:"row"},s("slot",{key:"4cb6b474a1dd2ddb970664266aa0b102bf52ead2",onSlotchange:()=>this.sync()}))}static get watchers(){return{head:[{sync:0}],last:[{sync:0}]}}};r.style=o();export{r as pf_table_row};
|
|
2
|
+
//# sourceMappingURL=p-8e304481.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfTableRowCss","PfTableRow","head","odd","last","componentWillLoad","this","sync","cell","Array","from","el","querySelectorAll","parentElement","node","render","h","Host","key","role","onSlotchange"],"sources":["src/components/pf-table-row/pf-table-row.css?tag=pf-table-row&encapsulation=shadow","src/components/pf-table-row/pf-table-row.tsx"],"sourcesContent":["/*\n * A box, not `display: contents`: that is what lets the row take a background\n * and a `:hover` of its own. An element with no box takes neither, which is\n * why the grid version of this needed both pushed down in JS.\n */\n:host {\n display: table-row;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([odd]) {\n background: var(--pf-table-row-stripe, transparent);\n}\n\n/* The header is not a row anyone hovers over to read. */\n:host(:not([head]):hover) {\n background: var(--pf-table-row-hover, transparent);\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core';\n\n/**\n * One row of a `pf-table`.\n *\n * `display: table-row`, so the row is a box: that is what lets it take a\n * background for striping and a `:hover` of its own, neither of which an\n * element with `display: contents` can do. Its cells are table-cells inside\n * it, and the column widths come from the table layout rather than from\n * anything measured.\n *\n * The row pushes `head` and `last` onto its own cells, because it knows what\n * it is and they do not — `last` comes from the table, which is the only\n * thing that can see where the body ends.\n *\n * @slot - the `pf-table-cell` children.\n */\n@Component({\n tag: 'pf-table-row',\n styleUrl: 'pf-table-row.css',\n shadow: true,\n})\nexport class PfTableRow {\n @Element() el!: HTMLElement;\n\n /** A header row. Reflected, and pushed onto its cells. */\n @Prop({ reflect: true }) head = false;\n\n /** Set by the table: every other body row, for striping. Reflected. */\n @Prop({ mutable: true, reflect: true }) odd = false;\n\n /**\n * Set by the table: the last body row, whose cells drop their bottom border\n * so the rule does not double up with the table's own.\n */\n @Prop({ mutable: true, reflect: true }) last = false;\n\n /** The light DOM is readable here, so first paint is already right. */\n componentWillLoad() {\n this.sync();\n }\n\n @Watch('head')\n @Watch('last')\n sync() {\n for (const cell of Array.from(this.el.querySelectorAll<HTMLElement>('pf-table-cell'))) {\n if (cell.parentElement !== this.el) continue;\n const node = cell as HTMLElement & { head: boolean; last: boolean };\n node.head = this.head;\n node.last = this.last;\n }\n }\n\n render() {\n return (\n <Host role=\"row\">\n <slot onSlotchange={() => this.sync()} />\n </Host>\n );\n }\n}\n"],"mappings":"oDAAA,MAAMA,EAAgB,IAAM,oM,MCsBfC,EAAU,M,iDAIIC,KAAO,MAGQC,IAAM,MAMNC,KAAO,MAG/C,iBAAAC,GACEC,KAAKC,M,CAKP,IAAAA,GACE,IAAK,MAAMC,KAAQC,MAAMC,KAAKJ,KAAKK,GAAGC,iBAA8B,kBAAmB,CACrF,GAAIJ,EAAKK,gBAAkBP,KAAKK,GAAI,SACpC,MAAMG,EAAON,EACbM,EAAKZ,KAAOI,KAAKJ,KACjBY,EAAKV,KAAOE,KAAKF,I,EAIrB,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,OACTH,EAAA,QAAAE,IAAA,2CAAME,aAAc,IAAMd,KAAKC,S","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,a as s,h as a,H as i}from"./p-Bm6UxEit.js";const l=()=>`:host{display:grid;gap:var(--space-1)}:host([hidden]){display:none}.title{color:var(--pf-sidebar-nav-text-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:0.04em;margin:0;padding:0 var(--space-2);text-transform:uppercase}.title.empty{display:none}.list{display:grid;gap:2px;list-style:none;margin:0;padding:0}.list slot{display:contents}`;const n=class{constructor(s){t(this,s);this.pfNavStructure=e(this,"pfNavStructure")}get el(){return s(this)}hasTitle=false;pfNavStructure;componentWillLoad(){this.readTitle()}readTitle(){this.hasTitle=Array.from(this.el.children).some((t=>t.getAttribute("slot")==="title"))}handleSlotChange(){this.readTitle();this.pfNavStructure.emit()}render(){return a(i,{key:"403390422ffe79fd7074cf127380b4c01f06e64c"},a("p",{key:"9da8bd54057acfdbcc8b05e843557ea13792e98c",class:{title:true,empty:!this.hasTitle},part:"title",id:"title"},a("slot",{key:"f5d6f38608e937f8842d0e2e5bf19773f38df1bd",name:"title",onSlotchange:()=>this.handleSlotChange()})),a("ul",{key:"536b579b106d4bc926a2ea309157e50dddc563c1",class:"list",part:"list","aria-labelledby":this.hasTitle?"title":null},a("slot",{key:"f80ef7903620ff32262dc8995f73ecb1c4971c57",onSlotchange:()=>this.handleSlotChange()})))}};n.style=l();export{n as pf_nav_section};
|
|
2
|
+
//# sourceMappingURL=p-97dd4193.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfNavSectionCss","PfNavSection","hasTitle","pfNavStructure","componentWillLoad","this","readTitle","Array","from","el","children","some","child","getAttribute","handleSlotChange","emit","render","h","Host","key","class","title","empty","part","id","name","onSlotchange"],"sources":["src/components/pf-nav-section/pf-nav-section.css?tag=pf-nav-section&encapsulation=shadow","src/components/pf-nav-section/pf-nav-section.tsx"],"sourcesContent":[":host {\n display: grid;\n gap: var(--space-1);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.title {\n color: var(--pf-sidebar-nav-text-muted);\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-semibold);\n letter-spacing: 0.04em;\n margin: 0;\n padding: 0 var(--space-2);\n text-transform: uppercase;\n}\n\n/*\n * Both classes rather than a bare `.empty`, so the rule does not depend on\n * sitting below the `display` the box sets on itself.\n */\n.title.empty {\n display: none;\n}\n\n.list {\n display: grid;\n gap: 2px;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/* The items are grid children of the list, not of a box inside it. */\n.list slot {\n display: contents;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, State } from '@stencil/core';\n\n/**\n * A titled group of `pf-nav-item` children inside a `pf-sidebar-navigation`.\n *\n * The React `SidebarNavigation` takes a `sections` array of `{ title, items }`.\n * Grouping slotted children has to be structural — one `<slot>` renders every\n * assigned child in source order, and a shadow root cannot wrap a subset of\n * them in a box — so the consumer nests, which is the §2.1 idiom and the same\n * answer `pf-command-group` gives.\n *\n * The title names the list with a **same-root** IDREF: both the title and the\n * `<ul>` are in this shadow root, so the reference resolves. An\n * `aria-labelledby` from the host could not point at either of them.\n *\n * @slot - the `pf-nav-item` children.\n * @slot title - the section's title.\n * @part title - the title's box.\n * @part list - the list the items are slotted into.\n */\n@Component({\n tag: 'pf-nav-section',\n styleUrl: 'pf-nav-section.css',\n shadow: true,\n})\nexport class PfNavSection {\n @Element() el!: HTMLElement;\n\n /**\n * Whether anything was slotted into `title`.\n *\n * Asked in JS because the box carries padding and a size of its own, and\n * because an `aria-labelledby` pointing at an empty element names the list\n * with an empty string rather than falling back to nothing.\n */\n @State() hasTitle = false;\n\n /**\n * Tells the navigation its items have moved.\n *\n * `slotchange` is not composed, so the navigation never hears this\n * section's own slot change — exactly the reason `pf-tree-item` emits\n * `pfTreeStructure`. Without it an item appended to a section is never\n * given an orientation or a place in the one-current resolution.\n */\n @Event() pfNavStructure!: EventEmitter<void>;\n\n /** The light DOM is readable here, so first paint is already right. */\n componentWillLoad() {\n this.readTitle();\n }\n\n private readTitle() {\n /*\n * `el.children` rather than a `:scope >` selector, which Stencil's mock\n * DOM throws on.\n */\n this.hasTitle = Array.from(this.el.children).some(\n (child) => child.getAttribute('slot') === 'title',\n );\n }\n\n private handleSlotChange() {\n this.readTitle();\n this.pfNavStructure.emit();\n }\n\n render() {\n return (\n <Host>\n {/*\n The slot stays in the tree whether or not it holds anything: a slot\n that is not rendered never fires `slotchange`, so a title added\n later would stay invisible for good.\n */}\n <p class={{ title: true, empty: !this.hasTitle }} part=\"title\" id=\"title\">\n <slot name=\"title\" onSlotchange={() => this.handleSlotChange()} />\n </p>\n\n <ul class=\"list\" part=\"list\" aria-labelledby={this.hasTitle ? 'title' : null}>\n <slot onSlotchange={() => this.handleSlotChange()} />\n </ul>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAkB,IAAM,+X,MCyBjBC,EAAY,M,8FAUdC,SAAW,MAUXC,eAGT,iBAAAC,GACEC,KAAKC,W,CAGC,SAAAA,GAKND,KAAKH,SAAWK,MAAMC,KAAKH,KAAKI,GAAGC,UAAUC,MAC1CC,GAAUA,EAAMC,aAAa,UAAY,S,CAItC,gBAAAC,GACNT,KAAKC,YACLD,KAAKF,eAAeY,M,CAGtB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CAMHF,EAAA,KAAAE,IAAA,2CAAGC,MAAO,CAAEC,MAAO,KAAMC,OAAQjB,KAAKH,UAAYqB,KAAK,QAAQC,GAAG,SAChEP,EAAA,QAAAE,IAAA,2CAAMM,KAAK,QAAQC,aAAc,IAAMrB,KAAKS,sBAG9CG,EAAA,MAAAE,IAAA,2CAAIC,MAAM,OAAOG,KAAK,OAAM,kBAAkBlB,KAAKH,SAAW,QAAU,MACtEe,EAAA,QAAAE,IAAA,2CAAMO,aAAc,IAAMrB,KAAKS,sB","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as r,H as a}from"./p-Bm6UxEit.js";import{c as s,p as i}from"./p-BA6CMosJ.js";const t=()=>`@keyframes pf-progress-bar-in{from{width:0}}:host{align-items:center;display:inline-flex;gap:var(--space-2);min-width:220px}:host([hidden]){display:none}.track{background:var(--pf-progress-track-bg);border-radius:var(--radius-full);flex:1;height:8px;overflow:hidden;pointer-events:none}.fill{animation:pf-progress-bar-in var(--duration-slow) var(--easing-decelerate);background:var(--pf-progress-accent);border-radius:inherit;height:100%;transition:width var(--pf-transition-slow);width:var(--pf-progress-fill, 0%)}.value{color:var(--pf-progress-text-muted);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium)}@media (prefers-reduced-motion: reduce){.fill{animation:none;transition:none}}`;const o=class{constructor(r){e(this,r)}value=0;max=100;showValue=true;label;render(){const e=s(this.value,this.max);return r(a,{key:"09d62e00646da11864dcc3bb4724da8864d223fe",role:"progressbar","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":`${this.max}`,"aria-valuenow":`${i(e,this.max)}`},r("div",{key:"42db85945311bd44d03058c0cd957b6397624cff",class:"track",part:"track"},r("div",{key:"8222865b45a18175308f87f4fd30a313bb5452d5",class:"fill",part:"fill",style:{"--pf-progress-fill":`${e}%`}})),this.showValue&&r("span",{key:"9e7a195ef193fd4e730bdf3eefb2f0170be56ecc",class:"value",part:"value"},Math.round(e),"%"))}};o.style=t();export{o as pf_progress_bar};
|
|
2
|
+
//# sourceMappingURL=p-9d93b1ea.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfProgressBarCss","PfProgressBar","value","max","showValue","label","render","percent","clampProgressPercent","this","h","Host","key","role","progressValueNow","class","part","style","Math","round"],"sources":["src/components/pf-progress-bar/pf-progress-bar.css?tag=pf-progress-bar&encapsulation=shadow","src/components/pf-progress-bar/pf-progress-bar.tsx"],"sourcesContent":["/* Its own copy: @keyframes do not cross a shadow boundary. */\n@keyframes pf-progress-bar-in {\n from {\n width: 0;\n }\n}\n\n:host {\n align-items: center;\n display: inline-flex;\n gap: var(--space-2);\n min-width: 220px;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.track {\n background: var(--pf-progress-track-bg);\n border-radius: var(--radius-full);\n flex: 1;\n height: 8px;\n overflow: hidden;\n pointer-events: none;\n}\n\n.fill {\n animation: pf-progress-bar-in var(--duration-slow) var(--easing-decelerate);\n background: var(--pf-progress-accent);\n border-radius: inherit;\n height: 100%;\n /* Animate in from 0 on mount, and smoothly between values on change. */\n transition: width var(--pf-transition-slow);\n width: var(--pf-progress-fill, 0%);\n}\n\n.value {\n color: var(--pf-progress-text-muted);\n font-size: var(--font-size-sm);\n font-weight: var(--font-weight-medium);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fill {\n animation: none;\n transition: none;\n }\n}\n","import { clampProgressPercent, progressValueNow } from '@pitchfork-ui/core';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * A horizontal determinate progress track.\n *\n * @part track - the unfilled groove.\n * @part fill - the filled portion.\n * @part value - the percentage readout.\n */\n@Component({\n tag: 'pf-progress-bar',\n styleUrl: 'pf-progress-bar.css',\n shadow: true,\n})\nexport class PfProgressBar {\n /** How far along, on the 0..max scale. */\n @Prop() value = 0;\n\n /** The top of the scale. */\n @Prop() max = 100;\n\n /** Show the percentage beside the track. Reflected for the stylesheet. */\n @Prop({ reflect: true }) showValue = true;\n\n /** Accessible name. */\n @Prop() label?: string;\n\n render() {\n // Both layers go through core, so the same value and max always report the\n // same aria-valuenow and draw the same fill.\n const percent = clampProgressPercent(this.value, this.max);\n\n return (\n <Host\n role=\"progressbar\"\n aria-label={this.label}\n aria-valuemin=\"0\"\n aria-valuemax={`${this.max}`}\n aria-valuenow={`${progressValueNow(percent, this.max)}`}\n >\n <div class=\"track\" part=\"track\">\n <div class=\"fill\" part=\"fill\" style={{ '--pf-progress-fill': `${percent}%` }} />\n </div>\n {this.showValue && (\n <span class=\"value\" part=\"value\">\n {Math.round(percent)}%\n </span>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAmB,IAAM,msB,MCelBC,EAAa,M,yBAEhBC,MAAQ,EAGRC,IAAM,IAGWC,UAAY,KAG7BC,MAER,MAAAC,GAGE,MAAMC,EAAUC,EAAqBC,KAAKP,MAAOO,KAAKN,KAEtD,OACEO,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,cAAa,aACNJ,KAAKJ,MAAK,gBACR,IAAG,gBACF,GAAGI,KAAKN,MAAK,gBACb,GAAGW,EAAiBP,EAASE,KAAKN,QAEjDO,EAAA,OAAAE,IAAA,2CAAKG,MAAM,QAAQC,KAAK,SACtBN,EAAA,OAAAE,IAAA,2CAAKG,MAAM,OAAOC,KAAK,OAAOC,MAAO,CAAE,qBAAsB,GAAGV,SAEjEE,KAAKL,WACJM,EAAA,QAAAE,IAAA,2CAAMG,MAAM,QAAQC,KAAK,SACtBE,KAAKC,MAAMZ,GAAQ,K","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,a,h as s,H as o}from"./p-Bm6UxEit.js";const i=()=>`:host{align-items:center;border-radius:var(--radius-sm);color:var(--pf-command-text);cursor:pointer;display:flex;gap:var(--space-3);padding:var(--space-2) var(--space-3);user-select:none}:host([hidden]){display:none}:host([aria-selected='true']){background:var(--pf-command-item-active-bg)}:host([aria-selected='true']) .label,:host([aria-selected='true']) slot[name='icon']::slotted(*){color:var(--pf-command-item-active-text)}:host([aria-selected='true']) .description{color:var(--pf-command-item-active-text);opacity:0.85}:host([disabled]){cursor:not-allowed;opacity:0.5}slot[name='icon']::slotted(*){color:var(--pf-command-text-muted);flex-shrink:0}.content{display:grid;gap:2px;min-width:0}.label{font-size:var(--font-size-sm);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{color:var(--pf-command-text-muted);font-size:var(--font-size-xs);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`;const r=class{constructor(a){e(this,a);this.pfCommandSelect=t(this,"pfCommandSelect")}get el(){return a(this)}value="";description;disabled=false;pfCommandSelect;onClick=e=>{if(this.disabled){e.stopPropagation();return}this.pfCommandSelect.emit({value:this.value})};render(){return s(o,{key:"ed43f8f61f0e9ef853bcdb1df173e5a8b82a6cd5",role:"option","aria-disabled":this.disabled?"true":null,onClick:this.onClick},s("slot",{key:"0e50176162775ea6ed383ffdb5baf90ece6c8f1f",name:"icon"}),s("span",{key:"b994b5985bcbac11b90fd000495c48695315a65d",class:"content"},s("span",{key:"e9693e2a23e8c46980dafaf89b69b3d466c31d70",class:"label",part:"label"},s("slot",{key:"668db89e046a65cf0e8ee75098f46979d87d4089"})),this.description&&s("span",{key:"dd1fd1004f5400b968069177eb74d9bb08a34dc1",class:"description",part:"description"},this.description)))}};r.style=i();export{r as pf_command_item};
|
|
2
|
+
//# sourceMappingURL=p-9dc1dd8a.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pfCommandItemCss","PfCommandItem","value","description","disabled","pfCommandSelect","onClick","event","this","stopPropagation","emit","render","h","Host","key","role","name","class","part"],"sources":["src/components/pf-command-item/pf-command-item.css?tag=pf-command-item&encapsulation=shadow","src/components/pf-command-item/pf-command-item.tsx"],"sourcesContent":[":host {\n align-items: center;\n border-radius: var(--radius-sm);\n color: var(--pf-command-text);\n cursor: pointer;\n display: flex;\n gap: var(--space-3);\n padding: var(--space-2) var(--space-3);\n user-select: none;\n}\n\n/* The palette sets `hidden` on the items a query filters out. */\n:host([hidden]) {\n display: none;\n}\n\n/*\n * The active option, which the palette marks. Not `:hover` alone: the keyboard\n * and the mouse share one active item, and the palette is what decides it.\n */\n:host([aria-selected='true']) {\n background: var(--pf-command-item-active-bg);\n}\n\n/*\n * The active background is the primary action colour, so everything on top of\n * it needs the matching foreground -- including the description, which is\n * muted against the panel and would be unreadable against this.\n */\n:host([aria-selected='true']) .label,\n:host([aria-selected='true']) slot[name='icon']::slotted(*) {\n color: var(--pf-command-item-active-text);\n}\n\n:host([aria-selected='true']) .description {\n color: var(--pf-command-item-active-text);\n opacity: 0.85;\n}\n\n:host([disabled]) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n/*\n * No wrapper box around the icon slot: an unassigned slot is\n * `display: contents` and generates nothing, so the row's `gap` does not open\n * in front of an item with no icon.\n */\nslot[name='icon']::slotted(*) {\n color: var(--pf-command-text-muted);\n flex-shrink: 0;\n}\n\n.content {\n display: grid;\n gap: 2px;\n min-width: 0;\n}\n\n.label {\n font-size: var(--font-size-sm);\n line-height: 1.3;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.description {\n color: var(--pf-command-text-muted);\n font-size: var(--font-size-xs);\n line-height: 1.3;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\n/**\n * One command in a `pf-command-palette`.\n *\n * It only reports that it was chosen; the palette owns filtering, the active\n * option and closing, exactly as `pf-radio-group` owns selection for its\n * radios and `pf-dropdown` owns it for its menu items.\n *\n * @slot - the command's label, which is also what the palette searches.\n * @slot icon - a leading icon.\n * @part label - the label's box.\n * @part description - the supporting line.\n */\n@Component({\n tag: 'pf-command-item',\n styleUrl: 'pf-command-item.css',\n shadow: true,\n})\nexport class PfCommandItem {\n @Element() el!: HTMLElement;\n\n /**\n * Identifies the command in the palette's select event.\n *\n * Reflected, and not only for tidiness: the generated React and Angular\n * bindings set props as *properties*, so without this there is no `value`\n * attribute and anything selecting on one — the palette's own item query\n * included — finds nothing. The same defect as an unreflected `name` on a\n * form control, and caught the same way, by the consumer apps.\n */\n @Prop({ reflect: true }) value = '';\n\n /** A supporting line under the label. Searched along with the label. */\n @Prop() description?: string;\n\n /** Reflected so the stylesheet and the palette's item query can select on it. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Asks the palette to run this command. The palette decides and closes. */\n @Event() pfCommandSelect!: EventEmitter<{ value: string }>;\n\n /**\n * Mouse only. The palette keeps keyboard focus in its input and tracks the\n * active option with `aria-activedescendant`, so Enter is the palette's to\n * handle — an item never has focus to receive a key on.\n */\n private onClick = (event: MouseEvent) => {\n if (this.disabled) {\n event.stopPropagation();\n return;\n }\n this.pfCommandSelect.emit({ value: this.value });\n };\n\n render() {\n return (\n <Host role=\"option\" aria-disabled={this.disabled ? 'true' : null} onClick={this.onClick}>\n <slot name=\"icon\" />\n <span class=\"content\">\n <span class=\"label\" part=\"label\">\n <slot />\n </span>\n {this.description && (\n <span class=\"description\" part=\"description\">\n {this.description}\n </span>\n )}\n </span>\n </Host>\n );\n }\n}\n"],"mappings":"2DAAA,MAAMA,EAAmB,IAAM,i8B,MCmBlBC,EAAa,M,gGAYCC,MAAQ,GAGzBC,YAGiBC,SAAW,MAG3BC,gBAODC,QAAWC,IACjB,GAAIC,KAAKJ,SAAU,CACjBG,EAAME,kBACN,M,CAEFD,KAAKH,gBAAgBK,KAAK,CAAER,MAAOM,KAAKN,OAAQ,EAGlD,MAAAS,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,SAAQ,gBAAgBP,KAAKJ,SAAW,OAAS,KAAME,QAASE,KAAKF,SAC9EM,EAAA,QAAAE,IAAA,2CAAME,KAAK,SACXJ,EAAA,QAAAE,IAAA,2CAAMG,MAAM,WACVL,EAAA,QAAAE,IAAA,2CAAMG,MAAM,QAAQC,KAAK,SACvBN,EAAA,QAAAE,IAAA,8CAEDN,KAAKL,aACJS,EAAA,QAAAE,IAAA,2CAAMG,MAAM,cAAcC,KAAK,eAC5BV,KAAKL,c","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function n(n){if(!n)return"?";const r=n.trim().split(/\s+/).filter(Boolean).slice(0,2);if(r.length===0)return"?";return r.map((n=>n.charAt(0).toUpperCase())).join("")}function r(n,r="+"){return n.join(` ${r} `)}function t(n){return n.replace(/\D+/g,"").replace(/(.{4})/g,"$1 ").trim()}function u(n){const r=n.replace(/\D+/g,"");if(r.length<=4)return r;return`${"*".repeat(r.length-4)}${r.slice(-4)}`.replace(/(.{4})/g,"$1 ").trim()}export{r as a,t as f,n as g,u as m};
|
|
2
|
+
//# sourceMappingURL=p-B8ulhYUJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-B8ulhYUJ.js","sources":["../core/dist/text.js"],"sourcesContent":["//#region src/text.ts\n/**\n* Derive avatar initials from a person's name.\n*\n* Shared because both layers must produce the same letters for the same name:\n* a React Avatar and a <pf-avatar> showing different fallbacks for \"Ada\n* Lovelace\" would be a visible inconsistency in the same design system.\n*/\nfunction getAvatarInitials(name) {\n\tif (!name) return \"?\";\n\tconst parts = name.trim().split(/\\s+/).filter(Boolean).slice(0, 2);\n\tif (parts.length === 0) return \"?\";\n\treturn parts.map((part) => part.charAt(0).toUpperCase()).join(\"\");\n}\n/**\n* Render a key combination as one string — `['⌘', 'K']` becomes `⌘ + K`.\n*\n* Deliberately one string rather than an element per key: it keeps a single\n* contrast-resolvable element and avoids symbol-only child nodes that axe\n* cannot evaluate.\n*/\nfunction formatKeyCombination(keys, separator = \"+\") {\n\treturn keys.join(` ${separator} `);\n}\n/**\n* Group a card number into blocks of four — `4111111111111111` becomes\n* `4111 1111 1111 1111`. Non-digits in the input are discarded first, so a\n* value that already carries spaces or dashes regroups cleanly.\n*/\nfunction formatCardNumber(value) {\n\treturn value.replace(/\\D+/g, \"\").replace(/(.{4})/g, \"$1 \").trim();\n}\n/**\n* Group a card number into blocks of four with everything but the last four\n* digits replaced by asterisks.\n*\n* Four digits or fewer are returned as the bare digits: there is nothing to\n* hide behind, and starring all of them would leave a field that says only\n* what length it was.\n*\n* Shared with `formatCardNumber` because a React `CreditCard` and a\n* `<pf-credit-card>` showing the same number grouped differently would be a\n* visible inconsistency in one design system.\n*/\nfunction maskCardNumber(value) {\n\tconst digits = value.replace(/\\D+/g, \"\");\n\tif (digits.length <= 4) return digits;\n\treturn `${\"*\".repeat(digits.length - 4)}${digits.slice(-4)}`.replace(/(.{4})/g, \"$1 \").trim();\n}\n//#endregion\nexport { formatCardNumber, formatKeyCombination, getAvatarInitials, maskCardNumber };\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,iBAAiB,CAAC,IAAI,EAAE;AACjC,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG;AACtB,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;AACnE,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,GAAG;AACnC,CAAC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,IAAI,EAAE,SAAS,GAAG,GAAG,EAAE;AACrD,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,gBAAgB,CAAC,KAAK,EAAE;AACjC,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,cAAc,CAAC,KAAK,EAAE;AAC/B,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;AACzC,CAAC,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE,OAAO,MAAM;AACtC,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE;AAC9F;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(t,r){if(!(r>0))return 0;if(Number.isNaN(t))return 0;return Math.max(0,Math.min(100,t/r*100))}function r(t,r){return Math.round(t/100*r)}function n(t,r,n){const e=Math.max(0,(t-r)/2);const u=2*Math.PI*e;return{radius:e,circumference:u,dashOffset:u*(1-n/100),center:t/2}}function e(t,r,n){const e=Number.isFinite(t)?t:0;const u=Number.isFinite(r)?r:e+100;return{min:e,max:u>=e?u:e,step:Number.isFinite(n)&&n>0?n:1}}function u(t,r,n){const e=n-r;if(!(e>0))return 0;if(Number.isNaN(t))return 0;return Math.max(0,Math.min(100,(t-r)/e*100))}function a(t,r,n){if(Number.isNaN(t))return r;return Math.min(Math.max(t,r),n)}export{a,u as b,t as c,n as g,e as n,r as p};
|
|
2
|
+
//# sourceMappingURL=p-BA6CMosJ.js.map
|