flowbite-svelte 0.26.6 → 0.26.7
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 +13 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +2 -1
- package/typography/A.svelte +1 -2
- package/typography/A.svelte.d.ts +0 -1
- package/typography/Layout.svelte +10 -0
- package/typography/Layout.svelte.d.ts +20 -0
- package/typography/P.svelte +5 -3
- package/typography/P.svelte.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.7](https://github.com/themesberg/flowbite-svelte/compare/v0.26.6...v0.26.7) (2022-09-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add Layout component ([2204586](https://github.com/themesberg/flowbite-svelte/commit/22045861703bf3e46cc7900e15c4db64d5246c50))
|
|
11
|
+
* add paragraphs page ([db973a3](https://github.com/themesberg/flowbite-svelte/commit/db973a3929bfdc8c4dd48338cc114bdc2c808fb8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* add html block to text page ([37e910a](https://github.com/themesberg/flowbite-svelte/commit/37e910ae269099865865580d419b8dd05dccb7a8))
|
|
17
|
+
|
|
5
18
|
### [0.26.6](https://github.com/themesberg/flowbite-svelte/compare/v0.26.5...v0.26.6) (2022-09-02)
|
|
6
19
|
|
|
7
20
|
|
package/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export { default as DescriptionList } from './typography/DescriptionList.svelte'
|
|
|
112
112
|
export { default as Heading } from './typography/Heading.svelte';
|
|
113
113
|
export { default as Hr } from './typography/Hr.svelte';
|
|
114
114
|
export { default as Img } from './typography/Img.svelte';
|
|
115
|
+
export { default as Layout } from './typography/Layout.svelte';
|
|
115
116
|
export { default as Li } from './typography/Li.svelte';
|
|
116
117
|
export { default as Mark } from './typography/Mark.svelte';
|
|
117
118
|
export { default as List } from './typography/List.svelte';
|
package/index.js
CHANGED
|
@@ -145,6 +145,7 @@ export { default as DescriptionList } from './typography/DescriptionList.svelte'
|
|
|
145
145
|
export { default as Heading } from './typography/Heading.svelte';
|
|
146
146
|
export { default as Hr } from './typography/Hr.svelte';
|
|
147
147
|
export { default as Img } from './typography/Img.svelte';
|
|
148
|
+
export { default as Layout } from './typography/Layout.svelte';
|
|
148
149
|
export { default as Li } from './typography/Li.svelte';
|
|
149
150
|
export { default as Mark } from './typography/Mark.svelte';
|
|
150
151
|
export { default as List } from './typography/List.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.7",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -224,6 +224,7 @@
|
|
|
224
224
|
"./typography/Heading.svelte": "./typography/Heading.svelte",
|
|
225
225
|
"./typography/Hr.svelte": "./typography/Hr.svelte",
|
|
226
226
|
"./typography/Img.svelte": "./typography/Img.svelte",
|
|
227
|
+
"./typography/Layout.svelte": "./typography/Layout.svelte",
|
|
227
228
|
"./typography/Li.svelte": "./typography/Li.svelte",
|
|
228
229
|
"./typography/List.svelte": "./typography/List.svelte",
|
|
229
230
|
"./typography/Mark.svelte": "./typography/Mark.svelte",
|
package/typography/A.svelte
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
export let href = '#';
|
|
3
3
|
export let textColor = 'text-blue-600 dark:text-blue-500';
|
|
4
4
|
export let aClass = 'inline-flex items-center hover:underline';
|
|
5
|
-
export let textSize = 'text-lg';
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
|
-
<a {href} class={classNames(aClass, textColor,
|
|
7
|
+
<a {href} class={classNames(aClass, textColor, $$props.class)}>
|
|
9
8
|
<slot />
|
|
10
9
|
</a>
|
package/typography/A.svelte.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let divClass = 'grid';
|
|
3
|
+
export let cols = 'grid-cols-1 sm:grid-cols-2';
|
|
4
|
+
export let gap;
|
|
5
|
+
let classDiv = classNames(divClass, 'gap-' + String(gap), cols);
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class={classDiv}>
|
|
9
|
+
<slot />
|
|
10
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
divClass?: string;
|
|
5
|
+
cols?: string;
|
|
6
|
+
gap: number;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare type LayoutProps = typeof __propDef.props;
|
|
16
|
+
export declare type LayoutEvents = typeof __propDef.events;
|
|
17
|
+
export declare type LayoutSlots = typeof __propDef.slots;
|
|
18
|
+
export default class Layout extends SvelteComponentTyped<LayoutProps, LayoutEvents, LayoutSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/typography/P.svelte
CHANGED
|
@@ -4,9 +4,11 @@ export let height = 'normal';
|
|
|
4
4
|
export let align = 'left';
|
|
5
5
|
export let justify = false;
|
|
6
6
|
export let italic = false;
|
|
7
|
-
export let
|
|
7
|
+
export let firstupper = false;
|
|
8
|
+
export let upperClass = 'first-line:uppercase first-line:tracking-widest first-letter:text-7xl first-letter:font-bold first-letter:text-gray-900 dark:first-letter:text-gray-100 first-letter:mr-3 first-letter:float-left';
|
|
9
|
+
export let opacity;
|
|
8
10
|
export let whitespace = 'normal';
|
|
9
|
-
export let size = '
|
|
11
|
+
export let size = 'base';
|
|
10
12
|
export let space;
|
|
11
13
|
export let weight;
|
|
12
14
|
const sizes = {
|
|
@@ -67,7 +69,7 @@ let colorAndopacity = color
|
|
|
67
69
|
.join(' ');
|
|
68
70
|
// console.log('colorArr', colorAndopacity);
|
|
69
71
|
// console.log(typeof colorAndopacity);
|
|
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', whitespace && whitespaces[whitespace], $$props.class);
|
|
72
|
+
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);
|
|
71
73
|
</script>
|
|
72
74
|
|
|
73
75
|
<p class={classP}>
|
package/typography/P.svelte.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ declare const __propDef: {
|
|
|
7
7
|
align?: 'left' | 'center' | 'right';
|
|
8
8
|
justify?: boolean;
|
|
9
9
|
italic?: boolean;
|
|
10
|
-
|
|
10
|
+
firstupper?: boolean;
|
|
11
|
+
upperClass?: string;
|
|
12
|
+
opacity: number;
|
|
11
13
|
whitespace?: 'normal' | 'nowrap' | 'pre' | 'preline' | 'prewrap';
|
|
12
14
|
size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
13
15
|
space: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
|