flowbite-svelte 0.44.10 → 0.44.11

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.
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.44.11](https://github.com/themesberg/flowbite-svelte/compare/v0.44.10...v0.44.11) (2023-09-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * component data and types export ([#1040](https://github.com/themesberg/flowbite-svelte/issues/1040)) ([ad55a4d](https://github.com/themesberg/flowbite-svelte/commit/ad55a4dd72722c709de2b80aba13dbb4a143e86d))
11
+
5
12
  ### [0.44.10](https://github.com/themesberg/flowbite-svelte/compare/v0.44.9...v0.44.10) (2023-09-06)
6
13
 
7
14
  ### [0.44.9](https://github.com/themesberg/flowbite-svelte/compare/v0.44.8...v0.44.9) (2023-09-06)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.44.10",
3
+ "version": "0.44.11",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "author": {
@@ -28,7 +28,8 @@
28
28
  "gen:docs": "svelte-lib-helpers docs",
29
29
  "gen:compo-data": "svelte-lib-helpers compo-data",
30
30
  "copy:package": "svelte-lib-helpers package",
31
- "lib-helpers": "npm run gen:docs && npm run gen:compo-data && npm run build && npm run gen:exports && npm run copy:package",
31
+ "gen:addTypes": "svelte-lib-helpers addTypes",
32
+ "lib-helpers": "npm run gen:docs && npm run gen:compo-data && npm run build && npm run gen:exports && npm run copy:package && npm run gen:addTypes",
32
33
  "package:publish": "npm run lib-helpers && npm run format && standard-version && git push --follow-tags origin main && npm publish"
33
34
  },
34
35
  "devDependencies": {
@@ -37,14 +38,14 @@
37
38
  "@sveltejs/adapter-vercel": "^3.0.3",
38
39
  "@sveltejs/kit": "^1.24.1",
39
40
  "@sveltejs/package": "2.2.2",
40
- "@typescript-eslint/eslint-plugin": "^6.5.0",
41
- "@typescript-eslint/parser": "^6.5.0",
41
+ "@typescript-eslint/eslint-plugin": "^6.6.0",
42
+ "@typescript-eslint/parser": "^6.6.0",
42
43
  "autoprefixer": "^10.4.15",
43
44
  "esbuild": "0.19.2",
44
45
  "eslint": "^8.48.0",
45
46
  "eslint-config-prettier": "^9.0.0",
46
47
  "eslint-plugin-svelte": "^2.33.0",
47
- "flowbite-svelte-icons": "^0.4.2",
48
+ "flowbite-svelte-icons": "^0.4.3",
48
49
  "mdsvex": "^0.11.0",
49
50
  "mdsvexamples": "^0.4.1",
50
51
  "postcss": "^8.4.29",
@@ -55,7 +56,7 @@
55
56
  "publint": "^0.2.2",
56
57
  "svelte": "^4.2.0",
57
58
  "svelte-check": "^3.5.1",
58
- "svelte-lib-helpers": "^0.3.10",
59
+ "svelte-lib-helpers": "^0.3.13",
59
60
  "svelte-meta-tags": "^3.0.3",
60
61
  "svelte-preprocess": "^5.0.4",
61
62
  "svelte2tsx": "^0.6.21",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "AccordionItem",
3
3
  "slots": ["header", "arrowup", "arrowdown"],
4
- "events": ["on:click", "on:multiple"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["open", "boolean", "false"],
7
7
  ["activeClass", "string | undefined", "undefined"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Alert",
3
3
  "slots": ["icon", "close-button"],
4
- "events": ["on:click", "on:click", "on:change", "on:keydown", "on:keyup", "on:focus", "on:blur", "on:mouseenter", "on:mouseleave"],
4
+ "events": ["on:click", "on:change", "on:keydown", "on:keyup", "on:focus", "on:blur", "on:mouseenter", "on:mouseleave"],
5
5
  "props": [
6
6
  ["dismissable", "boolean", "false"],
7
7
  ["defaultClass", "string", "'p-4 gap-3 text-sm'"]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Badge",
3
3
  "slots": ["close-button"],
4
- "events": ["on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["color", "'primary' | 'blue' | 'dark' | 'red' | 'green' | 'yellow' | 'indigo' | 'purple' | 'pink' | 'none'", "'primary'"],
7
7
  ["large", "boolean", "false"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Banner",
3
3
  "slots": ["header"],
4
- "events": ["on:click", "on:click", "on:change", "on:keydown", "on:keyup", "on:focus", "on:blur", "on:mouseenter", "on:mouseleave"],
4
+ "events": ["on:click", "on:change", "on:keydown", "on:keyup", "on:focus", "on:blur", "on:mouseenter", "on:mouseleave"],
5
5
  "props": [
6
6
  ["position", "'static' | 'fixed' | 'absolute' | 'relative' | 'sticky'", "'sticky'"],
7
7
  ["dismissable", "boolean", "true"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Carousel",
3
3
  "slots": [],
4
- "events": ["on:mousemove", "on:mouseup", "on:touchmove", "on:touchend", "on:mousedown", "on:touchstart", "on:transition"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["images", "HTMLImgAttributes[]", ""],
7
7
  ["index", "number", "0"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Checkbox",
3
3
  "slots": [],
4
- "events": ["on:keyup", "on:keydown", "on:keypress", "on:focus", "on:blur", "on:click", "on:mouseover", "on:mouseenter", "on:mouseleave", "on:paste", "on:change", "on:change"],
4
+ "events": ["on:keyup", "on:keydown", "on:keypress", "on:focus", "on:blur", "on:click", "on:mouseover", "on:mouseenter", "on:mouseleave", "on:paste", "on:change"],
5
5
  "props": [
6
6
  ["color", "FormColorType", "'primary'"],
7
7
  ["custom", "boolean", "false"],
@@ -1 +1 @@
1
- { "name": "Controls", "slots": [], "events": ["on:click", "on:click"], "props": [] }
1
+ { "name": "Controls", "slots": [], "events": [], "props": [] }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "DarkMode",
3
3
  "slots": ["lightIcon", "darkIcon"],
4
- "events": ["on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["btnClass", "string", "'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'"],
7
7
  ["size", "'sm' | 'md' | 'lg'", "'md'"]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Drawer",
3
3
  "slots": [],
4
- "events": ["on:click", "on:multiple"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["activateClickOutside", "boolean", "true"],
7
7
  ["hidden", "boolean", "true"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Dropzone",
3
3
  "slots": [],
4
- "events": ["on:keydown", "on:focus", "on:blur", "on:mouseenter", "on:mouseleave", "on:mouseover", "on:dragenter", "on:dragleave", "on:dragover", "on:drop", "on:change", "on:click"],
4
+ "events": ["on:focus", "on:blur", "on:mouseenter", "on:mouseleave", "on:mouseover", "on:dragenter", "on:dragleave", "on:dragover", "on:drop", "on:change", "on:click"],
5
5
  "props": [
6
6
  ["value", "string", "''"],
7
7
  ["files", "FileList | undefined", "undefined"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Frame",
3
3
  "slots": [],
4
- "events": ["on:transition", "on:click", "on:mouseenter", "on:mouseleave", "on:focusin", "on:focusout"],
4
+ "events": ["on:click", "on:mouseenter", "on:mouseleave", "on:focusin", "on:focusout"],
5
5
  "props": [
6
6
  ["tag", "string", "$$restProps.href ? 'a' : 'div'"],
7
7
  ["color", "FrameColor", "'default'"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Indicators",
3
3
  "slots": [],
4
- "events": ["on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["activeClass", "string", "'opacity-100'"],
7
7
  ["inactiveClass", "string", "'opacity-60'"]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Listgroup",
3
3
  "slots": [],
4
- "events": ["on:click", "on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["items", "ListGroupItemType[] | string[]", "[]"],
7
7
  ["active", "boolean", "false"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Modal",
3
3
  "slots": ["header", "footer"],
4
- "events": ["on:keydown", "on:wheel", "on:click", "on:click", "on:click", "on:keydown", "on:wheel"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["open", "boolean", "false"],
7
7
  ["title", "string", "''"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "MultiSelect",
3
3
  "slots": [],
4
- "events": ["on:click", "on:focusout", "on:close", "on:click", "on:click", "on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["items", "SelectOptionType[]", "[]"],
7
7
  ["value", "(string | number)[]", "[]"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "NavUl",
3
3
  "slots": [],
4
- "events": ["on:slide", "on:click"],
4
+ "events": ["on:click"],
5
5
  "props": [
6
6
  ["activeUrl", "string", "''"],
7
7
  ["divClass", "string", "'w-full md:block md:w-auto'"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Pagination",
3
3
  "slots": ["prev", "next"],
4
- "events": ["on:click", "on:blur", "on:change", "on:click", "on:focus", "on:keydown", "on:keypress", "on:keyup", "on:mouseenter", "on:mouseleave", "on:mouseover", "on:click"],
4
+ "events": ["on:blur", "on:change", "on:click", "on:focus", "on:keydown", "on:keypress", "on:keyup", "on:mouseenter", "on:mouseleave", "on:mouseover"],
5
5
  "props": [
6
6
  ["pages", "LinkType[]", "[]"],
7
7
  ["activeClass", "string", "'text-blue-600 border border-gray-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white'"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Popper",
3
3
  "slots": [],
4
- "events": ["on:focusin", "on:focusout", "on:mouseenter", "on:mouseleave"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["activeContent", "boolean", "false"],
7
7
  ["arrow", "boolean", "true"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "SidebarDropdownWrapper",
3
3
  "slots": ["icon", "arrowup", "arrowdown"],
4
- "events": ["on:click", "on:multiple"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["btnClass", "string", "'flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700'"],
7
7
  ["label", "string", "''"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "TabItem",
3
3
  "slots": ["title"],
4
- "events": ["on:click", "on:blur", "on:click", "on:contextmenu", "on:focus", "on:keydown", "on:keypress", "on:keyup", "on:mouseenter", "on:mouseleave", "on:mouseover"],
4
+ "events": ["on:blur", "on:click", "on:contextmenu", "on:focus", "on:keydown", "on:keypress", "on:keyup", "on:mouseenter", "on:mouseleave", "on:mouseover"],
5
5
  "props": [
6
6
  ["open", "boolean", "false"],
7
7
  ["title", "string", "'Tab title'"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Thumbnails",
3
3
  "slots": [],
4
- "events": ["on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["images", "HTMLImgAttributes[]", "[]"],
7
7
  ["index", "number", "0"]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Toast",
3
3
  "slots": ["icon", "close-button"],
4
- "events": ["on:click"],
4
+ "events": [],
5
5
  "props": [
6
6
  ["dismissable", "boolean", "true"],
7
7
  ["color", "'primary' | 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'orange' | 'none'", "'primary'"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "VoiceSearch",
3
3
  "slots": [],
4
- "events": ["on:submit", "on:click"],
4
+ "events": ["on:submit"],
5
5
  "props": [
6
6
  ["id", "string", "''"],
7
7
  ["labelClass", "string", "'sr-only'"],
@@ -1 +1 @@
1
- { "name": "focusTrap", "slots": [], "events": ["on:not"], "props": [] }
1
+ { "name": "focusTrap", "slots": [], "events": [], "props": [] }
package/tsconfig.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "resolveJsonModule": true,
11
11
  "skipLibCheck": true,
12
12
  "sourceMap": true,
13
- "strict": true
13
+ "strict": true,
14
+ "allowImportingTsExtensions": true,
15
+ "noEmit": true
14
16
  }
15
17
  // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
16
18
  //