-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated to latest versions, added missing examples
- Loading branch information
Showing
9 changed files
with
191 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,8 @@ | |
"workbox-strategies": "^7.1.0" | ||
}, | ||
"dependencies": { | ||
"adwavecss": "0.0.13", | ||
"adwaveui": "^0.0.8", | ||
"adwavecss": "0.0.14", | ||
"adwaveui": "^0.0.10", | ||
"highlight.js": "^11.9.0" | ||
}, | ||
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" | ||
|
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,41 @@ | ||
import { Alert } from "adwavecss"; | ||
import { CodeSample } from "../../components/code-sample"; | ||
import { Example, ExampleSection } from "../../components/example"; | ||
import { Layout } from "../../layout"; | ||
|
||
export default function AlertExample() { | ||
return ( | ||
<Layout title="Alert Example" activePage="alert"> | ||
<Example title="Alert"> | ||
<ExampleSection label="Info Alert"> | ||
<CodeSample> | ||
<div class={Alert.className({ type: "info" })}> | ||
This is a info alert. | ||
</div> | ||
</CodeSample> | ||
</ExampleSection> | ||
<ExampleSection label="Success Alert"> | ||
<CodeSample> | ||
<div class={Alert.className({ type: "success" })}> | ||
This is a success alert. | ||
</div> | ||
</CodeSample> | ||
</ExampleSection> | ||
<ExampleSection label="Warning Alert"> | ||
<CodeSample> | ||
<div class={Alert.className({ type: "warning" })}> | ||
This is a warning alert. | ||
</div> | ||
</CodeSample> | ||
</ExampleSection> | ||
<ExampleSection label="Error Alert"> | ||
<CodeSample> | ||
<div class={Alert.className({ type: "error" })}> | ||
This is a error alert. | ||
</div> | ||
</CodeSample> | ||
</ExampleSection> | ||
</Example> | ||
</Layout> | ||
); | ||
} |
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,28 @@ | ||
import { CodeSample } from "../../components/code-sample"; | ||
import { Example, ExampleSection } from "../../components/example"; | ||
import { Layout } from "../../layout"; | ||
|
||
export default function BoxExample() { | ||
return ( | ||
<Layout | ||
title="Breadcrumbs Example" | ||
activePage="breadcrumbs" | ||
> | ||
<div class="flexbox"> | ||
<Example title="Box"> | ||
<ExampleSection label="Breadcrumbs"> | ||
<CodeSample> | ||
<div class="breadcrumbs" style="width: fit-content;"> | ||
<button class="breadcrumb-item activable">Root</button> | ||
<span class="breadcrumb-separator"></span> | ||
<button class="breadcrumb-item activable">Documents</button> | ||
<span class="breadcrumb-separator"></span> | ||
<button class="breadcrumb-item active">ADWaveCSS</button> | ||
</div> | ||
</CodeSample> | ||
</ExampleSection> | ||
</Example> | ||
</div> | ||
</Layout> | ||
); | ||
} |
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,53 @@ | ||
import { Box, Button, Card, Input, Skeleton, Typography } from "adwavecss"; | ||
import { CodeSample } from "../../components/code-sample"; | ||
import { Example, ExampleSection } from "../../components/example"; | ||
import { Layout } from "../../layout"; | ||
import { cls } from "../../utils/cls"; | ||
|
||
export default function SkeletonExample() { | ||
return ( | ||
<Layout | ||
title="Skeleton Example" | ||
activePage="skeleton" | ||
> | ||
<div class="flexbox"> | ||
<Example title="Skeleton"> | ||
<ExampleSection | ||
label="Skeleton" | ||
description="Skeleton is a simple container element that alters how other Adwave elements within it are displayed and adds an animated mask over the content." | ||
> | ||
<CodeSample> | ||
<div class={cls(Box.box, "flexbox", "column")} style="padding: 2em"> | ||
<button | ||
class={cls(Button.button)} | ||
style="width: fit-content; margin-bottom: 1em;" | ||
onmousedown="document.querySelector('#skeleton-example').classList.toggle('skeleton')" | ||
> | ||
Toggle Skeleton | ||
</button> | ||
|
||
<div class={Card.card}> | ||
<div id="skeleton-example" class={cls(Skeleton.skeleton, "flexbox", "column")}> | ||
<h1 class={Typography.header}>Some header text</h1> | ||
<span class={Typography.subtitle}>Some subtitle text</span> | ||
<span style="margin-bottom: 1.5em;"></span> | ||
<input class={Input.input} style="margin-bottom: .5em;" /> | ||
<input class={Input.input} style="margin-bottom: .5em;" /> | ||
<input type="checkbox" class="checkbox" style="place-self: flex-end;" /> | ||
<span class={"separator"} /> | ||
<adw-switch style="place-self: flex-end;" /> | ||
<span class={"separator"} /> | ||
<div class={Button.linked} style="place-self: flex-end;"> | ||
<button class={Button.button}>First btn</button> | ||
<button class={Button.button}>Second btn</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</CodeSample> | ||
</ExampleSection> | ||
</Example> | ||
</div> | ||
</Layout> | ||
); | ||
} |
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 |
---|---|---|
|
@@ -179,15 +179,20 @@ | |
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.6.tgz#26da694f75cdb057750f49d099da5e3f3824cb3e" | ||
integrity sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w== | ||
|
||
[email protected], adwavecss@>=0.0.13: | ||
[email protected]: | ||
version "0.0.14" | ||
resolved "https://registry.yarnpkg.com/adwavecss/-/adwavecss-0.0.14.tgz#f83ecfef4abdf6ba92e0173237500027a6d84017" | ||
integrity sha512-RHtIJfGczsv11bSYI4N5s22F267tzwxtin/qWpP2JMOJiz/4u7yK3uLHJ9R+xnLqN/gqLRFVUoik3st8YztBrg== | ||
|
||
adwavecss@>=0.0.13: | ||
version "0.0.13" | ||
resolved "https://registry.yarnpkg.com/adwavecss/-/adwavecss-0.0.13.tgz#a36523165e41be2fefbe64a290a10264ec426271" | ||
integrity sha512-hu6k8PaOKvnluD6fhIq+LSnL0A0VSY6g32Of//uefTtjUMEXmR7czlN/GZct2Z4TxApUAE5srzb9Cuk14n5JwQ== | ||
|
||
adwaveui@^0.0.8: | ||
version "0.0.8" | ||
resolved "https://registry.yarnpkg.com/adwaveui/-/adwaveui-0.0.8.tgz#5a3cb66f71f530120b1074b0345e22ec7f2ba830" | ||
integrity sha512-O/kGYI3b8EKQ9TTHbukFYyPGyhD4fKXp2RcVEpo5Qo3qJVYC7K9cqfsx1l02t1Y0yYSHrwXuHHQUUmu9f+etog== | ||
adwaveui@^0.0.10: | ||
version "0.0.10" | ||
resolved "https://registry.yarnpkg.com/adwaveui/-/adwaveui-0.0.10.tgz#97fed33dbdefb678ca3b04ab47129e16f7099a3d" | ||
integrity sha512-6oj2Y6mSqhVKYy6gydN4pdZeOKIfkOtAB47UaUs90yN7TyatYN/ljaWeUCe7QFTQJGODlgj8ZzkQmtNEY23ZJA== | ||
dependencies: | ||
adwavecss ">=0.0.13" | ||
jsxte "^3.3.1" | ||
|