flowbite-svelte 0.22.30 → 0.23.2
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 +30 -0
- package/README.md +64 -36
- package/buttongroups/ButtonGroupItem.svelte +26 -2
- package/buttongroups/ButtonGroupItem.svelte.d.ts +7 -0
- package/buttons/Button.svelte +6 -0
- package/buttons/Button.svelte.d.ts +5 -0
- package/datepicker/Calender.svelte +12 -0
- package/datepicker/Calender.svelte.d.ts +19 -0
- package/datepicker/Datepicker.svelte +71 -0
- package/datepicker/Datepicker.svelte.d.ts +25 -0
- package/dropdowns/DropdownItem.svelte +8 -0
- package/dropdowns/DropdownItem.svelte.d.ts +7 -0
- package/forms/Checkbox.svelte +9 -1
- package/forms/Checkbox.svelte.d.ts +9 -1
- package/forms/Fileupload.svelte +11 -0
- package/forms/Fileupload.svelte.d.ts +12 -0
- package/forms/FloatingLabelInput.svelte +9 -0
- package/forms/FloatingLabelInput.svelte.d.ts +9 -0
- package/forms/Input.svelte +10 -0
- package/forms/Input.svelte.d.ts +10 -0
- package/forms/Radio.svelte +10 -1
- package/forms/Radio.svelte.d.ts +10 -1
- package/forms/Range.svelte +5 -0
- package/forms/Range.svelte.d.ts +6 -0
- package/forms/Search.svelte +18 -1
- package/forms/Search.svelte.d.ts +11 -0
- package/forms/Textarea.svelte +20 -1
- package/forms/Textarea.svelte.d.ts +12 -0
- package/forms/Toggle.svelte.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/navbar/NavDropdown.svelte +14 -1
- package/navbar/NavDropdown.svelte.d.ts +9 -0
- package/navbar/NavLi.svelte +14 -1
- package/navbar/NavLi.svelte.d.ts +9 -0
- package/package.json +3 -1
- package/sidebars/SidebarDropdownItem.svelte +14 -1
- package/sidebars/SidebarDropdownItem.svelte.d.ts +9 -0
- package/sidebars/SidebarItem.svelte +14 -1
- package/sidebars/SidebarItem.svelte.d.ts +9 -0
- package/tabs/DefaultTabs.svelte +9 -0
- package/tabs/DefaultTabs.svelte.d.ts +9 -0
- package/tabs/FullWidthTabs.svelte +26 -3
- package/tabs/FullWidthTabs.svelte.d.ts +9 -0
- package/tabs/IconTabs.svelte +19 -2
- package/tabs/IconTabs.svelte.d.ts +9 -0
- package/tabs/InteractiveTabHead.svelte +10 -1
- package/tabs/InteractiveTabHead.svelte.d.ts +9 -0
- package/tabs/InteractiveTabs.svelte +9 -0
- package/tabs/InteractiveTabs.svelte.d.ts +9 -0
- package/tabs/PillTabs.svelte +10 -1
- package/tabs/PillTabs.svelte.d.ts +9 -0
- package/tabs/UnderlineTabs.svelte +9 -0
- package/tabs/UnderlineTabs.svelte.d.ts +9 -0
|
@@ -15,6 +15,15 @@ declare const __propDef: {
|
|
|
15
15
|
events: {
|
|
16
16
|
change: Event;
|
|
17
17
|
blur: FocusEvent;
|
|
18
|
+
keyup: KeyboardEvent;
|
|
19
|
+
keydown: KeyboardEvent;
|
|
20
|
+
keypress: KeyboardEvent;
|
|
21
|
+
focus: FocusEvent;
|
|
22
|
+
click: MouseEvent;
|
|
23
|
+
mouseover: MouseEvent;
|
|
24
|
+
mouseenter: MouseEvent;
|
|
25
|
+
mouseleave: MouseEvent;
|
|
26
|
+
paste: ClipboardEvent;
|
|
18
27
|
} & {
|
|
19
28
|
[evt: string]: CustomEvent<any>;
|
|
20
29
|
};
|
package/forms/Input.svelte
CHANGED
|
@@ -24,6 +24,16 @@ function setType(node) {
|
|
|
24
24
|
bind:value
|
|
25
25
|
bind:this={ref}
|
|
26
26
|
on:change
|
|
27
|
+
on:keyup
|
|
28
|
+
on:keydown
|
|
29
|
+
on:keypress
|
|
30
|
+
on:focus
|
|
31
|
+
on:blur
|
|
32
|
+
on:click
|
|
33
|
+
on:mouseover
|
|
34
|
+
on:mouseenter
|
|
35
|
+
on:mouseleave
|
|
36
|
+
on:paste
|
|
27
37
|
use:setType
|
|
28
38
|
class={classNames(
|
|
29
39
|
inputClass,
|
package/forms/Input.svelte.d.ts
CHANGED
|
@@ -12,6 +12,16 @@ declare const __propDef: {
|
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
change: Event;
|
|
15
|
+
keyup: KeyboardEvent;
|
|
16
|
+
keydown: KeyboardEvent;
|
|
17
|
+
keypress: KeyboardEvent;
|
|
18
|
+
focus: FocusEvent;
|
|
19
|
+
blur: FocusEvent;
|
|
20
|
+
click: MouseEvent;
|
|
21
|
+
mouseover: MouseEvent;
|
|
22
|
+
mouseenter: MouseEvent;
|
|
23
|
+
mouseleave: MouseEvent;
|
|
24
|
+
paste: ClipboardEvent;
|
|
15
25
|
} & {
|
|
16
26
|
[evt: string]: CustomEvent<any>;
|
|
17
27
|
};
|
package/forms/Radio.svelte
CHANGED
|
@@ -41,8 +41,17 @@ let background = getContext('background');
|
|
|
41
41
|
<input
|
|
42
42
|
type="radio"
|
|
43
43
|
bind:group
|
|
44
|
-
on:click
|
|
45
44
|
on:change
|
|
45
|
+
on:keyup
|
|
46
|
+
on:keydown
|
|
47
|
+
on:keypress
|
|
48
|
+
on:focus
|
|
49
|
+
on:blur
|
|
50
|
+
on:click
|
|
51
|
+
on:mouseover
|
|
52
|
+
on:mouseenter
|
|
53
|
+
on:mouseleave
|
|
54
|
+
on:paste
|
|
46
55
|
{value}
|
|
47
56
|
{...$$restProps}
|
|
48
57
|
class={inputClass(custom, color, false, background, $$slots.default || $$props.class)}
|
package/forms/Radio.svelte.d.ts
CHANGED
|
@@ -12,8 +12,17 @@ declare const __propDef: {
|
|
|
12
12
|
value?: string;
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
|
-
click: MouseEvent;
|
|
16
15
|
change: Event;
|
|
16
|
+
keyup: KeyboardEvent;
|
|
17
|
+
keydown: KeyboardEvent;
|
|
18
|
+
keypress: KeyboardEvent;
|
|
19
|
+
focus: FocusEvent;
|
|
20
|
+
blur: FocusEvent;
|
|
21
|
+
click: MouseEvent;
|
|
22
|
+
mouseover: MouseEvent;
|
|
23
|
+
mouseenter: MouseEvent;
|
|
24
|
+
mouseleave: MouseEvent;
|
|
25
|
+
paste: ClipboardEvent;
|
|
17
26
|
} & {
|
|
18
27
|
[evt: string]: CustomEvent<any>;
|
|
19
28
|
};
|
package/forms/Range.svelte
CHANGED
package/forms/Range.svelte.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ declare const __propDef: {
|
|
|
10
10
|
size: 'small' | 'large';
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
|
+
change: Event;
|
|
14
|
+
keyup: KeyboardEvent;
|
|
15
|
+
keydown: KeyboardEvent;
|
|
16
|
+
keypress: KeyboardEvent;
|
|
17
|
+
click: MouseEvent;
|
|
18
|
+
} & {
|
|
13
19
|
[evt: string]: CustomEvent<any>;
|
|
14
20
|
};
|
|
15
21
|
slots: {};
|
package/forms/Search.svelte
CHANGED
|
@@ -23,7 +23,24 @@ export let placeholder = 'Search';
|
|
|
23
23
|
/></svg
|
|
24
24
|
>
|
|
25
25
|
</div>
|
|
26
|
-
<input
|
|
26
|
+
<input
|
|
27
|
+
{...$$restProps}
|
|
28
|
+
on:change
|
|
29
|
+
on:keyup
|
|
30
|
+
on:keydown
|
|
31
|
+
on:keypress
|
|
32
|
+
on:focus
|
|
33
|
+
on:blur
|
|
34
|
+
on:click
|
|
35
|
+
on:mouseover
|
|
36
|
+
on:mouseenter
|
|
37
|
+
on:mouseleave
|
|
38
|
+
on:paste
|
|
39
|
+
type="search"
|
|
40
|
+
{id}
|
|
41
|
+
class={inputClass}
|
|
42
|
+
{placeholder}
|
|
43
|
+
/>
|
|
27
44
|
<button type="submit" class={btnClass}>Search</button>
|
|
28
45
|
</div>
|
|
29
46
|
</form>
|
package/forms/Search.svelte.d.ts
CHANGED
|
@@ -10,6 +10,17 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
submit: SubmitEvent;
|
|
13
|
+
change: Event;
|
|
14
|
+
keyup: KeyboardEvent;
|
|
15
|
+
keydown: KeyboardEvent;
|
|
16
|
+
keypress: KeyboardEvent;
|
|
17
|
+
focus: FocusEvent;
|
|
18
|
+
blur: FocusEvent;
|
|
19
|
+
click: MouseEvent;
|
|
20
|
+
mouseover: MouseEvent;
|
|
21
|
+
mouseenter: MouseEvent;
|
|
22
|
+
mouseleave: MouseEvent;
|
|
23
|
+
paste: ClipboardEvent;
|
|
13
24
|
} & {
|
|
14
25
|
[evt: string]: CustomEvent<any>;
|
|
15
26
|
};
|
package/forms/Textarea.svelte
CHANGED
|
@@ -13,7 +13,26 @@ export let helperClass = 'mt-2 text-sm text-gray-500 dark:text-gray-400';
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<label for={id} class={labelClass}>{label}</label>
|
|
16
|
-
<textarea
|
|
16
|
+
<textarea
|
|
17
|
+
bind:value
|
|
18
|
+
bind:this={ref}
|
|
19
|
+
on:change
|
|
20
|
+
on:keyup
|
|
21
|
+
on:keydown
|
|
22
|
+
on:keypress
|
|
23
|
+
on:focus
|
|
24
|
+
on:blur
|
|
25
|
+
on:click
|
|
26
|
+
on:mouseover
|
|
27
|
+
on:mouseenter
|
|
28
|
+
on:mouseleave
|
|
29
|
+
on:paste
|
|
30
|
+
{id}
|
|
31
|
+
{name}
|
|
32
|
+
{rows}
|
|
33
|
+
class={textareaClass}
|
|
34
|
+
{placeholder}
|
|
35
|
+
/>
|
|
17
36
|
{#if helper}
|
|
18
37
|
<p class={helperClass}>{@html helper}</p>
|
|
19
38
|
{/if}
|
|
@@ -14,6 +14,18 @@ declare const __propDef: {
|
|
|
14
14
|
helperClass?: string;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
|
+
change: Event;
|
|
18
|
+
keyup: KeyboardEvent;
|
|
19
|
+
keydown: KeyboardEvent;
|
|
20
|
+
keypress: KeyboardEvent;
|
|
21
|
+
focus: FocusEvent;
|
|
22
|
+
blur: FocusEvent;
|
|
23
|
+
click: MouseEvent;
|
|
24
|
+
mouseover: MouseEvent;
|
|
25
|
+
mouseenter: MouseEvent;
|
|
26
|
+
mouseleave: MouseEvent;
|
|
27
|
+
paste: ClipboardEvent;
|
|
28
|
+
} & {
|
|
17
29
|
[evt: string]: CustomEvent<any>;
|
|
18
30
|
};
|
|
19
31
|
slots: {};
|
package/forms/Toggle.svelte.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as SignInCard } from './cards/SignInCard.svelte';
|
|
|
14
14
|
export { default as Carousel } from './carousels/Carousel.svelte';
|
|
15
15
|
export { default as CarouselTransition } from './carousels/CarouselTransition.svelte';
|
|
16
16
|
export { default as DarkMode } from './darkmode/DarkMode.svelte';
|
|
17
|
+
export { default as Datepicker } from './datepicker/Datepicker.svelte';
|
|
17
18
|
export { default as Drawer } from './drawers/Drawer.svelte';
|
|
18
19
|
export { default as Dropdown } from './dropdowns/Dropdown.svelte';
|
|
19
20
|
export { default as DropdownDivider } from './dropdowns/DropdownDivider.svelte';
|
package/index.js
CHANGED
|
@@ -24,6 +24,8 @@ export { default as Carousel } from './carousels/Carousel.svelte';
|
|
|
24
24
|
export { default as CarouselTransition } from './carousels/CarouselTransition.svelte';
|
|
25
25
|
// Dark mode
|
|
26
26
|
export { default as DarkMode } from './darkmode/DarkMode.svelte';
|
|
27
|
+
// Datepicker
|
|
28
|
+
export { default as Datepicker } from './datepicker/Datepicker.svelte';
|
|
27
29
|
// Drawer
|
|
28
30
|
export { default as Drawer } from './drawers/Drawer.svelte';
|
|
29
31
|
// Dropdown
|
|
@@ -36,7 +36,20 @@ let liClass = 'flex justify-center py-2 pr-4 pl-3 text-gray-700 border-b border-
|
|
|
36
36
|
<ul class="py-1" aria-labelledby="dropdownLargeButton">
|
|
37
37
|
{#each child as item}
|
|
38
38
|
<li>
|
|
39
|
-
<a
|
|
39
|
+
<a
|
|
40
|
+
href={item.href}
|
|
41
|
+
{rel}
|
|
42
|
+
on:click
|
|
43
|
+
on:change
|
|
44
|
+
on:keydown
|
|
45
|
+
on:keyup
|
|
46
|
+
on:focus
|
|
47
|
+
on:blur
|
|
48
|
+
on:mouseenter
|
|
49
|
+
on:mouseleave
|
|
50
|
+
on:mouseenter
|
|
51
|
+
class={dropdownLinkClassWithChild}>{item.name}</a
|
|
52
|
+
>
|
|
40
53
|
</li>
|
|
41
54
|
{/each}
|
|
42
55
|
</ul>
|
|
@@ -10,6 +10,15 @@ declare const __propDef: {
|
|
|
10
10
|
rel?: string;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
|
+
click: MouseEvent;
|
|
14
|
+
change: Event;
|
|
15
|
+
keydown: KeyboardEvent;
|
|
16
|
+
keyup: KeyboardEvent;
|
|
17
|
+
focus: FocusEvent;
|
|
18
|
+
blur: FocusEvent;
|
|
19
|
+
mouseenter: MouseEvent;
|
|
20
|
+
mouseleave: MouseEvent;
|
|
21
|
+
} & {
|
|
13
22
|
[evt: string]: CustomEvent<any>;
|
|
14
23
|
};
|
|
15
24
|
slots: {
|
package/navbar/NavLi.svelte
CHANGED
|
@@ -7,7 +7,20 @@ $: aClass = active ? activeClass : nonActiveClass;
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<li>
|
|
10
|
-
<a
|
|
10
|
+
<a
|
|
11
|
+
{href}
|
|
12
|
+
{...$$restProps}
|
|
13
|
+
on:click
|
|
14
|
+
on:change
|
|
15
|
+
on:keydown
|
|
16
|
+
on:keyup
|
|
17
|
+
on:focus
|
|
18
|
+
on:blur
|
|
19
|
+
on:mouseenter
|
|
20
|
+
on:mouseleave
|
|
21
|
+
on:mouseenter
|
|
22
|
+
class={classNames(aClass, $$props.class)}
|
|
23
|
+
>
|
|
11
24
|
<slot />
|
|
12
25
|
</a>
|
|
13
26
|
</li>
|
package/navbar/NavLi.svelte.d.ts
CHANGED
|
@@ -8,6 +8,15 @@ declare const __propDef: {
|
|
|
8
8
|
nonActiveClass?: string;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
|
+
click: MouseEvent;
|
|
12
|
+
change: Event;
|
|
13
|
+
keydown: KeyboardEvent;
|
|
14
|
+
keyup: KeyboardEvent;
|
|
15
|
+
focus: FocusEvent;
|
|
16
|
+
blur: FocusEvent;
|
|
17
|
+
mouseenter: MouseEvent;
|
|
18
|
+
mouseleave: MouseEvent;
|
|
19
|
+
} & {
|
|
11
20
|
[evt: string]: CustomEvent<any>;
|
|
12
21
|
};
|
|
13
22
|
slots: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -119,6 +119,8 @@
|
|
|
119
119
|
"./carousels/Slide.svelte": "./carousels/Slide.svelte",
|
|
120
120
|
"./carousels/Thumbnail.svelte": "./carousels/Thumbnail.svelte",
|
|
121
121
|
"./darkmode/DarkMode.svelte": "./darkmode/DarkMode.svelte",
|
|
122
|
+
"./datepicker/Calender.svelte": "./datepicker/Calender.svelte",
|
|
123
|
+
"./datepicker/Datepicker.svelte": "./datepicker/Datepicker.svelte",
|
|
122
124
|
"./drawers/Drawer.svelte": "./drawers/Drawer.svelte",
|
|
123
125
|
"./dropdowns/Dropdown.svelte": "./dropdowns/Dropdown.svelte",
|
|
124
126
|
"./dropdowns/DropdownDivider.svelte": "./dropdowns/DropdownDivider.svelte",
|
|
@@ -5,5 +5,18 @@ export let label = '';
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<li>
|
|
8
|
-
<a
|
|
8
|
+
<a
|
|
9
|
+
{...$$restProps}
|
|
10
|
+
{href}
|
|
11
|
+
on:click
|
|
12
|
+
on:change
|
|
13
|
+
on:keydown
|
|
14
|
+
on:keyup
|
|
15
|
+
on:focus
|
|
16
|
+
on:blur
|
|
17
|
+
on:mouseenter
|
|
18
|
+
on:mouseleave
|
|
19
|
+
on:mouseenter
|
|
20
|
+
class={classNames(aClass, $$props.class)}>{label}</a
|
|
21
|
+
>
|
|
9
22
|
</li>
|
|
@@ -7,6 +7,15 @@ declare const __propDef: {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
|
+
click: MouseEvent;
|
|
11
|
+
change: Event;
|
|
12
|
+
keydown: KeyboardEvent;
|
|
13
|
+
keyup: KeyboardEvent;
|
|
14
|
+
focus: FocusEvent;
|
|
15
|
+
blur: FocusEvent;
|
|
16
|
+
mouseenter: MouseEvent;
|
|
17
|
+
mouseleave: MouseEvent;
|
|
18
|
+
} & {
|
|
10
19
|
[evt: string]: CustomEvent<any>;
|
|
11
20
|
};
|
|
12
21
|
slots: {};
|
|
@@ -7,7 +7,20 @@ export let icon;
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<li>
|
|
10
|
-
<a
|
|
10
|
+
<a
|
|
11
|
+
{...$$restProps}
|
|
12
|
+
{href}
|
|
13
|
+
on:click
|
|
14
|
+
on:change
|
|
15
|
+
on:keydown
|
|
16
|
+
on:keyup
|
|
17
|
+
on:focus
|
|
18
|
+
on:blur
|
|
19
|
+
on:mouseenter
|
|
20
|
+
on:mouseleave
|
|
21
|
+
on:mouseenter
|
|
22
|
+
class={classNames(aClass, $$props.class)}
|
|
23
|
+
>
|
|
11
24
|
<svelte:component
|
|
12
25
|
this={icon.name}
|
|
13
26
|
size={icon.size}
|
|
@@ -10,6 +10,15 @@ declare const __propDef: {
|
|
|
10
10
|
icon: IconType;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
|
+
click: MouseEvent;
|
|
14
|
+
change: Event;
|
|
15
|
+
keydown: KeyboardEvent;
|
|
16
|
+
keyup: KeyboardEvent;
|
|
17
|
+
focus: FocusEvent;
|
|
18
|
+
blur: FocusEvent;
|
|
19
|
+
mouseenter: MouseEvent;
|
|
20
|
+
mouseleave: MouseEvent;
|
|
21
|
+
} & {
|
|
13
22
|
[evt: string]: CustomEvent<any>;
|
|
14
23
|
};
|
|
15
24
|
slots: {
|
package/tabs/DefaultTabs.svelte
CHANGED
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
{href}
|
|
9
9
|
{rel}
|
|
10
10
|
aria-current="page"
|
|
11
|
+
on:click
|
|
12
|
+
on:change
|
|
13
|
+
on:keydown
|
|
14
|
+
on:keyup
|
|
15
|
+
on:focus
|
|
16
|
+
on:blur
|
|
17
|
+
on:mouseenter
|
|
18
|
+
on:mouseleave
|
|
19
|
+
on:mouseenter
|
|
11
20
|
class={active
|
|
12
21
|
? 'inline-block py-4 px-4 text-sm font-medium text-center text-blue-600 bg-gray-100 rounded-t-lg active dark:bg-gray-800 dark:text-blue-500'
|
|
13
22
|
: ' inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300 '}
|
|
@@ -5,6 +5,15 @@ declare const __propDef: {
|
|
|
5
5
|
tabs: TabType[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
|
+
click: MouseEvent;
|
|
9
|
+
change: Event;
|
|
10
|
+
keydown: KeyboardEvent;
|
|
11
|
+
keyup: KeyboardEvent;
|
|
12
|
+
focus: FocusEvent;
|
|
13
|
+
blur: FocusEvent;
|
|
14
|
+
mouseenter: MouseEvent;
|
|
15
|
+
mouseleave: MouseEvent;
|
|
16
|
+
} & {
|
|
8
17
|
[evt: string]: CustomEvent<any>;
|
|
9
18
|
};
|
|
10
19
|
slots: {};
|
|
@@ -4,16 +4,39 @@ export let tabLabel;
|
|
|
4
4
|
|
|
5
5
|
<div class="sm:hidden">
|
|
6
6
|
<label for="tabs" class="sr-only">{tabLabel}</label>
|
|
7
|
-
<select
|
|
7
|
+
<select
|
|
8
|
+
id="tabs"
|
|
9
|
+
class="bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
10
|
+
>
|
|
8
11
|
{#each tabs as { name }}
|
|
9
12
|
<option>{name}</option>
|
|
10
13
|
{/each}
|
|
11
14
|
</select>
|
|
12
15
|
</div>
|
|
13
|
-
<ul
|
|
16
|
+
<ul
|
|
17
|
+
class="hidden text-sm font-medium text-center text-gray-500 rounded-lg divide-x divide-gray-200 shadow sm:flex dark:divide-gray-700 dark:text-gray-400"
|
|
18
|
+
>
|
|
14
19
|
{#each tabs as { name, href, rel, active }, i}
|
|
15
20
|
<li class="w-full" data-id={i}>
|
|
16
|
-
<a
|
|
21
|
+
<a
|
|
22
|
+
{href}
|
|
23
|
+
{rel}
|
|
24
|
+
class:rounded-l-lg={i === 0}
|
|
25
|
+
class:rounded-r-lg={i === tabs.length - 1}
|
|
26
|
+
class={active
|
|
27
|
+
? 'inline-block p-4 w-full text-gray-900 bg-gray-100 focus:ring-4 focus:ring-blue-300 active focus:outline-none dark:bg-gray-700 dark:text-white'
|
|
28
|
+
: 'inline-block p-4 w-full bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-blue-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700'}
|
|
29
|
+
aria-current="page"
|
|
30
|
+
on:click
|
|
31
|
+
on:change
|
|
32
|
+
on:keydown
|
|
33
|
+
on:keyup
|
|
34
|
+
on:focus
|
|
35
|
+
on:blur
|
|
36
|
+
on:mouseenter
|
|
37
|
+
on:mouseleave
|
|
38
|
+
on:mouseenter>{name}</a
|
|
39
|
+
>
|
|
17
40
|
</li>
|
|
18
41
|
{/each}
|
|
19
42
|
</ul>
|
|
@@ -6,6 +6,15 @@ declare const __propDef: {
|
|
|
6
6
|
tabLabel: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
|
+
click: MouseEvent;
|
|
10
|
+
change: Event;
|
|
11
|
+
keydown: KeyboardEvent;
|
|
12
|
+
keyup: KeyboardEvent;
|
|
13
|
+
focus: FocusEvent;
|
|
14
|
+
blur: FocusEvent;
|
|
15
|
+
mouseenter: MouseEvent;
|
|
16
|
+
mouseleave: MouseEvent;
|
|
17
|
+
} & {
|
|
9
18
|
[evt: string]: CustomEvent<any>;
|
|
10
19
|
};
|
|
11
20
|
slots: {};
|
package/tabs/IconTabs.svelte
CHANGED
|
@@ -3,10 +3,27 @@ export let iconClass = 'mr-2 w-5 h-5 text-gray-400 group-hover:text-gray-500 dar
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<div class="border-b border-gray-200 dark:border-gray-700">
|
|
6
|
-
<ul
|
|
6
|
+
<ul
|
|
7
|
+
class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400"
|
|
8
|
+
>
|
|
7
9
|
{#each tabs as { name, active, href, rel, icon, iconSize }}
|
|
8
10
|
<li class="mr-2">
|
|
9
|
-
<a
|
|
11
|
+
<a
|
|
12
|
+
{href}
|
|
13
|
+
{rel}
|
|
14
|
+
class={active
|
|
15
|
+
? 'inline-flex p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group'
|
|
16
|
+
: ' inline-flex p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group '}
|
|
17
|
+
on:click
|
|
18
|
+
on:change
|
|
19
|
+
on:keydown
|
|
20
|
+
on:keyup
|
|
21
|
+
on:focus
|
|
22
|
+
on:blur
|
|
23
|
+
on:mouseenter
|
|
24
|
+
on:mouseleave
|
|
25
|
+
on:mouseenter
|
|
26
|
+
>
|
|
10
27
|
<svelte:component this={icon} size={iconSize} class={iconClass} />
|
|
11
28
|
{name}
|
|
12
29
|
</a>
|
|
@@ -6,6 +6,15 @@ declare const __propDef: {
|
|
|
6
6
|
iconClass?: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
|
+
click: MouseEvent;
|
|
10
|
+
change: Event;
|
|
11
|
+
keydown: KeyboardEvent;
|
|
12
|
+
keyup: KeyboardEvent;
|
|
13
|
+
focus: FocusEvent;
|
|
14
|
+
blur: FocusEvent;
|
|
15
|
+
mouseenter: MouseEvent;
|
|
16
|
+
mouseleave: MouseEvent;
|
|
17
|
+
} & {
|
|
9
18
|
[evt: string]: CustomEvent<any>;
|
|
10
19
|
};
|
|
11
20
|
slots: {};
|
|
@@ -43,7 +43,16 @@ Header part of Interactive tab component. Use with TabContent.
|
|
|
43
43
|
role="tab"
|
|
44
44
|
class:active={activeTabValue === id}
|
|
45
45
|
aria-controls={name}
|
|
46
|
-
aria-selected="false"
|
|
46
|
+
aria-selected="false"
|
|
47
|
+
on:click
|
|
48
|
+
on:change
|
|
49
|
+
on:keydown
|
|
50
|
+
on:keyup
|
|
51
|
+
on:focus
|
|
52
|
+
on:blur
|
|
53
|
+
on:mouseenter
|
|
54
|
+
on:mouseleave
|
|
55
|
+
on:mouseenter>{name}</button
|
|
47
56
|
>
|
|
48
57
|
</li>
|
|
49
58
|
{/each}
|
|
@@ -7,6 +7,15 @@ declare const __propDef: {
|
|
|
7
7
|
activeTabValue?: number;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
|
+
click: MouseEvent;
|
|
11
|
+
change: Event;
|
|
12
|
+
keydown: KeyboardEvent;
|
|
13
|
+
keyup: KeyboardEvent;
|
|
14
|
+
focus: FocusEvent;
|
|
15
|
+
blur: FocusEvent;
|
|
16
|
+
mouseenter: MouseEvent;
|
|
17
|
+
mouseleave: MouseEvent;
|
|
18
|
+
} & {
|
|
10
19
|
[evt: string]: CustomEvent<any>;
|
|
11
20
|
};
|
|
12
21
|
slots: {
|
|
@@ -10,6 +10,15 @@ const handleClick = (tabValue) => () => (activeTabValue = tabValue);
|
|
|
10
10
|
<li class="mr-2" role="presentation">
|
|
11
11
|
<button
|
|
12
12
|
on:click={handleClick(id)}
|
|
13
|
+
on:click
|
|
14
|
+
on:change
|
|
15
|
+
on:keydown
|
|
16
|
+
on:keyup
|
|
17
|
+
on:focus
|
|
18
|
+
on:blur
|
|
19
|
+
on:mouseenter
|
|
20
|
+
on:mouseleave
|
|
21
|
+
on:mouseenter
|
|
13
22
|
class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
|
|
14
23
|
id="{name}-tab"
|
|
15
24
|
type="button"
|
|
@@ -7,6 +7,15 @@ declare const __propDef: {
|
|
|
7
7
|
tabs: InteractiveTabType[];
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
|
+
click: MouseEvent;
|
|
11
|
+
change: Event;
|
|
12
|
+
keydown: KeyboardEvent;
|
|
13
|
+
keyup: KeyboardEvent;
|
|
14
|
+
focus: FocusEvent;
|
|
15
|
+
blur: FocusEvent;
|
|
16
|
+
mouseenter: MouseEvent;
|
|
17
|
+
mouseleave: MouseEvent;
|
|
18
|
+
} & {
|
|
10
19
|
[evt: string]: CustomEvent<any>;
|
|
11
20
|
};
|
|
12
21
|
slots: {};
|
package/tabs/PillTabs.svelte
CHANGED
|
@@ -9,7 +9,16 @@
|
|
|
9
9
|
? 'active inline-block py-3 px-4 text-sm font-medium text-center text-white bg-blue-600 rounded-lg'
|
|
10
10
|
: 'inline-block py-3 px-4 text-sm font-medium text-center text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white'} "
|
|
11
11
|
{href}
|
|
12
|
-
rel="external"
|
|
12
|
+
rel="external"
|
|
13
|
+
on:click
|
|
14
|
+
on:change
|
|
15
|
+
on:keydown
|
|
16
|
+
on:keyup
|
|
17
|
+
on:focus
|
|
18
|
+
on:blur
|
|
19
|
+
on:mouseenter
|
|
20
|
+
on:mouseleave
|
|
21
|
+
on:mouseenter>{name}</a
|
|
13
22
|
>
|
|
14
23
|
</li>
|
|
15
24
|
{/each}
|
|
@@ -5,6 +5,15 @@ declare const __propDef: {
|
|
|
5
5
|
tabs: PillTabType[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
|
+
click: MouseEvent;
|
|
9
|
+
change: Event;
|
|
10
|
+
keydown: KeyboardEvent;
|
|
11
|
+
keyup: KeyboardEvent;
|
|
12
|
+
focus: FocusEvent;
|
|
13
|
+
blur: FocusEvent;
|
|
14
|
+
mouseenter: MouseEvent;
|
|
15
|
+
mouseleave: MouseEvent;
|
|
16
|
+
} & {
|
|
8
17
|
[evt: string]: CustomEvent<any>;
|
|
9
18
|
};
|
|
10
19
|
slots: {};
|