@patternfly/patternfly 5.0.0-alpha.21 → 5.0.0-alpha.23
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/components/Chip/chip.css +33 -24
- package/components/Chip/chip.scss +40 -31
- package/components/Label/label.css +35 -24
- package/components/Label/label.scss +40 -27
- package/components/Popover/popover.css +21 -24
- package/components/Popover/popover.scss +25 -32
- package/components/Table/table-tree-view.css +10 -0
- package/components/Table/table-tree-view.scss +15 -0
- package/docs/components/Chip/examples/Chip.md +61 -43
- package/docs/components/ChipGroup/examples/ChipGroup.md +437 -329
- package/docs/components/InlineEdit/examples/InlineEdit.md +5 -3
- package/docs/components/Label/examples/Label.md +1399 -718
- package/docs/components/LabelGroup/examples/LabelGroup.md +274 -209
- package/docs/components/LogViewer/examples/LogViewer.md +10 -4
- package/docs/components/Popover/examples/Popover.md +175 -104
- package/docs/components/Select/examples/Select.md +224 -170
- package/docs/components/Table/examples/Table.md +565 -41
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +343 -261
- package/docs/components/Toolbar/examples/Toolbar.md +306 -234
- package/docs/demos/Card/examples/Card.md +46 -38
- package/docs/demos/Dashboard/examples/Dashboard.md +23 -15
- package/docs/demos/DescriptionList/examples/DescriptionList.md +21 -9
- package/docs/demos/Drawer/examples/Drawer.md +4 -2
- package/docs/demos/Form/examples/BasicForms.md +28 -22
- package/docs/demos/Tabs/examples/Tabs.md +39 -16
- package/docs/demos/Toolbar/examples/Toolbar.md +102 -78
- package/package.json +2 -2
- package/patternfly-no-reset.css +99 -72
- package/patternfly.css +99 -72
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -8,66 +8,84 @@ cssPrefix: pf-c-chip
|
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
10
|
<div class="pf-c-chip">
|
|
11
|
-
<span class="pf-c-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
<span class="pf-c-chip__content">
|
|
12
|
+
<span class="pf-c-chip__text" id="chip_one">Chip</span>
|
|
13
|
+
</span>
|
|
14
|
+
<span class="pf-c-chip__actions">
|
|
15
|
+
<button
|
|
16
|
+
class="pf-c-button pf-m-plain"
|
|
17
|
+
type="button"
|
|
18
|
+
aria-labelledby="remove_chip_one chip_one"
|
|
19
|
+
aria-label="Remove"
|
|
20
|
+
id="remove_chip_one"
|
|
21
|
+
>
|
|
22
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
23
|
+
</button>
|
|
24
|
+
</span>
|
|
21
25
|
</div>
|
|
22
26
|
<br />
|
|
23
27
|
<br />
|
|
24
28
|
<div class="pf-c-chip">
|
|
25
|
-
<span
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
<span class="pf-c-chip__content">
|
|
30
|
+
<span
|
|
31
|
+
class="pf-c-chip__text"
|
|
32
|
+
id="chip_two"
|
|
33
|
+
>Really long chip that goes on and on</span>
|
|
34
|
+
</span>
|
|
35
|
+
<span class="pf-c-chip__actions">
|
|
36
|
+
<button
|
|
37
|
+
class="pf-c-button pf-m-plain"
|
|
38
|
+
type="button"
|
|
39
|
+
aria-labelledby="remove_chip_two chip_two"
|
|
40
|
+
aria-label="Remove"
|
|
41
|
+
id="remove_chip_two"
|
|
42
|
+
>
|
|
43
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
44
|
+
</button>
|
|
45
|
+
</span>
|
|
38
46
|
</div>
|
|
39
47
|
<br />
|
|
40
48
|
<br />
|
|
41
49
|
<div class="pf-c-chip">
|
|
42
|
-
<span class="pf-c-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
<span class="pf-c-chip__content">
|
|
51
|
+
<span class="pf-c-chip__text" id="chip_three">Chip</span>
|
|
52
|
+
<span class="pf-c-badge pf-m-read">00</span>
|
|
53
|
+
</span>
|
|
54
|
+
<span class="pf-c-chip__actions">
|
|
55
|
+
<button
|
|
56
|
+
class="pf-c-button pf-m-plain"
|
|
57
|
+
type="button"
|
|
58
|
+
aria-labelledby="remove_chip_three chip_three"
|
|
59
|
+
aria-label="Remove"
|
|
60
|
+
id="remove_chip_three"
|
|
61
|
+
>
|
|
62
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
63
|
+
</button>
|
|
64
|
+
</span>
|
|
53
65
|
</div>
|
|
54
66
|
<br />
|
|
55
67
|
<br />
|
|
56
68
|
<div class="pf-c-chip">
|
|
57
|
-
<span class="pf-c-
|
|
69
|
+
<span class="pf-c-chip__content">
|
|
70
|
+
<span class="pf-c-chip__text">Read-only chip</span>
|
|
71
|
+
</span>
|
|
58
72
|
</div>
|
|
59
73
|
<br />
|
|
60
74
|
<br />
|
|
61
75
|
<button class="pf-c-chip pf-m-overflow">
|
|
62
|
-
<span class="pf-c-
|
|
76
|
+
<span class="pf-c-chip__content">
|
|
77
|
+
<span class="pf-c-chip__text">Overflow chip</span>
|
|
78
|
+
</span>
|
|
63
79
|
</button>
|
|
64
80
|
<br />
|
|
65
81
|
<br />
|
|
66
82
|
<div class="pf-c-chip pf-m-draggable">
|
|
67
|
-
<span class="pf-c-
|
|
68
|
-
<
|
|
83
|
+
<span class="pf-c-chip__content">
|
|
84
|
+
<span class="pf-c-chip__icon">
|
|
85
|
+
<i class="fas fa-grip-vertical" role="img" aria-label="Drag"></i>
|
|
86
|
+
</span>
|
|
87
|
+
<span class="pf-c-chip__text">Draggable chip</span>
|
|
69
88
|
</span>
|
|
70
|
-
<span class="pf-c-chip__text">Draggable chip</span>
|
|
71
89
|
</div>
|
|
72
90
|
|
|
73
91
|
```
|
|
@@ -91,9 +109,9 @@ A Chip is used to display items that have been filtered or selected from a large
|
|
|
91
109
|
| Class | Applied to | Outcome |
|
|
92
110
|
| -- | -- | -- |
|
|
93
111
|
| `.pf-c-chip` | `<div>`, `<button>`, | Initiates the chip component. Use a `<button>` with overflow chips **Required** |
|
|
94
|
-
| `.pf-c-
|
|
95
|
-
| `.pf-c-
|
|
96
|
-
| `.pf-c-
|
|
97
|
-
| `.pf-c-
|
|
112
|
+
| `.pf-c-chip__content` | `<span>` | Creates a content wrapper for the chip. **Required** |
|
|
113
|
+
| `.pf-c-chip__text` | `<span>` | Initiates the text inside the chip. **Required** |
|
|
114
|
+
| `.pf-c-chip__icon` | `<span>` | Initiates the icon inside the chip. |
|
|
115
|
+
| `.pf-c-chip__actions` | `<span>` | Creates a wrapper for chip actions. **Required for removable chips** |
|
|
98
116
|
| `.pf-m-overflow` | `button.pf-c-chip` | Applies styling of the overflow chip. |
|
|
99
117
|
| `.pf-m-draggable` | `.pf-c-chip` | Modifies the chip to be in the draggable state. |
|