@patternfly/elements 3.0.0 → 3.0.2
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/custom-elements.json +490 -484
- package/package.json +1 -1
- package/pf-accordion/BaseAccordion.js +2 -1
- package/pf-accordion/BaseAccordion.js.map +1 -1
- package/pf-accordion/BaseAccordionHeader.js +4 -1
- package/pf-accordion/BaseAccordionHeader.js.map +1 -1
- package/pf-accordion/BaseAccordionPanel.d.ts +1 -1
- package/pf-accordion/pf-accordion-header.d.ts +1 -1
- package/pf-accordion/pf-accordion.d.ts +0 -5
- package/pf-accordion/pf-accordion.js +0 -5
- package/pf-accordion/pf-accordion.js.map +1 -1
- package/pf-accordion/test/pf-accordion.e2e.d.ts +1 -0
- package/pf-accordion/test/pf-accordion.e2e.js +11 -0
- package/pf-accordion/test/pf-accordion.e2e.js.map +1 -0
- package/pf-accordion/test/pf-accordion.spec.d.ts +1 -0
- package/pf-accordion/test/pf-accordion.spec.js +1222 -0
- package/pf-accordion/test/pf-accordion.spec.js.map +1 -0
- package/pf-avatar/BaseAvatar.d.ts +1 -1
- package/pf-avatar/test/pf-avatar.e2e.d.ts +1 -0
- package/pf-avatar/test/pf-avatar.e2e.js +11 -0
- package/pf-avatar/test/pf-avatar.e2e.js.map +1 -0
- package/pf-avatar/test/pf-avatar.spec.d.ts +1 -0
- package/pf-avatar/test/pf-avatar.spec.js +45 -0
- package/pf-avatar/test/pf-avatar.spec.js.map +1 -0
- package/pf-back-to-top/demo/demo.css +25 -0
- package/pf-back-to-top/pf-back-to-top.d.ts +1 -1
- package/pf-back-to-top/test/pf-back-to-top.e2e.d.ts +1 -0
- package/pf-back-to-top/test/pf-back-to-top.e2e.js +11 -0
- package/pf-back-to-top/test/pf-back-to-top.e2e.js.map +1 -0
- package/pf-back-to-top/test/pf-back-to-top.spec.d.ts +1 -0
- package/pf-back-to-top/test/pf-back-to-top.spec.js +267 -0
- package/pf-back-to-top/test/pf-back-to-top.spec.js.map +1 -0
- package/pf-background-image/pf-background-image.d.ts +1 -4
- package/pf-background-image/pf-background-image.js +1 -4
- package/pf-background-image/pf-background-image.js.map +1 -1
- package/pf-background-image/test/pf-background-image.e2e.d.ts +1 -0
- package/pf-background-image/test/pf-background-image.e2e.js +11 -0
- package/pf-background-image/test/pf-background-image.e2e.js.map +1 -0
- package/pf-background-image/test/pf-background-image.spec.d.ts +1 -0
- package/pf-background-image/test/pf-background-image.spec.js +89 -0
- package/pf-background-image/test/pf-background-image.spec.js.map +1 -0
- package/pf-badge/BaseBadge.d.ts +1 -1
- package/pf-badge/test/pf-badge.e2e.d.ts +1 -0
- package/pf-badge/test/pf-badge.e2e.js +11 -0
- package/pf-badge/test/pf-badge.e2e.js.map +1 -0
- package/pf-badge/test/pf-badge.spec.d.ts +1 -0
- package/pf-badge/test/pf-badge.spec.js +52 -0
- package/pf-badge/test/pf-badge.spec.js.map +1 -0
- package/pf-banner/pf-banner.d.ts +1 -10
- package/pf-banner/pf-banner.js +0 -9
- package/pf-banner/pf-banner.js.map +1 -1
- package/pf-banner/test/pf-banner.e2e.d.ts +1 -0
- package/pf-banner/test/pf-banner.e2e.js +11 -0
- package/pf-banner/test/pf-banner.e2e.js.map +1 -0
- package/pf-banner/test/pf-banner.spec.d.ts +1 -0
- package/pf-banner/test/pf-banner.spec.js +81 -0
- package/pf-banner/test/pf-banner.spec.js.map +1 -0
- package/pf-button/BaseButton.d.ts +7 -2
- package/pf-button/BaseButton.js +4 -1
- package/pf-button/BaseButton.js.map +1 -1
- package/pf-button/pf-button.d.ts +1 -17
- package/pf-button/pf-button.js +10 -18
- package/pf-button/pf-button.js.map +1 -1
- package/pf-button/test/pf-button.e2e.d.ts +1 -0
- package/pf-button/test/pf-button.e2e.js +11 -0
- package/pf-button/test/pf-button.e2e.js.map +1 -0
- package/pf-button/test/pf-button.spec.d.ts +1 -0
- package/pf-button/test/pf-button.spec.js +124 -0
- package/pf-button/test/pf-button.spec.js.map +1 -0
- package/pf-card/BaseCard.d.ts +1 -1
- package/pf-card/test/pf-card.e2e.d.ts +1 -0
- package/pf-card/test/pf-card.e2e.js +11 -0
- package/pf-card/test/pf-card.e2e.js.map +1 -0
- package/pf-card/test/pf-card.spec.d.ts +1 -0
- package/pf-card/test/pf-card.spec.js +160 -0
- package/pf-card/test/pf-card.spec.js.map +1 -0
- package/pf-chip/pf-chip-group.d.ts +8 -5
- package/pf-chip/pf-chip-group.js +10 -10
- package/pf-chip/pf-chip-group.js.map +1 -1
- package/pf-chip/pf-chip.d.ts +8 -5
- package/pf-chip/pf-chip.js +4 -4
- package/pf-chip/pf-chip.js.map +1 -1
- package/pf-chip/test/pf-chip-group.spec.d.ts +1 -0
- package/pf-chip/test/pf-chip-group.spec.js +189 -0
- package/pf-chip/test/pf-chip-group.spec.js.map +1 -0
- package/pf-chip/test/pf-chip.e2e.d.ts +1 -0
- package/pf-chip/test/pf-chip.e2e.js +11 -0
- package/pf-chip/test/pf-chip.e2e.js.map +1 -0
- package/pf-chip/test/pf-chip.spec.d.ts +1 -0
- package/pf-chip/test/pf-chip.spec.js +116 -0
- package/pf-chip/test/pf-chip.spec.js.map +1 -0
- package/pf-clipboard-copy/pf-clipboard-copy.css +4 -0
- package/pf-clipboard-copy/pf-clipboard-copy.d.ts +8 -3
- package/pf-clipboard-copy/pf-clipboard-copy.js +6 -4
- package/pf-clipboard-copy/pf-clipboard-copy.js.map +1 -1
- package/pf-clipboard-copy/test/pf-clipboard-copy.e2e.d.ts +1 -0
- package/pf-clipboard-copy/test/pf-clipboard-copy.e2e.js +11 -0
- package/pf-clipboard-copy/test/pf-clipboard-copy.e2e.js.map +1 -0
- package/pf-clipboard-copy/test/pf-clipboard-copy.spec.d.ts +1 -0
- package/pf-clipboard-copy/test/pf-clipboard-copy.spec.js +103 -0
- package/pf-clipboard-copy/test/pf-clipboard-copy.spec.js.map +1 -0
- package/pf-code-block/BaseCodeBlock.js +2 -2
- package/pf-code-block/BaseCodeBlock.js.map +1 -1
- package/pf-code-block/pf-code-block.d.ts +1 -1
- package/pf-code-block/test/pf-code-block.e2e.d.ts +1 -0
- package/pf-code-block/test/pf-code-block.e2e.js +11 -0
- package/pf-code-block/test/pf-code-block.e2e.js.map +1 -0
- package/pf-code-block/test/pf-code-block.spec.d.ts +1 -0
- package/pf-code-block/test/pf-code-block.spec.js +89 -0
- package/pf-code-block/test/pf-code-block.spec.js.map +1 -0
- package/pf-dropdown/pf-dropdown-group.d.ts +1 -1
- package/pf-dropdown/pf-dropdown-group.js +4 -1
- package/pf-dropdown/pf-dropdown-group.js.map +1 -1
- package/pf-dropdown/pf-dropdown-item.d.ts +1 -2
- package/pf-dropdown/pf-dropdown-item.js +4 -2
- package/pf-dropdown/pf-dropdown-item.js.map +1 -1
- package/pf-dropdown/pf-dropdown-menu.d.ts +1 -2
- package/pf-dropdown/pf-dropdown-menu.js +8 -6
- package/pf-dropdown/pf-dropdown-menu.js.map +1 -1
- package/pf-dropdown/pf-dropdown.d.ts +8 -6
- package/pf-dropdown/pf-dropdown.js +11 -11
- package/pf-dropdown/pf-dropdown.js.map +1 -1
- package/pf-dropdown/test/pf-dropdown.e2e.d.ts +1 -0
- package/pf-dropdown/test/pf-dropdown.e2e.js +11 -0
- package/pf-dropdown/test/pf-dropdown.e2e.js.map +1 -0
- package/pf-dropdown/test/pf-dropdown.spec.d.ts +1 -0
- package/pf-dropdown/test/pf-dropdown.spec.js +129 -0
- package/pf-dropdown/test/pf-dropdown.spec.js.map +1 -0
- package/pf-icon/BaseIcon.d.ts +1 -2
- package/pf-icon/BaseIcon.js +3 -4
- package/pf-icon/BaseIcon.js.map +1 -1
- package/pf-icon/demo/icons/rh/boba-tea.js +5 -0
- package/pf-icon/demo/icons/rh/lifecycle.js +3 -0
- package/pf-icon/test/pf-icon.e2e.d.ts +1 -0
- package/pf-icon/test/pf-icon.e2e.js +11 -0
- package/pf-icon/test/pf-icon.e2e.js.map +1 -0
- package/pf-icon/test/pf-icon.spec.d.ts +1 -0
- package/pf-icon/test/pf-icon.spec.js +130 -0
- package/pf-icon/test/pf-icon.spec.js.map +1 -0
- package/pf-icon/test/rh-icon-aed.js +2 -0
- package/pf-icon/test/rh-icon-api.js +2 -0
- package/pf-icon/test/rh-icon-atom.js +2 -0
- package/pf-icon/test/rh-icon-bike.js +2 -0
- package/pf-jump-links/pf-jump-links-item.d.ts +8 -2
- package/pf-jump-links/pf-jump-links-item.js +4 -1
- package/pf-jump-links/pf-jump-links-item.js.map +1 -1
- package/pf-jump-links/pf-jump-links-list.d.ts +1 -1
- package/pf-jump-links/pf-jump-links.d.ts +1 -7
- package/pf-jump-links/pf-jump-links.js +1 -7
- package/pf-jump-links/pf-jump-links.js.map +1 -1
- package/pf-jump-links/test/pf-jump-links.e2e.d.ts +1 -0
- package/pf-jump-links/test/pf-jump-links.e2e.js +11 -0
- package/pf-jump-links/test/pf-jump-links.e2e.js.map +1 -0
- package/pf-jump-links/test/pf-jump-links.spec.d.ts +1 -0
- package/pf-jump-links/test/pf-jump-links.spec.js +85 -0
- package/pf-jump-links/test/pf-jump-links.spec.js.map +1 -0
- package/pf-label/BaseLabel.d.ts +1 -1
- package/pf-label/pf-label.d.ts +10 -24
- package/pf-label/pf-label.js +4 -21
- package/pf-label/pf-label.js.map +1 -1
- package/pf-label/test/pf-label.e2e.d.ts +1 -0
- package/pf-label/test/pf-label.e2e.js +11 -0
- package/pf-label/test/pf-label.e2e.js.map +1 -0
- package/pf-label/test/pf-label.spec.d.ts +1 -0
- package/pf-label/test/pf-label.spec.js +111 -0
- package/pf-label/test/pf-label.spec.js.map +1 -0
- package/pf-modal/pf-modal.d.ts +1 -6
- package/pf-modal/pf-modal.js +6 -8
- package/pf-modal/pf-modal.js.map +1 -1
- package/pf-modal/test/pf-modal.e2e.d.ts +1 -0
- package/pf-modal/test/pf-modal.e2e.js +13 -0
- package/pf-modal/test/pf-modal.e2e.js.map +1 -0
- package/pf-modal/test/pf-modal.spec.d.ts +1 -0
- package/pf-modal/test/pf-modal.spec.js +197 -0
- package/pf-modal/test/pf-modal.spec.js.map +1 -0
- package/pf-panel/pf-panel.d.ts +1 -1
- package/pf-panel/test/pf-panel.e2e.d.ts +1 -0
- package/pf-panel/test/pf-panel.e2e.js +11 -0
- package/pf-panel/test/pf-panel.e2e.js.map +1 -0
- package/pf-panel/test/pf-panel.spec.d.ts +1 -0
- package/pf-panel/test/pf-panel.spec.js +22 -0
- package/pf-panel/test/pf-panel.spec.js.map +1 -0
- package/pf-popover/pf-popover.d.ts +1 -5
- package/pf-popover/pf-popover.js +12 -7
- package/pf-popover/pf-popover.js.map +1 -1
- package/pf-popover/test/pf-popover.e2e.d.ts +1 -0
- package/pf-popover/test/pf-popover.e2e.js +11 -0
- package/pf-popover/test/pf-popover.e2e.js.map +1 -0
- package/pf-popover/test/pf-popover.spec.d.ts +1 -0
- package/pf-popover/test/pf-popover.spec.js +233 -0
- package/pf-popover/test/pf-popover.spec.js.map +1 -0
- package/pf-progress/demo/kitchen-sink.css +4 -0
- package/pf-progress/pf-progress.d.ts +1 -22
- package/pf-progress/pf-progress.js +1 -22
- package/pf-progress/pf-progress.js.map +1 -1
- package/pf-progress/test/pf-progress.e2e.d.ts +1 -0
- package/pf-progress/test/pf-progress.e2e.js +11 -0
- package/pf-progress/test/pf-progress.e2e.js.map +1 -0
- package/pf-progress/test/pf-progress.spec.d.ts +1 -0
- package/pf-progress/test/pf-progress.spec.js +45 -0
- package/pf-progress/test/pf-progress.spec.js.map +1 -0
- package/pf-progress-stepper/pf-progress-step.d.ts +1 -1
- package/pf-progress-stepper/pf-progress-stepper.d.ts +1 -1
- package/pf-progress-stepper/test/pf-progress-stepper.e2e.d.ts +1 -0
- package/pf-progress-stepper/test/pf-progress-stepper.e2e.js +11 -0
- package/pf-progress-stepper/test/pf-progress-stepper.e2e.js.map +1 -0
- package/pf-progress-stepper/test/pf-progress-stepper.spec.d.ts +1 -0
- package/pf-progress-stepper/test/pf-progress-stepper.spec.js +18 -0
- package/pf-progress-stepper/test/pf-progress-stepper.spec.js.map +1 -0
- package/pf-select/pf-option-group.d.ts +1 -1
- package/pf-select/pf-option-group.js +2 -0
- package/pf-select/pf-option-group.js.map +1 -1
- package/pf-select/pf-option.d.ts +1 -2
- package/pf-select/pf-option.js +3 -4
- package/pf-select/pf-option.js.map +1 -1
- package/pf-select/pf-select.d.ts +8 -3
- package/pf-select/pf-select.js +51 -21
- package/pf-select/pf-select.js.map +1 -1
- package/pf-select/test/pf-select.e2e.d.ts +1 -0
- package/pf-select/test/pf-select.e2e.js +11 -0
- package/pf-select/test/pf-select.e2e.js.map +1 -0
- package/pf-select/test/pf-select.spec.d.ts +1 -0
- package/pf-select/test/pf-select.spec.js +866 -0
- package/pf-select/test/pf-select.spec.js.map +1 -0
- package/pf-spinner/BaseSpinner.d.ts +1 -2
- package/pf-spinner/BaseSpinner.js +2 -4
- package/pf-spinner/BaseSpinner.js.map +1 -1
- package/pf-spinner/pf-spinner.d.ts +2 -2
- package/pf-spinner/pf-spinner.js +8 -1
- package/pf-spinner/pf-spinner.js.map +1 -1
- package/pf-spinner/test/pf-spinner.e2e.d.ts +1 -0
- package/pf-spinner/test/pf-spinner.e2e.js +11 -0
- package/pf-spinner/test/pf-spinner.e2e.js.map +1 -0
- package/pf-spinner/test/pf-spinner.spec.d.ts +1 -0
- package/pf-spinner/test/pf-spinner.spec.js +64 -0
- package/pf-spinner/test/pf-spinner.spec.js.map +1 -0
- package/pf-switch/BaseSwitch.d.ts +1 -1
- package/pf-switch/BaseSwitch.js +3 -3
- package/pf-switch/BaseSwitch.js.map +1 -1
- package/pf-switch/test/pf-switch.e2e.d.ts +1 -0
- package/pf-switch/test/pf-switch.e2e.js +11 -0
- package/pf-switch/test/pf-switch.e2e.js.map +1 -0
- package/pf-switch/test/pf-switch.spec.d.ts +1 -0
- package/pf-switch/test/pf-switch.spec.js +191 -0
- package/pf-switch/test/pf-switch.spec.js.map +1 -0
- package/pf-table/pf-caption.d.ts +1 -1
- package/pf-table/pf-table.d.ts +1 -3
- package/pf-table/pf-table.js +2 -4
- package/pf-table/pf-table.js.map +1 -1
- package/pf-table/pf-tbody.d.ts +1 -1
- package/pf-table/pf-td.d.ts +1 -1
- package/pf-table/pf-th.d.ts +1 -1
- package/pf-table/pf-th.js +3 -3
- package/pf-table/pf-th.js.map +1 -1
- package/pf-table/pf-thead.d.ts +1 -1
- package/pf-table/pf-tr.d.ts +1 -1
- package/pf-table/pf-tr.js +4 -4
- package/pf-table/pf-tr.js.map +1 -1
- package/pf-table/test/pf-table.e2e.d.ts +1 -0
- package/pf-table/test/pf-table.e2e.js +11 -0
- package/pf-table/test/pf-table.e2e.js.map +1 -0
- package/pf-table/test/pf-table.spec.d.ts +1 -0
- package/pf-table/test/pf-table.spec.js +17 -0
- package/pf-table/test/pf-table.spec.js.map +1 -0
- package/pf-tabs/BaseTab.d.ts +2 -2
- package/pf-tabs/BaseTab.js +4 -1
- package/pf-tabs/BaseTab.js.map +1 -1
- package/pf-tabs/BaseTabPanel.d.ts +1 -1
- package/pf-tabs/BaseTabs.d.ts +1 -3
- package/pf-tabs/BaseTabs.js +11 -12
- package/pf-tabs/BaseTabs.js.map +1 -1
- package/pf-tabs/pf-tab-panel.d.ts +1 -1
- package/pf-tabs/pf-tab.d.ts +1 -17
- package/pf-tabs/pf-tab.js +0 -16
- package/pf-tabs/pf-tab.js.map +1 -1
- package/pf-tabs/pf-tabs.d.ts +1 -12
- package/pf-tabs/pf-tabs.js +2 -13
- package/pf-tabs/pf-tabs.js.map +1 -1
- package/pf-tabs/test/pf-tabs.e2e.d.ts +1 -0
- package/pf-tabs/test/pf-tabs.e2e.js +13 -0
- package/pf-tabs/test/pf-tabs.e2e.js.map +1 -0
- package/pf-tabs/test/pf-tabs.spec.d.ts +1 -0
- package/pf-tabs/test/pf-tabs.spec.js +285 -0
- package/pf-tabs/test/pf-tabs.spec.js.map +1 -0
- package/pf-text-area/pf-text-area.d.ts +1 -2
- package/pf-text-area/pf-text-area.js +5 -5
- package/pf-text-area/pf-text-area.js.map +1 -1
- package/pf-text-area/test/pf-text-area.e2e.d.ts +1 -0
- package/pf-text-area/test/pf-text-area.e2e.js +11 -0
- package/pf-text-area/test/pf-text-area.e2e.js.map +1 -0
- package/pf-text-area/test/pf-text-area.spec.d.ts +1 -0
- package/pf-text-area/test/pf-text-area.spec.js +89 -0
- package/pf-text-area/test/pf-text-area.spec.js.map +1 -0
- package/pf-text-input/demo/demo.css +6 -0
- package/pf-text-input/pf-text-input.d.ts +8 -3
- package/pf-text-input/pf-text-input.js +4 -2
- package/pf-text-input/pf-text-input.js.map +1 -1
- package/pf-text-input/test/pf-text-input.e2e.d.ts +1 -0
- package/pf-text-input/test/pf-text-input.e2e.js +11 -0
- package/pf-text-input/test/pf-text-input.e2e.js.map +1 -0
- package/pf-text-input/test/pf-text-input.spec.d.ts +1 -0
- package/pf-text-input/test/pf-text-input.spec.js +20 -0
- package/pf-text-input/test/pf-text-input.spec.js.map +1 -0
- package/pf-tile/BaseTile.d.ts +1 -1
- package/pf-tile/pf-tile.d.ts +0 -12
- package/pf-tile/pf-tile.js +0 -12
- package/pf-tile/pf-tile.js.map +1 -1
- package/pf-tile/test/pf-tile.e2e.d.ts +1 -0
- package/pf-tile/test/pf-tile.e2e.js +11 -0
- package/pf-tile/test/pf-tile.e2e.js.map +1 -0
- package/pf-tile/test/pf-tile.spec.d.ts +1 -0
- package/pf-tile/test/pf-tile.spec.js +54 -0
- package/pf-tile/test/pf-tile.spec.js.map +1 -0
- package/pf-timestamp/pf-timestamp.d.ts +1 -1
- package/pf-timestamp/pf-timestamp.js +5 -1
- package/pf-timestamp/pf-timestamp.js.map +1 -1
- package/pf-timestamp/test/pf-timestamp.e2e.d.ts +1 -0
- package/pf-timestamp/test/pf-timestamp.e2e.js +12 -0
- package/pf-timestamp/test/pf-timestamp.e2e.js.map +1 -0
- package/pf-timestamp/test/pf-timestamp.spec.d.ts +1 -0
- package/pf-timestamp/test/pf-timestamp.spec.js +156 -0
- package/pf-timestamp/test/pf-timestamp.spec.js.map +1 -0
- package/pf-tooltip/BaseTooltip.d.ts +1 -1
- package/pf-tooltip/pf-tooltip.d.ts +1 -4
- package/pf-tooltip/pf-tooltip.js +6 -7
- package/pf-tooltip/pf-tooltip.js.map +1 -1
- package/pf-tooltip/test/pf-tooltip.e2e.d.ts +1 -0
- package/pf-tooltip/test/pf-tooltip.e2e.js +11 -0
- package/pf-tooltip/test/pf-tooltip.e2e.js.map +1 -0
- package/pf-tooltip/test/pf-tooltip.spec.d.ts +1 -0
- package/pf-tooltip/test/pf-tooltip.spec.js +53 -0
- package/pf-tooltip/test/pf-tooltip.spec.js.map +1 -0
- package/pfe.min.js +273 -266
- package/pfe.min.js.map +3 -3
- package/pf-accordion/README.md +0 -44
- package/pf-avatar/README.md +0 -31
- package/pf-back-to-top/README.md +0 -32
- package/pf-background-image/README.md +0 -37
- package/pf-badge/README.md +0 -57
- package/pf-banner/README.md +0 -60
- package/pf-button/README.md +0 -61
- package/pf-card/README.md +0 -34
- package/pf-chip/README.md +0 -20
- package/pf-clipboard-copy/README.md +0 -8
- package/pf-code-block/README.md +0 -77
- package/pf-dropdown/README.md +0 -46
- package/pf-icon/README.md +0 -86
- package/pf-icon/icons/fab/readme.svg +0 -1
- package/pf-jump-links/README.md +0 -27
- package/pf-label/README.md +0 -61
- package/pf-modal/README.md +0 -63
- package/pf-panel/README.md +0 -10
- package/pf-popover/README.md +0 -48
- package/pf-progress/README.md +0 -33
- package/pf-progress-stepper/README.md +0 -41
- package/pf-select/README.md +0 -21
- package/pf-spinner/README.md +0 -46
- package/pf-switch/README.md +0 -91
- package/pf-table/README.md +0 -43
- package/pf-tabs/README.md +0 -40
- package/pf-text-area/README.md +0 -11
- package/pf-text-input/README.md +0 -9
- package/pf-tile/README.md +0 -12
- package/pf-timestamp/README.md +0 -64
- package/pf-tooltip/README.md +0 -64
package/pf-label/README.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Label
|
|
2
|
-
An inline-block element component that provides a distinct visual style for
|
|
3
|
-
metadata in a UI. Commonly used as visual representations for tags, labels can
|
|
4
|
-
include an optional pf-icon and are available in a solid and outline style
|
|
5
|
-
variant.
|
|
6
|
-
|
|
7
|
-
Read more about Label in the [PatternFly Elements Label documentation](https://patternflyelements.org/components/label)
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
Load `<pf-label>` via CDN:
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-label/pf-label.js"></script>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install @patternfly/elements
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then once installed, import it to your application:
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
import '@patternfly/elements/pf-label/pf-label.js';
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
Default
|
|
32
|
-
```html
|
|
33
|
-
<p>Some Text <pf-label>Your label text here</pf-label></p>
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Color Options: `grey (default), blue ,green, orange, red, purple, cyan`
|
|
37
|
-
```html
|
|
38
|
-
<p>Some Text <pf-label color="red">Your label text here</pf-label></p>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
With and Icon:
|
|
42
|
-
```html
|
|
43
|
-
<p>Some Text <pf-label icon="web-icon-globe">Your label text here</pf-label></p>
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Outline variant:
|
|
47
|
-
```html
|
|
48
|
-
<p>Some Text <pf-label outline>Your label text here</pf-label></p>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
> ### Conveying meaning to assistive technologies
|
|
52
|
-
> Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that
|
|
53
|
-
> information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text
|
|
54
|
-
> hidden with the a class.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<pf-label color="red">
|
|
59
|
-
Some text <span class="visually-hidden-class">Some additional info</span>
|
|
60
|
-
</pf-label>
|
|
61
|
-
```
|
package/pf-modal/README.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# PatternFly Elements Modal
|
|
2
|
-
|
|
3
|
-
`pf-modal` is a self-contained modal window that is hidden on page load and (when activated) restricts the user from interacting with content in the main window.
|
|
4
|
-
|
|
5
|
-
Read more about Modal in the [PatternFly Elements Modal documentation](https://patternflyelements.org/components/modal)
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Load `<pf-modal>` via CDN:
|
|
10
|
-
|
|
11
|
-
```html
|
|
12
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-modal/pf-modal.js"></script>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install @patternfly/elements
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Then once installed, import it to your application:
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import '@patternfly/elements/pf-modal/pf-modal.js';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
Open a modal dialog with the `showModal()` method, or by setting the `open` boolean attribute.
|
|
30
|
-
|
|
31
|
-
```html
|
|
32
|
-
<pf-modal>
|
|
33
|
-
<h2 slot="header">Modal with a header</h2>
|
|
34
|
-
<p>Lorem ipsum dolor sit amet, <a href="#foo">consectetur adipisicing</a> elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
35
|
-
<a slot="footer" href="#bar">Learn more</a>
|
|
36
|
-
</pf-modal>
|
|
37
|
-
|
|
38
|
-
<script>
|
|
39
|
-
document.querySelector('pf-modal').showModal();
|
|
40
|
-
</script>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### With a trigger
|
|
44
|
-
|
|
45
|
-
You may assign a button-like trigger element to the modal by setting the modal element's `trigger` attribute to the trigger's ID.
|
|
46
|
-
|
|
47
|
-
```html
|
|
48
|
-
<pf-modal trigger="trigger-button">
|
|
49
|
-
<h2 slot="header">Modal with a header</h2>
|
|
50
|
-
<p>Lorem ipsum dolor sit amet, <a href="#foo">consectetur adipisicing</a> elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
51
|
-
<a slot="footer" href="#bar">Learn more</a>
|
|
52
|
-
</pf-modal>
|
|
53
|
-
|
|
54
|
-
<button id="trigger-button">Open modal</button>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
You may also imperatively set the trigger element with the `setTrigger()` method:
|
|
58
|
-
```js
|
|
59
|
-
const modal = document.querySelector('pf-modal');
|
|
60
|
-
const trigger = document.querySelector('button#my-trigger');
|
|
61
|
-
modal.setTrigger(trigger);
|
|
62
|
-
```
|
|
63
|
-
|
package/pf-panel/README.md
DELETED
package/pf-popover/README.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Popover
|
|
2
|
-
|
|
3
|
-
A Popover displays content in a non-modal dialog and adds contextual information or provides resources via text and links.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
Read more about popovers in the [PatternFly Elements Popover documentation](https://patternflyelements.org/components/popover)
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
Load `<pf-popover>` via CDN:
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-popover/pf-popover.js"></script>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install @patternfly/elements
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then once installed, import it to your application:
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
import '@patternfly/elements/pf-popover/pf-popover.js';
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
### Basic Popover
|
|
32
|
-
|
|
33
|
-
```html
|
|
34
|
-
<pf-popover heading="Popover heading"
|
|
35
|
-
body="Popovers are triggered by click rather than hover."
|
|
36
|
-
footer="Popover footer">
|
|
37
|
-
<pf-button>Toggle popover</pf-button>
|
|
38
|
-
</pf-popover>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
```html
|
|
42
|
-
<pf-popover>
|
|
43
|
-
<h3 slot="heading">Popover heading</h3>
|
|
44
|
-
<div slot="body">Popovers are triggered by click rather than hover.</div>
|
|
45
|
-
<span slot="footer">Popover footer</span>
|
|
46
|
-
<pf-button>Toggle popover</pf-button>
|
|
47
|
-
</pf-popover>
|
|
48
|
-
```
|
package/pf-progress/README.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Progress
|
|
2
|
-
|
|
3
|
-
A progress bar gives the user a visual representation of their completion status of an ongoing process or task.
|
|
4
|
-
|
|
5
|
-
Read more about Progress in the [PatternFly Elements Progress documentation][docs].
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Load `<pf-progress>` via CDN:
|
|
10
|
-
|
|
11
|
-
```html
|
|
12
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-progress/pf-progress.js"></script>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install @patternfly/elements
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Then once installed, import it to your application:
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import '@patternfly/elements/pf-progress/pf-progress.js';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<pf-progress title="Default" value="33"></pf-progress>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
[docs]: https://patternflyelements.org/components/progress
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# PatternFly Elements Progress Stepper
|
|
2
|
-
|
|
3
|
-
A component that gives the user a visual representation of the current state of
|
|
4
|
-
their progress through an application (typically a multistep form).
|
|
5
|
-
|
|
6
|
-
Read more about Progress Stepper in the [PatternFly Elements Progress Steps
|
|
7
|
-
documentation][docs].
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
Load `<pf-progress-stepper>` via CDN:
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-progress-stepper/pf-progress-stepper.js"></script>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install @patternfly/elements
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then once installed, import it to your application:
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
import '@patternfly/elements/pf-progress-stepper/pf-progress-stepper.js';
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
```html
|
|
32
|
-
<pf-progress-stepper>
|
|
33
|
-
<pf-progress-step variant="success">Completed</pf-progress-step>
|
|
34
|
-
<pf-progress-step variant="warning">Issue</pf-progress-step>
|
|
35
|
-
<pf-progress-step variant="danger">Failure</pf-progress-step>
|
|
36
|
-
<pf-progress-step current variant="info">Running</pf-progress-step>
|
|
37
|
-
<pf-progress-step>Last</pf-progress-step>
|
|
38
|
-
</pf-progress-stepper>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
[docs]: https://patternflyelements.org/components/progress-stepper
|
package/pf-select/README.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Select
|
|
2
|
-
|
|
3
|
-
A select list enables users to select one or more items from a list.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
A select component consists of a toggle control to open and close a menu of actions or links.
|
|
8
|
-
Selects differ from dropdowns in that they persist selection, whereas dropdowns are typically used to present a list of actions or links.
|
|
9
|
-
|
|
10
|
-
```html
|
|
11
|
-
<pf-select>
|
|
12
|
-
<pf-option>Blue</pf-option>
|
|
13
|
-
<pf-option>Green</pf-option>
|
|
14
|
-
<pf-option>Magenta</pf-option>
|
|
15
|
-
<pf-option>Orange</pf-option>
|
|
16
|
-
<pf-option>Purple</pf-option>
|
|
17
|
-
<pf-option>Pink</pf-option>
|
|
18
|
-
<pf-option>Red</pf-option>
|
|
19
|
-
<pf-option>Yellow</pf-option>
|
|
20
|
-
</pf-select>
|
|
21
|
-
```
|
package/pf-spinner/README.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# PatternFly Elements Spinner
|
|
2
|
-
|
|
3
|
-
`<pf-spinner>` is used to indicate to users that an action is in progress.
|
|
4
|
-
|
|
5
|
-
Read more about Spinner in the [PatternFly Elements Spinner documentation](https://patternflyelements.org/components/spinner)
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Load `<pf-spinner>` via CDN:
|
|
10
|
-
|
|
11
|
-
```html
|
|
12
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-spinner/pf-spinner.js"></script>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install @patternfly/elements
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Then once installed, import it to your application:
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import '@patternfly/elements/pf-spinner/pf-spinner.js';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
```html
|
|
29
|
-
<pf-spinner>Loading...</pf-spinner>
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Size variations
|
|
33
|
-
|
|
34
|
-
```html
|
|
35
|
-
<pf-spinner size="sm">Loading...</pf-spinner>
|
|
36
|
-
<pf-spinner size="md">Loading...</pf-spinner>
|
|
37
|
-
<pf-spinner size="lg">Loading...</pf-spinner>
|
|
38
|
-
<pf-spinner size="xl">Loading...</pf-spinner>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Custom size
|
|
42
|
-
|
|
43
|
-
```html
|
|
44
|
-
<pf-spinner diameter="80px">Loading...</pf-spinner>
|
|
45
|
-
```
|
|
46
|
-
|
package/pf-switch/README.md
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# PatternFly Elements Switch
|
|
2
|
-
|
|
3
|
-
`<pf-switch>` is a switch that toggles the state of a setting (between on and
|
|
4
|
-
off). Switches provide a more explicit, visible representation on a setting.
|
|
5
|
-
|
|
6
|
-
Read more about Switch in the [PatternFly Elements Switch documentation](https://patternflyelements.org/components/switch)
|
|
7
|
-
|
|
8
|
-
## Installation
|
|
9
|
-
|
|
10
|
-
Load `<pf-switch>` via CDN:
|
|
11
|
-
|
|
12
|
-
```html
|
|
13
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-switch/pf-switch.js"></script>
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npm install @patternfly/elements
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Then once installed, import it to your application:
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
import '@patternfly/elements/pf-switch/pf-switch.js';
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Note
|
|
29
|
-
For `<pf-switch>` to work in Safari, you'll need to load the [element-internals-polyfill](https://www.npmjs.com/package/element-internals-polyfill). Safari is in the process of [adding element internals to WebKit](https://bugs.webkit.org/show_bug.cgi?id=197960) so this polyfill should be temporary.
|
|
30
|
-
|
|
31
|
-
## Usage
|
|
32
|
-
```html
|
|
33
|
-
<pf-switch id="switch"></pf-switch>
|
|
34
|
-
<label for="switch" data-state="on">Message when on</label>
|
|
35
|
-
<label for="switch" data-state="off" hidden>Message when off</label>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Form Associated
|
|
39
|
-
|
|
40
|
-
`<pf-switch>` is a form-associated custom element. That means that it can
|
|
41
|
-
participate in HTML forms just like a native `<input>`. For example, if you add
|
|
42
|
-
the `name` attribute, or the `id` attribute, the element will appear in the
|
|
43
|
-
FormData object. For example, if you add the `name` attribute, or the `id`
|
|
44
|
-
attribute, the element will appear in the `FormData` object.
|
|
45
|
-
|
|
46
|
-
```html
|
|
47
|
-
<form>
|
|
48
|
-
<label> Dark Mode
|
|
49
|
-
<pf-switch name="dark"></pf-switch>
|
|
50
|
-
</label>
|
|
51
|
-
<script>
|
|
52
|
-
document.currentScript.closest('form').addEventListener('submit', function() {
|
|
53
|
-
console.log(this.elements.dark) // <pf-switch>
|
|
54
|
-
})
|
|
55
|
-
</script>
|
|
56
|
-
</form>
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Without label
|
|
61
|
-
|
|
62
|
-
```html
|
|
63
|
-
<pf-switch></pf-switch>
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Checked with label
|
|
67
|
-
|
|
68
|
-
```html
|
|
69
|
-
<pf-switch show-check-icon></pf-switch>
|
|
70
|
-
<label for="switch" data-state="on">Message when on</label>
|
|
71
|
-
<label for="switch" data-state="off" hidden>Message when off</label>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Disabled Switches
|
|
75
|
-
|
|
76
|
-
```html
|
|
77
|
-
<form>
|
|
78
|
-
<fieldset>
|
|
79
|
-
<legend>Checked and Disabled</legend>
|
|
80
|
-
<pf-switch id="checked-disabled" checked disabled></pf-switch>
|
|
81
|
-
<label for="checked-disabled" data-state="on">Message when on</label>
|
|
82
|
-
<label for="checked-disabled" data-state="off">Message when off</label>
|
|
83
|
-
</fieldset>
|
|
84
|
-
|
|
85
|
-
<fieldset>
|
|
86
|
-
<pf-switch id="disabled" disabled></pf-switch>
|
|
87
|
-
<label for="disabled" data-state="on">Message when on</label>
|
|
88
|
-
<label for="disabled" data-state="off">Message when off</label>
|
|
89
|
-
</fieldset>
|
|
90
|
-
</form>
|
|
91
|
-
```
|
package/pf-table/README.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Table
|
|
2
|
-
A **table** is used to display large data sets that can be easily laid out in a simple grid with column headers.
|
|
3
|
-
|
|
4
|
-
## Usage
|
|
5
|
-
Use the `<pf-table>` elements the way you would native HTML table elements.
|
|
6
|
-
See the [docs][docs] for more info.
|
|
7
|
-
|
|
8
|
-
```html
|
|
9
|
-
<pf-table>
|
|
10
|
-
<pf-thead>
|
|
11
|
-
<pf-tr>
|
|
12
|
-
<pf-th>Repositories</pf-th>
|
|
13
|
-
<pf-th>Branches</pf-th>
|
|
14
|
-
<pf-th>Pull requests</pf-th>
|
|
15
|
-
<pf-th>Workspaces</pf-th>
|
|
16
|
-
<pf-th>Last commit</pf-th>
|
|
17
|
-
</pf-tr>
|
|
18
|
-
</pf-thead>
|
|
19
|
-
<pf-tr>
|
|
20
|
-
<pf-th>one</pf-th>
|
|
21
|
-
<pf-td>two</pf-td>
|
|
22
|
-
<pf-td>three</pf-td>
|
|
23
|
-
<pf-td>four</pf-td>
|
|
24
|
-
<pf-td>five</pf-td>
|
|
25
|
-
</pf-tr>
|
|
26
|
-
<pf-tr>
|
|
27
|
-
<pf-th>one - 2</pf-th>
|
|
28
|
-
<pf-td></pf-td>
|
|
29
|
-
<pf-td></pf-td>
|
|
30
|
-
<pf-td>four - 2</pf-td>
|
|
31
|
-
<pf-td>five - 2</pf-td>
|
|
32
|
-
</pf-tr>
|
|
33
|
-
<pf-tr>
|
|
34
|
-
<pf-th>one - 3</pf-th>
|
|
35
|
-
<pf-td>two - 3</pf-td>
|
|
36
|
-
<pf-td>three - 3</pf-td>
|
|
37
|
-
<pf-td>four - 3</pf-td>
|
|
38
|
-
<pf-td>five - 3</pf-td>
|
|
39
|
-
</pf-tr>
|
|
40
|
-
</pf-table>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
[docs]: https://patternflyelements.org/components/table/
|
package/pf-tabs/README.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# PatternFly Elements Tabs
|
|
2
|
-
|
|
3
|
-
Read more about Tabs in the [PatternFly Elements Tabs documentation](https://patternflyelements.org/components/tabs)
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
Load `<pf-tabs>` via CDN:
|
|
8
|
-
|
|
9
|
-
```html
|
|
10
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-tabs/pf-tabs.js"></script>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install @patternfly/elements
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Then once installed, import it to your application:
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
import '@patternfly/elements/pf-tabs/pf-tabs.js';
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Note
|
|
26
|
-
For `<pf-tabs>` to work in Safari, you'll need to load the [element-internals-polyfill](https://www.npmjs.com/package/element-internals-polyfill). Safari is in the process of [adding element internals to WebKit](https://bugs.webkit.org/show_bug.cgi?id=197960) so this polyfill should be temporary.
|
|
27
|
-
|
|
28
|
-
## Usage
|
|
29
|
-
|
|
30
|
-
```html
|
|
31
|
-
<pf-tabs>
|
|
32
|
-
<pf-tab id="users" slot="tab">Users</pf-tab>
|
|
33
|
-
<pf-tab-panel>Users</pf-tab-panel>
|
|
34
|
-
<pf-tab slot="tab">Containers</pf-tab>
|
|
35
|
-
<pf-tab-panel>Containers <a href="#">Focusable element</a></pf-tab-panel>
|
|
36
|
-
<pf-tab slot="tab">Database</pf-tab>
|
|
37
|
-
<pf-tab-panel>Database</pf-tab-panel>
|
|
38
|
-
</pf-tabs>
|
|
39
|
-
```
|
|
40
|
-
|
package/pf-text-area/README.md
DELETED
package/pf-text-input/README.md
DELETED
package/pf-tile/README.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Tile
|
|
2
|
-
A **tile** component is a form of selection that can be used in place of a radio
|
|
3
|
-
button and is commonly used in forms. A tile appears visually similar to a
|
|
4
|
-
selectable card. However, tiles are used specifically when the user is selecting
|
|
5
|
-
a static option, whereas a selectable card triggers an action or opens a
|
|
6
|
-
quickstart or sidebar to provide additional information.
|
|
7
|
-
|
|
8
|
-
```html
|
|
9
|
-
<pf-tile>
|
|
10
|
-
<h3 slot="title">Default</h3>
|
|
11
|
-
</pf-tile>
|
|
12
|
-
```
|
package/pf-timestamp/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# PatternFly Elements Timestamp
|
|
2
|
-
|
|
3
|
-
A timestamp provides consistent formats for displaying date and time values.
|
|
4
|
-
|
|
5
|
-
Read more about Datetime in the [PatternFly Elements Timestamp documentation](https://patternflyelements.org/components/timestamp)
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Load `<pf-timestamp>` via CDN:
|
|
10
|
-
|
|
11
|
-
```html
|
|
12
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-timestamp/pf-timestamp.js"></script>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install @patternfly/elements
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Then once installed, import it to your application:
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import '@patternfly/elements/pf-timestamp/pf-timestamp.js';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
### Just the date: January 2, 2006
|
|
30
|
-
```html
|
|
31
|
-
<pf-timestamp
|
|
32
|
-
date="Mon Jan 2 15:04:05 EST 2006"
|
|
33
|
-
date-format="long">
|
|
34
|
-
</pf-timestamp>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### With time: Monday, January 2, 2006 at 3:04:05 PM EST
|
|
38
|
-
```html
|
|
39
|
-
<pf-timestamp
|
|
40
|
-
date="Mon Jan 2 15:04:05 EST 2006"
|
|
41
|
-
date-format="full"
|
|
42
|
-
time-format="long">
|
|
43
|
-
</pf-timestamp>
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### With an en-GB locale: Monday, 2 January 2006 at 15:04:05 GMT-5
|
|
47
|
-
You can use any locale here.
|
|
48
|
-
```html
|
|
49
|
-
<pf-timestamp
|
|
50
|
-
date="Mon Jan 2 15:04:05 EST 2006"
|
|
51
|
-
date-format="full"
|
|
52
|
-
time-format="long"
|
|
53
|
-
locale="en-GB">
|
|
54
|
-
</pf-timestamp>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Relative time: 17 years ago
|
|
58
|
-
```html
|
|
59
|
-
<pf-timestamp
|
|
60
|
-
date="Mon Jan 2 15:04:05 EST 2006"
|
|
61
|
-
relative>
|
|
62
|
-
</pf-timestamp>
|
|
63
|
-
```
|
|
64
|
-
|
package/pf-tooltip/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# Tooltip
|
|
2
|
-
A tooltip is a floating text area triggered by a user that provides helpful or contextual information.
|
|
3
|
-
|
|
4
|
-
## Usage
|
|
5
|
-
A tooltip is used by wrapping an html element in the pf-tooltip element along with contextual information to be displayed alongside of the element.
|
|
6
|
-
|
|
7
|
-
Read more about tooltips in the [PatternFly Elements Tooltip documentation](https://patternflyelements.org/components/tooltip)
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
Load `<pf-tooltip>` via CDN:
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<script src="https://jspm.dev/@patternfly/elements/pf-tooltip/pf-tooltip.js"></script>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Or, if you are using [NPM](https://npm.im), install it
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install @patternfly/elements
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then once installed, import it to your application:
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
import '@patternfly/elements/pf-tooltip/pf-tooltip.js';
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Basic Tooltip
|
|
33
|
-
```html
|
|
34
|
-
<pf-tooltip> This is An Element
|
|
35
|
-
<div slot="content">
|
|
36
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
37
|
-
incididunt ut labore et dolore magna aliqua. Mi eget mauris pharetra et
|
|
38
|
-
ultrices.
|
|
39
|
-
</div>
|
|
40
|
-
</pf-tooltip>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Tooltip With Left Positioning (also available: top, right, bottom)
|
|
44
|
-
```html
|
|
45
|
-
<pf-tooltip position="left"> This is An Element
|
|
46
|
-
<div slot="content">
|
|
47
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
48
|
-
incididunt ut labore et dolore magna aliqua. Mi eget mauris pharetra et
|
|
49
|
-
ultrices.
|
|
50
|
-
</div>
|
|
51
|
-
</pf-tooltip>
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Tooltip With Left Positioning And Offset
|
|
55
|
-
```html
|
|
56
|
-
<pf-tooltip position="left" offset="10, 10">
|
|
57
|
-
<div>
|
|
58
|
-
This is An Element
|
|
59
|
-
</div>
|
|
60
|
-
<div slot="content">
|
|
61
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mi eget mauris pharetra et ultrices.
|
|
62
|
-
</div>
|
|
63
|
-
</pf-tooltip>
|
|
64
|
-
```
|