flowbite-svelte 0.48.1 → 0.48.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/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +3 -3
- package/dist/accordion/AccordionItem.svelte.d.ts +2 -1
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/avatar/Avatar.svelte +4 -4
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/badge/Badge.svelte +2 -2
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +2 -2
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +1 -1
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/cards/Card.svelte.d.ts +1 -1
- package/dist/charts/Chart.svelte.d.ts +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -0
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -0
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -0
- package/dist/device-mockups/Ios.svelte.d.ts +1 -0
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -0
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -0
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -0
- package/dist/drawer/Drawer.svelte +2 -1
- package/dist/drawer/Drawer.svelte.d.ts +1 -0
- package/dist/dropdown/Dropdown.svelte +2 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +3 -3
- package/dist/forms/CheckboxButton.svelte +2 -20
- package/dist/forms/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/Radio.svelte +2 -2
- package/dist/forms/RadioButton.svelte +2 -18
- package/dist/forms/RadioButton.svelte.d.ts +1 -1
- package/dist/indicators/Indicator.svelte +3 -3
- package/dist/indicators/Indicator.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +2 -1
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -0
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -0
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -0
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -0
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -0
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -0
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -0
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +2 -1
- package/dist/speed-dial/SpeedDial.svelte +0 -1
- package/dist/table/Table.svelte +2 -2
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +2 -1
- package/dist/timeline/GroupItem.svelte +14 -14
- package/dist/timeline/GroupItem.svelte.d.ts +2 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +2 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/utils/Frame.svelte.d.ts +2 -2
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/TransitionFrame.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export interface AccordionCtxType {
|
|
|
9
9
|
classInactive?: string;
|
|
10
10
|
}
|
|
11
11
|
declare const __propDef: {
|
|
12
|
-
props: import("svelte/elements").
|
|
12
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
13
13
|
tag?: string;
|
|
14
14
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
15
15
|
rounded?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { getContext, onMount } from "svelte";
|
|
1
|
+
<script>import { getContext, onMount } from "svelte";
|
|
3
2
|
import { writable } from "svelte/store";
|
|
4
|
-
import {
|
|
3
|
+
import { blur, fade, fly, slide } from "svelte/transition";
|
|
4
|
+
import { twMerge } from "tailwind-merge";
|
|
5
5
|
export let tag = "h2";
|
|
6
6
|
export let open = false;
|
|
7
7
|
export let activeClass = void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TransitionParamTypes, TransitionTypes } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
tag?: string;
|
|
@@ -19,6 +19,7 @@ declare const __propDef: {
|
|
|
19
19
|
borderSharedClass?: string;
|
|
20
20
|
classActive?: string;
|
|
21
21
|
classInactive?: string;
|
|
22
|
+
class?: string;
|
|
22
23
|
};
|
|
23
24
|
events: {
|
|
24
25
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: import("svelte/elements").
|
|
3
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
4
4
|
tag?: string;
|
|
5
5
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
6
6
|
rounded?: boolean;
|
|
@@ -18,17 +18,17 @@ const sizes = {
|
|
|
18
18
|
none: ""
|
|
19
19
|
};
|
|
20
20
|
let avatarClass;
|
|
21
|
-
$: avatarClass = twMerge(rounded ? "rounded
|
|
21
|
+
$: avatarClass = twMerge(rounded ? "rounded" : "rounded-full", border && "p-1 ring-2 ring-gray-300 dark:ring-gray-500", sizes[size], stacked && "border-2 -ms-4 border-white dark:border-gray-800", "bg-gray-100 dark:bg-gray-600 text-gray-600 dark:text-gray-300 object-cover", $$props.class);
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
{#if !src || !!href || $$slots.default || dot}
|
|
25
25
|
<svelte:element this={href ? 'a' : 'div'} {href} {...$$restProps} class="relative flex justify-center items-center {avatarClass}">
|
|
26
26
|
{#if src}
|
|
27
|
-
<img {alt} {src} class={rounded ? 'rounded
|
|
27
|
+
<img {alt} {src} class={rounded ? 'rounded' : 'rounded-full'} />
|
|
28
28
|
{:else}
|
|
29
29
|
<slot>
|
|
30
30
|
<!-- default avatar placeholder -->
|
|
31
|
-
<svg class="w-full h-full {rounded ? 'rounded
|
|
31
|
+
<svg class="w-full h-full {rounded ? 'rounded' : 'rounded-full'}" fill="currentColor" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
32
32
|
<path fill-rule="evenodd" d="M8 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd" />
|
|
33
33
|
</svg>
|
|
34
34
|
</slot>
|
|
@@ -47,7 +47,7 @@ $: avatarClass = twMerge(rounded ? "rounded-sm" : "rounded-full", border && "p-1
|
|
|
47
47
|
## Props
|
|
48
48
|
@prop export let src: $$Props['src'] = '';
|
|
49
49
|
@prop export let href: $$Props['href'] = undefined;
|
|
50
|
-
@prop export let rounded: $$Props['rounded
|
|
50
|
+
@prop export let rounded: $$Props['rounded'] = false;
|
|
51
51
|
@prop export let border: $$Props['border'] = false;
|
|
52
52
|
@prop export let stacked: $$Props['stacked'] = false;
|
|
53
53
|
@prop export let dot: $$Props['dot'] = undefined;
|
|
@@ -27,7 +27,7 @@ export type AvatarSlots = typeof __propDef.slots;
|
|
|
27
27
|
* ## Props
|
|
28
28
|
* @prop export let src: $$Props['src'] = '';
|
|
29
29
|
* @prop export let href: $$Props['href'] = undefined;
|
|
30
|
-
* @prop export let rounded: $$Props['rounded
|
|
30
|
+
* @prop export let rounded: $$Props['rounded'] = false;
|
|
31
31
|
* @prop export let border: $$Props['border'] = false;
|
|
32
32
|
* @prop export let stacked: $$Props['stacked'] = false;
|
|
33
33
|
* @prop export let dot: $$Props['dot'] = undefined;
|
package/dist/badge/Badge.svelte
CHANGED
|
@@ -53,7 +53,7 @@ const close = () => {
|
|
|
53
53
|
};
|
|
54
54
|
const baseClass = "font-medium inline-flex items-center justify-center px-2.5 py-0.5";
|
|
55
55
|
let badgeClass;
|
|
56
|
-
$: badgeClass = twMerge(baseClass, large ? "text-sm" : "text-xs", border ? `border ${borderedColors[color]}` : colors[color], href && hoverColors[color], rounded ? "rounded-full" : "rounded
|
|
56
|
+
$: badgeClass = twMerge(baseClass, large ? "text-sm" : "text-xs", border ? `border ${borderedColors[color]}` : colors[color], href && hoverColors[color], rounded ? "rounded-full" : "rounded", $$restProps.class);
|
|
57
57
|
</script>
|
|
58
58
|
|
|
59
59
|
{#if badgeStatus}
|
|
@@ -90,7 +90,7 @@ $: badgeClass = twMerge(baseClass, large ? "text-sm" : "text-xs", border ? `bord
|
|
|
90
90
|
@prop export let dismissable: $$Props['dismissable'] = false;
|
|
91
91
|
@prop export let border: $$Props['border'] = false;
|
|
92
92
|
@prop export let href: $$Props['href'] = '';
|
|
93
|
-
@prop export let rounded: $$Props['rounded
|
|
93
|
+
@prop export let rounded: $$Props['rounded'] = false;
|
|
94
94
|
@prop export let transition: NonNullable<$$Props['transition']> = fade;
|
|
95
95
|
@prop export let params: $$Props['params'] = {};
|
|
96
96
|
-->
|
|
@@ -36,7 +36,7 @@ export type BadgeSlots = typeof __propDef.slots;
|
|
|
36
36
|
* @prop export let dismissable: $$Props['dismissable'] = false;
|
|
37
37
|
* @prop export let border: $$Props['border'] = false;
|
|
38
38
|
* @prop export let href: $$Props['href'] = '';
|
|
39
|
-
* @prop export let rounded: $$Props['rounded
|
|
39
|
+
* @prop export let rounded: $$Props['rounded'] = false;
|
|
40
40
|
* @prop export let transition: NonNullable<$$Props['transition']> = fade;
|
|
41
41
|
* @prop export let params: $$Props['params'] = {};
|
|
42
42
|
*/
|
|
@@ -111,7 +111,7 @@ $: buttonClass = twMerge(
|
|
|
111
111
|
<label {...$$restProps} class={buttonClass}>
|
|
112
112
|
<slot />
|
|
113
113
|
</label>
|
|
114
|
-
{:else if tag === 'button'
|
|
114
|
+
{:else if tag === 'button'}
|
|
115
115
|
<button {type} {...$$restProps} {disabled} class={buttonClass} on:click on:change on:keydown on:keyup on:touchstart|passive on:touchend on:touchcancel on:mouseenter on:mouseleave on:mouseup on:mousedown>
|
|
116
116
|
<slot />
|
|
117
117
|
</button>
|
|
@@ -131,7 +131,7 @@ $: buttonClass = twMerge(
|
|
|
131
131
|
@prop export let href: string | undefined = undefined;
|
|
132
132
|
@prop export let type: HTMLButtonAttributes['type'] = 'button';
|
|
133
133
|
@prop export let color: NonNullable<$$Props['color']> = group ? (outline ? 'dark' : 'alternative') : 'primary';
|
|
134
|
-
@prop export let shadow: $$Props['shadow
|
|
134
|
+
@prop export let shadow: $$Props['shadow'] = false;
|
|
135
135
|
@prop export let tag: $$Props['tag'] = 'button';
|
|
136
136
|
@prop export let checked: $$Props['checked'] = undefined;
|
|
137
137
|
@prop export let disabled: HTMLButtonAttributes['disabled'] = false;
|
|
@@ -55,7 +55,7 @@ export type ButtonSlots = typeof __propDef.slots;
|
|
|
55
55
|
* @prop export let href: string | undefined = undefined;
|
|
56
56
|
* @prop export let type: HTMLButtonAttributes['type'] = 'button';
|
|
57
57
|
* @prop export let color: NonNullable<$$Props['color']> = group ? (outline ? 'dark' : 'alternative') : 'primary';
|
|
58
|
-
* @prop export let shadow: $$Props['shadow
|
|
58
|
+
* @prop export let shadow: $$Props['shadow'] = false;
|
|
59
59
|
* @prop export let tag: $$Props['tag'] = 'button';
|
|
60
60
|
* @prop export let checked: $$Props['checked'] = undefined;
|
|
61
61
|
* @prop export let disabled: HTMLButtonAttributes['disabled'] = false;
|
|
@@ -70,5 +70,5 @@ $: divClass = twMerge($$props.outline && "p-0.5", gradientClasses[color], shadow
|
|
|
70
70
|
[Go to docs](https://flowbite-svelte.com/)
|
|
71
71
|
## Props
|
|
72
72
|
@prop export let color: NonNullable<$$Props['color']> = 'blue';
|
|
73
|
-
@prop export let shadow: $$Props['shadow
|
|
73
|
+
@prop export let shadow: $$Props['shadow'] = false;
|
|
74
74
|
-->
|
|
@@ -29,7 +29,7 @@ export type GradientButtonSlots = typeof __propDef.slots;
|
|
|
29
29
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
* ## Props
|
|
31
31
|
* @prop export let color: NonNullable<$$Props['color']> = 'blue';
|
|
32
|
-
* @prop export let shadow: $$Props['shadow
|
|
32
|
+
* @prop export let shadow: $$Props['shadow'] = false;
|
|
33
33
|
*/
|
|
34
34
|
export default class GradientButton extends SvelteComponentTyped<GradientButtonProps, GradientButtonEvents, GradientButtonSlots> {
|
|
35
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { SizeType } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props: import("svelte/elements").
|
|
4
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
5
5
|
tag?: string;
|
|
6
6
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
7
7
|
rounded?: boolean;
|
|
@@ -10,6 +10,7 @@ export let topOffset = "inset-x-0 top-0";
|
|
|
10
10
|
export let bottomOffset = "inset-x-0 bottom-0";
|
|
11
11
|
export let width = "w-80";
|
|
12
12
|
export let backdrop = true;
|
|
13
|
+
export let backdropClass = "";
|
|
13
14
|
export let bgColor = "bg-gray-900";
|
|
14
15
|
export let bgOpacity = "bg-black/75";
|
|
15
16
|
export let placement = "left";
|
|
@@ -39,7 +40,7 @@ const handleDrawer = () => {
|
|
|
39
40
|
hidden = !hidden;
|
|
40
41
|
};
|
|
41
42
|
const handleClickOutside = () => activateClickOutside && !hidden && handleDrawer();
|
|
42
|
-
let backdropDivClass = twMerge("fixed top-0 start-0 z-50 w-full h-full", backdrop && bgColor, backdrop && bgOpacity);
|
|
43
|
+
let backdropDivClass = twMerge("fixed top-0 start-0 z-50 w-full h-full", backdrop && bgColor, backdrop && bgOpacity, backdropClass);
|
|
43
44
|
function clickOutsideWrapper(node, callback) {
|
|
44
45
|
return activateClickOutside ? clickOutside(node, callback) : void 0;
|
|
45
46
|
}
|
|
@@ -65,6 +65,6 @@ $: footerCls = twMerge(footerClass, classFooter);
|
|
|
65
65
|
@prop export let trigger: $$Props['trigger'] = 'click';
|
|
66
66
|
@prop export let placement: $$Props['placement'] = 'bottom';
|
|
67
67
|
@prop export let color: $$Props['color'] = 'dropdown';
|
|
68
|
-
@prop export let shadow: $$Props['shadow
|
|
69
|
-
@prop export let rounded: $$Props['rounded
|
|
68
|
+
@prop export let shadow: $$Props['shadow'] = true;
|
|
69
|
+
@prop export let rounded: $$Props['rounded'] = true;
|
|
70
70
|
-->
|
|
@@ -5,7 +5,7 @@ export type DropdownType = {
|
|
|
5
5
|
import type { Placement } from '@floating-ui/dom';
|
|
6
6
|
import type { FrameColor } from '../utils/Frame.svelte';
|
|
7
7
|
declare const __propDef: {
|
|
8
|
-
props: import("svelte/elements").
|
|
8
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
9
9
|
tag?: string;
|
|
10
10
|
color?: FrameColor;
|
|
11
11
|
rounded?: boolean;
|
|
@@ -79,8 +79,8 @@ export type DropdownSlots = typeof __propDef.slots;
|
|
|
79
79
|
* @prop export let trigger: $$Props['trigger'] = 'click';
|
|
80
80
|
* @prop export let placement: $$Props['placement'] = 'bottom';
|
|
81
81
|
* @prop export let color: $$Props['color'] = 'dropdown';
|
|
82
|
-
* @prop export let shadow: $$Props['shadow
|
|
83
|
-
* @prop export let rounded: $$Props['rounded
|
|
82
|
+
* @prop export let shadow: $$Props['shadow'] = true;
|
|
83
|
+
* @prop export let rounded: $$Props['rounded'] = true;
|
|
84
84
|
*/
|
|
85
85
|
export default class Dropdown extends SvelteComponentTyped<DropdownProps, DropdownEvents, DropdownSlots> {
|
|
86
86
|
}
|
|
@@ -40,25 +40,7 @@ $: buttonClass = twMerge(inline ? "inline-flex" : "flex", $$props.class);
|
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
42
|
<Button {checked} {pill} {outline} {size} {color} {shadow} class={buttonClass}>
|
|
43
|
-
<input
|
|
44
|
-
use:init={group}
|
|
45
|
-
type="checkbox"
|
|
46
|
-
bind:checked
|
|
47
|
-
value={value !== undefined ? value : 'on'}
|
|
48
|
-
{...$$restProps}
|
|
49
|
-
class="sr-only"
|
|
50
|
-
on:keyup
|
|
51
|
-
on:keydown
|
|
52
|
-
on:keypress
|
|
53
|
-
on:focus
|
|
54
|
-
on:blur
|
|
55
|
-
on:click
|
|
56
|
-
on:mouseover
|
|
57
|
-
on:mouseenter
|
|
58
|
-
on:mouseleave
|
|
59
|
-
on:paste
|
|
60
|
-
on:change={onChange}
|
|
61
|
-
on:change />
|
|
43
|
+
<input use:init={group} type="checkbox" bind:checked value={value !== undefined ? value : 'on'} {...$$restProps} class="sr-only" on:keyup on:keydown on:keypress on:focus on:blur on:click on:mouseover on:mouseenter on:mouseleave on:paste on:change={onChange} on:change />
|
|
62
44
|
<slot />
|
|
63
45
|
</Button>
|
|
64
46
|
|
|
@@ -74,5 +56,5 @@ $: buttonClass = twMerge(inline ? "inline-flex" : "flex", $$props.class);
|
|
|
74
56
|
@prop export let outline: $$Props['outline'] = false;
|
|
75
57
|
@prop export let size: $$Props['size'] = undefined;
|
|
76
58
|
@prop export let color: $$Props['color'] = undefined;
|
|
77
|
-
@prop export let shadow: $$Props['shadow
|
|
59
|
+
@prop export let shadow: $$Props['shadow'] = false;
|
|
78
60
|
-->
|
|
@@ -66,7 +66,7 @@ export type CheckboxButtonSlots = typeof __propDef.slots;
|
|
|
66
66
|
* @prop export let outline: $$Props['outline'] = false;
|
|
67
67
|
* @prop export let size: $$Props['size'] = undefined;
|
|
68
68
|
* @prop export let color: $$Props['color'] = undefined;
|
|
69
|
-
* @prop export let shadow: $$Props['shadow
|
|
69
|
+
* @prop export let shadow: $$Props['shadow'] = false;
|
|
70
70
|
*/
|
|
71
71
|
export default class CheckboxButton extends SvelteComponentTyped<CheckboxButtonProps, CheckboxButtonEvents, CheckboxButtonSlots> {
|
|
72
72
|
}
|
package/dist/forms/Radio.svelte
CHANGED
|
@@ -11,7 +11,7 @@ const colorClasses = {
|
|
|
11
11
|
blue: "text-blue-600 focus:ring-blue-500 dark:focus:ring-blue-600"
|
|
12
12
|
};
|
|
13
13
|
export const labelClass = (inline, extraClass) => twMerge(inline ? "inline-flex" : "flex", "items-center", extraClass);
|
|
14
|
-
export const inputClass = (custom, color, rounded, tinted, spacing, extraClass) => twMerge("w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2", spacing, tinted ? "dark:bg-gray-600 dark:border-gray-500" : "dark:bg-gray-700 dark:border-gray-600", custom && "sr-only peer", rounded && "rounded
|
|
14
|
+
export const inputClass = (custom, color, rounded, tinted, spacing, extraClass) => twMerge("w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2", spacing, tinted ? "dark:bg-gray-600 dark:border-gray-500" : "dark:bg-gray-700 dark:border-gray-600", custom && "sr-only peer", rounded && "rounded", colorClasses[color], extraClass);
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<script>import { getContext } from "svelte";
|
|
@@ -30,7 +30,7 @@ $: if (checked && group === void 0) {
|
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<Label class={labelClass(inline, $$props.class)} show={$$slots.default}>
|
|
33
|
-
<input type="radio" {...$$restProps} bind:group
|
|
33
|
+
<input type="radio" {...$$restProps} bind:group on:blur on:change on:click on:focus on:keydown on:keypress on:keyup on:mouseenter on:mouseleave on:mouseover on:paste {value} class={inputClass(custom, color, false, background, spacing, $$slots.default || $$props.class)} />
|
|
34
34
|
<slot />
|
|
35
35
|
</Label>
|
|
36
36
|
|
|
@@ -13,23 +13,7 @@ $: buttonClass = twMerge(inline ? "inline-flex" : "flex", $$props.class);
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<Button tag="label" checked={value === group} {pill} {outline} {size} {color} {shadow} class={buttonClass}>
|
|
16
|
-
<input
|
|
17
|
-
type="radio"
|
|
18
|
-
bind:group
|
|
19
|
-
{value}
|
|
20
|
-
{...$$restProps}
|
|
21
|
-
class="sr-only"
|
|
22
|
-
on:keyup
|
|
23
|
-
on:keydown
|
|
24
|
-
on:keypress
|
|
25
|
-
on:focus
|
|
26
|
-
on:blur
|
|
27
|
-
on:click
|
|
28
|
-
on:mouseover
|
|
29
|
-
on:mouseenter
|
|
30
|
-
on:mouseleave
|
|
31
|
-
on:paste
|
|
32
|
-
on:change />
|
|
16
|
+
<input type="radio" bind:group {value} {...$$restProps} class="sr-only" on:keyup on:keydown on:keypress on:focus on:blur on:click on:mouseover on:mouseenter on:mouseleave on:paste on:change />
|
|
33
17
|
<slot />
|
|
34
18
|
</Button>
|
|
35
19
|
|
|
@@ -44,5 +28,5 @@ $: buttonClass = twMerge(inline ? "inline-flex" : "flex", $$props.class);
|
|
|
44
28
|
@prop export let outline: $$Props['outline'] = false;
|
|
45
29
|
@prop export let size: $$Props['size'] = undefined;
|
|
46
30
|
@prop export let color: $$Props['color'] = undefined;
|
|
47
|
-
@prop export let shadow: $$Props['shadow
|
|
31
|
+
@prop export let shadow: $$Props['shadow'] = false;
|
|
48
32
|
-->
|
|
@@ -44,7 +44,7 @@ export type RadioButtonSlots = typeof __propDef.slots;
|
|
|
44
44
|
* @prop export let outline: $$Props['outline'] = false;
|
|
45
45
|
* @prop export let size: $$Props['size'] = undefined;
|
|
46
46
|
* @prop export let color: $$Props['color'] = undefined;
|
|
47
|
-
* @prop export let shadow: $$Props['shadow
|
|
47
|
+
* @prop export let shadow: $$Props['shadow'] = false;
|
|
48
48
|
*/
|
|
49
49
|
export default class RadioButton extends SvelteComponentTyped<RadioButtonProps, RadioButtonEvents, RadioButtonSlots> {
|
|
50
50
|
}
|
|
@@ -54,17 +54,17 @@ const offsets = {
|
|
|
54
54
|
"bottom-right": "translate-x-1/3 rtl:-translate-x-1/3 translate-y-1/3"
|
|
55
55
|
};
|
|
56
56
|
let dotClass;
|
|
57
|
-
$: dotClass = twMerge("shrink-0", rounded ? "rounded
|
|
57
|
+
$: dotClass = twMerge("shrink-0", rounded ? "rounded" : "rounded-full", border && "border-2 border-white dark:border-gray-800", sizes[size], colors[color], $$slots.default && "inline-flex items-center justify-center", placement && "absolute " + placements[placement], placement && offset && offsets[placement], $$props.class);
|
|
58
58
|
</script>
|
|
59
59
|
|
|
60
|
-
<div {...$$restProps} class={dotClass}
|
|
60
|
+
<div {...$$restProps} class={dotClass}><slot /></div>
|
|
61
61
|
|
|
62
62
|
<!--
|
|
63
63
|
@component
|
|
64
64
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
65
|
## Props
|
|
66
66
|
@prop export let color: NonNullable<$$Props['color']> = 'gray';
|
|
67
|
-
@prop export let rounded: $$Props['rounded
|
|
67
|
+
@prop export let rounded: $$Props['rounded'] = false;
|
|
68
68
|
@prop export let size: NonNullable<$$Props['size']> = 'md';
|
|
69
69
|
@prop export let border: $$Props['border'] = false;
|
|
70
70
|
@prop export let placement: $$Props['placement'] = undefined;
|
|
@@ -24,7 +24,7 @@ export type IndicatorSlots = typeof __propDef.slots;
|
|
|
24
24
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
25
25
|
* ## Props
|
|
26
26
|
* @prop export let color: NonNullable<$$Props['color']> = 'gray';
|
|
27
|
-
* @prop export let rounded: $$Props['rounded
|
|
27
|
+
* @prop export let rounded: $$Props['rounded'] = false;
|
|
28
28
|
* @prop export let size: NonNullable<$$Props['size']> = 'md';
|
|
29
29
|
* @prop export let border: $$Props['border'] = false;
|
|
30
30
|
* @prop export let placement: $$Props['placement'] = undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { ListGroupItemType } from '../types';
|
|
3
3
|
declare class __sveltets_Render<T extends ListGroupItemType | string> {
|
|
4
|
-
props(): import("svelte/elements").
|
|
4
|
+
props(): import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
5
5
|
tag?: string;
|
|
6
6
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
7
7
|
rounded?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { LinkType } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props: import("svelte/elements").
|
|
4
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
5
5
|
tag?: string;
|
|
6
6
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
7
7
|
rounded?: boolean;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Dismissable, SizeType } from '../types';
|
|
3
3
|
import type { ModalPlacementType } from '../types';
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props: import("svelte/elements").
|
|
5
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
6
6
|
tag?: string;
|
|
7
7
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
8
8
|
rounded?: boolean;
|
|
@@ -6,12 +6,13 @@ import Menu from "./Menu.svelte";
|
|
|
6
6
|
export let menuClass = "h-6 w-6 shrink-0";
|
|
7
7
|
export let onClick = void 0;
|
|
8
8
|
export let classMenu = "";
|
|
9
|
+
export let title = "Open main menu";
|
|
9
10
|
let btnClass = "ms-3 md:hidden";
|
|
10
11
|
let hiddenStore = getContext("navHidden") ?? writable(true);
|
|
11
12
|
const toggle = (ev) => hiddenStore.update((h) => !h);
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
|
-
<ToolbarButton name=
|
|
15
|
+
<ToolbarButton name={title} on:click={onClick || toggle} {...$$restProps} class={twMerge(btnClass, $$props.class)}>
|
|
15
16
|
<Menu class={twMerge(menuClass, classMenu)} />
|
|
16
17
|
</ToolbarButton>
|
|
17
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import NavContainer from './NavContainer.svelte';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props: import("svelte/elements").
|
|
4
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
5
5
|
tag?: string;
|
|
6
6
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
7
7
|
rounded?: boolean;
|
|
@@ -11,7 +11,7 @@ let defaultClass;
|
|
|
11
11
|
$: defaultClass = twMerge(
|
|
12
12
|
"flex items-center font-medium",
|
|
13
13
|
large ? "h-10 px-4 text-base" : "h-8 px-3 text-sm",
|
|
14
|
-
group ? "" : table ? "rounded
|
|
14
|
+
group ? "" : table ? "rounded" : "rounded-lg",
|
|
15
15
|
// table || 'border border-gray-300 dark:border-gray-700 dark:bg-gray-800',
|
|
16
16
|
table ? "" : "border",
|
|
17
17
|
active ? activeClass : normalClass,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: import("svelte/elements").
|
|
3
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
4
4
|
tag?: string;
|
|
5
5
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
6
6
|
rounded?: boolean;
|
|
@@ -22,7 +22,6 @@ let divClass;
|
|
|
22
22
|
$: divClass = twMerge(defaultClass, "group", $$props.class);
|
|
23
23
|
let poperClass;
|
|
24
24
|
$: poperClass = twMerge(popperDefaultClass, ["top", "bottom"].includes(placement.split("-")[0]) && "flex-col");
|
|
25
|
-
$: console.log(typeof $$restProps, Object.keys($$restProps));
|
|
26
25
|
</script>
|
|
27
26
|
|
|
28
27
|
<div class={divClass}>
|
package/dist/table/Table.svelte
CHANGED
|
@@ -61,7 +61,7 @@ setContext("sorter", writable(null));
|
|
|
61
61
|
</svg>
|
|
62
62
|
</slot>
|
|
63
63
|
</div>
|
|
64
|
-
<input bind:value={searchTerm} type="
|
|
64
|
+
<input bind:value={searchTerm} type="search" id="table-search" class={inputCls} {placeholder} />
|
|
65
65
|
</div>
|
|
66
66
|
<slot name="header" />
|
|
67
67
|
</div>
|
|
@@ -80,7 +80,7 @@ setContext("sorter", writable(null));
|
|
|
80
80
|
@prop export let striped: $$Props['striped'] = false;
|
|
81
81
|
@prop export let hoverable: $$Props['hoverable'] = false;
|
|
82
82
|
@prop export let noborder: $$Props['noborder'] = false;
|
|
83
|
-
@prop export let shadow: $$Props['shadow
|
|
83
|
+
@prop export let shadow: $$Props['shadow'] = false;
|
|
84
84
|
@prop export let color: NonNullable<$$Props['color']> = 'default';
|
|
85
85
|
@prop export let customeColor: $$Props['customeColor'] = '';
|
|
86
86
|
@prop export let items: $$Props['items'] = [];
|
|
@@ -41,7 +41,7 @@ export type TableSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
|
|
|
41
41
|
* @prop export let striped: $$Props['striped'] = false;
|
|
42
42
|
* @prop export let hoverable: $$Props['hoverable'] = false;
|
|
43
43
|
* @prop export let noborder: $$Props['noborder'] = false;
|
|
44
|
-
* @prop export let shadow: $$Props['shadow
|
|
44
|
+
* @prop export let shadow: $$Props['shadow'] = false;
|
|
45
45
|
* @prop export let color: NonNullable<$$Props['color']> = 'default';
|
|
46
46
|
* @prop export let customeColor: $$Props['customeColor'] = '';
|
|
47
47
|
* @prop export let items: $$Props['items'] = [];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { ActivityType } from '../types';
|
|
3
|
+
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
3
4
|
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
+
props: HTMLLiAttributes & {
|
|
5
6
|
activities: ActivityType[];
|
|
6
7
|
liClass?: string;
|
|
7
8
|
spanClass?: string;
|
|
@@ -30,20 +30,20 @@ let spanCls = twMerge(spanClass, classSpan);
|
|
|
30
30
|
<div class="text-sm font-normal">{comment}</div>
|
|
31
31
|
{/if}
|
|
32
32
|
{#if isPrivacy}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
<span class={spanCls}>
|
|
34
|
+
{#if isPrivate}
|
|
35
|
+
<svg class="me-1 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
36
|
+
<path fill-rule="evenodd" d="M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z" clip-rule="evenodd" />
|
|
37
|
+
<path d="M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z" />
|
|
38
|
+
</svg>
|
|
39
|
+
Private
|
|
40
|
+
{:else}
|
|
41
|
+
<svg class="me-1 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
42
|
+
<path fill-rule="evenodd" d="M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z" clip-rule="evenodd" />
|
|
43
|
+
</svg>
|
|
44
|
+
Public
|
|
45
|
+
{/if}
|
|
46
|
+
</span>
|
|
47
47
|
{/if}
|
|
48
48
|
</div>
|
|
49
49
|
</a>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { GroupTimelineType } from '../types';
|
|
3
|
+
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
3
4
|
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
+
props: HTMLLiAttributes & {
|
|
5
6
|
timelines: GroupTimelineType[];
|
|
6
7
|
aClass?: string;
|
|
7
8
|
imgClass?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: import("svelte/elements").
|
|
3
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
4
4
|
tag?: string;
|
|
5
5
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
6
6
|
rounded?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: import("svelte/elements").
|
|
3
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
4
4
|
tag?: string;
|
|
5
5
|
color?: import("../utils/Frame.svelte").FrameColor;
|
|
6
6
|
rounded?: boolean;
|
|
@@ -21,10 +21,10 @@ declare const bgColors: {
|
|
|
21
21
|
none: string;
|
|
22
22
|
};
|
|
23
23
|
import type { Action } from 'svelte/action';
|
|
24
|
-
import type {
|
|
24
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
25
25
|
import { type TransitionConfig } from 'svelte/transition';
|
|
26
26
|
declare const __propDef: {
|
|
27
|
-
props:
|
|
27
|
+
props: HTMLAttributes<HTMLElement> & {
|
|
28
28
|
tag?: string;
|
|
29
29
|
color?: FrameColor;
|
|
30
30
|
rounded?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { Placement } from '@floating-ui/dom';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props: import("svelte/elements").
|
|
4
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
5
5
|
tag?: string;
|
|
6
6
|
color?: import("./Frame.svelte").FrameColor;
|
|
7
7
|
rounded?: boolean;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Dismissable } from '../types';
|
|
3
3
|
import { type TransitionConfig } from 'svelte/transition';
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props: import("svelte/elements").
|
|
5
|
+
props: import("svelte/elements").HTMLAttributes<HTMLElement> & {
|
|
6
6
|
tag?: string;
|
|
7
7
|
color?: import("./Frame.svelte").FrameColor;
|
|
8
8
|
rounded?: boolean;
|