flowbite-svelte 0.14.15 → 0.14.16

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 (103) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +22 -0
  3. package/README.md +11 -0
  4. package/accordions/AccordionDefault.svelte +1 -1
  5. package/accordions/AccordionItem.svelte +1 -1
  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 +1 -1
  20. package/buttongroups/ButtonGroupOutline.svelte +1 -1
  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 +1 -1
  45. package/footer/SocialMediaFooter.svelte +1 -1
  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 +1 -1
  50. package/forms/Input.svelte +1 -1
  51. package/forms/Radio.svelte +1 -1
  52. package/forms/Select.svelte +1 -1
  53. package/forms/SingleCheckbox.svelte +1 -1
  54. package/forms/Textarea.svelte +1 -1
  55. package/forms/Toggle.svelte +1 -1
  56. package/list-group/List.svelte +1 -1
  57. package/modals/ExtraLargeModal.svelte +1 -1
  58. package/modals/LargeModal.svelte +1 -1
  59. package/modals/MediumModal.svelte +1 -1
  60. package/modals/ModalButton.svelte +1 -1
  61. package/modals/SignInModal.svelte +1 -1
  62. package/modals/SmallModal.svelte +1 -1
  63. package/navbar/DropdownNavbar.svelte +1 -1
  64. package/navbar/NavDropdown.svelte +1 -1
  65. package/navbar/Navbar.svelte +1 -1
  66. package/package.json +3 -2
  67. package/paginations/Next.svelte +1 -1
  68. package/paginations/Pagination.svelte +1 -1
  69. package/paginations/Previous.svelte +1 -1
  70. package/paginations/TableData.svelte +1 -1
  71. package/progressbars/Progressbar.svelte +1 -1
  72. package/ratings/AdvancedRating.svelte +1 -1
  73. package/ratings/Rating.svelte +1 -1
  74. package/ratings/RatingComment.svelte +1 -1
  75. package/ratings/ScoreRating.svelte +1 -1
  76. package/sidebars/Sidebar.svelte +1 -1
  77. package/sidebars/SidebarDropdown.svelte +1 -1
  78. package/spinners/Spinner.svelte +1 -1
  79. package/spinners/SpinnerButton.svelte +1 -1
  80. package/tables/Table.svelte +1 -1
  81. package/tables/TableCheckbox.svelte +1 -1
  82. package/tables/TableDefaultRow.svelte +1 -1
  83. package/tables/TableSearch.svelte +1 -1
  84. package/tabs/DefaultTabs.svelte +1 -1
  85. package/tabs/FullWidthTabs.svelte +1 -1
  86. package/tabs/IconTabs.svelte +1 -1
  87. package/tabs/InteractiveTabHead.svelte +1 -1
  88. package/tabs/InteractiveTabs.svelte +1 -1
  89. package/tabs/PillTabs.svelte +1 -1
  90. package/tabs/TabContent.svelte +1 -1
  91. package/tabs/UnderlineTabs.svelte +1 -1
  92. package/timelines/Activity.svelte +1 -1
  93. package/timelines/ActivityItem.svelte +1 -1
  94. package/timelines/Group.svelte +1 -1
  95. package/timelines/GroupItem.svelte +1 -1
  96. package/timelines/Timeline.svelte +1 -1
  97. package/timelines/TimelineHorizontal.svelte +1 -1
  98. package/timelines/TimelineItem.svelte +1 -1
  99. package/timelines/TimelineItemHorizontal.svelte +1 -1
  100. package/timelines/TimelineItemVertical.svelte +1 -1
  101. package/toasts/Toast.svelte +1 -1
  102. package/tooltips/LightTooltip.svelte +1 -1
  103. package/tooltips/Tooltip.svelte +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.14.16](https://github.com/themesberg/flowbite-svelte/compare/v0.14.15...v0.14.16) (2022-04-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * update svelte to 3.47.0 ([2c51f1c](https://github.com/themesberg/flowbite-svelte/commit/2c51f1c21907f7a977249e3dfe7c2fe46dd85553))
11
+
5
12
  ### [0.14.15](https://github.com/themesberg/flowbite-svelte/compare/v0.14.14...v0.14.15) (2022-04-23)
6
13
 
7
14
 
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Shinichi Okada
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # FLOWBITE-SVELTE
2
2
 
3
+ [![npm version](https://badgen.net/npm/v/flowbite-svelte)](https://www.npmjs.com/package/flowbite-svelte)
4
+ [![npm downloads](https://badgen.net/npm/dw/flowbite-svelte)](https://www.npmjs.com/package/flowbite-svelte)
5
+ [![release](https://badgen.net/github/release/themesberg/flowbite-svelte)](https://github.com/themesberg/flowbite-svelte/releases)
6
+ [![release](https://badgen.net/github/release/themesberg/flowbite-svelte)](https://github.com/themesberg/flowbite-svelte/releases)
7
+ [![license](https://badgen.net/npm/license/themesberg/flowbite-svelte)](https://github.com/shinokada/svelte-feathericons/blob/main/LICENSE)
8
+
9
+
10
+
11
+
12
+
13
+
3
14
  [Flowbite-Svelte](https://flowbite-svelte.vercel.app/) is an official Flowbite component library for Svelte. All interactivities are handled by Svelte.
4
15
 
5
16
  ## Installation
@@ -1,4 +1,4 @@
1
- <script >import { onDestroy } from 'svelte';
1
+ <script>import { onDestroy } from 'svelte';
2
2
  import { setContext } from 'svelte';
3
3
  import { createEventDispatcher } from 'svelte';
4
4
  import { writable } from 'svelte/store';
@@ -1,4 +1,4 @@
1
- <script >import { getContext } from 'svelte';
1
+ <script>import { getContext } from 'svelte';
2
2
  import collapse from 'svelte-collapse';
3
3
  import { ChevronDownIconSolid, ChevronUpIconSolid } from '@codewithshin/svelte-heroicons';
4
4
  export let id = '';
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  const dispatch = createEventDispatcher();
3
3
  export let color = 'blue';
4
4
  export let alertId = 'alert-1';
@@ -1,4 +1,4 @@
1
- <script >export let color = 'blue';
1
+ <script>export let color = 'blue';
2
2
  export let alertId = 'alert-border-1';
3
3
  export let closeBtn = false;
4
4
  let hidden = false;
@@ -1,4 +1,4 @@
1
- <script >export let color = 'blue';
1
+ <script>export let color = 'blue';
2
2
  export let alertId = 'alert-additional-content-1';
3
3
  export let infoLink = undefined;
4
4
  export let closeBtn = false;
@@ -1,4 +1,4 @@
1
- <script >import { Button, Alert, Spinner } from '../index';
1
+ <script>import { Button, Alert, Spinner } from '../index';
2
2
  export let loginLink;
3
3
  export let success;
4
4
  export let error;
@@ -1,4 +1,4 @@
1
- <script >import { Alert } from '../index';
1
+ <script>import { Alert } from '../index';
2
2
  export let forgot = undefined;
3
3
  export let email = '';
4
4
  export let error = '';
package/auth/Login.svelte CHANGED
@@ -1,4 +1,4 @@
1
- <script >import { Alert } from '../index';
1
+ <script>import { Alert } from '../index';
2
2
  export let login = undefined;
3
3
  export let title = 'Sign in';
4
4
  export let btnSignInColor = 'blue';
@@ -1,4 +1,4 @@
1
- <script >import { Alert } from '../index';
1
+ <script>import { Alert } from '../index';
2
2
  import { createEventDispatcher } from 'svelte';
3
3
  const dispatch = createEventDispatcher();
4
4
  export let register = undefined;
package/auth/Reset.svelte CHANGED
@@ -1,4 +1,4 @@
1
- <script >import { Alert } from '../index';
1
+ <script>import { Alert } from '../index';
2
2
  export let resetpw = undefined;
3
3
  export let password = '';
4
4
  export let email = '';
@@ -1,4 +1,4 @@
1
- <script >export let avatar = {};
1
+ <script>export let avatar = {};
2
2
  let isCircle = avatar.round ? 'rounded-full' : 'rounded';
3
3
  let isBorder = avatar.border ? 'p-1 ring-2 ring-gray-300 dark:ring-gray-500' : '';
4
4
  export let avatarClass = `w-${avatar.size} h-${avatar.size} ${isCircle} ${isBorder}`;
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-xs';
1
+ <script>export let textSize = 'text-xs';
2
2
  export let name = 'Read more';
3
3
  export let color = 'blue';
4
4
  let badgeClass;
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-xs';
1
+ <script>export let textSize = 'text-xs';
2
2
  export let name = '';
3
3
  export let color = 'blue';
4
4
  let badgeClass;
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-xs';
1
+ <script>export let textSize = 'text-xs';
2
2
  export let name = 'Read more';
3
3
  export let color = 'blue';
4
4
  export let href = '/';
@@ -1,4 +1,4 @@
1
- <script >export let crumbs = [];
1
+ <script>export let crumbs = [];
2
2
  export let homeClass = 'inline-flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white';
3
3
  export let crumbClass = 'ml-1 text-sm font-medium text-gray-700 hover:text-gray-900 md:ml-2 dark:text-gray-400 dark:hover:text-white';
4
4
  export let solid = false;
@@ -1,4 +1,4 @@
1
- <script >export let buttons;
1
+ <script>export let buttons;
2
2
  let btnLength = buttons.length;
3
3
  let classFirst = 'inline-flex relative items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-l-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-blue-500 dark:focus:text-white';
4
4
  let classMiddle = 'inline-flex relative items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white border-t border-b border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-blue-500 dark:focus:text-white';
@@ -1,4 +1,4 @@
1
- <script >export let buttons;
1
+ <script>export let buttons;
2
2
  let btnLength = buttons.length;
3
3
  let classFirst = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-transparent rounded-l-lg border border-gray-900 hover:bg-gray-900 hover:text-white focus:z-10 focus:ring-2 focus:ring-gray-500 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700';
4
4
  let classMiddle = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-transparent border-t border-b border-gray-900 hover:bg-gray-900 hover:text-white focus:z-10 focus:ring-2 focus:ring-gray-500 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700';
@@ -1,4 +1,4 @@
1
- <script >export let rounded = false;
1
+ <script>export let rounded = false;
2
2
  export let textSize = 'text-sm';
3
3
  export let name = 'Read more';
4
4
  export let btnColor = 'blue';
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-sm';
1
+ <script>export let textSize = 'text-sm';
2
2
  export let color = 'blue';
3
3
  export let name = 'Read more';
4
4
  let btnClass;
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-sm';
1
+ <script>export let textSize = 'text-sm';
2
2
  export let color = 'purple2blue';
3
3
  export let name = 'Read more';
4
4
  let btnClass;
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-sm';
1
+ <script>export let textSize = 'text-sm';
2
2
  export let color = 'blue';
3
3
  export let name = 'Read more';
4
4
  let btnClass;
@@ -1,4 +1,4 @@
1
- <script >export let textSize = 'text-sm';
1
+ <script>export let textSize = 'text-sm';
2
2
  export let color = 'purple2blue';
3
3
  export let name = 'Read more';
4
4
  export let type = 'button';
package/cards/Card.svelte CHANGED
@@ -1,4 +1,4 @@
1
- <script >export let link = '';
1
+ <script>export let link = '';
2
2
  export let rel = '';
3
3
  export let alt = '';
4
4
  export let img = '';
@@ -1,4 +1,4 @@
1
- <script >import Button from '../buttons/Button.svelte';
1
+ <script>import Button from '../buttons/Button.svelte';
2
2
  export let title = 'Work fast from anywhere';
3
3
  export let headColor = 'gray';
4
4
  export let btns;
@@ -1,4 +1,4 @@
1
- <script >export let img;
1
+ <script>export let img;
2
2
  export let href = '/';
3
3
  export let btnColor = 'blue';
4
4
  export let rel = '';
@@ -1,4 +1,4 @@
1
- <script >export let link = '';
1
+ <script>export let link = '';
2
2
  export let rel = '';
3
3
  export let img = '/images/image-4.jpeg';
4
4
  export let alt = '';
@@ -1,4 +1,4 @@
1
- <script >let isOpen = true;
1
+ <script>let isOpen = true;
2
2
  const toggleDropdown = () => {
3
3
  isOpen = !isOpen;
4
4
  };
@@ -1,4 +1,4 @@
1
- <script >export let lists;
1
+ <script>export let lists;
2
2
  export let title = 'Latest Customers';
3
3
  export let action;
4
4
  export let divClass = 'p-4 max-w-md bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700';
@@ -1,4 +1,4 @@
1
- <script >import Alert from '../alerts/Alert.svelte';
1
+ <script>import Alert from '../alerts/Alert.svelte';
2
2
  export let login;
3
3
  export let title = 'Sign in';
4
4
  export let btnSignInColor = 'blue';
@@ -1,4 +1,4 @@
1
- <script >export let caption = '';
1
+ <script>export let caption = '';
2
2
  export let captionClass = '';
3
3
  </script>
4
4
 
@@ -1,4 +1,4 @@
1
- <script >import Slide from './Slide.svelte';
1
+ <script>import Slide from './Slide.svelte';
2
2
  import Thumbnail from './Thumbnail.svelte';
3
3
  import Caption from './Caption.svelte';
4
4
  import Indicator from './Indicator.svelte';
@@ -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
  import Slide from './Slide.svelte';
3
3
  import Thumbnail from './Thumbnail.svelte';
4
4
  import Caption from './Caption.svelte';
@@ -1,4 +1,4 @@
1
- <script >export let name = '';
1
+ <script>export let name = '';
2
2
  export let selected = false;
3
3
  export let indicatorClass = '';
4
4
  </script>
@@ -1,4 +1,4 @@
1
- <script >export let image = '';
1
+ <script>export let image = '';
2
2
  export let altTag = '';
3
3
  export let attr = '';
4
4
  export let slideClass = '';
@@ -1,4 +1,4 @@
1
- <script >export let thumbImg = '';
1
+ <script>export let thumbImg = '';
2
2
  export let altTag = '';
3
3
  export let titleLink = '';
4
4
  export let id;
@@ -1,4 +1,4 @@
1
- <script >import { onMount } from 'svelte';
1
+ <script>import { onMount } from 'svelte';
2
2
  export let btnClass = 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm p-2.5 fixed left-0 top-8 z-50';
3
3
  let mode;
4
4
  const toggleTheme = () => {
@@ -1,4 +1,4 @@
1
- <script >import { dropdownIdStore } from './dropdownStores';
1
+ <script>import { dropdownIdStore } from './dropdownStores';
2
2
  import { get } from 'svelte/store';
3
3
  export let id = 'dropdown';
4
4
  export let label = 'Dropdown button';
@@ -1,4 +1,4 @@
1
- <script >let imgDropdownToggle = true;
1
+ <script>let imgDropdownToggle = true;
2
2
  const handleToggle = () => {
3
3
  console.log('toggle clicked.');
4
4
  imgDropdownToggle = !imgDropdownToggle;
@@ -1,4 +1,4 @@
1
- <script >export let site;
1
+ <script>export let site;
2
2
  export let links;
3
3
  export let footerClass = 'p-4 bg-white rounded-lg shadow md:px-6 md:py-8 dark:bg-gray-800';
4
4
  export let divClass = 'sm:flex sm:items-center sm:justify-between';
@@ -1,4 +1,4 @@
1
- <script >export let site;
1
+ <script>export let site;
2
2
  export let links;
3
3
  export let footerClass = 'p-4 bg-white rounded-lg shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800';
4
4
  export let siteNameClass = 'text-sm text-gray-500 sm:text-center dark:text-gray-400';
@@ -1,4 +1,4 @@
1
- <script >export let site;
1
+ <script>export let site;
2
2
  export let links;
3
3
  export let socialMedia;
4
4
  export let footerClass = 'bg-white dark:bg-gray-800';
@@ -1,4 +1,4 @@
1
- <script >export let site;
1
+ <script>export let site;
2
2
  export let links;
3
3
  export let socialMedia;
4
4
  export let footerClass = 'p-4 bg-white sm:p-6 dark:bg-gray-800';
@@ -1,4 +1,4 @@
1
- <script >export let legend = 'Checkbox variants';
1
+ <script>export let legend = 'Checkbox variants';
2
2
  export let divClass = 'flex items-center mb-4';
3
3
  export let inputClass = 'w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600';
4
4
  export let labelClass = 'ml-3 text-sm font-medium text-gray-900 dark:text-gray-300';
@@ -1,4 +1,4 @@
1
- <script >export let value = '';
1
+ <script>export let value = '';
2
2
  export let id = 'user_avatar';
3
3
  export let label = 'Upload file';
4
4
  export let labelClass = 'block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" for="user_avatar';
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let id = generateId();
3
3
  export let type;
4
4
  export let value = '';
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let label;
3
3
  export let id = generateId();
4
4
  export let type;
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let type = 'text';
3
3
  export let value = '';
4
4
  export let name = '';
@@ -1,4 +1,4 @@
1
- <script >export let legend = '';
1
+ <script>export let legend = '';
2
2
  export let divClass = 'flex items-center mb-4';
3
3
  export let inputClass = 'w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-600 dark:focus:bg-blue-600 dark:bg-gray-700 dark:border-gray-600';
4
4
  export let labelClass = 'block ml-2 text-sm font-medium text-gray-900 dark:text-gray-300';
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let value;
3
3
  export let id = generateId();
4
4
  export let name = '';
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let checked = false;
3
3
  export let id = generateId();
4
4
  export let required = false;
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let value = '';
3
3
  export let id = generateId();
4
4
  export let name = 'message';
@@ -1,4 +1,4 @@
1
- <script >import generateId from '../utils/generateId.js';
1
+ <script>import generateId from '../utils/generateId.js';
2
2
  export let name = 'toggle-example';
3
3
  export let id = generateId();
4
4
  export let label = 'Toggle me';
@@ -1,4 +1,4 @@
1
- <script >export let lists;
1
+ <script>export let lists;
2
2
  const common = 'inline-flex relative items-center py-2 px-4 w-full text-sm font-medium hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:ring-gray-500 dark:focus:text-white';
3
3
  const topClass = `${common} rounded-t-lg border-b border-gray-200`;
4
4
  const bottomClass = `${common} rounded-b-lg`;
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  import { modalIdStore } from './modalStores';
3
3
  const dispatch = createEventDispatcher();
4
4
  export let id = 'extralarge-modal';
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  import { modalIdStore } from './modalStores';
3
3
  const dispatch = createEventDispatcher();
4
4
  export let id = 'large-modal';
@@ -1,4 +1,4 @@
1
- <script >// import { toggleModal } from "./modalHelper";
1
+ <script>// import { toggleModal } from "./modalHelper";
2
2
  import { modalIdStore } from './modalStores';
3
3
  import { createEventDispatcher } from 'svelte';
4
4
  const dispatch = createEventDispatcher();
@@ -1,4 +1,4 @@
1
- <script >import { modalIdStore } from './modalStores';
1
+ <script>import { modalIdStore } from './modalStores';
2
2
  import { get } from 'svelte/store';
3
3
  export let id = 'modal-id';
4
4
  export let btnName = 'Modal Name';
@@ -1,4 +1,4 @@
1
- <script >import { modalIdStore } from './modalStores';
1
+ <script>import { modalIdStore } from './modalStores';
2
2
  export let id = 'signin-modal';
3
3
  export let btnSignInColor = 'blue';
4
4
  export let titleSignIn = 'Sign in to our platform';
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  import { modalIdStore } from './modalStores';
3
3
  const dispatch = createEventDispatcher();
4
4
  export let id = 'small-modal';
@@ -1,4 +1,4 @@
1
- <script >import { onMount } from 'svelte';
1
+ <script>import { onMount } from 'svelte';
2
2
  import NavDropdown from './NavDropdown.svelte';
3
3
  export let user = '';
4
4
  let pathname = '';
@@ -1,4 +1,4 @@
1
- <script >export let liButtonClass;
1
+ <script>export let liButtonClass;
2
2
  export let name;
3
3
  let hidden = true;
4
4
  let block = false;
@@ -1,4 +1,4 @@
1
- <script >import { onMount } from 'svelte';
1
+ <script>import { onMount } from 'svelte';
2
2
  export let user = '';
3
3
  let pathname = '';
4
4
  onMount(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.14.15",
3
+ "version": "0.14.16",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "./package/index.js",
6
6
  "author": {
@@ -12,6 +12,7 @@
12
12
  "homepage": "https://flowbite-svelte.com/",
13
13
  "license": "MIT",
14
14
  "devDependencies": {
15
+ "@codewithshin/svelte-feathericons": "^0.1.9",
15
16
  "@codewithshin/svelte-sidebar": "^0.4.8",
16
17
  "@codewithshin/svelte-simpleicons": "^0.2.2",
17
18
  "@codewithshin/svelte-utterances": "^0.2.2",
@@ -31,7 +32,7 @@
31
32
  "prettier": "^2.5.1",
32
33
  "prettier-plugin-svelte": "^2.5.0",
33
34
  "prism-themes": "^1.9.0",
34
- "svelte": "^3.44.0",
35
+ "svelte": "^3.47.0",
35
36
  "svelte-check": "^2.2.6",
36
37
  "svelte-preprocess": "^4.10.5",
37
38
  "svelte2tsx": "^0.5.9",
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  export let icon = false;
3
3
  const dispatch = createEventDispatcher();
4
4
  const next = () => {
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  export let icon = false;
3
3
  const dispatch = createEventDispatcher();
4
4
  const previous = () => {
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  export let icon = false;
3
3
  const dispatch = createEventDispatcher();
4
4
  const previous = () => {
@@ -1,4 +1,4 @@
1
- <script >import { createEventDispatcher } from 'svelte';
1
+ <script>import { createEventDispatcher } from 'svelte';
2
2
  const dispatch = createEventDispatcher();
3
3
  const previous = () => {
4
4
  dispatch('previous');
@@ -1,4 +1,4 @@
1
- <script >export let progress = '45';
1
+ <script>export let progress = '45';
2
2
  export let size = 'h-2.5';
3
3
  export let labelInside = false;
4
4
  export let labelOutside = '';
@@ -1,4 +1,4 @@
1
- <script >export let ratings = [];
1
+ <script>export let ratings = [];
2
2
  export let divClass = 'flex items-center mt-4';
3
3
  export let labelClass = 'text-sm font-medium text-blue-600 dark:text-blue-500';
4
4
  export let ratingDivClass = 'mx-4 w-2/4 h-5 bg-gray-200 rounded dark:bg-gray-700';
@@ -1,4 +1,4 @@
1
- <script >import { StarIconSolid } from '@codewithshin/svelte-heroicons';
1
+ <script>import { StarIconSolid } from '@codewithshin/svelte-heroicons';
2
2
  export let divClass = 'flex items-center';
3
3
  export let total = 5;
4
4
  export let rating = 4;
@@ -1,4 +1,4 @@
1
- <script >export let comment;
1
+ <script>export let comment;
2
2
  </script>
3
3
 
4
4
  <article>
@@ -1,4 +1,4 @@
1
- <script >export let ratings = [];
1
+ <script>export let ratings = [];
2
2
  export let ratings2 = [];
3
3
  export let headerLabel;
4
4
  export let desc1Class = 'bg-blue-100 w-8 text-blue-800 text-sm font-semibold inline-flex items-center p-1.5 rounded dark:bg-blue-200 dark:text-blue-800';
@@ -1,4 +1,4 @@
1
- <script >import SidebarDropdown from './SidebarDropdown.svelte';
1
+ <script>import SidebarDropdown from './SidebarDropdown.svelte';
2
2
  export let site;
3
3
  export let links;
4
4
  export let cta;
@@ -1,4 +1,4 @@
1
- <script >import { slide } from 'svelte/transition';
1
+ <script>import { slide } from 'svelte/transition';
2
2
  export let link;
3
3
  let isOpen = false;
4
4
  let activeDropdown = undefined;
@@ -1,4 +1,4 @@
1
- <script >export let color = 'blue';
1
+ <script>export let color = 'blue';
2
2
  export let bg = 'text-gray-200';
3
3
  export let size = 'w-8 h-8';
4
4
  export let align = 'text-center';
@@ -1,4 +1,4 @@
1
- <script >export let color;
1
+ <script>export let color;
2
2
  let colorClass;
3
3
  let fillColor1;
4
4
  let fillColor2;
@@ -1,4 +1,4 @@
1
- <script >export let header;
1
+ <script>export let header;
2
2
  export let divClass = 'relative overflow-x-auto shadow-md sm:rounded-lg';
3
3
  export let tableClass = 'w-full text-sm text-left text-gray-500 dark:text-gray-400';
4
4
  export let theadClass = 'text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400';
@@ -1,4 +1,4 @@
1
- <script >export let header;
1
+ <script>export let header;
2
2
  export let divClass = 'relative overflow-x-auto shadow-md sm:rounded-lg';
3
3
  export let tableClass = 'w-full text-sm text-left text-gray-500 dark:text-gray-400';
4
4
  export let theadClass = 'text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400';
@@ -1,4 +1,4 @@
1
- <script >export let items;
1
+ <script>export let items;
2
2
  export let html = false;
3
3
  export let rowState = undefined;
4
4
  let trClass;
@@ -1,4 +1,4 @@
1
- <script >import TableDefaultRow from './TableDefaultRow.svelte';
1
+ <script>import TableDefaultRow from './TableDefaultRow.svelte';
2
2
  export let inputValue = '';
3
3
  export let menuItems;
4
4
  export let filteredItems = [];
@@ -1,4 +1,4 @@
1
- <script >export let tabs;
1
+ <script>export let tabs;
2
2
  </script>
3
3
 
4
4
  <ul class="flex flex-wrap border-b border-gray-200 dark:border-gray-700">
@@ -1,4 +1,4 @@
1
- <script >export let tabs;
1
+ <script>export let tabs;
2
2
  export let tabLabel;
3
3
  </script>
4
4
 
@@ -1,4 +1,4 @@
1
- <script >export let tabs;
1
+ <script>export let tabs;
2
2
  export let iconClass = 'mr-2 w-5 h-5 text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300';
3
3
  </script>
4
4
 
@@ -1,4 +1,4 @@
1
- <script >import { tabStore } from './tabStores';
1
+ <script>import { tabStore } from './tabStores';
2
2
  export let tabs;
3
3
  export let tabId = 'myTab';
4
4
  export let activeTabValue = 1;
@@ -1,4 +1,4 @@
1
- <script >export let tabId = 'myTab';
1
+ <script>export let tabId = 'myTab';
2
2
  export let activeTabValue = 1;
3
3
  const handleClick = (tabValue) => () => (activeTabValue = tabValue);
4
4
  export let tabs;
@@ -1,4 +1,4 @@
1
- <script >export let tabs;
1
+ <script>export let tabs;
2
2
  </script>
3
3
 
4
4
  <ul class="flex flex-wrap">
@@ -1,4 +1,4 @@
1
- <script >import { tabStore } from './tabStores';
1
+ <script>import { tabStore } from './tabStores';
2
2
  export let divClass = 'p-4 rounded-lg dark:bg-gray-800';
3
3
  export let tab;
4
4
  let activeTabValue;
@@ -1,4 +1,4 @@
1
- <script >export let divClass = 'text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700';
1
+ <script>export let divClass = 'text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700';
2
2
  export let tabs;
3
3
  </script>
4
4
 
@@ -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 activities;
1
+ <script>export let activities;
2
2
  </script>
3
3
 
4
4
  {#each activities as { title, date, src, alt, text }}
@@ -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,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, icon }}
@@ -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, icon }}
@@ -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;