-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2433 from coingaming/develop
Deploy 10.10.0
- Loading branch information
Showing
79 changed files
with
90,479 additions
and
47,887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
An accordion is a vertical stack of interactive headings used to toggle the display of further information; each item can be 'collapsed' with just a short label visible or 'expanded' to show the full content. |
67 changes: 67 additions & 0 deletions
67
docs/app/components/server/accordion/examples/ContentOutsideSizes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import Accordion from '@heathmont/moon-base-tw/lib/accordion/Accordion'; | ||
import { ControlsChevronDownSmall } from '@heathmont/moon-icons-tw'; | ||
|
||
export const ContentOutsideSizes = () => ( | ||
<> | ||
<Accordion size="sm"> | ||
<Accordion.Summary> | ||
Size SM | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.ContentOutside> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.ContentOutside> | ||
</Accordion> | ||
<Accordion> | ||
<Accordion.Summary> | ||
Default size MD | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.ContentOutside> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.ContentOutside> | ||
</Accordion> | ||
<Accordion size="lg"> | ||
<Accordion.Summary> | ||
Size LG | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.ContentOutside> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.ContentOutside> | ||
</Accordion> | ||
<Accordion size="xl"> | ||
<Accordion.Summary> | ||
Size XL | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.ContentOutside> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.ContentOutside> | ||
</Accordion> | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Accordion from '@heathmont/moon-base-tw/lib/accordion/Accordion'; | ||
import { ControlsChevronDownSmall } from '@heathmont/moon-icons-tw'; | ||
|
||
export const Default = () => ( | ||
<Accordion> | ||
<Accordion.Summary> | ||
Default | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.Content> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat | ||
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id | ||
est laborum. | ||
</Accordion.Content> | ||
</Accordion> | ||
); |
20 changes: 20 additions & 0 deletions
20
docs/app/components/server/accordion/examples/Disabled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Accordion from '@heathmont/moon-base-tw/lib/accordion/Accordion'; | ||
import { ControlsChevronDownSmall } from '@heathmont/moon-icons-tw'; | ||
|
||
export const Disabled = () => ( | ||
<Accordion disabled> | ||
<Accordion.Summary> | ||
Disabled | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.Content> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat | ||
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id | ||
est laborum. | ||
</Accordion.Content> | ||
</Accordion> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import Accordion from '@heathmont/moon-base-tw/lib/accordion/Accordion'; | ||
import { ControlsChevronDownSmall } from '@heathmont/moon-icons-tw'; | ||
|
||
export const Sizes = () => ( | ||
<> | ||
<Accordion size="sm"> | ||
<Accordion.Summary> | ||
Size SM | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.Content> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.Content> | ||
</Accordion> | ||
<Accordion> | ||
<Accordion.Summary> | ||
Default size MD | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.Content> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.Content> | ||
</Accordion> | ||
<Accordion size="lg"> | ||
<Accordion.Summary> | ||
Size LG | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.Content> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.Content> | ||
</Accordion> | ||
<Accordion size="xl"> | ||
<Accordion.Summary> | ||
Size XL | ||
<ControlsChevronDownSmall /> | ||
</Accordion.Summary> | ||
<Accordion.Content> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea | ||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate | ||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt | ||
mollit anim id est laborum. | ||
</Accordion.Content> | ||
</Accordion> | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { ContentOutsideSizes } from '@/app/components/server/accordion/examples/ContentOutsideSizes'; | ||
import { Default } from '@/app/components/server/accordion/examples/Default'; | ||
import { Disabled } from '@/app/components/server/accordion/examples/Disabled'; | ||
import { Sizes } from '@/app/components/server/accordion/examples/Sizes'; | ||
import ExampleSection from '@/app/components/shared/ExampleSection'; | ||
import { getExamples } from '@/app/utils/getExamples'; | ||
import { MDX } from '@/components/MDX'; | ||
|
||
export default async function Home() { | ||
const { server } = await getExamples(); | ||
return ( | ||
<div className="max-w-7xl flex flex-col gap-4 text-moon-14"> | ||
<h1 className="font-medium text-moon-32">Accordion</h1> | ||
<MDX markdown={server.accordion.description} /> | ||
<ExampleSection | ||
title="Default" | ||
component={<Default />} | ||
code={server.accordion.examples.Default} | ||
/> | ||
<ExampleSection | ||
title="Disabled" | ||
component={<Disabled />} | ||
code={server.accordion.examples.Disabled} | ||
/> | ||
<ExampleSection | ||
title="Sizes" | ||
component={<Sizes />} | ||
code={server.accordion.examples.Sizes} | ||
/> | ||
<ExampleSection | ||
title="ContentOutsideSizes" | ||
component={<ContentOutsideSizes />} | ||
code={server.accordion.examples.ContentOutsideSizes} | ||
/> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const CodePreview = ({ code }: { code: string }) => ( | ||
<pre className="theme-moon-dark bg-gohan text-bulma rounded-moon-s-sm p-4"> | ||
{code} | ||
</pre> | ||
); | ||
|
||
export default CodePreview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const ComponentPreview = ({ component }: { component: JSX.Element }) => ( | ||
<div | ||
className={ | ||
'flex flex-wrap items-center justify-around p-4 gap-2 w-full bg-gohan rounded-moon-s-sm' | ||
} | ||
> | ||
{component} | ||
</div> | ||
); | ||
|
||
export default ComponentPreview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import CodePreview from './CodePreview'; | ||
import ComponentPreview from './ComponentPreview'; | ||
|
||
type Props = { | ||
title: string; | ||
component: JSX.Element; | ||
code: string; | ||
}; | ||
|
||
const ExampleSection = async ({ title, component, code }: Props) => ( | ||
<div className="space-y-2"> | ||
<h2 className="text-moon-24 font-medium">{title}</h2> | ||
<ComponentPreview component={component} /> | ||
<CodePreview code={code} /> | ||
</div> | ||
); | ||
|
||
export default ExampleSection; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
export interface Examples { | ||
"client": { | ||
"accordion": { | ||
"description": "string", | ||
"examples": { | ||
"Default": "string" | ||
} | ||
}, | ||
"button": { | ||
"description": "string", | ||
"examples": { | ||
"Default": "string" | ||
} | ||
} | ||
}, | ||
"server": { | ||
"avatar": { | ||
"description": "string", | ||
"examples": { | ||
"Active": "string", | ||
"Default": "string" | ||
} | ||
}, | ||
"tag": { | ||
"description": "string", | ||
"examples": { | ||
"Default": "string" | ||
} | ||
} | ||
} | ||
}; | ||
client: { | ||
accordion: { | ||
description: 'string'; | ||
examples: { | ||
Default: 'string'; | ||
}; | ||
}; | ||
button: { | ||
description: 'string'; | ||
examples: { | ||
Default: 'string'; | ||
}; | ||
}; | ||
}; | ||
server: { | ||
accordion: { | ||
description: 'string'; | ||
examples: { | ||
Default: 'string'; | ||
Disabled: 'string'; | ||
Sizes: 'string'; | ||
ContentOutsideSizes: 'string'; | ||
}; | ||
}; | ||
avatar: { | ||
description: 'string'; | ||
examples: { | ||
Active: 'string'; | ||
Default: 'string'; | ||
}; | ||
}; | ||
tag: { | ||
description: 'string'; | ||
examples: { | ||
Default: 'string'; | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.