-
Notifications
You must be signed in to change notification settings - Fork 5
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 #7 from novacbn/0.2.X
v0.2.8
- Loading branch information
Showing
24 changed files
with
567 additions
and
40 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,33 @@ | ||
# F.A.Q. | ||
|
||
## Where can I get help? | ||
|
||
If you need help with something not properly documented or needs clarification, you can visit the [Issue Tracker](https://github.com/novacbn/kahi-ui/issues). File a new issue and it'll be addressed on a spare time effort. | ||
|
||
## How can I contribute? | ||
|
||
Contributions are currently not being actively accepted aside from bug reports or other issues with the library. | ||
|
||
## What Browsers are supported? | ||
|
||
Visit the [Browser Support](./browser-support.md) documentation for more information. | ||
|
||
## Can I use the library without Typescript? | ||
|
||
Yes! However [`svelte-preprocess`](https://github.com/sveltejs/svelte-preprocess) is required to use this library, as it is built in Typescript with no packaging build step. That will be fixed when [SvelteKit](https://kit.svelte.dev)'s [package command](https://kit.svelte.dev/docs#packaging) supports type generation. | ||
|
||
## Can I use the library without Svelte? | ||
|
||
Yes, however there is no official support to do so. Visit [Releases](https://github.com/novacbn/kahi-ui/releases) and grab the `.css` distributable files, and read the library source code on how to do markup, progressive enhancements, etc. | ||
|
||
## Can I use the library on Browsers that don't support or have Javascript disabled? | ||
|
||
Yes! The library is explictly made in mind that Svelte should be used to sprinkle extra functionality ontop of logic baked in HTML / CSS. If you find something not working properly, [file an issue](https://github.com/novacbn/kahi-ui/issues). | ||
|
||
## Is Themeing Supported? | ||
|
||
Not at the moment, but that'll be tackled via global [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) at a later time. | ||
|
||
## Is ARIA Supported? | ||
|
||
While I want to implement full proper support, including keyboard navigation. It is currently not being pursued and will be tackled at a later date. However if you encounter something that'll be detrimental [file an issue](https://github.com/novacbn/kahi-ui/issues). |
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 |
---|---|---|
|
@@ -82,8 +82,8 @@ description="<strong>(TEXTAREA ONLY)</strong> Sets the height of the <code>TextI | |
types=["number", "string"] | ||
|
||
[[properties.TextInput]] | ||
name="resizeable" | ||
description="<strong>(TEXTAREA ONLY)</strong> Sets if the <code>TextArea</code> should be resizeable by the end-user." | ||
name="resizable" | ||
description="<strong>(TEXTAREA ONLY)</strong> Sets if the <code>TextArea</code> should be resizable by the end-user." | ||
types=["boolean", "x", "y"] | ||
|
||
[[properties.TextInput]] | ||
|
@@ -100,11 +100,13 @@ types=["boolean"] | |
```html repl TextInput Preview | ||
<script> | ||
import {Code, Form, TextInput} from "@kahi-ui/framework"; | ||
let value = "[email protected]"; | ||
</script> | ||
|
||
<Form.Control logic_id="textinput-preview"> | ||
<Form.Label>Register E-Mail for Newsletter</Form.Label> | ||
<TextInput /> | ||
<TextInput bind:value /> | ||
<Form.HelpText>Make sure to enter a valid E-Mail Address, e.g. <Code>[email protected]</Code></Form.HelpText> | ||
</Form.Control> | ||
``` | ||
|
@@ -116,3 +118,224 @@ types=["boolean"] | |
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
``` | ||
|
||
## Palette | ||
|
||
You can change the color palette of the `TextInput` via the `palette` property. | ||
|
||
```html repl TextInput Palette | ||
<script> | ||
import {Stack, TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<Stack orientation="horizontal" alignment_y="top" spacing="medium" variation="wrap"> | ||
<TextInput characters="20" value="This is a DEFAULT TextInput" /> | ||
<TextInput palette="accent" characters="20" value="This is a ACCENT TextInput" /> | ||
|
||
<TextInput palette="dark" characters="20" value="This is a DARK TextInput" /> | ||
<TextInput palette="light" characters="20" value="This is a LIGHT TextInput" /> | ||
|
||
<TextInput palette="alert" characters="20" value="This is a ALERT TextInput" /> | ||
<TextInput palette="affirmative" characters="20" value="This is a AFFIRMATIVE TextInput" /> | ||
<TextInput palette="negative" characters="20" value="This is a NEGATIVE TextInput" /> | ||
</Stack> | ||
``` | ||
|
||
## Size | ||
|
||
You can change the size of the `TextInput` via the `size` property. | ||
|
||
```html repl TextInput Size | ||
<script> | ||
import {Stack, TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<Stack orientation="horizontal" alignment_y="top" spacing="medium" variation="wrap"> | ||
<TextInput characters="20" value="This is a DEFAULT TextInput" /> | ||
|
||
<TextInput size="tiny" characters="20" value="This is a TINY TextInput" /> | ||
<TextInput size="small" characters="20" value="This is a SMALL TextInput" /> | ||
|
||
<TextInput size="medium" characters="20" value="This is a MEDIUM TextInput" /> | ||
|
||
<TextInput size="large" characters="20" value="This is a LARGE TextInput" /> | ||
<TextInput size="huge" characters="20" value="This is a HUGE TextInput" /> | ||
</Stack> | ||
``` | ||
|
||
## Block | ||
|
||
You can alter the `TextInput` render as an opaque block via the `variation` property. | ||
|
||
```html repl TextInput Block | ||
<script> | ||
import {Stack, TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<Stack orientation="horizontal" alignment_y="top" spacing="medium" variation="wrap"> | ||
<TextInput variation="block" characters="20" value="This is a DEFAULT TextInput" /> | ||
<TextInput | ||
variation="block" | ||
palette="accent" | ||
characters="20" | ||
value="This is a ACCENT TextInput" | ||
/> | ||
|
||
<TextInput variation="block" palette="dark" characters="20" value="This is a DARK TextInput" /> | ||
<TextInput | ||
variation="block" | ||
palette="light" | ||
characters="20" | ||
value="This is a LIGHT TextInput" | ||
/> | ||
|
||
<TextInput | ||
variation="block" | ||
palette="alert" | ||
characters="20" | ||
value="This is a ALERT TextInput" | ||
/> | ||
<TextInput | ||
variation="block" | ||
palette="affirmative" | ||
characters="20" | ||
value="This is a AFFIRMATIVE TextInput" | ||
/> | ||
<TextInput | ||
variation="block" | ||
palette="negative" | ||
characters="20" | ||
value="This is a NEGATIVE TextInput" | ||
/> | ||
</Stack> | ||
``` | ||
|
||
## Flush | ||
|
||
You can have the `TextInput` to be completely flush document text with no other stylings via the `variation` property. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput Flush | ||
<script> | ||
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
Input some text: | ||
<TextInput | ||
variation="flush" | ||
characters="20" | ||
value="This is a FLUSH TextInput" | ||
/> | ||
``` | ||
|
||
## Input Type | ||
|
||
You can change your input type between `email`, `password`, `search`, `text` **(DEFAULT)**, `url` via the `type` property. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput Input Type | ||
<script> | ||
import {Stack, TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<Stack orientation="horizontal" alignment_y="top" spacing="medium" variation="wrap"> | ||
<TextInput | ||
type="email" | ||
characters="20" | ||
value="[email protected]" | ||
/> | ||
|
||
<TextInput | ||
type="password" | ||
characters="20" | ||
value="abcdef1002" | ||
/> | ||
|
||
<TextInput | ||
type="url" | ||
characters="20" | ||
value="https://google.com" | ||
/> | ||
</Stack> | ||
``` | ||
|
||
## Placeholder | ||
|
||
You can set the `TextInput` to show placeholder text whenever there is no current value. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput Placeholder | ||
<script> | ||
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<TextInput | ||
placeholder="...enter some text" | ||
/> | ||
``` | ||
|
||
## Field Character Size | ||
|
||
You can set how wide your `TextInput` to an approximation of character width via the `characters` property. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput Field Character Size | ||
<script> | ||
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<TextInput | ||
value="This input should be about 4 characters wide." | ||
characters="4" | ||
/> | ||
``` | ||
|
||
## TextArea | ||
|
||
You can have the `TextInput` render as a `<textarea>` via the `is` property. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput TextArea | ||
<script> | ||
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<TextInput | ||
is="textarea" | ||
value="This is a TextArea TextInput" | ||
/> | ||
``` | ||
|
||
## Field Line Size | ||
|
||
You can set how tall your `<textarea>` based `TextInput` to an approximation of character lines via the `lines` property. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput Field Line Size | ||
<script> | ||
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<TextInput | ||
is="textarea" | ||
value="This input should be about 3 lines tall." | ||
lines="3" | ||
/> | ||
``` | ||
|
||
## Resizable TextArea | ||
|
||
You alter the a `<textarea>` based `TextInput` to resizable both axis `true`, horizontally `x`, and vertically `y` via the `resizable` property. | ||
|
||
<!-- prettier-ignore --> | ||
```html repl TextInput Resizable TextArea | ||
<script> | ||
import {TextInput} from "@kahi-ui/framework"; | ||
</script> | ||
|
||
<TextInput | ||
is="textarea" | ||
value="This is a resizable TextArea" | ||
resizable | ||
/> | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
1 change: 0 additions & 1 deletion
1
packages/@kahi-ui-docs-kit/src/server/markdown/plugins/scrollables.ts
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
Oops, something went wrong.