@patternfly/react-core 5.0.0-prerelease.14 → 5.0.0-prerelease.16
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/CHANGELOG.md +10 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/Chip/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.js +1 -1
- package/dist/js/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/Alert/examples/Alert.md +4 -4
- package/src/components/Dropdown/examples/Dropdown.md +1 -1
- package/src/components/NumberInput/NumberInput.tsx +1 -1
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +13 -0
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +24 -12
- package/src/demos/DateTimePicker.md +1 -1
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncher.md +2 -2
- package/src/helpers/OUIA/OUIA.md +9 -19
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.0.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.0.0-prerelease.15"}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.0.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.0.0-prerelease.15"}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.0.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.0.0-prerelease.15"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "5.0.0-prerelease.
|
|
3
|
+
"version": "5.0.0-prerelease.16",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@patternfly/react-icons": "^5.0.0-prerelease.
|
|
50
|
-
"@patternfly/react-styles": "^5.0.0-prerelease.
|
|
51
|
-
"@patternfly/react-tokens": "^5.0.0-prerelease.
|
|
49
|
+
"@patternfly/react-icons": "^5.0.0-prerelease.8",
|
|
50
|
+
"@patternfly/react-styles": "^5.0.0-prerelease.6",
|
|
51
|
+
"@patternfly/react-tokens": "^5.0.0-prerelease.6",
|
|
52
52
|
"focus-trap": "7.4.3",
|
|
53
53
|
"react-dropzone": "^14.2.3",
|
|
54
54
|
"tslib": "^2.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@patternfly/patternfly": "5.0.0-prerelease.
|
|
57
|
+
"@patternfly/patternfly": "5.0.0-prerelease.13",
|
|
58
58
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
59
59
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
60
60
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react": "^17 || ^18",
|
|
72
72
|
"react-dom": "^17 || ^18"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "8e85d977ec1fecf81cc980b0c025d2f63b7fcea1"
|
|
75
75
|
}
|
|
@@ -137,7 +137,7 @@ const AlertTimeout: React.FunctionComponent = () => {
|
|
|
137
137
|
|
|
138
138
|
An alert can contain additional, hidden information that is made visible when users click a caret icon. This information can be expanded and collapsed each time the icon is clicked.
|
|
139
139
|
|
|
140
|
-
It is not recommended to use an expandable alert with a `timeout` in a toast
|
|
140
|
+
It is not recommended to use an expandable alert with a `timeout` in a [toast alert group](/components/alert#toast-alert-group) because the alert could timeout before users have time to interact with and view the entire alert.
|
|
141
141
|
|
|
142
142
|
See the [toast alert considerations](/components/alert/accessibility#toast-alerts) section of the alert accessibility documentation to understand the accessibility risks associated with using toast alerts.
|
|
143
143
|
|
|
@@ -354,7 +354,7 @@ import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
|
|
|
354
354
|
|
|
355
355
|
### Dynamic live region alerts
|
|
356
356
|
|
|
357
|
-
Alerts that are asynchronously appended into dynamic [alert groups](/components/alert-group) via the `isLiveRegion` property will be announced to assistive technology the moment the change happens, following the strategy used for `aria-atomic`, which defaults to false. This means only changes of type "addition" will be announced.
|
|
357
|
+
Alerts that are asynchronously appended into dynamic [alert groups](/components/alert/#alert-group-examples) via the `isLiveRegion` property will be announced to assistive technology the moment the change happens, following the strategy used for `aria-atomic`, which defaults to false. This means only changes of type "addition" will be announced.
|
|
358
358
|
|
|
359
359
|
```ts file="AlertDynamicLiveRegion.tsx"
|
|
360
360
|
```
|
|
@@ -379,7 +379,7 @@ Alert groups can be one of the following variants:
|
|
|
379
379
|
| Toast | Toast alert groups contain alerts that typically appear in response to an asynchronous event or user action. These groups are positioned on top of other content at the top right of the page.|
|
|
380
380
|
| Dynamic | Dynamic alert groups contain alerts that typically appear in response to a user action, and are seen within the normal page content flow.|
|
|
381
381
|
|
|
382
|
-
Dynamic alerts that are generated after the page initially loads must be appended to either a toast or dynamic `AlertGroup`, both of which must use the `isLiveRegion` property. New alerts appended to a toast or dynamic group will be announced by assistive technologies the moment the change happens. For information about customizing this announcement, read the [aria-atomic and aria-relevant](/components/alert
|
|
382
|
+
Dynamic alerts that are generated after the page initially loads must be appended to either a toast or dynamic `AlertGroup`, both of which must use the `isLiveRegion` property. New alerts appended to a toast or dynamic group will be announced by assistive technologies the moment the change happens. For information about customizing this announcement, read the [aria-atomic and aria-relevant](/components/alert/accessibility#aria-atomic-and-aria-relevant) section of the alert accessibility documentation.
|
|
383
383
|
|
|
384
384
|
### Static inline alert group
|
|
385
385
|
|
|
@@ -414,7 +414,7 @@ Users navigating via keyboard or another assistive technology will need a way to
|
|
|
414
414
|
|
|
415
415
|
The following example shows how alerts can be triggered by an asynchronous event in the application. You can customize how an alert will be announced to assistive technology by adjusting the value of the `aria-live` property. Click the "start async" alert button below and then click the buttons in the above toast examples to demonstrate how asynchronous events add alerts to a group. Click the "stop async alerts" button to halt this behavior.
|
|
416
416
|
|
|
417
|
-
See the [alert
|
|
417
|
+
See the [alert accessibility tab](/components/alert/accessibility) for more information on customizing this behavior.
|
|
418
418
|
|
|
419
419
|
```ts file="./AlertGroupAsync.tsx"
|
|
420
420
|
```
|
|
@@ -25,7 +25,7 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
|
|
|
25
25
|
|
|
26
26
|
Basic dropdowns present users with a menu of items upon clicking a dropdown toggle.
|
|
27
27
|
|
|
28
|
-
A `<Dropdown>` uses a [menu toggle](/components/menu-toggle), which is passed to the `toggle` property, as well as a `<DropdownList>` with multiple `<DropdownItem>` components. To allow a dropdown to change the open state of the menu, pass the `isOpen` property into the `onOpenChange` callback.
|
|
28
|
+
A `<Dropdown>` uses a [menu toggle](/components/menus/menu-toggle), which is passed to the `toggle` property, as well as a `<DropdownList>` with multiple `<DropdownItem>` components. To allow a dropdown to change the open state of the menu, pass the `isOpen` property into the `onOpenChange` callback.
|
|
29
29
|
|
|
30
30
|
The following example shows a few different states of dropdown items. As shown in this example, dropdown items may:
|
|
31
31
|
|
|
@@ -139,7 +139,7 @@ export const NumberInput: React.FunctionComponent<NumberInputProps> = ({
|
|
|
139
139
|
{...(isDisabled && { isDisabled })}
|
|
140
140
|
{...(onChange && { onChange: (event, _value) => onChange(event) })}
|
|
141
141
|
onBlur={handleBlur}
|
|
142
|
-
{...(!onChange && {
|
|
142
|
+
{...(!onChange && { readOnlyVariant: "default" })}
|
|
143
143
|
onKeyDown={keyDownHandler}
|
|
144
144
|
validated={validated}
|
|
145
145
|
/>
|
|
@@ -231,4 +231,17 @@ describe('numberInput', () => {
|
|
|
231
231
|
|
|
232
232
|
expect(consoleSpy).not.toHaveBeenCalled();
|
|
233
233
|
});
|
|
234
|
+
|
|
235
|
+
test('input is read only if onChange not passed ', () => {
|
|
236
|
+
render(<NumberInput inputAriaLabel="readonly input" value={5}/>);
|
|
237
|
+
const input = screen.getByLabelText('readonly input');
|
|
238
|
+
expect(input).toHaveAttribute('readOnly');
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
test('input is not read only if onChange passed ', () => {
|
|
242
|
+
const onChangeMock = jest.fn();
|
|
243
|
+
render(<NumberInput inputAriaLabel="not readonly input" value={5} onChange={onChangeMock}/>);
|
|
244
|
+
const input = screen.getByLabelText('not readonly input');
|
|
245
|
+
expect(input).not.toHaveAttribute('readOnly');
|
|
246
|
+
});
|
|
234
247
|
});
|
|
@@ -44,7 +44,7 @@ exports[`numberInput disables lower threshold 1`] = `
|
|
|
44
44
|
class="pf-v5-c-input-group__item"
|
|
45
45
|
>
|
|
46
46
|
<div
|
|
47
|
-
class="pf-v5-c-form-control"
|
|
47
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
48
48
|
>
|
|
49
49
|
<input
|
|
50
50
|
aria-invalid="false"
|
|
@@ -52,6 +52,7 @@ exports[`numberInput disables lower threshold 1`] = `
|
|
|
52
52
|
data-ouia-component-id="OUIA-Generated-TextInputBase-7"
|
|
53
53
|
data-ouia-component-type="PF5/TextInput"
|
|
54
54
|
data-ouia-safe="true"
|
|
55
|
+
readonly=""
|
|
55
56
|
type="number"
|
|
56
57
|
value="0"
|
|
57
58
|
/>
|
|
@@ -136,7 +137,7 @@ exports[`numberInput disables upper threshold 1`] = `
|
|
|
136
137
|
class="pf-v5-c-input-group__item"
|
|
137
138
|
>
|
|
138
139
|
<div
|
|
139
|
-
class="pf-v5-c-form-control"
|
|
140
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
140
141
|
>
|
|
141
142
|
<input
|
|
142
143
|
aria-invalid="false"
|
|
@@ -144,6 +145,7 @@ exports[`numberInput disables upper threshold 1`] = `
|
|
|
144
145
|
data-ouia-component-id="OUIA-Generated-TextInputBase-8"
|
|
145
146
|
data-ouia-component-type="PF5/TextInput"
|
|
146
147
|
data-ouia-safe="true"
|
|
148
|
+
readonly=""
|
|
147
149
|
type="number"
|
|
148
150
|
value="100"
|
|
149
151
|
/>
|
|
@@ -230,7 +232,7 @@ exports[`numberInput passes button props successfully 1`] = `
|
|
|
230
232
|
class="pf-v5-c-input-group__item"
|
|
231
233
|
>
|
|
232
234
|
<div
|
|
233
|
-
class="pf-v5-c-form-control"
|
|
235
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
234
236
|
>
|
|
235
237
|
<input
|
|
236
238
|
aria-invalid="false"
|
|
@@ -238,6 +240,7 @@ exports[`numberInput passes button props successfully 1`] = `
|
|
|
238
240
|
data-ouia-component-id="OUIA-Generated-TextInputBase-13"
|
|
239
241
|
data-ouia-component-type="PF5/TextInput"
|
|
240
242
|
data-ouia-safe="true"
|
|
243
|
+
readonly=""
|
|
241
244
|
type="number"
|
|
242
245
|
value="5"
|
|
243
246
|
/>
|
|
@@ -417,7 +420,7 @@ exports[`numberInput renders custom width 1`] = `
|
|
|
417
420
|
class="pf-v5-c-input-group__item"
|
|
418
421
|
>
|
|
419
422
|
<div
|
|
420
|
-
class="pf-v5-c-form-control"
|
|
423
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
421
424
|
>
|
|
422
425
|
<input
|
|
423
426
|
aria-invalid="false"
|
|
@@ -425,6 +428,7 @@ exports[`numberInput renders custom width 1`] = `
|
|
|
425
428
|
data-ouia-component-id="OUIA-Generated-TextInputBase-11"
|
|
426
429
|
data-ouia-component-type="PF5/TextInput"
|
|
427
430
|
data-ouia-safe="true"
|
|
431
|
+
readonly=""
|
|
428
432
|
type="number"
|
|
429
433
|
value="5"
|
|
430
434
|
/>
|
|
@@ -510,7 +514,7 @@ exports[`numberInput renders defaults & extra props 1`] = `
|
|
|
510
514
|
class="pf-v5-c-input-group__item"
|
|
511
515
|
>
|
|
512
516
|
<div
|
|
513
|
-
class="pf-v5-c-form-control"
|
|
517
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
514
518
|
>
|
|
515
519
|
<input
|
|
516
520
|
aria-invalid="false"
|
|
@@ -518,6 +522,7 @@ exports[`numberInput renders defaults & extra props 1`] = `
|
|
|
518
522
|
data-ouia-component-id="OUIA-Generated-TextInputBase-1"
|
|
519
523
|
data-ouia-component-type="PF5/TextInput"
|
|
520
524
|
data-ouia-safe="true"
|
|
525
|
+
readonly=""
|
|
521
526
|
type="number"
|
|
522
527
|
value="0"
|
|
523
528
|
/>
|
|
@@ -603,7 +608,7 @@ exports[`numberInput renders disabled 1`] = `
|
|
|
603
608
|
class="pf-v5-c-input-group__item"
|
|
604
609
|
>
|
|
605
610
|
<div
|
|
606
|
-
class="pf-v5-c-form-control pf-m-disabled"
|
|
611
|
+
class="pf-v5-c-form-control pf-m-readonly pf-m-disabled"
|
|
607
612
|
>
|
|
608
613
|
<input
|
|
609
614
|
aria-invalid="false"
|
|
@@ -612,6 +617,7 @@ exports[`numberInput renders disabled 1`] = `
|
|
|
612
617
|
data-ouia-component-type="PF5/TextInput"
|
|
613
618
|
data-ouia-safe="true"
|
|
614
619
|
disabled=""
|
|
620
|
+
readonly=""
|
|
615
621
|
type="number"
|
|
616
622
|
value="90"
|
|
617
623
|
/>
|
|
@@ -697,7 +703,7 @@ exports[`numberInput renders error validated 1`] = `
|
|
|
697
703
|
class="pf-v5-c-input-group__item"
|
|
698
704
|
>
|
|
699
705
|
<div
|
|
700
|
-
class="pf-v5-c-form-control pf-m-error"
|
|
706
|
+
class="pf-v5-c-form-control pf-m-readonly pf-m-error"
|
|
701
707
|
>
|
|
702
708
|
<input
|
|
703
709
|
aria-invalid="true"
|
|
@@ -705,6 +711,7 @@ exports[`numberInput renders error validated 1`] = `
|
|
|
705
711
|
data-ouia-component-id="OUIA-Generated-TextInputBase-3"
|
|
706
712
|
data-ouia-component-type="PF5/TextInput"
|
|
707
713
|
data-ouia-safe="true"
|
|
714
|
+
readonly=""
|
|
708
715
|
type="number"
|
|
709
716
|
value="0"
|
|
710
717
|
/>
|
|
@@ -810,7 +817,7 @@ exports[`numberInput renders success validated 1`] = `
|
|
|
810
817
|
class="pf-v5-c-input-group__item"
|
|
811
818
|
>
|
|
812
819
|
<div
|
|
813
|
-
class="pf-v5-c-form-control pf-m-success"
|
|
820
|
+
class="pf-v5-c-form-control pf-m-readonly pf-m-success"
|
|
814
821
|
>
|
|
815
822
|
<input
|
|
816
823
|
aria-invalid="false"
|
|
@@ -818,6 +825,7 @@ exports[`numberInput renders success validated 1`] = `
|
|
|
818
825
|
data-ouia-component-id="OUIA-Generated-TextInputBase-2"
|
|
819
826
|
data-ouia-component-type="PF5/TextInput"
|
|
820
827
|
data-ouia-safe="true"
|
|
828
|
+
readonly=""
|
|
821
829
|
type="number"
|
|
822
830
|
value="0"
|
|
823
831
|
/>
|
|
@@ -928,7 +936,7 @@ exports[`numberInput renders unit & position 1`] = `
|
|
|
928
936
|
class="pf-v5-c-input-group__item"
|
|
929
937
|
>
|
|
930
938
|
<div
|
|
931
|
-
class="pf-v5-c-form-control"
|
|
939
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
932
940
|
>
|
|
933
941
|
<input
|
|
934
942
|
aria-invalid="false"
|
|
@@ -936,6 +944,7 @@ exports[`numberInput renders unit & position 1`] = `
|
|
|
936
944
|
data-ouia-component-id="OUIA-Generated-TextInputBase-10"
|
|
937
945
|
data-ouia-component-type="PF5/TextInput"
|
|
938
946
|
data-ouia-safe="true"
|
|
947
|
+
readonly=""
|
|
939
948
|
type="number"
|
|
940
949
|
value="5"
|
|
941
950
|
/>
|
|
@@ -1020,7 +1029,7 @@ exports[`numberInput renders unit 1`] = `
|
|
|
1020
1029
|
class="pf-v5-c-input-group__item"
|
|
1021
1030
|
>
|
|
1022
1031
|
<div
|
|
1023
|
-
class="pf-v5-c-form-control"
|
|
1032
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
1024
1033
|
>
|
|
1025
1034
|
<input
|
|
1026
1035
|
aria-invalid="false"
|
|
@@ -1028,6 +1037,7 @@ exports[`numberInput renders unit 1`] = `
|
|
|
1028
1037
|
data-ouia-component-id="OUIA-Generated-TextInputBase-9"
|
|
1029
1038
|
data-ouia-component-type="PF5/TextInput"
|
|
1030
1039
|
data-ouia-safe="true"
|
|
1040
|
+
readonly=""
|
|
1031
1041
|
type="number"
|
|
1032
1042
|
value="5"
|
|
1033
1043
|
/>
|
|
@@ -1117,7 +1127,7 @@ exports[`numberInput renders value 1`] = `
|
|
|
1117
1127
|
class="pf-v5-c-input-group__item"
|
|
1118
1128
|
>
|
|
1119
1129
|
<div
|
|
1120
|
-
class="pf-v5-c-form-control"
|
|
1130
|
+
class="pf-v5-c-form-control pf-m-readonly"
|
|
1121
1131
|
>
|
|
1122
1132
|
<input
|
|
1123
1133
|
aria-invalid="false"
|
|
@@ -1125,6 +1135,7 @@ exports[`numberInput renders value 1`] = `
|
|
|
1125
1135
|
data-ouia-component-id="OUIA-Generated-TextInputBase-5"
|
|
1126
1136
|
data-ouia-component-type="PF5/TextInput"
|
|
1127
1137
|
data-ouia-safe="true"
|
|
1138
|
+
readonly=""
|
|
1128
1139
|
type="number"
|
|
1129
1140
|
value="90"
|
|
1130
1141
|
/>
|
|
@@ -1209,7 +1220,7 @@ exports[`numberInput renders warning validated 1`] = `
|
|
|
1209
1220
|
class="pf-v5-c-input-group__item"
|
|
1210
1221
|
>
|
|
1211
1222
|
<div
|
|
1212
|
-
class="pf-v5-c-form-control pf-m-warning"
|
|
1223
|
+
class="pf-v5-c-form-control pf-m-readonly pf-m-warning"
|
|
1213
1224
|
>
|
|
1214
1225
|
<input
|
|
1215
1226
|
aria-invalid="false"
|
|
@@ -1217,6 +1228,7 @@ exports[`numberInput renders warning validated 1`] = `
|
|
|
1217
1228
|
data-ouia-component-id="OUIA-Generated-TextInputBase-4"
|
|
1218
1229
|
data-ouia-component-type="PF5/TextInput"
|
|
1219
1230
|
data-ouia-safe="true"
|
|
1231
|
+
readonly=""
|
|
1220
1232
|
type="number"
|
|
1221
1233
|
value="0"
|
|
1222
1234
|
/>
|
|
@@ -10,7 +10,7 @@ import OutlinedClockIcon from '@patternfly/react-icons/dist/esm/icons/outlined-c
|
|
|
10
10
|
|
|
11
11
|
## Demos
|
|
12
12
|
|
|
13
|
-
In this demo, learn how to use a [CalendarMonth](/components/calendar-month) component and a [Dropdown](/components/dropdown) component to compose a simple DateTimePicker. The input is read only, meaning that the following example does not cover pasting a copied date and time. Also, you can pick the time only from the predefined options and cannot change it in the input.
|
|
13
|
+
In this demo, learn how to use a [CalendarMonth](/components/date-and-time/calendar-month) component and a [Dropdown](/components/menus/dropdown) component to compose a simple DateTimePicker. The input is read only, meaning that the following example does not cover pasting a copied date and time. Also, you can pick the time only from the predefined options and cannot change it in the input.
|
|
14
14
|
|
|
15
15
|
### Date and time picker
|
|
16
16
|
|
|
@@ -13,8 +13,8 @@ import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
|
13
13
|
import { Link } from '@reach/router';
|
|
14
14
|
import pfLogoSm from './pf-logo-small.svg';
|
|
15
15
|
|
|
16
|
-
Note: Application launcher is built on
|
|
17
|
-
To add a tooltip, use the `tooltip` prop and optionally add more tooltip props by using `tooltipProps`. For more tooltip information go to [
|
|
16
|
+
Note: Application launcher is built on dropdown, for extended API go to [dropdown](/components/menus/dropdown) documentation.
|
|
17
|
+
To add a tooltip, use the `tooltip` prop and optionally add more tooltip props by using `tooltipProps`. For more tooltip information go to [tooltip](/components/tooltip).
|
|
18
18
|
|
|
19
19
|
## Examples
|
|
20
20
|
|
package/src/helpers/OUIA/OUIA.md
CHANGED
|
@@ -59,38 +59,28 @@ import { Button } from '@patternfly/react-core';
|
|
|
59
59
|
* [Breadcrumb](/components/breadcrumb)
|
|
60
60
|
* [Button](/components/button)
|
|
61
61
|
* [Card](/components/card)
|
|
62
|
-
* [Checkbox](/components/checkbox)
|
|
62
|
+
* [Checkbox](/components/forms/checkbox)
|
|
63
63
|
* [Chip](/components/chip)
|
|
64
|
-
* [
|
|
65
|
-
* [
|
|
66
|
-
* [
|
|
67
|
-
* [
|
|
68
|
-
* [DropdownSeparator](/components/dropdown)
|
|
69
|
-
* [DropdownToggle](/components/dropdown)
|
|
70
|
-
* [DropdownToggleCheckbox](/components/dropdown)
|
|
71
|
-
* [FormSelect](/components/form-select)
|
|
72
|
-
* [Menu](/components/menu)
|
|
64
|
+
* [Dropdown](/components/menus/dropdown)
|
|
65
|
+
* [DropdownItem](/components/menus/dropdown)
|
|
66
|
+
* [FormSelect](/components/forms/form-select)
|
|
67
|
+
* [Menu](/components/menus/menu)
|
|
73
68
|
* [Modal](/components/modal)
|
|
74
|
-
* [
|
|
75
|
-
* [ModalContent](/components/modal)
|
|
76
|
-
* [Nav](/components/navigation)
|
|
69
|
+
* [Navigation](/components/navigation)
|
|
77
70
|
* [NavExpandable](/components/navigation)
|
|
78
71
|
* [NavItem](/components/navigation)
|
|
79
|
-
* [OptionsMenu](/components/options-menu)
|
|
80
72
|
* [Pagination](/components/pagination)
|
|
81
|
-
* [Radio](/components/radio)
|
|
82
|
-
* [Select](/components/select)
|
|
73
|
+
* [Radio](/components/forms/radio)
|
|
74
|
+
* [Select](/components/menus/select)
|
|
83
75
|
* [Switch](/components/switch)
|
|
84
76
|
* [TabContent](/components/tabs)
|
|
85
77
|
* [Tabs](/components/tabs)
|
|
86
78
|
* [Text](/components/text)
|
|
87
|
-
* [TextInput](/components/text-input)
|
|
79
|
+
* [TextInput](/components/forms/text-input)
|
|
88
80
|
* [Title](/components/title)
|
|
89
81
|
* [Toolbar](/components/toolbar)
|
|
90
82
|
|
|
91
83
|
### react-table package
|
|
92
84
|
|
|
93
|
-
* [RowWrapper](/components/table)
|
|
94
85
|
* [Table](/components/table)
|
|
95
|
-
* [TableComposable](/components/table)
|
|
96
86
|
* [Tr](/components/table)
|