@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,"file":"pf-tooltip.entry.js","sources":["src/components/pf-tooltip/pf-tooltip.css?tag=pf-tooltip&encapsulation=shadow","src/components/pf-tooltip/pf-tooltip.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/*\n * `popover` puts this in the top layer, so it escapes any ancestor's overflow\n * and stacking context. left/top come from the observer.\n */\n/*\n * `inset: auto` and `margin: 0` are essential, not tidying -- see\n * `src/place-popover.ts`, which sets the same two inline and explains the\n * measurement. They are declared in both places deliberately: here so the\n * cascade carries them for the whole life of the panel, and inline so a panel\n * is still positioned where this stylesheet has not been applied.\n */\n.tooltip {\n inset: auto;\n margin: 0;\n background: var(--pf-tooltip-bg);\n border: 0;\n border-radius: var(--radius-md);\n box-shadow: var(--shadow-md);\n color: var(--pf-tooltip-text);\n font-size: var(--font-size-sm);\n line-height: 1.4;\n max-width: 260px;\n padding: var(--space-2) var(--space-3);\n width: max-content;\n}\n\n.tooltip:popover-open {\n /* Fade in from the side it sits on. */\n animation: pf-tooltip-in var(--duration-fast) var(--easing-decelerate);\n}\n\n/* Its own copy: @keyframes do not cross a shadow boundary. */\n@keyframes pf-tooltip-in {\n from {\n opacity: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .tooltip:popover-open {\n animation: none;\n }\n}\n","import { Keys, observeSidePosition, type Side } from '@pitchfork-ui/core';\n\nimport { placePopover } from '../../place-popover';\nimport { Component, Element, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\n\n/**\n * A tooltip anchored to whatever is slotted into it.\n *\n * The panel is a `popover`, which is how it escapes an ancestor's `overflow`\n * and stacking context — the thing `createPortal` does for the React\n * component, and the only equivalent available from inside a shadow root.\n * Verified: a popover opened from a shadow root inside an `overflow: hidden`\n * container beats a `z-index: 999` sibling, where a plain absolute element in\n * the same place loses.\n *\n * @slot - the trigger.\n * @slot content - the tooltip's content. Its text also becomes the trigger's\n * accessible description.\n * @part tooltip - the floating panel.\n */\n@Component({\n tag: 'pf-tooltip',\n styleUrl: 'pf-tooltip.css',\n shadow: true,\n})\nexport class PfTooltip {\n @Element() el!: HTMLElement;\n\n /** Preferred side. Reflected so the stylesheet can place the arrow. */\n @Prop({ reflect: true }) placement: Side = 'top';\n\n /** Milliseconds to wait before showing on hover or focus. */\n @Prop() delay = 120;\n\n /** Force the tooltip open or closed, rather than letting it react. */\n @Prop() open?: boolean;\n\n /** Never show. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) disabled = false;\n\n /** The side actually in use, which the arrow follows. */\n @State() resolvedSide: Side = 'top';\n\n private showTimer?: number;\n private stopObserving?: () => void;\n private contentObserver?: MutationObserver;\n\n componentDidLoad() {\n this.watchContent();\n this.syncDescription();\n if (this.open) this.show();\n }\n\n disconnectedCallback() {\n this.clearTimer();\n this.stopObserving?.();\n this.contentObserver?.disconnect();\n }\n\n /**\n * `slotchange` fires when the *assignment* changes, not when text inside an\n * already-assigned node is edited — so a consumer setting\n * `span.textContent = 'Changed'` would update the visible tooltip and leave\n * the trigger's accessible description stale. That is a silent\n * accessibility bug rather than a cosmetic one, which is what earns the\n * observer.\n */\n private watchContent() {\n this.contentObserver?.disconnect();\n this.contentObserver = new MutationObserver(() => this.syncDescription());\n this.contentObserver.observe(this.el, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n }\n\n /**\n * The trigger's accessible description, copied as text.\n *\n * It cannot be an IDREF: `aria-describedby` does not cross a shadow\n * boundary, and `ariaDescribedByElements` silently reads back empty when\n * handed an element from a root the trigger does not own — both measured.\n * `aria-description` is a plain string, so it crosses nothing, and the\n * accessibility tree reports it identically to a same-root IDREF.\n */\n private syncDescription() {\n const trigger = this.el.firstElementChild;\n if (!trigger) return;\n\n const slot = this.el.shadowRoot?.querySelector<HTMLSlotElement>('slot[name=\"content\"]');\n const text = slot\n ?.assignedNodes({ flatten: true })\n .map((node) => node.textContent ?? '')\n .join(' ')\n .trim();\n\n if (text) trigger.setAttribute('aria-description', text);\n else trigger.removeAttribute('aria-description');\n }\n\n @Watch('open')\n syncOpen(next?: boolean) {\n if (next) this.show();\n else if (next === false) this.hide();\n }\n\n private get panel() {\n return this.el.shadowRoot?.querySelector<HTMLElement>('[part=\"tooltip\"]') ?? null;\n }\n\n private clearTimer() {\n if (this.showTimer !== undefined) {\n window.clearTimeout(this.showTimer);\n this.showTimer = undefined;\n }\n }\n\n private show() {\n const panel = this.panel;\n if (this.disabled || !panel || panel.matches(':popover-open')) return;\n\n panel.showPopover();\n /*\n * Positioning waits until the panel is open, because the side is chosen by\n * how the panel's own size fits the viewport and a closed popover has no\n * size at all.\n */\n this.stopObserving?.();\n this.stopObserving = observeSidePosition({\n getAnchor: () => this.el.firstElementChild as HTMLElement | null,\n getFloating: () => panel,\n side: this.placement,\n onChange: ({ side, left, top }) => {\n this.resolvedSide = side;\n placePopover(panel, left, top);\n },\n });\n }\n\n private hide() {\n this.clearTimer();\n this.stopObserving?.();\n this.stopObserving = undefined;\n const panel = this.panel;\n if (panel?.matches(':popover-open')) panel.hidePopover();\n }\n\n /** Controlled mode means the consumer decides; hover and focus do nothing. */\n private get isControlled() {\n return this.open !== undefined;\n }\n\n private scheduleShow = () => {\n if (this.disabled || this.isControlled) return;\n this.clearTimer();\n this.showTimer = window.setTimeout(() => this.show(), this.delay);\n };\n\n private cancel = () => {\n if (this.isControlled) return;\n this.hide();\n };\n\n @Listen('pointerenter')\n handlePointerEnter() {\n this.scheduleShow();\n }\n\n @Listen('pointerleave')\n handlePointerLeave() {\n this.cancel();\n }\n\n /** `focusin`/`focusout` rather than `focus`/`blur`, so they bubble. */\n @Listen('focusin')\n handleFocusIn() {\n this.scheduleShow();\n }\n\n @Listen('focusout')\n handleFocusOut() {\n this.cancel();\n }\n\n /**\n * Escape dismisses even in controlled mode. A tooltip covering the content\n * you are trying to read is not something to need a prop for, and WAI-ARIA\n * requires it of any tooltip.\n */\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n if (event.key !== Keys.Escape) return;\n const panel = this.panel;\n if (!panel?.matches(':popover-open')) return;\n event.stopPropagation();\n this.hide();\n }\n\n render() {\n return (\n <Host>\n <slot onSlotchange={() => this.syncDescription()} />\n <div\n class=\"tooltip\"\n part=\"tooltip\"\n popover=\"manual\"\n role=\"tooltip\"\n data-side={this.resolvedSide}\n >\n <slot name=\"content\" onSlotchange={() => this.syncDescription()} />\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,YAAY,GAAG,MAAM,CAAC,8hBAA8hB,CAAC;;MCyB9iB,SAAS,GAAA,MAAA;;;;;;IAIK,SAAS,GAAS,KAAK;;IAGxC,KAAK,GAAG,GAAG;;AAGX,IAAA,IAAI;;IAGa,QAAQ,GAAG,KAAK;;IAGhC,YAAY,GAAS,KAAK;AAE3B,IAAA,SAAS;AACT,IAAA,aAAa;AACb,IAAA,eAAe;IAEvB,gBAAgB,GAAA;QACd,IAAI,CAAC,YAAY,EAAE;QACnB,IAAI,CAAC,eAAe,EAAE;QACtB,IAAI,IAAI,CAAC,IAAI;YAAE,IAAI,CAAC,IAAI,EAAE;;IAG5B,oBAAoB,GAAA;QAClB,IAAI,CAAC,UAAU,EAAE;AACjB,QAAA,IAAI,CAAC,aAAa,IAAI;AACtB,QAAA,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE;;AAGpC;;;;;;;AAOG;IACK,YAAY,GAAA;AAClB,QAAA,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE;AAClC,QAAA,IAAI,CAAC,eAAe,GAAG,IAAI,gBAAgB,CAAC,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QACzE,IAAI,CAAC,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vB,IAAI,CAAC,IAAI,EAAE;AACb,KAAC;IAGD,kBAAkB,GAAA;QAChB,IAAI,CAAC,YAAY,EAAE;;IAIrB,kBAAkB,GAAA;QAChB,IAAI,CAAC,MAAM,EAAE;;;IAKf,aAAa,GAAA;QACX,IAAI,CAAC,YAAY,EAAE;;IAIrB,cAAc,GAAA;QACZ,IAAI,CAAC,MAAM,EAAE;;AAGf;;;;AAIG;AAEH,IAAA,aAAa,CAAC,KAAoB,EAAA;AAChC,QAAA,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,CAAC,MAAM;YAAE;AAC/B,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK;AACxB,QAAA,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC;YAAE;QACtC,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,IAAI,EAAE;;IAGb,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,eAAe,EAAE,EAAA,CAAI,EACpD,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,SAAS,EACd,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,SAAS,EAAA,WAAA,EACH,IAAI,CAAC,YAAY,EAAA,EAE5B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAC,YAAY,EAAE,MAAM,IAAI,CAAC,eAAe,EAAE,GAAI,CAC/D,CACD;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
|
|
3
|
+
const pfTreeItemCss = () => `:host{display:block;min-width:0}:host([hidden]){display:none}.children{padding-inline-start:var(--space-4)}.children[hidden]{display:none}.row{align-items:center;border-radius:var(--radius-sm);color:var(--pf-treeview-text-muted);cursor:pointer;display:grid;gap:var(--space-2);grid-template-columns:24px auto 1fr auto;min-height:34px;min-width:0;padding-inline-end:var(--space-2)}:host(:not([icon])) .row{grid-template-columns:24px 1fr auto}.row:hover{background:var(--pf-treeview-bg-subtle);color:var(--pf-treeview-text)}:host([active]) .row{box-shadow:var(--pf-tree-active-ring, none)}:host([selected]) .row{background:var(--pf-treeview-bg-subtle);color:var(--pf-treeview-text);font-weight:var(--font-weight-semibold)}:host([disabled]) .row{cursor:not-allowed;opacity:0.5}.twisty{align-items:center;display:inline-flex;justify-content:center;width:24px}.toggle{align-items:center;background:transparent;border:0;border-radius:var(--radius-sm);color:var(--pf-treeview-text-muted);cursor:pointer;display:inline-flex;font-size:var(--font-size-xs);height:24px;justify-content:center;padding:0;width:24px}.toggle:hover{background:var(--pf-treeview-bg-subtle);color:var(--pf-treeview-text)}.icon{align-items:center;display:inline-flex;justify-content:center}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{align-items:center;display:inline-flex;justify-content:center}.badge.empty{display:none}`;
|
|
4
|
+
|
|
5
|
+
const PfTreeItem = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.pfTreeSelect = createEvent(this, "pfTreeSelect");
|
|
9
|
+
this.pfTreeToggle = createEvent(this, "pfTreeToggle");
|
|
10
|
+
this.pfTreeStructure = createEvent(this, "pfTreeStructure");
|
|
11
|
+
}
|
|
12
|
+
get el() { return getElement(this); }
|
|
13
|
+
/**
|
|
14
|
+
* Identifies the item in the tree's selection and open set.
|
|
15
|
+
*
|
|
16
|
+
* Reflected because the generated bindings set props as properties, so
|
|
17
|
+
* without it a consumer selecting `pf-tree-item[value="..."]` finds
|
|
18
|
+
* nothing. The tree reads the property.
|
|
19
|
+
*/
|
|
20
|
+
value = '';
|
|
21
|
+
/** Reflected; the stylesheet and the tree's own filtering both read it. */
|
|
22
|
+
disabled = false;
|
|
23
|
+
/** An icon name from the same registry as `pf-icon`. */
|
|
24
|
+
icon;
|
|
25
|
+
/** Set by the tree: how deep this item sits, counting from 1. */
|
|
26
|
+
level = 1;
|
|
27
|
+
/** Set by the tree. Reflected, so the stylesheet can mark the item. */
|
|
28
|
+
selected = false;
|
|
29
|
+
/** Set by the tree: whether this branch is open. Reflected. */
|
|
30
|
+
expanded = false;
|
|
31
|
+
/** Set by the tree: whether there is anything to open. Reflected. */
|
|
32
|
+
hasChildren = false;
|
|
33
|
+
/**
|
|
34
|
+
* Set by the tree: the item the keyboard is on, which is not always the
|
|
35
|
+
* selected one. Reflected, because the ring is drawn from it.
|
|
36
|
+
*/
|
|
37
|
+
active = false;
|
|
38
|
+
/** Asks the tree to select this item. The tree decides. */
|
|
39
|
+
pfTreeSelect;
|
|
40
|
+
/** Asks the tree to open or close this branch. */
|
|
41
|
+
pfTreeToggle;
|
|
42
|
+
/**
|
|
43
|
+
* Tells the tree that the items inside this one have changed.
|
|
44
|
+
*
|
|
45
|
+
* `slotchange` does not cross a shadow boundary — it is not composed — so a
|
|
46
|
+
* tree cannot hear its grandchildren arrive. Without this, an item appended
|
|
47
|
+
* to a branch is never given a level, an id or a place in the keyboard
|
|
48
|
+
* order; a browser test adds one.
|
|
49
|
+
*/
|
|
50
|
+
pfTreeStructure;
|
|
51
|
+
/** Whether anything is slotted into the badge, which carries layout. */
|
|
52
|
+
hasBadge = false;
|
|
53
|
+
/** Read from the light DOM, so first paint is right without `slotchange`. */
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.read();
|
|
56
|
+
}
|
|
57
|
+
read = () => {
|
|
58
|
+
this.hasBadge = Array.from(this.el.children).some((child) => child.getAttribute('slot') === 'badge');
|
|
59
|
+
};
|
|
60
|
+
onRowClick = () => {
|
|
61
|
+
if (this.disabled)
|
|
62
|
+
return;
|
|
63
|
+
this.pfTreeSelect.emit({ value: this.value });
|
|
64
|
+
};
|
|
65
|
+
onToggleClick = (event) => {
|
|
66
|
+
// The twisty opens the branch without also selecting the item.
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
this.pfTreeToggle.emit({ value: this.value });
|
|
69
|
+
};
|
|
70
|
+
render() {
|
|
71
|
+
return (h(Host, { key: '88ecc1b46b8a27da4032a95a5dc61a5c26aaada0', role: "treeitem", "aria-level": String(this.level), "aria-selected": this.selected ? 'true' : 'false', "aria-expanded": this.hasChildren ? (this.expanded ? 'true' : 'false') : null, "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '9b01234883116846b26e5cd5565fb40612b81370', class: "row", part: "row", onClick: this.onRowClick }, h("span", { key: '25d5ca0c4ca422a00061eda5f2811328cfc54a5c', class: "twisty", "aria-hidden": "true" }, this.hasChildren && (h("button", { key: '3cb856498ec1506de4026c6a9115e4a86add6a23', type: "button", class: "toggle", part: "toggle", tabindex: "-1", onClick: this.onToggleClick }, this.expanded ? '▾' : '▸'))), this.icon && h("pf-icon", { key: 'd0730491a865b2b2f59e0fcb0adf7cac6db8d4cc', class: "icon", name: this.icon, "aria-hidden": "true" }), h("span", { key: '60a592334f70f944b7d5b8355e0ea6ade902492f', class: "label", part: "label" }, h("slot", { key: '7b00850cd21475d567b0c80d4537f2a8bf0dc24c', name: "label" })), h("span", { key: '641b9658b88ee4760067db4bc0a63ef992c83b4a', class: { badge: true, empty: !this.hasBadge } }, h("slot", { key: 'fffbfbe5f68e1bf85d171b29e6473ef35f11a176', name: "badge", onSlotchange: this.read }))), h("div", { key: '7679e1668cb704b25a5f27f1d896a77b97fb4e90', class: "children", part: "children", role: "group", hidden: !this.expanded }, h("slot", { key: '6b9182c724d033d3f3eb0e3977b2c54a8748f793', onSlotchange: () => this.pfTreeStructure.emit() }))));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
PfTreeItem.style = pfTreeItemCss();
|
|
75
|
+
|
|
76
|
+
export { PfTreeItem as pf_tree_item };
|
|
77
|
+
//# sourceMappingURL=pf-tree-item.entry.js.map
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=pf-tree-item.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-tree-item.entry.js","sources":["src/components/pf-tree-item/pf-tree-item.css?tag=pf-tree-item&encapsulation=shadow","src/components/pf-tree-item/pf-tree-item.tsx"],"sourcesContent":[":host {\n display: block;\n min-width: 0;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/*\n * The indent comes from the nesting rather than from a level pushed into a\n * custom property: the items are nested in the DOM, so one rule here indents\n * every depth, and there is no number to keep in step with the markup.\n */\n.children {\n padding-inline-start: var(--space-4);\n}\n\n.children[hidden] {\n display: none;\n}\n\n.row {\n align-items: center;\n border-radius: var(--radius-sm);\n color: var(--pf-treeview-text-muted);\n cursor: pointer;\n display: grid;\n gap: var(--space-2);\n grid-template-columns: 24px auto 1fr auto;\n min-height: 34px;\n min-width: 0;\n padding-inline-end: var(--space-2);\n}\n\n/* No icon slotted in, no column for one: the grid closes up. */\n:host(:not([icon])) .row {\n grid-template-columns: 24px 1fr auto;\n}\n\n.row:hover {\n background: var(--pf-treeview-bg-subtle);\n color: var(--pf-treeview-text);\n}\n\n/*\n * The ring marks the item the keyboard is on, and the tree decides whether to\n * draw one at all: it is the thing with the focus, and it turns the ring on\n * through `--pf-tree-active-ring` only while it is focused.\n */\n:host([active]) .row {\n box-shadow: var(--pf-tree-active-ring, none);\n}\n\n:host([selected]) .row {\n background: var(--pf-treeview-bg-subtle);\n color: var(--pf-treeview-text);\n font-weight: var(--font-weight-semibold);\n}\n\n:host([disabled]) .row {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.twisty {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n width: 24px;\n}\n\n.toggle {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: var(--radius-sm);\n color: var(--pf-treeview-text-muted);\n cursor: pointer;\n display: inline-flex;\n font-size: var(--font-size-xs);\n height: 24px;\n justify-content: center;\n padding: 0;\n width: 24px;\n}\n\n.toggle:hover {\n background: var(--pf-treeview-bg-subtle);\n color: var(--pf-treeview-text);\n}\n\n.icon {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n}\n\n.label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.badge {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n}\n\n/* Two classes deep, because the box sets its own `display` above. */\n.badge.empty {\n display: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Prop, State } from '@stencil/core';\n\n/**\n * One item in a `pf-tree-view`, with its own items nested inside it.\n *\n * The host is the `treeitem`, and it is never focused: the tree keeps the\n * focus and names the active item with `aria-activedescendant`, because a\n * nested host cannot take a roving tabindex at all — measured, and explained\n * on `pf-tree-view`. So the row inside is a plain box rather than a button,\n * and the twisty is the only focusable thing in here, kept out of the tab\n * order.\n *\n * `level`, `selected`, `expanded` and `hasChildren` are the group's to set:\n * only it can see the whole tree.\n *\n * @slot label - the item's label.\n * @slot badge - small trailing content, a count or a status.\n * @slot - the nested `pf-tree-item` children.\n * @part row - the item's own row, without its children.\n * @part toggle - the twisty, on an item that has children.\n * @part label - the label's box.\n * @part children - the box holding the nested items.\n */\n@Component({\n tag: 'pf-tree-item',\n styleUrl: 'pf-tree-item.css',\n shadow: true,\n})\nexport class PfTreeItem {\n @Element() el!: HTMLElement;\n\n /**\n * Identifies the item in the tree's selection and open set.\n *\n * Reflected because the generated bindings set props as properties, so\n * without it a consumer selecting `pf-tree-item[value=\"...\"]` finds\n * nothing. The tree reads the property.\n */\n @Prop({ reflect: true }) value = '';\n\n /** Reflected; the stylesheet and the tree's own filtering both read it. */\n @Prop({ reflect: true }) disabled = false;\n\n /** An icon name from the same registry as `pf-icon`. */\n @Prop() icon?: string;\n\n /** Set by the tree: how deep this item sits, counting from 1. */\n @Prop({ mutable: true }) level = 1;\n\n /** Set by the tree. Reflected, so the stylesheet can mark the item. */\n @Prop({ mutable: true, reflect: true }) selected = false;\n\n /** Set by the tree: whether this branch is open. Reflected. */\n @Prop({ mutable: true, reflect: true }) expanded = false;\n\n /** Set by the tree: whether there is anything to open. Reflected. */\n @Prop({ mutable: true, reflect: true }) hasChildren = false;\n\n /**\n * Set by the tree: the item the keyboard is on, which is not always the\n * selected one. Reflected, because the ring is drawn from it.\n */\n @Prop({ mutable: true, reflect: true }) active = false;\n\n /** Asks the tree to select this item. The tree decides. */\n @Event() pfTreeSelect!: EventEmitter<{ value: string }>;\n\n /** Asks the tree to open or close this branch. */\n @Event() pfTreeToggle!: EventEmitter<{ value: string }>;\n\n /**\n * Tells the tree that the items inside this one have changed.\n *\n * `slotchange` does not cross a shadow boundary — it is not composed — so a\n * tree cannot hear its grandchildren arrive. Without this, an item appended\n * to a branch is never given a level, an id or a place in the keyboard\n * order; a browser test adds one.\n */\n @Event() pfTreeStructure!: EventEmitter<void>;\n\n /** Whether anything is slotted into the badge, which carries layout. */\n @State() hasBadge = 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 this.hasBadge = Array.from(this.el.children).some(\n (child) => child.getAttribute('slot') === 'badge',\n );\n };\n\n private onRowClick = () => {\n if (this.disabled) return;\n this.pfTreeSelect.emit({ value: this.value });\n };\n\n private onToggleClick = (event: MouseEvent) => {\n // The twisty opens the branch without also selecting the item.\n event.stopPropagation();\n this.pfTreeToggle.emit({ value: this.value });\n };\n\n render() {\n return (\n <Host\n role=\"treeitem\"\n aria-level={String(this.level)}\n aria-selected={this.selected ? 'true' : 'false'}\n aria-expanded={this.hasChildren ? (this.expanded ? 'true' : 'false') : null}\n aria-disabled={this.disabled ? 'true' : null}\n >\n {/*\n A click surface rather than a button: the host is the treeitem, and\n the tree holds the keys — a second focusable thing in here would be\n a tab stop inside a treeitem, which the pattern does not have.\n */}\n <div class=\"row\" part=\"row\" onClick={this.onRowClick}>\n <span class=\"twisty\" aria-hidden=\"true\">\n {this.hasChildren && (\n <button\n type=\"button\"\n class=\"toggle\"\n part=\"toggle\"\n tabindex=\"-1\"\n onClick={this.onToggleClick}\n >\n {this.expanded ? '▾' : '▸'}\n </button>\n )}\n </span>\n\n {this.icon && <pf-icon class=\"icon\" name={this.icon} aria-hidden=\"true\"></pf-icon>}\n\n <span class=\"label\" part=\"label\">\n <slot name=\"label\" />\n </span>\n\n <span class={{ badge: true, empty: !this.hasBadge }}>\n <slot name=\"badge\" onSlotchange={this.read} />\n </span>\n </div>\n\n {/*\n The nested items stay in the tree when the branch is closed and are\n hidden instead: a slot that is not rendered never fires `slotchange`,\n so an item added to a closed branch would stay invisible for good.\n `role=\"group\"` is what makes the nesting a tree to a screen reader.\n */}\n <div class=\"children\" part=\"children\" role=\"group\" hidden={!this.expanded}>\n <slot onSlotchange={() => this.pfTreeStructure.emit()} />\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,aAAa,GAAG,MAAM,CAAC,i5CAAi5C,CAAC;;MC4Bl6C,UAAU,GAAA,MAAA;;;;;;;;AAGrB;;;;;;AAMG;IACsB,KAAK,GAAG,EAAE;;IAGV,QAAQ,GAAG,KAAK;;AAGjC,IAAA,IAAI;;IAGa,KAAK,GAAG,CAAC;;IAGM,QAAQ,GAAG,KAAK;;IAGhB,QAAQ,GAAG,KAAK;;IAGhB,WAAW,GAAG,KAAK;AAE3D;;;AAGG;IACqC,MAAM,GAAG,KAAK;;AAG7C,IAAA,YAAY;;AAGZ,IAAA,YAAY;AAErB;;;;;;;AAOG;AACM,IAAA,eAAe;;IAGf,QAAQ,GAAG,KAAK;;IAGzB,iBAAiB,GAAA;QACf,IAAI,CAAC,IAAI,EAAE;;IAGL,IAAI,GAAG,MAAK;AAClB,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC/C,CAAC,KAAK,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seValueList, f as formatValueList } from './value-list-BmcsJLdy.js';
|
|
3
|
+
|
|
4
|
+
//#region src/tree.ts
|
|
5
|
+
/**
|
|
6
|
+
* The nodes a reader can actually see, in the order they are rendered —
|
|
7
|
+
* depth-first, with a closed branch's children left out.
|
|
8
|
+
*
|
|
9
|
+
* One flat list rather than a recursive walk per key, because every one of the
|
|
10
|
+
* keyboard rules is "the next visible node" or "the previous" one, and those
|
|
11
|
+
* are neighbours here.
|
|
12
|
+
*/
|
|
13
|
+
function flattenVisibleTree(nodes, expanded, level = 1, parentValue) {
|
|
14
|
+
const open = expanded instanceof Set ? expanded : new Set(expanded);
|
|
15
|
+
const flattened = [];
|
|
16
|
+
for (const node of nodes) {
|
|
17
|
+
const hasChildren = Boolean(node.children && node.children.length > 0);
|
|
18
|
+
const isExpanded = hasChildren && open.has(node.value);
|
|
19
|
+
flattened.push({
|
|
20
|
+
node,
|
|
21
|
+
level,
|
|
22
|
+
parentValue,
|
|
23
|
+
hasChildren,
|
|
24
|
+
expanded: isExpanded
|
|
25
|
+
});
|
|
26
|
+
if (isExpanded) flattened.push(...flattenVisibleTree(node.children, open, level + 1, node.value));
|
|
27
|
+
}
|
|
28
|
+
return flattened;
|
|
29
|
+
}
|
|
30
|
+
/** The first node a reader can select, looking into closed branches too. */
|
|
31
|
+
function firstEnabledTreeValue(nodes) {
|
|
32
|
+
for (const node of nodes) {
|
|
33
|
+
if (!node.disabled) return node.value;
|
|
34
|
+
if (node.children && node.children.length > 0) {
|
|
35
|
+
const inside = firstEnabledTreeValue(node.children);
|
|
36
|
+
if (inside) return inside;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** Every node that has children, which is what "expand all" opens. */
|
|
41
|
+
function expandableTreeValues(nodes) {
|
|
42
|
+
const values = [];
|
|
43
|
+
for (const node of nodes) if (node.children && node.children.length > 0) {
|
|
44
|
+
values.push(node.value);
|
|
45
|
+
values.push(...expandableTreeValues(node.children));
|
|
46
|
+
}
|
|
47
|
+
return values;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* What a key does, given the visible list and where the focus is — or `null`
|
|
51
|
+
* when the key is not the tree's to handle.
|
|
52
|
+
*
|
|
53
|
+
* Returned as an intent rather than performed, so both layers share every
|
|
54
|
+
* rule and differ only in how they move focus and set state. The two rules
|
|
55
|
+
* worth stating are the horizontal ones, which are the ARIA pattern:
|
|
56
|
+
*
|
|
57
|
+
* - Right opens a closed branch, and on an open one moves to its first child.
|
|
58
|
+
* On a leaf it does nothing, rather than skipping to the next sibling.
|
|
59
|
+
* - Left closes an open branch, and on anything else moves out to the parent.
|
|
60
|
+
*
|
|
61
|
+
* Enter and Space select, and also toggle a branch — which is the React
|
|
62
|
+
* component's behaviour, and the reason this returns one intent at a time:
|
|
63
|
+
* the caller does the selection itself and asks again for the toggle.
|
|
64
|
+
*/
|
|
65
|
+
function resolveTreeKey(key, flattened, currentIndex) {
|
|
66
|
+
const current = flattened[currentIndex];
|
|
67
|
+
if (!current) return null;
|
|
68
|
+
const at = (index) => flattened[index]?.node.value;
|
|
69
|
+
switch (key) {
|
|
70
|
+
case "ArrowDown": {
|
|
71
|
+
const next = at(currentIndex + 1);
|
|
72
|
+
return next ? {
|
|
73
|
+
type: "focus",
|
|
74
|
+
value: next
|
|
75
|
+
} : null;
|
|
76
|
+
}
|
|
77
|
+
case "ArrowUp": {
|
|
78
|
+
const previous = at(currentIndex - 1);
|
|
79
|
+
return previous ? {
|
|
80
|
+
type: "focus",
|
|
81
|
+
value: previous
|
|
82
|
+
} : null;
|
|
83
|
+
}
|
|
84
|
+
case "ArrowRight": {
|
|
85
|
+
if (!current.hasChildren) return null;
|
|
86
|
+
if (!current.expanded) return {
|
|
87
|
+
type: "expand",
|
|
88
|
+
value: current.node.value
|
|
89
|
+
};
|
|
90
|
+
const child = flattened[currentIndex + 1];
|
|
91
|
+
return child && child.parentValue === current.node.value ? {
|
|
92
|
+
type: "focus",
|
|
93
|
+
value: child.node.value
|
|
94
|
+
} : null;
|
|
95
|
+
}
|
|
96
|
+
case "ArrowLeft":
|
|
97
|
+
if (current.hasChildren && current.expanded) return {
|
|
98
|
+
type: "collapse",
|
|
99
|
+
value: current.node.value
|
|
100
|
+
};
|
|
101
|
+
return current.parentValue ? {
|
|
102
|
+
type: "focus",
|
|
103
|
+
value: current.parentValue
|
|
104
|
+
} : null;
|
|
105
|
+
case "Home": {
|
|
106
|
+
const first = at(0);
|
|
107
|
+
return first ? {
|
|
108
|
+
type: "focus",
|
|
109
|
+
value: first
|
|
110
|
+
} : null;
|
|
111
|
+
}
|
|
112
|
+
case "End": {
|
|
113
|
+
const last = at(flattened.length - 1);
|
|
114
|
+
return last ? {
|
|
115
|
+
type: "focus",
|
|
116
|
+
value: last
|
|
117
|
+
} : null;
|
|
118
|
+
}
|
|
119
|
+
case "Enter":
|
|
120
|
+
case " ": return {
|
|
121
|
+
type: "activate",
|
|
122
|
+
value: current.node.value
|
|
123
|
+
};
|
|
124
|
+
default: return null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const pfTreeViewCss = () => `:host{background:var(--pf-treeview-bg);border:1px solid var(--pf-treeview-border);border-radius:var(--radius-md);display:block;padding:var(--space-2)}:host([hidden]){display:none}:host{--pf-tree-active-ring:none;outline:none}:host(:focus-visible){--pf-tree-active-ring:var(--pf-treeview-focus-ring, var(--pf-focus-ring))}`;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Distinguishes the ids a tree generates for its items. Not `useId`, which has
|
|
132
|
+
* no equivalent here, and not a shadow-scoped literal either: these ids go on
|
|
133
|
+
* *light-DOM* children, so they share the document's namespace.
|
|
134
|
+
*/
|
|
135
|
+
let instances = 0;
|
|
136
|
+
const PfTreeView = class {
|
|
137
|
+
constructor(hostRef) {
|
|
138
|
+
registerInstance(this, hostRef);
|
|
139
|
+
this.pfChange = createEvent(this, "pfChange");
|
|
140
|
+
this.pfExpandedChange = createEvent(this, "pfExpandedChange");
|
|
141
|
+
}
|
|
142
|
+
get el() { return getElement(this); }
|
|
143
|
+
/** The selected item's value. */
|
|
144
|
+
value = '';
|
|
145
|
+
/** The open branches, as one comma-separated string. */
|
|
146
|
+
expanded = '';
|
|
147
|
+
/** The tree's accessible name. */
|
|
148
|
+
label;
|
|
149
|
+
/** Fires when the selection changes. */
|
|
150
|
+
pfChange;
|
|
151
|
+
/** Fires when a branch opens or closes, with the open set. */
|
|
152
|
+
pfExpandedChange;
|
|
153
|
+
/**
|
|
154
|
+
* The item the keyboard is on, which is not always the selected one — the
|
|
155
|
+
* arrows move it, Enter selects. Starts on the selection, so tabbing in
|
|
156
|
+
* lands where the reader left off.
|
|
157
|
+
*/
|
|
158
|
+
activeValue = '';
|
|
159
|
+
/** Distinguishes the ids this tree generates for its light-DOM items. */
|
|
160
|
+
uid = ++instances;
|
|
161
|
+
/** The light DOM is readable here, so first paint is already right. */
|
|
162
|
+
componentWillLoad() {
|
|
163
|
+
if (!this.value)
|
|
164
|
+
this.value = firstEnabledTreeValue(this.tree) ?? '';
|
|
165
|
+
this.activeValue = this.value;
|
|
166
|
+
this.sync();
|
|
167
|
+
}
|
|
168
|
+
componentDidLoad() {
|
|
169
|
+
this.sync();
|
|
170
|
+
}
|
|
171
|
+
handleStateChange() {
|
|
172
|
+
this.sync();
|
|
173
|
+
}
|
|
174
|
+
/** Re-reads the tree, for a consumer who changed an item through a property. */
|
|
175
|
+
async refresh() {
|
|
176
|
+
this.sync();
|
|
177
|
+
}
|
|
178
|
+
/** Opens every branch. */
|
|
179
|
+
async expandAll() {
|
|
180
|
+
this.setExpanded(expandableTreeValues(this.tree));
|
|
181
|
+
}
|
|
182
|
+
/** Closes every branch. */
|
|
183
|
+
async collapseAll() {
|
|
184
|
+
this.setExpanded([]);
|
|
185
|
+
}
|
|
186
|
+
/** The nested items, as the tree core's rules walk. */
|
|
187
|
+
get tree() {
|
|
188
|
+
const read = (container) => Array.from(container.querySelectorAll('pf-tree-item'))
|
|
189
|
+
.filter((item) => item.parentElement === container)
|
|
190
|
+
.map((item) => ({
|
|
191
|
+
el: item,
|
|
192
|
+
value: item.value ?? item.getAttribute('value') ?? '',
|
|
193
|
+
disabled: item.disabled ??
|
|
194
|
+
item.hasAttribute('disabled'),
|
|
195
|
+
children: read(item),
|
|
196
|
+
}));
|
|
197
|
+
return read(this.el);
|
|
198
|
+
}
|
|
199
|
+
get openValues() {
|
|
200
|
+
return parseValueList(this.expanded);
|
|
201
|
+
}
|
|
202
|
+
get visible() {
|
|
203
|
+
return flattenVisibleTree(this.tree, this.openValues);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Pushes the tree's state onto the items: how deep each one is, whether it
|
|
207
|
+
* is selected, open, or the one the keyboard is on — and an id, because the
|
|
208
|
+
* active item is named by an IDREF from the host.
|
|
209
|
+
*/
|
|
210
|
+
sync() {
|
|
211
|
+
const open = new Set(this.openValues);
|
|
212
|
+
let index = 0;
|
|
213
|
+
const walk = (nodes, level) => {
|
|
214
|
+
for (const node of nodes) {
|
|
215
|
+
const item = node.el;
|
|
216
|
+
// The ids go on light-DOM children, so they share the document's
|
|
217
|
+
// namespace with every other tree on the page.
|
|
218
|
+
if (!node.el.id)
|
|
219
|
+
node.el.id = `pf-tree-${this.uid}-item-${(index += 1)}`;
|
|
220
|
+
item.level = level;
|
|
221
|
+
item.selected = node.value === this.value;
|
|
222
|
+
item.hasChildren = node.children.length > 0;
|
|
223
|
+
item.expanded = node.children.length > 0 && open.has(node.value);
|
|
224
|
+
item.active = node.value === this.activeValue;
|
|
225
|
+
walk(node.children, level + 1);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
walk(this.tree, 1);
|
|
229
|
+
/*
|
|
230
|
+
* An item inside a closed branch cannot be the active one: the reader
|
|
231
|
+
* cannot see it, and `aria-activedescendant` pointing at it would tell a
|
|
232
|
+
* screen reader otherwise. Collapsing a branch therefore moves the
|
|
233
|
+
* keyboard back out to it.
|
|
234
|
+
*/
|
|
235
|
+
const visible = this.visible;
|
|
236
|
+
if (visible.length === 0)
|
|
237
|
+
return;
|
|
238
|
+
if (!visible.some((item) => item.node.value === this.activeValue)) {
|
|
239
|
+
const fallback = visible.find((item) => item.node.value === this.value) ?? visible[0];
|
|
240
|
+
this.activeValue = fallback.node.value;
|
|
241
|
+
this.sync();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/** The active item's id, which is what the host points `aria-activedescendant` at. */
|
|
245
|
+
get activeId() {
|
|
246
|
+
const active = this.visible.find((item) => item.node.value === this.activeValue);
|
|
247
|
+
return active?.node.el.id || undefined;
|
|
248
|
+
}
|
|
249
|
+
setExpanded(next) {
|
|
250
|
+
const value = formatValueList(next);
|
|
251
|
+
if (value === this.expanded)
|
|
252
|
+
return;
|
|
253
|
+
this.expanded = value;
|
|
254
|
+
this.sync();
|
|
255
|
+
this.pfExpandedChange.emit({ value, values: next });
|
|
256
|
+
}
|
|
257
|
+
toggle(value, open) {
|
|
258
|
+
const current = new Set(this.openValues);
|
|
259
|
+
const shouldOpen = open ?? !current.has(value);
|
|
260
|
+
if (shouldOpen)
|
|
261
|
+
current.add(value);
|
|
262
|
+
else
|
|
263
|
+
current.delete(value);
|
|
264
|
+
this.setExpanded(Array.from(current));
|
|
265
|
+
}
|
|
266
|
+
select(value) {
|
|
267
|
+
const node = this.visible.find((item) => item.node.value === value)?.node;
|
|
268
|
+
if (!node || node.disabled)
|
|
269
|
+
return;
|
|
270
|
+
// The keyboard follows the selection, however it was made.
|
|
271
|
+
this.activeValue = value;
|
|
272
|
+
if (value === this.value) {
|
|
273
|
+
this.sync();
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
this.value = value;
|
|
277
|
+
this.sync();
|
|
278
|
+
this.pfChange.emit({ value });
|
|
279
|
+
}
|
|
280
|
+
/** An item asking to be selected. The group decides. */
|
|
281
|
+
handleSelect(event) {
|
|
282
|
+
event.stopPropagation();
|
|
283
|
+
this.select(event.detail.value);
|
|
284
|
+
}
|
|
285
|
+
/** An item's twisty asking to open or close it. */
|
|
286
|
+
handleToggle(event) {
|
|
287
|
+
event.stopPropagation();
|
|
288
|
+
this.toggle(event.detail.value);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Every key rule is core's; this only carries the intent out. A key core
|
|
292
|
+
* does not claim is left to the browser.
|
|
293
|
+
*/
|
|
294
|
+
handleKeyDown(event) {
|
|
295
|
+
if (event.defaultPrevented)
|
|
296
|
+
return;
|
|
297
|
+
const visible = this.visible;
|
|
298
|
+
const currentIndex = visible.findIndex((item) => item.node.value === this.activeValue);
|
|
299
|
+
const intent = resolveTreeKey(event.key, visible, currentIndex);
|
|
300
|
+
if (!intent)
|
|
301
|
+
return;
|
|
302
|
+
event.preventDefault();
|
|
303
|
+
if (intent.type === 'focus') {
|
|
304
|
+
// The keyboard moves without any DOM focus moving: the tree keeps it.
|
|
305
|
+
this.activeValue = intent.value;
|
|
306
|
+
this.sync();
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
if (intent.type === 'expand' || intent.type === 'collapse') {
|
|
310
|
+
this.toggle(intent.value, intent.type === 'expand');
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
// Activation both selects and toggles, as a click on each half would.
|
|
314
|
+
this.select(intent.value);
|
|
315
|
+
if (visible[currentIndex]?.hasChildren)
|
|
316
|
+
this.toggle(intent.value);
|
|
317
|
+
}
|
|
318
|
+
/** An item's own slot changed, so the tree below it has moved. */
|
|
319
|
+
handleStructureChange(event) {
|
|
320
|
+
event.stopPropagation();
|
|
321
|
+
this.sync();
|
|
322
|
+
}
|
|
323
|
+
render() {
|
|
324
|
+
return (h(Host, { key: 'a39e6df109c516369723544040b29914e5ba596d', role: "tree", tabindex: "0", "aria-label": this.label, "aria-activedescendant": this.activeId }, h("slot", { key: 'e50cbfba93aadd34fefad3399af4ecc7aa468fdf', onSlotchange: () => this.refresh() })));
|
|
325
|
+
}
|
|
326
|
+
static get watchers() { return {
|
|
327
|
+
"value": [{
|
|
328
|
+
"handleStateChange": 0
|
|
329
|
+
}],
|
|
330
|
+
"expanded": [{
|
|
331
|
+
"handleStateChange": 0
|
|
332
|
+
}]
|
|
333
|
+
}; }
|
|
334
|
+
};
|
|
335
|
+
PfTreeView.style = pfTreeViewCss();
|
|
336
|
+
|
|
337
|
+
export { PfTreeView as pf_tree_view };
|
|
338
|
+
//# sourceMappingURL=pf-tree-view.entry.js.map
|
|
339
|
+
|
|
340
|
+
//# sourceMappingURL=pf-tree-view.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-tree-view.entry.js","sources":["../core/dist/tree.js","src/components/pf-tree-view/pf-tree-view.css?tag=pf-tree-view&encapsulation=shadow","src/components/pf-tree-view/pf-tree-view.tsx"],"sourcesContent":["//#region src/tree.ts\n/**\n* The nodes a reader can actually see, in the order they are rendered —\n* depth-first, with a closed branch's children left out.\n*\n* One flat list rather than a recursive walk per key, because every one of the\n* keyboard rules is \"the next visible node\" or \"the previous\" one, and those\n* are neighbours here.\n*/\nfunction flattenVisibleTree(nodes, expanded, level = 1, parentValue) {\n\tconst open = expanded instanceof Set ? expanded : new Set(expanded);\n\tconst flattened = [];\n\tfor (const node of nodes) {\n\t\tconst hasChildren = Boolean(node.children && node.children.length > 0);\n\t\tconst isExpanded = hasChildren && open.has(node.value);\n\t\tflattened.push({\n\t\t\tnode,\n\t\t\tlevel,\n\t\t\tparentValue,\n\t\t\thasChildren,\n\t\t\texpanded: isExpanded\n\t\t});\n\t\tif (isExpanded) flattened.push(...flattenVisibleTree(node.children, open, level + 1, node.value));\n\t}\n\treturn flattened;\n}\n/** The first node a reader can select, looking into closed branches too. */\nfunction firstEnabledTreeValue(nodes) {\n\tfor (const node of nodes) {\n\t\tif (!node.disabled) return node.value;\n\t\tif (node.children && node.children.length > 0) {\n\t\t\tconst inside = firstEnabledTreeValue(node.children);\n\t\t\tif (inside) return inside;\n\t\t}\n\t}\n}\n/** Every node that has children, which is what \"expand all\" opens. */\nfunction expandableTreeValues(nodes) {\n\tconst values = [];\n\tfor (const node of nodes) if (node.children && node.children.length > 0) {\n\t\tvalues.push(node.value);\n\t\tvalues.push(...expandableTreeValues(node.children));\n\t}\n\treturn values;\n}\n/**\n* What a key does, given the visible list and where the focus is — or `null`\n* when the key is not the tree's to handle.\n*\n* Returned as an intent rather than performed, so both layers share every\n* rule and differ only in how they move focus and set state. The two rules\n* worth stating are the horizontal ones, which are the ARIA pattern:\n*\n* - Right opens a closed branch, and on an open one moves to its first child.\n* On a leaf it does nothing, rather than skipping to the next sibling.\n* - Left closes an open branch, and on anything else moves out to the parent.\n*\n* Enter and Space select, and also toggle a branch — which is the React\n* component's behaviour, and the reason this returns one intent at a time:\n* the caller does the selection itself and asks again for the toggle.\n*/\nfunction resolveTreeKey(key, flattened, currentIndex) {\n\tconst current = flattened[currentIndex];\n\tif (!current) return null;\n\tconst at = (index) => flattened[index]?.node.value;\n\tswitch (key) {\n\t\tcase \"ArrowDown\": {\n\t\t\tconst next = at(currentIndex + 1);\n\t\t\treturn next ? {\n\t\t\t\ttype: \"focus\",\n\t\t\t\tvalue: next\n\t\t\t} : null;\n\t\t}\n\t\tcase \"ArrowUp\": {\n\t\t\tconst previous = at(currentIndex - 1);\n\t\t\treturn previous ? {\n\t\t\t\ttype: \"focus\",\n\t\t\t\tvalue: previous\n\t\t\t} : null;\n\t\t}\n\t\tcase \"ArrowRight\": {\n\t\t\tif (!current.hasChildren) return null;\n\t\t\tif (!current.expanded) return {\n\t\t\t\ttype: \"expand\",\n\t\t\t\tvalue: current.node.value\n\t\t\t};\n\t\t\tconst child = flattened[currentIndex + 1];\n\t\t\treturn child && child.parentValue === current.node.value ? {\n\t\t\t\ttype: \"focus\",\n\t\t\t\tvalue: child.node.value\n\t\t\t} : null;\n\t\t}\n\t\tcase \"ArrowLeft\":\n\t\t\tif (current.hasChildren && current.expanded) return {\n\t\t\t\ttype: \"collapse\",\n\t\t\t\tvalue: current.node.value\n\t\t\t};\n\t\t\treturn current.parentValue ? {\n\t\t\t\ttype: \"focus\",\n\t\t\t\tvalue: current.parentValue\n\t\t\t} : null;\n\t\tcase \"Home\": {\n\t\t\tconst first = at(0);\n\t\t\treturn first ? {\n\t\t\t\ttype: \"focus\",\n\t\t\t\tvalue: first\n\t\t\t} : null;\n\t\t}\n\t\tcase \"End\": {\n\t\t\tconst last = at(flattened.length - 1);\n\t\t\treturn last ? {\n\t\t\t\ttype: \"focus\",\n\t\t\t\tvalue: last\n\t\t\t} : null;\n\t\t}\n\t\tcase \"Enter\":\n\t\tcase \" \": return {\n\t\t\ttype: \"activate\",\n\t\t\tvalue: current.node.value\n\t\t};\n\t\tdefault: return null;\n\t}\n}\n//#endregion\nexport { expandableTreeValues, firstEnabledTreeValue, flattenVisibleTree, resolveTreeKey };\n",":host {\n background: var(--pf-treeview-bg);\n border: 1px solid var(--pf-treeview-border);\n border-radius: var(--radius-md);\n display: block;\n padding: var(--space-2);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/*\n * The tree is the tab stop, so the ring belongs to whichever item the keyboard\n * is on — and only while the tree itself has focus. A custom property is how\n * that reaches the item: it inherits through the shadow boundary, where\n * `:host-context()` would not work in Firefox or Safari.\n */\n:host {\n --pf-tree-active-ring: none;\n outline: none;\n}\n\n:host(:focus-visible) {\n --pf-tree-active-ring: var(--pf-treeview-focus-ring, var(--pf-focus-ring));\n}\n","import {\n expandableTreeValues,\n firstEnabledTreeValue,\n type FlatTreeNode,\n flattenVisibleTree,\n formatValueList,\n parseValueList,\n resolveTreeKey,\n type TreeNodeLike,\n} from '@pitchfork-ui/core';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\n\n/**\n * Distinguishes the ids a tree generates for its items. Not `useId`, which has\n * no equivalent here, and not a shadow-scoped literal either: these ids go on\n * *light-DOM* children, so they share the document's namespace.\n */\nlet instances = 0;\n\n/** A `pf-tree-item` read the way core's rules need it. */\ninterface ItemNode extends TreeNodeLike {\n el: HTMLElement;\n children: ItemNode[];\n}\n\n/**\n * A tree over nested `pf-tree-item` children.\n *\n * Nesting rather than a `nodes` array, which is what a tree looks like in a\n * consumer's template anyway — and the labels are nodes, so they could not\n * cross the HTML boundary.\n *\n * The group owns what no single item can see: which one is selected, which\n * are open, the one tab stop, and the keyboard. Every rule the keyboard\n * follows is core's `resolveTreeKey`, so this and the React `TreeView` answer\n * the arrows identically.\n *\n * **The tree itself is the tab stop, not the items.** The ARIA tree pattern\n * allows either a roving tabindex or a managed `aria-activedescendant`, and\n * here only the second one works: measured in Chromium, a `tabindex=\"0\"` host\n * slotted into another host's shadow tree is skipped by sequential navigation\n * entirely when the outer host's tabindex is negative — which is exactly a\n * nested `pf-tree-item` under a roving tabindex. So the tree takes the focus\n * and tracks the active item with an IDREF, which resolves because the items\n * are its own light-DOM descendants.\n *\n * The React `TreeView` makes every visible item a tab stop, which is a gap\n * recorded in `todo.md`.\n *\n * @slot - the `pf-tree-item` children.\n */\n@Component({\n tag: 'pf-tree-view',\n styleUrl: 'pf-tree-view.css',\n shadow: true,\n})\nexport class PfTreeView {\n @Element() el!: HTMLElement;\n\n /** The selected item's value. */\n @Prop({ mutable: true, reflect: true }) value = '';\n\n /** The open branches, as one comma-separated string. */\n @Prop({ mutable: true, reflect: true }) expanded = '';\n\n /** The tree's accessible name. */\n @Prop() label?: string;\n\n /** Fires when the selection changes. */\n @Event() pfChange!: EventEmitter<{ value: string }>;\n\n /** Fires when a branch opens or closes, with the open set. */\n @Event() pfExpandedChange!: EventEmitter<{ value: string; values: string[] }>;\n\n /**\n * The item the keyboard is on, which is not always the selected one — the\n * arrows move it, Enter selects. Starts on the selection, so tabbing in\n * lands where the reader left off.\n */\n @State() activeValue = '';\n\n /** Distinguishes the ids this tree generates for its light-DOM items. */\n private uid = ++instances;\n\n /** The light DOM is readable here, so first paint is already right. */\n componentWillLoad() {\n if (!this.value) this.value = firstEnabledTreeValue(this.tree) ?? '';\n this.activeValue = this.value;\n this.sync();\n }\n\n componentDidLoad() {\n this.sync();\n }\n\n @Watch('value')\n @Watch('expanded')\n handleStateChange() {\n this.sync();\n }\n\n /** Re-reads the tree, for a consumer who changed an item through a property. */\n @Method()\n async refresh() {\n this.sync();\n }\n\n /** Opens every branch. */\n @Method()\n async expandAll() {\n this.setExpanded(expandableTreeValues(this.tree));\n }\n\n /** Closes every branch. */\n @Method()\n async collapseAll() {\n this.setExpanded([]);\n }\n\n /** The nested items, as the tree core's rules walk. */\n private get tree(): ItemNode[] {\n const read = (container: HTMLElement): ItemNode[] =>\n Array.from(container.querySelectorAll<HTMLElement>('pf-tree-item'))\n .filter((item) => item.parentElement === container)\n .map((item) => ({\n el: item,\n value:\n (item as HTMLElement & { value?: string }).value ?? item.getAttribute('value') ?? '',\n disabled:\n (item as HTMLElement & { disabled?: boolean }).disabled ??\n item.hasAttribute('disabled'),\n children: read(item),\n }));\n\n return read(this.el);\n }\n\n private get openValues(): string[] {\n return parseValueList(this.expanded);\n }\n\n private get visible(): FlatTreeNode<ItemNode>[] {\n return flattenVisibleTree(this.tree, this.openValues);\n }\n\n /**\n * Pushes the tree's state onto the items: how deep each one is, whether it\n * is selected, open, or the one the keyboard is on — and an id, because the\n * active item is named by an IDREF from the host.\n */\n private sync() {\n const open = new Set(this.openValues);\n let index = 0;\n\n const walk = (nodes: ItemNode[], level: number) => {\n for (const node of nodes) {\n const item = node.el as HTMLElement & {\n level: number;\n selected: boolean;\n expanded: boolean;\n hasChildren: boolean;\n active: boolean;\n };\n // The ids go on light-DOM children, so they share the document's\n // namespace with every other tree on the page.\n if (!node.el.id) node.el.id = `pf-tree-${this.uid}-item-${(index += 1)}`;\n item.level = level;\n item.selected = node.value === this.value;\n item.hasChildren = node.children.length > 0;\n item.expanded = node.children.length > 0 && open.has(node.value);\n item.active = node.value === this.activeValue;\n walk(node.children, level + 1);\n }\n };\n walk(this.tree, 1);\n\n /*\n * An item inside a closed branch cannot be the active one: the reader\n * cannot see it, and `aria-activedescendant` pointing at it would tell a\n * screen reader otherwise. Collapsing a branch therefore moves the\n * keyboard back out to it.\n */\n const visible = this.visible;\n if (visible.length === 0) return;\n if (!visible.some((item) => item.node.value === this.activeValue)) {\n const fallback = visible.find((item) => item.node.value === this.value) ?? visible[0];\n this.activeValue = fallback.node.value;\n this.sync();\n }\n }\n\n /** The active item's id, which is what the host points `aria-activedescendant` at. */\n private get activeId(): string | undefined {\n const active = this.visible.find((item) => item.node.value === this.activeValue);\n return active?.node.el.id || undefined;\n }\n\n private setExpanded(next: string[]) {\n const value = formatValueList(next);\n if (value === this.expanded) return;\n\n this.expanded = value;\n this.sync();\n this.pfExpandedChange.emit({ value, values: next });\n }\n\n private toggle(value: string, open?: boolean) {\n const current = new Set(this.openValues);\n const shouldOpen = open ?? !current.has(value);\n\n if (shouldOpen) current.add(value);\n else current.delete(value);\n\n this.setExpanded(Array.from(current));\n }\n\n private select(value: string) {\n const node = this.visible.find((item) => item.node.value === value)?.node;\n if (!node || node.disabled) return;\n\n // The keyboard follows the selection, however it was made.\n this.activeValue = value;\n if (value === this.value) {\n this.sync();\n return;\n }\n\n this.value = value;\n this.sync();\n this.pfChange.emit({ value });\n }\n\n /** An item asking to be selected. The group decides. */\n @Listen('pfTreeSelect')\n handleSelect(event: CustomEvent<{ value: string }>) {\n event.stopPropagation();\n this.select(event.detail.value);\n }\n\n /** An item's twisty asking to open or close it. */\n @Listen('pfTreeToggle')\n handleToggle(event: CustomEvent<{ value: string }>) {\n event.stopPropagation();\n this.toggle(event.detail.value);\n }\n\n /**\n * Every key rule is core's; this only carries the intent out. A key core\n * does not claim is left to the browser.\n */\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n if (event.defaultPrevented) return;\n\n const visible = this.visible;\n const currentIndex = visible.findIndex((item) => item.node.value === this.activeValue);\n const intent = resolveTreeKey(event.key, visible, currentIndex);\n if (!intent) return;\n\n event.preventDefault();\n\n if (intent.type === 'focus') {\n // The keyboard moves without any DOM focus moving: the tree keeps it.\n this.activeValue = intent.value;\n this.sync();\n return;\n }\n if (intent.type === 'expand' || intent.type === 'collapse') {\n this.toggle(intent.value, intent.type === 'expand');\n return;\n }\n\n // Activation both selects and toggles, as a click on each half would.\n this.select(intent.value);\n if (visible[currentIndex]?.hasChildren) this.toggle(intent.value);\n }\n\n /** An item's own slot changed, so the tree below it has moved. */\n @Listen('pfTreeStructure')\n handleStructureChange(event: CustomEvent<void>) {\n event.stopPropagation();\n this.sync();\n }\n\n render() {\n return (\n <Host role=\"tree\" tabindex=\"0\" aria-label={this.label} aria-activedescendant={this.activeId}>\n <slot onSlotchange={() => this.refresh()} />\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC,EAAE,WAAW,EAAE;AACrE,CAAC,MAAM,IAAI,GAAG,QAAQ,YAAY,GAAG,GAAG,QAAQ,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC;AACpE,CAAC,MAAM,SAAS,GAAG,EAAE;AACrB,CAAC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC3B,EAAE,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;AACxE,EAAE,MAAM,UAAU,GAAG,WAAW,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;AACxD,EAAE,SAAS,CAAC,IAAI,CAAC;AACjB,GAAG,IAAI;AACP,GAAG,KAAK;AACR,GAAG,WAAW;AACd,GAAG,WAAW;AACd,GAAG,QAAQ,EAAE;AACb,GAAG,CAAC;AACJ,EAAE,IAAI,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK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AAI,KAAK,UAAU,EAAE;AAC1D,YAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC;YACnD;;;AAIF,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;AACzB,QAAA,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE,WAAW;AAAE,YAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;AAKnE,IAAA,qBAAqB,CAAC,KAAwB,EAAA;QAC5C,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,IAAI,EAAE;;IAGb,MAAM,GAAA;QACJ,QACE,CAAA,CAAC,IAAI,qDAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,gBAAa,IAAI,CAAC,KAAK,EAAA,uBAAA,EAAyB,IAAI,CAAC,QAAQ,EAAA,EACzF,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,EAAA,CAAI,CACvC;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-Bm6UxEit.js';
|
|
2
|
+
|
|
3
|
+
const pfUtilityButtonCss = () => `:host{display:inline-flex}:host([hidden]){display:none}[part='button']{align-items:center;background:none;border:1px solid transparent;border-radius:var(--radius-md);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);gap:var(--space-1);justify-content:center;line-height:1;white-space:nowrap;transition:background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;width:100%}[part='button']:focus-visible{box-shadow:var(--pf-utilitybutton-focus-ring, var(--pf-focus-ring));outline:none}[part='button']:disabled{cursor:not-allowed;opacity:0.55}:host([size='sm']) [part='button']{min-height:32px;padding:0 var(--space-2)}:host([size='md']) [part='button']{min-height:36px;padding:0 var(--space-3)}:host([variant='neutral']) [part='button']{background:var(--pf-utility-btn-neutral-bg);border-color:var(--pf-utility-btn-neutral-border);color:var(--pf-utility-btn-neutral-text)}:host([variant='neutral']) [part='button']:hover:not(:disabled){background:var(--pf-utility-btn-neutral-bg-hover);border-color:var(--pf-utility-btn-neutral-border-hover)}:host([variant='brand']) [part='button']{background:var(--pf-utility-btn-brand-bg);border-color:var(--pf-utility-btn-brand-border);color:var(--pf-utility-btn-brand-text)}:host([variant='brand']) [part='button']:hover:not(:disabled){background:var(--pf-utility-btn-brand-bg-hover)}:host([variant='destructive']) [part='button']{background:var(--pf-utility-btn-destructive-bg);border-color:var(--pf-utility-btn-destructive-border);color:var(--pf-utility-btn-destructive-text)}:host([variant='destructive']) [part='button']:hover:not(:disabled){background:var(--pf-utility-btn-destructive-bg-hover)}slot[name='icon']::slotted(*){display:block;flex:0 0 auto;height:16px;width:16px}@media (prefers-reduced-motion: reduce){[part='button']{transition:none}}`;
|
|
4
|
+
|
|
5
|
+
const PfUtilityButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
get el() { return getElement(this); }
|
|
10
|
+
/** Colour treatment. Reflected so the stylesheet can select on it. */
|
|
11
|
+
variant = 'neutral';
|
|
12
|
+
/** Control size. Reflected so the stylesheet can select on it. */
|
|
13
|
+
size = 'md';
|
|
14
|
+
/** Disable the button. Reflected so the stylesheet can select on it. */
|
|
15
|
+
disabled = false;
|
|
16
|
+
/** Mirrors the native attribute. */
|
|
17
|
+
type = 'button';
|
|
18
|
+
/**
|
|
19
|
+
* Accessible name. Required for an icon-only button, and also used as the
|
|
20
|
+
* native tooltip unless `tooltip` says otherwise.
|
|
21
|
+
*/
|
|
22
|
+
label;
|
|
23
|
+
/** Native tooltip text. Defaults to `label`. */
|
|
24
|
+
tooltip;
|
|
25
|
+
/**
|
|
26
|
+
* An icon-only button with no name is invisible to a screen reader, and it is
|
|
27
|
+
* the mistake this component invites.
|
|
28
|
+
*
|
|
29
|
+
* Once per element, in `componentDidLoad`. `pf-icon` dedupes its own warning
|
|
30
|
+
* by icon name, but there is no equivalent key here, and a module-level flag
|
|
31
|
+
* would make the warning depend on what else happened to render first. Fifty
|
|
32
|
+
* nameless buttons are fifty real defects, and the React component is noisier
|
|
33
|
+
* still -- it warns from the render body, so once per render.
|
|
34
|
+
*/
|
|
35
|
+
componentDidLoad() {
|
|
36
|
+
if (this.label || this.el.getAttribute('aria-label'))
|
|
37
|
+
return;
|
|
38
|
+
const hasText = Array.from(this.el.childNodes).some((node) => (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) ||
|
|
39
|
+
(node.nodeType === Node.ELEMENT_NODE && node.getAttribute('slot') !== 'icon'));
|
|
40
|
+
if (hasText)
|
|
41
|
+
return;
|
|
42
|
+
console.warn('[pf-utility-button] An icon-only button needs a `label` (or an `aria-label`) — this one has no accessible name.');
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return (h(Host, { key: '7086ccf4c93129e544c160cf2c4815f2a3c61484' }, h("button", { key: 'd938e6170a19ef49c2af1d9e784e42f4192bc530', part: "button", type: this.type, disabled: this.disabled, "aria-label": this.label, title: this.tooltip ?? this.label }, h("slot", { key: 'e59b5b03a80eecd37990c89bad5435c4cc0cc7f9', name: "icon" }), h("slot", { key: 'ad287e4e52742a5c44eea10745163f065c79af07' }))));
|
|
46
|
+
}
|
|
47
|
+
static get delegatesFocus() { return true; }
|
|
48
|
+
};
|
|
49
|
+
PfUtilityButton.style = pfUtilityButtonCss();
|
|
50
|
+
|
|
51
|
+
export { PfUtilityButton as pf_utility_button };
|
|
52
|
+
//# sourceMappingURL=pf-utility-button.entry.js.map
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=pf-utility-button.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pf-utility-button.entry.js","sources":["src/components/pf-utility-button/pf-utility-button.css?tag=pf-utility-button&encapsulation=shadow","src/components/pf-utility-button/pf-utility-button.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n[part='button'] {\n align-items: center;\n background: none;\n border: 1px solid transparent;\n border-radius: var(--radius-md);\n cursor: pointer;\n display: inline-flex;\n font-family: inherit;\n font-size: var(--font-size-sm);\n font-weight: var(--font-weight-medium);\n gap: var(--space-1);\n justify-content: center;\n line-height: 1;\n white-space: nowrap;\n transition:\n background-color 120ms ease,\n border-color 120ms ease,\n color 120ms ease,\n box-shadow 120ms ease;\n width: 100%;\n}\n\n[part='button']:focus-visible {\n box-shadow: var(--pf-utilitybutton-focus-ring, var(--pf-focus-ring));\n outline: none;\n}\n\n[part='button']:disabled {\n cursor: not-allowed;\n opacity: 0.55;\n}\n\n:host([size='sm']) [part='button'] {\n min-height: 32px;\n padding: 0 var(--space-2);\n}\n\n:host([size='md']) [part='button'] {\n min-height: 36px;\n padding: 0 var(--space-3);\n}\n\n:host([variant='neutral']) [part='button'] {\n background: var(--pf-utility-btn-neutral-bg);\n border-color: var(--pf-utility-btn-neutral-border);\n color: var(--pf-utility-btn-neutral-text);\n}\n\n:host([variant='neutral']) [part='button']:hover:not(:disabled) {\n background: var(--pf-utility-btn-neutral-bg-hover);\n border-color: var(--pf-utility-btn-neutral-border-hover);\n}\n\n:host([variant='brand']) [part='button'] {\n background: var(--pf-utility-btn-brand-bg);\n border-color: var(--pf-utility-btn-brand-border);\n color: var(--pf-utility-btn-brand-text);\n}\n\n:host([variant='brand']) [part='button']:hover:not(:disabled) {\n background: var(--pf-utility-btn-brand-bg-hover);\n}\n\n:host([variant='destructive']) [part='button'] {\n background: var(--pf-utility-btn-destructive-bg);\n border-color: var(--pf-utility-btn-destructive-border);\n color: var(--pf-utility-btn-destructive-text);\n}\n\n:host([variant='destructive']) [part='button']:hover:not(:disabled) {\n background: var(--pf-utility-btn-destructive-bg-hover);\n}\n\n/*\n * Sizes the icon the consumer slots in. The React library reaches it with a\n * descendant selector (`.pf-utility-button__icon svg`); across a shadow\n * boundary only `::slotted` can, and it reaches the assigned node itself\n * rather than inside it -- so a slotted `pf-icon` is sized here and sizes its\n * own svg.\n */\nslot[name='icon']::slotted(*) {\n display: block;\n flex: 0 0 auto;\n height: 16px;\n width: 16px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n [part='button'] {\n transition: none;\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nexport type PfUtilityButtonVariant = 'neutral' | 'brand' | 'destructive';\nexport type PfUtilityButtonSize = 'sm' | 'md';\n\n/**\n * A compact button for toolbars and table rows, where the affordance is often\n * an icon alone.\n *\n * @slot - the button's label. Omit it for an icon-only button, and give a\n * `label` so the button still has an accessible name.\n * @slot icon - a leading icon, usually `pf-icon`.\n * @part button - the native button element.\n */\n@Component({\n tag: 'pf-utility-button',\n styleUrl: 'pf-utility-button.css',\n // delegatesFocus so focusing <pf-utility-button> reaches the real button and\n // :focus-visible lands on the element the stylesheet rings.\n shadow: { delegatesFocus: true },\n})\nexport class PfUtilityButton {\n @Element() el!: HTMLElement;\n\n /** Colour treatment. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) variant: PfUtilityButtonVariant = 'neutral';\n\n /** Control size. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) size: PfUtilityButtonSize = 'md';\n\n /** Disable the button. Reflected so the stylesheet can select on it. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Mirrors the native attribute. */\n @Prop() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * Accessible name. Required for an icon-only button, and also used as the\n * native tooltip unless `tooltip` says otherwise.\n */\n @Prop() label?: string;\n\n /** Native tooltip text. Defaults to `label`. */\n @Prop() tooltip?: string;\n\n /**\n * An icon-only button with no name is invisible to a screen reader, and it is\n * the mistake this component invites.\n *\n * Once per element, in `componentDidLoad`. `pf-icon` dedupes its own warning\n * by icon name, but there is no equivalent key here, and a module-level flag\n * would make the warning depend on what else happened to render first. Fifty\n * nameless buttons are fifty real defects, and the React component is noisier\n * still -- it warns from the render body, so once per render.\n */\n componentDidLoad() {\n if (this.label || this.el.getAttribute('aria-label')) return;\n const hasText = Array.from(this.el.childNodes).some(\n (node) =>\n (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) ||\n (node.nodeType === Node.ELEMENT_NODE && (node as Element).getAttribute('slot') !== 'icon'),\n );\n if (hasText) return;\n console.warn(\n '[pf-utility-button] An icon-only button needs a `label` (or an `aria-label`) — this one has no accessible name.',\n );\n }\n\n render() {\n return (\n <Host>\n <button\n part=\"button\"\n type={this.type}\n disabled={this.disabled}\n aria-label={this.label}\n title={this.tooltip ?? this.label}\n >\n {/*\n The slots sit directly in the flex container rather than inside\n wrapper spans. A `slot` is `display: contents` per the UA\n stylesheet, so an empty one contributes no flex item and the\n button's `gap` does not open beside it -- which a wrapper span\n would, being a zero-width item that still counts. There is no\n emptiness to detect.\n */}\n <slot name=\"icon\" />\n <slot />\n </button>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,kBAAkB,GAAG,MAAM,CAAC,s3DAAs3D,CAAC;;MCqB54D,eAAe,GAAA,MAAA;;;;;;IAID,OAAO,GAA2B,SAAS;;IAG3C,IAAI,GAAwB,IAAI;;IAGhC,QAAQ,GAAG,KAAK;;IAGjC,IAAI,GAAkC,QAAQ;AAEtD;;;AAGG;AACK,IAAA,KAAK;;AAGL,IAAA,OAAO;AAEf;;;;;;;;;AASG;IACH,gBAAgB,GAAA;QACd,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC;YAAE;AACtD,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CACjD,CAAC,IAAI,KACH,CAAC,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,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