@patternfly/elements 4.2.0 → 4.3.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.
Files changed (88) hide show
  1. package/custom-elements.json +2556 -1279
  2. package/package.json +13 -7
  3. package/pf-accordion/pf-accordion-header.js +1 -1
  4. package/pf-accordion/pf-accordion-panel.js +1 -1
  5. package/pf-accordion/pf-accordion.js +1 -1
  6. package/pf-alert/pf-alert.css +193 -0
  7. package/pf-alert/pf-alert.d.ts +95 -0
  8. package/pf-alert/pf-alert.js +406 -0
  9. package/pf-alert/pf-alert.js.map +1 -0
  10. package/pf-alert/test/pf-alert.e2e.d.ts +1 -0
  11. package/pf-alert/test/pf-alert.e2e.js +45 -0
  12. package/pf-alert/test/pf-alert.e2e.js.map +1 -0
  13. package/pf-alert/test/pf-alert.spec.d.ts +1 -0
  14. package/pf-alert/test/pf-alert.spec.js +42 -0
  15. package/pf-alert/test/pf-alert.spec.js.map +1 -0
  16. package/pf-avatar/pf-avatar.js +1 -1
  17. package/pf-back-to-top/pf-back-to-top.js +1 -1
  18. package/pf-back-to-top/test/pf-back-to-top.spec.js +3 -2
  19. package/pf-back-to-top/test/pf-back-to-top.spec.js.map +1 -1
  20. package/pf-background-image/pf-background-image.js +1 -1
  21. package/pf-badge/pf-badge.js +1 -1
  22. package/pf-banner/pf-banner.js +1 -1
  23. package/pf-button/pf-button.js +1 -1
  24. package/pf-card/pf-card.js +1 -1
  25. package/pf-chip/pf-chip-group.js +1 -1
  26. package/pf-chip/pf-chip.js +1 -1
  27. package/pf-clipboard-copy/pf-clipboard-copy.js +1 -1
  28. package/pf-code-block/pf-code-block.js +1 -1
  29. package/pf-dropdown/pf-dropdown-group.js +1 -1
  30. package/pf-dropdown/pf-dropdown-item.js +1 -1
  31. package/pf-dropdown/pf-dropdown-menu.js +1 -1
  32. package/pf-dropdown/pf-dropdown.css +8 -1
  33. package/pf-dropdown/pf-dropdown.js +9 -2
  34. package/pf-dropdown/pf-dropdown.js.map +1 -1
  35. package/pf-helper-text/pf-helper-text.css +35 -0
  36. package/pf-helper-text/pf-helper-text.d.ts +41 -0
  37. package/pf-helper-text/pf-helper-text.js +107 -0
  38. package/pf-helper-text/pf-helper-text.js.map +1 -0
  39. package/pf-helper-text/test/pf-helper-text.e2e.d.ts +1 -0
  40. package/pf-helper-text/test/pf-helper-text.e2e.js +23 -0
  41. package/pf-helper-text/test/pf-helper-text.e2e.js.map +1 -0
  42. package/pf-helper-text/test/pf-helper-text.spec.d.ts +1 -0
  43. package/pf-helper-text/test/pf-helper-text.spec.js +57 -0
  44. package/pf-helper-text/test/pf-helper-text.spec.js.map +1 -0
  45. package/pf-hint/pf-hint.css +120 -0
  46. package/pf-hint/pf-hint.d.ts +19 -0
  47. package/pf-hint/pf-hint.js +180 -0
  48. package/pf-hint/pf-hint.js.map +1 -0
  49. package/pf-hint/test/pf-hint.e2e.d.ts +1 -0
  50. package/pf-hint/test/pf-hint.e2e.js +23 -0
  51. package/pf-hint/test/pf-hint.e2e.js.map +1 -0
  52. package/pf-hint/test/pf-hint.spec.d.ts +1 -0
  53. package/pf-hint/test/pf-hint.spec.js +87 -0
  54. package/pf-hint/test/pf-hint.spec.js.map +1 -0
  55. package/pf-icon/pf-icon.js +1 -1
  56. package/pf-jump-links/pf-jump-links-item.js +1 -1
  57. package/pf-jump-links/pf-jump-links-list.js +1 -1
  58. package/pf-jump-links/pf-jump-links.js +1 -1
  59. package/pf-label/pf-label.js +1 -1
  60. package/pf-modal/pf-modal.d.ts +1 -1
  61. package/pf-modal/pf-modal.js +1 -1
  62. package/pf-modal/pf-modal.js.map +1 -1
  63. package/pf-panel/pf-panel.js +1 -1
  64. package/pf-popover/pf-popover.js +1 -1
  65. package/pf-progress/pf-progress.js +1 -1
  66. package/pf-progress-stepper/pf-progress-step.js +1 -1
  67. package/pf-progress-stepper/pf-progress-stepper.js +1 -1
  68. package/pf-search-input/pf-search-input.js +1 -1
  69. package/pf-select/pf-option-group.js +1 -1
  70. package/pf-select/pf-option.js +1 -1
  71. package/pf-select/pf-select.js +1 -1
  72. package/pf-spinner/pf-spinner.js +1 -1
  73. package/pf-switch/pf-switch.js +1 -1
  74. package/pf-table/pf-caption.js +1 -1
  75. package/pf-table/pf-table.js +1 -1
  76. package/pf-table/pf-tbody.js +1 -1
  77. package/pf-table/pf-td.js +1 -1
  78. package/pf-table/pf-th.js +1 -1
  79. package/pf-table/pf-thead.js +1 -1
  80. package/pf-table/pf-tr.js +1 -1
  81. package/pf-tabs/pf-tab-panel.js +1 -1
  82. package/pf-tabs/pf-tab.js +1 -1
  83. package/pf-tabs/pf-tabs.js +1 -1
  84. package/pf-text-area/pf-text-area.js +1 -1
  85. package/pf-text-input/pf-text-input.js +1 -1
  86. package/pf-tile/pf-tile.js +1 -1
  87. package/pf-timestamp/pf-timestamp.js +1 -1
  88. package/pf-tooltip/pf-tooltip.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/elements",
3
3
  "license": "MIT",
4
- "version": "4.2.0",
4
+ "version": "4.3.0",
5
5
  "description": "PatternFly Elements",
6
6
  "customElements": "custom-elements.json",
7
7
  "type": "module",
@@ -15,6 +15,7 @@
15
15
  "./pf-accordion/pf-accordion-header.js": "./pf-accordion/pf-accordion-header.js",
16
16
  "./pf-accordion/pf-accordion-panel.js": "./pf-accordion/pf-accordion-panel.js",
17
17
  "./pf-accordion/pf-accordion.js": "./pf-accordion/pf-accordion.js",
18
+ "./pf-alert/pf-alert.js": "./pf-alert/pf-alert.js",
18
19
  "./pf-avatar/pf-avatar.js": "./pf-avatar/pf-avatar.js",
19
20
  "./pf-back-to-top/pf-back-to-top.js": "./pf-back-to-top/pf-back-to-top.js",
20
21
  "./pf-background-image/pf-background-image.js": "./pf-background-image/pf-background-image.js",
@@ -31,6 +32,8 @@
31
32
  "./pf-dropdown/pf-dropdown-item.js": "./pf-dropdown/pf-dropdown-item.js",
32
33
  "./pf-dropdown/pf-dropdown-menu.js": "./pf-dropdown/pf-dropdown-menu.js",
33
34
  "./pf-dropdown/pf-dropdown.js": "./pf-dropdown/pf-dropdown.js",
35
+ "./pf-helper-text/pf-helper-text.js": "./pf-helper-text/pf-helper-text.js",
36
+ "./pf-hint/pf-hint.js": "./pf-hint/pf-hint.js",
34
37
  "./pf-icon/pf-icon.js": "./pf-icon/pf-icon.js",
35
38
  "./pf-jazz-hands/pf-jazz-hands.js": "./pf-jazz-hands/pf-jazz-hands.js",
36
39
  "./pf-jump-links/pf-jump-links-item.js": "./pf-jump-links/pf-jump-links-item.js",
@@ -113,9 +116,13 @@
113
116
  "!test/*"
114
117
  ],
115
118
  "contributors": [
119
+ "Ajinyka Shinde <sajinkya359@gmail.com>",
120
+ "Avigail Chubara (https://github.com/chubara62372)",
116
121
  "Benny Powers <bennyp@redhat.com>",
122
+ "Daly Betzalel (https://github.com/dali327519294)",
117
123
  "Daniel Faucette",
118
124
  "Diwanshi Pandey <diwanshipandey@gmail.com> (https://github.com/diwanshi)",
125
+ "Gili Greenberger (https://github.com/Gili-Greenberger)",
119
126
  "Ivana Rodriguez (https://github.com/eyevana)",
120
127
  "Kendall Totten",
121
128
  "Kyle Buchanan <kylebuch8@gmail.com> (https://github.com/kylebuch8)",
@@ -124,17 +131,16 @@
124
131
  "Michael Clayton <mclayton@redhat.com>",
125
132
  "Michael Potter",
126
133
  "Nikki Massaro Kauffman <nmassaro@redhat.com> (https://github.com/nikkimk)",
134
+ "Rohit Bharmal (https://github.com/Rohit2601)",
127
135
  "Steven Spriggs <sspriggs@redhat.com",
128
- "castastrophe (https://github.com/castastrophe)",
129
136
  "Wes Ruvalcaba",
130
- "Rohit Bharmal (https://github.com/Rohit2601)",
131
- "Ajinyka Shinde <sajinkya359@gmail.com>"
137
+ "castastrophe (https://github.com/castastrophe)"
132
138
  ],
133
139
  "dependencies": {
134
- "@lit/context": "^1.1.5",
140
+ "@lit/context": "^1.1.6",
135
141
  "@patternfly/icons": "^1.0.3",
136
- "@patternfly/pfe-core": "^5.0.2",
137
- "lit": "^3.3.0",
142
+ "@patternfly/pfe-core": "^5.0.5",
143
+ "lit": "^3.3.2",
138
144
  "tslib": "^2.8.1"
139
145
  }
140
146
  }
@@ -309,7 +309,7 @@ PfAccordionHeader.shadowRootOptions = {
309
309
  ...LitElement.shadowRootOptions,
310
310
  delegatesFocus: true,
311
311
  };
312
- PfAccordionHeader.version = "4.2.0";
312
+ PfAccordionHeader.version = "4.3.0";
313
313
  __decorate([
314
314
  property({ reflect: true })
315
315
  ], PfAccordionHeader.prototype, "bordered", void 0);
@@ -113,7 +113,7 @@ let PfAccordionPanel = class PfAccordionPanel extends LitElement {
113
113
  }
114
114
  };
115
115
  PfAccordionPanel.styles = [style];
116
- PfAccordionPanel.version = "4.2.0";
116
+ PfAccordionPanel.version = "4.3.0";
117
117
  __decorate([
118
118
  property({ type: Boolean, reflect: true })
119
119
  ], PfAccordionPanel.prototype, "expanded", void 0);
@@ -454,7 +454,7 @@ _PfAccordion_getIndex = function _PfAccordion_getIndex(el) {
454
454
  return -1;
455
455
  };
456
456
  PfAccordion.styles = [style];
457
- PfAccordion.version = "4.2.0";
457
+ PfAccordion.version = "4.3.0";
458
458
  __decorate([
459
459
  property({ reflect: true, type: Boolean })
460
460
  ], PfAccordion.prototype, "single", void 0);
@@ -0,0 +1,193 @@
1
+ [hidden] {
2
+ display: none !important;
3
+ }
4
+
5
+ :host {
6
+ --pf-c-alert--BoxShadow: var(--pf-global--BoxShadow--lg, 0 0.5rem 1rem 0 rgba(3, 3, 3, 0.16), 0 0 0.375rem 0 rgba(3, 3, 3, 0.08));
7
+ --pf-c-alert--BackgroundColor: var(--pf-global--BackgroundColor--100, #fff);
8
+ --pf-c-alert--GridTemplateColumns: max-content 1fr max-content;
9
+ --pf-c-alert--GridTemplateAreas: "icon title close" ". description description" ". action action";
10
+ --pf-c-alert--BorderTopWidth: var(--pf-global--BorderWidth--md, 2px);
11
+ --pf-c-alert--BorderTopColor: var(--pf-global--default-color--200, #009596);
12
+ --pf-c-alert--PaddingTop: var(--pf-global--spacer--md, 1rem);
13
+ --pf-c-alert--PaddingRight: var(--pf-global--spacer--md, 1rem);
14
+ --pf-c-alert--PaddingBottom: var(--pf-global--spacer--md, 1rem);
15
+ --pf-c-alert--PaddingLeft: var(--pf-global--spacer--md, 1rem);
16
+ --pf-c-alert__FontSize: var(--pf-global--FontSize--sm, 0.875rem);
17
+ --pf-c-alert__toggle--MarginTop: calc(-1 * var(--pf-global--spacer--form-element, 0.375rem) - 0.0625rem);
18
+ --pf-c-alert__toggle--MarginBottom: calc(-1 * var(--pf-global--spacer--form-element, 0.375rem));
19
+ --pf-c-alert__toggle--MarginLeft: calc(-1 * var(--pf-global--spacer--md, 1rem));
20
+ --pf-c-alert__toggle-icon--Rotate: 0;
21
+ --pf-c-alert__toggle-icon--Transition: var(--pf-global--Transition, all 250ms cubic-bezier(0.42, 0, 0.58, 1));
22
+ --pf-c-alert__icon--Color: var(--pf-global--default-color--200, #009596);
23
+ --pf-c-alert__icon--MarginTop: 0.0625rem;
24
+ --pf-c-alert__icon--MarginRight: var(--pf-global--spacer--sm, 0.5rem);
25
+ --pf-c-alert__icon--FontSize: var(--pf-global--icon--FontSize--md, 1.125rem);
26
+ --pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--bold, 700);
27
+ --pf-c-alert__title--Color: var(--pf-global--default-color--300, #003737);
28
+ --pf-c-alert__title--max-lines: 1;
29
+ --pf-c-alert__action--MarginTop: calc(var(--pf-global--spacer--form-element, 0.375rem) * -1);
30
+ --pf-c-alert__action--MarginBottom: calc(var(--pf-global--spacer--form-element, 0.375rem) * -1);
31
+ --pf-c-alert__action--TranslateY: 0.125rem;
32
+ --pf-c-alert__action--MarginRight: calc(var(--pf-global--spacer--sm, 0.5rem) * -1);
33
+ --pf-c-alert__description--PaddingTop: var(--pf-global--spacer--xs, 0.25rem);
34
+ --pf-c-alert__action-group--PaddingTop-base: var(--pf-global--spacer--xs, 0.25rem);
35
+ --pf-c-alert__action-group--PaddingTop: var(--pf-c-alert__action-group--PaddingTop-base);
36
+ --pf-c-alert__description--action-group--PaddingTop-base: var(--pf-global--spacer--md, 1rem);
37
+ --pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop-base);
38
+ --pf-c-alert__action-group__c-button--not-last-child--MarginRight: var(--pf-global--spacer--lg, 1.5rem);
39
+ --pf-c-alert--m-success--BorderTopColor: var(--pf-global--success-color--100, #3e8635);
40
+ --pf-c-alert--m-success__icon--Color: var(--pf-global--success-color--100, #3e8635);
41
+ --pf-c-alert--m-success__title--Color: var(--pf-global--success-color--200, #1e4f18);
42
+ --pf-c-alert--m-danger--BorderTopColor: var(--pf-global--danger-color--100, #c9190b);
43
+ --pf-c-alert--m-danger__icon--Color: var(--pf-global--danger-color--100, #c9190b);
44
+ --pf-c-alert--m-danger__title--Color: var(--pf-global--danger-color--200, #a30000);
45
+ --pf-c-alert--m-warning--BorderTopColor: var(--pf-global--warning-color--100, #f0ab00);
46
+ --pf-c-alert--m-warning__icon--Color: var(--pf-global--warning-color--100, #f0ab00);
47
+ --pf-c-alert--m-warning__title--Color: var(--pf-global--warning-color--200, #795600);
48
+ --pf-c-alert--m-info--BorderTopColor: var(--pf-global--info-color--100, #2b9af3);
49
+ --pf-c-alert--m-info__icon--Color: var(--pf-global--info-color--100, #2b9af3);
50
+ --pf-c-alert--m-info__title--Color: var(--pf-global--info-color--200, #002952);
51
+ --pf-c-alert--m-inline--BoxShadow: none;
52
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--cyan-50, #f2f9f9);
53
+ --pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--green-50, #f3faf2);
54
+ --pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--red-50, #faeae8);
55
+ --pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--gold-50, #fdf7e7);
56
+ --pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--blue-50, #e7f1fa);
57
+ --pf-c-alert--m-inline--m-plain--BorderTopWidth: 0;
58
+ --pf-c-alert--m-inline--m-plain--BackgroundColor: transparent;
59
+ --pf-c-alert--m-inline--m-plain--PaddingTop: 0;
60
+ --pf-c-alert--m-inline--m-plain--PaddingRight: 0;
61
+ --pf-c-alert--m-inline--m-plain--PaddingBottom: 0;
62
+ --pf-c-alert--m-inline--m-plain--PaddingLeft: 0;
63
+ --pf-c-alert--m-expandable--GridTemplateColumns: auto max-content 1fr max-content;
64
+ --pf-c-alert--m-expandable--GridTemplateAreas: "toggle icon title close" ". . description description" ". . action action";
65
+ --pf-c-alert--m-expandable__description--action-group--PaddingTop: var(--pf-c-alert__action-group--PaddingTop-base);
66
+ --pf-c-alert--m-expanded__toggle-icon--Rotate: 90deg;
67
+ --pf-c-alert--m-expanded__description--action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop-base);
68
+ color: var(--pf-global--Color--100, #151515);
69
+ position: relative;
70
+ display: grid;
71
+ padding: var(--pf-c-alert--PaddingTop) var(--pf-c-alert--PaddingRight) var(--pf-c-alert--PaddingBottom) var(--pf-c-alert--PaddingLeft);
72
+ font-size: var(--pf-c-alert__FontSize);
73
+ background-color: var(--pf-c-alert--BackgroundColor);
74
+ border-top: var(--pf-c-alert--BorderTopWidth) solid var(--pf-c-alert--BorderTopColor);
75
+ box-shadow: var(--pf-c-alert--BoxShadow);
76
+ grid-template-columns: var(--pf-c-alert--GridTemplateColumns);
77
+ grid-template-areas: var(--pf-c-alert--GridTemplateAreas);
78
+ }
79
+
80
+ :host([variant="success"]) {
81
+ --pf-c-alert--BorderTopColor: var(--pf-c-alert--m-success--BorderTopColor);
82
+ --pf-c-alert__icon--Color: var(--pf-c-alert--m-success__icon--Color);
83
+ --pf-c-alert__title--Color: var(--pf-c-alert--m-success__title--Color);
84
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-success--BackgroundColor);
85
+ }
86
+
87
+ :host([variant="danger"]) {
88
+ --pf-c-alert--BorderTopColor: var(--pf-c-alert--m-danger--BorderTopColor);
89
+ --pf-c-alert__icon--Color: var(--pf-c-alert--m-danger__icon--Color);
90
+ --pf-c-alert__title--Color: var(--pf-c-alert--m-danger__title--Color);
91
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-danger--BackgroundColor);
92
+ }
93
+
94
+ :host([variant="warning"]) {
95
+ --pf-c-alert--BorderTopColor: var(--pf-c-alert--m-warning--BorderTopColor);
96
+ --pf-c-alert__icon--Color: var(--pf-c-alert--m-warning__icon--Color);
97
+ --pf-c-alert__title--Color: var(--pf-c-alert--m-warning__title--Color);
98
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-warning--BackgroundColor);
99
+ }
100
+
101
+ :host([variant="info"]) {
102
+ --pf-c-alert--BorderTopColor: var(--pf-c-alert--m-info--BorderTopColor);
103
+ --pf-c-alert__icon--Color: var(--pf-c-alert--m-info__icon--Color);
104
+ --pf-c-alert__title--Color: var(--pf-c-alert--m-info__title--Color);
105
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-info--BackgroundColor);
106
+ }
107
+
108
+ :host([inline]) {
109
+ --pf-c-alert--BoxShadow: var(--pf-c-alert--m-inline--BoxShadow);
110
+ --pf-c-alert--BackgroundColor: var(--pf-c-alert--m-inline--BackgroundColor);
111
+ }
112
+
113
+ :host([plain]) {
114
+ --pf-c-alert--BorderTopWidth: var(--pf-c-alert--m-inline--m-plain--BorderTopWidth);
115
+ --pf-c-alert--BackgroundColor: var(--pf-c-alert--m-inline--m-plain--BackgroundColor);
116
+ --pf-c-alert--PaddingTop: var(--pf-c-alert--m-inline--m-plain--PaddingTop);
117
+ --pf-c-alert--PaddingRight: var(--pf-c-alert--m-inline--m-plain--PaddingRight);
118
+ --pf-c-alert--PaddingBottom: var(--pf-c-alert--m-inline--m-plain--PaddingBottom);
119
+ --pf-c-alert--PaddingLeft: var(--pf-c-alert--m-inline--m-plain--PaddingLeft);
120
+ }
121
+
122
+ :host([expandable]) {
123
+ --pf-c-alert--GridTemplateColumns: var(--pf-c-alert--m-expandable--GridTemplateColumns);
124
+ --pf-c-alert--GridTemplateAreas: var(--pf-c-alert--m-expandable--GridTemplateAreas);
125
+ --pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert--m-expandable__description--action-group--PaddingTop);
126
+ }
127
+
128
+ :host([expanded]) {
129
+ --pf-c-alert__toggle-icon--Rotate: var(--pf-c-alert--m-expanded__toggle-icon--Rotate);
130
+ --pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert--m-expanded__description--action-group--PaddingTop);
131
+ }
132
+
133
+ #toggle {
134
+ margin-top: var(--pf-c-alert__toggle--MarginTop);
135
+ margin-bottom: var(--pf-c-alert__toggle--MarginBottom);
136
+ margin-left: var(--pf-c-alert__toggle--MarginLeft);
137
+ }
138
+
139
+ #icon {
140
+ grid-area: icon;
141
+ display: flex;
142
+ margin-top: var(--pf-c-alert__icon--MarginTop);
143
+ margin-right: var(--pf-c-alert__icon--MarginRight);
144
+ font-size: var(--pf-c-alert__icon--FontSize);
145
+ --pf-icon--size: var(--pf-c-alert__icon--FontSize);
146
+ color: var(--pf-c-alert__icon--Color);
147
+ pf-icon,
148
+ ::slotted(pf-icon) {
149
+ translate: 0 0.125em;
150
+ }
151
+ }
152
+
153
+ #title {
154
+ grid-area: title;
155
+ font-weight: var(--pf-c-alert__title--FontWeight);
156
+ color: var(--pf-c-alert__title--Color);
157
+ word-break: break-word;
158
+ ::slotted(*) {
159
+ color: inherit;
160
+ font-weight: inherit;
161
+ }
162
+ :is(h1,h2,h3,h4,h5,h6),
163
+ ::slotted(:is(h1,h2,h3,h4,h5,h6)) {
164
+ margin-block: 0 !important;
165
+ }
166
+ }
167
+
168
+ #close {
169
+ grid-area: close;
170
+ }
171
+
172
+ #description {
173
+ grid-area: description;
174
+ padding-top: var(--pf-c-alert__description--PaddingTop);
175
+ word-break: break-word;
176
+ }
177
+
178
+ #actions {
179
+ grid-area: action;
180
+ --pf-c-alert__action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop);
181
+
182
+ & ::slotted(a) {
183
+ text-decoration: none;
184
+ color: #06c;
185
+ margin-inline-end: 1rem;
186
+ }
187
+
188
+ & ::slotted(a:hover),
189
+ & ::slotted(a:focus),
190
+ & ::slotted(a:active) {
191
+ color: #004080;
192
+ }
193
+ }
@@ -0,0 +1,95 @@
1
+ import { LitElement, type TemplateResult } from 'lit';
2
+ import '@patternfly/elements/pf-icon/pf-icon.js';
3
+ import '@patternfly/elements/pf-button/pf-button.js';
4
+ export declare class PfAlertCloseEvent extends Event {
5
+ reason: 'closed' | 'timeout';
6
+ constructor(reason?: 'closed' | 'timeout');
7
+ }
8
+ /**
9
+ * An **alert** is a notification that provides brief information to the user
10
+ * without blocking their workflow.
11
+ *
12
+ * @fires close - When an alert is closed e.g. when close button is clicked or when the alert times
13
+ * out. Cancel the event to prevent the alert from being removed.
14
+ */
15
+ export declare class PfAlert extends LitElement {
16
+ #private;
17
+ static readonly styles: CSSStyleSheet[];
18
+ /**
19
+ * Use the `timeout` property to automatically dismiss an alert after a period
20
+ * of time. If set to `true`, the timeout will be 8000 milliseconds. Provide a
21
+ * specific value to dismiss the alert after a different number of
22
+ * milliseconds.
23
+ */
24
+ timeout: number | true;
25
+ /**
26
+ * PatternFly supports several alert variants for different scenarios.
27
+ * Each variant has an associated status icon, background, and alert title
28
+ * coded to communicate the severity of an alert. Use the variant property to
29
+ * apply the following styling options. If no variant is specified, then the
30
+ * variant will be set to "default".
31
+ *
32
+ * - **Default** - Use for generic messages with no associated severity
33
+ * - **Info** - Use for general informational messages
34
+ * - **Success** - Use to indicate that a task or process has been completed successfully
35
+ * - **Warning** - Use to indicate that a non-critical error has occurred
36
+ * - **Danger** - Use to indicate that a critical or blocking error has occurred
37
+ */
38
+ variant: 'warning' | 'custom' | 'neutral' | 'info' | 'success' | 'danger';
39
+ /**
40
+ * Use the `icon` attribute to replace a default alert icon with a custom icon.
41
+ * The `icon` attribute is overridden by the `icon` slot.
42
+ */
43
+ icon?: string;
44
+ /**
45
+ * The title of the alert. Overridden by the title slot.
46
+ */
47
+ titleText?: string;
48
+ /**
49
+ * The heading level of the alert's title. Overridden by the title slot.
50
+ * Default: 3
51
+ */
52
+ titleLevel?: 1 | 2 | 3 | 4 | 5 | 6;
53
+ /**
54
+ * Use inline alerts to display an alert inline with content. All alert
55
+ * variants may use the `inline` attribute to position alerts in content-heavy
56
+ * areas, such as within forms, wizards, or drawers.
57
+ */
58
+ inline: boolean;
59
+ /**
60
+ * Use the `plain` attribute to make any inline alert plain. Plain styling
61
+ * removes the colored background but keeps colored text and icons.
62
+ */
63
+ plain: boolean;
64
+ /**
65
+ * An alert can contain additional, hidden information that is made visible
66
+ * when users click a caret icon. This information can be expanded and
67
+ * collapsed each time the icon is clicked.
68
+ *
69
+ * It is not recommended to use an expandable alert with a timeout in a toast
70
+ * alert group because the alert could timeout before users have time to
71
+ * interact with and view the entire alert.
72
+ *
73
+ * See the toast alert considerations section of the alert accessibility
74
+ * documentation to understand the accessibility risks associated with using
75
+ * toast alerts.
76
+ */
77
+ expandable: boolean;
78
+ /**
79
+ * True when an expandable alert is expanded
80
+ */
81
+ expanded: boolean;
82
+ /**
83
+ * When true, the alert displays a close button
84
+ * Clicking the close button removes the alert
85
+ */
86
+ dismissable: boolean;
87
+ disconnectedCallback(): void;
88
+ render(): TemplateResult<1>;
89
+ protected timeoutChanged(): void;
90
+ }
91
+ declare global {
92
+ interface HTMLElementTagNameMap {
93
+ 'pf-alert': PfAlert;
94
+ }
95
+ }