flowbite-svelte 0.24.9 → 0.24.12

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,33 @@
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.24.12](https://github.com/themesberg/flowbite-svelte/compare/v0.24.11...v0.24.12) (2022-08-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * add active color to InteractiveTabs and InteractiveTabHead component ([7995e21](https://github.com/themesberg/flowbite-svelte/commit/7995e210f98325350b055a43199fa4d7750ea225))
11
+
12
+ ### [0.24.11](https://github.com/themesberg/flowbite-svelte/compare/v0.24.10...v0.24.11) (2022-08-15)
13
+
14
+
15
+ ### Features
16
+
17
+ * add sticky footer, add $$props.class to all skeleton components ([1fad8dc](https://github.com/themesberg/flowbite-svelte/commit/1fad8dc9d8c0bc1428daeada82f44accc5f7e9a0))
18
+
19
+ ### [0.24.10](https://github.com/themesberg/flowbite-svelte/compare/v0.24.9...v0.24.10) (2022-08-15)
20
+
21
+
22
+ ### Features
23
+
24
+ * modal - crypto ([47cf678](https://github.com/themesberg/flowbite-svelte/commit/47cf678ef2a7bf10c842e367a37e2aedebe7a8fc))
25
+ * modal - crypto + html ([26475ed](https://github.com/themesberg/flowbite-svelte/commit/26475edd98a2c73fbe02580fefb4c8455e25f1bb))
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * create Coinbase, Fortmatic, Metamask, OperaWallet, and WalletConnect component ([f8eabc5](https://github.com/themesberg/flowbite-svelte/commit/f8eabc5b23b8c0d9fab75deca393858952406660))
31
+
5
32
  ### [0.24.9](https://github.com/themesberg/flowbite-svelte/compare/v0.24.8...v0.24.9) (2022-08-15)
6
33
 
7
34
 
@@ -1,5 +1,5 @@
1
1
  <script>import classNames from 'classnames';
2
- export let spanClass = 'text-sm text-gray-500 sm:text-center dark:text-gray-400';
2
+ export let spanClass = 'block text-sm text-gray-500 sm:text-center dark:text-gray-400';
3
3
  export let aClass = 'hover:underline';
4
4
  export let year = new Date().getFullYear();
5
5
  export let href = '';
@@ -119,7 +119,7 @@ const hide = () => {
119
119
  >
120
120
  <!-- Modal header -->
121
121
  {#if $$slots.header || title}
122
- <div class="flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600">
122
+ <div class="flex justify-between items-center p-4 rounded-t border-b dark:border-gray-600">
123
123
  <slot name="header">
124
124
  <h3 class="text-xl font-semibold text-gray-900 dark:text-white p-0">
125
125
  {title}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.24.9",
3
+ "version": "0.24.12",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -1,10 +1,9 @@
1
- <script>export let size = '48';
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700';
3
+ export let size = '48';
2
4
  </script>
3
5
 
4
- <div
5
- role="status"
6
- class="p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700"
7
- >
6
+ <div role="status" class={classNames(divClass, $$props.class)}>
8
7
  <div class="flex justify-center items-center mb-4 h-48 bg-gray-300 rounded dark:bg-gray-700">
9
8
  <svg
10
9
  width={size}
@@ -1,6 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
5
+ divClass?: string;
4
6
  size?: string;
5
7
  };
6
8
  events: {
@@ -1,10 +1,9 @@
1
- <script>export let size = '48';
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'space-y-8 animate-pulse md:space-y-0 md:space-x-8 md:flex md:items-center';
3
+ export let size = '48';
2
4
  </script>
3
5
 
4
- <div
5
- role="status"
6
- class="space-y-8 animate-pulse md:space-y-0 md:space-x-8 md:flex md:items-center"
7
- >
6
+ <div role="status" class={classNames(divClass, $$props.class)}>
8
7
  <div
9
8
  class="flex justify-center items-center w-full h-48 bg-gray-300 rounded sm:w-96 dark:bg-gray-700"
10
9
  >
@@ -1,6 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
5
+ divClass?: string;
4
6
  size?: string;
5
7
  };
6
8
  events: {
@@ -1,7 +1,8 @@
1
- <div
2
- role="status"
3
- class="p-4 space-y-4 max-w-md rounded border border-gray-200 divide-y divide-gray-200 shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"
4
- >
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'p-4 space-y-4 max-w-md rounded border border-gray-200 divide-y divide-gray-200 shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700';
3
+ </script>
4
+
5
+ <div role="status" class={classNames(divClass, $$props.class)}>
5
6
  <div class="flex justify-between items-center">
6
7
  <div>
7
8
  <div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5" />
@@ -1,19 +1,17 @@
1
- /** @typedef {typeof __propDef.props} ListPlaceholderProps */
2
- /** @typedef {typeof __propDef.events} ListPlaceholderEvents */
3
- /** @typedef {typeof __propDef.slots} ListPlaceholderSlots */
4
- export default class ListPlaceholder extends SvelteComponentTyped<{}, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> {
7
- }
8
- export type ListPlaceholderProps = typeof __propDef.props;
9
- export type ListPlaceholderEvents = typeof __propDef.events;
10
- export type ListPlaceholderSlots = typeof __propDef.slots;
11
1
  import { SvelteComponentTyped } from "svelte";
12
2
  declare const __propDef: {
13
- props: {};
3
+ props: {
4
+ [x: string]: any;
5
+ divClass?: string;
6
+ };
14
7
  events: {
15
8
  [evt: string]: CustomEvent<any>;
16
9
  };
17
10
  slots: {};
18
11
  };
12
+ export declare type ListPlaceholderProps = typeof __propDef.props;
13
+ export declare type ListPlaceholderEvents = typeof __propDef.events;
14
+ export declare type ListPlaceholderSlots = typeof __propDef.slots;
15
+ export default class ListPlaceholder extends SvelteComponentTyped<ListPlaceholderProps, ListPlaceholderEvents, ListPlaceholderSlots> {
16
+ }
19
17
  export {};
@@ -1,4 +1,8 @@
1
- <div role="status" class="max-w-sm animate-pulse">
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'max-w-sm animate-pulse';
3
+ </script>
4
+
5
+ <div role="status" class={classNames(divClass, $$props.class)}>
2
6
  <div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4" />
3
7
  <div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[360px] mb-2.5" />
4
8
  <div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
@@ -1,19 +1,17 @@
1
- /** @typedef {typeof __propDef.props} SkeletonProps */
2
- /** @typedef {typeof __propDef.events} SkeletonEvents */
3
- /** @typedef {typeof __propDef.slots} SkeletonSlots */
4
- export default class Skeleton extends SvelteComponentTyped<{}, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> {
7
- }
8
- export type SkeletonProps = typeof __propDef.props;
9
- export type SkeletonEvents = typeof __propDef.events;
10
- export type SkeletonSlots = typeof __propDef.slots;
11
1
  import { SvelteComponentTyped } from "svelte";
12
2
  declare const __propDef: {
13
- props: {};
3
+ props: {
4
+ [x: string]: any;
5
+ divClass?: string;
6
+ };
14
7
  events: {
15
8
  [evt: string]: CustomEvent<any>;
16
9
  };
17
10
  slots: {};
18
11
  };
12
+ export declare type SkeletonProps = typeof __propDef.props;
13
+ export declare type SkeletonEvents = typeof __propDef.events;
14
+ export declare type SkeletonSlots = typeof __propDef.slots;
15
+ export default class Skeleton extends SvelteComponentTyped<SkeletonProps, SkeletonEvents, SkeletonSlots> {
16
+ }
19
17
  export {};
@@ -1,4 +1,8 @@
1
- <div role="status" class="animate-pulse">
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'animate-pulse';
3
+ </script>
4
+
5
+ <div role="status" class={classNames(divClass, $$props.class)}>
2
6
  <div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 max-w-[640px] mb-2.5 mx-auto" />
3
7
  <div class="h-2.5 mx-auto bg-gray-300 rounded-full dark:bg-gray-700 max-w-[540px]" />
4
8
  <div class="flex justify-center items-center mt-4">
@@ -1,19 +1,17 @@
1
- /** @typedef {typeof __propDef.props} TestimonialPlaceholderProps */
2
- /** @typedef {typeof __propDef.events} TestimonialPlaceholderEvents */
3
- /** @typedef {typeof __propDef.slots} TestimonialPlaceholderSlots */
4
- export default class TestimonialPlaceholder extends SvelteComponentTyped<{}, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> {
7
- }
8
- export type TestimonialPlaceholderProps = typeof __propDef.props;
9
- export type TestimonialPlaceholderEvents = typeof __propDef.events;
10
- export type TestimonialPlaceholderSlots = typeof __propDef.slots;
11
1
  import { SvelteComponentTyped } from "svelte";
12
2
  declare const __propDef: {
13
- props: {};
3
+ props: {
4
+ [x: string]: any;
5
+ divClass?: string;
6
+ };
14
7
  events: {
15
8
  [evt: string]: CustomEvent<any>;
16
9
  };
17
10
  slots: {};
18
11
  };
12
+ export declare type TestimonialPlaceholderProps = typeof __propDef.props;
13
+ export declare type TestimonialPlaceholderEvents = typeof __propDef.events;
14
+ export declare type TestimonialPlaceholderSlots = typeof __propDef.slots;
15
+ export default class TestimonialPlaceholder extends SvelteComponentTyped<TestimonialPlaceholderProps, TestimonialPlaceholderEvents, TestimonialPlaceholderSlots> {
16
+ }
19
17
  export {};
@@ -1,4 +1,8 @@
1
- <div role="status" class="space-y-2.5 animate-pulse max-w-lg">
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'space-y-2.5 animate-pulse max-w-lg';
3
+ </script>
4
+
5
+ <div role="status" class={classNames(divClass, $$props.class)}>
2
6
  <div class="flex items-center space-x-2 w-full">
3
7
  <div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32" />
4
8
  <div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24" />
@@ -1,19 +1,17 @@
1
- /** @typedef {typeof __propDef.props} TextPlaceholderProps */
2
- /** @typedef {typeof __propDef.events} TextPlaceholderEvents */
3
- /** @typedef {typeof __propDef.slots} TextPlaceholderSlots */
4
- export default class TextPlaceholder extends SvelteComponentTyped<{}, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> {
7
- }
8
- export type TextPlaceholderProps = typeof __propDef.props;
9
- export type TextPlaceholderEvents = typeof __propDef.events;
10
- export type TextPlaceholderSlots = typeof __propDef.slots;
11
1
  import { SvelteComponentTyped } from "svelte";
12
2
  declare const __propDef: {
13
- props: {};
3
+ props: {
4
+ [x: string]: any;
5
+ divClass?: string;
6
+ };
14
7
  events: {
15
8
  [evt: string]: CustomEvent<any>;
16
9
  };
17
10
  slots: {};
18
11
  };
12
+ export declare type TextPlaceholderProps = typeof __propDef.props;
13
+ export declare type TextPlaceholderEvents = typeof __propDef.events;
14
+ export declare type TextPlaceholderSlots = typeof __propDef.slots;
15
+ export default class TextPlaceholder extends SvelteComponentTyped<TextPlaceholderProps, TextPlaceholderEvents, TextPlaceholderSlots> {
16
+ }
19
17
  export {};
@@ -1,10 +1,9 @@
1
- <script>export let size = '48';
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'flex justify-center items-center max-w-sm h-56 bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700';
3
+ export let size = '48';
2
4
  </script>
3
5
 
4
- <div
5
- role="status"
6
- class="flex justify-center items-center max-w-sm h-56 bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"
7
- >
6
+ <div role="status" class={classNames(divClass, $$props.class)}>
8
7
  <svg
9
8
  width={size}
10
9
  height={size}
@@ -1,6 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
5
+ divClass?: string;
4
6
  size?: string;
5
7
  };
6
8
  events: {
@@ -1,7 +1,8 @@
1
- <div
2
- role="status"
3
- class="p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700"
4
- >
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700';
3
+ </script>
4
+
5
+ <div role="status" class={classNames(divClass, $$props.class)}>
5
6
  <div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2.5" />
6
7
  <div class="mb-10 w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
7
8
  <div class="flex items-baseline mt-4 space-x-6">
@@ -1,19 +1,17 @@
1
- /** @typedef {typeof __propDef.props} WidgetPlaceholderProps */
2
- /** @typedef {typeof __propDef.events} WidgetPlaceholderEvents */
3
- /** @typedef {typeof __propDef.slots} WidgetPlaceholderSlots */
4
- export default class WidgetPlaceholder extends SvelteComponentTyped<{}, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> {
7
- }
8
- export type WidgetPlaceholderProps = typeof __propDef.props;
9
- export type WidgetPlaceholderEvents = typeof __propDef.events;
10
- export type WidgetPlaceholderSlots = typeof __propDef.slots;
11
1
  import { SvelteComponentTyped } from "svelte";
12
2
  declare const __propDef: {
13
- props: {};
3
+ props: {
4
+ [x: string]: any;
5
+ divClass?: string;
6
+ };
14
7
  events: {
15
8
  [evt: string]: CustomEvent<any>;
16
9
  };
17
10
  slots: {};
18
11
  };
12
+ export declare type WidgetPlaceholderProps = typeof __propDef.props;
13
+ export declare type WidgetPlaceholderEvents = typeof __propDef.events;
14
+ export declare type WidgetPlaceholderSlots = typeof __propDef.slots;
15
+ export default class WidgetPlaceholder extends SvelteComponentTyped<WidgetPlaceholderProps, WidgetPlaceholderEvents, WidgetPlaceholderSlots> {
16
+ }
19
17
  export {};
@@ -1,7 +1,11 @@
1
1
  <script>import { tabStore } from './tabStores';
2
+ import classNames from 'classnames';
2
3
  export let tabs;
3
4
  export let tabId = 'myTab';
4
5
  export let activeTabValue = 1;
6
+ export let btnClass = 'inline-block py-4 px-4 text-sm font-medium text-center rounded-t-lg border-b-2 border-transparent';
7
+ export let activeClass = 'text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-400 border-blue-600 dark:border-blue-500';
8
+ export let inactiveClasses = 'text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300';
5
9
  const handleClick = (tabValue) => () => {
6
10
  tabStore.update((n) => (n = tabValue));
7
11
  activeTabValue = tabValue;
@@ -36,12 +40,11 @@ Header part of Interactive tab component. Use with TabContent.
36
40
  <li class="mr-2" role="presentation">
37
41
  <button
38
42
  on:click={handleClick(id)}
39
- class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
43
+ class={classNames(btnClass, activeTabValue === id ? activeClass : inactiveClasses)}
40
44
  id="{name}-tab"
41
45
  data-tabs-target="#{name}"
42
46
  type="button"
43
47
  role="tab"
44
- class:active={activeTabValue === id}
45
48
  aria-controls={name}
46
49
  aria-selected="false"
47
50
  on:blur
@@ -5,6 +5,9 @@ declare const __propDef: {
5
5
  tabs: TabHeadType[];
6
6
  tabId?: string;
7
7
  activeTabValue?: number;
8
+ btnClass?: string;
9
+ activeClass?: string;
10
+ inactiveClasses?: string;
8
11
  };
9
12
  events: {
10
13
  blur: FocusEvent;
@@ -1,6 +1,10 @@
1
- <script>export let tabId = 'myTab';
1
+ <script>import classNames from 'classnames';
2
+ export let tabId = 'myTab';
2
3
  export let activeTabValue = 1;
3
4
  export let tabs;
5
+ export let btnClass = 'inline-block py-4 px-4 text-sm font-medium text-center rounded-t-lg border-b-2 border-transparent';
6
+ export let activeClass = 'text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-400 border-blue-600 dark:border-blue-500';
7
+ export let inactiveClasses = 'text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300';
4
8
  const handleClick = (tabValue) => () => (activeTabValue = tabValue);
5
9
  </script>
6
10
 
@@ -19,11 +23,10 @@ const handleClick = (tabValue) => () => (activeTabValue = tabValue);
19
23
  on:mouseenter
20
24
  on:mouseleave
21
25
  on:mouseover
22
- class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
26
+ class={classNames(btnClass, activeTabValue === id ? activeClass : inactiveClasses)}
23
27
  id="{name}-tab"
24
28
  type="button"
25
29
  role="tab"
26
- class:active={activeTabValue === id}
27
30
  aria-controls={name}>{name}</button
28
31
  >
29
32
  </li>
@@ -5,6 +5,9 @@ declare const __propDef: {
5
5
  tabId?: string;
6
6
  activeTabValue?: number;
7
7
  tabs: InteractiveTabType[];
8
+ btnClass?: string;
9
+ activeClass?: string;
10
+ inactiveClasses?: string;
8
11
  };
9
12
  events: {
10
13
  blur: FocusEvent;