flowbite-svelte 0.26.29 → 0.26.30
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 +10 -0
- package/package.json +1 -2
- package/tabs/TabHead.svelte +3 -4
- package/tabs/TabHead.svelte.d.ts +1 -2
- package/tabs/TabHeadItem.svelte +18 -19
- package/tabs/TabWrapper.svelte +1 -2
- package/tabs/TabWrapper.svelte.d.ts +0 -2
- package/tabs/TabContentWrapper.svelte +0 -8
- package/tabs/TabContentWrapper.svelte.d.ts +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.26.30](https://github.com/themesberg/flowbite-svelte/compare/v0.26.29...v0.26.30) (2022-09-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add classOptions type to classes object ([2d7131b](https://github.com/themesberg/flowbite-svelte/commit/2d7131b25a5f6766c2cadc2b2034cc3cf68b9528))
|
|
11
|
+
* remove bind: from TabWrapper bind:activeTabValue ([0269b3a](https://github.com/themesberg/flowbite-svelte/commit/0269b3ac4daf31cebec6f215983bfb4e99a118e3))
|
|
12
|
+
* remove tabId from TabWrapper component ([5f46d23](https://github.com/themesberg/flowbite-svelte/commit/5f46d238ff1c81c1c66c1542565aa589f97cf530))
|
|
13
|
+
* update icon class in TabHeadItem for Tabs with icons ([e94b344](https://github.com/themesberg/flowbite-svelte/commit/e94b3449826e84146b877e00e458885e08606ec5))
|
|
14
|
+
|
|
5
15
|
### [0.26.29](https://github.com/themesberg/flowbite-svelte/compare/v0.26.28...v0.26.29) (2022-09-22)
|
|
6
16
|
|
|
7
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.30",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -203,7 +203,6 @@
|
|
|
203
203
|
"./tables/TableHeadCell.svelte": "./tables/TableHeadCell.svelte",
|
|
204
204
|
"./tables/TableSearch.svelte": "./tables/TableSearch.svelte",
|
|
205
205
|
"./tabs/TabContentItem.svelte": "./tabs/TabContentItem.svelte",
|
|
206
|
-
"./tabs/TabContentWrapper.svelte": "./tabs/TabContentWrapper.svelte",
|
|
207
206
|
"./tabs/TabHead.svelte": "./tabs/TabHead.svelte",
|
|
208
207
|
"./tabs/TabHeadItem.svelte": "./tabs/TabHeadItem.svelte",
|
|
209
208
|
"./tabs/TabWrapper.svelte": "./tabs/TabWrapper.svelte",
|
package/tabs/TabHead.svelte
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script>export let tabStyle;
|
|
2
|
-
export let tabId;
|
|
3
2
|
export let customDivClass = '';
|
|
4
3
|
export let customUlClass = '';
|
|
5
4
|
const divClasses = {
|
|
@@ -21,7 +20,7 @@ const ulClasses = {
|
|
|
21
20
|
</script>
|
|
22
21
|
|
|
23
22
|
<div class={divClasses[tabStyle]}>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
<ul class={ulClasses[tabStyle]} role="tablist">
|
|
24
|
+
<slot />
|
|
25
|
+
</ul>
|
|
27
26
|
</div>
|
package/tabs/TabHead.svelte.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
tabStyle:
|
|
5
|
-
tabId: any;
|
|
4
|
+
tabStyle: 'default' | 'full' | 'icon' | 'pill' | 'underline' | 'custom';
|
|
6
5
|
customDivClass?: string | undefined;
|
|
7
6
|
customUlClass?: string | undefined;
|
|
8
7
|
};
|
package/tabs/TabHeadItem.svelte
CHANGED
|
@@ -32,23 +32,22 @@ const liClasses = {
|
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
34
|
<li class={liClasses[tabStyle]} role="presentation">
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</button>
|
|
35
|
+
<button
|
|
36
|
+
{...$$restProps}
|
|
37
|
+
on:click
|
|
38
|
+
on:blur
|
|
39
|
+
on:click
|
|
40
|
+
on:focus
|
|
41
|
+
on:keydown
|
|
42
|
+
on:keypress
|
|
43
|
+
on:keyup
|
|
44
|
+
on:mouseenter
|
|
45
|
+
on:mouseleave
|
|
46
|
+
on:mouseover
|
|
47
|
+
class={classNames(activeTabValue === id ? activeClasses[tabStyle] : inactiveClasses[tabStyle])}
|
|
48
|
+
id="{id}-tabhead"
|
|
49
|
+
type="button"
|
|
50
|
+
role="tab">
|
|
51
|
+
<slot />
|
|
52
|
+
</button>
|
|
54
53
|
</li>
|
package/tabs/TabWrapper.svelte
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
2
|
export let divClass = 'w-full';
|
|
3
3
|
export let tabStyle = 'default';
|
|
4
|
-
export let tabId;
|
|
5
4
|
export let activeTabValue;
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
7
|
<div class={classNames(divClass, $$props.class)}>
|
|
9
|
-
<slot {tabStyle} {
|
|
8
|
+
<slot {tabStyle} {activeTabValue} />
|
|
10
9
|
</div>
|
|
@@ -4,7 +4,6 @@ declare const __propDef: {
|
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
divClass?: string | undefined;
|
|
6
6
|
tabStyle?: "default" | "icon" | "custom" | "pill" | "underline" | "full" | undefined;
|
|
7
|
-
tabId: number;
|
|
8
7
|
activeTabValue: number;
|
|
9
8
|
};
|
|
10
9
|
events: {
|
|
@@ -13,7 +12,6 @@ declare const __propDef: {
|
|
|
13
12
|
slots: {
|
|
14
13
|
default: {
|
|
15
14
|
tabStyle: "default" | "icon" | "custom" | "pill" | "underline" | "full";
|
|
16
|
-
tabId: number;
|
|
17
15
|
activeTabValue: number;
|
|
18
16
|
};
|
|
19
17
|
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {};
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {
|
|
8
|
-
default: {};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare type TabContentWrapperProps = typeof __propDef.props;
|
|
12
|
-
export declare type TabContentWrapperEvents = typeof __propDef.events;
|
|
13
|
-
export declare type TabContentWrapperSlots = typeof __propDef.slots;
|
|
14
|
-
export default class TabContentWrapper extends SvelteComponentTyped<TabContentWrapperProps, TabContentWrapperEvents, TabContentWrapperSlots> {
|
|
15
|
-
}
|
|
16
|
-
export {};
|