flowbite-svelte 1.11.3 → 1.11.4

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 (204) hide show
  1. package/dist/alert/Alert.svelte +1 -1
  2. package/dist/badge/Badge.svelte +1 -1
  3. package/dist/banner/Banner.svelte +1 -1
  4. package/dist/bottom-navigation/theme.d.ts +9 -9
  5. package/dist/device-mockups/theme.d.ts +138 -138
  6. package/dist/drawer/Drawer.svelte +1 -1
  7. package/dist/drawer/theme.d.ts +12 -12
  8. package/dist/dropdown/DropdownItem.svelte +6 -6
  9. package/dist/dropdown/theme.d.ts +21 -15
  10. package/dist/dropdown/theme.js +3 -2
  11. package/dist/footer/theme.d.ts +33 -33
  12. package/dist/forms/fileupload/Fileupload.svelte +1 -1
  13. package/dist/forms/floating-label/FloatingLabelInput.svelte +1 -1
  14. package/dist/forms/input-field/Input.svelte +1 -1
  15. package/dist/forms/search/Search.svelte +1 -1
  16. package/dist/forms/select/MultiSelect.svelte +1 -1
  17. package/dist/forms/select/Select.svelte +1 -1
  18. package/dist/forms/tags/theme.d.ts +27 -27
  19. package/dist/forms/textarea/Textarea.svelte +1 -1
  20. package/dist/gallery/theme.d.ts +9 -9
  21. package/dist/modal/Modal.svelte +1 -1
  22. package/dist/navbar/NavBrand.svelte +1 -1
  23. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  24. package/dist/navbar/NavContainer.svelte +1 -1
  25. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  26. package/dist/navbar/NavHamburger.svelte +5 -5
  27. package/dist/navbar/NavHamburger.svelte.d.ts +83 -35
  28. package/dist/navbar/NavLi.svelte +4 -3
  29. package/dist/navbar/NavLi.svelte.d.ts +1 -1
  30. package/dist/navbar/NavUl.svelte +4 -3
  31. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  32. package/dist/navbar/Navbar.svelte +4 -2
  33. package/dist/navbar/Navbar.svelte.d.ts +2 -1
  34. package/dist/navbar/theme.d.ts +140 -19
  35. package/dist/navbar/theme.js +123 -12
  36. package/dist/pagination/Pagination.svelte +1 -1
  37. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  38. package/dist/pagination/PaginationButton.svelte +1 -1
  39. package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
  40. package/dist/pagination/PaginationItem.svelte +1 -1
  41. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  42. package/dist/pagination/PaginationNav.svelte +1 -1
  43. package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
  44. package/dist/popover/Popover.svelte +1 -1
  45. package/dist/popover/Popover.svelte.d.ts +1 -1
  46. package/dist/progress/Progressbar.svelte +1 -1
  47. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  48. package/dist/progress/Progressradial.svelte +1 -1
  49. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  50. package/dist/rating/AdvancedRating.svelte +1 -1
  51. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  52. package/dist/rating/CustomIcon.svelte +1 -1
  53. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  54. package/dist/rating/Heart.svelte +1 -1
  55. package/dist/rating/Heart.svelte.d.ts +1 -1
  56. package/dist/rating/Rating.svelte +1 -1
  57. package/dist/rating/Rating.svelte.d.ts +1 -1
  58. package/dist/rating/RatingComment.svelte +1 -1
  59. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  60. package/dist/rating/Review.svelte +1 -1
  61. package/dist/rating/Review.svelte.d.ts +1 -1
  62. package/dist/rating/ScoreRating.svelte +1 -1
  63. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  64. package/dist/rating/Star.svelte +1 -1
  65. package/dist/rating/Star.svelte.d.ts +1 -1
  66. package/dist/rating/Thumbup.svelte +1 -1
  67. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  68. package/dist/rating/theme.d.ts +72 -72
  69. package/dist/sidebar/Sidebar.svelte +1 -1
  70. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  71. package/dist/sidebar/SidebarBrand.svelte +1 -1
  72. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  73. package/dist/sidebar/SidebarButton.svelte +1 -1
  74. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  75. package/dist/sidebar/SidebarCta.svelte +1 -1
  76. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  77. package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
  78. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  79. package/dist/sidebar/SidebarGroup.svelte +1 -1
  80. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  81. package/dist/sidebar/SidebarItem.svelte +1 -1
  82. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  83. package/dist/sidebar/theme.d.ts +42 -42
  84. package/dist/skeleton/CardPlaceholder.svelte +1 -1
  85. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  86. package/dist/skeleton/ImagePlaceholder.svelte +1 -1
  87. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  88. package/dist/skeleton/ListPlaceholder.svelte +1 -1
  89. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  90. package/dist/skeleton/Skeleton.svelte +1 -1
  91. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  92. package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
  93. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
  94. package/dist/skeleton/TextPlaceholder.svelte +1 -1
  95. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  96. package/dist/skeleton/VideoPlaceholder.svelte +1 -1
  97. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  98. package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
  99. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  100. package/dist/skeleton/theme.d.ts +33 -33
  101. package/dist/speed-dial/SpeedDial.svelte +1 -1
  102. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  103. package/dist/speed-dial/SpeedDialButton.svelte +1 -1
  104. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  105. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  106. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  107. package/dist/spinner/Spinner.svelte +1 -1
  108. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  109. package/dist/stepindicator/StepIndicator.svelte +1 -1
  110. package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
  111. package/dist/stepper/BreadcrumbStepper.svelte +1 -1
  112. package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
  113. package/dist/stepper/DetailedStepper.svelte +1 -1
  114. package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
  115. package/dist/stepper/ProgressStepper.svelte +1 -1
  116. package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
  117. package/dist/stepper/Stepper.svelte +1 -1
  118. package/dist/stepper/Stepper.svelte.d.ts +1 -1
  119. package/dist/stepper/TimelineStepper.svelte +1 -1
  120. package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
  121. package/dist/stepper/VerticalStepper.svelte +1 -1
  122. package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
  123. package/dist/table/Table.svelte +1 -1
  124. package/dist/table/Table.svelte.d.ts +1 -1
  125. package/dist/table/TableBody.svelte +1 -1
  126. package/dist/table/TableBody.svelte.d.ts +1 -1
  127. package/dist/table/TableBodyCell.svelte +1 -1
  128. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  129. package/dist/table/TableBodyRow.svelte +1 -1
  130. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  131. package/dist/table/TableHead.svelte +1 -1
  132. package/dist/table/TableHead.svelte.d.ts +1 -1
  133. package/dist/table/TableHeadCell.svelte +1 -1
  134. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  135. package/dist/table/TableSearch.svelte +1 -1
  136. package/dist/table/TableSearch.svelte.d.ts +1 -1
  137. package/dist/tabs/TabItem.svelte +1 -1
  138. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  139. package/dist/tabs/Tabs.svelte +1 -1
  140. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  141. package/dist/timeline/Activity.svelte +1 -1
  142. package/dist/timeline/Activity.svelte.d.ts +1 -1
  143. package/dist/timeline/ActivityItem.svelte +1 -1
  144. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  145. package/dist/timeline/Group.svelte +1 -1
  146. package/dist/timeline/Group.svelte.d.ts +1 -1
  147. package/dist/timeline/GroupItem.svelte +1 -1
  148. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  149. package/dist/timeline/Timeline.svelte +1 -1
  150. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  151. package/dist/timeline/TimelineItem.svelte +1 -1
  152. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  153. package/dist/timeline/theme.d.ts +63 -63
  154. package/dist/toast/Toast.svelte +2 -2
  155. package/dist/toast/Toast.svelte.d.ts +1 -1
  156. package/dist/toolbar/Toolbar.svelte +1 -1
  157. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  158. package/dist/toolbar/ToolbarButton.svelte +1 -1
  159. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
  160. package/dist/toolbar/ToolbarGroup.svelte +1 -1
  161. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  162. package/dist/tooltip/Tooltip.svelte +1 -1
  163. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  164. package/dist/types.d.ts +2 -0
  165. package/dist/typography/anchor/A.svelte +1 -1
  166. package/dist/typography/anchor/A.svelte.d.ts +1 -1
  167. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  168. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  169. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  170. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  171. package/dist/typography/heading/Heading.svelte +1 -1
  172. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  173. package/dist/typography/hr/Hr.svelte +1 -1
  174. package/dist/typography/hr/Hr.svelte.d.ts +1 -1
  175. package/dist/typography/img/EnhancedImg.svelte +1 -1
  176. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  177. package/dist/typography/img/Img.svelte +1 -1
  178. package/dist/typography/img/Img.svelte.d.ts +1 -1
  179. package/dist/typography/layout/Layout.svelte +1 -1
  180. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  181. package/dist/typography/list/Li.svelte +1 -1
  182. package/dist/typography/list/Li.svelte.d.ts +1 -1
  183. package/dist/typography/list/List.svelte +1 -1
  184. package/dist/typography/list/List.svelte.d.ts +1 -1
  185. package/dist/typography/mark/Mark.svelte +1 -1
  186. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  187. package/dist/typography/paragraph/P.svelte +1 -1
  188. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  189. package/dist/typography/secondary/Secondary.svelte +1 -1
  190. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  191. package/dist/typography/span/Span.svelte +1 -1
  192. package/dist/typography/span/Span.svelte.d.ts +1 -1
  193. package/dist/utils/Arrow.svelte +1 -1
  194. package/dist/utils/Arrow.svelte.d.ts +1 -1
  195. package/dist/utils/CloseButton.svelte +1 -1
  196. package/dist/utils/Popper.svelte +1 -1
  197. package/dist/utils/Popper.svelte.d.ts +1 -1
  198. package/dist/utils/singleselection.svelte.d.ts +13 -5
  199. package/dist/utils/singleselection.svelte.js +40 -13
  200. package/dist/video/Video.svelte +1 -1
  201. package/dist/video/Video.svelte.d.ts +1 -1
  202. package/package.json +11 -8
  203. /package/dist/utils/{dismissable.svelte.d.ts → dismissable.d.ts} +0 -0
  204. /package/dist/utils/{dismissable.svelte.js → dismissable.js} +0 -0
@@ -28,18 +28,18 @@ export declare const footer: import("tailwind-variants").TVReturnType<{
28
28
  export type FooterBrandVariants = VariantProps<typeof footerBrand> & Classes<typeof footerBrand>;
29
29
  export declare const footerBrand: import("tailwind-variants").TVReturnType<{
30
30
  [key: string]: {
31
- [key: string]: import("tailwind-variants").ClassValue | {
32
- img?: import("tailwind-variants").ClassValue;
33
- span?: import("tailwind-variants").ClassValue;
34
- base?: import("tailwind-variants").ClassValue;
31
+ [key: string]: import("tailwind-merge").ClassNameValue | {
32
+ img?: import("tailwind-merge").ClassNameValue;
33
+ span?: import("tailwind-merge").ClassNameValue;
34
+ base?: import("tailwind-merge").ClassNameValue;
35
35
  };
36
36
  };
37
37
  } | {
38
38
  [x: string]: {
39
- [x: string]: import("tailwind-variants").ClassValue | {
40
- img?: import("tailwind-variants").ClassValue;
41
- span?: import("tailwind-variants").ClassValue;
42
- base?: import("tailwind-variants").ClassValue;
39
+ [x: string]: import("tailwind-merge").ClassNameValue | {
40
+ img?: import("tailwind-merge").ClassNameValue;
41
+ span?: import("tailwind-merge").ClassNameValue;
42
+ base?: import("tailwind-merge").ClassNameValue;
43
43
  };
44
44
  };
45
45
  } | {}, {
@@ -48,10 +48,10 @@ export declare const footerBrand: import("tailwind-variants").TVReturnType<{
48
48
  img: string;
49
49
  }, undefined, {
50
50
  [key: string]: {
51
- [key: string]: import("tailwind-variants").ClassValue | {
52
- img?: import("tailwind-variants").ClassValue;
53
- span?: import("tailwind-variants").ClassValue;
54
- base?: import("tailwind-variants").ClassValue;
51
+ [key: string]: import("tailwind-merge").ClassNameValue | {
52
+ img?: import("tailwind-merge").ClassNameValue;
53
+ span?: import("tailwind-merge").ClassNameValue;
54
+ base?: import("tailwind-merge").ClassNameValue;
55
55
  };
56
56
  };
57
57
  } | {}, {
@@ -66,18 +66,18 @@ export declare const footerBrand: import("tailwind-variants").TVReturnType<{
66
66
  export type FooterCopyrightVariants = VariantProps<typeof footerCopyright> & Classes<typeof footerCopyright>;
67
67
  export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
68
68
  [key: string]: {
69
- [key: string]: import("tailwind-variants").ClassValue | {
70
- base?: import("tailwind-variants").ClassValue;
71
- link?: import("tailwind-variants").ClassValue;
72
- bySpan?: import("tailwind-variants").ClassValue;
69
+ [key: string]: import("tailwind-merge").ClassNameValue | {
70
+ base?: import("tailwind-merge").ClassNameValue;
71
+ link?: import("tailwind-merge").ClassNameValue;
72
+ bySpan?: import("tailwind-merge").ClassNameValue;
73
73
  };
74
74
  };
75
75
  } | {
76
76
  [x: string]: {
77
- [x: string]: import("tailwind-variants").ClassValue | {
78
- base?: import("tailwind-variants").ClassValue;
79
- link?: import("tailwind-variants").ClassValue;
80
- bySpan?: import("tailwind-variants").ClassValue;
77
+ [x: string]: import("tailwind-merge").ClassNameValue | {
78
+ base?: import("tailwind-merge").ClassNameValue;
79
+ link?: import("tailwind-merge").ClassNameValue;
80
+ bySpan?: import("tailwind-merge").ClassNameValue;
81
81
  };
82
82
  };
83
83
  } | {}, {
@@ -86,10 +86,10 @@ export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
86
86
  bySpan: string;
87
87
  }, undefined, {
88
88
  [key: string]: {
89
- [key: string]: import("tailwind-variants").ClassValue | {
90
- base?: import("tailwind-variants").ClassValue;
91
- link?: import("tailwind-variants").ClassValue;
92
- bySpan?: import("tailwind-variants").ClassValue;
89
+ [key: string]: import("tailwind-merge").ClassNameValue | {
90
+ base?: import("tailwind-merge").ClassNameValue;
91
+ link?: import("tailwind-merge").ClassNameValue;
92
+ bySpan?: import("tailwind-merge").ClassNameValue;
93
93
  };
94
94
  };
95
95
  } | {}, {
@@ -106,16 +106,16 @@ export declare const footerLinkGroup: import("tailwind-variants").TVReturnType<{
106
106
  export type FooterLinkVariants = VariantProps<typeof footerLink> & Classes<typeof footerLink>;
107
107
  export declare const footerLink: import("tailwind-variants").TVReturnType<{
108
108
  [key: string]: {
109
- [key: string]: import("tailwind-variants").ClassValue | {
110
- base?: import("tailwind-variants").ClassValue;
111
- link?: import("tailwind-variants").ClassValue;
109
+ [key: string]: import("tailwind-merge").ClassNameValue | {
110
+ base?: import("tailwind-merge").ClassNameValue;
111
+ link?: import("tailwind-merge").ClassNameValue;
112
112
  };
113
113
  };
114
114
  } | {
115
115
  [x: string]: {
116
- [x: string]: import("tailwind-variants").ClassValue | {
117
- base?: import("tailwind-variants").ClassValue;
118
- link?: import("tailwind-variants").ClassValue;
116
+ [x: string]: import("tailwind-merge").ClassNameValue | {
117
+ base?: import("tailwind-merge").ClassNameValue;
118
+ link?: import("tailwind-merge").ClassNameValue;
119
119
  };
120
120
  };
121
121
  } | {}, {
@@ -123,9 +123,9 @@ export declare const footerLink: import("tailwind-variants").TVReturnType<{
123
123
  link: string;
124
124
  }, undefined, {
125
125
  [key: string]: {
126
- [key: string]: import("tailwind-variants").ClassValue | {
127
- base?: import("tailwind-variants").ClassValue;
128
- link?: import("tailwind-variants").ClassValue;
126
+ [key: string]: import("tailwind-merge").ClassNameValue | {
127
+ base?: import("tailwind-merge").ClassNameValue;
128
+ link?: import("tailwind-merge").ClassNameValue;
129
129
  };
130
130
  };
131
131
  } | {}, {
@@ -3,7 +3,7 @@
3
3
  import clsx from "clsx";
4
4
  import { CloseButton, type FileuploadProps } from "../..";
5
5
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
6
- import { createDismissableContext } from "../../utils/dismissable.svelte";
6
+ import { createDismissableContext } from "../../utils/dismissable";
7
7
 
8
8
  let { files = $bindable(), size = "md", clearable = false, elementRef = $bindable(), class: className, classes, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, wrapperClass, ...restProps }: FileuploadProps = $props();
9
9
 
@@ -4,7 +4,7 @@
4
4
  import clsx from "clsx";
5
5
  import { type FloatingLabelInputProps, CloseButton } from "../..";
6
6
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
7
- import { createDismissableContext } from "../../utils/dismissable.svelte";
7
+ import { createDismissableContext } from "../../utils/dismissable";
8
8
 
9
9
  let { children, id = idGenerator(), value = $bindable(), elementRef = $bindable(), variant = "standard", size = "default", color = "default", class: className, classes, inputClass, labelClass, clearable, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, data = [], maxSuggestions = 5, onSelect, comboClass, ...restProps }: FloatingLabelInputProps = $props();
10
10
 
@@ -4,7 +4,7 @@
4
4
  import { CloseButton, type SizeType, type InputProps, type InputValue } from "../..";
5
5
  import { input, clampSize } from ".";
6
6
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
7
- import { createDismissableContext } from "../../utils/dismissable.svelte";
7
+ import { createDismissableContext } from "../../utils/dismissable";
8
8
 
9
9
  let { children, left, right, value = $bindable(), elementRef = $bindable(), clearable = false, size, color = "default", class: className, classes, wrapperClass, leftClass, rightClass, divClass, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, data = [], maxSuggestions = 5, onSelect, comboClass, comboItemClass, onInput, onFocus, onBlur, onKeydown, oninput, onfocus, onblur, onkeydown, ...restProps }: InputProps<InputValue> = $props();
10
10
 
@@ -3,7 +3,7 @@
3
3
  import clsx from "clsx";
4
4
  import { CloseButton, type SearchProps } from "../..";
5
5
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
6
- import { createDismissableContext } from "../../utils/dismissable.svelte";
6
+ import { createDismissableContext } from "../../utils/dismissable";
7
7
 
8
8
  let { children, inputClass, size, placeholder = "Search", value = $bindable(), elementRef = $bindable(), clearable = false, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, class: className, classes, ...restProps }: SearchProps = $props();
9
9
 
@@ -4,7 +4,7 @@
4
4
  import { multiSelect } from ".";
5
5
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
6
6
  import { onMount } from "svelte";
7
- import { createDismissableContext } from "../../utils/dismissable.svelte";
7
+ import { createDismissableContext } from "../../utils/dismissable";
8
8
 
9
9
  // Consider reusing that component - https://svelecte.vercel.app/
10
10
 
@@ -3,7 +3,7 @@
3
3
  import clsx from "clsx";
4
4
  import { type SelectProps, CloseButton } from "../..";
5
5
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
6
- import { createDismissableContext } from "../../utils/dismissable.svelte";
6
+ import { createDismissableContext } from "../../utils/dismissable";
7
7
 
8
8
  let { children, items, value = $bindable(), elementRef = $bindable(), underline, size = "md", disabled, placeholder = "Choose option ...", clearable, clearableColor = "none", clearableOnClick, onClear, clearableSvgClass, clearableClass, selectClass, class: className, classes, ...restProps }: SelectProps<T> = $props();
9
9
 
@@ -3,28 +3,28 @@ import type { Classes } from "../../theme/themeUtils";
3
3
  export type TagsVariants = VariantProps<typeof tags> & Classes<typeof tags>;
4
4
  export declare const tags: import("tailwind-variants").TVReturnType<{
5
5
  [key: string]: {
6
- [key: string]: import("tailwind-variants").ClassValue | {
7
- input?: import("tailwind-variants").ClassValue;
8
- span?: import("tailwind-variants").ClassValue;
9
- base?: import("tailwind-variants").ClassValue;
10
- close?: import("tailwind-variants").ClassValue;
11
- tag?: import("tailwind-variants").ClassValue;
12
- error?: import("tailwind-variants").ClassValue;
13
- info?: import("tailwind-variants").ClassValue;
14
- warning?: import("tailwind-variants").ClassValue;
6
+ [key: string]: import("tailwind-merge").ClassNameValue | {
7
+ input?: import("tailwind-merge").ClassNameValue;
8
+ span?: import("tailwind-merge").ClassNameValue;
9
+ base?: import("tailwind-merge").ClassNameValue;
10
+ close?: import("tailwind-merge").ClassNameValue;
11
+ tag?: import("tailwind-merge").ClassNameValue;
12
+ error?: import("tailwind-merge").ClassNameValue;
13
+ info?: import("tailwind-merge").ClassNameValue;
14
+ warning?: import("tailwind-merge").ClassNameValue;
15
15
  };
16
16
  };
17
17
  } | {
18
18
  [x: string]: {
19
- [x: string]: import("tailwind-variants").ClassValue | {
20
- input?: import("tailwind-variants").ClassValue;
21
- span?: import("tailwind-variants").ClassValue;
22
- base?: import("tailwind-variants").ClassValue;
23
- close?: import("tailwind-variants").ClassValue;
24
- tag?: import("tailwind-variants").ClassValue;
25
- error?: import("tailwind-variants").ClassValue;
26
- info?: import("tailwind-variants").ClassValue;
27
- warning?: import("tailwind-variants").ClassValue;
19
+ [x: string]: import("tailwind-merge").ClassNameValue | {
20
+ input?: import("tailwind-merge").ClassNameValue;
21
+ span?: import("tailwind-merge").ClassNameValue;
22
+ base?: import("tailwind-merge").ClassNameValue;
23
+ close?: import("tailwind-merge").ClassNameValue;
24
+ tag?: import("tailwind-merge").ClassNameValue;
25
+ error?: import("tailwind-merge").ClassNameValue;
26
+ info?: import("tailwind-merge").ClassNameValue;
27
+ warning?: import("tailwind-merge").ClassNameValue;
28
28
  };
29
29
  };
30
30
  } | {}, {
@@ -38,15 +38,15 @@ export declare const tags: import("tailwind-variants").TVReturnType<{
38
38
  error: string;
39
39
  }, undefined, {
40
40
  [key: string]: {
41
- [key: string]: import("tailwind-variants").ClassValue | {
42
- input?: import("tailwind-variants").ClassValue;
43
- span?: import("tailwind-variants").ClassValue;
44
- base?: import("tailwind-variants").ClassValue;
45
- close?: import("tailwind-variants").ClassValue;
46
- tag?: import("tailwind-variants").ClassValue;
47
- error?: import("tailwind-variants").ClassValue;
48
- info?: import("tailwind-variants").ClassValue;
49
- warning?: import("tailwind-variants").ClassValue;
41
+ [key: string]: import("tailwind-merge").ClassNameValue | {
42
+ input?: import("tailwind-merge").ClassNameValue;
43
+ span?: import("tailwind-merge").ClassNameValue;
44
+ base?: import("tailwind-merge").ClassNameValue;
45
+ close?: import("tailwind-merge").ClassNameValue;
46
+ tag?: import("tailwind-merge").ClassNameValue;
47
+ error?: import("tailwind-merge").ClassNameValue;
48
+ info?: import("tailwind-merge").ClassNameValue;
49
+ warning?: import("tailwind-merge").ClassNameValue;
50
50
  };
51
51
  };
52
52
  } | {}, {
@@ -3,7 +3,7 @@
3
3
  import clsx from "clsx";
4
4
  import { type TextareaProps, CloseButton } from "../..";
5
5
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
6
- import { createDismissableContext } from "../../utils/dismissable.svelte";
6
+ import { createDismissableContext } from "../../utils/dismissable";
7
7
 
8
8
  let { header, footer, addon, value = $bindable(), elementRef = $bindable(), divClass, innerClass, headerClass, footerClass, addonClass, disabled, class: className, classes, clearable, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, textareaClass, ...restProps }: TextareaProps = $props();
9
9
 
@@ -3,16 +3,16 @@ import type { Classes } from "../theme/themeUtils";
3
3
  export type GalleryVariants = VariantProps<typeof gallery> & Classes<typeof gallery>;
4
4
  export declare const gallery: import("tailwind-variants").TVReturnType<{
5
5
  [key: string]: {
6
- [key: string]: import("tailwind-variants").ClassValue | {
7
- div?: import("tailwind-variants").ClassValue;
8
- image?: import("tailwind-variants").ClassValue;
6
+ [key: string]: import("tailwind-merge").ClassNameValue | {
7
+ div?: import("tailwind-merge").ClassNameValue;
8
+ image?: import("tailwind-merge").ClassNameValue;
9
9
  };
10
10
  };
11
11
  } | {
12
12
  [x: string]: {
13
- [x: string]: import("tailwind-variants").ClassValue | {
14
- div?: import("tailwind-variants").ClassValue;
15
- image?: import("tailwind-variants").ClassValue;
13
+ [x: string]: import("tailwind-merge").ClassNameValue | {
14
+ div?: import("tailwind-merge").ClassNameValue;
15
+ image?: import("tailwind-merge").ClassNameValue;
16
16
  };
17
17
  };
18
18
  } | {}, {
@@ -20,9 +20,9 @@ export declare const gallery: import("tailwind-variants").TVReturnType<{
20
20
  div: string;
21
21
  }, undefined, {
22
22
  [key: string]: {
23
- [key: string]: import("tailwind-variants").ClassValue | {
24
- div?: import("tailwind-variants").ClassValue;
25
- image?: import("tailwind-variants").ClassValue;
23
+ [key: string]: import("tailwind-merge").ClassNameValue | {
24
+ div?: import("tailwind-merge").ClassNameValue;
25
+ image?: import("tailwind-merge").ClassNameValue;
26
26
  };
27
27
  };
28
28
  } | {}, {
@@ -5,7 +5,7 @@
5
5
  import { fade } from "svelte/transition";
6
6
  import { modal as modalStyle } from ".";
7
7
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
8
- import { createDismissableContext } from "../utils/dismissable.svelte";
8
+ import { createDismissableContext } from "../utils/dismissable";
9
9
 
10
10
  let { children, onaction = () => true, oncancel, onsubmit, ontoggle, form = false, modal = true, autoclose = false, focustrap = false, header, footer, title, open = $bindable(false), permanent = false, dismissable = true, closeBtnClass, headerClass, bodyClass, footerClass, outsideclose = true, size = "md", placement, class: className, classes, params, transition = fade, fullscreen = false, ...restProps }: ModalProps = $props();
11
11
 
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1079)
20
+ [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1082)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { NavBrandProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1079)
5
+ * [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1082)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1081)
20
+ [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1084)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop fluid
@@ -2,7 +2,7 @@ import type { NavContainerProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1081)
5
+ * [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1084)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop fluid
@@ -4,7 +4,7 @@
4
4
  import ToolbarButton from "../toolbar/ToolbarButton.svelte";
5
5
  import Menu from "./Menu.svelte";
6
6
  import { navbarHamburger } from "./theme";
7
- import type { NavbarState, NavHamburgerProps } from "../types";
7
+ import type { NavbarState, NavHamburgerProps, NavbarBreakpoint } from "../types";
8
8
  import type { MouseEventHandler } from "svelte/elements";
9
9
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
10
10
 
@@ -14,10 +14,10 @@
14
14
  const styling = $derived(classes ?? { menu: menuClass });
15
15
 
16
16
  const theme = getTheme("navbarHamburger");
17
+ const navState = getContext<NavbarState>("navState");
18
+ const navBreakpoint = getContext<NavbarBreakpoint>("breakpoint");
19
+ const { base, menu } = navbarHamburger({ breakpoint: navBreakpoint });
17
20
 
18
- let { base, menu } = navbarHamburger();
19
-
20
- let navState = getContext<NavbarState>("navState");
21
21
  const toggle: MouseEventHandler<HTMLButtonElement> = (ev) => {
22
22
  navState.hidden = !navState.hidden;
23
23
  };
@@ -31,7 +31,7 @@
31
31
  @component
32
32
  [Go to docs](https://flowbite-svelte.com/)
33
33
  ## Type
34
- [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1085)
34
+ [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1088)
35
35
  ## Props
36
36
  @prop children
37
37
  @prop onclick
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [Go to docs](https://flowbite-svelte.com/)
3
3
  * ## Type
4
- * [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1085)
4
+ * [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1088)
5
5
  * ## Props
6
6
  * @prop children
7
7
  * @prop onclick
@@ -16,63 +16,111 @@ declare const NavHamburger: import("svelte").Component<import("../toolbar/theme"
16
16
  } & import("svelte/elements").HTMLButtonAttributes & {
17
17
  name?: string;
18
18
  } & import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
19
- [key: string]: {
20
- [key: string]: import("tailwind-variants").ClassValue | {
21
- base?: import("tailwind-variants").ClassValue;
22
- menu?: import("tailwind-variants").ClassValue;
19
+ breakpoint: {
20
+ sm: {
21
+ base: string;
23
22
  };
24
- };
25
- } | {
26
- [x: string]: {
27
- [x: string]: import("tailwind-variants").ClassValue | {
28
- base?: import("tailwind-variants").ClassValue;
29
- menu?: import("tailwind-variants").ClassValue;
23
+ md: {
24
+ base: string;
25
+ };
26
+ lg: {
27
+ base: string;
28
+ };
29
+ xl: {
30
+ base: string;
30
31
  };
31
32
  };
32
- } | {}, {
33
+ }, {
33
34
  base: string;
34
35
  menu: string;
35
36
  }, undefined, {
36
- [key: string]: {
37
- [key: string]: import("tailwind-variants").ClassValue | {
38
- base?: import("tailwind-variants").ClassValue;
39
- menu?: import("tailwind-variants").ClassValue;
37
+ breakpoint: {
38
+ sm: {
39
+ base: string;
40
+ };
41
+ md: {
42
+ base: string;
43
+ };
44
+ lg: {
45
+ base: string;
46
+ };
47
+ xl: {
48
+ base: string;
40
49
  };
41
50
  };
42
- } | {}, {
51
+ }, {
43
52
  base: string;
44
53
  menu: string;
45
- }, import("tailwind-variants").TVReturnType<unknown, {
54
+ }, import("tailwind-variants").TVReturnType<{
55
+ breakpoint: {
56
+ sm: {
57
+ base: string;
58
+ };
59
+ md: {
60
+ base: string;
61
+ };
62
+ lg: {
63
+ base: string;
64
+ };
65
+ xl: {
66
+ base: string;
67
+ };
68
+ };
69
+ }, {
46
70
  base: string;
47
71
  menu: string;
48
72
  }, undefined, unknown, unknown, undefined>>> & import("../theme/themeUtils").Classes<import("tailwind-variants").TVReturnType<{
49
- [key: string]: {
50
- [key: string]: import("tailwind-variants").ClassValue | {
51
- base?: import("tailwind-variants").ClassValue;
52
- menu?: import("tailwind-variants").ClassValue;
73
+ breakpoint: {
74
+ sm: {
75
+ base: string;
53
76
  };
54
- };
55
- } | {
56
- [x: string]: {
57
- [x: string]: import("tailwind-variants").ClassValue | {
58
- base?: import("tailwind-variants").ClassValue;
59
- menu?: import("tailwind-variants").ClassValue;
77
+ md: {
78
+ base: string;
79
+ };
80
+ lg: {
81
+ base: string;
82
+ };
83
+ xl: {
84
+ base: string;
60
85
  };
61
86
  };
62
- } | {}, {
87
+ }, {
63
88
  base: string;
64
89
  menu: string;
65
90
  }, undefined, {
66
- [key: string]: {
67
- [key: string]: import("tailwind-variants").ClassValue | {
68
- base?: import("tailwind-variants").ClassValue;
69
- menu?: import("tailwind-variants").ClassValue;
91
+ breakpoint: {
92
+ sm: {
93
+ base: string;
94
+ };
95
+ md: {
96
+ base: string;
97
+ };
98
+ lg: {
99
+ base: string;
100
+ };
101
+ xl: {
102
+ base: string;
70
103
  };
71
104
  };
72
- } | {}, {
105
+ }, {
73
106
  base: string;
74
107
  menu: string;
75
- }, import("tailwind-variants").TVReturnType<unknown, {
108
+ }, import("tailwind-variants").TVReturnType<{
109
+ breakpoint: {
110
+ sm: {
111
+ base: string;
112
+ };
113
+ md: {
114
+ base: string;
115
+ };
116
+ lg: {
117
+ base: string;
118
+ };
119
+ xl: {
120
+ base: string;
121
+ };
122
+ };
123
+ }, {
76
124
  base: string;
77
125
  menu: string;
78
126
  }, undefined, unknown, unknown, undefined>>> & {
@@ -1,18 +1,19 @@
1
1
  <script lang="ts">
2
2
  import { getTheme } from "../theme/themeUtils";
3
- import type { NavbarState, NavLiProps } from "../types";
3
+ import type { NavbarState, NavLiProps, NavbarBreakpoint } from "../types";
4
4
  import clsx from "clsx";
5
5
  import { getContext } from "svelte";
6
6
  import { navbarLi } from "./theme";
7
7
 
8
8
  let navState = getContext<NavbarState>("navState");
9
+ let navBreakpoint = getContext<NavbarBreakpoint>("breakpoint");
9
10
 
10
11
  let { children, activeClass, nonActiveClass, class: className, ...restProps }: NavLiProps = $props();
11
12
 
12
13
  const theme = getTheme("navbarLi");
13
14
 
14
15
  let active = $derived(navState.activeUrl ? restProps.href === navState.activeUrl : false);
15
- let liClass = $derived(navbarLi({ hidden: navState.hidden, class: clsx(active ? (activeClass ?? navState.activeClass) : (nonActiveClass ?? navState.nonActiveClass), theme, className) }));
16
+ let liClass = $derived(navbarLi({ breakpoint: navBreakpoint, hidden: navState.hidden, class: clsx(active ? (activeClass ?? navState.activeClass) : (nonActiveClass ?? navState.nonActiveClass), theme, className) }));
16
17
  </script>
17
18
 
18
19
  <li>
@@ -31,7 +32,7 @@
31
32
  @component
32
33
  [Go to docs](https://flowbite-svelte.com/)
33
34
  ## Type
34
- [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1106)
35
+ [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1109)
35
36
  ## Props
36
37
  @prop children
37
38
  @prop activeClass
@@ -2,7 +2,7 @@ import type { NavLiProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1106)
5
+ * [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1109)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop activeClass
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
3
- import type { NavbarState, NavUlProps } from "../types";
3
+ import type { NavbarState, NavUlProps, NavbarBreakpoint } from "../types";
4
4
  import clsx from "clsx";
5
5
  import { getContext } from "svelte";
6
6
  import { sineIn } from "svelte/easing";
@@ -9,6 +9,7 @@
9
9
  import { navbarUl } from "./theme";
10
10
 
11
11
  let navState = getContext<NavbarState>("navState");
12
+ let navBreakpoint = getContext<NavbarBreakpoint>("breakpoint");
12
13
 
13
14
  let { children, activeUrl = $bindable(), ulClass, slideParams, transition = slide, transitionParams, activeClass, nonActiveClass, respectMotionPreference = true, class: clasName, classes, ...restProps }: NavUlProps = $props();
14
15
 
@@ -40,7 +41,7 @@
40
41
 
41
42
  let hidden: boolean = $derived(navState.hidden ?? true);
42
43
 
43
- let { base, ul, active, nonActive } = $derived(navbarUl({ hidden }));
44
+ let { base, ul, active, nonActive } = $derived(navbarUl({ hidden, breakpoint: navBreakpoint }));
44
45
 
45
46
  $effect(() => {
46
47
  navState.activeClass = active({ class: clsx(theme?.active, styling.active) });
@@ -70,7 +71,7 @@
70
71
  @component
71
72
  [Go to docs](https://flowbite-svelte.com/)
72
73
  ## Type
73
- [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1091)
74
+ [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1094)
74
75
  ## Props
75
76
  @prop children
76
77
  @prop activeUrl = $bindable()
@@ -2,7 +2,7 @@ import type { NavUlProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1091)
5
+ * [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1094)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop activeUrl = $bindable()