flowbite-svelte 0.25.10 → 0.25.13

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,31 @@
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.13](https://github.com/themesberg/flowbite-svelte/compare/v0.25.12...v0.25.13) (2022-08-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * add bind:value to Iconinput ([87616e2](https://github.com/themesberg/flowbite-svelte/commit/87616e2222611bfabd77c3f7699c5f716015e420))
11
+ * add link examples ([b129251](https://github.com/themesberg/flowbite-svelte/commit/b12925106d6ffe482dfbde5623925f72abe8a577))
12
+ * add links page ([cdb2566](https://github.com/themesberg/flowbite-svelte/commit/cdb2566640bc5153e4d310dc2306aaafe432f5de))
13
+
14
+ ### [0.25.12](https://github.com/themesberg/flowbite-svelte/compare/v0.25.11...v0.25.12) (2022-08-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * add Hr component and page ([f289c1e](https://github.com/themesberg/flowbite-svelte/commit/f289c1ebd6cfcbcfde87b28ce3108abaf54248ca))
20
+
21
+ ### [0.25.11](https://github.com/themesberg/flowbite-svelte/compare/v0.25.10...v0.25.11) (2022-08-22)
22
+
23
+
24
+ ### Features
25
+
26
+ * add Blockquote ([89cbfbd](https://github.com/themesberg/flowbite-svelte/commit/89cbfbdf56e7beca90b00cf4c9c033789b2a2ba5))
27
+ * add size to Rating component ([7c2784e](https://github.com/themesberg/flowbite-svelte/commit/7c2784efff60877014c14a8acc7760f845671100))
28
+ * add User review, User testimonial, Paragraph context, Blockquote icon to typography/blockquote page ([73143ba](https://github.com/themesberg/flowbite-svelte/commit/73143bad816f6b3249fff3486d3b8569f45fde7f))
29
+
5
30
  ### [0.25.10](https://github.com/themesberg/flowbite-svelte/compare/v0.25.9...v0.25.10) (2022-08-22)
6
31
 
7
32
 
@@ -1,5 +1,7 @@
1
1
  <script>import classNames from 'classnames';
2
- export let type = 'text';
2
+ // import type { InputType } from '../types';
3
+ // export let type: InputType = 'text';
4
+ export let value = '';
3
5
  export let size = 'md';
4
6
  export let icon;
5
7
  export let noBorder = false;
@@ -37,7 +39,7 @@ export let iconClass = 'mr-2';
37
39
  </span>
38
40
  <input
39
41
  {...$$restProps}
40
- {type}
42
+ bind:value
41
43
  class={classNames(
42
44
  noBorderInputClass,
43
45
  {
@@ -65,7 +67,7 @@ export let iconClass = 'mr-2';
65
67
  </div>
66
68
  <input
67
69
  {...$$restProps}
68
- {type}
70
+ bind:value
69
71
  class={classNames(
70
72
  inputClass,
71
73
  {
@@ -1,10 +1,9 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { SvelteComponent } from 'svelte';
3
- import type { InputType } from '../types';
4
3
  declare const __propDef: {
5
4
  props: {
6
5
  [x: string]: any;
7
- type?: InputType;
6
+ value?: string;
8
7
  size?: 'sm' | 'md' | 'lg';
9
8
  icon: typeof SvelteComponent;
10
9
  noBorder?: boolean;
@@ -0,0 +1,34 @@
1
+ <svg
2
+ aria-hidden="true"
3
+ class="mr-3 w-5 h-5"
4
+ viewBox="0 0 22 31"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ ><g clip-path="url(#clip0_4151_63004)"
8
+ ><path
9
+ d="M5.50085 30.1242C8.53625 30.1242 10.9998 27.8749 10.9998 25.1035V20.0828H5.50085C2.46546 20.0828 0.00195312 22.332 0.00195312 25.1035C0.00195312 27.8749 2.46546 30.1242 5.50085 30.1242Z"
10
+ fill="#0ACF83"
11
+ /><path
12
+ d="M0.00195312 15.062C0.00195312 12.2905 2.46546 10.0413 5.50085 10.0413H10.9998V20.0827H5.50085C2.46546 20.0827 0.00195312 17.8334 0.00195312 15.062Z"
13
+ fill="#A259FF"
14
+ /><path
15
+ d="M0.00195312 5.02048C0.00195312 2.24904 2.46546 -0.000244141 5.50085 -0.000244141H10.9998V10.0412H5.50085C2.46546 10.0412 0.00195312 7.79193 0.00195312 5.02048Z"
16
+ fill="#F24E1E"
17
+ /><path
18
+ d="M11 -0.000244141H16.4989C19.5343 -0.000244141 21.9978 2.24904 21.9978 5.02048C21.9978 7.79193 19.5343 10.0412 16.4989 10.0412H11V-0.000244141Z"
19
+ fill="#FF7262"
20
+ /><path
21
+ d="M21.9978 15.062C21.9978 17.8334 19.5343 20.0827 16.4989 20.0827C13.4635 20.0827 11 17.8334 11 15.062C11 12.2905 13.4635 10.0413 16.4989 10.0413C19.5343 10.0413 21.9978 12.2905 21.9978 15.062Z"
22
+ fill="#1ABCFE"
23
+ /></g
24
+ ><defs
25
+ ><clipPath id="clip0_4151_63004"
26
+ ><rect
27
+ width="22"
28
+ height="30.1244"
29
+ fill="white"
30
+ transform="translate(0 -0.000244141)"
31
+ /></clipPath
32
+ ></defs
33
+ ></svg
34
+ >
@@ -0,0 +1,19 @@
1
+ /** @typedef {typeof __propDef.props} FigmaProps */
2
+ /** @typedef {typeof __propDef.events} FigmaEvents */
3
+ /** @typedef {typeof __propDef.slots} FigmaSlots */
4
+ export default class Figma extends SvelteComponentTyped<{}, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> {
7
+ }
8
+ export type FigmaProps = typeof __propDef.props;
9
+ export type FigmaEvents = typeof __propDef.events;
10
+ export type FigmaSlots = typeof __propDef.slots;
11
+ import { SvelteComponentTyped } from "svelte";
12
+ declare const __propDef: {
13
+ props: {};
14
+ events: {
15
+ [evt: string]: CustomEvent<any>;
16
+ };
17
+ slots: {};
18
+ };
19
+ export {};
@@ -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,8 @@ 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';
44
+ export { default as Figma } from './icons/Figma.svelte';
43
45
  export { default as Kbd } from './kbd/Kbd.svelte';
44
46
  export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
45
47
  export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
@@ -112,8 +114,10 @@ export { default as TimelineItemVertical } from './timelines/TimelineItemVertica
112
114
  export { default as Toast } from './toasts/Toast.svelte';
113
115
  export { default as Tooltip } from './tooltips/Tooltip.svelte';
114
116
  export { default as A } from './typography/A.svelte';
117
+ export { default as Blockquote } from './typography/Blockquote.svelte';
115
118
  export { default as Heading } from './typography/Heading.svelte';
116
119
  export { default as Highlight } from './typography/Highlight.svelte';
120
+ export { default as Hr } from './typography/Hr.svelte';
117
121
  export { default as Mark } from './typography/Mark.svelte';
118
122
  export { default as P } from './typography/P.svelte';
119
123
  export { default as Secondary } from './typography/Secondary.svelte';
package/index.js CHANGED
@@ -55,6 +55,9 @@ 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';
60
+ export { default as Figma } from './icons/Figma.svelte';
58
61
  // Kbd
59
62
  export { default as Kbd } from './kbd/Kbd.svelte';
60
63
  export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
@@ -145,8 +148,10 @@ export { default as Toast } from './toasts/Toast.svelte';
145
148
  export { default as Tooltip } from './tooltips/Tooltip.svelte';
146
149
  // Typography
147
150
  export { default as A } from './typography/A.svelte';
151
+ export { default as Blockquote } from './typography/Blockquote.svelte';
148
152
  export { default as Heading } from './typography/Heading.svelte';
149
153
  export { default as Highlight } from './typography/Highlight.svelte';
154
+ export { default as Hr } from './typography/Hr.svelte';
150
155
  export { default as Mark } from './typography/Mark.svelte';
151
156
  export { default as P } from './typography/P.svelte';
152
157
  export { default as Secondary } from './typography/Secondary.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.25.10",
3
+ "version": "0.25.13",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -149,6 +149,8 @@
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/Figma.svelte": "./icons/Figma.svelte",
153
+ "./icons/QuoteLeft.svelte": "./icons/QuoteLeft.svelte",
152
154
  ".": "./index.js",
153
155
  "./kbd/ArrowKeyDown.svelte": "./kbd/ArrowKeyDown.svelte",
154
156
  "./kbd/ArrowKeyLeft.svelte": "./kbd/ArrowKeyLeft.svelte",
@@ -223,8 +225,10 @@
223
225
  "./tooltips/Tooltip.svelte": "./tooltips/Tooltip.svelte",
224
226
  "./types": "./types.js",
225
227
  "./typography/A.svelte": "./typography/A.svelte",
228
+ "./typography/Blockquote.svelte": "./typography/Blockquote.svelte",
226
229
  "./typography/Heading.svelte": "./typography/Heading.svelte",
227
230
  "./typography/Highlight.svelte": "./typography/Highlight.svelte",
231
+ "./typography/Hr.svelte": "./typography/Hr.svelte",
228
232
  "./typography/Mark.svelte": "./typography/Mark.svelte",
229
233
  "./typography/P.svelte": "./typography/P.svelte",
230
234
  "./typography/Secondary.svelte": "./typography/Secondary.svelte",
@@ -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="24" class="text-yellow-300 dark:text-yellow-200" />
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="24" class="text-yellow-300 dark:text-yellow-200" />
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}
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  divClass?: string;
5
+ size?: string;
5
6
  total?: number;
6
7
  rating?: number;
7
8
  ceil?: boolean;
@@ -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 {};
@@ -14,7 +14,7 @@ const textSizes = {
14
14
 
15
15
  <svelte:element
16
16
  this={tag}
17
- class={classNames(customSize ? customSize : textSizes[tag], textColor, $$props.class)}
17
+ class={classNames(customSize ? customSize : textSizes[tag], textColor, 'w-full', $$props.class)}
18
18
  >
19
19
  <slot />
20
20
  </svelte:element>
@@ -0,0 +1,29 @@
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'inline-flex justify-center items-center w-full';
3
+ export let hrClass = 'bg-gray-200 rounded border-0 dark:bg-gray-700';
4
+ // bg-gray-200 rounded border-0 dark:bg-gray-700
5
+ export let width = 'w-full';
6
+ export let height = 'h-px';
7
+ export let iconSize = 24;
8
+ export let iconClass = 'text-gray-700 dark:text-gray-300';
9
+ export let icon;
10
+ export let text;
11
+ export let iconDivClass = 'absolute left-1/2 px-4 bg-white -translate-x-1/2 dark:bg-gray-900';
12
+ export let textSpanClass = 'absolute left-1/2 px-3 font-medium text-gray-900 bg-white -translate-x-1/2 dark:text-white dark:bg-gray-900';
13
+ let horizontalClass = classNames(hrClass, width, height, $$props.class);
14
+ </script>
15
+
16
+ {#if icon || text}
17
+ <div class={classNames(divClass, $$props.classDiv)}>
18
+ <hr class={horizontalClass} />
19
+ {#if icon}
20
+ <div class={iconDivClass}>
21
+ <svelte:component this={icon} size={iconSize} class={iconClass} />
22
+ </div>
23
+ {:else}
24
+ <span class={textSpanClass}>or</span>
25
+ {/if}
26
+ </div>
27
+ {:else}
28
+ <hr class={horizontalClass} />
29
+ {/if}
@@ -0,0 +1,27 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { SvelteComponent } from 'svelte';
3
+ declare const __propDef: {
4
+ props: {
5
+ [x: string]: any;
6
+ divClass?: string;
7
+ hrClass?: string;
8
+ width?: string;
9
+ height?: string;
10
+ iconSize?: number;
11
+ iconClass?: string;
12
+ icon: typeof SvelteComponent;
13
+ text: string;
14
+ iconDivClass?: string;
15
+ textSpanClass?: string;
16
+ };
17
+ events: {
18
+ [evt: string]: CustomEvent<any>;
19
+ };
20
+ slots: {};
21
+ };
22
+ export declare type HrProps = typeof __propDef.props;
23
+ export declare type HrEvents = typeof __propDef.events;
24
+ export declare type HrSlots = typeof __propDef.slots;
25
+ export default class Hr extends SvelteComponentTyped<HrProps, HrEvents, HrSlots> {
26
+ }
27
+ export {};