@axel669/zephyr 0.3.4-beta.0 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +33 -33
- package/readme.md +63 -63
- package/src/async/button.md +27 -27
- package/src/async/button.svelte +29 -29
- package/src/async/load-zone.md +42 -42
- package/src/async/load-zone.svelte +22 -22
- package/src/composed/data-table/th.md +21 -21
- package/src/composed/data-table/th.svelte +61 -61
- package/src/composed/data-table.md +86 -86
- package/src/composed/data-table.svelte +199 -199
- package/src/composed/entry-button.md +44 -44
- package/src/composed/entry-button.svelte +31 -31
- package/src/composed/table-functions.js +13 -13
- package/src/composed/toast/message.svelte +56 -56
- package/src/composed/toast.md +45 -45
- package/src/composed/toast.svelte +70 -70
- package/src/control/button.md +41 -41
- package/src/control/button.svelte +27 -27
- package/src/control/input.md +87 -87
- package/src/control/input.svelte +109 -109
- package/src/control/label.md +48 -48
- package/src/control/label.svelte +38 -38
- package/src/control/link.md +50 -50
- package/src/control/link.svelte +32 -32
- package/src/control/radio.md +58 -58
- package/src/control/radio.svelte +28 -28
- package/src/control/select.md +70 -70
- package/src/control/select.svelte +64 -64
- package/src/control/tabs.md +47 -47
- package/src/control/tabs.svelte +43 -43
- package/src/control/toggle.md +61 -61
- package/src/control/toggle.svelte +49 -49
- package/src/data-display/avatar.md +36 -36
- package/src/data-display/avatar.svelte +25 -25
- package/src/data-display/badge.md +30 -30
- package/src/data-display/badge.svelte +14 -14
- package/src/data-display/chip.md +36 -36
- package/src/data-display/chip.svelte +28 -28
- package/src/data-display/details.md +42 -42
- package/src/data-display/details.svelte +25 -25
- package/src/data-display/popover.md +32 -32
- package/src/data-display/popover.svelte +25 -25
- package/src/data-display/progress.md +46 -46
- package/src/data-display/progress.svelte +27 -27
- package/src/data-display/table.md +59 -59
- package/src/data-display/table.svelte +38 -38
- package/src/data-display/tooltip.md +29 -29
- package/src/data-display/tooltip.svelte +17 -17
- package/src/dialogs/alert.md +42 -42
- package/src/dialogs/alert.svelte +34 -34
- package/src/dialogs/confirm.md +56 -56
- package/src/dialogs/confirm.svelte +45 -45
- package/src/functions.md +108 -108
- package/src/handler$.mjs +20 -20
- package/src/hash.js +14 -14
- package/src/index.mjs +53 -53
- package/src/info/icon.md +21 -21
- package/src/info/icon.svelte +9 -9
- package/src/info/notification.md +36 -36
- package/src/info/notification.svelte +16 -16
- package/src/info/titlebar.md +75 -75
- package/src/info/titlebar.svelte +18 -18
- package/src/info/toaster.md +26 -26
- package/src/info/toaster.svelte +14 -14
- package/src/inline-dialog.svelte +23 -23
- package/src/layout/dialog.md +43 -43
- package/src/layout/dialog.svelte +26 -26
- package/src/layout/drawer.md +70 -70
- package/src/layout/drawer.svelte +49 -49
- package/src/layout/flex.md +43 -43
- package/src/layout/flex.svelte +26 -26
- package/src/layout/grid.md +61 -61
- package/src/layout/grid.svelte +30 -30
- package/src/layout/modal.md +50 -50
- package/src/layout/modal.svelte +60 -60
- package/src/layout/paper.md +94 -94
- package/src/layout/paper.svelte +47 -47
- package/src/layout/screen.md +33 -33
- package/src/layout/screen.svelte +34 -34
- package/src/spinner/circle-spinner.svelte +15 -15
- package/src/spinner/hexagon-spinner.svelte +15 -15
- package/src/spinner/spinners.md +22 -22
- package/src/text.md +34 -34
- package/src/text.svelte +22 -22
- package/src/variant.mjs +12 -12
- package/src/wsx.mjs +24 -24
package/src/index.mjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export { default as Button } from "./control/button.svelte"
|
|
2
|
-
export { default as Input } from "./control/input.svelte"
|
|
3
|
-
export { default as Link } from "./control/link.svelte"
|
|
4
|
-
export { default as Radio } from "./control/radio.svelte"
|
|
5
|
-
export { default as Select } from "./control/select.svelte"
|
|
6
|
-
export { default as Tabs } from "./control/tabs.svelte"
|
|
7
|
-
export { default as Toggle } from "./control/toggle.svelte"
|
|
8
|
-
|
|
9
|
-
export { default as Avatar } from "./data-display/avatar.svelte"
|
|
10
|
-
export { default as TheLastAirbender } from "./data-display/avatar.svelte"
|
|
11
|
-
export { default as Badge } from "./data-display/badge.svelte"
|
|
12
|
-
export { default as Chip } from "./data-display/chip.svelte"
|
|
13
|
-
export { default as Details } from "./data-display/details.svelte"
|
|
14
|
-
export { default as Popover } from "./data-display/popover.svelte"
|
|
15
|
-
export { default as Progress } from "./data-display/progress.svelte"
|
|
16
|
-
export { default as Table } from "./data-display/table.svelte"
|
|
17
|
-
export { default as Tooltip } from "./data-display/tooltip.svelte"
|
|
18
|
-
|
|
19
|
-
export { default as Icon } from "./info/icon.svelte"
|
|
20
|
-
export { default as Notification } from "./info/notification.svelte"
|
|
21
|
-
export { default as Titlebar } from "./info/titlebar.svelte"
|
|
22
|
-
export { default as Toaster } from "./info/toaster.svelte"
|
|
23
|
-
|
|
24
|
-
export { default as Dialog } from "./layout/dialog.svelte"
|
|
25
|
-
export { default as Drawer } from "./layout/drawer.svelte"
|
|
26
|
-
export { default as Flex } from "./layout/flex.svelte"
|
|
27
|
-
export { default as Grid } from "./layout/grid.svelte"
|
|
28
|
-
export { default as Modal } from "./layout/modal.svelte"
|
|
29
|
-
export { default as Paper } from "./layout/paper.svelte"
|
|
30
|
-
export { default as Screen } from "./layout/screen.svelte"
|
|
31
|
-
|
|
32
|
-
export { default as Text } from "./text.svelte"
|
|
33
|
-
|
|
34
|
-
export { default as CircleSpinner } from "./spinner/circle-spinner.svelte"
|
|
35
|
-
export { default as HexagonSpinner } from "./spinner/hexagon-spinner.svelte"
|
|
36
|
-
|
|
37
|
-
export { default as Alert } from "./dialogs/alert.svelte"
|
|
38
|
-
export { default as Confirm } from "./dialogs/confirm.svelte"
|
|
39
|
-
|
|
40
|
-
export { default as DataTable } from "./composed/data-table.svelte"
|
|
41
|
-
export { default as TH } from "./composed/data-table/th.svelte"
|
|
42
|
-
export { default as EntryButton } from "./composed/entry-button.svelte"
|
|
43
|
-
export { default as Toast } from "./composed/toast.svelte"
|
|
44
|
-
|
|
45
|
-
export { default as AsyncButton } from "./async/button.svelte"
|
|
46
|
-
export { default as LoadZone } from "./async/load-zone.svelte"
|
|
47
|
-
|
|
48
|
-
export { default as wsx } from "./wsx.mjs"
|
|
49
|
-
|
|
50
|
-
export { hash } from "./hash.js"
|
|
51
|
-
|
|
52
|
-
export * from "./handler$.mjs"
|
|
53
|
-
export * from "./composed/table-functions.js"
|
|
1
|
+
export { default as Button } from "./control/button.svelte"
|
|
2
|
+
export { default as Input } from "./control/input.svelte"
|
|
3
|
+
export { default as Link } from "./control/link.svelte"
|
|
4
|
+
export { default as Radio } from "./control/radio.svelte"
|
|
5
|
+
export { default as Select } from "./control/select.svelte"
|
|
6
|
+
export { default as Tabs } from "./control/tabs.svelte"
|
|
7
|
+
export { default as Toggle } from "./control/toggle.svelte"
|
|
8
|
+
|
|
9
|
+
export { default as Avatar } from "./data-display/avatar.svelte"
|
|
10
|
+
export { default as TheLastAirbender } from "./data-display/avatar.svelte"
|
|
11
|
+
export { default as Badge } from "./data-display/badge.svelte"
|
|
12
|
+
export { default as Chip } from "./data-display/chip.svelte"
|
|
13
|
+
export { default as Details } from "./data-display/details.svelte"
|
|
14
|
+
export { default as Popover } from "./data-display/popover.svelte"
|
|
15
|
+
export { default as Progress } from "./data-display/progress.svelte"
|
|
16
|
+
export { default as Table } from "./data-display/table.svelte"
|
|
17
|
+
export { default as Tooltip } from "./data-display/tooltip.svelte"
|
|
18
|
+
|
|
19
|
+
export { default as Icon } from "./info/icon.svelte"
|
|
20
|
+
export { default as Notification } from "./info/notification.svelte"
|
|
21
|
+
export { default as Titlebar } from "./info/titlebar.svelte"
|
|
22
|
+
export { default as Toaster } from "./info/toaster.svelte"
|
|
23
|
+
|
|
24
|
+
export { default as Dialog } from "./layout/dialog.svelte"
|
|
25
|
+
export { default as Drawer } from "./layout/drawer.svelte"
|
|
26
|
+
export { default as Flex } from "./layout/flex.svelte"
|
|
27
|
+
export { default as Grid } from "./layout/grid.svelte"
|
|
28
|
+
export { default as Modal } from "./layout/modal.svelte"
|
|
29
|
+
export { default as Paper } from "./layout/paper.svelte"
|
|
30
|
+
export { default as Screen } from "./layout/screen.svelte"
|
|
31
|
+
|
|
32
|
+
export { default as Text } from "./text.svelte"
|
|
33
|
+
|
|
34
|
+
export { default as CircleSpinner } from "./spinner/circle-spinner.svelte"
|
|
35
|
+
export { default as HexagonSpinner } from "./spinner/hexagon-spinner.svelte"
|
|
36
|
+
|
|
37
|
+
export { default as Alert } from "./dialogs/alert.svelte"
|
|
38
|
+
export { default as Confirm } from "./dialogs/confirm.svelte"
|
|
39
|
+
|
|
40
|
+
export { default as DataTable } from "./composed/data-table.svelte"
|
|
41
|
+
export { default as TH } from "./composed/data-table/th.svelte"
|
|
42
|
+
export { default as EntryButton } from "./composed/entry-button.svelte"
|
|
43
|
+
export { default as Toast } from "./composed/toast.svelte"
|
|
44
|
+
|
|
45
|
+
export { default as AsyncButton } from "./async/button.svelte"
|
|
46
|
+
export { default as LoadZone } from "./async/load-zone.svelte"
|
|
47
|
+
|
|
48
|
+
export { default as wsx } from "./wsx.mjs"
|
|
49
|
+
|
|
50
|
+
export { hash } from "./hash.js"
|
|
51
|
+
|
|
52
|
+
export * from "./handler$.mjs"
|
|
53
|
+
export * from "./composed/table-functions.js"
|
package/src/info/icon.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# Icon
|
|
2
|
-
|
|
3
|
-
Displays a [Tabler Icon](https://tabler-icons.io/) and some optional text.
|
|
4
|
-
The icon will appear at the beginning of the text.
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
|
|
8
|
-
### name
|
|
9
|
-
`string`
|
|
10
|
-
|
|
11
|
-
The name of the icon. Use the tabler icon class name without the "ti-".
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
```svelte
|
|
15
|
-
<script>
|
|
16
|
-
import { Icon } from "@axel669/zephyr"
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<Icon name="hexagon" />
|
|
20
|
-
<Icon name="hexagons">Are the bestagons</Icon>
|
|
21
|
-
```
|
|
1
|
+
# Icon
|
|
2
|
+
|
|
3
|
+
Displays a [Tabler Icon](https://tabler-icons.io/) and some optional text.
|
|
4
|
+
The icon will appear at the beginning of the text.
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
### name
|
|
9
|
+
`string`
|
|
10
|
+
|
|
11
|
+
The name of the icon. Use the tabler icon class name without the "ti-".
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
```svelte
|
|
15
|
+
<script>
|
|
16
|
+
import { Icon } from "@axel669/zephyr"
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Icon name="hexagon" />
|
|
20
|
+
<Icon name="hexagons">Are the bestagons</Icon>
|
|
21
|
+
```
|
package/src/info/icon.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import wsx from "../wsx.mjs"
|
|
3
|
-
|
|
4
|
-
export let name
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<ws-icon class="ti-{name}" use:wsx={$$restProps}>
|
|
8
|
-
<slot />
|
|
9
|
-
</ws-icon>
|
|
1
|
+
<script>
|
|
2
|
+
import wsx from "../wsx.mjs"
|
|
3
|
+
|
|
4
|
+
export let name
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<ws-icon class="ti-{name}" use:wsx={$$restProps}>
|
|
8
|
+
<slot />
|
|
9
|
+
</ws-icon>
|
package/src/info/notification.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# Notification
|
|
2
|
-
|
|
3
|
-
Displays a piece of content that stands out from the surrounding content and
|
|
4
|
-
can also be used for toast messages. Optionally has some interactable
|
|
5
|
-
elements embedded.
|
|
6
|
-
|
|
7
|
-
Expects 1-2 child nodes and will display them on the sides of the
|
|
8
|
-
notification with space between them. This means that reversing the order
|
|
9
|
-
of the child nodes will flip which sides they appear on.
|
|
10
|
-
|
|
11
|
-
## Props
|
|
12
|
-
|
|
13
|
-
### color
|
|
14
|
-
Sets `$color` and uses the fill style for coloration.
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
```svelte
|
|
18
|
-
<script>
|
|
19
|
-
import { Notification, Button, Icon } from "@axel669/zephyr"
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<Notification>
|
|
23
|
-
<Icon name="info-hexagon">
|
|
24
|
-
Some kind of information
|
|
25
|
-
</Icon>
|
|
26
|
-
</Notification>
|
|
27
|
-
<Notification color="danger">
|
|
28
|
-
<Icon name="alert-hexagon">
|
|
29
|
-
Something broke
|
|
30
|
-
</Icon>
|
|
31
|
-
|
|
32
|
-
<Button>
|
|
33
|
-
Cancel
|
|
34
|
-
</Button>
|
|
35
|
-
</Notification>
|
|
36
|
-
```
|
|
1
|
+
# Notification
|
|
2
|
+
|
|
3
|
+
Displays a piece of content that stands out from the surrounding content and
|
|
4
|
+
can also be used for toast messages. Optionally has some interactable
|
|
5
|
+
elements embedded.
|
|
6
|
+
|
|
7
|
+
Expects 1-2 child nodes and will display them on the sides of the
|
|
8
|
+
notification with space between them. This means that reversing the order
|
|
9
|
+
of the child nodes will flip which sides they appear on.
|
|
10
|
+
|
|
11
|
+
## Props
|
|
12
|
+
|
|
13
|
+
### color
|
|
14
|
+
Sets `$color` and uses the fill style for coloration.
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
```svelte
|
|
18
|
+
<script>
|
|
19
|
+
import { Notification, Button, Icon } from "@axel669/zephyr"
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<Notification>
|
|
23
|
+
<Icon name="info-hexagon">
|
|
24
|
+
Some kind of information
|
|
25
|
+
</Icon>
|
|
26
|
+
</Notification>
|
|
27
|
+
<Notification color="danger">
|
|
28
|
+
<Icon name="alert-hexagon">
|
|
29
|
+
Something broke
|
|
30
|
+
</Icon>
|
|
31
|
+
|
|
32
|
+
<Button>
|
|
33
|
+
Cancel
|
|
34
|
+
</Button>
|
|
35
|
+
</Notification>
|
|
36
|
+
```
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import wsx from "../wsx.mjs"
|
|
3
|
-
|
|
4
|
-
export let color = false
|
|
5
|
-
|
|
6
|
-
$: wind = {
|
|
7
|
-
"$color": color,
|
|
8
|
-
...$$restProps,
|
|
9
|
-
}
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
13
|
-
<!-- svelte-ignore a11y-interactive-supports-focus -->
|
|
14
|
-
<ws-notification use:wsx={wind} on:click role="button">
|
|
15
|
-
<slot />
|
|
16
|
-
</ws-notification>
|
|
1
|
+
<script>
|
|
2
|
+
import wsx from "../wsx.mjs"
|
|
3
|
+
|
|
4
|
+
export let color = false
|
|
5
|
+
|
|
6
|
+
$: wind = {
|
|
7
|
+
"$color": color,
|
|
8
|
+
...$$restProps,
|
|
9
|
+
}
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
13
|
+
<!-- svelte-ignore a11y-interactive-supports-focus -->
|
|
14
|
+
<ws-notification use:wsx={wind} on:click role="button">
|
|
15
|
+
<slot />
|
|
16
|
+
</ws-notification>
|
package/src/info/titlebar.md
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
# Titlebar
|
|
2
|
-
|
|
3
|
-
The titlebar is used to set section titles with some style, and provides
|
|
4
|
-
slots for buttons on either side of the title text. Works well as a header
|
|
5
|
-
for Paper components.
|
|
6
|
-
|
|
7
|
-
## Props
|
|
8
|
-
|
|
9
|
-
### color
|
|
10
|
-
`string`
|
|
11
|
-
|
|
12
|
-
Sets `$color`
|
|
13
|
-
|
|
14
|
-
### fill
|
|
15
|
-
`bool`
|
|
16
|
-
|
|
17
|
-
Sets `$fill`
|
|
18
|
-
|
|
19
|
-
## Slots
|
|
20
|
-
|
|
21
|
-
### title
|
|
22
|
-
The center of the titlebar, where the text usually goes. Elements can be nested
|
|
23
|
-
in different ways within a parent element for different visual effects in this
|
|
24
|
-
slot.
|
|
25
|
-
|
|
26
|
-
### menu
|
|
27
|
-
The area on the left of the titlebar (where drawer menus tend to open)
|
|
28
|
-
|
|
29
|
-
### action
|
|
30
|
-
The area on the right of the titlebar
|
|
31
|
-
|
|
32
|
-
## Example
|
|
33
|
-
```svelte
|
|
34
|
-
<script>
|
|
35
|
-
import { Titlebar, Button, Paper, Text } from "@axel669/zephyr"
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<Titlebar color="primary" fill>
|
|
39
|
-
<Text title slot="title">
|
|
40
|
-
Some Title
|
|
41
|
-
</Text>
|
|
42
|
-
|
|
43
|
-
<Button slot="menu">
|
|
44
|
-
<Icon name="menu" />
|
|
45
|
-
</Button>
|
|
46
|
-
</Titlebar>
|
|
47
|
-
|
|
48
|
-
<Paper>
|
|
49
|
-
<Titlebar color="secondary" slot="header">
|
|
50
|
-
<Text title slot="title">
|
|
51
|
-
Paper Title
|
|
52
|
-
<Text subtitle>
|
|
53
|
-
Indented Subtitle
|
|
54
|
-
</Text>
|
|
55
|
-
</Text>
|
|
56
|
-
</Titlebar>
|
|
57
|
-
</Paper>
|
|
58
|
-
|
|
59
|
-
<Paper>
|
|
60
|
-
<Titlebar color="secondary" slot="header">
|
|
61
|
-
<Flex p="0px" slot="title">
|
|
62
|
-
<Text title>
|
|
63
|
-
Paper Title
|
|
64
|
-
</Text>
|
|
65
|
-
<Text subtitle>
|
|
66
|
-
Aligned Subtitle
|
|
67
|
-
</Text>
|
|
68
|
-
</Flex>
|
|
69
|
-
|
|
70
|
-
<Button slot="action">
|
|
71
|
-
<Icon name="menu" />
|
|
72
|
-
</Button>
|
|
73
|
-
</Titlebar>
|
|
74
|
-
</Paper>
|
|
75
|
-
```
|
|
1
|
+
# Titlebar
|
|
2
|
+
|
|
3
|
+
The titlebar is used to set section titles with some style, and provides
|
|
4
|
+
slots for buttons on either side of the title text. Works well as a header
|
|
5
|
+
for Paper components.
|
|
6
|
+
|
|
7
|
+
## Props
|
|
8
|
+
|
|
9
|
+
### color
|
|
10
|
+
`string`
|
|
11
|
+
|
|
12
|
+
Sets `$color`
|
|
13
|
+
|
|
14
|
+
### fill
|
|
15
|
+
`bool`
|
|
16
|
+
|
|
17
|
+
Sets `$fill`
|
|
18
|
+
|
|
19
|
+
## Slots
|
|
20
|
+
|
|
21
|
+
### title
|
|
22
|
+
The center of the titlebar, where the text usually goes. Elements can be nested
|
|
23
|
+
in different ways within a parent element for different visual effects in this
|
|
24
|
+
slot.
|
|
25
|
+
|
|
26
|
+
### menu
|
|
27
|
+
The area on the left of the titlebar (where drawer menus tend to open)
|
|
28
|
+
|
|
29
|
+
### action
|
|
30
|
+
The area on the right of the titlebar
|
|
31
|
+
|
|
32
|
+
## Example
|
|
33
|
+
```svelte
|
|
34
|
+
<script>
|
|
35
|
+
import { Titlebar, Button, Paper, Text } from "@axel669/zephyr"
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<Titlebar color="primary" fill>
|
|
39
|
+
<Text title slot="title">
|
|
40
|
+
Some Title
|
|
41
|
+
</Text>
|
|
42
|
+
|
|
43
|
+
<Button slot="menu">
|
|
44
|
+
<Icon name="menu" />
|
|
45
|
+
</Button>
|
|
46
|
+
</Titlebar>
|
|
47
|
+
|
|
48
|
+
<Paper>
|
|
49
|
+
<Titlebar color="secondary" slot="header">
|
|
50
|
+
<Text title slot="title">
|
|
51
|
+
Paper Title
|
|
52
|
+
<Text subtitle>
|
|
53
|
+
Indented Subtitle
|
|
54
|
+
</Text>
|
|
55
|
+
</Text>
|
|
56
|
+
</Titlebar>
|
|
57
|
+
</Paper>
|
|
58
|
+
|
|
59
|
+
<Paper>
|
|
60
|
+
<Titlebar color="secondary" slot="header">
|
|
61
|
+
<Flex p="0px" slot="title">
|
|
62
|
+
<Text title>
|
|
63
|
+
Paper Title
|
|
64
|
+
</Text>
|
|
65
|
+
<Text subtitle>
|
|
66
|
+
Aligned Subtitle
|
|
67
|
+
</Text>
|
|
68
|
+
</Flex>
|
|
69
|
+
|
|
70
|
+
<Button slot="action">
|
|
71
|
+
<Icon name="menu" />
|
|
72
|
+
</Button>
|
|
73
|
+
</Titlebar>
|
|
74
|
+
</Paper>
|
|
75
|
+
```
|
package/src/info/titlebar.svelte
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import wsx from "../wsx.mjs"
|
|
3
|
-
|
|
4
|
-
export let color
|
|
5
|
-
export let fill = false
|
|
6
|
-
|
|
7
|
-
$: wind = {
|
|
8
|
-
"$color": color,
|
|
9
|
-
"$fill": fill,
|
|
10
|
-
...$$restProps
|
|
11
|
-
}
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<ws-titlebar use:wsx={wind}>
|
|
15
|
-
<slot name="menu" />
|
|
16
|
-
<slot name="title" />
|
|
17
|
-
<slot name="action" />
|
|
18
|
-
</ws-titlebar>
|
|
1
|
+
<script>
|
|
2
|
+
import wsx from "../wsx.mjs"
|
|
3
|
+
|
|
4
|
+
export let color
|
|
5
|
+
export let fill = false
|
|
6
|
+
|
|
7
|
+
$: wind = {
|
|
8
|
+
"$color": color,
|
|
9
|
+
"$fill": fill,
|
|
10
|
+
...$$restProps
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<ws-titlebar use:wsx={wind}>
|
|
15
|
+
<slot name="menu" />
|
|
16
|
+
<slot name="title" />
|
|
17
|
+
<slot name="action" />
|
|
18
|
+
</ws-titlebar>
|
package/src/info/toaster.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# Toaster
|
|
2
|
-
|
|
3
|
-
The Toaster component is used for building popup notifications along the
|
|
4
|
-
edges of the window.
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
|
|
8
|
-
### position
|
|
9
|
-
Sets position of the toaster. See the
|
|
10
|
-
[windstorm base](https://windstorm.axel669.net/lib/css/component/toaster)
|
|
11
|
-
for values.
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
```svelte
|
|
15
|
-
<script>
|
|
16
|
-
import { Toaster, Notification, Icon } from "@axel669/zephyr"
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<Toaster position="$tc">
|
|
20
|
-
<Notification>
|
|
21
|
-
<Icon name="info">
|
|
22
|
-
Some kind of notification of things
|
|
23
|
-
</Icon>
|
|
24
|
-
</Notification>
|
|
25
|
-
</Toaster>
|
|
26
|
-
```
|
|
1
|
+
# Toaster
|
|
2
|
+
|
|
3
|
+
The Toaster component is used for building popup notifications along the
|
|
4
|
+
edges of the window.
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
### position
|
|
9
|
+
Sets position of the toaster. See the
|
|
10
|
+
[windstorm base](https://windstorm.axel669.net/lib/css/component/toaster)
|
|
11
|
+
for values.
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
```svelte
|
|
15
|
+
<script>
|
|
16
|
+
import { Toaster, Notification, Icon } from "@axel669/zephyr"
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Toaster position="$tc">
|
|
20
|
+
<Notification>
|
|
21
|
+
<Icon name="info">
|
|
22
|
+
Some kind of notification of things
|
|
23
|
+
</Icon>
|
|
24
|
+
</Notification>
|
|
25
|
+
</Toaster>
|
|
26
|
+
```
|
package/src/info/toaster.svelte
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import wsx from "../wsx.mjs"
|
|
3
|
-
|
|
4
|
-
export let position = "tc"
|
|
5
|
-
|
|
6
|
-
$: wind = {
|
|
7
|
-
[`$${position}`]: true,
|
|
8
|
-
...$$restProps,
|
|
9
|
-
}
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<ws-toaster use:wsx={wind}>
|
|
13
|
-
<slot />
|
|
14
|
-
</ws-toaster>
|
|
1
|
+
<script>
|
|
2
|
+
import wsx from "../wsx.mjs"
|
|
3
|
+
|
|
4
|
+
export let position = "tc"
|
|
5
|
+
|
|
6
|
+
$: wind = {
|
|
7
|
+
[`$${position}`]: true,
|
|
8
|
+
...$$restProps,
|
|
9
|
+
}
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ws-toaster use:wsx={wind}>
|
|
13
|
+
<slot />
|
|
14
|
+
</ws-toaster>
|
package/src/inline-dialog.svelte
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import wsx from "../wsx.mjs"
|
|
3
|
-
|
|
4
|
-
import Paper from "./paper.svelte"
|
|
5
|
-
|
|
6
|
-
const id = Math.random().toString(16)
|
|
7
|
-
|
|
8
|
-
$: paper = {
|
|
9
|
-
"@dialog": true,
|
|
10
|
-
"$outline": true,
|
|
11
|
-
...$$restProps
|
|
12
|
-
}
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<slot name="toggle" {id} />
|
|
16
|
-
<input type="checkbox" ws-x="
|
|
17
|
-
<ws-modal>
|
|
18
|
-
<ws-paper use:wsx={paper}>
|
|
19
|
-
<slot name="header" {id} />
|
|
20
|
-
<slot name="content" {id} />
|
|
21
|
-
<slot name="footer" {id} />
|
|
22
|
-
</ws-paper>
|
|
23
|
-
</ws-modal>
|
|
1
|
+
<script>
|
|
2
|
+
import wsx from "../wsx.mjs"
|
|
3
|
+
|
|
4
|
+
import Paper from "./paper.svelte"
|
|
5
|
+
|
|
6
|
+
const id = Math.random().toString(16)
|
|
7
|
+
|
|
8
|
+
$: paper = {
|
|
9
|
+
"@dialog": true,
|
|
10
|
+
"$outline": true,
|
|
11
|
+
...$$restProps
|
|
12
|
+
}
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<slot name="toggle" {id} />
|
|
16
|
+
<input type="checkbox" ws-x="hide" {id} />
|
|
17
|
+
<ws-modal>
|
|
18
|
+
<ws-paper use:wsx={paper}>
|
|
19
|
+
<slot name="header" {id} />
|
|
20
|
+
<slot name="content" {id} />
|
|
21
|
+
<slot name="footer" {id} />
|
|
22
|
+
</ws-paper>
|
|
23
|
+
</ws-modal>
|