flowbite-svelte 0.21.15 → 0.22.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.
package/CHANGELOG.md CHANGED
@@ -2,12 +2,48 @@
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.22.0](https://github.com/themesberg/flowbite-svelte/compare/v0.21.17...v0.22.0) (2022-07-20)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * update dependencies and vite. script dev, build preview and test work
11
+
12
+ ### Features
13
+
14
+ * update dependencies and vite. script dev, build preview and test work ([bf1b837](https://github.com/themesberg/flowbite-svelte/commit/bf1b83788d7f3ec53c2d5e5c85a825606cbce38f))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * update all dependencies ([d7ae979](https://github.com/themesberg/flowbite-svelte/commit/d7ae979973ba092f36236fe877b98314a0328a42))
20
+ * update package.json ([a77e3e5](https://github.com/themesberg/flowbite-svelte/commit/a77e3e57f58ac95dda547cc9a410a2aaa4559fe8))
21
+
22
+ ### [0.21.17](https://github.com/themesberg/flowbite-svelte/compare/v0.21.16...v0.21.17) (2022-07-20)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Checkbox on:click position ([cfb1c65](https://github.com/themesberg/flowbite-svelte/commit/cfb1c658ae971bb689cd4e01f797ccc5c11db991))
28
+ * on:click for Toggle, Checkbox and Radio ([48710b5](https://github.com/themesberg/flowbite-svelte/commit/48710b59c9a9096ec95dfa26d1764a312552b49e))
29
+
30
+ ### [0.21.16](https://github.com/themesberg/flowbite-svelte/compare/v0.21.14...v0.21.16) (2022-07-20)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * dropdown search ([4416a31](https://github.com/themesberg/flowbite-svelte/commit/4416a312756331f6dd04b1d5fe5dd61b764fd38d))
36
+ * padding issues with dropdown ([6a48d4d](https://github.com/themesberg/flowbite-svelte/commit/6a48d4dc6a262fc62aa2d9b4c6233bf1cee4b741))
37
+ * padding issues with dropdown ([8e8c2d4](https://github.com/themesberg/flowbite-svelte/commit/8e8c2d4bed3e85e95c28e936c513489e6d975e8f))
38
+
5
39
  ### [0.21.15](https://github.com/themesberg/flowbite-svelte/compare/v0.21.14...v0.21.15) (2022-07-20)
6
40
 
7
41
 
8
42
  ### Bug Fixes
9
43
 
10
- * add on:click to Toggle, Radio, and Checkbox component ([82cb3f0](https://github.com/themesberg/flowbite-svelte/commit/82cb3f032e85ba91015a545ee1ff325c08962855))
44
+ * dropdown search ([4416a31](https://github.com/themesberg/flowbite-svelte/commit/4416a312756331f6dd04b1d5fe5dd61b764fd38d))
45
+ * padding issues with dropdown ([6a48d4d](https://github.com/themesberg/flowbite-svelte/commit/6a48d4dc6a262fc62aa2d9b4c6233bf1cee4b741))
46
+ * padding issues with dropdown ([8e8c2d4](https://github.com/themesberg/flowbite-svelte/commit/8e8c2d4bed3e85e95c28e936c513489e6d975e8f))
11
47
 
12
48
  ### [0.21.14](https://github.com/themesberg/flowbite-svelte/compare/v0.21.13...v0.21.14) (2022-07-19)
13
49
 
@@ -27,9 +27,10 @@ let inputClass; // get the value from the underlying Radio
27
27
  export let custom = false;
28
28
  export let color = 'blue';
29
29
  export let inline = false;
30
+ export let tinted = false;
30
31
  </script>
31
32
 
32
- <Radio class={$$restProps.class} bind:inputClass {color} {custom} {inline}>
33
+ <Radio class={$$restProps.class} bind:inputClass {color} {custom} {inline} {tinted}>
33
34
  <input
34
35
  on:click
35
36
  slot="input"
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  custom?: boolean;
10
10
  color?: FormColorType;
11
11
  inline?: boolean;
12
+ tinted?: boolean;
12
13
  };
13
14
  events: {
14
15
  click: MouseEvent;
@@ -15,10 +15,11 @@ import classNames from 'classnames';
15
15
  export let color = 'blue';
16
16
  export let custom = false;
17
17
  export let inline = false;
18
+ export let tinted = false;
18
19
  export let group = '';
19
20
  export let value = '';
20
21
  export let inputClass;
21
- $: inputClass = classNames('w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600 mr-2', custom && 'sr-only peer', colorClasses[color]);
22
+ $: inputClass = classNames('w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 mr-2', tinted ? 'dark:bg-gray-600 dark:border-gray-500' : 'dark:bg-gray-700 dark:border-gray-600', custom && 'sr-only peer', colorClasses[color]);
22
23
  let colorLabel = 'gray';
23
24
  $: colorLabel = $$restProps.disabled ? 'disabled' : colorLabel;
24
25
  let labelClass;
@@ -43,7 +44,7 @@ const colorClasses = {
43
44
  <!-- svelte-ignore a11y-label-has-associated-control -->
44
45
  <label class={labelClass}>
45
46
  <slot name="input">
46
- <input type="radio" bind:group {value} {...$$restProps} class={inputClass} on:click />
47
+ <input on:click type="radio" bind:group {value} {...$$restProps} class={inputClass} />
47
48
  </slot>
48
49
  <slot />
49
50
  </label>
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  color?: FormColorType;
7
7
  custom?: boolean;
8
8
  inline?: boolean;
9
+ tinted?: boolean;
9
10
  group?: number | string;
10
11
  value?: string;
11
12
  inputClass: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.21.15",
3
+ "version": "0.22.0",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -12,30 +12,31 @@
12
12
  "homepage": "https://flowbite-svelte.com/",
13
13
  "license": "MIT",
14
14
  "devDependencies": {
15
- "@playwright/test": "^1.21.0",
15
+ "@playwright/test": "^1.23.4",
16
16
  "@sveltejs/adapter-auto": "next",
17
17
  "@sveltejs/kit": "next",
18
- "@typescript-eslint/eslint-plugin": "^5.10.1",
19
- "@typescript-eslint/parser": "^5.10.1",
18
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
19
+ "@typescript-eslint/parser": "^5.30.7",
20
20
  "autoprefixer": "^10.4.4",
21
21
  "createprops": "^0.4.4",
22
- "eslint": "^7.32.0",
23
- "eslint-config-prettier": "^8.3.0",
24
- "eslint-plugin-svelte3": "^3.2.1",
25
- "mdsvex": "^0.10.5",
26
- "postcss": "^8.4.12",
27
- "postcss-load-config": "^3.1.4",
28
- "prettier": "^2.5.1",
29
- "prettier-plugin-svelte": "^2.5.0",
22
+ "eslint": "^8.20.0",
23
+ "eslint-config-prettier": "^8.5.0",
24
+ "eslint-plugin-svelte3": "^4.0.0",
25
+ "mdsvex": "^0.10.6",
26
+ "postcss": "^8.4.14",
27
+ "postcss-load-config": "3.1.4",
28
+ "prettier": "^2.7.1",
29
+ "prettier-plugin-svelte": "^2.7.0",
30
30
  "prism-themes": "^1.9.0",
31
31
  "svelte": "^3.47.0",
32
- "svelte-check": "^2.2.6",
33
- "svelte-preprocess": "^4.10.5",
32
+ "svelte-check": "^2.8.0",
33
+ "svelte-preprocess": "^4.10.7",
34
34
  "svelte-sidebar-menu": "^0.8.4",
35
- "svelte2tsx": "^0.5.9",
36
- "tailwindcss": "^3.0.23",
35
+ "svelte2tsx": "^0.5.11",
36
+ "tailwindcss": "^3.1.6",
37
37
  "tslib": "^2.3.1",
38
- "typescript": "~4.6.2"
38
+ "typescript": "~4.7.4",
39
+ "vite": "^3.0.2"
39
40
  },
40
41
  "type": "module",
41
42
  "keywords": [