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 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.29",
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",
@@ -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
- <ul class={ulClasses[tabStyle]} id={tabId} role="tablist">
25
- <slot />
26
- </ul>
23
+ <ul class={ulClasses[tabStyle]} role="tablist">
24
+ <slot />
25
+ </ul>
27
26
  </div>
@@ -1,8 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- tabStyle: any;
5
- tabId: any;
4
+ tabStyle: 'default' | 'full' | 'icon' | 'pill' | 'underline' | 'custom';
6
5
  customDivClass?: string | undefined;
7
6
  customUlClass?: string | undefined;
8
7
  };
@@ -32,23 +32,22 @@ const liClasses = {
32
32
  </script>
33
33
 
34
34
  <li class={liClasses[tabStyle]} role="presentation">
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
- {...$$restProps}>
52
- <slot />
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>
@@ -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} {tabId} {activeTabValue} />
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,8 +0,0 @@
1
- <script>import { getContext } from 'svelte';
2
- let tabId;
3
- tabId = getContext('tabId');
4
- </script>
5
-
6
- <div id="{tabId}-content">
7
- <slot />
8
- </div>
@@ -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 {};