flowbite-svelte 1.14.6 → 1.15.0

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.
Files changed (42) hide show
  1. package/dist/timeline/TimelineItem.svelte +22 -8
  2. package/dist/timeline/TimelineItem.svelte.d.ts +5 -1
  3. package/dist/timeline/theme.d.ts +48 -0
  4. package/dist/timeline/theme.js +205 -13
  5. package/dist/toast/Toast.svelte +1 -1
  6. package/dist/toast/Toast.svelte.d.ts +1 -1
  7. package/dist/tooltip/Tooltip.svelte +1 -1
  8. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  9. package/dist/types.d.ts +5 -0
  10. package/dist/typography/a/A.svelte +1 -1
  11. package/dist/typography/a/A.svelte.d.ts +1 -1
  12. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  13. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  14. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  15. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  16. package/dist/typography/heading/Heading.svelte +1 -1
  17. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  18. package/dist/typography/img/EnhancedImg.svelte +1 -1
  19. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  20. package/dist/typography/img/Img.svelte +1 -1
  21. package/dist/typography/img/Img.svelte.d.ts +1 -1
  22. package/dist/typography/layout/Layout.svelte +1 -1
  23. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  24. package/dist/typography/list/Li.svelte +1 -1
  25. package/dist/typography/list/Li.svelte.d.ts +1 -1
  26. package/dist/typography/list/List.svelte +1 -1
  27. package/dist/typography/list/List.svelte.d.ts +1 -1
  28. package/dist/typography/mark/Mark.svelte +1 -1
  29. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  30. package/dist/typography/paragraph/P.svelte +1 -1
  31. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  32. package/dist/typography/secondary/Secondary.svelte +1 -1
  33. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  34. package/dist/typography/span/Span.svelte +1 -1
  35. package/dist/typography/span/Span.svelte.d.ts +1 -1
  36. package/dist/utils/Arrow.svelte +1 -1
  37. package/dist/utils/Arrow.svelte.d.ts +1 -1
  38. package/dist/utils/Popper.svelte +1 -1
  39. package/dist/utils/Popper.svelte.d.ts +1 -1
  40. package/dist/video/Video.svelte +1 -1
  41. package/dist/video/Video.svelte.d.ts +1 -1
  42. package/package.json +1 -1
@@ -5,31 +5,33 @@
5
5
  import clsx from "clsx";
6
6
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
7
7
 
8
- let { children, orientationSlot, title, date, dateFormat = "month-year", svgClass, liClass, divClass, timeClass, h3Class, class: className, classes, ...restProps }: TimelineItemProps = $props();
8
+ let { children, orientationSlot, title, date, dateFormat = "month-year", color = "primary", isLast = false, svgClass, liClass, divClass, timeClass, h3Class, connectorClass, datePrefix, class: className, classes, ...restProps }: TimelineItemProps = $props();
9
9
 
10
10
  warnThemeDeprecation(
11
11
  "TimelineItem",
12
- { svgClass, liClass, divClass, timeClass, h3Class },
12
+ { svgClass, liClass, divClass, timeClass, h3Class, connectorClass },
13
13
  {
14
14
  liClass: "class",
15
15
  svgClass: "svg",
16
16
  divClass: "div",
17
17
  timeClass: "time",
18
- h3Class: "h3"
18
+ h3Class: "h3",
19
+ connectorClass: "connector"
19
20
  }
20
21
  );
22
+
21
23
  const styling = $derived({
22
24
  svg: svgClass,
23
25
  div: divClass,
24
26
  time: timeClass,
25
- h3: h3Class
27
+ h3: h3Class,
28
+ connector: connectorClass
26
29
  });
27
30
 
28
31
  const theme = getTheme("timelineItem");
29
-
30
32
  let order = getContext<TimelineVariants["order"]>("order");
31
33
 
32
- const { base, div, time, h3, svg } = $derived(timelineItem({ order }));
34
+ const { base, div, time, h3, svg, connector } = $derived(timelineItem({ order, color, isLast }));
33
35
 
34
36
  function formatDisplayDate(dateStr: string, format: DateFormat) {
35
37
  const date = new Date(dateStr);
@@ -61,6 +63,11 @@
61
63
  </script>
62
64
 
63
65
  <li {...restProps} class={base({ class: clsx(theme?.base, className ?? liClass) })}>
66
+ <!-- Individual connector line for vertical/activity layouts -->
67
+ {#if !isLast && (order === "vertical" || order === "activity")}
68
+ <div class={connector({ class: clsx(theme?.connector, styling.connector) })} aria-hidden="true"></div>
69
+ {/if}
70
+
64
71
  {#if order !== "default"}
65
72
  {#if orientationSlot && (order === "vertical" || order === "horizontal")}
66
73
  {@render orientationSlot()}
@@ -73,9 +80,11 @@
73
80
  {/if}
74
81
  {:else if date}
75
82
  <time datetime={date} class={time({ class: clsx(theme?.time, styling.time) })}>
83
+ {datePrefix}
76
84
  {formatDisplayDate(date, dateFormat)}
77
85
  </time>
78
86
  {/if}
87
+
79
88
  {#if title}
80
89
  <h3 class={h3({ class: clsx(theme?.h3, styling.h3) })}>
81
90
  {title}
@@ -84,7 +93,8 @@
84
93
 
85
94
  {#if order !== "default"}
86
95
  {#if date}
87
- <time datetime={date} class={time({ class: clsx(theme?.time, timeClass) })}>
96
+ <time datetime={date} class={time({ class: clsx(theme?.time, styling.time) })}>
97
+ {datePrefix}
88
98
  {formatDisplayDate(date, dateFormat)}
89
99
  </time>
90
100
  {/if}
@@ -97,18 +107,22 @@
97
107
  @component
98
108
  [Go to docs](https://flowbite-svelte.com/)
99
109
  ## Type
100
- [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1816)
110
+ [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1818)
101
111
  ## Props
102
112
  @prop children
103
113
  @prop orientationSlot
104
114
  @prop title
105
115
  @prop date
106
116
  @prop dateFormat = "month-year"
117
+ @prop color = "primary"
118
+ @prop isLast = false
107
119
  @prop svgClass
108
120
  @prop liClass
109
121
  @prop divClass
110
122
  @prop timeClass
111
123
  @prop h3Class
124
+ @prop connectorClass
125
+ @prop datePrefix
112
126
  @prop class: className
113
127
  @prop classes
114
128
  @prop ...restProps
@@ -2,18 +2,22 @@ import type { TimelineItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1816)
5
+ * [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1818)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop orientationSlot
9
9
  * @prop title
10
10
  * @prop date
11
11
  * @prop dateFormat = "month-year"
12
+ * @prop color = "primary"
13
+ * @prop isLast = false
12
14
  * @prop svgClass
13
15
  * @prop liClass
14
16
  * @prop divClass
15
17
  * @prop timeClass
16
18
  * @prop h3Class
19
+ * @prop connectorClass
20
+ * @prop datePrefix
17
21
  * @prop class: className
18
22
  * @prop classes
19
23
  * @prop ...restProps
@@ -209,6 +209,7 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
209
209
  div: string;
210
210
  time: string;
211
211
  h3: string;
212
+ connector: string;
212
213
  };
213
214
  horizontal: {
214
215
  base: string;
@@ -221,6 +222,7 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
221
222
  div: string;
222
223
  time: string;
223
224
  h3: string;
225
+ connector: string;
224
226
  };
225
227
  group: {
226
228
  base: string;
@@ -229,12 +231,26 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
229
231
  h3: string;
230
232
  };
231
233
  };
234
+ color: {
235
+ primary: {};
236
+ green: {};
237
+ orange: {};
238
+ red: {};
239
+ blue: {};
240
+ purple: {};
241
+ gray: {};
242
+ };
243
+ isLast: {
244
+ true: {};
245
+ false: {};
246
+ };
232
247
  }, {
233
248
  base: string;
234
249
  div: string;
235
250
  time: string;
236
251
  h3: string;
237
252
  svg: string;
253
+ connector: string;
238
254
  }, undefined, {
239
255
  order: {
240
256
  default: {
@@ -248,6 +264,7 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
248
264
  div: string;
249
265
  time: string;
250
266
  h3: string;
267
+ connector: string;
251
268
  };
252
269
  horizontal: {
253
270
  base: string;
@@ -260,6 +277,7 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
260
277
  div: string;
261
278
  time: string;
262
279
  h3: string;
280
+ connector: string;
263
281
  };
264
282
  group: {
265
283
  base: string;
@@ -268,12 +286,26 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
268
286
  h3: string;
269
287
  };
270
288
  };
289
+ color: {
290
+ primary: {};
291
+ green: {};
292
+ orange: {};
293
+ red: {};
294
+ blue: {};
295
+ purple: {};
296
+ gray: {};
297
+ };
298
+ isLast: {
299
+ true: {};
300
+ false: {};
301
+ };
271
302
  }, {
272
303
  base: string;
273
304
  div: string;
274
305
  time: string;
275
306
  h3: string;
276
307
  svg: string;
308
+ connector: string;
277
309
  }, import("tailwind-variants").TVReturnType<{
278
310
  order: {
279
311
  default: {
@@ -287,6 +319,7 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
287
319
  div: string;
288
320
  time: string;
289
321
  h3: string;
322
+ connector: string;
290
323
  };
291
324
  horizontal: {
292
325
  base: string;
@@ -299,6 +332,7 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
299
332
  div: string;
300
333
  time: string;
301
334
  h3: string;
335
+ connector: string;
302
336
  };
303
337
  group: {
304
338
  base: string;
@@ -307,10 +341,24 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
307
341
  h3: string;
308
342
  };
309
343
  };
344
+ color: {
345
+ primary: {};
346
+ green: {};
347
+ orange: {};
348
+ red: {};
349
+ blue: {};
350
+ purple: {};
351
+ gray: {};
352
+ };
353
+ isLast: {
354
+ true: {};
355
+ false: {};
356
+ };
310
357
  }, {
311
358
  base: string;
312
359
  div: string;
313
360
  time: string;
314
361
  h3: string;
315
362
  svg: string;
363
+ connector: string;
316
364
  }, undefined, unknown, unknown, undefined>>;
@@ -32,13 +32,57 @@ export const groupItem = tv({
32
32
  svg: "me-1 h-3 w-3"
33
33
  }
34
34
  });
35
+ const colorVariants = {
36
+ primary: {
37
+ dot: "bg-primary-200 dark:bg-primary-900",
38
+ ring: "ring-white dark:ring-gray-900",
39
+ icon: "text-primary-600 dark:text-primary-400",
40
+ connector: "border-primary-200 dark:border-primary-700"
41
+ },
42
+ green: {
43
+ dot: "bg-green-200 dark:bg-green-900",
44
+ ring: "ring-white dark:ring-gray-900",
45
+ icon: "text-green-600 dark:text-green-400",
46
+ connector: "border-green-200 dark:border-green-700"
47
+ },
48
+ orange: {
49
+ dot: "bg-orange-200 dark:bg-orange-900",
50
+ ring: "ring-white dark:ring-gray-900",
51
+ icon: "text-orange-600 dark:text-orange-400",
52
+ connector: "border-orange-200 dark:border-orange-700"
53
+ },
54
+ red: {
55
+ dot: "bg-red-200 dark:bg-red-900",
56
+ ring: "ring-white dark:ring-gray-900",
57
+ icon: "text-red-600 dark:text-red-400",
58
+ connector: "border-red-200 dark:border-red-700"
59
+ },
60
+ blue: {
61
+ dot: "bg-blue-200 dark:bg-blue-900",
62
+ ring: "ring-white dark:ring-gray-900",
63
+ icon: "text-blue-600 dark:text-blue-400",
64
+ connector: "border-blue-200 dark:border-blue-700"
65
+ },
66
+ purple: {
67
+ dot: "bg-purple-200 dark:bg-purple-900",
68
+ ring: "ring-white dark:ring-gray-900",
69
+ icon: "text-purple-600 dark:text-purple-400",
70
+ connector: "border-purple-200 dark:border-purple-700"
71
+ },
72
+ gray: {
73
+ dot: "bg-gray-200 dark:bg-gray-700",
74
+ ring: "ring-white dark:ring-gray-900",
75
+ icon: "text-gray-600 dark:text-gray-400",
76
+ connector: "border-gray-200 dark:border-gray-700"
77
+ }
78
+ };
35
79
  export const timeline = tv({
36
80
  variants: {
37
81
  order: {
38
82
  group: "p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700",
39
83
  horizontal: "sm:flex",
40
- activity: "relative border-s border-gray-200 dark:border-gray-700",
41
- vertical: "relative border-s border-gray-200 dark:border-gray-700",
84
+ activity: "relative",
85
+ vertical: "relative",
42
86
  default: "relative border-s border-gray-200 dark:border-gray-700"
43
87
  }
44
88
  },
@@ -48,25 +92,27 @@ export const timeline = tv({
48
92
  });
49
93
  export const timelineItem = tv({
50
94
  slots: {
51
- base: "",
95
+ base: "relative",
52
96
  div: "",
53
97
  time: "",
54
98
  h3: "",
55
- svg: "w-3 h-3 text-primary-600 dark:text-primary-400"
99
+ svg: "w-4 h-4",
100
+ connector: "absolute top-6 left-3 w-px h-full"
56
101
  },
57
102
  variants: {
58
103
  order: {
59
104
  default: {
60
105
  base: "mb-10 ms-4",
61
- div: "absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -start-1.5 border border-white dark:border-gray-900 dark:bg-gray-700",
106
+ div: "absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -left-1.5 border border-white dark:border-gray-900 dark:bg-gray-700",
62
107
  time: "mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",
63
108
  h3: "text-lg font-semibold text-gray-900 dark:text-white"
64
109
  },
65
110
  vertical: {
66
- base: "mb-10 ms-6",
67
- div: "flex absolute -start-3 justify-center items-center w-6 h-6 bg-primary-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-primary-900",
68
- time: "mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",
69
- h3: "flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white"
111
+ base: "mb-10 ms-6 relative",
112
+ div: "flex absolute -left-4 top-1.5 justify-center items-center w-6 h-6 rounded-full ring-8",
113
+ time: "mb-1 pl-4 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",
114
+ h3: "flex ml-4 items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white",
115
+ connector: "absolute top-7 -left-1.5 w-px h-full"
70
116
  },
71
117
  horizontal: {
72
118
  base: "relative mb-6 sm:mb-0",
@@ -75,10 +121,11 @@ export const timelineItem = tv({
75
121
  h3: "text-lg font-semibold text-gray-900 dark:text-white"
76
122
  },
77
123
  activity: {
78
- base: "mb-10 ms-6",
79
- div: "flex absolute -start-3 justify-center items-center w-6 h-6 bg-primary-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-primary-900",
124
+ base: "mb-10 ms-6 relative",
125
+ div: "flex absolute -left-4 top-1.5 justify-center items-center w-6 h-6 rounded-full ring-8",
80
126
  time: "mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",
81
- h3: "text-lg font-semibold text-gray-900 dark:text-white"
127
+ h3: "text-lg font-semibold text-gray-900 dark:text-white",
128
+ connector: "absolute top-7 -left-4 w-px h-full"
82
129
  },
83
130
  group: {
84
131
  base: "",
@@ -86,9 +133,154 @@ export const timelineItem = tv({
86
133
  time: "text-lg font-semibold text-gray-900 dark:text-white",
87
134
  h3: "text-lg font-semibold text-gray-900 dark:text-white"
88
135
  }
136
+ },
137
+ color: {
138
+ primary: {},
139
+ green: {},
140
+ orange: {},
141
+ red: {},
142
+ blue: {},
143
+ purple: {},
144
+ gray: {}
145
+ },
146
+ isLast: {
147
+ true: {},
148
+ false: {}
89
149
  }
90
150
  },
151
+ compoundVariants: [
152
+ // Vertical color variants
153
+ {
154
+ order: "vertical",
155
+ color: "primary",
156
+ class: {
157
+ div: colorVariants.primary.dot + " " + colorVariants.primary.ring,
158
+ svg: colorVariants.primary.icon,
159
+ connector: "bg-primary-200 dark:bg-primary-700"
160
+ }
161
+ },
162
+ {
163
+ order: "vertical",
164
+ color: "green",
165
+ class: {
166
+ div: colorVariants.green.dot + " " + colorVariants.green.ring,
167
+ svg: colorVariants.green.icon,
168
+ connector: "bg-green-200 dark:bg-green-700"
169
+ }
170
+ },
171
+ {
172
+ order: "vertical",
173
+ color: "orange",
174
+ class: {
175
+ div: colorVariants.orange.dot + " " + colorVariants.orange.ring,
176
+ svg: colorVariants.orange.icon,
177
+ connector: "bg-orange-200 dark:bg-orange-700"
178
+ }
179
+ },
180
+ {
181
+ order: "vertical",
182
+ color: "red",
183
+ class: {
184
+ div: colorVariants.red.dot + " " + colorVariants.red.ring,
185
+ svg: colorVariants.red.icon,
186
+ connector: "bg-red-200 dark:bg-red-700"
187
+ }
188
+ },
189
+ {
190
+ order: "vertical",
191
+ color: "blue",
192
+ class: {
193
+ div: colorVariants.blue.dot + " " + colorVariants.blue.ring,
194
+ svg: colorVariants.blue.icon,
195
+ connector: "bg-blue-200 dark:bg-blue-700"
196
+ }
197
+ },
198
+ {
199
+ order: "vertical",
200
+ color: "purple",
201
+ class: {
202
+ div: colorVariants.purple.dot + " " + colorVariants.purple.ring,
203
+ svg: colorVariants.purple.icon,
204
+ connector: "bg-purple-200 dark:bg-purple-700"
205
+ }
206
+ },
207
+ {
208
+ order: "vertical",
209
+ color: "gray",
210
+ class: {
211
+ div: colorVariants.gray.dot + " " + colorVariants.gray.ring,
212
+ svg: colorVariants.gray.icon,
213
+ connector: "bg-gray-200 dark:bg-gray-700"
214
+ }
215
+ },
216
+ // Horizontal color variants
217
+ {
218
+ order: "horizontal",
219
+ color: "primary",
220
+ class: {
221
+ div: colorVariants.primary.dot + " " + colorVariants.primary.ring,
222
+ svg: colorVariants.primary.icon
223
+ }
224
+ },
225
+ {
226
+ order: "horizontal",
227
+ color: "green",
228
+ class: {
229
+ div: colorVariants.green.dot + " " + colorVariants.green.ring,
230
+ svg: colorVariants.green.icon
231
+ }
232
+ },
233
+ {
234
+ order: "horizontal",
235
+ color: "orange",
236
+ class: {
237
+ div: colorVariants.orange.dot + " " + colorVariants.orange.ring,
238
+ svg: colorVariants.orange.icon
239
+ }
240
+ },
241
+ {
242
+ order: "horizontal",
243
+ color: "red",
244
+ class: {
245
+ div: colorVariants.red.dot + " " + colorVariants.red.ring,
246
+ svg: colorVariants.red.icon
247
+ }
248
+ },
249
+ {
250
+ order: "horizontal",
251
+ color: "blue",
252
+ class: {
253
+ div: colorVariants.blue.dot + " " + colorVariants.blue.ring,
254
+ svg: colorVariants.blue.icon
255
+ }
256
+ },
257
+ {
258
+ order: "horizontal",
259
+ color: "purple",
260
+ class: {
261
+ div: colorVariants.purple.dot + " " + colorVariants.purple.ring,
262
+ svg: colorVariants.purple.icon
263
+ }
264
+ },
265
+ {
266
+ order: "horizontal",
267
+ color: "gray",
268
+ class: {
269
+ div: colorVariants.gray.dot + " " + colorVariants.gray.ring,
270
+ svg: colorVariants.gray.icon
271
+ }
272
+ },
273
+ // Hide connector on last item
274
+ {
275
+ isLast: true,
276
+ class: {
277
+ connector: "hidden"
278
+ }
279
+ }
280
+ ],
91
281
  defaultVariants: {
92
- order: "default"
282
+ order: "default",
283
+ color: "primary",
284
+ isLast: false
93
285
  }
94
286
  });
@@ -61,7 +61,7 @@
61
61
  @component
62
62
  [Go to docs](https://flowbite-svelte.com/)
63
63
  ## Type
64
- [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1830)
64
+ [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1836)
65
65
  ## Props
66
66
  @prop children
67
67
  @prop icon
@@ -2,7 +2,7 @@ import type { ToastProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1830)
5
+ * [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1836)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1846)
31
+ [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1852)
32
32
  ## Props
33
33
  @prop type = "dark"
34
34
  @prop color = undefined
@@ -2,7 +2,7 @@ import type { TooltipProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1846)
5
+ * [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1852)
6
6
  * ## Props
7
7
  * @prop type = "dark"
8
8
  * @prop color = undefined
package/dist/types.d.ts CHANGED
@@ -1564,6 +1564,7 @@ export interface TimelineProps extends HTMLOlAttributes {
1564
1564
  children: Snippet;
1565
1565
  order?: TimelineVariants["order"];
1566
1566
  }
1567
+ type ColorVariant = "primary" | "green" | "orange" | "red" | "blue" | "purple" | "gray";
1567
1568
  export interface TimelineItemProps extends TimelineItemVariants, HTMLLiAttributes {
1568
1569
  children: Snippet;
1569
1570
  orientationSlot?: Snippet;
@@ -1575,6 +1576,10 @@ export interface TimelineItemProps extends TimelineItemVariants, HTMLLiAttribute
1575
1576
  timeClass?: string;
1576
1577
  h3Class?: string;
1577
1578
  dateFormat?: DateFormat;
1579
+ color?: ColorVariant;
1580
+ isLast?: boolean;
1581
+ connectorClass?: string;
1582
+ datePrefix?: string;
1578
1583
  }
1579
1584
  export interface ToastProps extends ToastVaraints, HTMLAttributes<HTMLDivElement> {
1580
1585
  children: Snippet;
@@ -43,7 +43,7 @@
43
43
  @component
44
44
  [Go to docs](https://flowbite-svelte.com/)
45
45
  ## Type
46
- [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1854)
46
+ [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1860)
47
47
  ## Props
48
48
  @prop children
49
49
  @prop color = "primary"
@@ -2,7 +2,7 @@ import type { AnchorProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1854)
5
+ * [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1860)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop color = "primary"
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1883)
31
+ [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1889)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop class: className
@@ -2,7 +2,7 @@ import type { BlockquoteProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1883)
5
+ * [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1889)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -24,7 +24,7 @@
24
24
  @component
25
25
  [Go to docs](https://flowbite-svelte.com/)
26
26
  ## Type
27
- [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1893)
27
+ [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1899)
28
28
  ## Props
29
29
  @prop children
30
30
  @prop tag
@@ -2,7 +2,7 @@ import type { DescriptionListProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1893)
5
+ * [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1899)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tag
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1899)
22
+ [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1905)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop tag = "h1"
@@ -2,7 +2,7 @@ import type { HeadingProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1899)
5
+ * [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1905)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tag = "h1"
@@ -49,7 +49,7 @@
49
49
  @component
50
50
  [Go to docs](https://flowbite-svelte.com/)
51
51
  ## Type
52
- [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1939)
52
+ [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1945)
53
53
  ## Props
54
54
  @prop src
55
55
  @prop href
@@ -2,7 +2,7 @@ import type { EnhandedImgProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1939)
5
+ * [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1945)
6
6
  * ## Props
7
7
  * @prop src
8
8
  * @prop href
@@ -49,7 +49,7 @@
49
49
  @component
50
50
  [Go to docs](https://flowbite-svelte.com/)
51
51
  ## Type
52
- [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1930)
52
+ [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1936)
53
53
  ## Props
54
54
  @prop size = "none"
55
55
  @prop effect = "none"
@@ -2,7 +2,7 @@ import type { ImgProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1930)
5
+ * [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1936)
6
6
  * ## Props
7
7
  * @prop size = "none"
8
8
  * @prop effect = "none"
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1952)
22
+ [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1958)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop class: className
@@ -2,7 +2,7 @@ import type { LayoutProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1952)
5
+ * [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1958)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -18,7 +18,7 @@
18
18
  @component
19
19
  [Go to docs](https://flowbite-svelte.com/)
20
20
  ## Type
21
- [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1965)
21
+ [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1971)
22
22
  ## Props
23
23
  @prop children
24
24
  @prop icon
@@ -2,7 +2,7 @@ import type { LiProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1965)
5
+ * [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1971)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1957)
31
+ [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1963)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop tag = "ul"
@@ -2,7 +2,7 @@ import type { ListProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1957)
5
+ * [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1963)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tag = "ul"
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1971)
20
+ [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1977)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { MarkProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1971)
5
+ * [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1977)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1976)
22
+ [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1982)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop class: className = "text-gray-900 dark:text-white"
@@ -2,7 +2,7 @@ import type { ParagraphProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1976)
5
+ * [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1982)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className = "text-gray-900 dark:text-white"
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1984)
20
+ [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1990)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { SecondaryProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1984)
5
+ * [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1990)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -34,7 +34,7 @@
34
34
  @component
35
35
  [Go to docs](https://flowbite-svelte.com/)
36
36
  ## Type
37
- [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1989)
37
+ [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1995)
38
38
  ## Props
39
39
  @prop children
40
40
  @prop class: className
@@ -2,7 +2,7 @@ import type { SpanProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1989)
5
+ * [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1995)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -50,7 +50,7 @@
50
50
  @component
51
51
  [Go to docs](https://flowbite-svelte.com/)
52
52
  ## Type
53
- [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2031)
53
+ [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2037)
54
54
  ## Props
55
55
  @prop placement = "top"
56
56
  @prop cords
@@ -2,7 +2,7 @@ import type { ArrowProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2031)
5
+ * [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2037)
6
6
  * ## Props
7
7
  * @prop placement = "top"
8
8
  * @prop cords
@@ -213,7 +213,7 @@
213
213
  @component
214
214
  [Go to docs](https://flowbite-svelte.com/)
215
215
  ## Type
216
- [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2011)
216
+ [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2017)
217
217
  ## Props
218
218
  @prop triggeredBy
219
219
  @prop triggerDelay = 200
@@ -2,7 +2,7 @@ import type { PopperProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2011)
5
+ * [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2017)
6
6
  * ## Props
7
7
  * @prop triggeredBy
8
8
  * @prop triggerDelay = 200
@@ -21,7 +21,7 @@
21
21
  @component
22
22
  [Go to docs](https://flowbite-svelte.com/)
23
23
  ## Type
24
- [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1998)
24
+ [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2004)
25
25
  ## Props
26
26
  @prop children
27
27
  @prop type = "video/mp4"
@@ -2,7 +2,7 @@ import type { VideoProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1998)
5
+ * [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2004)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop type = "video/mp4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "1.14.6",
3
+ "version": "1.15.0",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "author": {