@patternfly/react-core 5.0.0-alpha.16 → 5.0.0-alpha.18
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 +16 -0
- package/components/ApplicationLauncher/ApplicationLauncher.d.ts +2 -2
- package/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/components/ApplicationLauncher/ApplicationLauncher.js +1 -1
- package/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +1 -1
- package/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +1 -1
- package/components/ApplicationLauncher/ApplicationLauncherContext.js +1 -1
- package/components/ApplicationLauncher/ApplicationLauncherContext.js.map +1 -1
- package/components/ApplicationLauncher/ApplicationLauncherItem.js +2 -2
- package/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/components/Checkbox/Checkbox.js +1 -1
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
- package/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/components/ClipboardCopy/ClipboardCopy.js +4 -4
- package/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/components/ClipboardCopy/ClipboardCopyExpanded.d.ts +1 -1
- package/components/ClipboardCopy/ClipboardCopyExpanded.d.ts.map +1 -1
- package/components/ClipboardCopy/ClipboardCopyExpanded.js +1 -1
- package/components/ClipboardCopy/ClipboardCopyExpanded.js.map +1 -1
- package/components/Drawer/DrawerPanelContent.d.ts +1 -1
- package/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/components/Drawer/DrawerPanelContent.js +5 -5
- package/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/components/LoginPage/LoginForm.js +1 -1
- package/components/LoginPage/LoginForm.js.map +1 -1
- package/components/Menu/MenuContent.d.ts +1 -1
- package/components/Menu/MenuContent.d.ts.map +1 -1
- package/components/Menu/MenuItem.js +1 -1
- package/components/Menu/MenuItem.js.map +1 -1
- package/components/SkipToContent/SkipToContent.d.ts +2 -11
- package/components/SkipToContent/SkipToContent.d.ts.map +1 -1
- package/components/SkipToContent/SkipToContent.js +6 -20
- package/components/SkipToContent/SkipToContent.js.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts +2 -2
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherContext.js +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherContext.js.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js +2 -2
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
- package/dist/esm/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +4 -4
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.d.ts +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.js +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +5 -5
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/LoginPage/LoginForm.js +1 -1
- package/dist/esm/components/LoginPage/LoginForm.js.map +1 -1
- package/dist/esm/components/Menu/MenuContent.d.ts +1 -1
- package/dist/esm/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js +1 -1
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/SkipToContent/SkipToContent.d.ts +2 -11
- package/dist/esm/components/SkipToContent/SkipToContent.d.ts.map +1 -1
- package/dist/esm/components/SkipToContent/SkipToContent.js +6 -20
- package/dist/esm/components/SkipToContent/SkipToContent.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts +2 -2
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherContext.js +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherContext.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.js +2 -2
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
- package/dist/js/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/js/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/js/components/Checkbox/Checkbox.js +1 -1
- package/dist/js/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +4 -4
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyExpanded.d.ts +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyExpanded.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyExpanded.js +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyExpanded.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +5 -5
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/LoginPage/LoginForm.js +1 -1
- package/dist/js/components/LoginPage/LoginForm.js.map +1 -1
- package/dist/js/components/Menu/MenuContent.d.ts +1 -1
- package/dist/js/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/js/components/Menu/MenuItem.js +1 -1
- package/dist/js/components/Menu/MenuItem.js.map +1 -1
- package/dist/js/components/SkipToContent/SkipToContent.d.ts +2 -11
- package/dist/js/components/SkipToContent/SkipToContent.d.ts.map +1 -1
- package/dist/js/components/SkipToContent/SkipToContent.js +7 -21
- package/dist/js/components/SkipToContent/SkipToContent.js.map +1 -1
- package/dist/umd/react-core.min.js +3 -3
- package/package.json +2 -2
- package/src/components/Accordion/examples/AccordionBordered.tsx +1 -1
- package/src/components/ApplicationLauncher/ApplicationLauncher.tsx +3 -3
- package/src/components/ApplicationLauncher/ApplicationLauncherContext.ts +1 -1
- package/src/components/ApplicationLauncher/ApplicationLauncherItem.tsx +2 -2
- package/src/components/ApplicationLauncher/examples/ApplicationLauncherFavoritesAndSearch.tsx +2 -2
- package/src/components/Card/examples/CardExpandable.tsx +1 -1
- package/src/components/Card/examples/CardExpandableWithIcon.tsx +1 -1
- package/src/components/Card/examples/CardHeaderInCardHead.tsx +1 -1
- package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +1 -1
- package/src/components/Card/examples/CardWithImageAndActions.tsx +2 -2
- package/src/components/Card/examples/CardWithModifiers.tsx +1 -1
- package/src/components/Checkbox/Checkbox.tsx +2 -2
- package/src/components/Checkbox/examples/CheckboxControlled.tsx +1 -1
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +5 -5
- package/src/components/ClipboardCopy/ClipboardCopyExpanded.tsx +2 -2
- package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +1 -1
- package/src/components/Drawer/DrawerPanelContent.tsx +9 -10
- package/src/components/Drawer/examples/DrawerLightGray.tsx +3 -3
- package/src/components/Drawer/examples/DrawerResizableOnRight.tsx +1 -1
- package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +1 -1
- package/src/components/Icon/examples/IconCustomProgress.tsx +1 -1
- package/src/components/Icon/examples/IconProgress.tsx +1 -1
- package/src/components/LoginPage/LoginForm.tsx +1 -1
- package/src/components/Menu/MenuContent.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/examples/MenuBasic.tsx +1 -1
- package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +1 -1
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +13 -5
- package/src/components/Popover/examples/PopoverAdvanced.tsx +2 -2
- package/src/components/ProgressStepper/examples/ProgressStepperBasicWithAlignment.tsx +2 -2
- package/src/components/ProgressStepper/examples/ProgressStepperCompact.tsx +2 -2
- package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +2 -2
- package/src/components/Select/examples/Select.md +18 -18
- package/src/components/SkipToContent/SkipToContent.tsx +15 -32
- package/src/components/SkipToContent/__tests__/SkipToContent.test.tsx +0 -5
- package/src/components/SkipToContent/__tests__/__snapshots__/SkipToContent.test.tsx.snap +12 -13
- package/src/components/Slider/examples/SliderContinuous.tsx +1 -1
- package/src/components/Tabs/examples/TabsBoxLight.tsx +1 -1
- package/src/components/Tabs/examples/TabsDefault.tsx +1 -1
- package/src/components/Tabs/examples/TabsDefaultOverflow.tsx +1 -1
- package/src/components/Tabs/examples/TabsFilled.tsx +1 -1
- package/src/components/Tabs/examples/TabsFilledWithIcons.tsx +1 -1
- package/src/components/Tabs/examples/TabsInset.tsx +1 -1
- package/src/components/Tabs/examples/TabsPageInsets.tsx +1 -1
- package/src/components/Tabs/examples/TabsSubtabs.tsx +1 -1
- package/src/components/Tabs/examples/TabsTooltipReactRef.tsx +1 -1
- package/src/components/Tabs/examples/TabsVertical.tsx +1 -1
- package/src/components/TextArea/examples/TextAreaReadOnly.tsx +1 -1
- package/src/components/TextInput/examples/TextInputReadOnly.tsx +1 -1
- package/src/components/Toolbar/examples/ToolbarSticky.tsx +2 -2
- package/src/components/Tooltip/examples/TooltipOptions.tsx +7 -7
- package/src/demos/CardDemos.md +1 -1
- package/src/demos/Toolbar.md +2 -2
- package/src/next/components/Wizard/examples/WizardStepErrorStatus.tsx +1 -1
- package/src/next/components/Wizard/examples/WizardToggleStepVisibility.tsx +1 -1
|
@@ -117,7 +117,7 @@ class SingleSelectInput extends React.Component {
|
|
|
117
117
|
<Checkbox
|
|
118
118
|
label="isDisabled"
|
|
119
119
|
isChecked={this.state.isDisabled}
|
|
120
|
-
onChange={this.toggleDisabled}
|
|
120
|
+
onChange={(_event, checked) => this.toggleDisabled(checked)}
|
|
121
121
|
aria-label="disabled checkbox"
|
|
122
122
|
id="toggle-disabled"
|
|
123
123
|
name="toggle-disabled"
|
|
@@ -133,7 +133,7 @@ class SingleSelectInput extends React.Component {
|
|
|
133
133
|
<Checkbox
|
|
134
134
|
label="Show icon"
|
|
135
135
|
isChecked={isToggleIcon}
|
|
136
|
-
onChange={this.setIcon}
|
|
136
|
+
onChange={(_event, checked) => this.setIcon(checked)}
|
|
137
137
|
aria-label="show icon checkbox"
|
|
138
138
|
id="toggle-icon"
|
|
139
139
|
name="toggle-icon"
|
|
@@ -843,7 +843,7 @@ class FilteringSingleSelectInput extends React.Component {
|
|
|
843
843
|
<Checkbox
|
|
844
844
|
label="isInputValuePersisted"
|
|
845
845
|
isChecked={isInputValuePersisted}
|
|
846
|
-
onChange={this.toggleInputValuePersisted}
|
|
846
|
+
onChange={(_event, checked) => this.toggleInputValuePersisted(checked)}
|
|
847
847
|
aria-label="toggle input value persisted"
|
|
848
848
|
id="toggle-inline-filter-input-value-persisted"
|
|
849
849
|
name="toggle-inline-filter-input-value-persisted"
|
|
@@ -851,7 +851,7 @@ class FilteringSingleSelectInput extends React.Component {
|
|
|
851
851
|
<Checkbox
|
|
852
852
|
label="isInputFilterPersisted"
|
|
853
853
|
isChecked={isInputFilterPersisted}
|
|
854
|
-
onChange={this.toggleInputFilterPersisted}
|
|
854
|
+
onChange={(_event, checked) => this.toggleInputFilterPersisted(checked)}
|
|
855
855
|
aria-label="toggle input filter persisted"
|
|
856
856
|
id="toggle-inline-filter-input-filter-persisted"
|
|
857
857
|
name="toggle-inline-filter-input-filter-persisted"
|
|
@@ -859,7 +859,7 @@ class FilteringSingleSelectInput extends React.Component {
|
|
|
859
859
|
<Checkbox
|
|
860
860
|
label="isCreatable"
|
|
861
861
|
isChecked={this.state.isCreatable}
|
|
862
|
-
onChange={this.toggleCreatable}
|
|
862
|
+
onChange={(_event, checked) => this.toggleCreatable(checked)}
|
|
863
863
|
aria-label="toggle creatable checkbox"
|
|
864
864
|
id="toggle-inline-filter-creatable-typeahead"
|
|
865
865
|
name="toggle-inline-filter-creatable-typeahead"
|
|
@@ -1359,7 +1359,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1359
1359
|
<Checkbox
|
|
1360
1360
|
label="isDisabled"
|
|
1361
1361
|
isChecked={this.state.isDisabled}
|
|
1362
|
-
onChange={this.toggleDisabled}
|
|
1362
|
+
onChange={(_event, checked) => this.toggleDisabled(checked)}
|
|
1363
1363
|
aria-label="toggle disabled checkbox"
|
|
1364
1364
|
id="toggle-disabled-typeahead"
|
|
1365
1365
|
name="toggle-disabled-typeahead"
|
|
@@ -1367,7 +1367,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1367
1367
|
<Checkbox
|
|
1368
1368
|
label="isCreatable"
|
|
1369
1369
|
isChecked={this.state.isCreatable}
|
|
1370
|
-
onChange={this.toggleCreatable}
|
|
1370
|
+
onChange={(_event, checked) => this.toggleCreatable(checked)}
|
|
1371
1371
|
aria-label="toggle creatable checkbox"
|
|
1372
1372
|
id="toggle-creatable-typeahead"
|
|
1373
1373
|
name="toggle-creatable-typeahead"
|
|
@@ -1375,7 +1375,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1375
1375
|
<Checkbox
|
|
1376
1376
|
label="isCreateOptionOnTop"
|
|
1377
1377
|
isChecked={this.state.isCreateOptionOnTop}
|
|
1378
|
-
onChange={this.toggleCreateOptionOnTop}
|
|
1378
|
+
onChange={(_event, checked) => this.toggleCreateOptionOnTop(checked)}
|
|
1379
1379
|
aria-label="toggle createOptionOnTop checkbox"
|
|
1380
1380
|
id="toggle-create-option-on-top-typeahead"
|
|
1381
1381
|
name="toggle-create-option-on-top-typeahead"
|
|
@@ -1383,7 +1383,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1383
1383
|
<Checkbox
|
|
1384
1384
|
label="onCreateOption"
|
|
1385
1385
|
isChecked={this.state.hasOnCreateOption}
|
|
1386
|
-
onChange={this.toggleCreateNew}
|
|
1386
|
+
onChange={(_event, checked) => this.toggleCreateNew(checked)}
|
|
1387
1387
|
aria-label="toggle new checkbox"
|
|
1388
1388
|
id="toggle-new-typeahead"
|
|
1389
1389
|
name="toggle-new-typeahead"
|
|
@@ -1391,7 +1391,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1391
1391
|
<Checkbox
|
|
1392
1392
|
label="isInputValuePersisted"
|
|
1393
1393
|
isChecked={isInputValuePersisted}
|
|
1394
|
-
onChange={this.toggleInputValuePersisted}
|
|
1394
|
+
onChange={(_event, checked) => this.toggleInputValuePersisted(checked)}
|
|
1395
1395
|
aria-label="toggle input value persisted"
|
|
1396
1396
|
id="toggle-input-value-persisted"
|
|
1397
1397
|
name="toggle-input-value-persisted"
|
|
@@ -1399,7 +1399,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1399
1399
|
<Checkbox
|
|
1400
1400
|
label="isInputFilterPersisted"
|
|
1401
1401
|
isChecked={isInputFilterPersisted}
|
|
1402
|
-
onChange={this.toggleInputFilterPersisted}
|
|
1402
|
+
onChange={(_event, checked) => this.toggleInputFilterPersisted(checked)}
|
|
1403
1403
|
aria-label="toggle input filter persisted"
|
|
1404
1404
|
id="toggle-input-filter-persisted"
|
|
1405
1405
|
name="toggle-input-filter-persisted"
|
|
@@ -1407,7 +1407,7 @@ class TypeaheadSelectInput extends React.Component {
|
|
|
1407
1407
|
<Checkbox
|
|
1408
1408
|
label="shouldResetOnSelect"
|
|
1409
1409
|
isChecked={this.state.resetOnSelect}
|
|
1410
|
-
onChange={this.toggleResetOnSelect}
|
|
1410
|
+
onChange={(_event, checked) => this.toggleResetOnSelect(checked)}
|
|
1411
1411
|
aria-label="toggle reset checkbox"
|
|
1412
1412
|
id="toggle-reset-typeahead"
|
|
1413
1413
|
name="toggle-reset-typeahead"
|
|
@@ -1529,7 +1529,7 @@ class GroupedTypeaheadSelectInput extends React.Component {
|
|
|
1529
1529
|
<Checkbox
|
|
1530
1530
|
label="isCreatable"
|
|
1531
1531
|
isChecked={this.state.isCreatable}
|
|
1532
|
-
onChange={this.toggleCreatable}
|
|
1532
|
+
onChange={(_event, checked) => this.toggleCreatable(checked)}
|
|
1533
1533
|
aria-label="toggle creatable checkbox"
|
|
1534
1534
|
id="toggle-creatable-grouped-typeahead"
|
|
1535
1535
|
name="toggle-creatable-grouped-typeahead"
|
|
@@ -1537,7 +1537,7 @@ class GroupedTypeaheadSelectInput extends React.Component {
|
|
|
1537
1537
|
<Checkbox
|
|
1538
1538
|
label="onCreateOption"
|
|
1539
1539
|
isChecked={this.state.hasOnCreateOption}
|
|
1540
|
-
onChange={this.toggleCreateNew}
|
|
1540
|
+
onChange={(_event, checked) => this.toggleCreateNew(checked)}
|
|
1541
1541
|
aria-label="toggle new checkbox"
|
|
1542
1542
|
id="toggle-new-grouped-typeahead"
|
|
1543
1543
|
name="toggle-new-grouped-typeahead"
|
|
@@ -1756,7 +1756,7 @@ class MultiTypeaheadSelectInput extends React.Component {
|
|
|
1756
1756
|
<Checkbox
|
|
1757
1757
|
label="isCreatable"
|
|
1758
1758
|
isChecked={this.state.isCreatable}
|
|
1759
|
-
onChange={this.toggleCreatable}
|
|
1759
|
+
onChange={(_event, checked) => this.toggleCreatable(checked)}
|
|
1760
1760
|
aria-label="toggle creatable checkbox"
|
|
1761
1761
|
id="toggle-creatable-typeahead-multi"
|
|
1762
1762
|
name="toggle-creatable-typeahead-multi"
|
|
@@ -1764,7 +1764,7 @@ class MultiTypeaheadSelectInput extends React.Component {
|
|
|
1764
1764
|
<Checkbox
|
|
1765
1765
|
label="onCreateOption"
|
|
1766
1766
|
isChecked={this.state.hasOnCreateOption}
|
|
1767
|
-
onChange={this.toggleCreateNew}
|
|
1767
|
+
onChange={(_event, checked) => this.toggleCreateNew(checked)}
|
|
1768
1768
|
aria-label="toggle new checkbox"
|
|
1769
1769
|
id="toggle-new-typeahead-multi"
|
|
1770
1770
|
name="toggle-new-typeahead-multi"
|
|
@@ -1780,7 +1780,7 @@ class MultiTypeaheadSelectInput extends React.Component {
|
|
|
1780
1780
|
<Checkbox
|
|
1781
1781
|
label="shouldResetOnSelect"
|
|
1782
1782
|
isChecked={this.state.resetOnSelect}
|
|
1783
|
-
onChange={this.toggleResetOnSelect}
|
|
1783
|
+
onChange={(_event, checked) => this.toggleResetOnSelect(checked)}
|
|
1784
1784
|
aria-label="toggle multi reset checkbox"
|
|
1785
1785
|
id="toggle-reset-multi-typeahead"
|
|
1786
1786
|
name="toggle-reset-multi-typeahead"
|
|
@@ -2228,7 +2228,7 @@ class SingleSelectInput extends React.Component {
|
|
|
2228
2228
|
<Checkbox
|
|
2229
2229
|
label="isDisabled"
|
|
2230
2230
|
isChecked={this.state.isDisabled}
|
|
2231
|
-
onChange={this.toggleDisabled}
|
|
2231
|
+
onChange={(_event, checked) => this.toggleDisabled(checked)}
|
|
2232
2232
|
aria-label="disabled checkbox panel"
|
|
2233
2233
|
id="toggle-disabled-panel"
|
|
2234
2234
|
name="toggle-disabled-panel"
|
|
@@ -1,45 +1,28 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/SkipToContent/skip-to-content';
|
|
3
|
-
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
4
3
|
import { css } from '@patternfly/react-styles';
|
|
5
|
-
import {
|
|
4
|
+
import { Button, ButtonVariant } from '../Button';
|
|
6
5
|
|
|
7
|
-
export interface SkipToContentProps extends React.HTMLProps<
|
|
6
|
+
export interface SkipToContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
8
7
|
/** The skip to content link. */
|
|
9
8
|
href: string;
|
|
10
9
|
/** Content to display within the skip to content component, typically a string. */
|
|
11
10
|
children?: React.ReactNode;
|
|
12
11
|
/** Additional styles to apply to the skip to content component. */
|
|
13
12
|
className?: string;
|
|
14
|
-
/** Forces the skip to content to display. This is primarily for demonstration purposes and would not normally be used. */
|
|
15
|
-
show?: boolean;
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
export const SkipToContent: React.FunctionComponent<SkipToContentProps> = ({
|
|
16
|
+
children = null,
|
|
17
|
+
className = '',
|
|
18
|
+
href,
|
|
19
|
+
...props
|
|
20
|
+
}: SkipToContentProps) => (
|
|
21
|
+
<div className={css(styles.skipToContent, className)} {...props}>
|
|
22
|
+
<Button variant={ButtonVariant.primary} component="a" href={href}>
|
|
23
|
+
{children}
|
|
24
|
+
</Button>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
if (this.props.show && this.componentRef.current) {
|
|
27
|
-
this.componentRef.current.focus();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
render() {
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
33
|
-
const { children, className, href, show, type, ...rest } = this.props;
|
|
34
|
-
return (
|
|
35
|
-
<a
|
|
36
|
-
{...rest}
|
|
37
|
-
className={css(buttonStyles.button, buttonStyles.modifiers.primary, styles.skipToContent, className)}
|
|
38
|
-
ref={this.componentRef}
|
|
39
|
-
href={href}
|
|
40
|
-
>
|
|
41
|
-
{children}
|
|
42
|
-
</a>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
28
|
+
SkipToContent.displayName = 'SkipToContent';
|
|
@@ -10,8 +10,3 @@ test('Verify Skip To Content', () => {
|
|
|
10
10
|
expect(asFragment()).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
test('Verify Skip To Content if forced to display', () => {
|
|
14
|
-
const { asFragment } = render(<SkipToContent href="#main-content" {...props} show />);
|
|
15
|
-
// Add a useful assertion here.
|
|
16
|
-
expect(asFragment()).toMatchSnapshot();
|
|
17
|
-
});
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Verify Skip To Content 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
6
|
-
class="pf-c-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/>
|
|
5
|
+
<div
|
|
6
|
+
class="pf-c-skip-to-content"
|
|
7
|
+
>
|
|
8
|
+
<a
|
|
9
|
+
aria-disabled="false"
|
|
10
|
+
class="pf-c-button pf-m-primary"
|
|
11
|
+
data-ouia-component-id="OUIA-Generated-Button-primary-1"
|
|
12
|
+
data-ouia-component-type="PF4/Button"
|
|
13
|
+
data-ouia-safe="true"
|
|
14
|
+
href="#main-content"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
18
17
|
</DocumentFragment>
|
|
19
18
|
`;
|
|
@@ -12,7 +12,7 @@ export const SliderContinuous: React.FunctionComponent = () => {
|
|
|
12
12
|
id="thumb-has-tooltip"
|
|
13
13
|
label="hasTooltipOverThumb"
|
|
14
14
|
isChecked={hasTooltipOverThumb}
|
|
15
|
-
onChange={setHasTooltipOverThumb}
|
|
15
|
+
onChange={(_event, checked) => setHasTooltipOverThumb(checked)}
|
|
16
16
|
style={{ marginBottom: 20 }}
|
|
17
17
|
/>
|
|
18
18
|
<Text component={TextVariants.h3}>Slider Value is: {value}</Text>
|
|
@@ -52,7 +52,7 @@ export const TabsBoxLight: React.FunctionComponent = () => {
|
|
|
52
52
|
<Checkbox
|
|
53
53
|
label="Tabs light variation"
|
|
54
54
|
isChecked={isTabsLightScheme}
|
|
55
|
-
onChange={toggleScheme}
|
|
55
|
+
onChange={(_event, checked) => toggleScheme(checked)}
|
|
56
56
|
aria-label="show light scheme variation checkbox"
|
|
57
57
|
id="toggle-scheme"
|
|
58
58
|
name="toggle-scheme"
|
|
@@ -51,7 +51,7 @@ export const TabsDefault: React.FunctionComponent = () => {
|
|
|
51
51
|
<Checkbox
|
|
52
52
|
label="isBox"
|
|
53
53
|
isChecked={isBox}
|
|
54
|
-
onChange={toggleBox}
|
|
54
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
55
55
|
aria-label="show box variation checkbox"
|
|
56
56
|
id="toggle-box-default"
|
|
57
57
|
name="toggle-box-default"
|
|
@@ -63,7 +63,7 @@ export const TabsDefaultOverflow: React.FunctionComponent = () => {
|
|
|
63
63
|
<Checkbox
|
|
64
64
|
label="isBox"
|
|
65
65
|
isChecked={isBox}
|
|
66
|
-
onChange={toggleBox}
|
|
66
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
67
67
|
aria-label="show box variation checkbox on overflow"
|
|
68
68
|
id="toggle-box-overflow"
|
|
69
69
|
name="toggle-box-overflow"
|
|
@@ -40,7 +40,7 @@ export const TabsFilled: React.FunctionComponent = () => {
|
|
|
40
40
|
<Checkbox
|
|
41
41
|
label="isBox"
|
|
42
42
|
isChecked={isBox}
|
|
43
|
-
onChange={toggleBox}
|
|
43
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
44
44
|
aria-label="show box variation checkbox with filled tabs"
|
|
45
45
|
id="toggle-box-filled"
|
|
46
46
|
name="toggle-box-filled"
|
|
@@ -74,7 +74,7 @@ export const TabsFilledWithIcons: React.FunctionComponent = () => {
|
|
|
74
74
|
<Checkbox
|
|
75
75
|
label="isBox"
|
|
76
76
|
isChecked={isBox}
|
|
77
|
-
onChange={toggleBox}
|
|
77
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
78
78
|
aria-label="show box variation checkbox with filled icon tabs"
|
|
79
79
|
id="toggle-box-filled-icon"
|
|
80
80
|
name="toggle-box-filled-icon"
|
|
@@ -54,7 +54,7 @@ export const TabsInset: React.FunctionComponent = () => {
|
|
|
54
54
|
<Checkbox
|
|
55
55
|
label="isBox"
|
|
56
56
|
isChecked={isBox}
|
|
57
|
-
onChange={toggleBox}
|
|
57
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
58
58
|
aria-label="show box variation checkbox with inset"
|
|
59
59
|
id="toggle-box-inset"
|
|
60
60
|
name="toggle-box-inset"
|
|
@@ -49,7 +49,7 @@ export const TabsPageInsets: React.FunctionComponent = () => {
|
|
|
49
49
|
<Checkbox
|
|
50
50
|
label="isBox"
|
|
51
51
|
isChecked={isBox}
|
|
52
|
-
onChange={toggleBox}
|
|
52
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
53
53
|
aria-label="show box variation checkbox with inset"
|
|
54
54
|
id="toggle-box-page-inset"
|
|
55
55
|
name="toggle-box-page-inset"
|
|
@@ -104,7 +104,7 @@ export const TabsSubtabs: React.FunctionComponent = () => {
|
|
|
104
104
|
<Checkbox
|
|
105
105
|
label="isBox"
|
|
106
106
|
isChecked={isBox}
|
|
107
|
-
onChange={toggleBox}
|
|
107
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
108
108
|
aria-label="show box variation checkbox with sub tabs"
|
|
109
109
|
id="toggle-box-secondary"
|
|
110
110
|
name="toggle-box-secondary"
|
|
@@ -61,7 +61,7 @@ export const TabsTooltipReactRef: React.FunctionComponent = () => {
|
|
|
61
61
|
<Checkbox
|
|
62
62
|
label="isBox"
|
|
63
63
|
isChecked={isBox}
|
|
64
|
-
onChange={toggleBox}
|
|
64
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
65
65
|
aria-label="show box variation checkbox"
|
|
66
66
|
id="toggle-box-tooltip-ref"
|
|
67
67
|
name="toggle-box-tooltip-ref"
|
|
@@ -61,7 +61,7 @@ export const TabsVertical: React.FunctionComponent = () => {
|
|
|
61
61
|
<Checkbox
|
|
62
62
|
label="isBox"
|
|
63
63
|
isChecked={isBox}
|
|
64
|
-
onChange={toggleBox}
|
|
64
|
+
onChange={(_event, checked) => toggleBox(checked)}
|
|
65
65
|
aria-label="show box variation checkbox with vertical"
|
|
66
66
|
id="toggle-box-vertical"
|
|
67
67
|
name="toggle-box-vertical"
|
|
@@ -12,7 +12,7 @@ export const TextAreaReadOnly: React.FunctionComponent = () => {
|
|
|
12
12
|
key="isPlain"
|
|
13
13
|
label="Plain read only variant"
|
|
14
14
|
isChecked={isPlainChecked}
|
|
15
|
-
onChange={checked => setIsPlainChecked(checked)}
|
|
15
|
+
onChange={(_event, checked) => setIsPlainChecked(checked)}
|
|
16
16
|
/>
|
|
17
17
|
</div>
|
|
18
18
|
<TextArea
|
|
@@ -11,7 +11,7 @@ export const TextInputReadOnly: React.FunctionComponent = () => {
|
|
|
11
11
|
key="isPlain"
|
|
12
12
|
label="Plain read only variant"
|
|
13
13
|
isChecked={isPlainChecked}
|
|
14
|
-
onChange={checked => setIsPlainChecked(checked)}
|
|
14
|
+
onChange={(_event, checked) => setIsPlainChecked(checked)}
|
|
15
15
|
/>
|
|
16
16
|
</div>
|
|
17
17
|
<TextInput
|
|
@@ -19,7 +19,7 @@ export const ToolbarSticky: React.FunctionComponent = () => {
|
|
|
19
19
|
<Checkbox
|
|
20
20
|
label="Show only even number items"
|
|
21
21
|
isChecked={showEvenOnly}
|
|
22
|
-
onChange={setShowEvenOnly}
|
|
22
|
+
onChange={(_event, checked) => setShowEvenOnly(checked)}
|
|
23
23
|
id="showOnlyEvenCheckbox"
|
|
24
24
|
/>
|
|
25
25
|
</ToolbarItem>
|
|
@@ -31,7 +31,7 @@ export const ToolbarSticky: React.FunctionComponent = () => {
|
|
|
31
31
|
))}
|
|
32
32
|
</ul>
|
|
33
33
|
</div>
|
|
34
|
-
<Checkbox label="Is toolbar sticky" isChecked={isSticky} onChange={setIsSticky} id="isStickyCheckbox" />
|
|
34
|
+
<Checkbox label="Is toolbar sticky" isChecked={isSticky} onChange={(_event, checked) => setIsSticky(checked)} id="isStickyCheckbox" />
|
|
35
35
|
</React.Fragment>
|
|
36
36
|
);
|
|
37
37
|
};
|
|
@@ -33,7 +33,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
33
33
|
<Checkbox
|
|
34
34
|
label="trigger: mouseenter"
|
|
35
35
|
isChecked={trigger.includes('mouseenter')}
|
|
36
|
-
onChange={checked => {
|
|
36
|
+
onChange={(_event, checked) => {
|
|
37
37
|
const updatedTrigger = checked ? trigger.concat('mouseenter') : trigger.filter(t => t !== 'mouseenter');
|
|
38
38
|
setIsVisible(false);
|
|
39
39
|
setTrigger(updatedTrigger);
|
|
@@ -44,7 +44,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
44
44
|
<Checkbox
|
|
45
45
|
label="trigger: focus"
|
|
46
46
|
isChecked={trigger.includes('focus')}
|
|
47
|
-
onChange={checked => {
|
|
47
|
+
onChange={(_event, checked) => {
|
|
48
48
|
const updatedTrigger = checked ? trigger.concat('focus') : trigger.filter(t => t !== 'focus');
|
|
49
49
|
setIsVisible(false);
|
|
50
50
|
setTrigger(updatedTrigger);
|
|
@@ -55,7 +55,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
55
55
|
<Checkbox
|
|
56
56
|
label="trigger: click"
|
|
57
57
|
isChecked={trigger.includes('click')}
|
|
58
|
-
onChange={checked => {
|
|
58
|
+
onChange={(_event, checked) => {
|
|
59
59
|
const updatedTrigger = checked ? trigger.concat('click') : trigger.filter(t => t !== 'click');
|
|
60
60
|
setIsVisible(false);
|
|
61
61
|
setTimeout(() => setTrigger(updatedTrigger));
|
|
@@ -66,7 +66,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
66
66
|
<Checkbox
|
|
67
67
|
label="trigger: manual"
|
|
68
68
|
isChecked={trigger.includes('manual')}
|
|
69
|
-
onChange={checked => {
|
|
69
|
+
onChange={(_event, checked) => {
|
|
70
70
|
const updatedTrigger = checked ? trigger.concat('manual') : trigger.filter(t => t !== 'manual');
|
|
71
71
|
setIsVisible(false);
|
|
72
72
|
setTrigger(updatedTrigger);
|
|
@@ -79,7 +79,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
79
79
|
<Checkbox
|
|
80
80
|
label="content left-aligned"
|
|
81
81
|
isChecked={contentLeftAligned}
|
|
82
|
-
onChange={checked => setContentLeftAligned(checked)}
|
|
82
|
+
onChange={(_event, checked) => setContentLeftAligned(checked)}
|
|
83
83
|
aria-label="content left-aligned"
|
|
84
84
|
id="content_left_aligned"
|
|
85
85
|
/>
|
|
@@ -88,7 +88,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
88
88
|
<Checkbox
|
|
89
89
|
label="enableFlip"
|
|
90
90
|
isChecked={enableFlip}
|
|
91
|
-
onChange={checked => setEnableFlip(checked)}
|
|
91
|
+
onChange={(_event, checked) => setEnableFlip(checked)}
|
|
92
92
|
aria-label="enableFlip"
|
|
93
93
|
id="enable_flip"
|
|
94
94
|
/>
|
|
@@ -124,7 +124,7 @@ export const TooltipOptions: React.FunctionComponent = () => {
|
|
|
124
124
|
<Checkbox
|
|
125
125
|
label="isVisible (also set trigger to only manual to programmatically control it)"
|
|
126
126
|
isChecked={isVisible}
|
|
127
|
-
onChange={checked => setIsVisible(checked)}
|
|
127
|
+
onChange={(_event, checked) => setIsVisible(checked)}
|
|
128
128
|
aria-label="isVisible"
|
|
129
129
|
id="is_visible"
|
|
130
130
|
/>
|
package/src/demos/CardDemos.md
CHANGED
|
@@ -1484,7 +1484,7 @@ CardNestedDemo = () => {
|
|
|
1484
1484
|
key="isToggleRightAligned"
|
|
1485
1485
|
label="Align expand toggle on right"
|
|
1486
1486
|
isChecked={isToggleOnRight}
|
|
1487
|
-
onChange={checked => onCheckClick(!isToggleOnRight)}
|
|
1487
|
+
onChange={(_event, checked) => onCheckClick(!isToggleOnRight)}
|
|
1488
1488
|
/>
|
|
1489
1489
|
</div>
|
|
1490
1490
|
<Card id="nested-cards-card">
|
package/src/demos/Toolbar.md
CHANGED
|
@@ -192,11 +192,11 @@ class ConsoleLogViewerToolbar extends React.Component {
|
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
this.handleFirstSwitchChange = (
|
|
195
|
+
this.handleFirstSwitchChange = (event, firstSwitchChecked) => {
|
|
196
196
|
this.setState({ firstSwitchChecked });
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
this.handleSecondSwitchChange = (
|
|
199
|
+
this.handleSecondSwitchChange = (event, secondSwitchChecked) => {
|
|
200
200
|
this.setState({ secondSwitchChecked });
|
|
201
201
|
};
|
|
202
202
|
|
|
@@ -29,7 +29,7 @@ const StepContentWithAction = () => {
|
|
|
29
29
|
<Checkbox
|
|
30
30
|
label="Give step 1 an error status"
|
|
31
31
|
isChecked={!!errorMessage}
|
|
32
|
-
onChange={checked => setErrorMessage(checked ? 'Some error message' : undefined)}
|
|
32
|
+
onChange={(_event, checked) => setErrorMessage(checked ? 'Some error message' : undefined)}
|
|
33
33
|
id="toggle-error-checkbox"
|
|
34
34
|
name="Toggle Error Checkbox"
|
|
35
35
|
/>
|
|
@@ -31,7 +31,7 @@ const StepContentWithAction: React.FunctionComponent = () => {
|
|
|
31
31
|
<Checkbox
|
|
32
32
|
label="Toggle visibility of the next step"
|
|
33
33
|
isChecked={isToggleStepChecked}
|
|
34
|
-
onChange={checked => setIsToggleStepChecked(checked)}
|
|
34
|
+
onChange={(_event, checked) => setIsToggleStepChecked(checked)}
|
|
35
35
|
id="toggle-hide-step-checkbox"
|
|
36
36
|
name="Toggle Hide Step Checkbox"
|
|
37
37
|
/>
|