flowbite-svelte 0.25.24 → 0.26.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 +56 -0
- package/footer/FooterIcon.svelte +2 -5
- package/footer/FooterIcon.svelte.d.ts +3 -5
- package/forms/Iconinput.svelte +13 -38
- package/forms/Iconinput.svelte.d.ts +3 -6
- package/forms/Input.svelte +1 -2
- package/index.d.ts +6 -10
- package/index.js +6 -10
- package/package.json +9 -11
- package/ratings/Review.svelte +9 -13
- package/ratings/Review.svelte.d.ts +4 -3
- package/sidebars/SidebarDropdownWrapper.svelte +1 -6
- package/sidebars/SidebarDropdownWrapper.svelte.d.ts +1 -2
- package/sidebars/SidebarItem.svelte +2 -9
- package/sidebars/SidebarItem.svelte.d.ts +1 -2
- package/tabs/TabContentItem.svelte +10 -0
- package/tabs/TabContentItem.svelte.d.ts +20 -0
- package/tabs/TabContentWrapper.svelte +8 -0
- package/tabs/TabContentWrapper.svelte.d.ts +16 -0
- package/tabs/TabHead.svelte +27 -0
- package/tabs/TabHead.svelte.d.ts +21 -0
- package/tabs/TabHeadItem.svelte +54 -0
- package/tabs/TabHeadItem.svelte.d.ts +34 -0
- package/tabs/TabWrapper.svelte +10 -0
- package/tabs/TabWrapper.svelte.d.ts +25 -0
- package/tooltips/Tooltip.svelte +5 -16
- package/tooltips/Tooltip.svelte.d.ts +1 -3
- package/types.d.ts +3 -7
- package/typography/A.svelte +4 -3
- package/typography/A.svelte.d.ts +1 -0
- package/utils/InformationCircle.svelte +37 -0
- package/utils/InformationCircle.svelte.d.ts +22 -0
- package/utils/Popper.svelte +7 -7
- package/utils/Popper.svelte.d.ts +0 -2
- package/utils/UserCircle.svelte +37 -0
- package/utils/UserCircle.svelte.d.ts +22 -0
- package/utils/createEventDispatcher.js +24 -0
- package/tabs/DefaultTabs.svelte +0 -26
- package/tabs/DefaultTabs.svelte.d.ts +0 -27
- package/tabs/FullWidthTabs.svelte +0 -42
- package/tabs/FullWidthTabs.svelte.d.ts +0 -28
- package/tabs/IconTabs.svelte +0 -33
- package/tabs/IconTabs.svelte.d.ts +0 -28
- package/tabs/InteractiveTabHead.svelte +0 -65
- package/tabs/InteractiveTabHead.svelte.d.ts +0 -54
- package/tabs/InteractiveTabs.svelte +0 -56
- package/tabs/InteractiveTabs.svelte.d.ts +0 -32
- package/tabs/PillTabs.svelte +0 -25
- package/tabs/PillTabs.svelte.d.ts +0 -27
- package/tabs/TabContent.svelte +0 -32
- package/tabs/TabContent.svelte.d.ts +0 -36
- package/tabs/Tabs.svelte +0 -115
- package/tabs/Tabs.svelte.d.ts +0 -39
- package/tabs/UnderlineTabs.svelte +0 -28
- package/tabs/UnderlineTabs.svelte.d.ts +0 -27
- package/tabs/tabStores.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,62 @@
|
|
|
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.2](https://github.com/themesberg/flowbite-svelte/compare/v0.26.1...v0.26.2) (2022-08-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add icon page ([0f5c966](https://github.com/themesberg/flowbite-svelte/commit/0f5c96626954d4174d10b99f2934365628f2ec08))
|
|
11
|
+
* Iconinput click handler example ([2f5afc7](https://github.com/themesberg/flowbite-svelte/commit/2f5afc7554a7bb43d231cc39001ea31b9deafd1c))
|
|
12
|
+
* remove heros icons from buttons page ([ec81a39](https://github.com/themesberg/flowbite-svelte/commit/ec81a393f438e2285d36ed7fea787af956c6f128))
|
|
13
|
+
* remove heros icons from checkbox page ([1ed983c](https://github.com/themesberg/flowbite-svelte/commit/1ed983c2b230e6309ae6882972176480f8060487))
|
|
14
|
+
* remove old tab components ([a61dd72](https://github.com/themesberg/flowbite-svelte/commit/a61dd728d1eb01bdbfeb61ff3adf8f96d7a1fbde))
|
|
15
|
+
* remove svelte:component from FooterIcon ([0406128](https://github.com/themesberg/flowbite-svelte/commit/04061286046845c7f5c34f56ef89013d4a610aee))
|
|
16
|
+
|
|
17
|
+
### [0.26.1](https://github.com/themesberg/flowbite-svelte/compare/v0.26.0...v0.26.1) (2022-08-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* new tab components and page ([7c53437](https://github.com/themesberg/flowbite-svelte/commit/7c534377c31384b609774db19b0bace7fee3d5cb))
|
|
23
|
+
* working on Tabs ([201c124](https://github.com/themesberg/flowbite-svelte/commit/201c124e33bed0d1b13cfe2e3f6ba5ea0bfc6c1c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* fixing the tab page layout problem ([bc3b7bf](https://github.com/themesberg/flowbite-svelte/commit/bc3b7bf32100abbbab3fede7fa6a912ff81d00f6))
|
|
29
|
+
* remove heros from cards page ([c46f0b3](https://github.com/themesberg/flowbite-svelte/commit/c46f0b3f9a16793f12d68fd3d1b9e973dd1f7b4a))
|
|
30
|
+
* remove heros from megamenu and list-group page ([9980b7d](https://github.com/themesberg/flowbite-svelte/commit/9980b7d98668c0356217dd3aac810c52cd5e0e51))
|
|
31
|
+
* remove heros from popover page ([eeff79f](https://github.com/themesberg/flowbite-svelte/commit/eeff79f53733a8f5cbb480eead692f111f96b07c))
|
|
32
|
+
* remove heros from sidebars page ([a3981a0](https://github.com/themesberg/flowbite-svelte/commit/a3981a09b6b36dcbcb90cfad789bee6a10dae9a1))
|
|
33
|
+
* remove heros icons from select and toggle pages ([fba7660](https://github.com/themesberg/flowbite-svelte/commit/fba7660c1bf08c47a9d0200db545f0b1fce457a9))
|
|
34
|
+
* remove unused icon prop ([10e8c81](https://github.com/themesberg/flowbite-svelte/commit/10e8c81dae9e0470ef875fc95dd7d89decdae732))
|
|
35
|
+
* Review component and review in the ratings page ([afe6972](https://github.com/themesberg/flowbite-svelte/commit/afe69726d08a3cad7de7f29db131909816bc9c3e))
|
|
36
|
+
|
|
37
|
+
## [0.26.0](https://github.com/themesberg/flowbite-svelte/compare/v0.25.24...v0.26.0) (2022-08-29)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### ⚠ BREAKING CHANGES
|
|
41
|
+
|
|
42
|
+
* Tooltip changed in accordance to new Popper implementation.
|
|
43
|
+
|
|
44
|
+
- Tooltip examples corrected
|
|
45
|
+
- Avatar example corrected
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
* tooltips new API ([d9dacf9](https://github.com/themesberg/flowbite-svelte/commit/d9dacf9f65e85be93a3458dd5359d614a0dd12a0))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* Avatar tooltip example ([ff7c1af](https://github.com/themesberg/flowbite-svelte/commit/ff7c1af20306609f77831ff1d2632700a9f596da))
|
|
55
|
+
* docs corrections ([f208323](https://github.com/themesberg/flowbite-svelte/commit/f208323ac1457b88572aaae37531e6b3da1055de))
|
|
56
|
+
* docs corrections 2 ([5adb4d8](https://github.com/themesberg/flowbite-svelte/commit/5adb4d816591d7bc9aff2e549fc364c80e650b4b))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
* Merge branch 'jjagielka-tooltip' ([1c37601](https://github.com/themesberg/flowbite-svelte/commit/1c3760139e24569287891c1ca3f67f2e0e3b9168))
|
|
60
|
+
|
|
5
61
|
### [0.25.24](https://github.com/themesberg/flowbite-svelte/compare/v0.25.23...v0.25.24) (2022-08-28)
|
|
6
62
|
|
|
7
63
|
|
package/footer/FooterIcon.svelte
CHANGED
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
export let href = '';
|
|
3
3
|
export let ariaLabel = '';
|
|
4
4
|
export let aClass = 'text-gray-500 hover:text-gray-900 dark:hover:text-white';
|
|
5
|
-
export let icon = null;
|
|
6
|
-
export let iconClass = 'h-5 w-5';
|
|
7
|
-
export let size = '20';
|
|
8
5
|
</script>
|
|
9
6
|
|
|
10
7
|
{#if href}
|
|
11
8
|
<a {href} aria-label={ariaLabel} class={classNames(aClass, $$props.class)}>
|
|
12
|
-
<
|
|
9
|
+
<slot />
|
|
13
10
|
</a>
|
|
14
11
|
{:else}
|
|
15
|
-
<
|
|
12
|
+
<slot />
|
|
16
13
|
{/if}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { SvelteComponent } from 'svelte';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
6
5
|
href?: string;
|
|
7
6
|
ariaLabel?: string;
|
|
8
7
|
aClass?: string;
|
|
9
|
-
icon?: typeof SvelteComponent | null;
|
|
10
|
-
iconClass?: string;
|
|
11
|
-
size?: string;
|
|
12
8
|
};
|
|
13
9
|
events: {
|
|
14
10
|
[evt: string]: CustomEvent<any>;
|
|
15
11
|
};
|
|
16
|
-
slots: {
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
17
15
|
};
|
|
18
16
|
export declare type FooterIconProps = typeof __propDef.props;
|
|
19
17
|
export declare type FooterIconEvents = typeof __propDef.events;
|
package/forms/Iconinput.svelte
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
-
// import type { InputType } from '../types';
|
|
3
|
-
// export let type: InputType = 'text';
|
|
4
2
|
export let value = '';
|
|
5
3
|
export let size = 'md';
|
|
6
|
-
export let icon;
|
|
7
4
|
export let noBorder = false;
|
|
8
5
|
export let inputClass = 'rounded-none rounded-r-lg bg-gray-50 border border-gray-300 text-gray-900 focus:ring-blue-500 focus:border-blue-500 block flex-1 min-w-0 w-full border-gray-300 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';
|
|
9
6
|
export let spanClass = 'inline-flex items-center px-3 text-sm text-gray-900 bg-gray-200 rounded-l-md border border-r-0 border-gray-300 dark:bg-gray-600 dark:text-gray-400 dark:border-gray-600';
|
|
10
|
-
export let noBorderInputClass = 'bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full
|
|
7
|
+
export let noBorderInputClass = 'bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full 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';
|
|
11
8
|
export let pointerEvent = false;
|
|
12
9
|
export let noBorderDivClass = 'flex absolute inset-y-0 left-0 items-center pl-3';
|
|
13
|
-
export let iconClass = 'mr-2';
|
|
14
10
|
</script>
|
|
15
11
|
|
|
16
12
|
{#if noBorder}
|
|
17
13
|
<div class="relative">
|
|
18
|
-
<
|
|
14
|
+
<div
|
|
19
15
|
class={classNames(
|
|
20
16
|
noBorderDivClass,
|
|
21
17
|
{
|
|
@@ -24,47 +20,27 @@ export let iconClass = 'mr-2';
|
|
|
24
20
|
'sm:text-md p-4': size === 'lg'
|
|
25
21
|
},
|
|
26
22
|
pointerEvent ? 'cursor-pointer' : 'pointer-events-none'
|
|
27
|
-
)}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this={icon}
|
|
31
|
-
on:click
|
|
32
|
-
size={classNames({
|
|
33
|
-
16: size === 'sm',
|
|
34
|
-
18: size === 'md',
|
|
35
|
-
20: size === 'lg'
|
|
36
|
-
})}
|
|
37
|
-
class={iconClass}
|
|
38
|
-
/>
|
|
39
|
-
</span>
|
|
23
|
+
)}>
|
|
24
|
+
<slot />
|
|
25
|
+
</div>
|
|
40
26
|
<input
|
|
41
27
|
{...$$restProps}
|
|
42
28
|
bind:value
|
|
43
29
|
class={classNames(
|
|
44
30
|
noBorderInputClass,
|
|
45
31
|
{
|
|
46
|
-
'p-2 sm:text-xs': size === 'sm',
|
|
47
|
-
'p-2.5 text-sm': size === 'md',
|
|
48
|
-
'sm:text-md p-4': size === 'lg'
|
|
32
|
+
'p-2 sm:text-xs pl-9': size === 'sm',
|
|
33
|
+
'p-2.5 text-sm pl-10': size === 'md',
|
|
34
|
+
'sm:text-md p-4 pl-11': size === 'lg'
|
|
49
35
|
},
|
|
50
36
|
$$props.class
|
|
51
|
-
)}
|
|
52
|
-
/>
|
|
37
|
+
)} />
|
|
53
38
|
</div>
|
|
54
39
|
{:else}
|
|
55
40
|
<div class="flex">
|
|
56
|
-
<
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
on:click
|
|
60
|
-
size={classNames({
|
|
61
|
-
16: size === 'sm',
|
|
62
|
-
18: size === 'md',
|
|
63
|
-
20: size === 'lg'
|
|
64
|
-
})}
|
|
65
|
-
class={classNames(iconClass, pointerEvent ? 'cursor-pointer' : 'pointer-events-none')}
|
|
66
|
-
/>
|
|
67
|
-
</div>
|
|
41
|
+
<span class={spanClass}>
|
|
42
|
+
<slot />
|
|
43
|
+
</span>
|
|
68
44
|
<input
|
|
69
45
|
{...$$restProps}
|
|
70
46
|
bind:value
|
|
@@ -76,7 +52,6 @@ export let iconClass = 'mr-2';
|
|
|
76
52
|
'sm:text-md p-4': size === 'lg'
|
|
77
53
|
},
|
|
78
54
|
$$props.class
|
|
79
|
-
)}
|
|
80
|
-
/>
|
|
55
|
+
)} />
|
|
81
56
|
</div>
|
|
82
57
|
{/if}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { SvelteComponent } from 'svelte';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
6
5
|
value?: string;
|
|
7
6
|
size?: 'sm' | 'md' | 'lg';
|
|
8
|
-
icon: typeof SvelteComponent;
|
|
9
7
|
noBorder?: boolean;
|
|
10
8
|
inputClass?: string;
|
|
11
9
|
spanClass?: string;
|
|
12
10
|
noBorderInputClass?: string;
|
|
13
11
|
pointerEvent?: boolean;
|
|
14
12
|
noBorderDivClass?: string;
|
|
15
|
-
iconClass?: string;
|
|
16
13
|
};
|
|
17
14
|
events: {
|
|
18
|
-
click: any;
|
|
19
|
-
} & {
|
|
20
15
|
[evt: string]: CustomEvent<any>;
|
|
21
16
|
};
|
|
22
|
-
slots: {
|
|
17
|
+
slots: {
|
|
18
|
+
default: {};
|
|
19
|
+
};
|
|
23
20
|
};
|
|
24
21
|
export declare type IconinputProps = typeof __propDef.props;
|
|
25
22
|
export declare type IconinputEvents = typeof __propDef.events;
|
package/forms/Input.svelte
CHANGED
package/index.d.ts
CHANGED
|
@@ -88,16 +88,10 @@ export { default as TableBodyRow } from './tables/TableBodyRow.svelte';
|
|
|
88
88
|
export { default as TableHead } from './tables/TableHead.svelte';
|
|
89
89
|
export { default as TableHeadCell } from './tables/TableHeadCell.svelte';
|
|
90
90
|
export { default as TableSearch } from './tables/TableSearch.svelte';
|
|
91
|
-
export { default as
|
|
92
|
-
export {
|
|
93
|
-
export { default as
|
|
94
|
-
export { default as
|
|
95
|
-
export { default as DefaultTabs } from './tabs/DefaultTabs.svelte';
|
|
96
|
-
export { default as FullWidthTabs } from './tabs/FullWidthTabs.svelte';
|
|
97
|
-
export { default as IconTabs } from './tabs/IconTabs.svelte';
|
|
98
|
-
export { default as PillTabs } from './tabs/PillTabs.svelte';
|
|
99
|
-
export { default as TabContent } from './tabs/TabContent.svelte';
|
|
100
|
-
export { default as UnderlineTabs } from './tabs/UnderlineTabs.svelte';
|
|
91
|
+
export { default as TabHead } from './tabs/TabHead.svelte';
|
|
92
|
+
export { default as TabHeadItem } from './tabs/TabHeadItem.svelte';
|
|
93
|
+
export { default as TabContentItem } from './tabs/TabContentItem.svelte';
|
|
94
|
+
export { default as TabWrapper } from './tabs/TabWrapper.svelte';
|
|
101
95
|
export { default as Group } from './timelines/Group.svelte';
|
|
102
96
|
export { default as GroupItem } from './timelines/GroupItem.svelte';
|
|
103
97
|
export { default as Activity } from './timelines/Activity.svelte';
|
|
@@ -128,3 +122,5 @@ export { default as ChevronDown } from './utils/ChevronDown.svelte';
|
|
|
128
122
|
export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
|
|
129
123
|
export { default as ChevronRight } from './utils/ChevronRight.svelte';
|
|
130
124
|
export { default as ChevronUp } from './utils/ChevronUp.svelte';
|
|
125
|
+
export { default as InformationCircle } from './utils/InformationCircle.svelte';
|
|
126
|
+
export { default as UserCircle } from './utils/UserCircle.svelte';
|
package/index.js
CHANGED
|
@@ -116,16 +116,10 @@ export { default as TableHead } from './tables/TableHead.svelte';
|
|
|
116
116
|
export { default as TableHeadCell } from './tables/TableHeadCell.svelte';
|
|
117
117
|
export { default as TableSearch } from './tables/TableSearch.svelte';
|
|
118
118
|
// Tabs
|
|
119
|
-
export { default as
|
|
120
|
-
export {
|
|
121
|
-
export { default as
|
|
122
|
-
export { default as
|
|
123
|
-
export { default as DefaultTabs } from './tabs/DefaultTabs.svelte';
|
|
124
|
-
export { default as FullWidthTabs } from './tabs/FullWidthTabs.svelte';
|
|
125
|
-
export { default as IconTabs } from './tabs/IconTabs.svelte';
|
|
126
|
-
export { default as PillTabs } from './tabs/PillTabs.svelte';
|
|
127
|
-
export { default as TabContent } from './tabs/TabContent.svelte';
|
|
128
|
-
export { default as UnderlineTabs } from './tabs/UnderlineTabs.svelte';
|
|
119
|
+
export { default as TabHead } from './tabs/TabHead.svelte';
|
|
120
|
+
export { default as TabHeadItem } from './tabs/TabHeadItem.svelte';
|
|
121
|
+
export { default as TabContentItem } from './tabs/TabContentItem.svelte';
|
|
122
|
+
export { default as TabWrapper } from './tabs/TabWrapper.svelte';
|
|
129
123
|
// Timeline
|
|
130
124
|
export { default as Group } from './timelines/Group.svelte';
|
|
131
125
|
export { default as GroupItem } from './timelines/GroupItem.svelte';
|
|
@@ -162,3 +156,5 @@ export { default as ChevronDown } from './utils/ChevronDown.svelte';
|
|
|
162
156
|
export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
|
|
163
157
|
export { default as ChevronRight } from './utils/ChevronRight.svelte';
|
|
164
158
|
export { default as ChevronUp } from './utils/ChevronUp.svelte';
|
|
159
|
+
export { default as InformationCircle } from './utils/InformationCircle.svelte';
|
|
160
|
+
export { default as UserCircle } from './utils/UserCircle.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -200,16 +200,11 @@
|
|
|
200
200
|
"./tables/TableHead.svelte": "./tables/TableHead.svelte",
|
|
201
201
|
"./tables/TableHeadCell.svelte": "./tables/TableHeadCell.svelte",
|
|
202
202
|
"./tables/TableSearch.svelte": "./tables/TableSearch.svelte",
|
|
203
|
-
"./tabs/
|
|
204
|
-
"./tabs/
|
|
205
|
-
"./tabs/
|
|
206
|
-
"./tabs/
|
|
207
|
-
"./tabs/
|
|
208
|
-
"./tabs/PillTabs.svelte": "./tabs/PillTabs.svelte",
|
|
209
|
-
"./tabs/TabContent.svelte": "./tabs/TabContent.svelte",
|
|
210
|
-
"./tabs/Tabs.svelte": "./tabs/Tabs.svelte",
|
|
211
|
-
"./tabs/UnderlineTabs.svelte": "./tabs/UnderlineTabs.svelte",
|
|
212
|
-
"./tabs/tabStores": "./tabs/tabStores.js",
|
|
203
|
+
"./tabs/TabContentItem.svelte": "./tabs/TabContentItem.svelte",
|
|
204
|
+
"./tabs/TabContentWrapper.svelte": "./tabs/TabContentWrapper.svelte",
|
|
205
|
+
"./tabs/TabHead.svelte": "./tabs/TabHead.svelte",
|
|
206
|
+
"./tabs/TabHeadItem.svelte": "./tabs/TabHeadItem.svelte",
|
|
207
|
+
"./tabs/TabWrapper.svelte": "./tabs/TabWrapper.svelte",
|
|
213
208
|
"./timelines/Activity.svelte": "./timelines/Activity.svelte",
|
|
214
209
|
"./timelines/ActivityItem.svelte": "./timelines/ActivityItem.svelte",
|
|
215
210
|
"./timelines/Group.svelte": "./timelines/Group.svelte",
|
|
@@ -241,9 +236,12 @@
|
|
|
241
236
|
"./utils/ChevronRight.svelte": "./utils/ChevronRight.svelte",
|
|
242
237
|
"./utils/ChevronUp.svelte": "./utils/ChevronUp.svelte",
|
|
243
238
|
"./utils/CloseButton.svelte": "./utils/CloseButton.svelte",
|
|
239
|
+
"./utils/InformationCircle.svelte": "./utils/InformationCircle.svelte",
|
|
244
240
|
"./utils/Popper.svelte": "./utils/Popper.svelte",
|
|
241
|
+
"./utils/UserCircle.svelte": "./utils/UserCircle.svelte",
|
|
245
242
|
"./utils/Wrapper.svelte": "./utils/Wrapper.svelte",
|
|
246
243
|
"./utils/clickOutside": "./utils/clickOutside.js",
|
|
244
|
+
"./utils/createEventDispatcher": "./utils/createEventDispatcher.js",
|
|
247
245
|
"./utils/focusTrap": "./utils/focusTrap.js",
|
|
248
246
|
"./utils/generateId": "./utils/generateId.js"
|
|
249
247
|
},
|
package/ratings/Review.svelte
CHANGED
|
@@ -15,29 +15,26 @@ export let liClass = 'flex items-center';
|
|
|
15
15
|
<p>{review.name}</p>
|
|
16
16
|
{#if review.address}
|
|
17
17
|
<div class="flex items-center text-sm text-gray-500 dark:text-gray-400">
|
|
18
|
-
|
|
19
|
-
<svelte:component this={review.addressIcon} size="16" class="mr-2" />
|
|
20
|
-
{/if}
|
|
21
|
-
{review.address}
|
|
18
|
+
<slot name="address" />
|
|
22
19
|
</div>
|
|
23
20
|
{/if}
|
|
24
21
|
</div>
|
|
25
22
|
</div>
|
|
26
|
-
{#if $$slots.
|
|
23
|
+
{#if $$slots.item1 || $$slots.item2 || $$slots.item3}
|
|
27
24
|
<ul class={classNames(ulClass, $$props.classUl)}>
|
|
28
|
-
{#if $$slots.
|
|
25
|
+
{#if $$slots.item1}
|
|
29
26
|
<li class={classNames(liClass, $$props.classLi)}>
|
|
30
|
-
<slot name="
|
|
27
|
+
<slot name="item1" />
|
|
31
28
|
</li>
|
|
32
29
|
{/if}
|
|
33
|
-
{#if $$slots.
|
|
30
|
+
{#if $$slots.item2}
|
|
34
31
|
<li class={classNames(liClass, $$props.classLi)}>
|
|
35
|
-
<slot name="
|
|
32
|
+
<slot name="item2" />
|
|
36
33
|
</li>
|
|
37
34
|
{/if}
|
|
38
|
-
{#if $$slots.
|
|
35
|
+
{#if $$slots.item3}
|
|
39
36
|
<li class={classNames(liClass, $$props.classLi)}>
|
|
40
|
-
<slot name="
|
|
37
|
+
<slot name="item3" />
|
|
41
38
|
</li>
|
|
42
39
|
{/if}
|
|
43
40
|
</ul>
|
|
@@ -58,8 +55,7 @@ export let liClass = 'flex items-center';
|
|
|
58
55
|
</h4>
|
|
59
56
|
</div>
|
|
60
57
|
<p
|
|
61
|
-
class="bg-blue-700 text-white text-sm font-semibold inline-flex items-center p-1.5 rounded"
|
|
62
|
-
>
|
|
58
|
+
class="bg-blue-700 text-white text-sm font-semibold inline-flex items-center p-1.5 rounded">
|
|
63
59
|
{review.rating}
|
|
64
60
|
</p>
|
|
65
61
|
</div>
|
|
@@ -6,7 +6,6 @@ export let btnClass = 'flex items-center p-2 w-full text-base font-normal text-g
|
|
|
6
6
|
export let label = '';
|
|
7
7
|
export let spanClass = 'flex-1 ml-3 text-left whitespace-nowrap';
|
|
8
8
|
export let ulClass = 'py-2 space-y-2';
|
|
9
|
-
export let icon;
|
|
10
9
|
let isOpen = false;
|
|
11
10
|
const handleDropdown = () => {
|
|
12
11
|
isOpen = !isOpen;
|
|
@@ -20,11 +19,7 @@ const handleDropdown = () => {
|
|
|
20
19
|
type="button"
|
|
21
20
|
class={classNames(btnClass, $$props.class)}
|
|
22
21
|
aria-controls="sidebar-dropdown">
|
|
23
|
-
<
|
|
24
|
-
this={icon.name}
|
|
25
|
-
size={icon.size}
|
|
26
|
-
color={icon.color}
|
|
27
|
-
class="mr-2 {icon.class}" />
|
|
22
|
+
<slot name="icon" />
|
|
28
23
|
<span class={spanClass} sidebar-toggle-item>{label}</span>
|
|
29
24
|
<ChevronDown />
|
|
30
25
|
</button>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { IconType } from '../types';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
@@ -7,12 +6,12 @@ declare const __propDef: {
|
|
|
7
6
|
label?: string;
|
|
8
7
|
spanClass?: string;
|
|
9
8
|
ulClass?: string;
|
|
10
|
-
icon: IconType;
|
|
11
9
|
};
|
|
12
10
|
events: {
|
|
13
11
|
[evt: string]: CustomEvent<any>;
|
|
14
12
|
};
|
|
15
13
|
slots: {
|
|
14
|
+
icon: {};
|
|
16
15
|
default: {};
|
|
17
16
|
};
|
|
18
17
|
};
|
|
@@ -3,7 +3,6 @@ export let aClass = 'flex items-center p-2 text-base font-normal text-gray-900 r
|
|
|
3
3
|
export let href = '';
|
|
4
4
|
export let label = '';
|
|
5
5
|
export let spanClass = 'ml-3';
|
|
6
|
-
export let icon;
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
8
|
<li>
|
|
@@ -19,14 +18,8 @@ export let icon;
|
|
|
19
18
|
on:mouseenter
|
|
20
19
|
on:mouseleave
|
|
21
20
|
on:mouseover
|
|
22
|
-
class={classNames(aClass, $$props.class)}
|
|
23
|
-
|
|
24
|
-
<svelte:component
|
|
25
|
-
this={icon.name}
|
|
26
|
-
size={icon.size}
|
|
27
|
-
color={icon.color}
|
|
28
|
-
class="mr-2 {icon.class}"
|
|
29
|
-
/>
|
|
21
|
+
class={classNames(aClass, $$props.class)}>
|
|
22
|
+
<slot name="icon" />
|
|
30
23
|
<span class={spanClass}>{label}</span>
|
|
31
24
|
{#if $$slots.subtext}
|
|
32
25
|
<slot name="subtext" />
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { IconType } from '../types';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
@@ -7,7 +6,6 @@ declare const __propDef: {
|
|
|
7
6
|
href?: string;
|
|
8
7
|
label?: string;
|
|
9
8
|
spanClass?: string;
|
|
10
|
-
icon: IconType;
|
|
11
9
|
};
|
|
12
10
|
events: {
|
|
13
11
|
blur: FocusEvent;
|
|
@@ -23,6 +21,7 @@ declare const __propDef: {
|
|
|
23
21
|
[evt: string]: CustomEvent<any>;
|
|
24
22
|
};
|
|
25
23
|
slots: {
|
|
24
|
+
icon: {};
|
|
26
25
|
subtext: {};
|
|
27
26
|
};
|
|
28
27
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script>export let activeTabValue;
|
|
2
|
+
export let id;
|
|
3
|
+
export let contentDivClass = 'p-4 bg-gray-50 rounded-lg dark:bg-gray-800';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
{#if activeTabValue === id}
|
|
7
|
+
<div class={contentDivClass} id="{id}-tabitem" role="tabpanel" aria-labelledby="{id}-tab">
|
|
8
|
+
<slot />
|
|
9
|
+
</div>
|
|
10
|
+
{/if}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
activeTabValue: number;
|
|
5
|
+
id: number;
|
|
6
|
+
contentDivClass?: string;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare type TabContentItemProps = typeof __propDef.props;
|
|
16
|
+
export declare type TabContentItemEvents = typeof __propDef.events;
|
|
17
|
+
export declare type TabContentItemSlots = typeof __propDef.slots;
|
|
18
|
+
export default class TabContentItem extends SvelteComponentTyped<TabContentItemProps, TabContentItemEvents, TabContentItemSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>export let tabStyle;
|
|
2
|
+
export let tabId;
|
|
3
|
+
export let customDivClass = '';
|
|
4
|
+
export let customUlClass = '';
|
|
5
|
+
const divClasses = {
|
|
6
|
+
default: 'mb-4 border-b border-gray-200 dark:border-gray-700',
|
|
7
|
+
full: 'mb-4',
|
|
8
|
+
icon: 'mb-4 border-b border-gray-200 dark:border-gray-700',
|
|
9
|
+
pill: 'mb-4 ',
|
|
10
|
+
underline: 'mb-4 text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700',
|
|
11
|
+
custom: customDivClass
|
|
12
|
+
};
|
|
13
|
+
const ulClasses = {
|
|
14
|
+
default: 'flex flex-wrap -mb-px',
|
|
15
|
+
full: '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 mb-1',
|
|
16
|
+
icon: 'flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400',
|
|
17
|
+
pill: 'flex flex-wrap',
|
|
18
|
+
underline: 'flex flex-wrap -mb-px',
|
|
19
|
+
custom: customUlClass
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<div class={divClasses[tabStyle]}>
|
|
24
|
+
<ul class={ulClasses[tabStyle]} id={tabId} role="tablist">
|
|
25
|
+
<slot />
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tabStyle: any;
|
|
5
|
+
tabId: any;
|
|
6
|
+
customDivClass?: string;
|
|
7
|
+
customUlClass?: string;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare type TabHeadProps = typeof __propDef.props;
|
|
17
|
+
export declare type TabHeadEvents = typeof __propDef.events;
|
|
18
|
+
export declare type TabHeadSlots = typeof __propDef.slots;
|
|
19
|
+
export default class TabHead extends SvelteComponentTyped<TabHeadProps, TabHeadEvents, TabHeadSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let id;
|
|
3
|
+
export let tabStyle;
|
|
4
|
+
export let activeTabValue;
|
|
5
|
+
export let customActiveClass = '';
|
|
6
|
+
export let customInActiveClass = '';
|
|
7
|
+
export let customLiClass = '';
|
|
8
|
+
const activeClasses = {
|
|
9
|
+
default: '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',
|
|
10
|
+
full: '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',
|
|
11
|
+
icon: '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',
|
|
12
|
+
pill: 'active inline-block py-3 px-4 text-sm font-medium text-center text-white bg-blue-600 rounded-lg',
|
|
13
|
+
underline: 'inline-block p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500',
|
|
14
|
+
custom: customActiveClass
|
|
15
|
+
};
|
|
16
|
+
const inactiveClasses = {
|
|
17
|
+
default: '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',
|
|
18
|
+
full: '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',
|
|
19
|
+
icon: '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 ',
|
|
20
|
+
pill: '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',
|
|
21
|
+
underline: 'inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300',
|
|
22
|
+
custom: customInActiveClass
|
|
23
|
+
};
|
|
24
|
+
const liClasses = {
|
|
25
|
+
default: 'mr-2',
|
|
26
|
+
full: 'w-full',
|
|
27
|
+
icon: 'mr-2',
|
|
28
|
+
pill: 'mr-2',
|
|
29
|
+
underline: 'mr-2',
|
|
30
|
+
custom: customLiClass
|
|
31
|
+
};
|
|
32
|
+
</script>
|
|
33
|
+
|
|
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>
|
|
54
|
+
</li>
|