flowbite-svelte 0.25.20 → 0.25.21
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 +7 -0
- package/package.json +1 -1
- package/typography/Hr.svelte +9 -12
- package/typography/Hr.svelte.d.ts +1 -0
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.25.21](https://github.com/themesberg/flowbite-svelte/compare/v0.25.20...v0.25.21) (2022-08-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add relative class to Hr component ([d8c6fbf](https://github.com/themesberg/flowbite-svelte/commit/d8c6fbf367a43b7c13ea55a56ae9c9f0b94fa96e))
|
|
11
|
+
|
|
5
12
|
### [0.25.20](https://github.com/themesberg/flowbite-svelte/compare/v0.25.19...v0.25.20) (2022-08-27)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/typography/Hr.svelte
CHANGED
|
@@ -4,23 +4,20 @@ export let width = 'w-full';
|
|
|
4
4
|
export let height = 'h-px';
|
|
5
5
|
export let divClass = 'inline-flex justify-center items-center w-full';
|
|
6
6
|
export let hrClass = 'bg-gray-200 rounded border-0 dark:bg-gray-700';
|
|
7
|
-
export let iconDivClass = 'absolute left-1/2 px-4 bg-white -translate-x-1/2
|
|
8
|
-
export let textSpanClass = 'absolute left-1/2 px-3 font-medium text-gray-900 bg-white -translate-x-1/2 dark:text-white
|
|
7
|
+
export let iconDivClass = 'absolute left-1/2 px-4 bg-white -translate-x-1/2 ';
|
|
8
|
+
export let textSpanClass = 'absolute left-1/2 px-3 font-medium text-gray-900 bg-white -translate-x-1/2 dark:text-white ';
|
|
9
|
+
export let middleBgColor = 'dark:bg-gray-900';
|
|
9
10
|
let horizontalClass = classNames(hrClass, width, height, $$props.class);
|
|
11
|
+
let classDiv = classNames(divClass, $$slots && 'relative', $$props.classDiv);
|
|
12
|
+
let middleClass = classNames(middleBgColor, icon ? iconDivClass : textSpanClass);
|
|
10
13
|
</script>
|
|
11
14
|
|
|
12
15
|
{#if $$slots}
|
|
13
|
-
<div class={
|
|
16
|
+
<div class={classDiv}>
|
|
14
17
|
<hr class={horizontalClass} />
|
|
15
|
-
{
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
</div>
|
|
19
|
-
{:else}
|
|
20
|
-
<span class={textSpanClass}>
|
|
21
|
-
<slot />
|
|
22
|
-
</span>
|
|
23
|
-
{/if}
|
|
18
|
+
<div class={middleClass}>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
24
21
|
</div>
|
|
25
22
|
{:else}
|
|
26
23
|
<hr class={horizontalClass} />
|