flowbite-svelte 0.25.10 → 0.25.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 +9 -0
- package/icons/QuoteLeft.svelte +17 -0
- package/icons/QuoteLeft.svelte.d.ts +18 -0
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/package.json +3 -1
- package/ratings/Rating.svelte +3 -2
- package/ratings/Rating.svelte.d.ts +1 -0
- package/typography/Blockquote.svelte +34 -0
- package/typography/Blockquote.svelte.d.ts +26 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.11](https://github.com/themesberg/flowbite-svelte/compare/v0.25.10...v0.25.11) (2022-08-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add Blockquote ([89cbfbd](https://github.com/themesberg/flowbite-svelte/commit/89cbfbdf56e7beca90b00cf4c9c033789b2a2ba5))
|
|
11
|
+
* add size to Rating component ([7c2784e](https://github.com/themesberg/flowbite-svelte/commit/7c2784efff60877014c14a8acc7760f845671100))
|
|
12
|
+
* add User review, User testimonial, Paragraph context, Blockquote icon to typography/blockquote page ([73143ba](https://github.com/themesberg/flowbite-svelte/commit/73143bad816f6b3249fff3486d3b8569f45fde7f))
|
|
13
|
+
|
|
5
14
|
### [0.25.10](https://github.com/themesberg/flowbite-svelte/compare/v0.25.9...v0.25.10) (2022-08-22)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script>export let size = '24';
|
|
2
|
+
export let color = 'currentColor';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
width={size}
|
|
8
|
+
height={size}
|
|
9
|
+
class={$$props.class}
|
|
10
|
+
viewBox="0 0 24 27"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
><path
|
|
14
|
+
d="M14.017 18L14.017 10.609C14.017 4.905 17.748 1.039 23 0L23.995 2.151C21.563 3.068 20 5.789 20 8H24V18H14.017ZM0 18V10.609C0 4.905 3.748 1.038 9 0L9.996 2.151C7.563 3.068 6 5.789 6 8H9.983L9.983 18L0 18Z"
|
|
15
|
+
fill={color}
|
|
16
|
+
/></svg
|
|
17
|
+
>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {};
|
|
12
|
+
};
|
|
13
|
+
export declare type QuoteLeftProps = typeof __propDef.props;
|
|
14
|
+
export declare type QuoteLeftEvents = typeof __propDef.events;
|
|
15
|
+
export declare type QuoteLeftSlots = typeof __propDef.slots;
|
|
16
|
+
export default class QuoteLeft extends SvelteComponentTyped<QuoteLeftProps, QuoteLeftEvents, QuoteLeftSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { default as SimpleSearch } from './forms/SimpleSearch.svelte';
|
|
|
40
40
|
export { default as Textarea } from './forms/Textarea.svelte';
|
|
41
41
|
export { default as Toggle } from './forms/Toggle.svelte';
|
|
42
42
|
export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
|
|
43
|
+
export { default as QuoteLeft } from './icons/QuoteLeft.svelte';
|
|
43
44
|
export { default as Kbd } from './kbd/Kbd.svelte';
|
|
44
45
|
export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
|
|
45
46
|
export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
|
|
@@ -112,6 +113,7 @@ export { default as TimelineItemVertical } from './timelines/TimelineItemVertica
|
|
|
112
113
|
export { default as Toast } from './toasts/Toast.svelte';
|
|
113
114
|
export { default as Tooltip } from './tooltips/Tooltip.svelte';
|
|
114
115
|
export { default as A } from './typography/A.svelte';
|
|
116
|
+
export { default as Blockquote } from './typography/Blockquote.svelte';
|
|
115
117
|
export { default as Heading } from './typography/Heading.svelte';
|
|
116
118
|
export { default as Highlight } from './typography/Highlight.svelte';
|
|
117
119
|
export { default as Mark } from './typography/Mark.svelte';
|
package/index.js
CHANGED
|
@@ -55,6 +55,8 @@ export { default as SimpleSearch } from './forms/SimpleSearch.svelte';
|
|
|
55
55
|
export { default as Textarea } from './forms/Textarea.svelte';
|
|
56
56
|
export { default as Toggle } from './forms/Toggle.svelte';
|
|
57
57
|
export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
|
|
58
|
+
// Icons
|
|
59
|
+
export { default as QuoteLeft } from './icons/QuoteLeft.svelte';
|
|
58
60
|
// Kbd
|
|
59
61
|
export { default as Kbd } from './kbd/Kbd.svelte';
|
|
60
62
|
export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
|
|
@@ -145,6 +147,7 @@ export { default as Toast } from './toasts/Toast.svelte';
|
|
|
145
147
|
export { default as Tooltip } from './tooltips/Tooltip.svelte';
|
|
146
148
|
// Typography
|
|
147
149
|
export { default as A } from './typography/A.svelte';
|
|
150
|
+
export { default as Blockquote } from './typography/Blockquote.svelte';
|
|
148
151
|
export { default as Heading } from './typography/Heading.svelte';
|
|
149
152
|
export { default as Highlight } from './typography/Highlight.svelte';
|
|
150
153
|
export { default as Mark } from './typography/Mark.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.11",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
"./forms/Textarea.svelte": "./forms/Textarea.svelte",
|
|
150
150
|
"./forms/Toggle.svelte": "./forms/Toggle.svelte",
|
|
151
151
|
"./forms/VoiceSearch.svelte": "./forms/VoiceSearch.svelte",
|
|
152
|
+
"./icons/QuoteLeft.svelte": "./icons/QuoteLeft.svelte",
|
|
152
153
|
".": "./index.js",
|
|
153
154
|
"./kbd/ArrowKeyDown.svelte": "./kbd/ArrowKeyDown.svelte",
|
|
154
155
|
"./kbd/ArrowKeyLeft.svelte": "./kbd/ArrowKeyLeft.svelte",
|
|
@@ -223,6 +224,7 @@
|
|
|
223
224
|
"./tooltips/Tooltip.svelte": "./tooltips/Tooltip.svelte",
|
|
224
225
|
"./types": "./types.js",
|
|
225
226
|
"./typography/A.svelte": "./typography/A.svelte",
|
|
227
|
+
"./typography/Blockquote.svelte": "./typography/Blockquote.svelte",
|
|
226
228
|
"./typography/Heading.svelte": "./typography/Heading.svelte",
|
|
227
229
|
"./typography/Highlight.svelte": "./typography/Highlight.svelte",
|
|
228
230
|
"./typography/Mark.svelte": "./typography/Mark.svelte",
|
package/ratings/Rating.svelte
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>import { Star } from 'svelte-heros';
|
|
2
2
|
export let divClass = 'flex items-center';
|
|
3
|
+
export let size = '24';
|
|
3
4
|
export let total = 5;
|
|
4
5
|
export let rating = 4;
|
|
5
6
|
// default is floor
|
|
@@ -11,13 +12,13 @@ let grayStars = total - roundedRating;
|
|
|
11
12
|
|
|
12
13
|
<div class={divClass}>
|
|
13
14
|
{#if count}
|
|
14
|
-
<Star variation="solid" size
|
|
15
|
+
<Star variation="solid" {size} class="text-yellow-300 dark:text-yellow-200" />
|
|
15
16
|
<p class="ml-2 text-sm font-bold text-gray-900 dark:text-white">{rating}</p>
|
|
16
17
|
<slot />
|
|
17
18
|
{:else}
|
|
18
19
|
{#each Array(roundedRating) as _, star}
|
|
19
20
|
<slot name="ratingUp">
|
|
20
|
-
<Star variation="solid" size
|
|
21
|
+
<Star variation="solid" {size} class="text-yellow-300 dark:text-yellow-200" />
|
|
21
22
|
</slot>
|
|
22
23
|
{/each}
|
|
23
24
|
{#each Array(grayStars) as _, star}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let border = false;
|
|
3
|
+
export let italic = true;
|
|
4
|
+
export let borderClass = 'border-l-4 border-gray-300 dark:border-gray-500';
|
|
5
|
+
export let bgClass = 'bg-gray-50 dark:bg-gray-800';
|
|
6
|
+
export let bg = false;
|
|
7
|
+
export let baseClass = 'font-semibold text-gray-900 dark:text-white';
|
|
8
|
+
export let alignment = 'left';
|
|
9
|
+
let alignmentClasses = {
|
|
10
|
+
left: 'text-left',
|
|
11
|
+
center: 'text-center',
|
|
12
|
+
right: 'text-right'
|
|
13
|
+
};
|
|
14
|
+
export let size = 'xl';
|
|
15
|
+
let sizeClasses = {
|
|
16
|
+
lg: 'text-lg',
|
|
17
|
+
xl: 'text-xl',
|
|
18
|
+
xxl: 'text-2xl'
|
|
19
|
+
};
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<blockquote
|
|
23
|
+
class={classNames(
|
|
24
|
+
baseClass,
|
|
25
|
+
alignmentClasses[alignment],
|
|
26
|
+
sizeClasses[size],
|
|
27
|
+
bg && bgClass,
|
|
28
|
+
border && borderClass,
|
|
29
|
+
italic && 'italic',
|
|
30
|
+
$$props.class
|
|
31
|
+
)}
|
|
32
|
+
>
|
|
33
|
+
<slot />
|
|
34
|
+
</blockquote>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
border?: boolean;
|
|
6
|
+
italic?: boolean;
|
|
7
|
+
borderClass?: string;
|
|
8
|
+
bgClass?: string;
|
|
9
|
+
bg?: boolean;
|
|
10
|
+
baseClass?: string;
|
|
11
|
+
alignment?: 'left' | 'center' | 'right';
|
|
12
|
+
size?: 'lg' | 'xl' | 'xxl';
|
|
13
|
+
};
|
|
14
|
+
events: {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
};
|
|
17
|
+
slots: {
|
|
18
|
+
default: {};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare type BlockquoteProps = typeof __propDef.props;
|
|
22
|
+
export declare type BlockquoteEvents = typeof __propDef.events;
|
|
23
|
+
export declare type BlockquoteSlots = typeof __propDef.slots;
|
|
24
|
+
export default class Blockquote extends SvelteComponentTyped<BlockquoteProps, BlockquoteEvents, BlockquoteSlots> {
|
|
25
|
+
}
|
|
26
|
+
export {};
|