flowbite-svelte 1.2.5 → 1.2.7

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 (45) hide show
  1. package/dist/buttons/Button.svelte +6 -4
  2. package/dist/buttons/Button.svelte.d.ts +2 -2
  3. package/dist/drawer/Drawer.svelte +1 -3
  4. package/dist/drawer/Drawer.svelte.d.ts +1 -1
  5. package/dist/forms/checkbox/index.d.ts +1 -1
  6. package/dist/forms/checkbox/index.js +1 -1
  7. package/dist/forms/dropzone/Dropzone.svelte +13 -10
  8. package/dist/forms/dropzone/Dropzone.svelte.d.ts +11 -10
  9. package/dist/forms/dropzone/index.d.ts +2 -3
  10. package/dist/forms/dropzone/index.js +2 -3
  11. package/dist/forms/fileupload/index.d.ts +2 -3
  12. package/dist/forms/fileupload/index.js +2 -3
  13. package/dist/forms/floating-label/index.d.ts +2 -3
  14. package/dist/forms/floating-label/index.js +2 -3
  15. package/dist/forms/helper/index.d.ts +2 -3
  16. package/dist/forms/helper/index.js +2 -3
  17. package/dist/forms/select/MultiSelect.svelte +1 -3
  18. package/dist/forms/select/MultiSelect.svelte.d.ts +1 -1
  19. package/dist/forms/select/Select.svelte +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +2 -2
  22. package/dist/modal/Modal.svelte +1 -4
  23. package/dist/modal/Modal.svelte.d.ts +1 -1
  24. package/dist/rating/theme.d.ts +3 -3
  25. package/dist/sidebar/Sidebar.svelte +1 -2
  26. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  27. package/dist/sidebar/theme.d.ts +3 -3
  28. package/dist/theme/index.d.ts +15 -15
  29. package/dist/timeline/theme.d.ts +9 -9
  30. package/dist/types.d.ts +8 -2
  31. package/dist/utils/Arrow.svelte +9 -13
  32. package/dist/utils/Arrow.svelte.d.ts +8 -9
  33. package/dist/utils/index.d.ts +1 -0
  34. package/dist/utils/index.js +1 -0
  35. package/package.json +19 -17
  36. /package/dist/forms/{input → input-field}/Input.svelte +0 -0
  37. /package/dist/forms/{input → input-field}/Input.svelte.d.ts +0 -0
  38. /package/dist/forms/{input → input-field}/index.d.ts +0 -0
  39. /package/dist/forms/{input → input-field}/index.js +0 -0
  40. /package/dist/forms/{input → input-field}/theme.d.ts +0 -0
  41. /package/dist/forms/{input → input-field}/theme.js +0 -0
  42. /package/dist/{steps → stepindicator}/StepIndicator.svelte +0 -0
  43. /package/dist/{steps → stepindicator}/StepIndicator.svelte.d.ts +0 -0
  44. /package/dist/{steps → stepindicator}/index.d.ts +0 -0
  45. /package/dist/{steps → stepindicator}/index.js +0 -0
@@ -8,11 +8,13 @@
8
8
  const group: SizeType = getContext("group");
9
9
  const ctxDisabled: boolean | undefined = getContext("disabled");
10
10
 
11
- let { children, onclick, pill, outline = false, size = group ? "sm" : "md", color = group ? (outline ? "dark" : "alternative") : "primary", shadow = false, tag = "button", disabled, class: className, ...restProps }: ButtonProps = $props();
11
+ let { children, onclick, pill, outline = false, size = "md", color = "primary", shadow = false, tag = "button", disabled, class: className, ...restProps }: ButtonProps = $props();
12
12
 
13
+ let actualSize = $derived(group ? "sm" : size);
14
+ let actualColor = $derived(group ? (outline ? "dark" : "alternative") : color);
13
15
  let isDisabled = $derived(Boolean(ctxDisabled) || Boolean(disabled));
14
16
 
15
- const { base, outline: outline_, shadow: shadow_ } = $derived(button({ color, size, disabled: isDisabled, pill, group: !!group }));
17
+ const { base, outline: outline_, shadow: shadow_ } = $derived(button({ color: actualColor, size: actualSize, disabled: isDisabled, pill, group: !!group }));
16
18
  let btnCls = $derived(twMerge(base(), outline && outline_(), shadow && shadow_(), clsx(className)));
17
19
  </script>
18
20
 
@@ -40,8 +42,8 @@
40
42
  @prop onclick
41
43
  @prop pill
42
44
  @prop outline = false
43
- @prop size = group ? "sm" : "md"
44
- @prop color = group ? (outline ? "dark" : "alternative") : "primary"
45
+ @prop size = "md"
46
+ @prop color = "primary"
45
47
  @prop shadow = false
46
48
  @prop tag = "button"
47
49
  @prop disabled
@@ -8,8 +8,8 @@ import type { ButtonProps } from "..";
8
8
  * @prop onclick
9
9
  * @prop pill
10
10
  * @prop outline = false
11
- * @prop size = group ? "sm" : "md"
12
- * @prop color = group ? (outline ? "dark" : "alternative") : "primary"
11
+ * @prop size = "md"
12
+ * @prop color = "primary"
13
13
  * @prop shadow = false
14
14
  * @prop tag = "button"
15
15
  * @prop disabled
@@ -1,11 +1,9 @@
1
1
  <script lang="ts">
2
- import type { ParamsType } from "../types";
2
+ import { type ParamsType, type DrawerProps, trapFocus } from "..";
3
3
  import { fly } from "svelte/transition";
4
4
  import { sineIn } from "svelte/easing";
5
5
  import { drawer } from ".";
6
- import type { DrawerProps } from "../types";
7
6
  import clsx from "clsx";
8
- import { trapFocus } from "../utils/actions.svelte";
9
7
 
10
8
  let { children, hidden = $bindable(), closeDrawer = () => (hidden = true), activateClickOutside = true, position, width, backdrop = true, backdropClass, placement = "left", class: className, transitionParams, transitionType = fly, ...restProps }: DrawerProps = $props();
11
9
 
@@ -1,4 +1,4 @@
1
- import type { DrawerProps } from "../types";
1
+ import { type DrawerProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
@@ -1,3 +1,3 @@
1
1
  export { default as Checkbox } from "./Checkbox.svelte";
2
- export { default as ChecboxButton } from "./CheckboxButton.svelte";
2
+ export { default as CheckboxButton } from "./CheckboxButton.svelte";
3
3
  export { checkbox, checkboxbutton } from "./theme";
@@ -1,3 +1,3 @@
1
1
  export { default as Checkbox } from "./Checkbox.svelte";
2
- export { default as ChecboxButton } from "./CheckboxButton.svelte";
2
+ export { default as CheckboxButton } from "./CheckboxButton.svelte";
3
3
  export { checkbox, checkboxbutton } from "./theme";
@@ -6,16 +6,7 @@
6
6
 
7
7
  type HTMLInputElementWithFiles = HTMLInputElement & { files: FileList | null };
8
8
 
9
- let {
10
- children,
11
- files = $bindable<FileList | null>(),
12
- class: className,
13
- ...restProps
14
- }: DropzoneProps & {
15
- ondrop?: DragEventHandler<HTMLButtonElement>;
16
- ondragover?: DragEventHandler<HTMLButtonElement>;
17
- onchange?: ChangeEventHandler<HTMLInputElementWithFiles>;
18
- } = $props();
9
+ let { children, files = $bindable<FileList | null>(), class: className, ...restProps }: DropzoneProps = $props();
19
10
 
20
11
  const base = $derived(dropzone({ class: clsx(className) }));
21
12
  let input: HTMLInputElement;
@@ -66,3 +57,15 @@
66
57
  <label class="hidden">
67
58
  <input {...restProps} bind:files bind:this={input} onchange={onChange} type="file" />
68
59
  </label>
60
+
61
+ <!--
62
+ @component
63
+ [Go to docs](https://flowbite-svelte.com/)
64
+ ## Type
65
+ [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L691)
66
+ ## Props
67
+ @prop children
68
+ @prop files = $bindable<FileList | null>()
69
+ @prop class: className
70
+ @prop ...restProps
71
+ -->
@@ -1,13 +1,14 @@
1
- import type { DragEventHandler, ChangeEventHandler } from "svelte/elements";
2
1
  import type { DropzoneProps } from "../../types";
3
- type HTMLInputElementWithFiles = HTMLInputElement & {
4
- files: FileList | null;
5
- };
6
- type $$ComponentProps = DropzoneProps & {
7
- ondrop?: DragEventHandler<HTMLButtonElement>;
8
- ondragover?: DragEventHandler<HTMLButtonElement>;
9
- onchange?: ChangeEventHandler<HTMLInputElementWithFiles>;
10
- };
11
- declare const Dropzone: import("svelte").Component<$$ComponentProps, {}, "files">;
2
+ /**
3
+ * [Go to docs](https://flowbite-svelte.com/)
4
+ * ## Type
5
+ * [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L691)
6
+ * ## Props
7
+ * @prop children
8
+ * @prop files = $bindable<FileList | null>()
9
+ * @prop class: className
10
+ * @prop ...restProps
11
+ */
12
+ declare const Dropzone: import("svelte").Component<DropzoneProps, {}, "files">;
12
13
  type Dropzone = ReturnType<typeof Dropzone>;
13
14
  export default Dropzone;
@@ -1,3 +1,2 @@
1
- import { dropzone } from "./theme";
2
- import Dropzone from "./Dropzone.svelte";
3
- export { Dropzone, dropzone };
1
+ export { dropzone } from "./theme";
2
+ export { default as Dropzone } from "./Dropzone.svelte";
@@ -1,3 +1,2 @@
1
- import { dropzone } from "./theme";
2
- import Dropzone from "./Dropzone.svelte";
3
- export { Dropzone, dropzone };
1
+ export { dropzone } from "./theme";
2
+ export { default as Dropzone } from "./Dropzone.svelte";
@@ -1,3 +1,2 @@
1
- import Fileupload from "./Fileupload.svelte";
2
- import { fileupload } from "./theme";
3
- export { Fileupload, fileupload };
1
+ export { default as Fileupload } from "./Fileupload.svelte";
2
+ export { fileupload } from "./theme";
@@ -1,3 +1,2 @@
1
- import Fileupload from "./Fileupload.svelte";
2
- import { fileupload } from "./theme";
3
- export { Fileupload, fileupload };
1
+ export { default as Fileupload } from "./Fileupload.svelte";
2
+ export { fileupload } from "./theme";
@@ -1,3 +1,2 @@
1
- import FloatingLabelInput from "./FloatingLabelInput.svelte";
2
- import { floatingLabelInput } from "./theme";
3
- export { FloatingLabelInput, floatingLabelInput };
1
+ export { default as FloatingLabelInput } from "./FloatingLabelInput.svelte";
2
+ export { floatingLabelInput } from "./theme";
@@ -1,3 +1,2 @@
1
- import FloatingLabelInput from "./FloatingLabelInput.svelte";
2
- import { floatingLabelInput } from "./theme";
3
- export { FloatingLabelInput, floatingLabelInput };
1
+ export { default as FloatingLabelInput } from "./FloatingLabelInput.svelte";
2
+ export { floatingLabelInput } from "./theme";
@@ -1,3 +1,2 @@
1
- import Helper from "./Helper.svelte";
2
- import { helper } from "./theme";
3
- export { Helper, helper };
1
+ export { default as Helper } from "./Helper.svelte";
2
+ export { helper } from "./theme";
@@ -1,3 +1,2 @@
1
- import Helper from "./Helper.svelte";
2
- import { helper } from "./theme";
3
- export { Helper, helper };
1
+ export { default as Helper } from "./Helper.svelte";
2
+ export { helper } from "./theme";
@@ -1,10 +1,8 @@
1
1
  <script lang="ts" generics="T">
2
- import Badge from "../../badge/Badge.svelte";
3
- import CloseButton from "../../utils/CloseButton.svelte";
2
+ import { Badge, CloseButton, type MultiSelectProps, type SelectOptionType } from "../..";
4
3
  import clsx from "clsx";
5
4
  import { twMerge } from "tailwind-merge";
6
5
  import { multiselect } from "./theme";
7
- import type { MultiSelectProps, SelectOptionType } from "../../types";
8
6
 
9
7
  // Consider reusing that component - https://svelecte.vercel.app/
10
8
 
@@ -1,4 +1,4 @@
1
- import type { MultiSelectProps } from "../../types";
1
+ import { type MultiSelectProps } from "../..";
2
2
  declare class __sveltets_Render<T> {
3
3
  props(): MultiSelectProps<T>;
4
4
  events(): {};
@@ -23,8 +23,8 @@
23
23
  {/if}
24
24
 
25
25
  {#if items}
26
- {#each items as { value, name }}
27
- <option {value}>{name}</option>
26
+ {#each items as item}
27
+ <option value={item.value} disabled={item.disabled}>{item.name}</option>
28
28
  {/each}
29
29
  {/if}
30
30
 
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export * from "./sidebar";
32
32
  export * from "./skeleton";
33
33
  export * from "./speed-dial";
34
34
  export * from "./spinner";
35
- export * from "./steps";
35
+ export * from "./stepindicator";
36
36
  export * from "./tabs";
37
37
  export * from "./table";
38
38
  export * from "./timeline";
@@ -46,7 +46,7 @@ export * from "./forms/dropzone";
46
46
  export * from "./forms/fileupload";
47
47
  export * from "./forms/floating-label";
48
48
  export * from "./forms/helper";
49
- export * from "./forms/input";
49
+ export * from "./forms/input-field";
50
50
  export * from "./forms/input-addon";
51
51
  export * from "./forms/label";
52
52
  export * from "./forms/select";
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ export * from "./sidebar";
32
32
  export * from "./skeleton";
33
33
  export * from "./speed-dial";
34
34
  export * from "./spinner";
35
- export * from "./steps";
35
+ export * from "./stepindicator";
36
36
  export * from "./tabs";
37
37
  export * from "./table";
38
38
  export * from "./timeline";
@@ -47,7 +47,7 @@ export * from "./forms/dropzone";
47
47
  export * from "./forms/fileupload";
48
48
  export * from "./forms/floating-label";
49
49
  export * from "./forms/helper";
50
- export * from "./forms/input";
50
+ export * from "./forms/input-field";
51
51
  export * from "./forms/input-addon";
52
52
  export * from "./forms/label";
53
53
  export * from "./forms/select";
@@ -1,12 +1,9 @@
1
1
  <script lang="ts">
2
- import type { ParamsType } from "../types";
3
- import CloseButton from "../utils/CloseButton.svelte";
2
+ import { type ParamsType, type ModalProps, CloseButton, trapFocus } from "..";
4
3
  import clsx from "clsx";
5
4
  import { sineIn } from "svelte/easing";
6
5
  import { fade } from "svelte/transition";
7
6
  import { modal as modalTheme } from ".";
8
- import type { ModalProps } from "../types";
9
- import { trapFocus } from "../utils/actions.svelte";
10
7
 
11
8
  let { children, oncancel, onclose, modal = true, autoclose = false, header, footer, title, open = $bindable(false), permanent = false, dismissable = true, closeBtnClass, headerClass, bodyClass, footerClass, outsideclose = true, size = "md", placement, class: className, params, transition = fade, ...restProps }: ModalProps = $props();
12
9
 
@@ -1,4 +1,4 @@
1
- import type { ModalProps } from "../types";
1
+ import { type ModalProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
@@ -83,10 +83,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
83
83
  [key: string]: import("tailwind-variants").ClassValue | {
84
84
  div?: import("tailwind-variants").ClassValue;
85
85
  img?: import("tailwind-variants").ClassValue;
86
+ article?: import("tailwind-variants").ClassValue;
86
87
  ul?: import("tailwind-variants").ClassValue;
87
88
  div2?: import("tailwind-variants").ClassValue;
88
89
  div3?: import("tailwind-variants").ClassValue;
89
- article?: import("tailwind-variants").ClassValue;
90
90
  li?: import("tailwind-variants").ClassValue;
91
91
  };
92
92
  };
@@ -95,10 +95,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
95
95
  [x: string]: import("tailwind-variants").ClassValue | {
96
96
  div?: import("tailwind-variants").ClassValue;
97
97
  img?: import("tailwind-variants").ClassValue;
98
+ article?: import("tailwind-variants").ClassValue;
98
99
  ul?: import("tailwind-variants").ClassValue;
99
100
  div2?: import("tailwind-variants").ClassValue;
100
101
  div3?: import("tailwind-variants").ClassValue;
101
- article?: import("tailwind-variants").ClassValue;
102
102
  li?: import("tailwind-variants").ClassValue;
103
103
  };
104
104
  };
@@ -115,10 +115,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
115
115
  [key: string]: import("tailwind-variants").ClassValue | {
116
116
  div?: import("tailwind-variants").ClassValue;
117
117
  img?: import("tailwind-variants").ClassValue;
118
+ article?: import("tailwind-variants").ClassValue;
118
119
  ul?: import("tailwind-variants").ClassValue;
119
120
  div2?: import("tailwind-variants").ClassValue;
120
121
  div3?: import("tailwind-variants").ClassValue;
121
- article?: import("tailwind-variants").ClassValue;
122
122
  li?: import("tailwind-variants").ClassValue;
123
123
  };
124
124
  };
@@ -4,9 +4,8 @@
4
4
  import { writable } from "svelte/store";
5
5
  import { sineIn } from "svelte/easing";
6
6
  import { sidebar } from ".";
7
- import type { SidebarProps, SidebarCtxType } from "../types";
8
7
  import clsx from "clsx";
9
- import { trapFocus } from "../utils/actions.svelte";
8
+ import { trapFocus, type SidebarProps, type SidebarCtxType } from "..";
10
9
 
11
10
  let { children, isOpen = false, closeSidebar, isSingle = true, breakpoint = "md", position = "fixed", activateClickOutside = true, backdrop = true, backdropClass, transition = fly, params, divClass, ariaLabel, nonActiveClass, activeClass, activeUrl = "", class: className, ...restProps }: SidebarProps = $props();
12
11
 
@@ -1,4 +1,4 @@
1
- import type { SidebarProps } from "../types";
1
+ import { type SidebarProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
@@ -238,8 +238,8 @@ export declare const sidebardropdownwrapper: import("tailwind-variants").TVRetur
238
238
  base?: import("tailwind-variants").ClassValue;
239
239
  svg?: import("tailwind-variants").ClassValue;
240
240
  span?: import("tailwind-variants").ClassValue;
241
- ul?: import("tailwind-variants").ClassValue;
242
241
  btn?: import("tailwind-variants").ClassValue;
242
+ ul?: import("tailwind-variants").ClassValue;
243
243
  };
244
244
  };
245
245
  } | {
@@ -248,8 +248,8 @@ export declare const sidebardropdownwrapper: import("tailwind-variants").TVRetur
248
248
  base?: import("tailwind-variants").ClassValue;
249
249
  svg?: import("tailwind-variants").ClassValue;
250
250
  span?: import("tailwind-variants").ClassValue;
251
- ul?: import("tailwind-variants").ClassValue;
252
251
  btn?: import("tailwind-variants").ClassValue;
252
+ ul?: import("tailwind-variants").ClassValue;
253
253
  };
254
254
  };
255
255
  } | {}, {
@@ -264,8 +264,8 @@ export declare const sidebardropdownwrapper: import("tailwind-variants").TVRetur
264
264
  base?: import("tailwind-variants").ClassValue;
265
265
  svg?: import("tailwind-variants").ClassValue;
266
266
  span?: import("tailwind-variants").ClassValue;
267
- ul?: import("tailwind-variants").ClassValue;
268
267
  btn?: import("tailwind-variants").ClassValue;
268
+ ul?: import("tailwind-variants").ClassValue;
269
269
  };
270
270
  };
271
271
  } | {}, {
@@ -4516,10 +4516,10 @@ export declare const baseThemes: {
4516
4516
  [key: string]: import("tailwind-variants").ClassValue | {
4517
4517
  div?: import("tailwind-variants").ClassValue;
4518
4518
  img?: import("tailwind-variants").ClassValue;
4519
+ article?: import("tailwind-variants").ClassValue;
4519
4520
  ul?: import("tailwind-variants").ClassValue;
4520
4521
  div2?: import("tailwind-variants").ClassValue;
4521
4522
  div3?: import("tailwind-variants").ClassValue;
4522
- article?: import("tailwind-variants").ClassValue;
4523
4523
  li?: import("tailwind-variants").ClassValue;
4524
4524
  };
4525
4525
  };
@@ -4528,10 +4528,10 @@ export declare const baseThemes: {
4528
4528
  [x: string]: import("tailwind-variants").ClassValue | {
4529
4529
  div?: import("tailwind-variants").ClassValue;
4530
4530
  img?: import("tailwind-variants").ClassValue;
4531
+ article?: import("tailwind-variants").ClassValue;
4531
4532
  ul?: import("tailwind-variants").ClassValue;
4532
4533
  div2?: import("tailwind-variants").ClassValue;
4533
4534
  div3?: import("tailwind-variants").ClassValue;
4534
- article?: import("tailwind-variants").ClassValue;
4535
4535
  li?: import("tailwind-variants").ClassValue;
4536
4536
  };
4537
4537
  };
@@ -4548,10 +4548,10 @@ export declare const baseThemes: {
4548
4548
  [key: string]: import("tailwind-variants").ClassValue | {
4549
4549
  div?: import("tailwind-variants").ClassValue;
4550
4550
  img?: import("tailwind-variants").ClassValue;
4551
+ article?: import("tailwind-variants").ClassValue;
4551
4552
  ul?: import("tailwind-variants").ClassValue;
4552
4553
  div2?: import("tailwind-variants").ClassValue;
4553
4554
  div3?: import("tailwind-variants").ClassValue;
4554
- article?: import("tailwind-variants").ClassValue;
4555
4555
  li?: import("tailwind-variants").ClassValue;
4556
4556
  };
4557
4557
  };
@@ -4871,8 +4871,8 @@ export declare const baseThemes: {
4871
4871
  base?: import("tailwind-variants").ClassValue;
4872
4872
  svg?: import("tailwind-variants").ClassValue;
4873
4873
  span?: import("tailwind-variants").ClassValue;
4874
- ul?: import("tailwind-variants").ClassValue;
4875
4874
  btn?: import("tailwind-variants").ClassValue;
4875
+ ul?: import("tailwind-variants").ClassValue;
4876
4876
  };
4877
4877
  };
4878
4878
  } | {
@@ -4881,8 +4881,8 @@ export declare const baseThemes: {
4881
4881
  base?: import("tailwind-variants").ClassValue;
4882
4882
  svg?: import("tailwind-variants").ClassValue;
4883
4883
  span?: import("tailwind-variants").ClassValue;
4884
- ul?: import("tailwind-variants").ClassValue;
4885
4884
  btn?: import("tailwind-variants").ClassValue;
4885
+ ul?: import("tailwind-variants").ClassValue;
4886
4886
  };
4887
4887
  };
4888
4888
  } | {}, {
@@ -4897,8 +4897,8 @@ export declare const baseThemes: {
4897
4897
  base?: import("tailwind-variants").ClassValue;
4898
4898
  svg?: import("tailwind-variants").ClassValue;
4899
4899
  span?: import("tailwind-variants").ClassValue;
4900
- ul?: import("tailwind-variants").ClassValue;
4901
4900
  btn?: import("tailwind-variants").ClassValue;
4901
+ ul?: import("tailwind-variants").ClassValue;
4902
4902
  };
4903
4903
  };
4904
4904
  } | {}, {
@@ -6148,12 +6148,12 @@ export declare const baseThemes: {
6148
6148
  [key: string]: import("tailwind-variants").ClassValue | {
6149
6149
  title?: import("tailwind-variants").ClassValue;
6150
6150
  span?: import("tailwind-variants").ClassValue;
6151
+ img?: import("tailwind-variants").ClassValue;
6152
+ text?: import("tailwind-variants").ClassValue;
6153
+ time?: import("tailwind-variants").ClassValue;
6151
6154
  innerDiv?: import("tailwind-variants").ClassValue;
6152
6155
  outerDiv?: import("tailwind-variants").ClassValue;
6153
- img?: import("tailwind-variants").ClassValue;
6154
6156
  li?: import("tailwind-variants").ClassValue;
6155
- time?: import("tailwind-variants").ClassValue;
6156
- text?: import("tailwind-variants").ClassValue;
6157
6157
  };
6158
6158
  };
6159
6159
  } | {
@@ -6161,12 +6161,12 @@ export declare const baseThemes: {
6161
6161
  [x: string]: import("tailwind-variants").ClassValue | {
6162
6162
  title?: import("tailwind-variants").ClassValue;
6163
6163
  span?: import("tailwind-variants").ClassValue;
6164
+ img?: import("tailwind-variants").ClassValue;
6165
+ text?: import("tailwind-variants").ClassValue;
6166
+ time?: import("tailwind-variants").ClassValue;
6164
6167
  innerDiv?: import("tailwind-variants").ClassValue;
6165
6168
  outerDiv?: import("tailwind-variants").ClassValue;
6166
- img?: import("tailwind-variants").ClassValue;
6167
6169
  li?: import("tailwind-variants").ClassValue;
6168
- time?: import("tailwind-variants").ClassValue;
6169
- text?: import("tailwind-variants").ClassValue;
6170
6170
  };
6171
6171
  };
6172
6172
  } | {}, {
@@ -6183,12 +6183,12 @@ export declare const baseThemes: {
6183
6183
  [key: string]: import("tailwind-variants").ClassValue | {
6184
6184
  title?: import("tailwind-variants").ClassValue;
6185
6185
  span?: import("tailwind-variants").ClassValue;
6186
+ img?: import("tailwind-variants").ClassValue;
6187
+ text?: import("tailwind-variants").ClassValue;
6188
+ time?: import("tailwind-variants").ClassValue;
6186
6189
  innerDiv?: import("tailwind-variants").ClassValue;
6187
6190
  outerDiv?: import("tailwind-variants").ClassValue;
6188
- img?: import("tailwind-variants").ClassValue;
6189
6191
  li?: import("tailwind-variants").ClassValue;
6190
- time?: import("tailwind-variants").ClassValue;
6191
- text?: import("tailwind-variants").ClassValue;
6192
6192
  };
6193
6193
  };
6194
6194
  } | {}, {
@@ -5,12 +5,12 @@ export declare const activityitem: import("tailwind-variants").TVReturnType<{
5
5
  [key: string]: import("tailwind-variants").ClassValue | {
6
6
  title?: import("tailwind-variants").ClassValue;
7
7
  span?: import("tailwind-variants").ClassValue;
8
+ img?: import("tailwind-variants").ClassValue;
9
+ text?: import("tailwind-variants").ClassValue;
10
+ time?: import("tailwind-variants").ClassValue;
8
11
  innerDiv?: import("tailwind-variants").ClassValue;
9
12
  outerDiv?: import("tailwind-variants").ClassValue;
10
- img?: import("tailwind-variants").ClassValue;
11
13
  li?: import("tailwind-variants").ClassValue;
12
- time?: import("tailwind-variants").ClassValue;
13
- text?: import("tailwind-variants").ClassValue;
14
14
  };
15
15
  };
16
16
  } | {
@@ -18,12 +18,12 @@ export declare const activityitem: import("tailwind-variants").TVReturnType<{
18
18
  [x: string]: import("tailwind-variants").ClassValue | {
19
19
  title?: import("tailwind-variants").ClassValue;
20
20
  span?: import("tailwind-variants").ClassValue;
21
+ img?: import("tailwind-variants").ClassValue;
22
+ text?: import("tailwind-variants").ClassValue;
23
+ time?: import("tailwind-variants").ClassValue;
21
24
  innerDiv?: import("tailwind-variants").ClassValue;
22
25
  outerDiv?: import("tailwind-variants").ClassValue;
23
- img?: import("tailwind-variants").ClassValue;
24
26
  li?: import("tailwind-variants").ClassValue;
25
- time?: import("tailwind-variants").ClassValue;
26
- text?: import("tailwind-variants").ClassValue;
27
27
  };
28
28
  };
29
29
  } | {}, {
@@ -40,12 +40,12 @@ export declare const activityitem: import("tailwind-variants").TVReturnType<{
40
40
  [key: string]: import("tailwind-variants").ClassValue | {
41
41
  title?: import("tailwind-variants").ClassValue;
42
42
  span?: import("tailwind-variants").ClassValue;
43
+ img?: import("tailwind-variants").ClassValue;
44
+ text?: import("tailwind-variants").ClassValue;
45
+ time?: import("tailwind-variants").ClassValue;
43
46
  innerDiv?: import("tailwind-variants").ClassValue;
44
47
  outerDiv?: import("tailwind-variants").ClassValue;
45
- img?: import("tailwind-variants").ClassValue;
46
48
  li?: import("tailwind-variants").ClassValue;
47
- time?: import("tailwind-variants").ClassValue;
48
- text?: import("tailwind-variants").ClassValue;
49
49
  };
50
50
  };
51
51
  } | {}, {
package/dist/types.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { TransitionConfig, FadeParams, BlurParams, FlyParams, SlideParams,
3
3
  import { type Writable } from "svelte/store";
4
4
  import type { Snippet, Component } from "svelte";
5
5
  import { tv, type VariantProps } from "tailwind-variants";
6
- import type { Middleware, Placement, Strategy } from "@floating-ui/dom";
6
+ import type { Coords, Middleware, Placement, Strategy } from "@floating-ui/dom";
7
7
  import type { AlertVariants } from "./alert/theme";
8
8
  import type { BadgeVariants } from "./badge/theme";
9
9
  import type { BannerVariants } from "./banner/theme";
@@ -16,7 +16,7 @@ import type { DrawerVariants } from "./drawer/theme";
16
16
  import type { FileuploadViariants } from "./forms/fileupload/theme";
17
17
  import type { FloatingLabelInputVaratiants } from "./forms/floating-label/theme";
18
18
  import type { HelperVariants } from "./forms/helper/theme";
19
- import type { InputVariants } from "./forms/input/theme";
19
+ import type { InputVariants } from "./forms/input-field/theme";
20
20
  import type { LabelVariants } from "./forms/label/theme";
21
21
  import type { RadioVariants } from "./forms/radio/theme";
22
22
  import type { RangeVariants } from "./forms/range/theme";
@@ -1575,4 +1575,10 @@ export interface PopperProps extends Omit<HTMLAttributes<HTMLDivElement>, "onbef
1575
1575
  transitionParams?: ParamsType;
1576
1576
  isOpen?: boolean | undefined;
1577
1577
  }
1578
+ export interface ArrowProps {
1579
+ placement?: Placement;
1580
+ cords: Partial<Coords>;
1581
+ strategy?: "absolute" | "fixed";
1582
+ class?: string;
1583
+ }
1578
1584
  export {};
@@ -1,18 +1,9 @@
1
1
  <script lang="ts">
2
- import type { Coords, Placement, Side } from "@floating-ui/dom";
2
+ import type { Side } from "@floating-ui/dom";
3
3
  import { getOppositePlacement, getSide } from "@floating-ui/utils";
4
+ import { type ArrowProps } from "..";
4
5
 
5
- let {
6
- placement = "top",
7
- cords,
8
- strategy = "absolute",
9
- class: className = ""
10
- }: {
11
- placement?: Placement;
12
- cords: Partial<Coords>;
13
- strategy?: "absolute" | "fixed";
14
- class?: string;
15
- } = $props();
6
+ let { placement = "top", cords, strategy = "absolute", class: className = "" }: ArrowProps = $props();
16
7
 
17
8
  const px = (n: number | undefined) => (n ? `${n}px` : "");
18
9
 
@@ -58,8 +49,13 @@
58
49
  <!--
59
50
  @component
60
51
  [Go to docs](https://flowbite-svelte.com/)
52
+ ## Type
53
+ [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1861)
61
54
  ## Props
62
- @props:
55
+ @prop placement = "top"
56
+ @prop cords
57
+ @prop strategy = "absolute"
58
+ @prop class: className = ""
63
59
  -->
64
60
 
65
61
  <style>
@@ -1,15 +1,14 @@
1
- import type { Coords, Placement } from "@floating-ui/dom";
2
- type $$ComponentProps = {
3
- placement?: Placement;
4
- cords: Partial<Coords>;
5
- strategy?: "absolute" | "fixed";
6
- class?: string;
7
- };
1
+ import { type ArrowProps } from "..";
8
2
  /**
9
3
  * [Go to docs](https://flowbite-svelte.com/)
4
+ * ## Type
5
+ * [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1861)
10
6
  * ## Props
11
- * @props:
7
+ * @prop placement = "top"
8
+ * @prop cords
9
+ * @prop strategy = "absolute"
10
+ * @prop class: className = ""
12
11
  */
13
- declare const Arrow: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ declare const Arrow: import("svelte").Component<ArrowProps, {}, "">;
14
13
  type Arrow = ReturnType<typeof Arrow>;
15
14
  export default Arrow;
@@ -1,4 +1,5 @@
1
1
  import { type ClassValue } from "clsx";
2
2
  export { default as CloseButton } from "./CloseButton.svelte";
3
3
  export { closeButtonVariants } from "./theme";
4
+ export { trapFocus } from "./actions.svelte";
4
5
  export declare function cn(...inputs: ClassValue[]): string;
@@ -2,6 +2,7 @@ import { clsx } from "clsx";
2
2
  import { twMerge } from "tailwind-merge";
3
3
  export { default as CloseButton } from "./CloseButton.svelte";
4
4
  export { closeButtonVariants } from "./theme";
5
+ export { trapFocus } from "./actions.svelte";
5
6
  export function cn(...inputs) {
6
7
  return twMerge(clsx(inputs));
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "author": {
@@ -16,7 +16,7 @@
16
16
  "@docsearch/css": "^3.9.0",
17
17
  "@docsearch/js": "^3.9.0",
18
18
  "@eslint/compat": "^1.2.9",
19
- "@eslint/js": "^9.26.0",
19
+ "@eslint/js": "^9.27.0",
20
20
  "@playwright/test": "^1.52.0",
21
21
  "@sveltejs/adapter-auto": "^6.0.1",
22
22
  "@sveltejs/adapter-vercel": "^5.7.2",
@@ -24,31 +24,32 @@
24
24
  "@sveltejs/package": "2.3.11",
25
25
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
26
26
  "@svitejs/changesets-changelog-github-compact": "^1.2.0",
27
- "@tailwindcss/vite": "^4.1.6",
27
+ "@tailwindcss/vite": "^4.1.7",
28
28
  "@testing-library/jest-dom": "^6.6.3",
29
29
  "@testing-library/svelte": "^5.2.7",
30
30
  "clsx": "^2.1.1",
31
31
  "dayjs": "^1.11.13",
32
32
  "deepmerge": "^4.3.1",
33
- "eslint": "^9.26.0",
33
+ "eslint": "^9.27.0",
34
34
  "eslint-config-prettier": "^10.1.5",
35
- "eslint-plugin-svelte": "^3.6.0",
35
+ "eslint-plugin-svelte": "^3.8.1",
36
36
  "flowbite-svelte-icons": "^2.1.1",
37
37
  "globals": "^16.1.0",
38
38
  "jsdom": "^26.1.0",
39
39
  "mdsvex": "^0.12.6",
40
40
  "mdsvexamples": "^0.5.0",
41
41
  "prettier": "^3.5.3",
42
- "prettier-plugin-svelte": "^3.3.3",
42
+ "prettier-plugin-svelte": "^3.4.0",
43
43
  "prettier-plugin-tailwindcss": "^0.6.11",
44
44
  "prism-themes": "^1.9.0",
45
45
  "publint": "^0.3.12",
46
- "svelte": "^5.28.6",
47
- "svelte-check": "^4.1.7",
48
- "svelte-lib-helpers": "^0.4.28",
46
+ "svelte": "^5.30.2",
47
+ "svelte-check": "^4.2.1",
48
+ "svelte-doc-llm": "^0.2.1",
49
+ "svelte-lib-helpers": "^0.4.30",
49
50
  "svelte-meta-tags": "^4.3.0",
50
51
  "svelte-rune-highlight": "^0.6.6",
51
- "tailwindcss": "^4.1.6",
52
+ "tailwindcss": "^4.1.7",
52
53
  "tsx": "^4.19.4",
53
54
  "typescript": "^5.8.3",
54
55
  "typescript-eslint": "8.31.1",
@@ -109,7 +110,7 @@
109
110
  "flowbite": "^3.1.2",
110
111
  "tailwind-merge": "^3.3.0",
111
112
  "tailwind-variants": "^1.0.0",
112
- "virtua": "^0.41.0"
113
+ "virtua": "^0.41.2"
113
114
  },
114
115
  "files": [
115
116
  "dist",
@@ -335,14 +336,14 @@
335
336
  "types": "./dist/forms/helper/Helper.svelte.d.ts",
336
337
  "svelte": "./dist/forms/helper/Helper.svelte"
337
338
  },
338
- "./Input.svelte": {
339
- "types": "./dist/forms/input/Input.svelte.d.ts",
340
- "svelte": "./dist/forms/input/Input.svelte"
341
- },
342
339
  "./InputAddon.svelte": {
343
340
  "types": "./dist/forms/input-addon/InputAddon.svelte.d.ts",
344
341
  "svelte": "./dist/forms/input-addon/InputAddon.svelte"
345
342
  },
343
+ "./Input.svelte": {
344
+ "types": "./dist/forms/input-field/Input.svelte.d.ts",
345
+ "svelte": "./dist/forms/input-field/Input.svelte"
346
+ },
346
347
  "./Label.svelte": {
347
348
  "types": "./dist/forms/label/Label.svelte.d.ts",
348
349
  "svelte": "./dist/forms/label/Label.svelte"
@@ -580,8 +581,8 @@
580
581
  "svelte": "./dist/spinner/Spinner.svelte"
581
582
  },
582
583
  "./StepIndicator.svelte": {
583
- "types": "./dist/steps/StepIndicator.svelte.d.ts",
584
- "svelte": "./dist/steps/StepIndicator.svelte"
584
+ "types": "./dist/stepindicator/StepIndicator.svelte.d.ts",
585
+ "svelte": "./dist/stepindicator/StepIndicator.svelte"
585
586
  },
586
587
  "./Table.svelte": {
587
588
  "types": "./dist/table/Table.svelte.d.ts",
@@ -758,6 +759,7 @@
758
759
  "gen:component-data-prop-value": "svelte-lib-helpers component-data-prop-value themesberg/flowbite-svelte",
759
760
  "copy:packagejson": "svelte-lib-helpers package",
760
761
  "lib-helpers": "pnpm gen:component-data-prop-value && pnpm gen:docspropvalue && pnpm format && pnpm package && pnpm gen:exports && pnpm copy:packagejson",
762
+ "llm": "svelte-doc-llm",
761
763
  "ch": "npx changeset",
762
764
  "cv": "npx changeset version",
763
765
  "cp": "npx changeset publish"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes