@patternfly/patternfly 4.163.0 → 4.164.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.
@@ -51,6 +51,7 @@
51
51
  @import "./Menu/menu";
52
52
  @import "./MenuToggle/menu-toggle";
53
53
  @import "./ModalBox/modal-box";
54
+ @import "./MultipleFileUpload/multiple-file-upload";
54
55
  @import "./Nav/nav";
55
56
  @import "./NotificationBadge/notification-badge";
56
57
  @import "./NotificationDrawer/notification-drawer";
@@ -83,6 +84,7 @@
83
84
  @import "./Title/title";
84
85
  @import "./ToggleGroup/toggle-group";
85
86
  @import "./Tooltip/tooltip";
87
+ @import "./Truncate/truncate";
86
88
  @import "./NumberInput/number-input";
87
89
  @import "./TreeView/tree-view";
88
90
  @import "./Wizard/wizard";
@@ -118,6 +118,34 @@ cssPrefix: pf-c-form
118
118
 
119
119
  ```
120
120
 
121
+ ### Horizontal layout at a custom breakpoint
122
+
123
+ ```html
124
+ <form novalidate class="pf-c-form pf-m-horizontal-on-sm">
125
+ <div class="pf-c-form__group">
126
+ <div class="pf-c-form__group-label">
127
+ <label class="pf-c-form__label" for="form-horizontal-name">
128
+ <span class="pf-c-form__label-text">Name</span>
129
+ <span class="pf-c-form__label-required" aria-hidden="true">&#42;</span>
130
+ </label>
131
+ <button class="pf-c-form__group-label-help" aria-label="More info">
132
+ <i class="pficon pf-icon-help" aria-hidden="true"></i>
133
+ </button>
134
+ </div>
135
+ <div class="pf-c-form__group-control">
136
+ <input
137
+ class="pf-c-form-control"
138
+ type="text"
139
+ id="form-horizontal-name"
140
+ name="form-horizontal-name"
141
+ required
142
+ />
143
+ </div>
144
+ </div>
145
+ </form>
146
+
147
+ ```
148
+
121
149
  ### Form sections
122
150
 
123
151
  ```html
@@ -1119,44 +1147,44 @@ cssPrefix: pf-c-form
1119
1147
 
1120
1148
  ### Usage
1121
1149
 
1122
- | Class | Applied to | Outcome |
1123
- | -------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
1124
- | `.pf-c-form` | `<form>` | Initiates a standard form. **Required** |
1125
- | `.pf-c-form__section` | `<div>, <section>` | Initiates a form section. |
1126
- | `.pf-c-form__section-title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a form section title. |
1127
- | `.pf-c-form__group` | `<div>` | Initiates a form group. |
1128
- | `.pf-c-form__group-label` | `<div>` | Initiates a form group label. |
1129
- | `.pf-c-form__label` | `<label>`, `<span>` | Initiates a form label. **Required** |
1130
- | `.pf-c-form__label-text` | `<span>` | Initiates a form label text. **Required** |
1131
- | `.pf-c-form__label-required` | `<span>` | Initiates a form label required indicator. |
1132
- | `.pf-c-form__group-label-main` | `<div>` | Initiates a form group label main container. |
1133
- | `.pf-c-form__group-label-info` | `<div>` | Initiates a form group info label. |
1134
- | `.pf-c-form__group-label-help` | `<button>` | Initiates a field level help button. |
1135
- | `.pf-c-form__group-control` | `<div>` | Initiates a form group control section. |
1136
- | `.pf-c-form__actions` | `<div>` | Iniates a row of actions. |
1137
- | `.pf-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
1138
- | `.pf-c-form__helper-text-icon` | `<span>` | Initiates a form helper text icon. |
1139
- | `.pf-c-form__alert` | `<div>` | Initiates the form alert container for inline alerts. |
1140
- | `.pf-c-form__field-group` | `<div>` | Initiates a form field group. |
1141
- | `.pf-c-form__field-group-toggle` | `<div>` | Initiates the form field group toggle. |
1142
- | `.pf-c-form__field-group-toggle-button` | `<div>` | Initiates the form field group toggle button. |
1143
- | `.pf-c-form__field-group-toggle-icon` | `<span>` | Initiates the form field group toggle icon. |
1144
- | `.pf-c-form__field-group-header` | `<div>` | Initiates the form field group header. |
1145
- | `.pf-c-form__field-group-header-main` | `<div>` | Initiates the form field group main section. |
1146
- | `.pf-c-form__field-group-header-title` | `<div>` | Initiates the form field group title. |
1147
- | `.pf-c-form__field-group-header-title-text` | `<div>` | Initiates the form field group title text. |
1148
- | `.pf-c-form__field-group-header-description` | `<div>` | Initiates the form field group description. |
1149
- | `.pf-c-form__field-group-header-actions` | `<div>` | Initiates the form field group actions container. |
1150
- | `.pf-c-form__field-group-body` | `<div>` | Initiates the form field group body. |
1151
- | `.pf-m-horizontal` | `.pf-c-form` | Modifies form for a horizontal layout. |
1152
- | `.pf-m-info` | `.pf-c-form__group-label` | Modifies the form group label to contain form group label info. |
1153
- | `.pf-m-action` | `.pf-c-form__group` | Modifies form group margin-top. |
1154
- | `.pf-m-success` | `.pf-c-form__helper-text` | Modifies text color of helper text for success state. |
1155
- | `.pf-m-warning` | `.pf-c-form__helper-text` | Modifies text color of helper text for warning state. |
1156
- | `.pf-m-error` | `.pf-c-form__helper-text` | Modifies text color of helper text for error state. |
1157
- | `.pf-m-inactive` | `.pf-c-form__helper-text` | Modifies display of helper text to none. |
1158
- | `.pf-m-disabled` | `.pf-c-form__label` | Modifies form label to show disabled state. |
1159
- | `.pf-m-no-padding-top` | `.pf-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
1160
- | `.pf-m-inline` | `.pf-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
1161
- | `.pf-m-stack` | `.pf-c-form__group-control` | Modifies form group children to be stacked with space between children. |
1162
- | `.pf-m-expanded` | `.pf-c-form__field-group` | Modifies an expandable field group for the expanded state. |
1150
+ | Class | Applied to | Outcome |
1151
+ | ------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
1152
+ | `.pf-c-form` | `<form>` | Initiates a standard form. **Required** |
1153
+ | `.pf-c-form__section` | `<div>, <section>` | Initiates a form section. |
1154
+ | `.pf-c-form__section-title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a form section title. |
1155
+ | `.pf-c-form__group` | `<div>` | Initiates a form group. |
1156
+ | `.pf-c-form__group-label` | `<div>` | Initiates a form group label. |
1157
+ | `.pf-c-form__label` | `<label>`, `<span>` | Initiates a form label. **Required** |
1158
+ | `.pf-c-form__label-text` | `<span>` | Initiates a form label text. **Required** |
1159
+ | `.pf-c-form__label-required` | `<span>` | Initiates a form label required indicator. |
1160
+ | `.pf-c-form__group-label-main` | `<div>` | Initiates a form group label main container. |
1161
+ | `.pf-c-form__group-label-info` | `<div>` | Initiates a form group info label. |
1162
+ | `.pf-c-form__group-label-help` | `<button>` | Initiates a field level help button. |
1163
+ | `.pf-c-form__group-control` | `<div>` | Initiates a form group control section. |
1164
+ | `.pf-c-form__actions` | `<div>` | Iniates a row of actions. |
1165
+ | `.pf-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
1166
+ | `.pf-c-form__helper-text-icon` | `<span>` | Initiates a form helper text icon. |
1167
+ | `.pf-c-form__alert` | `<div>` | Initiates the form alert container for inline alerts. |
1168
+ | `.pf-c-form__field-group` | `<div>` | Initiates a form field group. |
1169
+ | `.pf-c-form__field-group-toggle` | `<div>` | Initiates the form field group toggle. |
1170
+ | `.pf-c-form__field-group-toggle-button` | `<div>` | Initiates the form field group toggle button. |
1171
+ | `.pf-c-form__field-group-toggle-icon` | `<span>` | Initiates the form field group toggle icon. |
1172
+ | `.pf-c-form__field-group-header` | `<div>` | Initiates the form field group header. |
1173
+ | `.pf-c-form__field-group-header-main` | `<div>` | Initiates the form field group main section. |
1174
+ | `.pf-c-form__field-group-header-title` | `<div>` | Initiates the form field group title. |
1175
+ | `.pf-c-form__field-group-header-title-text` | `<div>` | Initiates the form field group title text. |
1176
+ | `.pf-c-form__field-group-header-description` | `<div>` | Initiates the form field group description. |
1177
+ | `.pf-c-form__field-group-header-actions` | `<div>` | Initiates the form field group actions container. |
1178
+ | `.pf-c-form__field-group-body` | `<div>` | Initiates the form field group body. |
1179
+ | `.pf-m-horizontal{-on-[xs, sm, md, lg, xl, 2xl]}` | `.pf-c-form` | Modifies the form for a horizontal layout at an optional breakpoint. The default breakpoint is `-md`. |
1180
+ | `.pf-m-info` | `.pf-c-form__group-label` | Modifies the form group label to contain form group label info. |
1181
+ | `.pf-m-action` | `.pf-c-form__group` | Modifies form group margin-top. |
1182
+ | `.pf-m-success` | `.pf-c-form__helper-text` | Modifies text color of helper text for success state. |
1183
+ | `.pf-m-warning` | `.pf-c-form__helper-text` | Modifies text color of helper text for warning state. |
1184
+ | `.pf-m-error` | `.pf-c-form__helper-text` | Modifies text color of helper text for error state. |
1185
+ | `.pf-m-inactive` | `.pf-c-form__helper-text` | Modifies display of helper text to none. |
1186
+ | `.pf-m-disabled` | `.pf-c-form__label` | Modifies form label to show disabled state. |
1187
+ | `.pf-m-no-padding-top` | `.pf-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
1188
+ | `.pf-m-inline` | `.pf-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
1189
+ | `.pf-m-stack` | `.pf-c-form__group-control` | Modifies form group children to be stacked with space between children. |
1190
+ | `.pf-m-expanded` | `.pf-c-form__field-group` | Modifies an expandable field group for the expanded state. |