Skip to content

Commit

Permalink
Merge pull request #96 from appwrite/style-level-10
Browse files Browse the repository at this point in the history
style: level 10
  • Loading branch information
TorstenDittmann authored Nov 16, 2023
2 parents a8bec1b + 6427eae commit a2e9f11
Show file tree
Hide file tree
Showing 40 changed files with 1,170 additions and 572 deletions.
6 changes: 6 additions & 0 deletions .changeset/dirty-hounds-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@appwrite.io/pink-icons": patch
"@appwrite.io/pink": patch
---

patch bump
14 changes: 14 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"mode": "pre",
"tag": "sl10",
"initialVersions": {
"@appwrite.io/kitchensink": "0.0.0",
"@appwrite.io/pink-design": "0.0.0-rc1",
"@appwrite.io/fonts": "0.0.0",
"@appwrite.io/pink-icons": "0.0.6",
"@appwrite.io/pink": "0.0.6"
},
"changesets": [
"dirty-hounds-do"
]
}
364 changes: 364 additions & 0 deletions apps/kitchensink/cover-frame-2.html

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions apps/kitchensink/error-console-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@appwrite/kitchensink - user demo</title>
</head>

<body>
<main class="" id="main">
{{> topNav}}
<section class="main-content">
<div class="top-cover">
<div class="container">

</div>
</div>
<div class="container">
<div class="modal u-width-full-line u-margin-inline-auto u-margin-block-start-negative-168">
<form class="modal-form">
<header class="modal-header">
<div class="u-flex u-main-space-between u-cross-center u-gap-16">
<h4 class="modal-title heading-level-4">Organization not found</h4>
</div>
</header>
<div class="modal-content">
<p>The organization with the requested ID could not be found.</p>
<div class="u-flex u-margin-block-start-32 u-gap-16">
<button class="button">
<span class="text">Go to console</span>
</button>
</div>
</div>
</form>
</div>
</div>

<footer class="main-footer"></footer>
</section>
</main>
<script type="module" src="/main.js"></script>
</body>
</html>
44 changes: 44 additions & 0 deletions apps/kitchensink/error-not-found-modal.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@appwrite/kitchensink</title>
</head>

<body>
<div class="u-flex u-full-screen-height u-main-center u-cross-center">
<div class="modal">
<form class="modal-form" method="dialog">
<header class="modal-header">
<div class="u-flex u-main-space-between u-cross-center u-gap-16">
<h4 class="modal-title heading-level-4">Missing Redirect URL </h4>
<button class="button is-text is-small is-only-icon u-hide" aria-label="Close modal">
<span class="icon-x" aria-hidden="true"></span>
</button>
</div>
</header>
<div class="modal-content">
<p>Your Oauth sign in flow is missing a proper redirect URL. Send a request for a new session with a valid callback URL.</p>
<ul class="form-list">
<li class="form-item">
<label class="label u-block">Code</label>
<code class="inline-code u-block u-width-fit-content u-margin-block-start-8">DEPLOYMENT_NOT_FOUND</code>
</li>
</ul>
<div class="u-flex u-gap-16">
<button class="button is-secondary">
<span class="text">OAuth docs</span>
</button>
<button class="button">
<span class="text">Go to console</span>
</button>
</div>
</div>
</form>
</div>
</div>

<script type="module" src="/main.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions apps/kitchensink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"license": "ISC",
"devDependencies": {
"@appwrite.io/fonts": "*",
"@appwrite.io/pink": "*",
"@appwrite.io/pink-icons": "*",
"@appwrite.io/pink": "0.0.7-sl10.0",
"@appwrite.io/pink-icons": "0.0.7-sl10.0",
"vite-plugin-handlebars": "^1.6.0"
}
}
3 changes: 3 additions & 0 deletions apps/kitchensink/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const config = {
wizard: new URL("./wizard.html", import.meta.url).pathname,
wizardForm: new URL("./wizard-form.html", import.meta.url).pathname,
coverFrame: new URL("./cover-frame.html", import.meta.url).pathname,
coverFrame2: new URL("./cover-frame-2.html", import.meta.url).pathname,
users: new URL("./users.html", import.meta.url).pathname,
user: new URL("./user.html", import.meta.url).pathname,
functions: new URL("./functions.html", import.meta.url).pathname,
Expand All @@ -37,6 +38,8 @@ const config = {
gettingStarted: new URL("./getting-started.html", import.meta.url).pathname,
modalDemo: new URL("./modal-demo.html", import.meta.url).pathname,
filters: new URL("./filters.html", import.meta.url).pathname,
errorNotFoundModal: new URL("./error-not-found-modal.html", import.meta.url).pathname,
errorConsolePage: new URL("./error-console-page.html", import.meta.url).pathname,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions apps/pink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"devDependencies": {
"@appwrite.io/fonts": "*",
"@appwrite.io/pink": "*",
"@appwrite.io/pink-icons": "*",
"@appwrite.io/pink": "0.0.7-sl10.0",
"@appwrite.io/pink-icons": "0.0.7-sl10.0",
"@types/prismjs": "^1.26.0",
"glob": "^8.0.3",
"sass": "^1.57.1"
Expand Down
17 changes: 17 additions & 0 deletions apps/pink/src/pages/elements/loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,21 @@ description: Use loaders to indicate to users that something is in progress and

<Preview center>
<div class="loader is-small"></div>
</Preview>


## Loading precent state
Work different from the other rotate loaders.
| State Class | Type | |
| -------------------- | -------- | ----------------------------------------------- |
| `is-loading` | Loading | Change behaving from rotating to loading |

| param | represents | Example: |
| ----------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------- |
| `--loading` | Loading precent | `--loading: 65%;` |
| `-loader-bg-color-light` | inner circle color (light-mode) that will fit background-color of the container | `--loader-bg-color-light: var(--color-neutral-5);` |
| `-loader-bg-color-dark` | inner circle color (dark-mode) that will fit background-color of the container | `--loader-bg-color-dark: var(--color-neutral-400);`|

<Preview center>
<div class="loader is-loading" style="--loading:65%; --loader-bg-color-light:var(--color-neutral-5); --loader-bg-color-dark:var(--color-neutral-400);"></div>
</Preview>
56 changes: 56 additions & 0 deletions apps/pink/src/pages/elements/table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ In the Appwrite console, we use three styles of tables:
</table>
</Preview><br /><br /><br />

## Remove Outer Style Table

| Class | Type | |
| ------------------------ | -------------------- | -------------------------------------------------------------------------------- |
| `is-remove-outer-styles` | Without Outer Styles | Secondary table - in the Appwrite console used mostly inside a card or a wizard. |
Expand Down Expand Up @@ -384,10 +386,64 @@ In the Appwrite console, we use three styles of tables:
</div>
</section>
</Preview>

## Remove Outer Style Table - List with Table View

<Preview center>
<section class="card">
<ul class="table is-remove-outer-styles u-sep-block-start">
<li class="table-row">
<label class="table-col u-cursor-pointer">
<div class="u-flex u-cross-center u-gap-8">
<input class="is-small u-margin-inline-end-8" type="radio" name="a" />
<div class="avatar is-size-x-small">
<img src="/assets/node.234c8244.svg" alt="node" />
</div>
<div class="u-flex u-gap-8">
<span class="text">repo-name</span>
<time class="u-color-text-gray" datetime="2011-11-18T14:54:39.929">30m ago</time>
</div>
</div>
</label>
</li>
<li class="table-row">
<label class="table-col u-cursor-pointer">
<div class="u-flex u-cross-center u-gap-8">
<input class="is-small u-margin-inline-end-8" type="radio" name="a" />
<div class="avatar is-size-x-small">
<img src="/assets/node.234c8244.svg" alt="node" />
</div>
<div class="u-flex u-gap-8">
<span class="text">repo-name</span>
<time class="u-color-text-gray" datetime="2011-11-18T14:54:39.929">30m ago</time>
</div>
</div>
</label>
</li>
<li class="table-row">
<label class="table-col u-cursor-pointer">
<div class="u-flex u-cross-center u-gap-8">
<input class="is-small u-margin-inline-end-8" type="radio" name="a" />
<div class="avatar is-size-x-small">
<img src="/assets/node.234c8244.svg" alt="node" />
</div>
<div class="u-flex u-gap-8">
<span class="text">repo-name</span>
<time class="u-color-text-gray" datetime="2011-11-18T14:54:39.929">30m ago</time>
</div>
</div>
</label>
</li>
</ul>
</section>
</Preview>
<br />
<br />
<br />




| Class | Type | |
| ------------------ | ------------ | ---------------------------------------------------------------------------------------------------- |
| `is-sticky-scroll` | Inner Scroll | Used in case the content of a table exceeds the maximum width and the first column should be sticky. |
Expand Down
Loading

2 comments on commit a2e9f11

@vercel
Copy link

@vercel vercel bot commented on a2e9f11 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a2e9f11 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.