Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Litte updates #300

Merged
merged 92 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
5bd5785
feat: Add appendClassNameOnStyle prop to Button component
TobiTRy Jun 29, 2024
d1cb7fb
feat: Add $noSize prop to generateFancyButton function
TobiTRy Jun 29, 2024
ab98c7d
feat: Add ButtonRoute component with test button
TobiTRy Jun 29, 2024
d08656a
feat: Add hoverLayer prop to FancyBox component
TobiTRy Jun 29, 2024
4c7c701
feat: Add FancyBox component with hoverLayer prop
TobiTRy Jun 29, 2024
f66a0fa
refactor: Update generateLines.ts to improve readability and add vert…
TobiTRy Jun 30, 2024
a486cda
refactor: Update SwitchActiveIndicator.style.tsx to add leftline and …
TobiTRy Jun 30, 2024
59bacc8
feat: Add indicatorHeight prop to TActiveSwitchIndicator model
TobiTRy Jun 30, 2024
ef853c8
feat: Update SwitchActiveIndicator to use HelperFunction in documenta…
TobiTRy Jun 30, 2024
6fff66b
feat: Add SideBar component with styling and model
TobiTRy Jun 30, 2024
1516fb5
feat: Add SideBarRoute component
TobiTRy Jun 30, 2024
7191547
feat: Add FancySideBar component with styling and slots
TobiTRy Jul 1, 2024
7d6b1e0
feat: Add SideBarItem component with styling
TobiTRy Jul 1, 2024
89bf50e
refactor: Update SideBar styling and structure
TobiTRy Jul 1, 2024
0ee4ec1
refactor: Update SideBarItem styling and structure
TobiTRy Jul 1, 2024
b72f36f
feat: Add SideBarItem and SVGCheckMark to FancySideBar component
TobiTRy Jul 1, 2024
9ec817b
feat: Add SVGDoubleChevronLeft and SVGDoubleChevronRight icons
TobiTRy Jul 2, 2024
3c65802
refactor: Update SideBar styling and structure
TobiTRy Jul 2, 2024
2fd906b
refactor: Update SideBarItem styling and structure
TobiTRy Jul 2, 2024
a79e9e3
refactor: Remove unused Item component from FancySideBar
TobiTRy Jul 2, 2024
592f269
feat: Add FancyButton to SideBarRoute for toggling sidebar visibility
TobiTRy Jul 2, 2024
28677a5
refactor: Update SideBar styling and structure
TobiTRy Jul 3, 2024
6be3b67
refactor: Update SideBarRoute and FancySideBarItem components
TobiTRy Jul 3, 2024
bef2756
refactor: Update SideBarItem styling and structure
TobiTRy Jul 3, 2024
706f372
refactor: Update FancySideBar component styling and structure
TobiTRy Jul 3, 2024
afeba9e
refactor: Update SideBarRoute to use FancySideBarOpenButton for toggl…
TobiTRy Jul 3, 2024
bfe6ac3
refactor: Update SideBar styling and structure
TobiTRy Jul 4, 2024
5c252e1
refactor: Update SideBarItem component to support wide prop
TobiTRy Jul 4, 2024
089da61
refactor: Update SideBarRoute to use FancySideBarOpenButton for toggl…
TobiTRy Jul 4, 2024
1c78ae3
refactor: Update SideBar styling and structure
TobiTRy Jul 4, 2024
7459334
refactor: Update SideBarItem component to support wide prop
TobiTRy Jul 4, 2024
a5561de
refactor: Update FancySideBar component to improve styling and structure
TobiTRy Jul 4, 2024
79dbbc3
refactor: Update SideBarItem component to remove unused code and impr…
TobiTRy Jul 4, 2024
7952d9f
refactor: Update SideBarItem component to support wide prop
TobiTRy Jul 5, 2024
9c8fe44
refactor: Update FancySideBar component to improve styling and structure
TobiTRy Jul 5, 2024
d7e2b4a
refactor: Add TFancySideBarItem model for improved type safety and co…
TobiTRy Jul 5, 2024
07bb272
refactor: Update FancySideBarOpenButton component to use TFancySideBa…
TobiTRy Jul 5, 2024
2c7d1a5
refactor: Update ButtonRoute.module.css to fix indentation and add ne…
TobiTRy Jul 5, 2024
4655011
refactor: Update FancySideBarOpenButton component to use TFancySideBa…
TobiTRy Jul 5, 2024
bf7c245
refactor: Improve FancySideBar item click handling
TobiTRy Jul 6, 2024
a90a991
refactor: Add useBreakpointComparison hook for comparing breakpoints
TobiTRy Jul 6, 2024
8d51699
refactor: Add useActiveBreakpoint hook for getting the active breakpoint
TobiTRy Jul 6, 2024
de075a3
refactor: Update useActiveBreakpoint hook to use TBreakPointsSizes ty…
TobiTRy Jul 7, 2024
45af809
refactor: Remove unused id parameter from Modal component
TobiTRy Jul 11, 2024
8e1c4dc
refactor: Update FancyModal component to use key from modal object in…
TobiTRy Jul 11, 2024
9bbcd04
refactor: Remove FancySwipeUpModal state management to separate file
TobiTRy Jul 11, 2024
67d638a
refactor: Update FancySwipeUpModal to use createFancySwipeUpModalStor…
TobiTRy Jul 11, 2024
1c05c73
refactor: Update SwipeUpModalRoute to use createFancySwipeUpModalStor…
TobiTRy Jul 11, 2024
094c73a
refactor: Update FancySwipeUpModal to use createFancySwipeUpModalStor…
TobiTRy Jul 11, 2024
067e4c9
refactor: Update ModalRoute to use FancyButton for opening modal
TobiTRy Jul 11, 2024
7196c63
refactor: Add hover effect to expandable content in ExperimentalRoute
TobiTRy Jul 11, 2024
caf28af
refactor: Improve expandable content in ExperimentalRoute
TobiTRy Jul 11, 2024
c6c701f
refactor: Add isOpen prop to SwipeUpContainer for controlling visibility
TobiTRy Jul 12, 2024
26fa053
refactor: Update SwipeUpModal style and content in SwipeUpModalRoute …
TobiTRy Jul 12, 2024
5a721a1
refactor: Update max-height in SwipeUpContainer.style.tsx and z-index…
TobiTRy Jul 12, 2024
653822f
refactor: Fix typo in SwipeUpModal.style.tsx
TobiTRy Jul 12, 2024
d85b396
refactor: Add hoverLayer prop to ColoredText component
TobiTRy Jul 13, 2024
6fa1f6b
refactor: Update SwipeUpModal style and content
TobiTRy Jul 13, 2024
1c8c98f
refactor: Update FancySwipeUpModal to accept modalConfig prop
TobiTRy Jul 13, 2024
225b6d1
refactor: Update RawTextArea to include startHeight prop
TobiTRy Jul 14, 2024
9a7e586
refactor: Update ScalingSection to handle scaling events and improve UX
TobiTRy Jul 14, 2024
98f1398
refactor: Update SwipeUpModal style and content in SwipeUpModalRoute …
TobiTRy Jul 15, 2024
04816b2
refactor: Update SwipeUpModal style and content in SwipeUpModalRoute …
TobiTRy Jul 17, 2024
cad80f6
refactor: Update SwipeUpModal to use useId hook for generating modalId
TobiTRy Jul 17, 2024
db501fa
refactor: Update transition duration in SwipeUpContainer.style.tsx
TobiTRy Jul 17, 2024
61d3c3e
refactor: Update max-height value in SwipeUpContainer.style.tsx
TobiTRy Jul 18, 2024
acb432a
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 18, 2024
94df904
refactor: Update SwipeUpModal to remove unused FancyTextArea components
TobiTRy Jul 18, 2024
6f6e94b
refactor: Update ScalingSection to handle scaling events and improve UX
TobiTRy Jul 19, 2024
4b21de4
refactor: Improve modal scaling and fix Safari bug in SwipeUpModal
TobiTRy Jul 19, 2024
b9b7cfe
refactor: Remove unused FancyTextArea components in SwipeUpModal
TobiTRy Jul 19, 2024
11aa03e
refactor: Remove unused FancyTextArea components in SwipeUpModal
TobiTRy Jul 19, 2024
f48d784
refactor: Improve modal scaling and fix Safari bug in SwipeUpModal
TobiTRy Jul 19, 2024
8f784c5
refactor: Update ScalingSection to handle scaling events and improve UX
TobiTRy Jul 19, 2024
23fd0d0
refactor: Remove unused style prop in SwipeUpContainer.model.ts
TobiTRy Jul 19, 2024
a4461ce
refactor: Update max-height value in SwipeUpContainer.style.tsx
TobiTRy Jul 19, 2024
11d1bbb
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 19, 2024
13a337d
refactor: Improve modal scaling and fix Safari bug in SwipeUpModal
TobiTRy Jul 19, 2024
b6efd02
refactor: Add additional FancyTextArea components in SwipeUpModal
TobiTRy Jul 19, 2024
fb1efdb
refactor: Update BackDrop component to improve animation and unmounti…
TobiTRy Jul 19, 2024
1093dfd
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 20, 2024
9da0473
refactor: Improve modal scaling and fix Safari bug in SwipeUpModal
TobiTRy Jul 20, 2024
b8d8c9c
fix: scroll bug
TobiTRy Jul 20, 2024
c18e045
refactor: Remove unused state and improve performance in BackDrop com…
TobiTRy Jul 20, 2024
43932ac
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 20, 2024
f40985b
update scrolling
TobiTRy Jul 21, 2024
8bf15dd
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 21, 2024
dc803e7
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 21, 2024
6f34dcb
refactor: Update SwipeUpModal to fix Safari bug and improve modal hei…
TobiTRy Jul 21, 2024
e54cf32
refactor: Improve modal scaling and fix Safari bug in SwipeUpModal
TobiTRy Jul 25, 2024
e5a1e81
update: version
TobiTRy Jul 26, 2024
14449e0
Merge branch 'develop' into litte-updates
TobiTRy Jul 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ export * from '@/components/molecules/LabeledInput';
export * from '@/components/molecules/Stepper';
export * from '@/components/atoms/RawButton';
export * from '@/components/molecules/Fieldset';
export * from '@/components/molecules/SideBar';
export * from '@/components/molecules/SideBarItem';

// ---------- Organisms ------- //
export * from '@/components/organisms/FancyButton';
Expand All @@ -137,6 +139,7 @@ export * from '@/components/organisms/FancyTextInput';
export * from '@/components/organisms/FancyColorInput';
export * from '@/components/organisms/FancyListBox';
export * from '@/components/organisms/FancyTextArea';
export * from '@/components/organisms/FancySideBar';

// ---------- Templates ------- //
export * from '@/components/templates/FancyInfoCard';
Expand All @@ -153,6 +156,8 @@ export * from '@/components/templates/FancyGridTemplate';
export * from '@/components/templates/FancyGridTemplateItem';
export * from '@/components/templates/FancySkeletonGrid';
export * from '@/components/templates/FancySystemMessageBox';
export * from '@/components/templates/FancySideBarItem';
export * from '@/components/templates/FancySideBarOpenButton';

// ---------- Utils/Hooks ------- //
export * from '@/components/shared/FancyPopover';
Expand All @@ -165,6 +170,8 @@ export * from '@/design/theme/FancyThemeProvider';
export * from '@/utils/functions/clampNumber';
export * from '@/utils/functions/copyToClipBoard';
export * from '@/utils/functions/calcCSSValuesWithOffset';
export * from '@/utils/hooks/useActiveBreakpoint';
export * from '@/utils/hooks/useBreakpointComparison';

// ---------- Design ------- //
export * from '@/design/designFunctions/calcBorderRadiusOnAlignment';
Expand Down
30 changes: 24 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, Route, BrowserRouter as Router, Routes } from 'react-router-dom';
import FancyThemeProvider from '@/design/theme/FancyThemeProvider/FancyThemeProvider';
import { TTheme } from '@/types/TTheme';
import { styled } from 'styled-components';
import { DefaultStyle, FancyModal, FancySwipeUpModal } from '../lib';
import { DefaultStyle, FancyModal } from '../lib';
import ButtonRoute from './Routes/BottonRoute/ButtonRoute';
import CradRoute from './Routes/CardRoute/CradRoute';
import CheckboxRoute from './Routes/CheckboxRoute/CheckboxRoute';
Expand Down Expand Up @@ -36,10 +36,12 @@ import ToastMessageRoute from './Routes/ToastMessageRoute/ToastMessageRoute';
import Typogrphy from './Routes/Typography/Typogrphy';

import FancyListBoxRoute from '@/Routes/FancyListBoxRoute/FancyListBoxRoute';
import PasswordStrengthMeterRoute from '@/Routes/PasswordStrengthMeterRoute/PasswordStrengthMeterRoute';
import SideBarRoute from '@/Routes/SideBarRoute/SideBarRoute';
import SkeletonRoute from '@/Routes/SkeletonRoute/SkeletonRoute';
import TextGradientRoute from '@/Routes/TextGradientRoute/TextGradientRoute';
import StepperRoute from '@/Routes/StepperRoute/StepperRoute';
import PasswordStrengthMeterRoute from '@/Routes/PasswordStrengthMeterRoute/PasswordStrengthMeterRoute';
import SwitchActiveIndicatorRoute from '@/Routes/SwitchActiveIndicatorRoute/SwitchActiveIndicatorRoute';
import TextGradientRoute from '@/Routes/TextGradientRoute/TextGradientRoute';
import { useFancyModalStore } from './Routes/ModalRoute/ModalRoute';
// const Icon = (
// <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
Expand Down Expand Up @@ -78,9 +80,16 @@ function App() {
<Router>
<FancyThemeProvider>
<DefaultStyle />
<FancySwipeUpModal appendToDomID="modal" />
<FancyModal appendToDomID="modal" closeModal={closeModal} modals={modals} />
<div>

<FancyModal
appendToDomID="modal"
closeModal={(id) => {
console.log(id);
closeModal(id);
}}
modals={modals}
/>
<div style={{ height: '100vh' }}>
<nav>
<OwnUl>
<li>
Expand Down Expand Up @@ -188,6 +197,13 @@ function App() {
<li>
<Link to="/passwordstrengthmeter">PasswordStrengthMeter</Link>
</li>
<li>
<Link to="/switchactiveindicator">SwitchActiveIndicator</Link>
</li>
<li>
<Link to="/sidebar">SideBar</Link>
</li>

<li>
<Link to="/experimental">Experimental</Link>
</li>
Expand Down Expand Up @@ -232,6 +248,8 @@ function App() {
<Route path="/TextGradient" element={<TextGradientRoute />} />
<Route path="/stepper" element={<StepperRoute />} />
<Route path="/passwordstrengthmeter" element={<PasswordStrengthMeterRoute />} />
<Route path="/switchactiveindicator" element={<SwitchActiveIndicatorRoute />} />
<Route path="/sidebar" element={<SideBarRoute />} />
<Route path="/" element={<SwipeUpModalRoute />} />
</Routes>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/Routes/BottonRoute/ButtonRoute.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.test {
background-color: red;
padding: 12px;
}
5 changes: 5 additions & 0 deletions src/Routes/BottonRoute/ButtonRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const Icon = (
</svg>
);

import style from './ButtonRoute.module.css';

export default function ButtonRoute() {
const [isLoading, setIsLoading] = useState(false);

Expand Down Expand Up @@ -134,6 +136,9 @@ export default function ButtonRoute() {
borderRadius="sm"
/>
</DesignArea>
<DesignArea title="Buttons" style={backgroundColor}>
<FancyButton className={style.test} appendClassNameOnStyle={true} noSize label="Test" themeType="primary" />
</DesignArea>
</DesignWrapper>
);
}
51 changes: 51 additions & 0 deletions src/Routes/ExperimentalRoute/ExperimentalRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { FancyNumberInput } from '@/components/organisms/FancyNumberInput';
import { FancyFlexBox } from '@/components/templates/FancyFlexBox';
import { FancyTabSwitch } from '@/components/organisms/FancyTabSwitch';
import DynamicComponentWrapper from '@/components/atoms/DynamicComponentWrapper/DynamicComponentWrapper';
import { FancyBox } from '@/components/atoms/FancyBox';
import { SwipeUpContainer } from '@/components/atoms/SwipeUpContainer';

const Icon = (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
Expand Down Expand Up @@ -60,6 +62,8 @@ export default function ExperimentalRoute() {
const updateTheme = themeStore((state) => state.updateTheme);
const switchTheme = themeStore((state) => state.switchTheme);
const [password, setPassword] = useState('');
const [isHover, setIsHover] = useState(false);
const [modalPosition, setModalPosition] = useState({ height: '100%' });

const [selectedValue, setSelectedValue] = useState(null);

Expand All @@ -86,6 +90,53 @@ export default function ExperimentalRoute() {
</DynamicComponentWrapper>

<FancyTabSwitch wide label="test" layer={1} values={defaultProps} />

<div
onMouseEnter={() => setIsHover(true)}
onMouseLeave={() => setIsHover(false)}
style={{
position: 'fixed',
bottom: '0',
padding: '20px',
backgroundColor: 'black',
display: 'grid',
gridTemplateRows: isHover ? '1fr' : '0fr',
transition: 'grid-template-rows 0.5s ease-out',
}}
>
<div style={{ overflow: 'hidden' }}>
<div style={{ height: '100px' }}>
<div style={{ display: 'flex', flexDirection: 'column', gap: '18px' }}>
<FancyNumberInput label="Email" />
<FancyButton label="Close Modal" />
</div>
</div>
</div>
</div>

<div
style={{
position: 'fixed',
left: '0',
bottom: '0',
padding: '20px',
backgroundColor: 'black',
display: 'grid',
gridTemplateRows: isHover ? '1fr' : '0fr',
transition: 'grid-template-rows 0.5s ease-out',
}}
>
<SwipeUpContainer isOpen={isHover}>
<div style={{ display: 'flex', flexDirection: 'column', gap: '18px' }}>
<FancyNumberInput label="Email" />
<FancyButton label="Close Modal" />
</div>
</SwipeUpContainer>
</div>

<FancyBox hoverLayer={4}>
<p>Test</p>
</FancyBox>
</DesignWrapper>
</>
);
Expand Down
1 change: 1 addition & 0 deletions src/Routes/ModalRoute/ModalRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function ModalRoute() {
{ isCloseable: true }
);
};

return (
<section>
<FancyButton onClick={handleModalCreation} sizeC="sm" label="open modal"></FancyButton>
Expand Down
152 changes: 152 additions & 0 deletions src/Routes/SideBarRoute/SideBarRoute.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
import SideBar from '@/components/molecules/SideBar/SideBar';
import { DesignArea, DesignWrapper } from '@/Routes/DesignWrapper/Wrapper';
import { FancySideBar } from '@/components/organisms/FancySideBar';
import { useState } from 'react';
import SVGCheckMark from '@/components/icons/SVGCheckMark/SVGCheckMark';
import { FancySideBarItem } from '@/components/templates/FancySideBarItem';
import FancySideBarOpenButton from '@/components/templates/FancySideBarOpenButton/FancySideBarOpenButton';

export default function SideBarRoute() {
const [isOpen, setIsOpen] = useState(false);

return (
<DesignWrapper style={{ height: '100%' }}>
<DesignArea title="Sidebbar" style={{ display: 'flex', flexDirection: 'column' }}>
<button onClick={() => setIsOpen(!isOpen)}>Toggle SideBar</button>

<div style={{ height: '400px', display: 'flex', justifyContent: 'flex-end' }}>
<FancySideBar
sizeC="lg"
isOpen={isOpen}
openWidth="200px"
align="right"
slotContent={[
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
<FancySideBarItem noMargin sizeC="lg" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />,
]}
slotBottom={
<FancySideBarOpenButton
arrowDirectionClosed="right"
onClick={() => setIsOpen(!isOpen)}
sizeC="lg"
justify="left"
noMargin
isOpen={isOpen}
/>
}
slotTop={
<FancySideBarOpenButton
arrowDirectionClosed="right"
onClick={() => setIsOpen(!isOpen)}
sizeC="lg"
noMargin
justify="left"
isOpen={isOpen}
/>
}
/>
</div>

<div style={{ height: '400px' }}>
<SideBar sizeC="md" isOpen={isOpen} openWidth="200px">
<FancySideBarItem
noMargin
wide
layer={2}
borderRadius={'0'}
sizeC="md"
label="Test"
hoverLayer={4}
icon={<SVGCheckMark />}
/>

<FancySideBarItem
sizeC="md"
label="Test"
hoverLayer={4}
noMargin
wide
icon={
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#e8eaed"
>
<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z" />
</svg>
}
/>
<FancySideBarItem noMargin wide sizeC="md" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />

<FancySideBarOpenButton onClick={() => setIsOpen(!isOpen)} justify="center" sizeC="md" isOpen={isOpen} />
</SideBar>
</div>

<div style={{ height: '400px' }}>
<SideBar sizeC="md" isOpen={isOpen} openWidth="200px">
<FancySideBarItem sizeC="md" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />

<FancySideBarItem
sizeC="md"
label="Test"
hoverLayer={4}
icon={
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#e8eaed"
>
<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z" />
</svg>
}
/>
<FancySideBarItem sizeC="md" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />

<FancySideBarOpenButton onClick={() => setIsOpen(!isOpen)} justify="center" sizeC="md" isOpen={isOpen} />
</SideBar>
</div>

<div style={{ height: '400px' }}>
<SideBar sizeC="md" isOpen={isOpen} openWidth="200px">
<FancySideBarItem sizeC="md" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />

<FancySideBarItem
sizeC="md"
label="Test"
hoverLayer={4}
icon={
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#e8eaed"
>
<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z" />
</svg>
}
/>
<FancySideBarItem sizeC="md" label="Test" hoverLayer={4} icon={<SVGCheckMark />} />

<FancySideBarOpenButton onClick={() => setIsOpen(!isOpen)} justify="center" sizeC="md" isOpen={isOpen} />
</SideBar>
</div>
<div style={{ height: '400px' }}>
<SideBar isOpen={isOpen} openWidth="200px">
<p>AJjk</p>
</SideBar>
</div>
</DesignArea>
</DesignWrapper>
);
}
Loading
Loading