flowbite-svelte 1.1.4 → 1.2.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 (179) hide show
  1. package/dist/forms/select/theme.js +0 -1
  2. package/dist/forms/textarea/Textarea.svelte +1 -1
  3. package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
  4. package/dist/forms/timepicker/Timepicker.svelte +1 -1
  5. package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
  6. package/dist/forms/toggle/Toggle.svelte +1 -1
  7. package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
  8. package/dist/gallery/Gallery.svelte +1 -1
  9. package/dist/gallery/Gallery.svelte.d.ts +1 -1
  10. package/dist/indicator/Indicator.svelte +1 -1
  11. package/dist/indicator/Indicator.svelte.d.ts +1 -1
  12. package/dist/kbd/Kbd.svelte +1 -1
  13. package/dist/kbd/Kbd.svelte.d.ts +1 -1
  14. package/dist/list-group/Listgroup.svelte +1 -1
  15. package/dist/list-group/Listgroup.svelte.d.ts +1 -1
  16. package/dist/list-group/ListgroupItem.svelte +1 -1
  17. package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
  18. package/dist/mega-menu/MegaMenu.svelte +1 -1
  19. package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
  20. package/dist/modal/Modal.svelte +1 -1
  21. package/dist/modal/Modal.svelte.d.ts +1 -1
  22. package/dist/navbar/Menu.svelte +1 -1
  23. package/dist/navbar/Menu.svelte.d.ts +1 -1
  24. package/dist/navbar/NavBrand.svelte +1 -1
  25. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  26. package/dist/navbar/NavContainer.svelte +1 -1
  27. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  28. package/dist/navbar/NavHamburger.svelte +1 -1
  29. package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
  30. package/dist/navbar/NavLi.svelte +1 -1
  31. package/dist/navbar/NavLi.svelte.d.ts +1 -1
  32. package/dist/navbar/NavUl.svelte +1 -1
  33. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  34. package/dist/navbar/Navbar.svelte +1 -1
  35. package/dist/navbar/Navbar.svelte.d.ts +1 -1
  36. package/dist/pagination/Pagination.svelte +1 -1
  37. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  38. package/dist/pagination/PaginationItem.svelte +1 -1
  39. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  40. package/dist/popover/Popover.svelte +1 -1
  41. package/dist/popover/Popover.svelte.d.ts +1 -1
  42. package/dist/progress/Progressbar.svelte +6 -6
  43. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  44. package/dist/progress/Progressradial.svelte +85 -0
  45. package/dist/progress/Progressradial.svelte.d.ts +28 -0
  46. package/dist/progress/index.d.ts +3 -3
  47. package/dist/progress/index.js +3 -3
  48. package/dist/progress/theme.d.ts +283 -0
  49. package/dist/progress/theme.js +98 -0
  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/sidebar/Sidebar.svelte +1 -1
  69. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  70. package/dist/sidebar/SidebarBrand.svelte +1 -1
  71. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  72. package/dist/sidebar/SidebarButton.svelte +1 -1
  73. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  74. package/dist/sidebar/SidebarCta.svelte +1 -1
  75. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  76. package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
  77. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  78. package/dist/sidebar/SidebarGroup.svelte +1 -1
  79. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  80. package/dist/sidebar/SidebarItem.svelte +1 -1
  81. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  82. package/dist/skeleton/CardPlaceholder.svelte +1 -1
  83. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  84. package/dist/skeleton/ImagePlaceholder.svelte +14 -11
  85. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +2 -1
  86. package/dist/skeleton/ListPlaceholder.svelte +1 -1
  87. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  88. package/dist/skeleton/Skeleton.svelte +1 -1
  89. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  90. package/dist/skeleton/TextPlaceholder.svelte +1 -1
  91. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  92. package/dist/skeleton/VideoPlaceholder.svelte +1 -1
  93. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  94. package/dist/speed-dial/SpeedDial.svelte +1 -1
  95. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  96. package/dist/speed-dial/SpeedDialButton.svelte +1 -1
  97. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  98. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  99. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  100. package/dist/spinner/Spinner.svelte +1 -1
  101. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  102. package/dist/steps/StepIndicator.svelte +1 -1
  103. package/dist/steps/StepIndicator.svelte.d.ts +1 -1
  104. package/dist/table/Table.svelte +1 -1
  105. package/dist/table/Table.svelte.d.ts +1 -1
  106. package/dist/table/TableBody.svelte +1 -1
  107. package/dist/table/TableBody.svelte.d.ts +1 -1
  108. package/dist/table/TableBodyCell.svelte +1 -1
  109. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  110. package/dist/table/TableBodyRow.svelte +1 -1
  111. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  112. package/dist/table/TableHead.svelte +1 -1
  113. package/dist/table/TableHead.svelte.d.ts +1 -1
  114. package/dist/table/TableHeadCell.svelte +1 -1
  115. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  116. package/dist/table/TableSearch.svelte +1 -1
  117. package/dist/table/TableSearch.svelte.d.ts +1 -1
  118. package/dist/tabs/TabItem.svelte +1 -1
  119. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  120. package/dist/tabs/Tabs.svelte +2 -2
  121. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  122. package/dist/theme/Theme.svelte +1 -1
  123. package/dist/theme/Theme.svelte.d.ts +1 -1
  124. package/dist/timeline/Activity.svelte +1 -1
  125. package/dist/timeline/Activity.svelte.d.ts +1 -1
  126. package/dist/timeline/ActivityItem.svelte +1 -1
  127. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  128. package/dist/timeline/Group.svelte +1 -1
  129. package/dist/timeline/Group.svelte.d.ts +1 -1
  130. package/dist/timeline/GroupItem.svelte +1 -1
  131. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  132. package/dist/timeline/Timeline.svelte +1 -1
  133. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  134. package/dist/timeline/TimelineItem.svelte +1 -1
  135. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  136. package/dist/toast/Toast.svelte +1 -1
  137. package/dist/toast/Toast.svelte.d.ts +1 -1
  138. package/dist/toolbar/Toolbar.svelte +1 -1
  139. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  140. package/dist/toolbar/ToolbarButton.svelte +1 -1
  141. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
  142. package/dist/toolbar/ToolbarGroup.svelte +1 -1
  143. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  144. package/dist/tooltip/Tooltip.svelte +1 -1
  145. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  146. package/dist/types.d.ts +23 -1
  147. package/dist/typography/anchor/A.svelte +1 -1
  148. package/dist/typography/anchor/A.svelte.d.ts +1 -1
  149. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  150. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  151. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  152. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  153. package/dist/typography/heading/Heading.svelte +1 -1
  154. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  155. package/dist/typography/hr/Hr.svelte +1 -1
  156. package/dist/typography/hr/Hr.svelte.d.ts +1 -1
  157. package/dist/typography/img/EnhancedImg.svelte +1 -1
  158. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  159. package/dist/typography/img/Img.svelte +1 -1
  160. package/dist/typography/img/Img.svelte.d.ts +1 -1
  161. package/dist/typography/layout/Layout.svelte +1 -1
  162. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  163. package/dist/typography/list/Li.svelte +1 -1
  164. package/dist/typography/list/Li.svelte.d.ts +1 -1
  165. package/dist/typography/list/List.svelte +1 -1
  166. package/dist/typography/list/List.svelte.d.ts +1 -1
  167. package/dist/typography/mark/Mark.svelte +1 -1
  168. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  169. package/dist/typography/paragraph/P.svelte +1 -1
  170. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  171. package/dist/typography/secondary/Secondary.svelte +1 -1
  172. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  173. package/dist/typography/span/Span.svelte +1 -1
  174. package/dist/typography/span/Span.svelte.d.ts +1 -1
  175. package/dist/utils/Popper.svelte +1 -1
  176. package/dist/utils/Popper.svelte.d.ts +1 -1
  177. package/dist/video/Video.svelte +1 -1
  178. package/dist/video/Video.svelte.d.ts +1 -1
  179. package/package.json +5 -1
@@ -1,4 +1,3 @@
1
- import { dropdown, dropdownItem } from "../../dropdown";
2
1
  import { tv } from "tailwind-variants";
3
2
  export const select = tv({
4
3
  slots: {
@@ -49,7 +49,7 @@
49
49
  @component
50
50
  [Go to docs](https://flowbite-svelte.com/)
51
51
  ## Type
52
- [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L867)
52
+ [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L868)
53
53
  ## Props
54
54
  @prop header
55
55
  @prop footer
@@ -2,7 +2,7 @@ import { type TextareaProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L867)
5
+ * [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L868)
6
6
  * ## Props
7
7
  * @prop header
8
8
  * @prop footer
@@ -195,7 +195,7 @@
195
195
  @component
196
196
  [Go to docs](https://flowbite-svelte.com/)
197
197
  ## Type
198
- [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L839)
198
+ [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L840)
199
199
  ## Props
200
200
  @prop id = "time"
201
201
  @prop endId = "end-time"
@@ -2,7 +2,7 @@ import { type TimepickerProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L839)
5
+ * [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L840)
6
6
  * ## Props
7
7
  * @prop id = "time"
8
8
  * @prop endId = "end-time"
@@ -24,7 +24,7 @@
24
24
  @component
25
25
  [Go to docs](https://flowbite-svelte.com/)
26
26
  ## Type
27
- [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L886)
27
+ [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L887)
28
28
  ## Props
29
29
  @prop children
30
30
  @prop size = "default"
@@ -2,7 +2,7 @@ import type { ToggleProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L886)
5
+ * [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L887)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop size = "default"
@@ -36,7 +36,7 @@
36
36
  @component
37
37
  [Go to docs](https://flowbite-svelte.com/)
38
38
  ## Type
39
- [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L903)
39
+ [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L904)
40
40
  ## Props
41
41
  @prop children
42
42
  @prop figure
@@ -2,7 +2,7 @@ import type { GalleryProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L903)
5
+ * [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L904)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop figure
@@ -29,7 +29,7 @@
29
29
  @component
30
30
  [Go to docs](https://flowbite-svelte.com/)
31
31
  ## Type
32
- [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L911)
32
+ [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L912)
33
33
  ## Props
34
34
  @prop children
35
35
  @prop color = "primary"
@@ -2,7 +2,7 @@ import type { IndicatorProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L911)
5
+ * [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L912)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop color = "primary"
@@ -15,7 +15,7 @@
15
15
  @component
16
16
  [Go to docs](https://flowbite-svelte.com/)
17
17
  ## Type
18
- [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L922)
18
+ [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L923)
19
19
  ## Props
20
20
  @prop children
21
21
  @prop class: className
@@ -2,7 +2,7 @@ import type { KbdProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L922)
5
+ * [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L923)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -44,7 +44,7 @@
44
44
  @component
45
45
  [Go to docs](https://flowbite-svelte.com/)
46
46
  ## Type
47
- [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L941)
47
+ [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L942)
48
48
  ## Props
49
49
  @prop children
50
50
  @prop items
@@ -2,7 +2,7 @@ import type { ListgroupProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L941)
5
+ * [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L942)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop items
@@ -42,7 +42,7 @@
42
42
  @component
43
43
  [Go to docs](https://flowbite-svelte.com/)
44
44
  ## Type
45
- [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L952)
45
+ [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L953)
46
46
  ## Props
47
47
  @prop children
48
48
  @prop active
@@ -2,7 +2,7 @@ import type { ListgroupItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L952)
5
+ * [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L953)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop active
@@ -36,7 +36,7 @@
36
36
  @component
37
37
  [Go to docs](https://flowbite-svelte.com/)
38
38
  ## Type
39
- [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L963)
39
+ [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L964)
40
40
  ## Props
41
41
  @prop children
42
42
  @prop extra
@@ -2,7 +2,7 @@ import type { MegaMenuProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L963)
5
+ * [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L964)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop extra
@@ -77,7 +77,7 @@
77
77
  @component
78
78
  [Go to docs](https://flowbite-svelte.com/)
79
79
  ## Type
80
- [ModalProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L973)
80
+ [ModalProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L974)
81
81
  ## Props
82
82
  @prop children
83
83
  @prop oncancel
@@ -2,7 +2,7 @@ import type { ModalProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ModalProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L973)
5
+ * [ModalProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L974)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop oncancel
@@ -32,7 +32,7 @@
32
32
  @component
33
33
  [Go to docs](https://flowbite-svelte.com/)
34
34
  ## Type
35
- [MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L990)
35
+ [MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L991)
36
36
  ## Props
37
37
  @prop size = "24"
38
38
  @prop color = "currentColor"
@@ -2,7 +2,7 @@ import type { MenuProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L990)
5
+ * [MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L991)
6
6
  * ## Props
7
7
  * @prop size = "24"
8
8
  * @prop color = "currentColor"
@@ -14,7 +14,7 @@
14
14
  @component
15
15
  [Go to docs](https://flowbite-svelte.com/)
16
16
  ## Type
17
- [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1009)
17
+ [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1010)
18
18
  ## Props
19
19
  @prop children
20
20
  @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#L1009)
5
+ * [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1010)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -14,7 +14,7 @@
14
14
  @component
15
15
  [Go to docs](https://flowbite-svelte.com/)
16
16
  ## Type
17
- [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1011)
17
+ [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1012)
18
18
  ## Props
19
19
  @prop children
20
20
  @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#L1011)
5
+ * [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1012)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop fluid
@@ -25,7 +25,7 @@
25
25
  @component
26
26
  [Go to docs](https://flowbite-svelte.com/)
27
27
  ## Type
28
- [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1015)
28
+ [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1016)
29
29
  ## Props
30
30
  @prop children
31
31
  @prop onclick
@@ -2,7 +2,7 @@ import type { NavHamburgerProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1015)
5
+ * [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1016)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop onclick
@@ -35,7 +35,7 @@
35
35
  @component
36
36
  [Go to docs](https://flowbite-svelte.com/)
37
37
  ## Type
38
- [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1029)
38
+ [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1030)
39
39
  ## Props
40
40
  @prop children
41
41
  @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#L1029)
5
+ * [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1030)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop activeClass
@@ -56,7 +56,7 @@
56
56
  @component
57
57
  [Go to docs](https://flowbite-svelte.com/)
58
58
  ## Type
59
- [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1020)
59
+ [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1021)
60
60
  ## Props
61
61
  @prop children
62
62
  @prop activeUrl
@@ -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#L1020)
5
+ * [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1021)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop activeUrl
@@ -29,7 +29,7 @@
29
29
  @component
30
30
  [Go to docs](https://flowbite-svelte.com/)
31
31
  ## Type
32
- [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1003)
32
+ [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1004)
33
33
  ## Props
34
34
  @prop children
35
35
  @prop fluid
@@ -2,7 +2,7 @@ import type { NavbarProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1003)
5
+ * [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1004)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop fluid
@@ -50,7 +50,7 @@
50
50
  @component
51
51
  [Go to docs](https://flowbite-svelte.com/)
52
52
  ## Type
53
- [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1071)
53
+ [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1072)
54
54
  ## Props
55
55
  @prop pages = []
56
56
  @prop previous
@@ -2,7 +2,7 @@ import type { PaginationProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1071)
5
+ * [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1072)
6
6
  * ## Props
7
7
  * @prop pages = []
8
8
  * @prop previous
@@ -29,7 +29,7 @@
29
29
  @component
30
30
  [Go to docs](https://flowbite-svelte.com/)
31
31
  ## Type
32
- [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1067)
32
+ [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1068)
33
33
  ## Props
34
34
  @prop children
35
35
  @prop size
@@ -2,7 +2,7 @@ import type { PaginationItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1067)
5
+ * [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1068)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop size
@@ -26,7 +26,7 @@
26
26
  @component
27
27
  [Go to docs](https://flowbite-svelte.com/)
28
28
  ## Type
29
- [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1081)
29
+ [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1082)
30
30
  ## Props
31
31
  @prop title: titleSlot
32
32
  @prop color = "default"
@@ -2,7 +2,7 @@ import type { PopoverProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1081)
5
+ * [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1082)
6
6
  * ## Props
7
7
  * @prop title: titleSlot
8
8
  * @prop color = "default"
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import { cubicOut } from "svelte/easing";
3
3
  import { twMerge } from "tailwind-merge";
4
- import { tweened } from "svelte/motion";
4
+ import { Tween } from "svelte/motion";
5
5
  import { progressbar } from ".";
6
6
  import type { ProgressbarProps } from "../types";
7
7
 
8
8
  let { progress = "45", precision = 0, tweenDuration = 400, animate = false, size = "h-2.5", labelInside = false, labelOutside = "", easing = cubicOut, color = "primary", labelInsideClass, oustsideSpanClass, oustsideProgressClass, labeloutsidedivClass, divClass, ...restProps }: ProgressbarProps = $props();
9
9
 
10
- const _progress = tweened(0, {
10
+ let _progress = new Tween(0, {
11
11
  duration: animate ? tweenDuration : 0,
12
12
  easing
13
13
  });
@@ -31,11 +31,11 @@
31
31
  {/if}
32
32
  <div {...restProps} class={twMerge(base({ class: divClass }), size)}>
33
33
  {#if labelInside}
34
- <div class={twMerge(labelInsideDiv({ class: labelInsideClass }), size)} style="width: {$_progress}%">
35
- {$_progress.toFixed(precision)}%
34
+ <div class={twMerge(labelInsideDiv({ class: labelInsideClass }), size)} style="width: {_progress.current}%">
35
+ {_progress.current.toFixed(precision)}%
36
36
  </div>
37
37
  {:else}
38
- <div class={twMerge(insideDiv({ class: labelInsideClass }), size)} style="width: {$_progress}%"></div>
38
+ <div class={twMerge(insideDiv({ class: labelInsideClass }), size)} style="width: {_progress.current}%"></div>
39
39
  {/if}
40
40
  </div>
41
41
 
@@ -43,7 +43,7 @@
43
43
  @component
44
44
  [Go to docs](https://flowbite-svelte.com/)
45
45
  ## Type
46
- [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1091)
46
+ [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1092)
47
47
  ## Props
48
48
  @prop progress = "45"
49
49
  @prop precision = 0
@@ -2,7 +2,7 @@ import type { ProgressbarProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1091)
5
+ * [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1092)
6
6
  * ## Props
7
7
  * @prop progress = "45"
8
8
  * @prop precision = 0
@@ -0,0 +1,85 @@
1
+ <script lang="ts">
2
+ import { cubicOut } from "svelte/easing";
3
+ import { twMerge } from "tailwind-merge";
4
+ import { Tween } from "svelte/motion";
5
+ import { progressradial } from "./theme";
6
+ import type { ProgressradialProps } from "../types";
7
+
8
+ let { progress = 45, radius = 42, startingPosition = "top", precision = 0, tweenDuration = 400, animate = false, size = "h-24 w-24", thickness = 4, labelInside = false, labelOutside = "", easing = cubicOut, color = "primary", labelInsideClass, outsideSpanClass, outsideProgressClass, labelOutsideDivClass, divClass, ...restProps }: ProgressradialProps = $props();
9
+
10
+ const _progress = new Tween(0, {
11
+ duration: animate ? tweenDuration : 0,
12
+ easing
13
+ });
14
+
15
+ const { base, labelInsideDiv, circleBackground, circleForeground, outsideDiv, outsideSpan, outsideProgress } = $derived(
16
+ progressradial({
17
+ color,
18
+ labelInside
19
+ })
20
+ );
21
+
22
+ $effect(() => {
23
+ _progress.set(Number(progress));
24
+ });
25
+
26
+ // Calculate the circle properties
27
+ let circumference = 2 * Math.PI * radius;
28
+ // let strokeDashoffset = $state()
29
+ // Calculate the stroke-dashoffset based on progress
30
+ let strokeDashoffset = $derived(circumference - (_progress.current / 100) * circumference);
31
+ let rotationAngle = $derived(startingPosition === "top" ? -90 : startingPosition === "right" ? 0 : startingPosition === "bottom" ? 90 : startingPosition === "left" ? 180 : -90);
32
+
33
+ let formattedProgress = $derived(_progress.current.toFixed(precision));
34
+ </script>
35
+
36
+ <div class="flex flex-col items-center">
37
+ {#if labelOutside}
38
+ <div class={outsideDiv({ class: labelOutsideDivClass })}>
39
+ <span class={outsideSpan({ class: outsideSpanClass })}>{labelOutside}</span>
40
+ <span class={outsideProgress({ class: outsideProgressClass })}>{formattedProgress}%</span>
41
+ </div>
42
+ {/if}
43
+
44
+ <div {...restProps} class={twMerge(base({ class: divClass }), size)}>
45
+ <svg viewBox="0 0 100 100" class="h-full w-full" style="transform: rotate({rotationAngle}deg)">
46
+ <!-- Background circle -->
47
+ <circle cx="50" cy="50" r={radius} class={circleBackground()} fill="none" stroke-width={thickness} />
48
+
49
+ <!-- Foreground circle (progress indicator) -->
50
+ <circle cx="50" cy="50" r={radius} class={circleForeground()} fill="none" stroke-width={thickness} stroke-dasharray={circumference} stroke-dashoffset={strokeDashoffset} stroke-linecap="round" />
51
+ </svg>
52
+
53
+ {#if labelInside}
54
+ <div class={labelInsideDiv()}>
55
+ {formattedProgress}%
56
+ </div>
57
+ {/if}
58
+ </div>
59
+ </div>
60
+
61
+ <!--
62
+ @component
63
+ [Go to docs](https://flowbite-svelte.com/)
64
+ ## Type
65
+ [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1109)
66
+ ## Props
67
+ @prop progress = 45
68
+ @prop radius = 42
69
+ @prop startingPosition = "top"
70
+ @prop precision = 0
71
+ @prop tweenDuration = 400
72
+ @prop animate = false
73
+ @prop size = "h-24 w-24"
74
+ @prop thickness = 4
75
+ @prop labelInside = false
76
+ @prop labelOutside = ""
77
+ @prop easing = cubicOut
78
+ @prop color = "primary"
79
+ @prop labelInsideClass
80
+ @prop outsideSpanClass
81
+ @prop outsideProgressClass
82
+ @prop labelOutsideDivClass
83
+ @prop divClass
84
+ @prop ...restProps
85
+ -->
@@ -0,0 +1,28 @@
1
+ import type { ProgressradialProps } from "../types";
2
+ /**
3
+ * [Go to docs](https://flowbite-svelte.com/)
4
+ * ## Type
5
+ * [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1109)
6
+ * ## Props
7
+ * @prop progress = 45
8
+ * @prop radius = 42
9
+ * @prop startingPosition = "top"
10
+ * @prop precision = 0
11
+ * @prop tweenDuration = 400
12
+ * @prop animate = false
13
+ * @prop size = "h-24 w-24"
14
+ * @prop thickness = 4
15
+ * @prop labelInside = false
16
+ * @prop labelOutside = ""
17
+ * @prop easing = cubicOut
18
+ * @prop color = "primary"
19
+ * @prop labelInsideClass
20
+ * @prop outsideSpanClass
21
+ * @prop outsideProgressClass
22
+ * @prop labelOutsideDivClass
23
+ * @prop divClass
24
+ * @prop ...restProps
25
+ */
26
+ declare const Progressradial: import("svelte").Component<ProgressradialProps, {}, "">;
27
+ type Progressradial = ReturnType<typeof Progressradial>;
28
+ export default Progressradial;
@@ -1,3 +1,3 @@
1
- import Progressbar from "./Progressbar.svelte";
2
- import { progressbar } from "./theme";
3
- export { Progressbar, progressbar };
1
+ export { default as Progressbar } from "./Progressbar.svelte";
2
+ export { default as Progressradial } from "./Progressradial.svelte";
3
+ export { progressbar } from "./theme";
@@ -1,3 +1,3 @@
1
- import Progressbar from "./Progressbar.svelte";
2
- import { progressbar } from "./theme";
3
- export { Progressbar, progressbar };
1
+ export { default as Progressbar } from "./Progressbar.svelte";
2
+ export { default as Progressradial } from "./Progressradial.svelte";
3
+ export { progressbar } from "./theme";