flowbite-svelte 0.9.5 → 0.9.6

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.
@@ -2,6 +2,7 @@
2
2
  export let title = 'Work fast from anywhere';
3
3
  export let headColor = 'gray';
4
4
  export let btns;
5
+ export let divClass = 'p-4 w-full text-center bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700';
5
6
  let headClass;
6
7
  if (headColor === 'blue') {
7
8
  headClass = 'mb-2 text-3xl font-bold text-blue-900 dark:text-white';
@@ -32,9 +33,7 @@ else {
32
33
  }
33
34
  </script>
34
35
 
35
- <div
36
- class="p-4 w-full text-center bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700"
37
- >
36
+ <div class={divClass}>
38
37
  <h3 class={headClass}>
39
38
  {title}
40
39
  </h3>
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  title?: string;
6
6
  headColor?: Colors;
7
7
  btns: CardButtonType[];
8
+ divClass?: string;
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
@@ -8,6 +8,7 @@ export let rel = '';
8
8
  export let title = 'Apple Watch Series 7 GPS, Aluminium Case, Starlight Sport';
9
9
  export let stars = 5;
10
10
  export let price = '$555';
11
+ export let divClass = 'max-w-sm bg-white rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700';
11
12
  let spanClass;
12
13
  let linkClass;
13
14
  if (btnColor === 'blue') {
@@ -66,7 +67,7 @@ else {
66
67
  }
67
68
  </script>
68
69
 
69
- <div class="max-w-sm bg-white rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700">
70
+ <div class={divClass}>
70
71
  <a href={link} {rel}>
71
72
  <img class="p-8 rounded-t-lg" src={img.src} alt={img.alt} />
72
73
  </a>
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  title?: string;
10
10
  stars?: number;
11
11
  price?: string;
12
+ divClass?: string;
12
13
  };
13
14
  events: {
14
15
  [evt: string]: CustomEvent<any>;
@@ -3,23 +3,20 @@ export let rel = '';
3
3
  export let img = '/images/image-4.jpeg';
4
4
  export let alt = '';
5
5
  export let header = 'Lorem ipsum dolor sit ametit.';
6
+ export let linkClass = 'flex flex-col items-center bg-white rounded-lg border shadow-md md:flex-row md:max-w-xl hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700';
7
+ export let imgClass = 'object-cover w-full h-96 rounded-t-lg md:h-auto md:w-48 md:rounded-none md:rounded-l-lg';
8
+ export let textClass = 'flex flex-col justify-between p-4 leading-normal';
9
+ export let h3Class = 'mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white';
10
+ export let pClass = 'mb-3 font-normal text-gray-700 dark:text-gray-400';
6
11
  </script>
7
12
 
8
- <a
9
- href={link}
10
- {rel}
11
- class="flex flex-col items-center bg-white rounded-lg border shadow-md md:flex-row md:max-w-xl hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700"
12
- >
13
- <img
14
- class="object-cover w-full h-96 rounded-t-lg md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"
15
- src={img}
16
- {alt}
17
- />
18
- <div class="flex flex-col justify-between p-4 leading-normal">
19
- <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
13
+ <a href={link} {rel} class={linkClass}>
14
+ <img class={imgClass} src={img} {alt} />
15
+ <div class={textClass}>
16
+ <h3 class={h3Class}>
20
17
  {header}
21
- </h5>
22
- <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">
18
+ </h3>
19
+ <p class={pClass}>
23
20
  <slot />
24
21
  </p>
25
22
  </div>
@@ -6,6 +6,11 @@ declare const __propDef: {
6
6
  img?: string;
7
7
  alt?: string;
8
8
  header?: string;
9
+ linkClass?: string;
10
+ imgClass?: string;
11
+ textClass?: string;
12
+ h3Class?: string;
13
+ pClass?: string;
9
14
  };
10
15
  events: {
11
16
  [evt: string]: CustomEvent<any>;
@@ -9,6 +9,7 @@ export let content = 'Proin efficitur purus felis.';
9
9
  export let buttonColor = 'blue';
10
10
  export let link1;
11
11
  export let link2;
12
+ export let divClass = 'max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700';
12
13
  let linkClass;
13
14
  if (buttonColor === 'blue') {
14
15
  linkClass =
@@ -48,9 +49,7 @@ else {
48
49
  }
49
50
  </script>
50
51
 
51
- <div
52
- class="max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700"
53
- >
52
+ <div class={divClass}>
54
53
  <div class="flex justify-end px-4 pt-4">
55
54
  <button
56
55
  id="dropdownButton"
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  buttonColor?: string;
10
10
  link1: LinkType;
11
11
  link2: LinkType;
12
+ divClass?: string;
12
13
  };
13
14
  events: {
14
15
  [evt: string]: CustomEvent<any>;
@@ -1,11 +1,10 @@
1
1
  <script >export let lists;
2
2
  export let title = 'Latest Customers';
3
3
  export let action;
4
+ export let divClass = 'p-4 max-w-md bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700';
4
5
  </script>
5
6
 
6
- <div
7
- class="p-4 max-w-md bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700"
8
- >
7
+ <div class={divClass}>
9
8
  <div class="flex justify-between items-center mb-4">
10
9
  <h3 class="text-xl font-bold leading-none text-gray-900 dark:text-white">
11
10
  {title}
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  lists: ListCardType[];
6
6
  title?: string;
7
7
  action: LinkType;
8
+ divClass?: string;
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "author": {
6
6
  "name": "Shinichi Okada",