flowbite-svelte 0.25.13 → 0.25.16
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/CHANGELOG.md +35 -0
- package/alerts/Alert.svelte +5 -6
- package/avatar/Avatar.svelte +1 -1
- package/avatar/Dot.svelte +3 -1
- package/avatar/Dot.svelte.d.ts +1 -0
- package/buttons/Button.svelte +1 -1
- package/dropdowns/DropdownItem.svelte +1 -1
- package/forms/Textarea.svelte +45 -33
- package/forms/Textarea.svelte.d.ts +5 -10
- package/icons/CodeBracket.svelte +38 -0
- package/icons/CodeBracket.svelte.d.ts +22 -0
- package/icons/Envelope.svelte +37 -0
- package/icons/Envelope.svelte.d.ts +22 -0
- package/icons/FaceSmile.svelte +38 -0
- package/icons/FaceSmile.svelte.d.ts +22 -0
- package/icons/Home.svelte +37 -0
- package/icons/Home.svelte.d.ts +22 -0
- package/icons/Map.svelte +38 -0
- package/icons/Map.svelte.d.ts +22 -0
- package/icons/MapPin.svelte +37 -0
- package/icons/MapPin.svelte.d.ts +22 -0
- package/icons/PaperAirplane.svelte +37 -0
- package/icons/PaperAirplane.svelte.d.ts +22 -0
- package/icons/PaperClip.svelte +38 -0
- package/icons/PaperClip.svelte.d.ts +22 -0
- package/icons/Photo.svelte +38 -0
- package/icons/Photo.svelte.d.ts +22 -0
- package/icons/QrCode.svelte +37 -0
- package/icons/QrCode.svelte.d.ts +22 -0
- package/index.d.ts +15 -2
- package/index.js +16 -3
- package/package.json +16 -2
- package/toolbar/Toolbar.svelte +57 -0
- package/toolbar/Toolbar.svelte.d.ts +21 -0
- package/toolbar/ToolbarButton.svelte +52 -0
- package/toolbar/ToolbarButton.svelte.d.ts +24 -0
- package/toolbar/ToolbarGroup.svelte +9 -0
- package/toolbar/ToolbarGroup.svelte.d.ts +16 -0
- package/typography/Img.svelte +26 -0
- package/typography/Img.svelte.d.ts +26 -0
- package/utils/CloseButton.svelte +3 -2
- package/utils/Wrapper.svelte +8 -0
- package/utils/Wrapper.svelte.d.ts +19 -0
- package/drawers/Drawer.svelte +0 -44
- package/drawers/Drawer.svelte.d.ts +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.25.16](https://github.com/themesberg/flowbite-svelte/compare/v0.25.15...v0.25.16) (2022-08-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* create utilities/closebutton, label, and toolbar ([3ad9775](https://github.com/themesberg/flowbite-svelte/commit/3ad9775ffbed66908cbaa82845b86151e179d534))
|
|
11
|
+
* toolbar ([f02ff55](https://github.com/themesberg/flowbite-svelte/commit/f02ff558fa938913c32117ff51b46bdd6088e38a))
|
|
12
|
+
* toolbar w/html ([93116c3](https://github.com/themesberg/flowbite-svelte/commit/93116c34b4063eb9d166d85ef3dd7e20126fa29e))
|
|
13
|
+
|
|
14
|
+
### [0.25.15](https://github.com/themesberg/flowbite-svelte/compare/v0.25.14...v0.25.15) (2022-08-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* removed drawer component and page from the main ([5cf77f0](https://github.com/themesberg/flowbite-svelte/commit/5cf77f008aff26e64bd210a3bdf60e5f25aebc89))
|
|
20
|
+
|
|
21
|
+
### [0.25.14](https://github.com/themesberg/flowbite-svelte/compare/v0.25.13...v0.25.14) (2022-08-25)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* add icon components rather than import a library ([9dffb40](https://github.com/themesberg/flowbite-svelte/commit/9dffb400607d8bb4dd98e877e466956157016ff7))
|
|
27
|
+
* add Img component, images, and page ([b2aec04](https://github.com/themesberg/flowbite-svelte/commit/b2aec047694aab0bbcbc58d93af8c021e27d4f96))
|
|
28
|
+
* add Img page and examples ([ed3d83f](https://github.com/themesberg/flowbite-svelte/commit/ed3d83f34e195d67e3c7a334d1226d0876441f47))
|
|
29
|
+
* add PaperAirplane icon ([90d2543](https://github.com/themesberg/flowbite-svelte/commit/90d25435eb9cc68b38febaba41b5782efb755981))
|
|
30
|
+
* textarea ([47d51be](https://github.com/themesberg/flowbite-svelte/commit/47d51be427b056793cf64e4089cf4a4a7ba310d7))
|
|
31
|
+
* textarea / fix ([93cdb01](https://github.com/themesberg/flowbite-svelte/commit/93cdb019326ebcaddd3482c5e41c8a635461ac67))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* avatar dot alignment ([2273c0c](https://github.com/themesberg/flowbite-svelte/commit/2273c0ceb82cc634558e7e88aff295c722d73c9f))
|
|
37
|
+
* buttongroup divider ([f5bedaf](https://github.com/themesberg/flowbite-svelte/commit/f5bedafa9a0b36f4a42a54e8c37593d7ee9d8916))
|
|
38
|
+
* Htwo for typography pages ([0921539](https://github.com/themesberg/flowbite-svelte/commit/0921539d06e54f89d9e9dd52c70cdbc81b62dd3e))
|
|
39
|
+
|
|
5
40
|
### [0.25.13](https://github.com/themesberg/flowbite-svelte/compare/v0.25.12...v0.25.13) (2022-08-23)
|
|
6
41
|
|
|
7
42
|
|
package/alerts/Alert.svelte
CHANGED
|
@@ -28,7 +28,7 @@ const bgClasses = {
|
|
|
28
28
|
purple: 'bg-purple-100 dark:bg-purple-200 ',
|
|
29
29
|
pink: 'bg-pink-100 dark:bg-pink-200 ',
|
|
30
30
|
blue: 'bg-blue-100 dark:bg-blue-200 ',
|
|
31
|
-
dark: 'bg-gray-
|
|
31
|
+
dark: 'bg-gray-50 dark:bg-gray-700',
|
|
32
32
|
custom: customBgClass
|
|
33
33
|
};
|
|
34
34
|
const borderAccentClasses = {
|
|
@@ -56,21 +56,20 @@ const textColors = {
|
|
|
56
56
|
custom: customTextColor
|
|
57
57
|
};
|
|
58
58
|
let divClass;
|
|
59
|
-
$: divClass = classNames('
|
|
59
|
+
$: divClass = classNames('p-4 text-sm', bgClasses[color] ?? bgClasses.blue, accent && (borderAccentClasses[color] ?? borderAccentClasses.blue), rounded && 'rounded-lg ', accent && 'border-t-4 ', textColors[color], $$props.class);
|
|
60
60
|
</script>
|
|
61
61
|
|
|
62
62
|
<div id={$$props.id} class:hidden class={divClass} role="alert">
|
|
63
|
-
<div class="flex items-center">
|
|
63
|
+
<div class="flex items-center whitespace-pre-wrap">
|
|
64
64
|
{#if icon}
|
|
65
65
|
<svelte:component this={icon} class="flex-shrink-0 w-5 h-5 mr-3" />
|
|
66
66
|
{/if}
|
|
67
67
|
|
|
68
|
-
<
|
|
69
|
-
<slot />
|
|
70
|
-
</div>
|
|
68
|
+
<slot />
|
|
71
69
|
|
|
72
70
|
{#if dismissable}
|
|
73
71
|
<CloseButton
|
|
72
|
+
class="-mx-1.5 -my-1.5"
|
|
74
73
|
{color}
|
|
75
74
|
on:click={handleHide}
|
|
76
75
|
on:click={handleAlert}
|
package/avatar/Avatar.svelte
CHANGED
|
@@ -20,7 +20,7 @@ let avatarClass;
|
|
|
20
20
|
$: avatarClass = classNames(rounded ? 'rounded' : 'rounded-full', border && 'p-1 ring-2 ring-gray-300 dark:ring-gray-500', sizes[size], stacked && 'border-2 -ml-4 border-white dark:border-gray-800', 'bg-gray-100 dark:bg-gray-600 text-gray-600 dark:text-gray-300', $$props.class);
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
|
-
<Dot show={$$props.dot} {rounded} {...dot} {size}>
|
|
23
|
+
<Dot show={$$props.dot} {rounded} {...dot} {size} class={sizes[size]}>
|
|
24
24
|
{#if src}
|
|
25
25
|
<img class={avatarClass} {alt} {src} />
|
|
26
26
|
{:else if $$slots.default}
|
package/avatar/Dot.svelte
CHANGED
|
@@ -20,10 +20,12 @@ const offsets = {
|
|
|
20
20
|
};
|
|
21
21
|
let dotClass;
|
|
22
22
|
$: dotClass = classNames('absolute rounded-full border-white dark:border-gray-800 border-2', sizes[size], offsets[size][+rounded], top ? 'top-0' : 'bottom-0', rounded && top && 'transform -translate-y-1/2', rounded && !top && 'transform translate-y-1/4', color);
|
|
23
|
+
let divClass;
|
|
24
|
+
$: divClass = classNames('relative flex-shrink-0', $$props.class);
|
|
23
25
|
</script>
|
|
24
26
|
|
|
25
27
|
{#if show}
|
|
26
|
-
<div class=
|
|
28
|
+
<div class={divClass}>
|
|
27
29
|
<slot />
|
|
28
30
|
<span class={dotClass} />
|
|
29
31
|
</div>
|
package/avatar/Dot.svelte.d.ts
CHANGED
package/buttons/Button.svelte
CHANGED
|
@@ -86,7 +86,7 @@ $: buttonClass = btnClass
|
|
|
86
86
|
color === 'dark' &&
|
|
87
87
|
(background
|
|
88
88
|
? 'dark:text-white dark:border-white'
|
|
89
|
-
: 'dark:text-gray-400 dark:border-gray-700'), hasBorder() && group && 'border-l-0
|
|
89
|
+
: 'dark:text-gray-400 dark:border-gray-700'), hasBorder() && group && 'border-l-0 first:border-l', rounded(false), shadow && coloredShadowClasses[shadow], $$props.disabled && 'cursor-not-allowed opacity-50', $$props.class);
|
|
90
90
|
let gradientOutlineClass;
|
|
91
91
|
$: gradientOutlineClass = classNames('inline-flex items-center justify-center', sizeClasses[size], rounded(true), 'bg-white text-gray-900 dark:bg-gray-900 dark:text-white', // this is limitation - no transparency
|
|
92
92
|
'transition-all duration-75 ease-in group-hover:bg-opacity-0 group-hover:text-inherit');
|
package/forms/Textarea.svelte
CHANGED
|
@@ -1,36 +1,48 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
import { getContext } from 'svelte';
|
|
3
|
+
import Wrapper from '../utils/Wrapper.svelte';
|
|
4
|
+
const background = getContext('background');
|
|
2
5
|
export let value = '';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
let wrapped;
|
|
7
|
+
$: wrapped = $$slots.header || $$slots.footer;
|
|
8
|
+
let wrapperClass;
|
|
9
|
+
$: wrapperClass = classNames('w-full rounded-lg', background ? 'bg-white dark:bg-gray-800' : 'bg-gray-50 dark:bg-gray-700', 'text-gray-900 dark:placeholder-gray-400 dark:text-white ', 'border border-gray-200 dark:border-gray-600', $$props.class);
|
|
10
|
+
let textareaClass;
|
|
11
|
+
$: textareaClass = wrapped
|
|
12
|
+
? classNames('block w-full', 'text-sm', 'border-0 px-0', 'bg-inherit dark:bg-inherit', 'focus:outline-none focus:ring-0')
|
|
13
|
+
: classNames(wrapperClass, 'p-2.5 text-sm', 'focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-blue-500 dark:focus:border-blue-500');
|
|
14
|
+
const headerClass = (header) => classNames(header ? 'border-b' : 'border-t', 'py-2 px-3 border-gray-200 dark:border-gray-600');
|
|
15
|
+
let innerWrapperClass;
|
|
16
|
+
$: innerWrapperClass = classNames('py-2 px-4 bg-white dark:bg-gray-800', $$slots.footer || 'rounded-b-lg', $$slots.header || 'rounded-t-lg');
|
|
12
17
|
</script>
|
|
13
18
|
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
<Wrapper show={wrapped} class={wrapperClass}>
|
|
20
|
+
{#if $$slots.header}
|
|
21
|
+
<div class={headerClass(true)}>
|
|
22
|
+
<slot name="header" />
|
|
23
|
+
</div>
|
|
24
|
+
{/if}
|
|
25
|
+
<Wrapper show={wrapped} class={innerWrapperClass}>
|
|
26
|
+
<textarea
|
|
27
|
+
bind:value
|
|
28
|
+
on:blur
|
|
29
|
+
on:change
|
|
30
|
+
on:click
|
|
31
|
+
on:focus
|
|
32
|
+
on:keydown
|
|
33
|
+
on:keypress
|
|
34
|
+
on:keyup
|
|
35
|
+
on:mouseenter
|
|
36
|
+
on:mouseleave
|
|
37
|
+
on:mouseover
|
|
38
|
+
on:paste
|
|
39
|
+
{...$$restProps}
|
|
40
|
+
class={textareaClass}
|
|
41
|
+
/>
|
|
42
|
+
</Wrapper>
|
|
43
|
+
{#if $$slots.footer}
|
|
44
|
+
<div class={headerClass(false)}>
|
|
45
|
+
<slot name="footer" />
|
|
46
|
+
</div>
|
|
47
|
+
{/if}
|
|
48
|
+
</Wrapper>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
+
[x: string]: any;
|
|
4
5
|
value?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
rows?: number;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
labelClass?: string;
|
|
11
|
-
textareaClass?: string;
|
|
12
|
-
helper?: string;
|
|
13
|
-
helperClass?: string;
|
|
14
6
|
};
|
|
15
7
|
events: {
|
|
16
8
|
blur: FocusEvent;
|
|
@@ -27,7 +19,10 @@ declare const __propDef: {
|
|
|
27
19
|
} & {
|
|
28
20
|
[evt: string]: CustomEvent<any>;
|
|
29
21
|
};
|
|
30
|
-
slots: {
|
|
22
|
+
slots: {
|
|
23
|
+
header: {};
|
|
24
|
+
footer: {};
|
|
25
|
+
};
|
|
31
26
|
};
|
|
32
27
|
export declare type TextareaProps = typeof __propDef.props;
|
|
33
28
|
export declare type TextareaEvents = typeof __propDef.events;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script>// https://github.com/shinokada/svelte-heros-v2
|
|
2
|
+
export let size = '24';
|
|
3
|
+
export let color = 'currentColor';
|
|
4
|
+
export let variation = 'outline';
|
|
5
|
+
let viewBox;
|
|
6
|
+
let svgpath;
|
|
7
|
+
let svgoutline = `<path d="M17.25 6.75L22.5 12L17.25 17.25M6.75 17.25L1.5 12L6.75 6.75M14.25 3.75L9.75 20.25" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
8
|
+
let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M14.4473 3.02662C14.847 3.1356 15.0826 3.54791 14.9736 3.94753L10.4736 20.4475C10.3646 20.8471 9.95228 21.0827 9.55266 20.9738C9.15304 20.8648 8.91744 20.4525 9.02643 20.0529L13.5264 3.55285C13.6354 3.15323 14.0477 2.91763 14.4473 3.02662ZM16.7197 6.21986C17.0126 5.92696 17.4874 5.92696 17.7803 6.21986L23.0303 11.4699C23.3232 11.7628 23.3232 12.2376 23.0303 12.5305L17.7803 17.7805C17.4874 18.0734 17.0126 18.0734 16.7197 17.7805C16.4268 17.4876 16.4268 17.0128 16.7197 16.7199L21.4393 12.0002L16.7197 7.28052C16.4268 6.98762 16.4268 6.51275 16.7197 6.21986ZM7.28033 6.21986C7.57322 6.51275 7.57322 6.98763 7.28033 7.28052L2.56066 12.0002L7.28033 16.7199C7.57322 17.0128 7.57322 17.4876 7.28033 17.7805C6.98744 18.0734 6.51256 18.0734 6.21967 17.7805L0.96967 12.5305C0.676777 12.2376 0.676777 11.7628 0.96967 11.4699L6.21967 6.21986C6.51256 5.92697 6.98744 5.92697 7.28033 6.21986Z" fill="${color}"/> `;
|
|
9
|
+
$: switch (variation) {
|
|
10
|
+
case 'outline':
|
|
11
|
+
svgpath = svgoutline;
|
|
12
|
+
viewBox = '0 0 24 24';
|
|
13
|
+
break;
|
|
14
|
+
case 'solid':
|
|
15
|
+
svgpath = svgsolid;
|
|
16
|
+
viewBox = '0 0 24 24';
|
|
17
|
+
break;
|
|
18
|
+
default:
|
|
19
|
+
svgpath = svgoutline;
|
|
20
|
+
viewBox = '0 0 24 24';
|
|
21
|
+
}
|
|
22
|
+
export let ariaLabel = 'code bracket';
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<svg
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
width={size}
|
|
28
|
+
height={size}
|
|
29
|
+
class={$$props.class}
|
|
30
|
+
{...$$restProps}
|
|
31
|
+
aria-label={ariaLabel}
|
|
32
|
+
fill="none"
|
|
33
|
+
{viewBox}
|
|
34
|
+
stroke-width="2"
|
|
35
|
+
on:click
|
|
36
|
+
>
|
|
37
|
+
{@html svgpath}
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
variation?: 'solid' | 'outline';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export declare type CodeBracketProps = typeof __propDef.props;
|
|
18
|
+
export declare type CodeBracketEvents = typeof __propDef.events;
|
|
19
|
+
export declare type CodeBracketSlots = typeof __propDef.slots;
|
|
20
|
+
export default class CodeBracket extends SvelteComponentTyped<CodeBracketProps, CodeBracketEvents, CodeBracketSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>export let size = '24';
|
|
2
|
+
export let color = 'currentColor';
|
|
3
|
+
export let variation = 'outline';
|
|
4
|
+
let viewBox;
|
|
5
|
+
let svgpath;
|
|
6
|
+
let svgoutline = `<path d="M21.75 6.75V17.25C21.75 18.4926 20.7426 19.5 19.5 19.5H4.5C3.25736 19.5 2.25 18.4926 2.25 17.25V6.75M21.75 6.75C21.75 5.50736 20.7426 4.5 19.5 4.5H4.5C3.25736 4.5 2.25 5.50736 2.25 6.75M21.75 6.75V6.99271C21.75 7.77405 21.3447 8.49945 20.6792 8.90894L13.1792 13.5243C12.4561 13.9694 11.5439 13.9694 10.8208 13.5243L3.32078 8.90894C2.65535 8.49945 2.25 7.77405 2.25 6.99271V6.75" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
7
|
+
let svgsolid = `<path d="M1.5 8.6691V17.25C1.5 18.9069 2.84315 20.25 4.5 20.25H19.5C21.1569 20.25 22.5 18.9069 22.5 17.25V8.6691L13.5723 14.1631C12.6081 14.7564 11.3919 14.7564 10.4277 14.1631L1.5 8.6691Z" fill="${color}"/> <path d="M22.5 6.90783V6.75C22.5 5.09315 21.1569 3.75 19.5 3.75H4.5C2.84315 3.75 1.5 5.09315 1.5 6.75V6.90783L11.2139 12.8856C11.696 13.1823 12.304 13.1823 12.7861 12.8856L22.5 6.90783Z" fill="${color}"/> `;
|
|
8
|
+
$: switch (variation) {
|
|
9
|
+
case 'outline':
|
|
10
|
+
svgpath = svgoutline;
|
|
11
|
+
viewBox = '0 0 24 24';
|
|
12
|
+
break;
|
|
13
|
+
case 'solid':
|
|
14
|
+
svgpath = svgsolid;
|
|
15
|
+
viewBox = '0 0 24 24';
|
|
16
|
+
break;
|
|
17
|
+
default:
|
|
18
|
+
svgpath = svgoutline;
|
|
19
|
+
viewBox = '0 0 24 24';
|
|
20
|
+
}
|
|
21
|
+
export let ariaLabel = 'envelope';
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<svg
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
width={size}
|
|
27
|
+
height={size}
|
|
28
|
+
class={$$props.class}
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
aria-label={ariaLabel}
|
|
31
|
+
fill="none"
|
|
32
|
+
{viewBox}
|
|
33
|
+
stroke-width="2"
|
|
34
|
+
on:click
|
|
35
|
+
>
|
|
36
|
+
{@html svgpath}
|
|
37
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
variation?: 'solid' | 'outline';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export declare type EnvelopeProps = typeof __propDef.props;
|
|
18
|
+
export declare type EnvelopeEvents = typeof __propDef.events;
|
|
19
|
+
export declare type EnvelopeSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Envelope extends SvelteComponentTyped<EnvelopeProps, EnvelopeEvents, EnvelopeSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script>// https://github.com/shinokada/svelte-heros-v2
|
|
2
|
+
export let size = '24';
|
|
3
|
+
export let color = 'currentColor';
|
|
4
|
+
export let variation = 'outline';
|
|
5
|
+
let viewBox;
|
|
6
|
+
let svgpath;
|
|
7
|
+
let svgoutline = `<path d="M15.182 15.182C13.4246 16.9393 10.5754 16.9393 8.81802 15.182M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM9.75 9.75C9.75 10.1642 9.58211 10.5 9.375 10.5C9.16789 10.5 9 10.1642 9 9.75C9 9.33579 9.16789 9 9.375 9C9.58211 9 9.75 9.33579 9.75 9.75ZM9.375 9.75H9.3825V9.765H9.375V9.75ZM15 9.75C15 10.1642 14.8321 10.5 14.625 10.5C14.4179 10.5 14.25 10.1642 14.25 9.75C14.25 9.33579 14.4179 9 14.625 9C14.8321 9 15 9.33579 15 9.75ZM14.625 9.75H14.6325V9.765H14.625V9.75Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
8
|
+
let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM9.375 8.25C8.83433 8.25 8.54674 8.66881 8.43901 8.88426C8.30886 9.14457 8.25 9.45171 8.25 9.75C8.25 10.0483 8.30886 10.3554 8.43901 10.6157C8.54674 10.8312 8.83433 11.25 9.375 11.25C9.91567 11.25 10.2033 10.8312 10.311 10.6157C10.4411 10.3554 10.5 10.0483 10.5 9.75C10.5 9.45171 10.4411 9.14457 10.311 8.88426C10.2033 8.66881 9.91567 8.25 9.375 8.25ZM13.689 8.88426C13.7967 8.66881 14.0843 8.25 14.625 8.25C15.1657 8.25 15.4533 8.66881 15.561 8.88426C15.6911 9.14457 15.75 9.45171 15.75 9.75C15.75 10.0483 15.6911 10.3554 15.561 10.6157C15.4533 10.8312 15.1657 11.25 14.625 11.25C14.0843 11.25 13.7967 10.8312 13.689 10.6157C13.5589 10.3554 13.5 10.0483 13.5 9.75C13.5 9.45171 13.5589 9.14457 13.689 8.88426ZM15.7123 15.7123C16.0052 15.4194 16.0052 14.9446 15.7123 14.6517C15.4194 14.3588 14.9445 14.3588 14.6517 14.6517C13.1872 16.1161 10.8128 16.1161 9.34835 14.6517C9.05546 14.3588 8.58058 14.3588 8.28769 14.6517C7.9948 14.9446 7.9948 15.4194 8.28769 15.7123C10.3379 17.7626 13.6621 17.7626 15.7123 15.7123Z" fill="${color}"/> `;
|
|
9
|
+
$: switch (variation) {
|
|
10
|
+
case 'outline':
|
|
11
|
+
svgpath = svgoutline;
|
|
12
|
+
viewBox = '0 0 24 24';
|
|
13
|
+
break;
|
|
14
|
+
case 'solid':
|
|
15
|
+
svgpath = svgsolid;
|
|
16
|
+
viewBox = '0 0 24 24';
|
|
17
|
+
break;
|
|
18
|
+
default:
|
|
19
|
+
svgpath = svgoutline;
|
|
20
|
+
viewBox = '0 0 24 24';
|
|
21
|
+
}
|
|
22
|
+
export let ariaLabel = 'face smile';
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<svg
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
width={size}
|
|
28
|
+
height={size}
|
|
29
|
+
class={$$props.class}
|
|
30
|
+
{...$$restProps}
|
|
31
|
+
aria-label={ariaLabel}
|
|
32
|
+
fill="none"
|
|
33
|
+
{viewBox}
|
|
34
|
+
stroke-width="2"
|
|
35
|
+
on:click
|
|
36
|
+
>
|
|
37
|
+
{@html svgpath}
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
variation?: 'solid' | 'outline';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export declare type FaceSmileProps = typeof __propDef.props;
|
|
18
|
+
export declare type FaceSmileEvents = typeof __propDef.events;
|
|
19
|
+
export declare type FaceSmileSlots = typeof __propDef.slots;
|
|
20
|
+
export default class FaceSmile extends SvelteComponentTyped<FaceSmileProps, FaceSmileEvents, FaceSmileSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>export let size = '24';
|
|
2
|
+
export let color = 'currentColor';
|
|
3
|
+
export let variation = 'outline';
|
|
4
|
+
let viewBox;
|
|
5
|
+
let svgpath;
|
|
6
|
+
let svgoutline = `<path d="M2.25 11.9998L11.2045 3.04533C11.6438 2.60599 12.3562 2.60599 12.7955 3.04532L21.75 11.9998M4.5 9.74983V19.8748C4.5 20.4961 5.00368 20.9998 5.625 20.9998H9.75V16.1248C9.75 15.5035 10.2537 14.9998 10.875 14.9998H13.125C13.7463 14.9998 14.25 15.5035 14.25 16.1248V20.9998H18.375C18.9963 20.9998 19.5 20.4962 19.5 19.8748V9.74983M8.25 20.9998H16.5" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
7
|
+
let svgsolid = `<path d="M11.4697 3.84076C11.7626 3.54787 12.2374 3.54787 12.5303 3.84076L21.2197 12.5301C21.5126 12.823 21.9874 12.823 22.2803 12.5301C22.5732 12.2372 22.5732 11.7623 22.2803 11.4694L13.591 2.7801C12.7123 1.90142 11.2877 1.90142 10.409 2.7801L1.71967 11.4694C1.42678 11.7623 1.42678 12.2372 1.71967 12.5301C2.01256 12.823 2.48744 12.823 2.78033 12.5301L11.4697 3.84076Z" fill="${color}"/> <path d="M12 5.43176L20.159 13.5908C20.1887 13.6205 20.2191 13.6492 20.25 13.6769V19.8748C20.25 20.9103 19.4105 21.7498 18.375 21.7498H15C14.5858 21.7498 14.25 21.414 14.25 20.9998V16.4998C14.25 16.0856 13.9142 15.7498 13.5 15.7498H10.5C10.0858 15.7498 9.75 16.0856 9.75 16.4998V20.9998C9.75 21.414 9.41421 21.7498 9 21.7498H5.625C4.58947 21.7498 3.75 20.9103 3.75 19.8748V13.6769C3.78093 13.6492 3.81127 13.6205 3.84099 13.5908L12 5.43176Z" fill="${color}"/> `;
|
|
8
|
+
$: switch (variation) {
|
|
9
|
+
case 'outline':
|
|
10
|
+
svgpath = svgoutline;
|
|
11
|
+
viewBox = '0 0 24 24';
|
|
12
|
+
break;
|
|
13
|
+
case 'solid':
|
|
14
|
+
svgpath = svgsolid;
|
|
15
|
+
viewBox = '0 0 24 24';
|
|
16
|
+
break;
|
|
17
|
+
default:
|
|
18
|
+
svgpath = svgoutline;
|
|
19
|
+
viewBox = '0 0 24 24';
|
|
20
|
+
}
|
|
21
|
+
export let ariaLabel = 'home';
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<svg
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
width={size}
|
|
27
|
+
height={size}
|
|
28
|
+
class={$$props.class}
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
aria-label={ariaLabel}
|
|
31
|
+
fill="none"
|
|
32
|
+
{viewBox}
|
|
33
|
+
stroke-width="2"
|
|
34
|
+
on:click
|
|
35
|
+
>
|
|
36
|
+
{@html svgpath}
|
|
37
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
variation?: 'solid' | 'outline';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export declare type HomeProps = typeof __propDef.props;
|
|
18
|
+
export declare type HomeEvents = typeof __propDef.events;
|
|
19
|
+
export declare type HomeSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Home extends SvelteComponentTyped<HomeProps, HomeEvents, HomeSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
package/icons/Map.svelte
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script>// https://github.com/shinokada/svelte-heros-v2
|
|
2
|
+
export let size = '24';
|
|
3
|
+
export let color = 'currentColor';
|
|
4
|
+
export let variation = 'outline';
|
|
5
|
+
let viewBox;
|
|
6
|
+
let svgpath;
|
|
7
|
+
let svgoutline = `<path d="M9 6.75002V15M15 9.00002V17.25M15.5031 20.7485L20.3781 18.311C20.7592 18.1204 21 17.7309 21 17.3047V4.82031C21 3.98401 20.1199 3.44007 19.3719 3.81408L15.5031 5.74847C15.1864 5.90683 14.8136 5.90683 14.4969 5.74847L9.50312 3.25158C9.1864 3.09322 8.8136 3.09322 8.49688 3.25158L3.62188 5.68908C3.24075 5.87965 3 6.26919 3 6.69531V19.1797C3 20.016 3.8801 20.56 4.62811 20.186L8.49688 18.2516C8.8136 18.0932 9.1864 18.0932 9.50312 18.2516L14.4969 20.7485C14.8136 20.9068 15.1864 20.9068 15.5031 20.7485Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
8
|
+
let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M8.16147 2.58076C8.68934 2.31683 9.31066 2.31683 9.83853 2.58076L14.8323 5.07765C14.9379 5.13043 15.0621 5.13043 15.1677 5.07765L19.0365 3.14326C20.2832 2.51992 21.75 3.42647 21.75 4.82031V17.3047C21.75 18.0149 21.3487 18.6642 20.7135 18.9818L15.8385 21.4193C15.3107 21.6832 14.6893 21.6832 14.1615 21.4193L9.16771 18.9224C9.06213 18.8696 8.93787 18.8696 8.8323 18.9224L4.96353 20.8568C3.71683 21.4801 2.25 20.5736 2.25 19.1797V6.69531C2.25 5.98512 2.65125 5.33587 3.28647 5.01826L8.16147 2.58076ZM9 6.00002C9.41421 6.00002 9.75 6.3358 9.75 6.75002V15C9.75 15.4142 9.41421 15.75 9 15.75C8.58579 15.75 8.25 15.4142 8.25 15V6.75002C8.25 6.3358 8.58579 6.00002 9 6.00002ZM15.75 9.00002C15.75 8.5858 15.4142 8.25002 15 8.25002C14.5858 8.25002 14.25 8.5858 14.25 9.00002V17.25C14.25 17.6642 14.5858 18 15 18C15.4142 18 15.75 17.6642 15.75 17.25V9.00002Z" fill="${color}"/> `;
|
|
9
|
+
$: switch (variation) {
|
|
10
|
+
case 'outline':
|
|
11
|
+
svgpath = svgoutline;
|
|
12
|
+
viewBox = '0 0 24 24';
|
|
13
|
+
break;
|
|
14
|
+
case 'solid':
|
|
15
|
+
svgpath = svgsolid;
|
|
16
|
+
viewBox = '0 0 24 24';
|
|
17
|
+
break;
|
|
18
|
+
default:
|
|
19
|
+
svgpath = svgoutline;
|
|
20
|
+
viewBox = '0 0 24 24';
|
|
21
|
+
}
|
|
22
|
+
export let ariaLabel = 'map';
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<svg
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
width={size}
|
|
28
|
+
height={size}
|
|
29
|
+
class={$$props.class}
|
|
30
|
+
{...$$restProps}
|
|
31
|
+
aria-label={ariaLabel}
|
|
32
|
+
fill="none"
|
|
33
|
+
{viewBox}
|
|
34
|
+
stroke-width="2"
|
|
35
|
+
on:click
|
|
36
|
+
>
|
|
37
|
+
{@html svgpath}
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
variation?: 'solid' | 'outline';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export declare type MapProps = typeof __propDef.props;
|
|
18
|
+
export declare type MapEvents = typeof __propDef.events;
|
|
19
|
+
export declare type MapSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Map extends SvelteComponentTyped<MapProps, MapEvents, MapSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>export let size = '24';
|
|
2
|
+
export let color = 'currentColor';
|
|
3
|
+
export let variation = 'outline';
|
|
4
|
+
let viewBox;
|
|
5
|
+
let svgpath;
|
|
6
|
+
let svgoutline = `<path d="M15 10.5C15 12.1569 13.6569 13.5 12 13.5C10.3431 13.5 9 12.1569 9 10.5C9 8.84315 10.3431 7.5 12 7.5C13.6569 7.5 15 8.84315 15 10.5Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> <path d="M19.5 10.5C19.5 17.6421 12 21.75 12 21.75C12 21.75 4.5 17.6421 4.5 10.5C4.5 6.35786 7.85786 3 12 3C16.1421 3 19.5 6.35786 19.5 10.5Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
7
|
+
let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5397 22.351C11.57 22.3686 11.5937 22.3821 11.6105 22.3915L11.6384 22.4071C11.8613 22.5294 12.1378 22.5285 12.3608 22.4075L12.3895 22.3915C12.4063 22.3821 12.43 22.3686 12.4603 22.351C12.5207 22.316 12.607 22.265 12.7155 22.1982C12.9325 22.0646 13.2388 21.8676 13.6046 21.6091C14.3351 21.0931 15.3097 20.3274 16.2865 19.3273C18.2307 17.3368 20.25 14.3462 20.25 10.5C20.25 5.94365 16.5563 2.25 12 2.25C7.44365 2.25 3.75 5.94365 3.75 10.5C3.75 14.3462 5.76932 17.3368 7.71346 19.3273C8.69025 20.3274 9.66491 21.0931 10.3954 21.6091C10.7612 21.8676 11.0675 22.0646 11.2845 22.1982C11.393 22.265 11.4793 22.316 11.5397 22.351ZM12 13.5C13.6569 13.5 15 12.1569 15 10.5C15 8.84315 13.6569 7.5 12 7.5C10.3431 7.5 9 8.84315 9 10.5C9 12.1569 10.3431 13.5 12 13.5Z" fill="${color}"/> `;
|
|
8
|
+
$: switch (variation) {
|
|
9
|
+
case 'outline':
|
|
10
|
+
svgpath = svgoutline;
|
|
11
|
+
viewBox = '0 0 24 24';
|
|
12
|
+
break;
|
|
13
|
+
case 'solid':
|
|
14
|
+
svgpath = svgsolid;
|
|
15
|
+
viewBox = '0 0 24 24';
|
|
16
|
+
break;
|
|
17
|
+
default:
|
|
18
|
+
svgpath = svgoutline;
|
|
19
|
+
viewBox = '0 0 24 24';
|
|
20
|
+
}
|
|
21
|
+
export let ariaLabel = 'map pin';
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<svg
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
width={size}
|
|
27
|
+
height={size}
|
|
28
|
+
class={$$props.class}
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
aria-label={ariaLabel}
|
|
31
|
+
fill="none"
|
|
32
|
+
{viewBox}
|
|
33
|
+
stroke-width="2"
|
|
34
|
+
on:click
|
|
35
|
+
>
|
|
36
|
+
{@html svgpath}
|
|
37
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
variation?: 'solid' | 'outline';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export declare type MapPinProps = typeof __propDef.props;
|
|
18
|
+
export declare type MapPinEvents = typeof __propDef.events;
|
|
19
|
+
export declare type MapPinSlots = typeof __propDef.slots;
|
|
20
|
+
export default class MapPin extends SvelteComponentTyped<MapPinProps, MapPinEvents, MapPinSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|