flowbite-svelte 0.23.2 → 0.24.1
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 +36 -0
- package/README.md +2 -0
- package/alerts/Alert.svelte +13 -1
- package/alerts/Alert.svelte.d.ts +8 -0
- package/buttongroups/ButtonGroupItem.svelte +1 -3
- package/buttons/Button.svelte +0 -1
- package/buttons/Button.svelte.d.ts +1 -1
- package/cards/Card.svelte +11 -2
- package/cards/Card.svelte.d.ts +2 -1
- package/dropdowns/DropdownItem.svelte +1 -1
- package/forms/Dropzone.svelte +13 -1
- package/forms/Dropzone.svelte.d.ts +8 -0
- package/forms/FloatingLabelInput.svelte +5 -5
- package/forms/FloatingLabelInput.svelte.d.ts +5 -5
- package/forms/Input.svelte +4 -4
- package/forms/Input.svelte.d.ts +4 -4
- package/forms/Radio.svelte +5 -5
- package/forms/Radio.svelte.d.ts +5 -5
- package/forms/Range.svelte +2 -2
- package/forms/Range.svelte.d.ts +2 -2
- package/forms/Search.svelte +5 -5
- package/forms/Search.svelte.d.ts +5 -5
- package/forms/SimpleSearch.svelte +11 -0
- package/forms/SimpleSearch.svelte.d.ts +11 -0
- package/forms/Textarea.svelte +5 -5
- package/forms/Textarea.svelte.d.ts +5 -5
- package/index.d.ts +1 -2
- package/index.js +2 -2
- package/list-group/ListItem.svelte +20 -0
- package/list-group/ListItem.svelte.d.ts +9 -0
- package/modals/Modal.svelte +1 -2
- package/navbar/NavDropdown.svelte +5 -4
- package/navbar/NavDropdown.svelte.d.ts +5 -3
- package/navbar/NavLi.svelte +5 -4
- package/navbar/NavLi.svelte.d.ts +5 -3
- package/package.json +2 -4
- package/paginations/Next.svelte +14 -1
- package/paginations/Next.svelte.d.ts +9 -0
- package/paginations/Pagination.svelte +69 -5
- package/paginations/Pagination.svelte.d.ts +9 -0
- package/paginations/Previous.svelte +14 -1
- package/paginations/Previous.svelte.d.ts +9 -0
- package/paginations/TableData.svelte +30 -2
- package/paginations/TableData.svelte.d.ts +9 -0
- package/sidebars/SidebarDropdownItem.svelte +4 -4
- package/sidebars/SidebarDropdownItem.svelte.d.ts +4 -3
- package/sidebars/SidebarItem.svelte +4 -4
- package/sidebars/SidebarItem.svelte.d.ts +4 -3
- package/tabs/DefaultTabs.svelte +4 -4
- package/tabs/DefaultTabs.svelte.d.ts +4 -3
- package/tabs/FullWidthTabs.svelte +4 -4
- package/tabs/FullWidthTabs.svelte.d.ts +4 -3
- package/tabs/IconTabs.svelte +4 -4
- package/tabs/IconTabs.svelte.d.ts +4 -3
- package/tabs/InteractiveTabHead.svelte +4 -4
- package/tabs/InteractiveTabHead.svelte.d.ts +4 -3
- package/tabs/InteractiveTabs.svelte +4 -4
- package/tabs/InteractiveTabs.svelte.d.ts +4 -3
- package/tabs/PillTabs.svelte +4 -4
- package/tabs/PillTabs.svelte.d.ts +4 -3
- package/tabs/UnderlineTabs.svelte +0 -1
- package/tooltips/Tooltip.svelte +27 -22
- package/types.d.ts +1 -1
- package/cards/EcommerceCard.svelte +0 -52
- package/cards/EcommerceCard.svelte.d.ts +0 -28
- package/cards/SignInCard.svelte +0 -63
- package/cards/SignInCard.svelte.d.ts +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
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.24.1](https://github.com/themesberg/flowbite-svelte/compare/v0.24.0...v0.24.1) (2022-08-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* change from import { CloseButton } from $lib to import CloseButton from "../utils/CloseButton.svelte" in lib dir ([4eb4346](https://github.com/themesberg/flowbite-svelte/commit/4eb4346a2c4679d58c00309e0cb1a28304888a72))
|
|
11
|
+
* update Button color types ([974df12](https://github.com/themesberg/flowbite-svelte/commit/974df12eaf2d796676700df09f2ee83d24ffc328))
|
|
12
|
+
|
|
13
|
+
## [0.24.0](https://github.com/themesberg/flowbite-svelte/compare/v0.23.3...v0.24.0) (2022-08-07)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### ⚠ BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* change node version to 0.16.16 since new playwright and sveltekit require it, https://github.com/sveltejs/kit/issues/5842
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* change node version to 0.16.16 since new playwright and sveltekit require it, https://github.com/sveltejs/kit/issues/5842 ([6175c2c](https://github.com/themesberg/flowbite-svelte/commit/6175c2cb54c60829eb329bce90772e59b888063f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* [#200](https://github.com/themesberg/flowbite-svelte/issues/200) undefined in tooltips ([4ed2ec0](https://github.com/themesberg/flowbite-svelte/commit/4ed2ec04945676cbc3e40011fb7790d1de18d8db))
|
|
28
|
+
* A11y fix for all alt taking out picture for img tag ([a247c32](https://github.com/themesberg/flowbite-svelte/commit/a247c32171543450647877a0f7192e63ee64fbb5))
|
|
29
|
+
* add CloseButton to index and change import from $lib ([cc8fe25](https://github.com/themesberg/flowbite-svelte/commit/cc8fe2504474f6a0fbefb5474ef5cf798f6a28a8))
|
|
30
|
+
* alerts with list color removal ([f940441](https://github.com/themesberg/flowbite-svelte/commit/f940441098e4f033b6dd405d0cb774e6d8b5030e))
|
|
31
|
+
* clean up import from utils for docs ([b50126d](https://github.com/themesberg/flowbite-svelte/commit/b50126d2f78e7613e48008b46c0bd77cdc7471fa))
|
|
32
|
+
|
|
33
|
+
### [0.23.3](https://github.com/themesberg/flowbite-svelte/compare/v0.23.2...v0.23.3) (2022-08-05)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* remove EcommerceCard and SignInCard ([7e6b2b6](https://github.com/themesberg/flowbite-svelte/commit/7e6b2b689a86cb47df080908ef3217345361667a))
|
|
39
|
+
* SignInCard type update ([55c824a](https://github.com/themesberg/flowbite-svelte/commit/55c824aa08727eb3f07c12fc589158e7cc94fd5f))
|
|
40
|
+
|
|
5
41
|
### [0.23.2](https://github.com/themesberg/flowbite-svelte/compare/v0.23.1...v0.23.2) (2022-08-04)
|
|
6
42
|
|
|
7
43
|
|
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
[](https://github.com/themesberg/flowbite-svelte/releases)
|
|
6
6
|
[](https://github.com/themesberg/flowbite-svelte/blob/main/LICENSE)
|
|
7
7
|
|
|
8
|
+
**⚠️ Flowbite-Svelte is currently in early development and APIs and packages are likely to change quite often.**
|
|
9
|
+
|
|
8
10
|
<p>
|
|
9
11
|
<a href="https://flowbite-svelte.com" >
|
|
10
12
|
<img alt="Flowbite-Svelte CSS components" width="350" src="https://raw.githubusercontent.com/themesberg/flowbite-svelte/main/static/images/flowbite-svelte.png">
|
package/alerts/Alert.svelte
CHANGED
|
@@ -64,7 +64,19 @@ $: divClass = classNames('flex flex-col p-4 mb-4 gap-2 text-sm', bgClasses[color
|
|
|
64
64
|
</div>
|
|
65
65
|
|
|
66
66
|
{#if dismissable}
|
|
67
|
-
<CloseButton
|
|
67
|
+
<CloseButton
|
|
68
|
+
{color}
|
|
69
|
+
on:click={handleHide}
|
|
70
|
+
on:click={handleAlert}
|
|
71
|
+
on:click
|
|
72
|
+
on:change
|
|
73
|
+
on:keydown
|
|
74
|
+
on:keyup
|
|
75
|
+
on:focus
|
|
76
|
+
on:blur
|
|
77
|
+
on:mouseenter
|
|
78
|
+
on:mouseleave
|
|
79
|
+
/>
|
|
68
80
|
{/if}
|
|
69
81
|
</div>
|
|
70
82
|
<slot name="extra" />
|
package/alerts/Alert.svelte.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ declare const __propDef: {
|
|
|
11
11
|
accent?: boolean;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
|
+
click: MouseEvent;
|
|
15
|
+
change: CustomEvent<any>;
|
|
16
|
+
keydown: CustomEvent<any>;
|
|
17
|
+
keyup: CustomEvent<any>;
|
|
18
|
+
focus: CustomEvent<any>;
|
|
19
|
+
blur: CustomEvent<any>;
|
|
20
|
+
mouseenter: CustomEvent<any>;
|
|
21
|
+
mouseleave: CustomEvent<any>;
|
|
14
22
|
handleAlert: CustomEvent<any>;
|
|
15
23
|
} & {
|
|
16
24
|
[evt: string]: CustomEvent<any>;
|
|
@@ -19,8 +19,7 @@ if (outline) {
|
|
|
19
19
|
on:keydown
|
|
20
20
|
on:keyup
|
|
21
21
|
on:mouseenter
|
|
22
|
-
on:mouseleave
|
|
23
|
-
on:mouseenter><slot /></a
|
|
22
|
+
on:mouseleave><slot /></a
|
|
24
23
|
>
|
|
25
24
|
{:else}
|
|
26
25
|
<button
|
|
@@ -35,7 +34,6 @@ if (outline) {
|
|
|
35
34
|
on:blur
|
|
36
35
|
on:mouseenter
|
|
37
36
|
on:mouseleave
|
|
38
|
-
on:mouseenter
|
|
39
37
|
>
|
|
40
38
|
<slot />
|
|
41
39
|
</button>
|
package/buttons/Button.svelte
CHANGED
|
@@ -7,7 +7,7 @@ declare const __propDef: {
|
|
|
7
7
|
gradient?: boolean;
|
|
8
8
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
9
|
href?: string;
|
|
10
|
-
color?: 'blue' | '
|
|
10
|
+
color?: 'alternative' | 'blue' | 'cyan' | 'dark' | 'light' | 'lime' | 'green' | 'pink' | 'red' | 'teal' | 'yellow' | 'purple' | 'purpleToBlue' | 'cyanToBlue' | 'greenToBlue' | 'purpleToPink' | 'pinkToOrange' | 'tealToLime' | 'redToYellow';
|
|
11
11
|
shadow?: 'blue' | 'green' | 'cyan' | 'teal' | 'lime' | 'red' | 'pink' | 'purple' | null;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
package/cards/Card.svelte
CHANGED
|
@@ -5,17 +5,26 @@ export let horizontal = false;
|
|
|
5
5
|
export let reverse = false;
|
|
6
6
|
export let img = undefined;
|
|
7
7
|
export let padding = 'lg';
|
|
8
|
+
export let size = 'sm';
|
|
8
9
|
setContext('background', true);
|
|
9
10
|
const paddings = {
|
|
11
|
+
none: 'p-0',
|
|
10
12
|
sm: 'p-4',
|
|
11
13
|
md: 'p-5',
|
|
12
14
|
lg: 'p-6',
|
|
13
15
|
xl: 'p-8'
|
|
14
16
|
};
|
|
17
|
+
const sizes = {
|
|
18
|
+
xs: 'max-w-xs',
|
|
19
|
+
sm: 'max-w-sm',
|
|
20
|
+
md: 'max-w-lg',
|
|
21
|
+
lg: 'max-w-2xl',
|
|
22
|
+
xl: 'max-w-screen-xl'
|
|
23
|
+
};
|
|
15
24
|
let innerPdding;
|
|
16
25
|
$: innerPdding = paddings[padding];
|
|
17
26
|
let cardClass;
|
|
18
|
-
$: cardClass = classNames('
|
|
27
|
+
$: cardClass = classNames('flex', sizes[size], reverse ? 'flex-col-reverse' : 'flex-col', horizontal && (reverse ? 'md:flex-row-reverse md:max-w-xl' : 'md:flex-row md:max-w-xl'), 'bg-white dark:bg-gray-800 shadow-md', 'text-gray-500 dark:text-gray-400', 'rounded-lg border border-gray-200 dark:border-gray-700', href && 'hover:bg-gray-100 dark:hover:bg-gray-700', !img && innerPdding, $$props.class);
|
|
19
28
|
let imgClass;
|
|
20
29
|
$: imgClass = classNames(reverse ? 'rounded-b-lg' : 'rounded-t-lg', horizontal && 'object-cover w-full h-96 md:h-auto md:w-48 md:rounded-none', horizontal && (reverse ? 'md:rounded-r-lg' : 'md:rounded-l-lg'));
|
|
21
30
|
</script>
|
|
@@ -27,6 +36,6 @@ $: imgClass = classNames(reverse ? 'rounded-b-lg' : 'rounded-t-lg', horizontal &
|
|
|
27
36
|
<slot />
|
|
28
37
|
</div>
|
|
29
38
|
{:else}
|
|
30
|
-
<
|
|
39
|
+
<slot />
|
|
31
40
|
{/if}
|
|
32
41
|
</svelte:element>
|
package/cards/Card.svelte.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ const colors = {
|
|
|
11
11
|
{...$$restProps}
|
|
12
12
|
class={classNames(liClass, colors[color] ?? colors.default, $$props.class)}
|
|
13
13
|
on:click|stopPropagation
|
|
14
|
+
on:click
|
|
14
15
|
on:change
|
|
15
16
|
on:keydown
|
|
16
17
|
on:keyup
|
|
@@ -18,7 +19,6 @@ const colors = {
|
|
|
18
19
|
on:blur
|
|
19
20
|
on:mouseenter
|
|
20
21
|
on:mouseleave
|
|
21
|
-
on:mouseenter
|
|
22
22
|
>
|
|
23
23
|
<slot />
|
|
24
24
|
</li>
|
package/forms/Dropzone.svelte
CHANGED
|
@@ -9,6 +9,18 @@ export let innerDivClass = 'flex flex-col justify-center items-center pt-5 pb-6'
|
|
|
9
9
|
<div class={innerDivClass}>
|
|
10
10
|
<slot />
|
|
11
11
|
</div>
|
|
12
|
-
<input
|
|
12
|
+
<input
|
|
13
|
+
{...$$restProps}
|
|
14
|
+
bind:value
|
|
15
|
+
type="file"
|
|
16
|
+
class="hidden"
|
|
17
|
+
on:click
|
|
18
|
+
on:change
|
|
19
|
+
on:focus
|
|
20
|
+
on:blur
|
|
21
|
+
on:mouseenter
|
|
22
|
+
on:mouseleave
|
|
23
|
+
on:mouseover
|
|
24
|
+
/>
|
|
13
25
|
</label>
|
|
14
26
|
</div>
|
|
@@ -8,6 +8,14 @@ declare const __propDef: {
|
|
|
8
8
|
innerDivClass?: string;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
change: Event;
|
|
13
|
+
focus: FocusEvent;
|
|
14
|
+
blur: FocusEvent;
|
|
15
|
+
mouseenter: MouseEvent;
|
|
16
|
+
mouseleave: MouseEvent;
|
|
17
|
+
mouseover: MouseEvent;
|
|
18
|
+
} & {
|
|
11
19
|
[evt: string]: CustomEvent<any>;
|
|
12
20
|
};
|
|
13
21
|
slots: {
|
|
@@ -72,16 +72,16 @@ function setType(node) {
|
|
|
72
72
|
{id}
|
|
73
73
|
{...$$restProps}
|
|
74
74
|
bind:value
|
|
75
|
-
on:change
|
|
76
75
|
on:blur
|
|
77
|
-
on:
|
|
76
|
+
on:change
|
|
77
|
+
on:click
|
|
78
|
+
on:focus
|
|
78
79
|
on:keydown
|
|
79
80
|
on:keypress
|
|
80
|
-
on:
|
|
81
|
-
on:click
|
|
82
|
-
on:mouseover
|
|
81
|
+
on:keyup
|
|
83
82
|
on:mouseenter
|
|
84
83
|
on:mouseleave
|
|
84
|
+
on:mouseover
|
|
85
85
|
on:paste
|
|
86
86
|
bind:this={ref}
|
|
87
87
|
use:setType
|
|
@@ -13,16 +13,16 @@ declare const __propDef: {
|
|
|
13
13
|
ref?: HTMLElement;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
|
-
change: Event;
|
|
17
16
|
blur: FocusEvent;
|
|
18
|
-
|
|
17
|
+
change: Event;
|
|
18
|
+
click: MouseEvent;
|
|
19
|
+
focus: FocusEvent;
|
|
19
20
|
keydown: KeyboardEvent;
|
|
20
21
|
keypress: KeyboardEvent;
|
|
21
|
-
|
|
22
|
-
click: MouseEvent;
|
|
23
|
-
mouseover: MouseEvent;
|
|
22
|
+
keyup: KeyboardEvent;
|
|
24
23
|
mouseenter: MouseEvent;
|
|
25
24
|
mouseleave: MouseEvent;
|
|
25
|
+
mouseover: MouseEvent;
|
|
26
26
|
paste: ClipboardEvent;
|
|
27
27
|
} & {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
package/forms/Input.svelte
CHANGED
|
@@ -23,13 +23,13 @@ function setType(node) {
|
|
|
23
23
|
{...$$restProps}
|
|
24
24
|
bind:value
|
|
25
25
|
bind:this={ref}
|
|
26
|
+
on:blur
|
|
26
27
|
on:change
|
|
27
|
-
on:
|
|
28
|
+
on:click
|
|
29
|
+
on:focus
|
|
28
30
|
on:keydown
|
|
29
31
|
on:keypress
|
|
30
|
-
on:
|
|
31
|
-
on:blur
|
|
32
|
-
on:click
|
|
32
|
+
on:keyup
|
|
33
33
|
on:mouseover
|
|
34
34
|
on:mouseenter
|
|
35
35
|
on:mouseleave
|
package/forms/Input.svelte.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ declare const __propDef: {
|
|
|
11
11
|
ref?: HTMLElement;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
|
+
blur: FocusEvent;
|
|
14
15
|
change: Event;
|
|
15
|
-
|
|
16
|
+
click: MouseEvent;
|
|
17
|
+
focus: FocusEvent;
|
|
16
18
|
keydown: KeyboardEvent;
|
|
17
19
|
keypress: KeyboardEvent;
|
|
18
|
-
|
|
19
|
-
blur: FocusEvent;
|
|
20
|
-
click: MouseEvent;
|
|
20
|
+
keyup: KeyboardEvent;
|
|
21
21
|
mouseover: MouseEvent;
|
|
22
22
|
mouseenter: MouseEvent;
|
|
23
23
|
mouseleave: MouseEvent;
|
package/forms/Radio.svelte
CHANGED
|
@@ -41,16 +41,16 @@ let background = getContext('background');
|
|
|
41
41
|
<input
|
|
42
42
|
type="radio"
|
|
43
43
|
bind:group
|
|
44
|
+
on:blur
|
|
44
45
|
on:change
|
|
45
|
-
on:
|
|
46
|
+
on:click
|
|
47
|
+
on:focus
|
|
46
48
|
on:keydown
|
|
47
49
|
on:keypress
|
|
48
|
-
on:
|
|
49
|
-
on:blur
|
|
50
|
-
on:click
|
|
51
|
-
on:mouseover
|
|
50
|
+
on:keyup
|
|
52
51
|
on:mouseenter
|
|
53
52
|
on:mouseleave
|
|
53
|
+
on:mouseover
|
|
54
54
|
on:paste
|
|
55
55
|
{value}
|
|
56
56
|
{...$$restProps}
|
package/forms/Radio.svelte.d.ts
CHANGED
|
@@ -12,16 +12,16 @@ declare const __propDef: {
|
|
|
12
12
|
value?: string;
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
|
+
blur: FocusEvent;
|
|
15
16
|
change: Event;
|
|
16
|
-
|
|
17
|
+
click: MouseEvent;
|
|
18
|
+
focus: FocusEvent;
|
|
17
19
|
keydown: KeyboardEvent;
|
|
18
20
|
keypress: KeyboardEvent;
|
|
19
|
-
|
|
20
|
-
blur: FocusEvent;
|
|
21
|
-
click: MouseEvent;
|
|
22
|
-
mouseover: MouseEvent;
|
|
21
|
+
keyup: KeyboardEvent;
|
|
23
22
|
mouseenter: MouseEvent;
|
|
24
23
|
mouseleave: MouseEvent;
|
|
24
|
+
mouseover: MouseEvent;
|
|
25
25
|
paste: ClipboardEvent;
|
|
26
26
|
} & {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
package/forms/Range.svelte
CHANGED
package/forms/Range.svelte.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ declare const __propDef: {
|
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
change: Event;
|
|
14
|
-
|
|
14
|
+
click: MouseEvent;
|
|
15
15
|
keydown: KeyboardEvent;
|
|
16
16
|
keypress: KeyboardEvent;
|
|
17
|
-
|
|
17
|
+
keyup: KeyboardEvent;
|
|
18
18
|
} & {
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
package/forms/Search.svelte
CHANGED
|
@@ -25,16 +25,16 @@ export let placeholder = 'Search';
|
|
|
25
25
|
</div>
|
|
26
26
|
<input
|
|
27
27
|
{...$$restProps}
|
|
28
|
+
on:blur
|
|
28
29
|
on:change
|
|
29
|
-
on:
|
|
30
|
+
on:click
|
|
31
|
+
on:focus
|
|
30
32
|
on:keydown
|
|
31
33
|
on:keypress
|
|
32
|
-
on:
|
|
33
|
-
on:blur
|
|
34
|
-
on:click
|
|
35
|
-
on:mouseover
|
|
34
|
+
on:keyup
|
|
36
35
|
on:mouseenter
|
|
37
36
|
on:mouseleave
|
|
37
|
+
on:mouseover
|
|
38
38
|
on:paste
|
|
39
39
|
type="search"
|
|
40
40
|
{id}
|
package/forms/Search.svelte.d.ts
CHANGED
|
@@ -10,16 +10,16 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
submit: SubmitEvent;
|
|
13
|
+
blur: FocusEvent;
|
|
13
14
|
change: Event;
|
|
14
|
-
|
|
15
|
+
click: MouseEvent;
|
|
16
|
+
focus: FocusEvent;
|
|
15
17
|
keydown: KeyboardEvent;
|
|
16
18
|
keypress: KeyboardEvent;
|
|
17
|
-
|
|
18
|
-
blur: FocusEvent;
|
|
19
|
-
click: MouseEvent;
|
|
20
|
-
mouseover: MouseEvent;
|
|
19
|
+
keyup: KeyboardEvent;
|
|
21
20
|
mouseenter: MouseEvent;
|
|
22
21
|
mouseleave: MouseEvent;
|
|
22
|
+
mouseover: MouseEvent;
|
|
23
23
|
paste: ClipboardEvent;
|
|
24
24
|
} & {
|
|
25
25
|
[evt: string]: CustomEvent<any>;
|
|
@@ -27,6 +27,17 @@ let background = getContext('background');
|
|
|
27
27
|
>
|
|
28
28
|
</div>
|
|
29
29
|
<input
|
|
30
|
+
on:blur
|
|
31
|
+
on:change
|
|
32
|
+
on:click
|
|
33
|
+
on:focus
|
|
34
|
+
on:keydown
|
|
35
|
+
on:keypress
|
|
36
|
+
on:keyup
|
|
37
|
+
on:mouseenter
|
|
38
|
+
on:mouseleave
|
|
39
|
+
on:mouseover
|
|
40
|
+
on:paste
|
|
30
41
|
{...$$restProps}
|
|
31
42
|
type="text"
|
|
32
43
|
{id}
|
|
@@ -12,6 +12,17 @@ declare const __propDef: {
|
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
submit: SubmitEvent;
|
|
15
|
+
blur: FocusEvent;
|
|
16
|
+
change: Event;
|
|
17
|
+
click: MouseEvent;
|
|
18
|
+
focus: FocusEvent;
|
|
19
|
+
keydown: KeyboardEvent;
|
|
20
|
+
keypress: KeyboardEvent;
|
|
21
|
+
keyup: KeyboardEvent;
|
|
22
|
+
mouseenter: MouseEvent;
|
|
23
|
+
mouseleave: MouseEvent;
|
|
24
|
+
mouseover: MouseEvent;
|
|
25
|
+
paste: ClipboardEvent;
|
|
15
26
|
} & {
|
|
16
27
|
[evt: string]: CustomEvent<any>;
|
|
17
28
|
};
|
package/forms/Textarea.svelte
CHANGED
|
@@ -16,16 +16,16 @@ export let helperClass = 'mt-2 text-sm text-gray-500 dark:text-gray-400';
|
|
|
16
16
|
<textarea
|
|
17
17
|
bind:value
|
|
18
18
|
bind:this={ref}
|
|
19
|
+
on:blur
|
|
19
20
|
on:change
|
|
20
|
-
on:
|
|
21
|
+
on:click
|
|
22
|
+
on:focus
|
|
21
23
|
on:keydown
|
|
22
24
|
on:keypress
|
|
23
|
-
on:
|
|
24
|
-
on:blur
|
|
25
|
-
on:click
|
|
26
|
-
on:mouseover
|
|
25
|
+
on:keyup
|
|
27
26
|
on:mouseenter
|
|
28
27
|
on:mouseleave
|
|
28
|
+
on:mouseover
|
|
29
29
|
on:paste
|
|
30
30
|
{id}
|
|
31
31
|
{name}
|
|
@@ -14,16 +14,16 @@ declare const __propDef: {
|
|
|
14
14
|
helperClass?: string;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
|
+
blur: FocusEvent;
|
|
17
18
|
change: Event;
|
|
18
|
-
|
|
19
|
+
click: MouseEvent;
|
|
20
|
+
focus: FocusEvent;
|
|
19
21
|
keydown: KeyboardEvent;
|
|
20
22
|
keypress: KeyboardEvent;
|
|
21
|
-
|
|
22
|
-
blur: FocusEvent;
|
|
23
|
-
click: MouseEvent;
|
|
24
|
-
mouseover: MouseEvent;
|
|
23
|
+
keyup: KeyboardEvent;
|
|
25
24
|
mouseenter: MouseEvent;
|
|
26
25
|
mouseleave: MouseEvent;
|
|
26
|
+
mouseover: MouseEvent;
|
|
27
27
|
paste: ClipboardEvent;
|
|
28
28
|
} & {
|
|
29
29
|
[evt: string]: CustomEvent<any>;
|
package/index.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export { default as Button } from './buttons/Button.svelte';
|
|
|
9
9
|
export { default as ButtonGroup } from './buttongroups/ButtonGroup.svelte';
|
|
10
10
|
export { default as ButtonGroupItem } from './buttongroups/ButtonGroupItem.svelte';
|
|
11
11
|
export { default as Card } from './cards/Card.svelte';
|
|
12
|
-
export { default as EcommerceCard } from './cards/EcommerceCard.svelte';
|
|
13
|
-
export { default as SignInCard } from './cards/SignInCard.svelte';
|
|
14
12
|
export { default as Carousel } from './carousels/Carousel.svelte';
|
|
15
13
|
export { default as CarouselTransition } from './carousels/CarouselTransition.svelte';
|
|
16
14
|
export { default as DarkMode } from './darkmode/DarkMode.svelte';
|
|
@@ -110,3 +108,4 @@ export { default as TimelineItemHorizontal } from './timelines/TimelineItemHoriz
|
|
|
110
108
|
export { default as TimelineItemVertical } from './timelines/TimelineItemVertical.svelte';
|
|
111
109
|
export { default as Toast } from './toasts/Toast.svelte';
|
|
112
110
|
export { default as Tooltip } from './tooltips/Tooltip.svelte';
|
|
111
|
+
export { default as CloseButton } from './utils/CloseButton.svelte';
|
package/index.js
CHANGED
|
@@ -17,8 +17,6 @@ export { default as ButtonGroup } from './buttongroups/ButtonGroup.svelte';
|
|
|
17
17
|
export { default as ButtonGroupItem } from './buttongroups/ButtonGroupItem.svelte';
|
|
18
18
|
// Cards
|
|
19
19
|
export { default as Card } from './cards/Card.svelte';
|
|
20
|
-
export { default as EcommerceCard } from './cards/EcommerceCard.svelte';
|
|
21
|
-
export { default as SignInCard } from './cards/SignInCard.svelte';
|
|
22
20
|
// Carousels
|
|
23
21
|
export { default as Carousel } from './carousels/Carousel.svelte';
|
|
24
22
|
export { default as CarouselTransition } from './carousels/CarouselTransition.svelte';
|
|
@@ -141,3 +139,5 @@ export { default as TimelineItemVertical } from './timelines/TimelineItemVertica
|
|
|
141
139
|
export { default as Toast } from './toasts/Toast.svelte';
|
|
142
140
|
// Tooltips
|
|
143
141
|
export { default as Tooltip } from './tooltips/Tooltip.svelte';
|
|
142
|
+
// utils
|
|
143
|
+
export { default as CloseButton } from './utils/CloseButton.svelte';
|
|
@@ -29,6 +29,16 @@ $: itemClass = classNames('py-2 px-4 w-full text-sm font-medium', 'first:rounded
|
|
|
29
29
|
class="block {itemClass}"
|
|
30
30
|
on:click={() => dispatch('click', $$props)}
|
|
31
31
|
aria-current={current}
|
|
32
|
+
on:blur
|
|
33
|
+
on:change
|
|
34
|
+
on:click
|
|
35
|
+
on:focus
|
|
36
|
+
on:keydown
|
|
37
|
+
on:keypress
|
|
38
|
+
on:keyup
|
|
39
|
+
on:mouseenter
|
|
40
|
+
on:mouseleave
|
|
41
|
+
on:mouseover
|
|
32
42
|
>
|
|
33
43
|
<slot item={$$props} />
|
|
34
44
|
</a>
|
|
@@ -37,6 +47,16 @@ $: itemClass = classNames('py-2 px-4 w-full text-sm font-medium', 'first:rounded
|
|
|
37
47
|
class="inline-flex relative items-center text-left {itemClass}"
|
|
38
48
|
{disabled}
|
|
39
49
|
on:click={() => dispatch('click', $$props)}
|
|
50
|
+
on:blur
|
|
51
|
+
on:change
|
|
52
|
+
on:click
|
|
53
|
+
on:focus
|
|
54
|
+
on:keydown
|
|
55
|
+
on:keypress
|
|
56
|
+
on:keyup
|
|
57
|
+
on:mouseenter
|
|
58
|
+
on:mouseleave
|
|
59
|
+
on:mouseover
|
|
40
60
|
aria-current={current}
|
|
41
61
|
>
|
|
42
62
|
<slot item={$$props} />
|
|
@@ -8,7 +8,16 @@ declare const __propDef: {
|
|
|
8
8
|
href?: string;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
|
+
blur: FocusEvent;
|
|
12
|
+
change: Event;
|
|
11
13
|
click: CustomEvent<any>;
|
|
14
|
+
focus: FocusEvent;
|
|
15
|
+
keydown: KeyboardEvent;
|
|
16
|
+
keypress: KeyboardEvent;
|
|
17
|
+
keyup: KeyboardEvent;
|
|
18
|
+
mouseenter: MouseEvent;
|
|
19
|
+
mouseleave: MouseEvent;
|
|
20
|
+
mouseover: MouseEvent;
|
|
12
21
|
} & {
|
|
13
22
|
[evt: string]: CustomEvent<any>;
|
|
14
23
|
};
|
package/modals/Modal.svelte
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import { createEventDispatcher } from 'svelte';
|
|
2
|
-
import { setContext } from 'svelte';
|
|
1
|
+
<script>import { createEventDispatcher, setContext } from 'svelte';
|
|
3
2
|
import CloseButton from '../utils/CloseButton.svelte';
|
|
4
3
|
import focusTrap from '../utils/focusTrap';
|
|
5
4
|
export let open = false;
|
|
@@ -39,15 +39,16 @@ let liClass = 'flex justify-center py-2 pr-4 pl-3 text-gray-700 border-b border-
|
|
|
39
39
|
<a
|
|
40
40
|
href={item.href}
|
|
41
41
|
{rel}
|
|
42
|
-
on:
|
|
42
|
+
on:blur
|
|
43
43
|
on:change
|
|
44
|
+
on:click
|
|
45
|
+
on:focus
|
|
44
46
|
on:keydown
|
|
47
|
+
on:keypress
|
|
45
48
|
on:keyup
|
|
46
|
-
on:focus
|
|
47
|
-
on:blur
|
|
48
49
|
on:mouseenter
|
|
49
50
|
on:mouseleave
|
|
50
|
-
on:
|
|
51
|
+
on:mouseover
|
|
51
52
|
class={dropdownLinkClassWithChild}>{item.name}</a
|
|
52
53
|
>
|
|
53
54
|
</li>
|
|
@@ -10,14 +10,16 @@ declare const __propDef: {
|
|
|
10
10
|
rel?: string;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
|
-
|
|
13
|
+
blur: FocusEvent;
|
|
14
14
|
change: Event;
|
|
15
|
+
click: MouseEvent;
|
|
16
|
+
focus: FocusEvent;
|
|
15
17
|
keydown: KeyboardEvent;
|
|
18
|
+
keypress: KeyboardEvent;
|
|
16
19
|
keyup: KeyboardEvent;
|
|
17
|
-
focus: FocusEvent;
|
|
18
|
-
blur: FocusEvent;
|
|
19
20
|
mouseenter: MouseEvent;
|
|
20
21
|
mouseleave: MouseEvent;
|
|
22
|
+
mouseover: MouseEvent;
|
|
21
23
|
} & {
|
|
22
24
|
[evt: string]: CustomEvent<any>;
|
|
23
25
|
};
|