flowbite-svelte 0.22.4 → 0.22.5

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.22.5](https://github.com/themesberg/flowbite-svelte/compare/v0.22.4...v0.22.5) (2022-07-21)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * [#144](https://github.com/themesberg/flowbite-svelte/issues/144) ChevronLeft fix ([016940b](https://github.com/themesberg/flowbite-svelte/commit/016940b36c6782c2481d8ff6c489c2808945d674))
11
+
5
12
  ### [0.22.4](https://github.com/themesberg/flowbite-svelte/compare/v0.22.3...v0.22.4) (2022-07-21)
6
13
 
7
14
 
@@ -28,17 +28,23 @@ $: icon = icons[placement.split('-')[0]];
28
28
  >
29
29
  <slot name="trigger">
30
30
  {#if inline}
31
- <button class={labelClass}>
31
+ <button class={labelClass} class:flex-row-reverse={icon == ChevronLeft}>
32
32
  <slot name="label">{label}</slot>
33
33
  {#if arrowIcon}
34
- <svelte:component this={icon ?? ChevronDown} class="ml-2 h-4 w-4" />
34
+ <svelte:component
35
+ this={icon ?? ChevronDown}
36
+ class={classNames('h-4 w-4', icon == ChevronLeft ? 'mr-2' : 'ml-2')}
37
+ />
35
38
  {/if}
36
39
  </button>
37
40
  {:else}
38
- <Button {...$$restProps}>
41
+ <Button {...$$restProps} class={icon == ChevronLeft && 'flex-row-reverse'}>
39
42
  <slot name="label">{label}</slot>
40
43
  {#if arrowIcon}
41
- <svelte:component this={icon ?? ChevronDown} class="ml-2 h-4 w-4" />
44
+ <svelte:component
45
+ this={icon ?? ChevronDown}
46
+ class={classNames('h-4 w-4', icon == ChevronLeft ? 'mr-2' : 'ml-2')}
47
+ />
42
48
  {/if}
43
49
  </Button>
44
50
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.22.4",
3
+ "version": "0.22.5",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {