flowbite-svelte 0.26.13 → 0.26.14

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,14 @@
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.26.14](https://github.com/themesberg/flowbite-svelte/compare/v0.26.13...v0.26.14) (2022-09-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Heading and P update ([2313e3e](https://github.com/themesberg/flowbite-svelte/commit/2313e3e5ecb38ee69839a26b12b7c41cc099f75e))
11
+ * toast transitions ([6659682](https://github.com/themesberg/flowbite-svelte/commit/6659682250ab9d2337f06c2b424431366cf9ced0))
12
+
5
13
  ### [0.26.13](https://github.com/themesberg/flowbite-svelte/compare/v0.26.12...v0.26.13) (2022-09-05)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.26.13",
3
+ "version": "0.26.14",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -49,11 +49,11 @@
49
49
  "accordion",
50
50
  "alert",
51
51
  "avatar",
52
- "badges",
53
- "breadcrumbs",
54
- "button-groups",
55
- "buttons",
56
- "cards",
52
+ "badge",
53
+ "breadcrumb",
54
+ "button-group",
55
+ "button",
56
+ "card",
57
57
  "carousel",
58
58
  "darkmode",
59
59
  "dropdown",
@@ -61,19 +61,22 @@
61
61
  "forms",
62
62
  "kbd",
63
63
  "list group",
64
+ "mega menu",
64
65
  "modal",
65
66
  "navbar",
66
- "paginations",
67
- "progress bars",
67
+ "pagination",
68
+ "progressbar",
68
69
  "rating",
69
- "sidebars",
70
+ "sidebar",
70
71
  "skeleton",
71
- "spinners",
72
- "tables",
73
- "tabs",
74
- "timelines",
75
- "toasts",
76
- "tooltip"
72
+ "spinner",
73
+ "table",
74
+ "tab",
75
+ "timeline",
76
+ "toast",
77
+ "tooltip",
78
+ "typography",
79
+ "video"
77
80
  ],
78
81
  "repository": {
79
82
  "type": "git",
@@ -93,7 +96,8 @@
93
96
  "Zoltán Szőgyényi <zoltan@themesberg.com>",
94
97
  "Robert Tanislav <robert@themesberg.com>",
95
98
  "Victor Cordos <victor@themesberg.com>",
96
- "Shinichi Okada <okada.shin@gmail.com>"
99
+ "Shinichi Okada <okada.shin@gmail.com>",
100
+ "Jakub Jagielka <jjagielka@gmail.com>"
97
101
  ],
98
102
  "exports": {
99
103
  "./package.json": "./package.json",
@@ -1,6 +1,7 @@
1
1
  <script>import Frame from '../utils/Frame.svelte';
2
2
  import classNames from 'classnames';
3
3
  import CloseButton from '../utils/CloseButton.svelte';
4
+ import { fade } from 'svelte/transition';
4
5
  export let color = 'blue';
5
6
  export let simple = false;
6
7
  // Absolute position
@@ -18,19 +19,19 @@ $: iconClass = classNames('inline-flex items-center justify-center flex-shrink-0
18
19
  </script>
19
20
 
20
21
  {#if visible}
21
- <Frame rounded border transition="fade" {...$$restProps} class={classDiv} role="alert">
22
- <div class="flex {$$slots.extra ? 'items-start' : 'items-center'}">
23
- {#if $$slots.icon}
24
- <Frame {color} rounded class={iconClass}><slot name="icon" /></Frame>
25
- {/if}
22
+ <Frame rounded border transition={fade} {...$$restProps} class={classDiv} role="alert">
23
+ <div class="flex {$$slots.extra ? 'items-start' : 'items-center'}">
24
+ {#if $$slots.icon}
25
+ <Frame {color} rounded class={iconClass}><slot name="icon" /></Frame>
26
+ {/if}
26
27
 
27
- <div class="text-sm font-normal w-full">
28
- <slot />
29
- <slot name="extra" />
30
- </div>
31
- {#if !simple}
32
- <CloseButton on:click={() => (visible = false)} />
33
- {/if}
34
- </div>
35
- </Frame>
28
+ <div class="text-sm font-normal w-full">
29
+ <slot />
30
+ <slot name="extra" />
31
+ </div>
32
+ {#if !simple}
33
+ <CloseButton on:click={() => (visible = false)} />
34
+ {/if}
35
+ </div>
36
+ </Frame>
36
37
  {/if}
@@ -1,7 +1,7 @@
1
1
  <script>import classNames from 'classnames';
2
2
  export let tag = 'h1';
3
3
  export let color = 'text-gray-900 dark:text-white';
4
- export let customSize;
4
+ export let customSize = '';
5
5
  const textSizes = {
6
6
  h1: 'text-5xl font-extrabold',
7
7
  h2: 'text-4xl font-bold',
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  [x: string]: any;
5
5
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
6
6
  color?: string;
7
- customSize: string;
7
+ customSize?: string;
8
8
  };
9
9
  events: {
10
10
  [evt: string]: CustomEvent<any>;
@@ -10,7 +10,7 @@ export let opacity;
10
10
  export let whitespace = 'normal';
11
11
  export let size = 'base';
12
12
  export let space;
13
- export let weight;
13
+ export let weight = 'normal';
14
14
  const sizes = {
15
15
  xs: 'text-xs',
16
16
  sm: 'text-sm',
@@ -67,8 +67,6 @@ let colorAndopacity = color
67
67
  .map((element) => element.trim())
68
68
  .map((element) => element + '/' + String(opacity))
69
69
  .join(' ');
70
- // console.log('colorArr', colorAndopacity);
71
- // console.log(typeof colorAndopacity);
72
70
  let classP = classNames(size && sizes[size], (opacity && colorAndopacity) || (color && color), height && heights[height], weight && weights[weight], space && spaces[space], align && aligns[align], justify && 'text-justify', italic && 'italic', firstupper && upperClass, whitespace && whitespaces[whitespace], $$props.class);
73
71
  </script>
74
72
 
@@ -13,7 +13,7 @@ declare const __propDef: {
13
13
  whitespace?: 'normal' | 'nowrap' | 'pre' | 'preline' | 'prewrap';
14
14
  size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
15
15
  space: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
16
- weight: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
16
+ weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
17
17
  };
18
18
  events: {
19
19
  [evt: string]: CustomEvent<any>;