flowbite-svelte 0.44.17 → 0.44.18
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/alert/Alert.svelte +1 -1
- package/dist/carousel/Carousel.d.ts +6 -0
- package/dist/carousel/Carousel.d.ts.map +1 -0
- package/dist/carousel/Carousel.js +7 -0
- package/dist/carousel/Carousel.svelte +65 -20
- package/dist/carousel/Carousel.svelte.d.ts +10 -3
- package/dist/carousel/Carousel.svelte.d.ts.map +1 -1
- package/dist/carousel/Controls.svelte +28 -7
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte.d.ts.map +1 -1
- package/dist/carousel/Slide.svelte +29 -9
- package/dist/carousel/Slide.svelte.d.ts +2 -2
- package/dist/carousel/Slide.svelte.d.ts.map +1 -1
- package/dist/carousel/Thumbnails.svelte +19 -3
- package/dist/carousel/Thumbnails.svelte.d.ts +5 -0
- package/dist/carousel/Thumbnails.svelte.d.ts.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/navbar/NavContainer.svelte +14 -0
- package/dist/navbar/NavContainer.svelte.d.ts +25 -0
- package/dist/navbar/NavContainer.svelte.d.ts.map +1 -0
- package/dist/navbar/NavHamburger.svelte +7 -4
- package/dist/navbar/NavHamburger.svelte.d.ts +0 -4
- package/dist/navbar/NavHamburger.svelte.d.ts.map +1 -1
- package/dist/navbar/NavUl.svelte +11 -8
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte.d.ts.map +1 -1
- package/dist/navbar/Navbar.svelte +11 -13
- package/dist/navbar/Navbar.svelte.d.ts +2 -5
- package/dist/navbar/Navbar.svelte.d.ts.map +1 -1
- package/dist/timeline/TimelineItem.svelte +17 -59
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte.d.ts.map +1 -1
- package/dist/types.d.ts +0 -19
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -18
- package/dist/timeline/TimelineHorizontal.svelte +0 -15
- package/dist/timeline/TimelineHorizontal.svelte.d.ts +0 -25
- package/dist/timeline/TimelineHorizontal.svelte.d.ts.map +0 -1
- package/dist/timeline/TimelineItemHorizontal.svelte +0 -71
- package/dist/timeline/TimelineItemHorizontal.svelte.d.ts +0 -46
- package/dist/timeline/TimelineItemHorizontal.svelte.d.ts.map +0 -1
- package/dist/timeline/TimelineItemVertical.svelte +0 -42
- package/dist/timeline/TimelineItemVertical.svelte.d.ts +0 -36
- package/dist/timeline/TimelineItemVertical.svelte.d.ts.map +0 -1
package/dist/alert/Alert.svelte
CHANGED
|
@@ -37,7 +37,7 @@ $: {
|
|
|
37
37
|
|
|
38
38
|
{#if dismissable}
|
|
39
39
|
<slot name="close-button" {close}>
|
|
40
|
-
<CloseButton class="-
|
|
40
|
+
<CloseButton class="ml-auto -mr-1.5 -my-1.5 dark:hover:bg-gray-700" color={$$restProps.color} on:click={close} on:click on:change on:keydown on:keyup on:focus on:blur on:mouseenter on:mouseleave />
|
|
41
41
|
</slot>
|
|
42
42
|
{/if}
|
|
43
43
|
</Frame>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Carousel.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;qBAKR,IAAI;mBACN,MAAM;;aAStB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const canChangeSlide = ({ lastSlideChange, slideDuration, slideDurationRatio = 1 }) => {
|
|
2
|
+
if (lastSlideChange && new Date().getTime() - lastSlideChange.getTime() < slideDuration * slideDurationRatio) {
|
|
3
|
+
console.warn("Can't change slide yet, too soon");
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
return true;
|
|
7
|
+
};
|
|
@@ -2,32 +2,63 @@
|
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
4
|
<script>import { createEventDispatcher, onMount, setContext } from 'svelte';
|
|
5
|
-
import { quintOut } from 'svelte/easing';
|
|
6
5
|
import { writable } from 'svelte/store';
|
|
7
|
-
import { fade } from 'svelte/transition';
|
|
8
6
|
import { twMerge } from 'tailwind-merge';
|
|
9
7
|
import Controls from './Controls.svelte';
|
|
10
8
|
import Indicators from './Indicators.svelte';
|
|
11
9
|
import Slide from './Slide.svelte';
|
|
10
|
+
import { canChangeSlide } from './Carousel';
|
|
11
|
+
const SLIDE_DURATION_RATIO = 0.25; // TODO: Expose one day?
|
|
12
12
|
export let images;
|
|
13
13
|
export let index = 0;
|
|
14
|
-
export let
|
|
14
|
+
export let slideDuration = 1000;
|
|
15
|
+
export let transition;
|
|
15
16
|
export let duration = 0;
|
|
16
17
|
export let ariaLabel = 'Draggable Carousel';
|
|
17
18
|
// Carousel
|
|
18
|
-
let divClass = 'overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96';
|
|
19
|
+
let divClass = 'grid overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96';
|
|
20
|
+
export let imgClass = '';
|
|
19
21
|
const dispatch = createEventDispatcher();
|
|
20
|
-
const { set, subscribe, update } = writable({ images, index });
|
|
21
|
-
const state = { set: (
|
|
22
|
+
const { set, subscribe, update } = writable({ images, index, forward: true, slideDuration, lastSlideChange: new Date() });
|
|
23
|
+
const state = { set: (_state) => set({ index: _state.index, images: _state.images, lastSlideChange: new Date(), slideDuration, forward }), subscribe, update };
|
|
24
|
+
let forward = true;
|
|
22
25
|
setContext('state', state);
|
|
23
|
-
subscribe((
|
|
24
|
-
index =
|
|
26
|
+
subscribe((_state) => {
|
|
27
|
+
index = _state.index;
|
|
28
|
+
forward = _state.forward;
|
|
25
29
|
dispatch('change', images[index]);
|
|
26
30
|
});
|
|
27
|
-
onMount(() =>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
onMount(() => {
|
|
32
|
+
dispatch('change', images[index]);
|
|
33
|
+
});
|
|
34
|
+
let prevIndex = index;
|
|
35
|
+
$: {
|
|
36
|
+
if (!prevIndex || prevIndex < index) {
|
|
37
|
+
update((_state) => ({ ..._state, forward: true, index }));
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
update((_state) => ({ ..._state, forward: false, index }));
|
|
41
|
+
}
|
|
42
|
+
prevIndex = index;
|
|
43
|
+
}
|
|
44
|
+
const nextSlide = () => {
|
|
45
|
+
update((_state) => {
|
|
46
|
+
if (!canChangeSlide({ lastSlideChange: _state.lastSlideChange, slideDuration, slideDurationRatio: SLIDE_DURATION_RATIO }))
|
|
47
|
+
return _state;
|
|
48
|
+
_state.index = _state.index >= images.length - 1 ? 0 : _state.index + 1;
|
|
49
|
+
_state.lastSlideChange = new Date();
|
|
50
|
+
return { ..._state };
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const prevSlide = () => {
|
|
54
|
+
update((_state) => {
|
|
55
|
+
if (!canChangeSlide({ lastSlideChange: _state.lastSlideChange, slideDuration, slideDurationRatio: SLIDE_DURATION_RATIO }))
|
|
56
|
+
return _state;
|
|
57
|
+
_state.index = _state.index <= 0 ? images.length - 1 : _state.index - 1;
|
|
58
|
+
_state.lastSlideChange = new Date();
|
|
59
|
+
return { ..._state };
|
|
60
|
+
});
|
|
61
|
+
};
|
|
31
62
|
const loop = (node, duration) => {
|
|
32
63
|
carouselDiv = node; // used by DragStart
|
|
33
64
|
// loop timer
|
|
@@ -58,7 +89,7 @@ const getPositionFromEvent = (evt) => {
|
|
|
58
89
|
};
|
|
59
90
|
const onDragStart = (evt) => {
|
|
60
91
|
touchEvent = evt;
|
|
61
|
-
evt.preventDefault();
|
|
92
|
+
evt.cancelable && evt.preventDefault();
|
|
62
93
|
const start = getPositionFromEvent(evt);
|
|
63
94
|
const width = carouselDiv.getBoundingClientRect().width;
|
|
64
95
|
if (start === undefined || width === undefined)
|
|
@@ -104,10 +135,13 @@ $: onDragStop =
|
|
|
104
135
|
else if (percentOffset < -DRAG_MIN_PERCENT)
|
|
105
136
|
nextSlide();
|
|
106
137
|
else {
|
|
107
|
-
//
|
|
108
|
-
touchEvent?.
|
|
109
|
-
|
|
110
|
-
|
|
138
|
+
// Only issue click event for touches
|
|
139
|
+
if (touchEvent?.constructor.name === 'TouchEvent') {
|
|
140
|
+
// The gesture is a tap not drag, so manually issue a click event to trigger tap click gestures lost via preventDefault
|
|
141
|
+
touchEvent?.target?.dispatchEvent(new Event('click', {
|
|
142
|
+
bubbles: true
|
|
143
|
+
}));
|
|
144
|
+
}
|
|
111
145
|
}
|
|
112
146
|
}
|
|
113
147
|
percentOffset = 0;
|
|
@@ -116,12 +150,21 @@ $: onDragStop =
|
|
|
116
150
|
};
|
|
117
151
|
</script>
|
|
118
152
|
|
|
153
|
+
<!-- Preload all Carousel images for improved responsivity -->
|
|
154
|
+
<svelte:head>
|
|
155
|
+
{#if images.length > 0}
|
|
156
|
+
{#each images as image}
|
|
157
|
+
<link rel="preload" href={image.src} as="image" />
|
|
158
|
+
{/each}
|
|
159
|
+
{/if}
|
|
160
|
+
</svelte:head>
|
|
161
|
+
|
|
119
162
|
<!-- The move listeners go here, so things keep working if the touch strays out of the element. -->
|
|
120
163
|
<svelte:document on:mousemove={onDragMove} on:mouseup={onDragStop} on:touchmove={onDragMove} on:touchend={onDragStop} />
|
|
121
|
-
<div bind:this={carouselDiv} class="relative" on:mousedown={onDragStart} on:touchstart|
|
|
164
|
+
<div bind:this={carouselDiv} class="relative" on:mousedown|nonpassive={onDragStart} on:touchstart|nonpassive={onDragStart} on:mousemove={onDragMove} on:mouseup={onDragStop} on:touchmove={onDragMove} on:touchend={onDragStop} role="button" aria-label={ariaLabel} tabindex="0">
|
|
122
165
|
<div {...$$restProps} class={twMerge(divClass, activeDragGesture === undefined ? 'transition-transform' : '', $$props.class)} use:loop={duration}>
|
|
123
166
|
<slot name="slide" {Slide} {index}>
|
|
124
|
-
<Slide image={images[index]} {transition} />
|
|
167
|
+
<Slide image={images[index]} class={imgClass} {transition} />
|
|
125
168
|
</slot>
|
|
126
169
|
</div>
|
|
127
170
|
<slot {index} {Controls} {Indicators} />
|
|
@@ -133,7 +176,9 @@ $: onDragStop =
|
|
|
133
176
|
## Props
|
|
134
177
|
@prop export let images: HTMLImgAttributes[];
|
|
135
178
|
@prop export let index: number = 0;
|
|
136
|
-
@prop export let
|
|
179
|
+
@prop export let slideDuration: number = 1000;
|
|
180
|
+
@prop export let transition: TransitionFunc | null;
|
|
137
181
|
@prop export let duration: number = 0;
|
|
138
182
|
@prop export let ariaLabel: string = 'Draggable Carousel';
|
|
183
|
+
@prop export let imgClass: string = '';
|
|
139
184
|
-->
|
|
@@ -2,9 +2,12 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
export type State = {
|
|
3
3
|
images: HTMLImgAttributes[];
|
|
4
4
|
index: number;
|
|
5
|
+
lastSlideChange: Date;
|
|
6
|
+
slideDuration: number;
|
|
7
|
+
forward: boolean;
|
|
5
8
|
};
|
|
6
9
|
import type { HTMLImgAttributes } from 'svelte/elements';
|
|
7
|
-
import {
|
|
10
|
+
import type { TransitionConfig } from 'svelte/transition';
|
|
8
11
|
import Controls from './Controls.svelte';
|
|
9
12
|
import Indicators from './Indicators.svelte';
|
|
10
13
|
import Slide from './Slide.svelte';
|
|
@@ -13,9 +16,11 @@ declare const __propDef: {
|
|
|
13
16
|
[x: string]: any;
|
|
14
17
|
images: HTMLImgAttributes[];
|
|
15
18
|
index?: number | undefined;
|
|
16
|
-
|
|
19
|
+
slideDuration?: number | undefined;
|
|
20
|
+
transition: ((node: HTMLElement, params: any) => TransitionConfig) | null;
|
|
17
21
|
duration?: number | undefined;
|
|
18
22
|
ariaLabel?: string | undefined;
|
|
23
|
+
imgClass?: string | undefined;
|
|
19
24
|
};
|
|
20
25
|
events: {
|
|
21
26
|
change: CustomEvent<any>;
|
|
@@ -42,9 +47,11 @@ export type CarouselSlots = typeof __propDef.slots;
|
|
|
42
47
|
* ## Props
|
|
43
48
|
* @prop export let images: HTMLImgAttributes[];
|
|
44
49
|
* @prop export let index: number = 0;
|
|
45
|
-
* @prop export let
|
|
50
|
+
* @prop export let slideDuration: number = 1000;
|
|
51
|
+
* @prop export let transition: TransitionFunc | null;
|
|
46
52
|
* @prop export let duration: number = 0;
|
|
47
53
|
* @prop export let ariaLabel: string = 'Draggable Carousel';
|
|
54
|
+
* @prop export let imgClass: string = '';
|
|
48
55
|
*/
|
|
49
56
|
export default class Carousel extends SvelteComponent<CarouselProps, CarouselEvents, CarouselSlots> {
|
|
50
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Carousel.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Carousel.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Carousel.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAIJ,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,KAAK,MAAM,gBAAgB,CAAC;AA+MnC,QAAA,MAAM,SAAS;;;gBADsK,iBAAiB,EAAE;;;4BAhMzK,WAAW,UAAU,GAAG,KAAK,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAiME,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CAClG"}
|
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
<script>import { getContext } from 'svelte';
|
|
2
2
|
import ControlButton from './ControlButton.svelte';
|
|
3
|
-
import {
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import { canChangeSlide } from './Carousel';
|
|
4
5
|
const state = getContext('state');
|
|
6
|
+
const { update } = state;
|
|
5
7
|
function changeSlide(forward) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if (!canChangeSlide({
|
|
9
|
+
lastSlideChange: $state.lastSlideChange,
|
|
10
|
+
slideDuration: $state.slideDuration,
|
|
11
|
+
slideDurationRatio: 0.75
|
|
12
|
+
})) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (forward) {
|
|
16
|
+
update((_state) => {
|
|
17
|
+
_state.forward = true;
|
|
18
|
+
_state.index = _state.index >= _state.images.length - 1 ? 0 : _state.index + 1;
|
|
19
|
+
_state.lastSlideChange = new Date();
|
|
20
|
+
return { ..._state };
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
update((_state) => {
|
|
25
|
+
_state.forward = false;
|
|
26
|
+
_state.index = _state.index <= 0 ? _state.images.length - 1 : _state.index - 1;
|
|
27
|
+
_state.lastSlideChange = new Date();
|
|
28
|
+
return { ..._state };
|
|
29
|
+
});
|
|
30
|
+
}
|
|
10
31
|
}
|
|
11
32
|
</script>
|
|
12
33
|
|
|
13
34
|
<!-- Slider controls -->
|
|
14
35
|
<slot {ControlButton} {changeSlide}>
|
|
15
|
-
<ControlButton name="Previous" forward={false} on:click={changeSlide(false)} class={
|
|
16
|
-
<ControlButton name="Next" forward={true} on:click={changeSlide(true)} class={
|
|
36
|
+
<ControlButton name="Previous" forward={false} on:click={() => changeSlide(false)} class={twMerge($$props.class)} />
|
|
37
|
+
<ControlButton name="Next" forward={true} on:click={() => changeSlide(true)} class={twMerge($$props.class)} />
|
|
17
38
|
</slot>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Controls.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Controls.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,aAAa,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"Controls.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Controls.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAoDnD,QAAA,MAAM,SAAS;;;;;;;;;;mCArCiB,OAAO;;;CAqCuC,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CAClG"}
|
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { fade } from 'svelte/transition';
|
|
1
|
+
<script>import { fly } from 'svelte/transition';
|
|
3
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
import { getContext } from 'svelte';
|
|
4
|
+
const state = getContext('state');
|
|
4
5
|
export let image;
|
|
5
|
-
export let transition =
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export let transition = null; // Optional transition function, overrides default slide transition
|
|
7
|
+
$: transitionSlideIn = {
|
|
8
|
+
x: $state.forward ? '100%' : '-100%',
|
|
9
|
+
opacity: 1,
|
|
10
|
+
width: '100%',
|
|
11
|
+
height: '100%',
|
|
12
|
+
duration: $state.slideDuration
|
|
13
|
+
};
|
|
14
|
+
$: transitionSlideOut = {
|
|
15
|
+
x: $state.forward ? '-100%' : '100%',
|
|
16
|
+
opacity: 0.9,
|
|
17
|
+
width: '100%',
|
|
18
|
+
height: '100%',
|
|
19
|
+
duration: $state.slideDuration
|
|
20
|
+
};
|
|
21
|
+
$: imgClass = twMerge('absolute block !w-full h-full object-cover', $$props.class);
|
|
8
22
|
</script>
|
|
9
23
|
|
|
10
|
-
{#
|
|
11
|
-
|
|
12
|
-
{
|
|
24
|
+
{#if transition}
|
|
25
|
+
{#key image}
|
|
26
|
+
<img alt="..." {...image} transition:transition={{}} {...$$restProps} class={imgClass} />
|
|
27
|
+
{/key}
|
|
28
|
+
{:else}
|
|
29
|
+
{#key image}
|
|
30
|
+
<img alt="..." {...image} {...$$restProps} out:fly={transitionSlideOut} in:fly={transitionSlideIn} class={imgClass} />
|
|
31
|
+
{/key}
|
|
32
|
+
{/if}
|
|
13
33
|
|
|
14
34
|
<!--
|
|
15
35
|
@component
|
|
16
36
|
[Go to docs](https://flowbite-svelte.com/)
|
|
17
37
|
## Props
|
|
18
38
|
@prop export let image: HTMLImgAttributes;
|
|
19
|
-
@prop export let transition: TransitionFunc
|
|
39
|
+
@prop export let transition: TransitionFunc | null = null;
|
|
20
40
|
-->
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
props: {
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
image: HTMLImgAttributes;
|
|
8
|
-
transition?: ((node: HTMLElement, params: any) => TransitionConfig) | undefined;
|
|
8
|
+
transition?: ((node: HTMLElement, params: any) => TransitionConfig) | null | undefined;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -19,7 +19,7 @@ export type SlideSlots = typeof __propDef.slots;
|
|
|
19
19
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
20
20
|
* ## Props
|
|
21
21
|
* @prop export let image: HTMLImgAttributes;
|
|
22
|
-
* @prop export let transition: TransitionFunc
|
|
22
|
+
* @prop export let transition: TransitionFunc | null = null;
|
|
23
23
|
*/
|
|
24
24
|
export default class Slide extends SvelteComponent<SlideProps, SlideEvents, SlideSlots> {
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Slide.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;
|
|
1
|
+
{"version":3,"file":"Slide.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Slide.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAO,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAsD/D,QAAA,MAAM,SAAS;;;eADoD,iBAAiB;6BArCrD,WAAW,UAAU,GAAG,KAAK,gBAAgB;;;;;;CAsCE,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CACtF"}
|
|
@@ -3,6 +3,20 @@ import Thumbnail from './Thumbnail.svelte';
|
|
|
3
3
|
export let images = [];
|
|
4
4
|
export let index = 0;
|
|
5
5
|
export let ariaLabel = 'Click to view image';
|
|
6
|
+
export let imgClass = '';
|
|
7
|
+
export let throttleDelay = 650; // ms
|
|
8
|
+
let lastClickedAt = new Date();
|
|
9
|
+
const btnClick = (idx) => {
|
|
10
|
+
if (new Date().getTime() - lastClickedAt.getTime() < throttleDelay) {
|
|
11
|
+
console.warn('Thumbnail action throttled');
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (idx === index) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
index = idx;
|
|
18
|
+
lastClickedAt = new Date();
|
|
19
|
+
};
|
|
6
20
|
$: index = (index + images.length) % images.length;
|
|
7
21
|
</script>
|
|
8
22
|
|
|
@@ -10,9 +24,9 @@ $: index = (index + images.length) % images.length;
|
|
|
10
24
|
{#each images as image, idx}
|
|
11
25
|
{@const selected = index === idx}
|
|
12
26
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
13
|
-
<button on:click={() => (
|
|
14
|
-
<slot {Thumbnail} {image} {selected}>
|
|
15
|
-
<Thumbnail {...image} {selected} />
|
|
27
|
+
<button on:click={() => btnClick(idx)} aria-label={ariaLabel}>
|
|
28
|
+
<slot {Thumbnail} {image} {selected} {imgClass}>
|
|
29
|
+
<Thumbnail {...image} {selected} class={imgClass} />
|
|
16
30
|
</slot>
|
|
17
31
|
</button>
|
|
18
32
|
{/each}
|
|
@@ -25,4 +39,6 @@ $: index = (index + images.length) % images.length;
|
|
|
25
39
|
@prop export let images: HTMLImgAttributes[] = [];
|
|
26
40
|
@prop export let index: number = 0;
|
|
27
41
|
@prop export let ariaLabel: string = 'Click to view image';
|
|
42
|
+
@prop export let imgClass: string = '';
|
|
43
|
+
@prop export let throttleDelay: number = 650;
|
|
28
44
|
-->
|
|
@@ -7,6 +7,8 @@ declare const __propDef: {
|
|
|
7
7
|
images?: HTMLImgAttributes[] | undefined;
|
|
8
8
|
index?: number | undefined;
|
|
9
9
|
ariaLabel?: string | undefined;
|
|
10
|
+
imgClass?: string | undefined;
|
|
11
|
+
throttleDelay?: number | undefined;
|
|
10
12
|
};
|
|
11
13
|
events: {
|
|
12
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,6 +18,7 @@ declare const __propDef: {
|
|
|
16
18
|
Thumbnail: typeof Thumbnail;
|
|
17
19
|
image: HTMLImgAttributes;
|
|
18
20
|
selected: any;
|
|
21
|
+
imgClass: string;
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
};
|
|
@@ -28,6 +31,8 @@ export type ThumbnailsSlots = typeof __propDef.slots;
|
|
|
28
31
|
* @prop export let images: HTMLImgAttributes[] = [];
|
|
29
32
|
* @prop export let index: number = 0;
|
|
30
33
|
* @prop export let ariaLabel: string = 'Click to view image';
|
|
34
|
+
* @prop export let imgClass: string = '';
|
|
35
|
+
* @prop export let throttleDelay: number = 650;
|
|
31
36
|
*/
|
|
32
37
|
export default class Thumbnails extends SvelteComponent<ThumbnailsProps, ThumbnailsEvents, ThumbnailsSlots> {
|
|
33
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnails.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Thumbnails.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,SAAS,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Thumbnails.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/Thumbnails.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,SAAS,MAAM,oBAAoB,CAAC;AA+C3C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAErD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,eAAe,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,CAAC;CAC1G"}
|
package/dist/index.d.ts
CHANGED
|
@@ -111,9 +111,6 @@ export { default as Activity } from "./timeline/Activity.svelte";
|
|
|
111
111
|
export { default as ActivityItem } from "./timeline/ActivityItem.svelte";
|
|
112
112
|
export { default as Timeline } from "./timeline/Timeline.svelte";
|
|
113
113
|
export { default as TimelineItem } from "./timeline/TimelineItem.svelte";
|
|
114
|
-
export { default as TimelineHorizontal } from "./timeline/TimelineHorizontal.svelte";
|
|
115
|
-
export { default as TimelineItemHorizontal } from "./timeline/TimelineItemHorizontal.svelte";
|
|
116
|
-
export { default as TimelineItemVertical } from "./timeline/TimelineItemVertical.svelte";
|
|
117
114
|
export { default as Toast } from "./toast/Toast.svelte";
|
|
118
115
|
export { default as Toolbar } from "./toolbar/Toolbar.svelte";
|
|
119
116
|
export { default as ToolbarButton } from "./toolbar/ToolbarButton.svelte";
|
package/dist/index.js
CHANGED
|
@@ -188,9 +188,6 @@ export { default as Activity } from './timeline/Activity.svelte';
|
|
|
188
188
|
export { default as ActivityItem } from './timeline/ActivityItem.svelte';
|
|
189
189
|
export { default as Timeline } from './timeline/Timeline.svelte';
|
|
190
190
|
export { default as TimelineItem } from './timeline/TimelineItem.svelte';
|
|
191
|
-
export { default as TimelineHorizontal } from './timeline/TimelineHorizontal.svelte';
|
|
192
|
-
export { default as TimelineItemHorizontal } from './timeline/TimelineItemHorizontal.svelte';
|
|
193
|
-
export { default as TimelineItemVertical } from './timeline/TimelineItemVertical.svelte';
|
|
194
191
|
|
|
195
192
|
// Toast
|
|
196
193
|
export { default as Toast } from './toast/Toast.svelte';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>import { twMerge } from 'tailwind-merge';
|
|
2
|
+
export let fluid = false;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class={twMerge('mx-auto flex flex-wrap justify-between items-center ', fluid ? 'w-full' : 'container', $$props.class)}>
|
|
6
|
+
<slot />
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<!--
|
|
10
|
+
@component
|
|
11
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
12
|
+
## Props
|
|
13
|
+
@prop export let fluid: boolean = false;
|
|
14
|
+
-->
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
fluid?: boolean | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type NavContainerProps = typeof __propDef.props;
|
|
15
|
+
export type NavContainerEvents = typeof __propDef.events;
|
|
16
|
+
export type NavContainerSlots = typeof __propDef.slots;
|
|
17
|
+
/**
|
|
18
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
19
|
+
* ## Props
|
|
20
|
+
* @prop export let fluid: boolean = false;
|
|
21
|
+
*/
|
|
22
|
+
export default class NavContainer extends SvelteComponent<NavContainerProps, NavContainerEvents, NavContainerSlots> {
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=NavContainer.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavContainer.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/NavContainer.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAsBtD,QAAA,MAAM,SAAS;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CAClH"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import { getContext } from 'svelte';
|
|
2
|
+
import { writable } from 'svelte/store';
|
|
2
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import ToolbarButton from '../toolbar/ToolbarButton.svelte';
|
|
3
5
|
import Menu from './Menu.svelte';
|
|
4
|
-
export let btnClass = 'ml-3 md:hidden';
|
|
5
6
|
export let menuClass = 'h-6 w-6 shrink-0';
|
|
7
|
+
let btnClass = 'ml-3 md:hidden';
|
|
8
|
+
let hiddenStore = getContext('navHidden') ?? writable(true);
|
|
9
|
+
const toggle = (ev) => hiddenStore.update((h) => !h);
|
|
6
10
|
</script>
|
|
7
11
|
|
|
8
|
-
<ToolbarButton name="Open main menu" on:click {...$$restProps} class={twMerge(btnClass, $$props.class)}>
|
|
12
|
+
<ToolbarButton name="Open main menu" on:click={toggle} {...$$restProps} class={twMerge(btnClass, $$props.class)}>
|
|
9
13
|
<Menu class={twMerge(menuClass, $$props.classMenu)} />
|
|
10
14
|
</ToolbarButton>
|
|
11
15
|
|
|
@@ -13,6 +17,5 @@ export let menuClass = 'h-6 w-6 shrink-0';
|
|
|
13
17
|
@component
|
|
14
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
19
|
## Props
|
|
16
|
-
@prop export let btnClass: string = 'ml-3 md:hidden';
|
|
17
20
|
@prop export let menuClass: string = 'h-6 w-6 shrink-0';
|
|
18
21
|
-->
|
|
@@ -2,12 +2,9 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
btnClass?: string | undefined;
|
|
6
5
|
menuClass?: string | undefined;
|
|
7
6
|
};
|
|
8
7
|
events: {
|
|
9
|
-
click: MouseEvent;
|
|
10
|
-
} & {
|
|
11
8
|
[evt: string]: CustomEvent<any>;
|
|
12
9
|
};
|
|
13
10
|
slots: {};
|
|
@@ -18,7 +15,6 @@ export type NavHamburgerSlots = typeof __propDef.slots;
|
|
|
18
15
|
/**
|
|
19
16
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
20
17
|
* ## Props
|
|
21
|
-
* @prop export let btnClass: string = 'ml-3 md:hidden';
|
|
22
18
|
* @prop export let menuClass: string = 'h-6 w-6 shrink-0';
|
|
23
19
|
*/
|
|
24
20
|
export default class NavHamburger extends SvelteComponent<NavHamburgerProps, NavHamburgerEvents, NavHamburgerSlots> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavHamburger.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/NavHamburger.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;
|
|
1
|
+
{"version":3,"file":"NavHamburger.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/NavHamburger.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA8BD,QAAA,MAAM,SAAS;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CAClH"}
|
package/dist/navbar/NavUl.svelte
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script context="module">export {};
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
<script>import {
|
|
5
|
-
import { slide } from 'svelte/transition';
|
|
4
|
+
<script>import { getContext, setContext } from 'svelte';
|
|
6
5
|
import { quintOut } from 'svelte/easing';
|
|
7
|
-
import Frame from '../utils/Frame.svelte';
|
|
8
|
-
import { setContext } from 'svelte';
|
|
9
6
|
import { writable } from 'svelte/store';
|
|
7
|
+
import { slide } from 'svelte/transition';
|
|
8
|
+
import { twMerge } from 'tailwind-merge';
|
|
9
|
+
import Frame from '../utils/Frame.svelte';
|
|
10
10
|
const activeUrlStore = writable('');
|
|
11
11
|
export let activeUrl = '';
|
|
12
12
|
export let divClass = 'w-full md:block md:w-auto';
|
|
13
13
|
export let ulClass = 'flex flex-col p-4 mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium';
|
|
14
|
-
export let hidden =
|
|
14
|
+
export let hidden = undefined;
|
|
15
15
|
export let slideParams = { delay: 250, duration: 500, easing: quintOut };
|
|
16
16
|
export let activeClass = 'text-white bg-primary-700 md:bg-transparent md:text-primary-700 md:dark:text-white dark:bg-primary-600 md:dark:bg-transparent';
|
|
17
17
|
export let nonActiveClass = 'text-gray-700 hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-primary-700 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent';
|
|
@@ -20,6 +20,9 @@ $: {
|
|
|
20
20
|
activeUrlStore.set(activeUrl);
|
|
21
21
|
}
|
|
22
22
|
setContext('activeUrl', activeUrlStore);
|
|
23
|
+
let hiddenStore = getContext('navHidden');
|
|
24
|
+
let _hidden;
|
|
25
|
+
$: _hidden = hidden ?? $hiddenStore ?? true;
|
|
23
26
|
let _divClass;
|
|
24
27
|
$: _divClass = twMerge(divClass, $$props.class);
|
|
25
28
|
let _ulClass;
|
|
@@ -28,14 +31,14 @@ $: _ulClass = twMerge(ulClass,
|
|
|
28
31
|
$$props.classUl);
|
|
29
32
|
</script>
|
|
30
33
|
|
|
31
|
-
{#if !
|
|
34
|
+
{#if !_hidden}
|
|
32
35
|
<div {...$$restProps} class={_divClass} transition:slide={slideParams} on:click role="button" tabindex="0">
|
|
33
36
|
<Frame tag="ul" border rounded color="navbarUl" class={_ulClass}>
|
|
34
37
|
<slot />
|
|
35
38
|
</Frame>
|
|
36
39
|
</div>
|
|
37
40
|
{:else}
|
|
38
|
-
<div {...$$restProps} class={_divClass} {
|
|
41
|
+
<div {...$$restProps} class={_divClass} hidden={_hidden}>
|
|
39
42
|
<ul class={_ulClass}>
|
|
40
43
|
<slot />
|
|
41
44
|
</ul>
|
|
@@ -49,7 +52,7 @@ $$props.classUl);
|
|
|
49
52
|
@prop export let activeUrl: string = '';
|
|
50
53
|
@prop export let divClass: string = 'w-full md:block md:w-auto';
|
|
51
54
|
@prop export let ulClass: string = 'flex flex-col p-4 mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium';
|
|
52
|
-
@prop export let hidden: boolean =
|
|
55
|
+
@prop export let hidden: boolean | undefined = undefined;
|
|
53
56
|
@prop export let slideParams: SlideParams = { delay: 250, duration: 500, easing: quintOut };
|
|
54
57
|
@prop export let activeClass: string = 'text-white bg-primary-700 md:bg-transparent md:text-primary-700 md:dark:text-white dark:bg-primary-600 md:dark:bg-transparent';
|
|
55
58
|
@prop export let nonActiveClass: string = 'text-gray-700 hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-primary-700 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent';
|
|
@@ -33,7 +33,7 @@ export type NavUlSlots = typeof __propDef.slots;
|
|
|
33
33
|
* @prop export let activeUrl: string = '';
|
|
34
34
|
* @prop export let divClass: string = 'w-full md:block md:w-auto';
|
|
35
35
|
* @prop export let ulClass: string = 'flex flex-col p-4 mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium';
|
|
36
|
-
* @prop export let hidden: boolean =
|
|
36
|
+
* @prop export let hidden: boolean | undefined = undefined;
|
|
37
37
|
* @prop export let slideParams: SlideParams = { delay: 250, duration: 500, easing: quintOut };
|
|
38
38
|
* @prop export let activeClass: string = 'text-white bg-primary-700 md:bg-transparent md:text-primary-700 md:dark:text-white dark:bg-primary-600 md:dark:bg-transparent';
|
|
39
39
|
* @prop export let nonActiveClass: string = 'text-gray-700 hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-primary-700 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavUl.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/NavUl.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"NavUl.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/NavUl.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAMJ,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA+D5D,QAAA,MAAM,SAAS;;;;;;iBAD8O,OAAO,GAAG,SAAS;;;;;;;;;;;;;CAClM,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CACtF"}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import { setContext } from 'svelte';
|
|
2
|
+
import Frame from '../utils/Frame.svelte';
|
|
2
3
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
import NavContainer from './NavContainer.svelte';
|
|
5
|
+
import { writable } from 'svelte/store';
|
|
5
6
|
export let fluid = false;
|
|
7
|
+
let hidden = writable(true);
|
|
8
|
+
setContext('navHidden', hidden);
|
|
6
9
|
$: {
|
|
7
10
|
// override default Frame value
|
|
8
11
|
$$restProps.color = $$restProps.color ?? 'navbar';
|
|
9
12
|
}
|
|
10
|
-
let
|
|
11
|
-
let toggle = () => {
|
|
12
|
-
hidden = !hidden;
|
|
13
|
-
};
|
|
13
|
+
let toggle = () => hidden.update((hidden) => !hidden);
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
|
-
<Frame tag="nav" {...$$restProps} class={twMerge(
|
|
17
|
-
<
|
|
18
|
-
<slot {hidden} {toggle} />
|
|
19
|
-
</
|
|
16
|
+
<Frame tag="nav" {...$$restProps} class={twMerge('px-2 sm:px-4 py-2.5 w-full', $$props.class)}>
|
|
17
|
+
<NavContainer {fluid}>
|
|
18
|
+
<slot hidden={$hidden} {toggle} {NavContainer} />
|
|
19
|
+
</NavContainer>
|
|
20
20
|
</Frame>
|
|
21
21
|
|
|
22
22
|
<!--
|
|
23
23
|
@component
|
|
24
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
25
|
## Props
|
|
26
|
-
@prop export let navClass: string = 'px-2 sm:px-4 py-2.5 w-full';
|
|
27
|
-
@prop export let navDivClass: string = 'mx-auto flex flex-wrap justify-between items-center ';
|
|
28
26
|
@prop export let fluid: boolean = false;
|
|
29
27
|
-->
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import NavContainer from './NavContainer.svelte';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: import("svelte/elements").HTMLAnchorAttributes & {
|
|
4
5
|
tag?: string | undefined;
|
|
@@ -14,10 +15,7 @@ declare const __propDef: {
|
|
|
14
15
|
class?: string | undefined;
|
|
15
16
|
role?: string | undefined;
|
|
16
17
|
} & {
|
|
17
|
-
navClass?: string | undefined;
|
|
18
|
-
navDivClass?: string | undefined;
|
|
19
18
|
fluid?: boolean | undefined;
|
|
20
|
-
classNavDiv?: string | undefined;
|
|
21
19
|
};
|
|
22
20
|
events: {
|
|
23
21
|
[evt: string]: CustomEvent<any>;
|
|
@@ -26,6 +24,7 @@ declare const __propDef: {
|
|
|
26
24
|
default: {
|
|
27
25
|
hidden: boolean;
|
|
28
26
|
toggle: () => void;
|
|
27
|
+
NavContainer: typeof NavContainer;
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
30
|
};
|
|
@@ -35,8 +34,6 @@ export type NavbarSlots = typeof __propDef.slots;
|
|
|
35
34
|
/**
|
|
36
35
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
37
36
|
* ## Props
|
|
38
|
-
* @prop export let navClass: string = 'px-2 sm:px-4 py-2.5 w-full';
|
|
39
|
-
* @prop export let navDivClass: string = 'mx-auto flex flex-wrap justify-between items-center ';
|
|
40
37
|
* @prop export let fluid: boolean = false;
|
|
41
38
|
*/
|
|
42
39
|
export default class Navbar extends SvelteComponent<NavbarProps, NavbarEvents, NavbarSlots> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/Navbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;
|
|
1
|
+
{"version":3,"file":"Navbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/Navbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAsCjD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,eAAe,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC1F"}
|
|
@@ -33,72 +33,30 @@ const h3Cls = twMerge(order === 'vertical' ? 'flex items-center mb-1 text-lg fon
|
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<li class={liCls}>
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<time class={timeCls}>{date}</time>
|
|
40
|
-
{/if}
|
|
41
|
-
{#if title}
|
|
42
|
-
<h3 class={h3Cls}>
|
|
43
|
-
{title}
|
|
44
|
-
</h3>
|
|
45
|
-
{/if}
|
|
46
|
-
<slot />
|
|
47
|
-
{:else if order === 'vertical'}
|
|
48
|
-
<div class={divCls} />
|
|
49
|
-
{#if $$slots.icon}
|
|
50
|
-
<slot name="icon" />
|
|
51
|
-
{:else}
|
|
52
|
-
<svg aria-hidden="true" class={svgClass} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
53
|
-
<path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" />
|
|
54
|
-
</svg>
|
|
55
|
-
{/if}
|
|
56
|
-
{#if title}
|
|
57
|
-
<h3 class={h3Cls}>
|
|
58
|
-
{title}
|
|
59
|
-
</h3>
|
|
60
|
-
{/if}
|
|
61
|
-
{#if date}
|
|
62
|
-
<time class={timeCls}>{date}</time>
|
|
63
|
-
{/if}
|
|
64
|
-
<slot />
|
|
65
|
-
{:else if order === 'horizontal'}
|
|
66
|
-
<div class={divCls} />
|
|
67
|
-
{#if $$slots.icon}
|
|
68
|
-
<slot name="icon" />
|
|
69
|
-
{:else}
|
|
36
|
+
<div class={divCls} />
|
|
37
|
+
{#if order !== 'default'}
|
|
38
|
+
<slot name="icon">
|
|
70
39
|
<svg aria-hidden="true" class={svgClass} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
71
40
|
<path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" />
|
|
72
41
|
</svg>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{#if $$slots.icon}
|
|
86
|
-
<slot name="icon" />
|
|
87
|
-
{:else}
|
|
88
|
-
<svg aria-hidden="true" class={svgClass} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
89
|
-
<path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" />
|
|
90
|
-
</svg>
|
|
91
|
-
{/if}
|
|
92
|
-
{#if title}
|
|
93
|
-
<h3 class={h3Cls}>
|
|
94
|
-
{title}
|
|
95
|
-
</h3>
|
|
96
|
-
{/if}
|
|
42
|
+
</slot>
|
|
43
|
+
{:else if date}
|
|
44
|
+
<time class={timeCls}>{date}</time>
|
|
45
|
+
{/if}
|
|
46
|
+
|
|
47
|
+
{#if title}
|
|
48
|
+
<h3 class={h3Cls}>
|
|
49
|
+
{title}
|
|
50
|
+
</h3>
|
|
51
|
+
{/if}
|
|
52
|
+
|
|
53
|
+
{#if order !== 'default'}
|
|
97
54
|
{#if date}
|
|
98
55
|
<time class={timeCls}>{date}</time>
|
|
99
56
|
{/if}
|
|
100
|
-
<slot />
|
|
101
57
|
{/if}
|
|
58
|
+
|
|
59
|
+
<slot />
|
|
102
60
|
</li>
|
|
103
61
|
|
|
104
62
|
<!--
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/timeline/TimelineItem.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;
|
|
1
|
+
{"version":3,"file":"TimelineItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/timeline/TimelineItem.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA0ED,QAAA,MAAM,SAAS;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CAClH"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SvelteComponent } from 'svelte';
|
|
2
1
|
export type BlockQuoteType = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
3
2
|
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
4
3
|
export type ButtonColorType = 'alternative' | 'blue' | 'dark' | 'green' | 'light' | 'primary' | 'purple' | 'red' | 'yellow' | 'none';
|
|
@@ -92,24 +91,6 @@ export interface SiteType {
|
|
|
92
91
|
href: string;
|
|
93
92
|
img?: string;
|
|
94
93
|
}
|
|
95
|
-
export interface TimelineItemVerticalType {
|
|
96
|
-
date: Date | string;
|
|
97
|
-
title: string;
|
|
98
|
-
icon?: typeof SvelteComponent<any>;
|
|
99
|
-
iconSize?: number;
|
|
100
|
-
iconClass?: string;
|
|
101
|
-
href?: string;
|
|
102
|
-
linkname?: string;
|
|
103
|
-
text?: HTMLElement | string;
|
|
104
|
-
}
|
|
105
|
-
export interface TimelineItemHorizontalType {
|
|
106
|
-
date: Date | string;
|
|
107
|
-
title: string;
|
|
108
|
-
icon?: typeof SvelteComponent<any>;
|
|
109
|
-
iconSize?: number;
|
|
110
|
-
iconClass?: string;
|
|
111
|
-
text?: HTMLElement | string;
|
|
112
|
-
}
|
|
113
94
|
export interface TransitionParamTypes {
|
|
114
95
|
delay?: number;
|
|
115
96
|
duration?: number;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/types.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.18",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@docsearch/js": "^3.5.2",
|
|
36
36
|
"@playwright/test": "^1.38.1",
|
|
37
37
|
"@sveltejs/adapter-vercel": "^3.0.3",
|
|
38
|
-
"@sveltejs/kit": "^1.25.
|
|
38
|
+
"@sveltejs/kit": "^1.25.1",
|
|
39
39
|
"@sveltejs/package": "2.2.2",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
41
|
-
"@typescript-eslint/parser": "^6.7.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
41
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
42
42
|
"autoprefixer": "^10.4.16",
|
|
43
|
-
"esbuild": "0.19.
|
|
44
|
-
"eslint": "^8.
|
|
43
|
+
"esbuild": "0.19.4",
|
|
44
|
+
"eslint": "^8.50.0",
|
|
45
45
|
"eslint-config-prettier": "^9.0.0",
|
|
46
46
|
"eslint-plugin-svelte": "^2.33.2",
|
|
47
47
|
"flowbite-svelte-icons": "^0.4.4",
|
|
@@ -442,6 +442,10 @@
|
|
|
442
442
|
"types": "./dist/navbar/NavBrand.svelte.d.ts",
|
|
443
443
|
"svelte": "./dist/navbar/NavBrand.svelte"
|
|
444
444
|
},
|
|
445
|
+
"./NavContainer.svelte": {
|
|
446
|
+
"types": "./dist/navbar/NavContainer.svelte.d.ts",
|
|
447
|
+
"svelte": "./dist/navbar/NavContainer.svelte"
|
|
448
|
+
},
|
|
445
449
|
"./NavHamburger.svelte": {
|
|
446
450
|
"types": "./dist/navbar/NavHamburger.svelte.d.ts",
|
|
447
451
|
"svelte": "./dist/navbar/NavHamburger.svelte"
|
|
@@ -642,22 +646,10 @@
|
|
|
642
646
|
"types": "./dist/timeline/Timeline.svelte.d.ts",
|
|
643
647
|
"svelte": "./dist/timeline/Timeline.svelte"
|
|
644
648
|
},
|
|
645
|
-
"./TimelineHorizontal.svelte": {
|
|
646
|
-
"types": "./dist/timeline/TimelineHorizontal.svelte.d.ts",
|
|
647
|
-
"svelte": "./dist/timeline/TimelineHorizontal.svelte"
|
|
648
|
-
},
|
|
649
649
|
"./TimelineItem.svelte": {
|
|
650
650
|
"types": "./dist/timeline/TimelineItem.svelte.d.ts",
|
|
651
651
|
"svelte": "./dist/timeline/TimelineItem.svelte"
|
|
652
652
|
},
|
|
653
|
-
"./TimelineItemHorizontal.svelte": {
|
|
654
|
-
"types": "./dist/timeline/TimelineItemHorizontal.svelte.d.ts",
|
|
655
|
-
"svelte": "./dist/timeline/TimelineItemHorizontal.svelte"
|
|
656
|
-
},
|
|
657
|
-
"./TimelineItemVertical.svelte": {
|
|
658
|
-
"types": "./dist/timeline/TimelineItemVertical.svelte.d.ts",
|
|
659
|
-
"svelte": "./dist/timeline/TimelineItemVertical.svelte"
|
|
660
|
-
},
|
|
661
653
|
"./Toast.svelte": {
|
|
662
654
|
"types": "./dist/toast/Toast.svelte.d.ts",
|
|
663
655
|
"svelte": "./dist/toast/Toast.svelte"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script>import { twMerge } from 'tailwind-merge';
|
|
2
|
-
export let olClass = 'sm:flex';
|
|
3
|
-
let olCls = twMerge(olClass, $$props.class);
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<ol class={olCls}>
|
|
7
|
-
<slot />
|
|
8
|
-
</ol>
|
|
9
|
-
|
|
10
|
-
<!--
|
|
11
|
-
@component
|
|
12
|
-
[Go to docs](https://flowbite-svelte.com/)
|
|
13
|
-
## Props
|
|
14
|
-
@prop export let olClass: string = 'sm:flex';
|
|
15
|
-
-->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
olClass?: string | undefined;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {
|
|
11
|
-
default: {};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export type TimelineHorizontalProps = typeof __propDef.props;
|
|
15
|
-
export type TimelineHorizontalEvents = typeof __propDef.events;
|
|
16
|
-
export type TimelineHorizontalSlots = typeof __propDef.slots;
|
|
17
|
-
/**
|
|
18
|
-
* [Go to docs](https://flowbite-svelte.com/)
|
|
19
|
-
* ## Props
|
|
20
|
-
* @prop export let olClass: string = 'sm:flex';
|
|
21
|
-
*/
|
|
22
|
-
export default class TimelineHorizontal extends SvelteComponent<TimelineHorizontalProps, TimelineHorizontalEvents, TimelineHorizontalSlots> {
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=TimelineHorizontal.svelte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineHorizontal.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/timeline/TimelineHorizontal.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAkBD,QAAA,MAAM,SAAS;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC7D,MAAM,MAAM,wBAAwB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC/D,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE7D;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,eAAe,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB,CAAC;CAC1I"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<script>// import type { TimelineItemHorizontalType } from '../types';
|
|
2
|
-
// export let timelineItems: TimelineItemHorizontalType[];
|
|
3
|
-
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
export let title;
|
|
5
|
-
export let date;
|
|
6
|
-
export let href;
|
|
7
|
-
export let text;
|
|
8
|
-
export let liClass = 'relative mb-6 sm:mb-0';
|
|
9
|
-
export let divClass = 'flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0';
|
|
10
|
-
export let h3Class = 'text-lg font-semibold text-gray-900 dark:text-white';
|
|
11
|
-
export let timeClass = 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500';
|
|
12
|
-
export let pClass = 'text-base font-normal text-gray-500 dark:text-gray-400';
|
|
13
|
-
export let aClass = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700';
|
|
14
|
-
export let linkname;
|
|
15
|
-
export let icon;
|
|
16
|
-
let liCls = twMerge(liClass, $$props.classLi);
|
|
17
|
-
let divCls = twMerge(divClass, $$props.classDiv);
|
|
18
|
-
let h3Cls = twMerge(h3Class, $$props.classH3);
|
|
19
|
-
let timeCls = twMerge(timeClass, $$props.classTime);
|
|
20
|
-
let pCls = twMerge(pClass, $$props.classP);
|
|
21
|
-
let aCls = twMerge(aClass, $$props.classA);
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<li class={liCls}>
|
|
25
|
-
<div class="flex items-center">
|
|
26
|
-
<div class={divCls}>
|
|
27
|
-
{#if icon}
|
|
28
|
-
{@html icon}
|
|
29
|
-
{:else}
|
|
30
|
-
<svg class="w-3 h-3 text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
31
|
-
<path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" />
|
|
32
|
-
</svg>
|
|
33
|
-
{/if}
|
|
34
|
-
</div>
|
|
35
|
-
<div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
|
|
36
|
-
</div>
|
|
37
|
-
<div class="mt-3 sm:pr-8">
|
|
38
|
-
<h3 class={h3Cls}>{title}</h3>
|
|
39
|
-
<time class={timeCls}>{date}</time>
|
|
40
|
-
<p class={pCls}>
|
|
41
|
-
{text}
|
|
42
|
-
</p>
|
|
43
|
-
</div>
|
|
44
|
-
{#if href}
|
|
45
|
-
<a {href} class={aCls}>
|
|
46
|
-
{linkname}
|
|
47
|
-
<svg class="ml-2 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
48
|
-
<path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd" />
|
|
49
|
-
</svg>
|
|
50
|
-
</a>
|
|
51
|
-
{/if}
|
|
52
|
-
</li>
|
|
53
|
-
|
|
54
|
-
<!--
|
|
55
|
-
@component
|
|
56
|
-
[Go to docs](https://flowbite-svelte.com/)
|
|
57
|
-
## Props
|
|
58
|
-
@prop export let timelineItems: TimelineItemHorizontalType[];
|
|
59
|
-
@prop export let title: string;
|
|
60
|
-
@prop export let date: string;
|
|
61
|
-
@prop export let href: string;
|
|
62
|
-
@prop export let text: string;
|
|
63
|
-
@prop export let liClass: string = 'relative mb-6 sm:mb-0';
|
|
64
|
-
@prop export let divClass: string = 'flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0';
|
|
65
|
-
@prop export let h3Class: string = 'text-lg font-semibold text-gray-900 dark:text-white';
|
|
66
|
-
@prop export let timeClass: string = 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500';
|
|
67
|
-
@prop export let pClass: string = 'text-base font-normal text-gray-500 dark:text-gray-400';
|
|
68
|
-
@prop export let aClass: string = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700';
|
|
69
|
-
@prop export let linkname: string;
|
|
70
|
-
@prop export let icon: string;
|
|
71
|
-
-->
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
title: string;
|
|
6
|
-
date: string;
|
|
7
|
-
href: string;
|
|
8
|
-
text: string;
|
|
9
|
-
liClass?: string | undefined;
|
|
10
|
-
divClass?: string | undefined;
|
|
11
|
-
h3Class?: string | undefined;
|
|
12
|
-
timeClass?: string | undefined;
|
|
13
|
-
pClass?: string | undefined;
|
|
14
|
-
aClass?: string | undefined;
|
|
15
|
-
linkname: string;
|
|
16
|
-
icon: string;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export type TimelineItemHorizontalProps = typeof __propDef.props;
|
|
24
|
-
export type TimelineItemHorizontalEvents = typeof __propDef.events;
|
|
25
|
-
export type TimelineItemHorizontalSlots = typeof __propDef.slots;
|
|
26
|
-
/**
|
|
27
|
-
* [Go to docs](https://flowbite-svelte.com/)
|
|
28
|
-
* ## Props
|
|
29
|
-
* @prop export let timelineItems: TimelineItemHorizontalType[];
|
|
30
|
-
* @prop export let title: string;
|
|
31
|
-
* @prop export let date: string;
|
|
32
|
-
* @prop export let href: string;
|
|
33
|
-
* @prop export let text: string;
|
|
34
|
-
* @prop export let liClass: string = 'relative mb-6 sm:mb-0';
|
|
35
|
-
* @prop export let divClass: string = 'flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0';
|
|
36
|
-
* @prop export let h3Class: string = 'text-lg font-semibold text-gray-900 dark:text-white';
|
|
37
|
-
* @prop export let timeClass: string = 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500';
|
|
38
|
-
* @prop export let pClass: string = 'text-base font-normal text-gray-500 dark:text-gray-400';
|
|
39
|
-
* @prop export let aClass: string = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700';
|
|
40
|
-
* @prop export let linkname: string;
|
|
41
|
-
* @prop export let icon: string;
|
|
42
|
-
*/
|
|
43
|
-
export default class TimelineItemHorizontal extends SvelteComponent<TimelineItemHorizontalProps, TimelineItemHorizontalEvents, TimelineItemHorizontalSlots> {
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=TimelineItemHorizontal.svelte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineItemHorizontal.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/timeline/TimelineItemHorizontal.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA+DD,QAAA,MAAM,SAAS;;;eADwN,MAAM;cAAQ,MAAM;cAAQ,MAAM;cAAQ,MAAM;;;;;;;kBAAyH,MAAM;cAAQ,MAAM;;;;;;CACtV,CAAC;AAC/E,MAAM,MAAM,2BAA2B,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjE,MAAM,MAAM,4BAA4B,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnE,MAAM,MAAM,2BAA2B,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,eAAe,CAAC,2BAA2B,EAAE,4BAA4B,EAAE,2BAA2B,CAAC;CAC1J"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<script>import { twMerge } from 'tailwind-merge';
|
|
2
|
-
export let title;
|
|
3
|
-
export let date;
|
|
4
|
-
export let liClass = 'mb-10 ml-6';
|
|
5
|
-
export let spanClass = 'flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900';
|
|
6
|
-
export let h3Class = 'flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white';
|
|
7
|
-
export let timeClass = 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500';
|
|
8
|
-
let liCls = twMerge(liClass, $$props.classLi);
|
|
9
|
-
let spanCls = twMerge(spanClass, $$props.classSpan);
|
|
10
|
-
let h3Cls = twMerge(h3Class, $$props.classH3);
|
|
11
|
-
let timeCls = twMerge(timeClass, $$props.classTime);
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<li class={liCls}>
|
|
15
|
-
<span class={spanCls}>
|
|
16
|
-
{#if $$slots.icon}
|
|
17
|
-
<slot name="icon" />
|
|
18
|
-
{:else}
|
|
19
|
-
<svg width="20" height="20" class="text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
20
|
-
<path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" />
|
|
21
|
-
</svg>
|
|
22
|
-
{/if}
|
|
23
|
-
</span>
|
|
24
|
-
|
|
25
|
-
<h3 class={h3Cls}>
|
|
26
|
-
{title}
|
|
27
|
-
</h3>
|
|
28
|
-
<time class={timeCls}>{date}</time>
|
|
29
|
-
<slot />
|
|
30
|
-
</li>
|
|
31
|
-
|
|
32
|
-
<!--
|
|
33
|
-
@component
|
|
34
|
-
[Go to docs](https://flowbite-svelte.com/)
|
|
35
|
-
## Props
|
|
36
|
-
@prop export let title: string;
|
|
37
|
-
@prop export let date: string;
|
|
38
|
-
@prop export let liClass: string = 'mb-10 ml-6';
|
|
39
|
-
@prop export let spanClass: string = 'flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900';
|
|
40
|
-
@prop export let h3Class: string = 'flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white';
|
|
41
|
-
@prop export let timeClass: string = 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500';
|
|
42
|
-
-->
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
title: string;
|
|
6
|
-
date: string;
|
|
7
|
-
liClass?: string | undefined;
|
|
8
|
-
spanClass?: string | undefined;
|
|
9
|
-
h3Class?: string | undefined;
|
|
10
|
-
timeClass?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
events: {
|
|
13
|
-
[evt: string]: CustomEvent<any>;
|
|
14
|
-
};
|
|
15
|
-
slots: {
|
|
16
|
-
icon: {};
|
|
17
|
-
default: {};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type TimelineItemVerticalProps = typeof __propDef.props;
|
|
21
|
-
export type TimelineItemVerticalEvents = typeof __propDef.events;
|
|
22
|
-
export type TimelineItemVerticalSlots = typeof __propDef.slots;
|
|
23
|
-
/**
|
|
24
|
-
* [Go to docs](https://flowbite-svelte.com/)
|
|
25
|
-
* ## Props
|
|
26
|
-
* @prop export let title: string;
|
|
27
|
-
* @prop export let date: string;
|
|
28
|
-
* @prop export let liClass: string = 'mb-10 ml-6';
|
|
29
|
-
* @prop export let spanClass: string = 'flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900';
|
|
30
|
-
* @prop export let h3Class: string = 'flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white';
|
|
31
|
-
* @prop export let timeClass: string = 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500';
|
|
32
|
-
*/
|
|
33
|
-
export default class TimelineItemVertical extends SvelteComponent<TimelineItemVerticalProps, TimelineItemVerticalEvents, TimelineItemVerticalSlots> {
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=TimelineItemVertical.svelte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineItemVertical.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/timeline/TimelineItemVertical.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAwCD,QAAA,MAAM,SAAS;;;eAD4H,MAAM;cAAQ,MAAM;;;;;;;;;;;;;CACjF,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC/D,MAAM,MAAM,0BAA0B,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACjE,MAAM,MAAM,yBAAyB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE/D;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,eAAe,CAAC,yBAAyB,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;CAClJ"}
|