flowbite-svelte 0.25.13 → 0.25.14
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 +19 -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/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/FaceSmile.svelte +38 -0
- package/icons/FaceSmile.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/index.d.ts +9 -1
- package/index.js +9 -1
- package/package.json +10 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.14](https://github.com/themesberg/flowbite-svelte/compare/v0.25.13...v0.25.14) (2022-08-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add icon components rather than import a library ([9dffb40](https://github.com/themesberg/flowbite-svelte/commit/9dffb400607d8bb4dd98e877e466956157016ff7))
|
|
11
|
+
* add Img component, images, and page ([b2aec04](https://github.com/themesberg/flowbite-svelte/commit/b2aec047694aab0bbcbc58d93af8c021e27d4f96))
|
|
12
|
+
* add Img page and examples ([ed3d83f](https://github.com/themesberg/flowbite-svelte/commit/ed3d83f34e195d67e3c7a334d1226d0876441f47))
|
|
13
|
+
* add PaperAirplane icon ([90d2543](https://github.com/themesberg/flowbite-svelte/commit/90d25435eb9cc68b38febaba41b5782efb755981))
|
|
14
|
+
* textarea ([47d51be](https://github.com/themesberg/flowbite-svelte/commit/47d51be427b056793cf64e4089cf4a4a7ba310d7))
|
|
15
|
+
* textarea / fix ([93cdb01](https://github.com/themesberg/flowbite-svelte/commit/93cdb019326ebcaddd3482c5e41c8a635461ac67))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* avatar dot alignment ([2273c0c](https://github.com/themesberg/flowbite-svelte/commit/2273c0ceb82cc634558e7e88aff295c722d73c9f))
|
|
21
|
+
* buttongroup divider ([f5bedaf](https://github.com/themesberg/flowbite-svelte/commit/f5bedafa9a0b36f4a42a54e8c37593d7ee9d8916))
|
|
22
|
+
* Htwo for typography pages ([0921539](https://github.com/themesberg/flowbite-svelte/commit/0921539d06e54f89d9e9dd52c70cdbc81b62dd3e))
|
|
23
|
+
|
|
5
24
|
### [0.25.13](https://github.com/themesberg/flowbite-svelte/compare/v0.25.12...v0.25.13) (2022-08-23)
|
|
6
25
|
|
|
7
26
|
|
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,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 {};
|
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 {};
|
|
@@ -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="M5.99972 12.0005L3.2688 3.125C9.88393 5.04665 16.0276 8.07649 21.4855 12.0002C16.0276 15.924 9.884 18.9539 3.26889 20.8757L5.99972 12.0005ZM5.99972 12.0005L13.5 12.0005" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
7
|
+
let svgsolid = `<path d="M3.47804 2.40479C3.2133 2.32789 2.92771 2.40242 2.73432 2.59889C2.54093 2.79536 2.47091 3.08209 2.55198 3.34558L4.98426 11.2505H13.5C13.9142 11.2505 14.25 11.5863 14.25 12.0005C14.25 12.4147 13.9142 12.7505 13.5 12.7505H4.98427L2.55207 20.6551C2.471 20.9186 2.54102 21.2054 2.73441 21.4018C2.92781 21.5983 3.2134 21.6728 3.47814 21.5959C10.1767 19.6499 16.3974 16.5819 21.9233 12.6092C22.1193 12.4683 22.2355 12.2416 22.2355 12.0002C22.2355 11.7588 22.1193 11.5322 21.9233 11.3913C16.3974 7.41866 10.1767 4.3507 3.47804 2.40479Z" 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 = 'paper airplane';
|
|
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 PaperAirplaneProps = typeof __propDef.props;
|
|
18
|
+
export declare type PaperAirplaneEvents = typeof __propDef.events;
|
|
19
|
+
export declare type PaperAirplaneSlots = typeof __propDef.slots;
|
|
20
|
+
export default class PaperAirplane extends SvelteComponentTyped<PaperAirplaneProps, PaperAirplaneEvents, PaperAirplaneSlots> {
|
|
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="M18.375 12.739L10.682 20.432C8.92462 22.1893 6.07538 22.1893 4.31802 20.432C2.56066 18.6746 2.56066 15.8254 4.31802 14.068L15.2573 3.12868C16.4289 1.95711 18.3283 1.95711 19.4999 3.12868C20.6715 4.30025 20.6715 6.19975 19.4999 7.37132L8.55158 18.3197M8.56066 18.3107C8.55764 18.3137 8.55462 18.3167 8.55158 18.3197M14.2498 8.37865L6.43934 16.1893C5.85355 16.7751 5.85355 17.7249 6.43934 18.3107C7.02211 18.8934 7.9651 18.8964 8.55158 18.3197" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
8
|
+
let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M18.9696 3.65901C18.0909 2.78033 16.6663 2.78033 15.7876 3.65901L4.84835 14.5983C3.38388 16.0628 3.38388 18.4372 4.84835 19.9016C6.31282 21.3661 8.68718 21.3661 10.1517 19.9016L17.8446 12.2087C18.1375 11.9158 18.6124 11.9158 18.9053 12.2087C19.1982 12.5015 19.1982 12.9764 18.9053 13.2693L11.2123 20.9623C9.16206 23.0126 5.83794 23.0126 3.78769 20.9623C1.73744 18.9121 1.73744 15.5879 3.78769 13.5377L14.7269 2.59835C16.1914 1.13388 18.5658 1.13388 20.0302 2.59835C21.4947 4.06281 21.4947 6.43718 20.0302 7.90165L9.09735 18.8346C9.09452 18.8374 9.09167 18.8403 9.08878 18.8432L9.08191 18.85L9.07971 18.8522L9.07747 18.8544C8.19765 19.7196 6.78319 19.7152 5.90901 18.841C5.03033 17.9623 5.03033 16.5377 5.90901 15.659L13.7195 7.84833C14.0124 7.55543 14.4873 7.55542 14.7802 7.84831C15.0731 8.1412 15.0731 8.61608 14.7802 8.90897L6.96968 16.7197C6.67678 17.0125 6.67678 17.4874 6.96967 17.7803C7.26041 18.0711 7.73056 18.0732 8.02383 17.7867L18.9696 6.84099C19.8483 5.96231 19.8483 4.53769 18.9696 3.65901Z" 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 = 'paper clip';
|
|
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 PaperClipProps = typeof __propDef.props;
|
|
18
|
+
export declare type PaperClipEvents = typeof __propDef.events;
|
|
19
|
+
export declare type PaperClipSlots = typeof __propDef.slots;
|
|
20
|
+
export default class PaperClip extends SvelteComponentTyped<PaperClipProps, PaperClipEvents, PaperClipSlots> {
|
|
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="M2.25 15.75L7.40901 10.591C8.28769 9.71231 9.71231 9.71231 10.591 10.591L15.75 15.75M14.25 14.25L15.659 12.841C16.5377 11.9623 17.9623 11.9623 18.841 12.841L21.75 15.75M3.75 19.5H20.25C21.0784 19.5 21.75 18.8284 21.75 18V6C21.75 5.17157 21.0784 4.5 20.25 4.5H3.75C2.92157 4.5 2.25 5.17157 2.25 6V18C2.25 18.8284 2.92157 19.5 3.75 19.5ZM14.25 8.25H14.2575V8.2575H14.25V8.25ZM14.625 8.25C14.625 8.45711 14.4571 8.625 14.25 8.625C14.0429 8.625 13.875 8.45711 13.875 8.25C13.875 8.04289 14.0429 7.875 14.25 7.875C14.4571 7.875 14.625 8.04289 14.625 8.25Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
8
|
+
let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 6C1.5 4.75736 2.50736 3.75 3.75 3.75H20.25C21.4926 3.75 22.5 4.75736 22.5 6V18C22.5 19.2426 21.4926 20.25 20.25 20.25H3.75C2.50736 20.25 1.5 19.2426 1.5 18V6ZM3 16.0607V18C3 18.4142 3.33579 18.75 3.75 18.75H20.25C20.6642 18.75 21 18.4142 21 18V16.0607L18.3107 13.3713C17.7249 12.7855 16.7751 12.7855 16.1893 13.3713L15.3107 14.25L16.2803 15.2197C16.5732 15.5126 16.5732 15.9874 16.2803 16.2803C15.9874 16.5732 15.5126 16.5732 15.2197 16.2803L10.0607 11.1213C9.47487 10.5355 8.52513 10.5355 7.93934 11.1213L3 16.0607ZM13.125 8.25C13.125 7.62868 13.6287 7.125 14.25 7.125C14.8713 7.125 15.375 7.62868 15.375 8.25C15.375 8.87132 14.8713 9.375 14.25 9.375C13.6287 9.375 13.125 8.87132 13.125 8.25Z" 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 = 'photo';
|
|
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 PhotoProps = typeof __propDef.props;
|
|
18
|
+
export declare type PhotoEvents = typeof __propDef.events;
|
|
19
|
+
export declare type PhotoSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Photo extends SvelteComponentTyped<PhotoProps, PhotoEvents, PhotoSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -40,8 +40,15 @@ export { default as SimpleSearch } from './forms/SimpleSearch.svelte';
|
|
|
40
40
|
export { default as Textarea } from './forms/Textarea.svelte';
|
|
41
41
|
export { default as Toggle } from './forms/Toggle.svelte';
|
|
42
42
|
export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
|
|
43
|
-
export { default as
|
|
43
|
+
export { default as CodeBracket } from './icons/CodeBracket.svelte';
|
|
44
|
+
export { default as FaceSmile } from './icons/FaceSmile.svelte';
|
|
44
45
|
export { default as Figma } from './icons/Figma.svelte';
|
|
46
|
+
export { default as Map } from './icons/Map.svelte';
|
|
47
|
+
export { default as MapPin } from './icons/MapPin.svelte';
|
|
48
|
+
export { default as PaperAirplane } from './icons/PaperAirplane.svelte';
|
|
49
|
+
export { default as PaperClip } from './icons/PaperClip.svelte';
|
|
50
|
+
export { default as Photo } from './icons/Photo.svelte';
|
|
51
|
+
export { default as QuoteLeft } from './icons/QuoteLeft.svelte';
|
|
45
52
|
export { default as Kbd } from './kbd/Kbd.svelte';
|
|
46
53
|
export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
|
|
47
54
|
export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
|
|
@@ -118,6 +125,7 @@ export { default as Blockquote } from './typography/Blockquote.svelte';
|
|
|
118
125
|
export { default as Heading } from './typography/Heading.svelte';
|
|
119
126
|
export { default as Highlight } from './typography/Highlight.svelte';
|
|
120
127
|
export { default as Hr } from './typography/Hr.svelte';
|
|
128
|
+
export { default as Img } from './typography/Img.svelte';
|
|
121
129
|
export { default as Mark } from './typography/Mark.svelte';
|
|
122
130
|
export { default as P } from './typography/P.svelte';
|
|
123
131
|
export { default as Secondary } from './typography/Secondary.svelte';
|
package/index.js
CHANGED
|
@@ -56,8 +56,15 @@ export { default as Textarea } from './forms/Textarea.svelte';
|
|
|
56
56
|
export { default as Toggle } from './forms/Toggle.svelte';
|
|
57
57
|
export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
|
|
58
58
|
// Icons
|
|
59
|
-
export { default as
|
|
59
|
+
export { default as CodeBracket } from './icons/CodeBracket.svelte';
|
|
60
|
+
export { default as FaceSmile } from './icons/FaceSmile.svelte';
|
|
60
61
|
export { default as Figma } from './icons/Figma.svelte';
|
|
62
|
+
export { default as Map } from './icons/Map.svelte';
|
|
63
|
+
export { default as MapPin } from './icons/MapPin.svelte';
|
|
64
|
+
export { default as PaperAirplane } from './icons/PaperAirplane.svelte';
|
|
65
|
+
export { default as PaperClip } from './icons/PaperClip.svelte';
|
|
66
|
+
export { default as Photo } from './icons/Photo.svelte';
|
|
67
|
+
export { default as QuoteLeft } from './icons/QuoteLeft.svelte';
|
|
61
68
|
// Kbd
|
|
62
69
|
export { default as Kbd } from './kbd/Kbd.svelte';
|
|
63
70
|
export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
|
|
@@ -152,6 +159,7 @@ export { default as Blockquote } from './typography/Blockquote.svelte';
|
|
|
152
159
|
export { default as Heading } from './typography/Heading.svelte';
|
|
153
160
|
export { default as Highlight } from './typography/Highlight.svelte';
|
|
154
161
|
export { default as Hr } from './typography/Hr.svelte';
|
|
162
|
+
export { default as Img } from './typography/Img.svelte';
|
|
155
163
|
export { default as Mark } from './typography/Mark.svelte';
|
|
156
164
|
export { default as P } from './typography/P.svelte';
|
|
157
165
|
export { default as Secondary } from './typography/Secondary.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.14",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -149,7 +149,14 @@
|
|
|
149
149
|
"./forms/Textarea.svelte": "./forms/Textarea.svelte",
|
|
150
150
|
"./forms/Toggle.svelte": "./forms/Toggle.svelte",
|
|
151
151
|
"./forms/VoiceSearch.svelte": "./forms/VoiceSearch.svelte",
|
|
152
|
+
"./icons/CodeBracket.svelte": "./icons/CodeBracket.svelte",
|
|
153
|
+
"./icons/FaceSmile.svelte": "./icons/FaceSmile.svelte",
|
|
152
154
|
"./icons/Figma.svelte": "./icons/Figma.svelte",
|
|
155
|
+
"./icons/Map.svelte": "./icons/Map.svelte",
|
|
156
|
+
"./icons/MapPin.svelte": "./icons/MapPin.svelte",
|
|
157
|
+
"./icons/PaperAirplane.svelte": "./icons/PaperAirplane.svelte",
|
|
158
|
+
"./icons/PaperClip.svelte": "./icons/PaperClip.svelte",
|
|
159
|
+
"./icons/Photo.svelte": "./icons/Photo.svelte",
|
|
153
160
|
"./icons/QuoteLeft.svelte": "./icons/QuoteLeft.svelte",
|
|
154
161
|
".": "./index.js",
|
|
155
162
|
"./kbd/ArrowKeyDown.svelte": "./kbd/ArrowKeyDown.svelte",
|
|
@@ -229,6 +236,7 @@
|
|
|
229
236
|
"./typography/Heading.svelte": "./typography/Heading.svelte",
|
|
230
237
|
"./typography/Highlight.svelte": "./typography/Highlight.svelte",
|
|
231
238
|
"./typography/Hr.svelte": "./typography/Hr.svelte",
|
|
239
|
+
"./typography/Img.svelte": "./typography/Img.svelte",
|
|
232
240
|
"./typography/Mark.svelte": "./typography/Mark.svelte",
|
|
233
241
|
"./typography/P.svelte": "./typography/P.svelte",
|
|
234
242
|
"./typography/Secondary.svelte": "./typography/Secondary.svelte",
|
|
@@ -236,6 +244,7 @@
|
|
|
236
244
|
"./typography/Underline.svelte": "./typography/Underline.svelte",
|
|
237
245
|
"./utils/CloseButton.svelte": "./utils/CloseButton.svelte",
|
|
238
246
|
"./utils/Popper.svelte": "./utils/Popper.svelte",
|
|
247
|
+
"./utils/Wrapper.svelte": "./utils/Wrapper.svelte",
|
|
239
248
|
"./utils/clickOutside": "./utils/clickOutside.js",
|
|
240
249
|
"./utils/focusTrap": "./utils/focusTrap.js",
|
|
241
250
|
"./utils/generateId": "./utils/generateId.js"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let caption = undefined;
|
|
3
|
+
export let src = undefined;
|
|
4
|
+
export let srcset = undefined;
|
|
5
|
+
export let size = 'max-w-full';
|
|
6
|
+
export let alignment = '';
|
|
7
|
+
export let imgClass = 'h-auto';
|
|
8
|
+
export let figClass = 'max-w-lg';
|
|
9
|
+
export let alt = '';
|
|
10
|
+
export let effect = '';
|
|
11
|
+
export let captionClass = 'mt-2 text-sm text-center text-gray-500 dark:text-gray-400';
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
{#if caption}
|
|
15
|
+
<figure class={figClass}>
|
|
16
|
+
<img
|
|
17
|
+
class={classNames(imgClass, size, alignment, effect, $$props.class)}
|
|
18
|
+
{src}
|
|
19
|
+
{srcset}
|
|
20
|
+
{alt}
|
|
21
|
+
/>
|
|
22
|
+
<figcaption class={captionClass}>{@html caption}</figcaption>
|
|
23
|
+
</figure>
|
|
24
|
+
{:else}
|
|
25
|
+
<img class={classNames(imgClass, size, alignment, effect, $$props.class)} {src} {srcset} {alt} />
|
|
26
|
+
{/if}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
caption?: string | undefined;
|
|
6
|
+
src?: string | undefined;
|
|
7
|
+
srcset?: string | undefined;
|
|
8
|
+
size?: string;
|
|
9
|
+
alignment?: string;
|
|
10
|
+
imgClass?: string;
|
|
11
|
+
figClass?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
effect?: string;
|
|
14
|
+
captionClass?: string;
|
|
15
|
+
};
|
|
16
|
+
events: {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
};
|
|
19
|
+
slots: {};
|
|
20
|
+
};
|
|
21
|
+
export declare type ImgProps = typeof __propDef.props;
|
|
22
|
+
export declare type ImgEvents = typeof __propDef.events;
|
|
23
|
+
export declare type ImgSlots = typeof __propDef.slots;
|
|
24
|
+
export default class Img extends SvelteComponentTyped<ImgProps, ImgEvents, ImgSlots> {
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/utils/CloseButton.svelte
CHANGED
|
@@ -5,6 +5,7 @@ export let color = 'default';
|
|
|
5
5
|
export let name = 'Close';
|
|
6
6
|
export let size = 'md';
|
|
7
7
|
const colors = {
|
|
8
|
+
dark: 'hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-600',
|
|
8
9
|
gray: 'focus:ring-gray-400 hover:bg-gray-200 dark:hover:bg-gray-300',
|
|
9
10
|
red: 'focus:ring-red-400 hover:bg-red-200 dark:hover:bg-red-300',
|
|
10
11
|
yellow: 'focus:ring-yellow-400 hover:bg-yellow-200 dark:hover:bg-yellow-300',
|
|
@@ -18,10 +19,10 @@ const colors = {
|
|
|
18
19
|
const sizing = {
|
|
19
20
|
xs: 'm-0.5 rounded focus:ring-1 p-0.5',
|
|
20
21
|
sm: 'm-0.5 rounded focus:ring-1 p-0.5',
|
|
21
|
-
md: '
|
|
22
|
+
md: 'rounded-lg focus:ring-2 p-1.5'
|
|
22
23
|
};
|
|
23
24
|
let buttonClass = '';
|
|
24
|
-
$: buttonClass = classNames('ml-auto focus:outline-none', sizing[size], colors[color], color === 'default' &&
|
|
25
|
+
$: buttonClass = classNames('ml-auto focus:outline-none whitespace-normal', sizing[size], colors[color], color === 'default' &&
|
|
25
26
|
(background
|
|
26
27
|
? 'hover:bg-gray-100 dark:hover:bg-gray-600'
|
|
27
28
|
: 'hover:bg-gray-100 dark:hover:bg-gray-700'), $$props.class);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
show: boolean;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare type WrapperProps = typeof __propDef.props;
|
|
15
|
+
export declare type WrapperEvents = typeof __propDef.events;
|
|
16
|
+
export declare type WrapperSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Wrapper extends SvelteComponentTyped<WrapperProps, WrapperEvents, WrapperSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|