import { Fragment, useState } from 'react'; import { Button, ButtonVariant, Content, DataList, DataListAction, DataListCell, DataListItem, DataListItemCells, DataListItemRow, Toolbar, ToolbarItem, ToolbarContent, ToolbarToggleGroup, ToolbarGroup, Divider, Drawer, DrawerActions, DrawerCloseButton, DrawerContent, DrawerContentBody, DrawerHead, DrawerPanelBody, DrawerPanelContent, Flex, FlexItem, InputGroup, InputGroupItem, PageSection, Progress, Stack, StackItem, TextInput, Title, Select, SelectOption, SelectOptionProps, MenuToggle } from '@patternfly/react-core'; import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper'; import RhUiCodeIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-code-icon'; import RhUiBranchFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-branch-fill-icon'; import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon'; import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon'; import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon'; import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon'; import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon'; interface SelectOptionType extends Omit { label: string; } const statusOptions: SelectOptionType[] = [ { value: 'New', label: 'New' }, { value: 'Pending', label: 'Pending' }, { value: 'Running', label: 'Running' }, { value: 'Cancelled', label: 'Cancelled' } ]; const riskOptions: SelectOptionType[] = [ { value: 'Low', label: 'Low' }, { value: 'Medium', label: 'Medium' }, { value: 'High', label: 'High' } ]; export const PrimaryDetailFullPage: React.FunctionComponent = () => { const [isDrawerExpanded, setIsDrawerExpanded] = useState(false); const [drawerPanelBodyContent, setDrawerPanelBodyContent] = useState(''); const [inputValue, setInputValue] = useState(''); const [statusIsOpen, setStatusIsOpen] = useState(false); const [statusSelected, setStatusSelected] = useState('Status'); const [riskIsOpen, setRiskIsOpen] = useState(false); const [riskSelected, setRiskSelected] = useState('Risk'); const [selectedDataListItemId, setSelectedDataListItemId] = useState(''); const onStatusSelect = (_event: React.MouseEvent | undefined, value: string | number | undefined) => { setStatusSelected(value); setStatusIsOpen(false); }; const onRiskSelect = (_event: React.MouseEvent | undefined, value: string | number | undefined) => { setRiskSelected(value); setRiskIsOpen(false); }; const onSelectDataListItem = ( _event: React.MouseEvent | React.KeyboardEvent, id: string ) => { setSelectedDataListItemId(id); setIsDrawerExpanded(true); setDrawerPanelBodyContent(id.charAt(id.length - 1)); }; const onCloseDrawerClick = (_event: React.MouseEvent) => { setIsDrawerExpanded(false); setSelectedDataListItemId(''); }; const toggleGroupItems = ( , value: string) => setInputValue(value)} value={inputValue} /> ]} />

patternfly-elements

PatternFly elements
10 4 5 7 5 5 Updated 2 days ago
, ]} />

patternfly

Working repo for PatternFly 5 https://pf5.patternfly.org/
10 4 5 Updated 2 days ago
, ]} />

patternfly-elements

PatternFly elements
10 4 5 7 5 5 Updated 2 days ago
, ]} />
); return (

Main title

Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because
of it's relative line height of 1.5.

{drawerContent}
); };