mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-29 23:59:53 +08:00
* add: accessibility statement radio icons * update: add form group on radio buttons * add: statement generator * add: statement generator * add: accessibility statement data option * update: create page in WordPress and save it to the option * update: exclude zip file from the git * update: render statement page conditionally * add: statement link layout and settings * add: preload statement data * update: publish the created page and add link for it * update: changed Dynamic Script Loader to WidgetLoader * add: accessibility statement url * update: text and styling * update: styling of the preview text * update: restructure statement generator * add: support for dynamic update in statement links * update: remove index.css file for widget loader * add: widget styling for settings page * add: empty link when hide link is enabled * update: statement page structure and logic * fix: typo * update: convert component into a styled component * fix: styling and layout * update: icons * update: convert radio buttons to styled component * fix: typo and style * add: fading for the link preview * update: import * update: styling and spacing * fix: sidebar layout * update: wpcs to latest version * fix: spacing * fix: wpcs version * add: check for valid statement page * fix: jitters on rendering * fix: use escape attribute * update: settings menu slug and plugin name * fix: menu item rendering * update: definition of the styled text field * add: addPage function to the API * fix: add notification on page creation * add: copy link icon * update: optimize SVGs
36 lines
776 B
JavaScript
36 lines
776 B
JavaScript
import Box from '@elementor/ui/Box';
|
|
import Drawer from '@elementor/ui/Drawer';
|
|
import { MyAccountMenu, SidebarAppBar, SidebarMenu } from '@ea11y/components';
|
|
import { useSettings } from '@ea11y/hooks';
|
|
|
|
const Sidebar = () => {
|
|
const { openSidebar } = useSettings();
|
|
|
|
return (
|
|
<Drawer
|
|
variant="permanent"
|
|
open={openSidebar}
|
|
sx={{ width: 'auto' }}
|
|
PaperProps={{
|
|
sx: {
|
|
position: 'relative',
|
|
minWidth: '120px',
|
|
maxWidth: '300px',
|
|
width: openSidebar ? '100%' : '0',
|
|
transition: 'all 0.3s',
|
|
height: '100%',
|
|
justifyContent: 'space-between',
|
|
padding: 2,
|
|
},
|
|
}}
|
|
>
|
|
<Box>
|
|
<SidebarAppBar />
|
|
<SidebarMenu />
|
|
</Box>
|
|
<MyAccountMenu drawerState={openSidebar} />
|
|
</Drawer>
|
|
);
|
|
};
|
|
|
|
export default Sidebar;
|