flowbite-svelte 0.14.15 → 0.15.1

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 (105) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +22 -0
  3. package/README.md +84 -76
  4. package/accordions/AccordionDefault.svelte +1 -1
  5. package/accordions/AccordionItem.svelte +4 -4
  6. package/alerts/Alert.svelte +1 -1
  7. package/alerts/BorderAlert.svelte +1 -1
  8. package/alerts/InfoAlert.svelte +1 -1
  9. package/auth/Confirm.svelte +1 -1
  10. package/auth/ForgotPassword.svelte +1 -1
  11. package/auth/Login.svelte +1 -1
  12. package/auth/Register.svelte +1 -1
  13. package/auth/Reset.svelte +1 -1
  14. package/avatar/Avatar.svelte +1 -1
  15. package/badges/Badge.svelte +1 -1
  16. package/badges/BadgeIcon.svelte +1 -1
  17. package/badges/BadgeLink.svelte +1 -1
  18. package/breadcrumbs/Breadcrumb.svelte +1 -1
  19. package/buttongroups/ButtonGroup.svelte +5 -5
  20. package/buttongroups/ButtonGroupOutline.svelte +5 -5
  21. package/buttons/Button.svelte +1 -1
  22. package/buttons/ColorShadowButton.svelte +1 -1
  23. package/buttons/GradientDuotoneButton.svelte +1 -1
  24. package/buttons/GradientMonochromeButton.svelte +1 -1
  25. package/buttons/GradientOutlineButton.svelte +1 -1
  26. package/cards/Card.svelte +1 -1
  27. package/cards/CtaCard.svelte +1 -1
  28. package/cards/EcommerceCard.svelte +1 -1
  29. package/cards/HorizontalCard.svelte +1 -1
  30. package/cards/InteractiveCard.svelte +1 -1
  31. package/cards/ListCard.svelte +1 -1
  32. package/cards/SignInCard.svelte +1 -1
  33. package/carousels/Caption.svelte +1 -1
  34. package/carousels/Carousel.svelte +1 -1
  35. package/carousels/CarouselTransition.svelte +1 -1
  36. package/carousels/Indicator.svelte +1 -1
  37. package/carousels/Slide.svelte +1 -1
  38. package/carousels/Thumbnail.svelte +1 -1
  39. package/darkmode/DarkMode.svelte +1 -1
  40. package/dropdowns/DropdownDefault.svelte +1 -1
  41. package/dropdowns/ImgDropdown.svelte +1 -1
  42. package/footer/LogoFooter.svelte +1 -1
  43. package/footer/SimpleFooter.svelte +1 -1
  44. package/footer/SitemapFooter.svelte +2 -4
  45. package/footer/SocialMediaFooter.svelte +2 -2
  46. package/forms/Checkbox.svelte +1 -1
  47. package/forms/Fileupload.svelte +1 -1
  48. package/forms/FloatingLabelInput.svelte +1 -1
  49. package/forms/Iconinput.svelte +4 -3
  50. package/forms/Iconinput.svelte.d.ts +1 -0
  51. package/forms/Input.svelte +1 -1
  52. package/forms/Radio.svelte +1 -1
  53. package/forms/Select.svelte +1 -1
  54. package/forms/SingleCheckbox.svelte +1 -1
  55. package/forms/Textarea.svelte +1 -1
  56. package/forms/Toggle.svelte +1 -1
  57. package/list-group/List.svelte +5 -5
  58. package/modals/ExtraLargeModal.svelte +1 -1
  59. package/modals/LargeModal.svelte +1 -1
  60. package/modals/MediumModal.svelte +1 -1
  61. package/modals/ModalButton.svelte +1 -1
  62. package/modals/SignInModal.svelte +1 -1
  63. package/modals/SmallModal.svelte +1 -1
  64. package/navbar/DropdownNavbar.svelte +1 -1
  65. package/navbar/NavDropdown.svelte +1 -1
  66. package/navbar/Navbar.svelte +1 -1
  67. package/package.json +5 -4
  68. package/paginations/Next.svelte +1 -1
  69. package/paginations/Pagination.svelte +1 -1
  70. package/paginations/Previous.svelte +1 -1
  71. package/paginations/TableData.svelte +1 -1
  72. package/progressbars/Progressbar.svelte +1 -1
  73. package/ratings/AdvancedRating.svelte +1 -1
  74. package/ratings/Rating.svelte +3 -3
  75. package/ratings/RatingComment.svelte +1 -1
  76. package/ratings/ScoreRating.svelte +1 -1
  77. package/sidebars/Sidebar.svelte +5 -14
  78. package/sidebars/SidebarDropdown.svelte +5 -27
  79. package/spinners/Spinner.svelte +1 -1
  80. package/spinners/SpinnerButton.svelte +1 -1
  81. package/tables/Table.svelte +1 -1
  82. package/tables/TableCheckbox.svelte +1 -1
  83. package/tables/TableDefaultRow.svelte +1 -1
  84. package/tables/TableSearch.svelte +1 -1
  85. package/tabs/DefaultTabs.svelte +1 -1
  86. package/tabs/FullWidthTabs.svelte +1 -1
  87. package/tabs/IconTabs.svelte +3 -3
  88. package/tabs/InteractiveTabHead.svelte +1 -1
  89. package/tabs/InteractiveTabs.svelte +1 -1
  90. package/tabs/PillTabs.svelte +1 -1
  91. package/tabs/TabContent.svelte +1 -1
  92. package/tabs/UnderlineTabs.svelte +1 -1
  93. package/timelines/Activity.svelte +1 -1
  94. package/timelines/ActivityItem.svelte +1 -1
  95. package/timelines/Group.svelte +1 -1
  96. package/timelines/GroupItem.svelte +1 -1
  97. package/timelines/Timeline.svelte +1 -1
  98. package/timelines/TimelineHorizontal.svelte +1 -1
  99. package/timelines/TimelineItem.svelte +1 -1
  100. package/timelines/TimelineItemHorizontal.svelte +6 -20
  101. package/timelines/TimelineItemVertical.svelte +8 -34
  102. package/toasts/Toast.svelte +1 -1
  103. package/tooltips/LightTooltip.svelte +1 -1
  104. package/tooltips/Tooltip.svelte +1 -1
  105. package/types.d.ts +11 -0
@@ -1,4 +1,4 @@
1
- <script >export let divClass = 'p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700';
1
+ <script>export let divClass = 'p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700';
2
2
  export let timeClass = 'text-lg font-semibold text-gray-900 dark:text-white';
3
3
  export let date;
4
4
  </script>
@@ -1,4 +1,4 @@
1
- <script >export let timelines;
1
+ <script>export let timelines;
2
2
  </script>
3
3
 
4
4
  {#each timelines as { title, src, alt, isPrivate, href, comment }}
@@ -1,4 +1,4 @@
1
- <script >export let olClass = 'relative border-l border-gray-200 dark:border-gray-700';
1
+ <script>export let olClass = 'relative border-l border-gray-200 dark:border-gray-700';
2
2
  </script>
3
3
 
4
4
  <ol class={olClass}>
@@ -1,4 +1,4 @@
1
- <script >export let olClass = 'items-center sm:flex';
1
+ <script>export let olClass = 'items-center sm:flex';
2
2
  </script>
3
3
 
4
4
  <ol class={olClass}>
@@ -1,4 +1,4 @@
1
- <script >export let timelineItems;
1
+ <script>export let timelineItems;
2
2
  </script>
3
3
 
4
4
  {#each timelineItems as { date, title, text, href, linkname }}
@@ -1,35 +1,21 @@
1
- <script >export let timelineItems;
1
+ <script>export let timelineItems;
2
2
  </script>
3
3
 
4
- {#each timelineItems as { date, title, text, icon }}
4
+ {#each timelineItems as { date, title, text, icon, iconClass, iconSize }}
5
5
  <li class="relative mb-6 sm:mb-0">
6
6
  <div class="flex items-center">
7
- <div
8
- class="flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0"
9
- >
7
+ <div class="flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0">
10
8
  {#if icon}
11
- <svelte:component this={icon} className="h-4 w-4" />
9
+ <svelte:component this={icon} size={iconSize} class={iconClass} />
12
10
  {:else}
13
- <svg
14
- class="w-3 h-3 text-blue-600 dark:text-blue-300"
15
- fill="currentColor"
16
- viewBox="0 0 20 20"
17
- xmlns="http://www.w3.org/2000/svg"
18
- ><path
19
- fill-rule="evenodd"
20
- d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
21
- clip-rule="evenodd"
22
- /></svg
23
- >
11
+ <svg class="w-3 h-3 text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" /></svg>
24
12
  {/if}
25
13
  </div>
26
14
  <div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
27
15
  </div>
28
16
  <div class="mt-3 sm:pr-8">
29
17
  <h3 class="text-lg font-semibold text-gray-900 dark:text-white">{title}</h3>
30
- <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
31
- >{date}</time
32
- >
18
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">{date}</time>
33
19
  <p class="text-base font-normal text-gray-500 dark:text-gray-400">
34
20
  {text}
35
21
  </p>
@@ -1,53 +1,27 @@
1
- <script >export let timelineItems;
1
+ <script>export let timelineItems;
2
2
  </script>
3
3
 
4
- {#each timelineItems as { date, title, text, href, linkname, icon }}
4
+ {#each timelineItems as { date, title, text, href, linkname, icon, iconClass, iconSize }}
5
5
  <li class="mb-10 ml-6">
6
- <span
7
- class="flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900"
8
- >
6
+ <span class="flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900">
9
7
  {#if icon}
10
- <svelte:component this={icon} className="h-4 w-4" />
8
+ <svelte:component this={icon} size={iconSize} class={iconClass} />
11
9
  {:else}
12
- <svg
13
- class="w-3 h-3 text-blue-600 dark:text-blue-300"
14
- fill="currentColor"
15
- viewBox="0 0 20 20"
16
- xmlns="http://www.w3.org/2000/svg"
17
- ><path
18
- fill-rule="evenodd"
19
- d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
20
- clip-rule="evenodd"
21
- /></svg
22
- >
10
+ <svg width="20" height="20" class="text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" /></svg>
23
11
  {/if}
24
12
  </span>
25
13
 
26
14
  <h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
27
15
  {title}
28
16
  </h3>
29
- <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
30
- >{date}</time
31
- >
17
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">{date}</time>
32
18
  <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
33
19
  {text}
34
20
  </p>
35
21
  {#if href}
36
- <a
37
- {href}
38
- class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700"
22
+ <a {href} class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700"
39
23
  >{linkname}
40
- <svg
41
- class="ml-2 w-3 h-3"
42
- fill="currentColor"
43
- viewBox="0 0 20 20"
44
- xmlns="http://www.w3.org/2000/svg"
45
- ><path
46
- fill-rule="evenodd"
47
- d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
48
- clip-rule="evenodd"
49
- /></svg
50
- ></a
24
+ <svg class="ml-2 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd" /></svg></a
51
25
  >
52
26
  {/if}
53
27
  </li>
@@ -1,4 +1,4 @@
1
- <script >import { fade, blur, fly, slide } from 'svelte/transition';
1
+ <script>import { fade, blur, fly, slide } from 'svelte/transition';
2
2
  let visible = true;
3
3
  const handleHide = () => {
4
4
  visible = !visible;
@@ -1,4 +1,4 @@
1
- <script >export let tip;
1
+ <script>export let tip;
2
2
  export let top = false;
3
3
  export let right = false;
4
4
  export let bottom = false;
@@ -1,4 +1,4 @@
1
- <script >export let tip;
1
+ <script>export let tip;
2
2
  export let top = false;
3
3
  export let right = false;
4
4
  export let bottom = false;
package/types.d.ts CHANGED
@@ -28,6 +28,8 @@ export interface ButtonGroupType {
28
28
  href?: string;
29
29
  rel?: string;
30
30
  icon?: typeof SvelteComponent;
31
+ iconSize?: number;
32
+ iconClass?: string;
31
33
  }
32
34
  export declare type ButtonType = 'button' | 'submit' | 'reset';
33
35
  export declare type Buttontypes = 'blue' | 'blue-outline' | 'dark' | 'dark-outline' | 'light' | 'green' | 'green-outline' | 'red' | 'red-outline' | 'yellow' | 'yellow-outline' | 'purple' | 'purple-outline';
@@ -73,6 +75,7 @@ export interface IconTabType {
73
75
  href: string;
74
76
  rel?: string;
75
77
  icon?: typeof SvelteComponent;
78
+ iconSize?: number;
76
79
  }
77
80
  export declare type ImgType = {
78
81
  src: string;
@@ -126,6 +129,8 @@ export declare type SidebarType = {
126
129
  name: string;
127
130
  href?: string;
128
131
  icon?: typeof SvelteComponent;
132
+ iconSize?: number;
133
+ iconClass?: string;
129
134
  rel?: string;
130
135
  children?: SidebarType[];
131
136
  subtext?: HTMLElement;
@@ -146,6 +151,8 @@ export interface SocialMediaLinkType {
146
151
  export interface SocialMediaType {
147
152
  href: string;
148
153
  icon: typeof SvelteComponent;
154
+ iconSize?: number;
155
+ iconClass?: string;
149
156
  }
150
157
  export interface TabHeadType {
151
158
  name: string;
@@ -170,6 +177,8 @@ export interface TimelineItemVerticalType {
170
177
  date: Date | string;
171
178
  title: string;
172
179
  icon?: typeof SvelteComponent;
180
+ iconSize?: number;
181
+ iconClass?: string;
173
182
  href?: string;
174
183
  linkname?: string;
175
184
  text?: HTMLElement | string;
@@ -178,6 +187,8 @@ export interface TimelineItemHorizontalType {
178
187
  date: Date | string;
179
188
  title: string;
180
189
  icon?: typeof SvelteComponent;
190
+ iconSize?: number;
191
+ iconClass?: string;
181
192
  text?: HTMLElement | string;
182
193
  }
183
194
  export interface TransitionParamTypes {