flowbite-svelte 0.26.3 → 0.26.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.
- package/CHANGELOG.md +40 -0
- package/alerts/Alert.svelte +21 -21
- package/dropdowns/Dropdown.svelte +3 -12
- package/index.d.ts +6 -5
- package/index.js +6 -5
- package/list-group/{List.svelte → Listgroup.svelte} +6 -6
- package/list-group/Listgroup.svelte.d.ts +23 -0
- package/list-group/{ListItem.svelte → ListgroupItem.svelte} +0 -0
- package/list-group/{ListItem.svelte.d.ts → ListgroupItem.svelte.d.ts} +4 -4
- package/package.json +8 -5
- package/popover/Popover.svelte +12 -13
- package/popover/Popover.svelte.d.ts +0 -1
- package/typography/Blockquote.svelte +23 -14
- package/typography/Blockquote.svelte.d.ts +1 -1
- package/typography/DescriptionList.svelte +10 -0
- package/typography/DescriptionList.svelte.d.ts +21 -0
- package/typography/Heading.svelte +3 -4
- package/typography/Li.svelte +9 -0
- package/typography/Li.svelte.d.ts +20 -0
- package/typography/List.svelte +23 -0
- package/{list-group → typography}/List.svelte.d.ts +7 -5
- package/typography/P.svelte +71 -5
- package/typography/P.svelte.d.ts +10 -3
- package/typography/Span.svelte +17 -0
- package/typography/Span.svelte.d.ts +27 -0
- package/typography/Ul.svelte +20 -0
- package/typography/Ul.svelte.d.ts +21 -0
- package/typography/Underline.svelte +2 -2
- package/utils/Popper.svelte +25 -12
- package/utils/Popper.svelte.d.ts +2 -1
- package/typography/Highlight.svelte +0 -7
- package/typography/Highlight.svelte.d.ts +0 -19
- package/typography/TextGradient.svelte +0 -7
- package/typography/TextGradient.svelte.d.ts +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
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.6](https://github.com/themesberg/flowbite-svelte/compare/v0.26.5...v0.26.6) (2022-09-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add highlight to Span component and update heading page ([d47121b](https://github.com/themesberg/flowbite-svelte/commit/d47121ba47e6c6e3dfdd366128f51da77a966e0f))
|
|
11
|
+
* add Text decoration examples to text page ([fe074cd](https://github.com/themesberg/flowbite-svelte/commit/fe074cd2a36d780333444f276de69edec51649d5))
|
|
12
|
+
* add underline and decoratio class to Span ([f3b11a9](https://github.com/themesberg/flowbite-svelte/commit/f3b11a92b3782c27e09f25c894a81402661b73d3))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* header blocking anchor links ([af6d2d6](https://github.com/themesberg/flowbite-svelte/commit/af6d2d6eb9bb630e58e76fd214f8a14f0435dc2f))
|
|
18
|
+
* remove TextGradient and Underline ([cb7b2d7](https://github.com/themesberg/flowbite-svelte/commit/cb7b2d753f110cad4677f990d60a11154e38ac93))
|
|
19
|
+
|
|
20
|
+
### [0.26.5](https://github.com/themesberg/flowbite-svelte/compare/v0.26.4...v0.26.5) (2022-09-02)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add DescriptionList, List, Span components ([495b61e](https://github.com/themesberg/flowbite-svelte/commit/495b61eb0d81eb9ae06a34fa981dd42a81983ea6))
|
|
26
|
+
* add Ul, Li, Span component ([86d8b66](https://github.com/themesberg/flowbite-svelte/commit/86d8b661f2524f25162a99b6d3b8df761a85b01b))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* blockquote page formating ([1641d45](https://github.com/themesberg/flowbite-svelte/commit/1641d45bdc032c01cd201967bf362d9f8a19a422))
|
|
32
|
+
* Heading to the original code ([5604da5](https://github.com/themesberg/flowbite-svelte/commit/5604da5f348420f8878e44d591e9a8704b23e4a0))
|
|
33
|
+
* List in cards page to Listgroup ([b8e05f4](https://github.com/themesberg/flowbite-svelte/commit/b8e05f4f97fbbb0236872b2b5f18f0928c34ad55))
|
|
34
|
+
* rebase merge conflict Alert.svelte ([38df84a](https://github.com/themesberg/flowbite-svelte/commit/38df84a21124d3d3c3c1d716ff21bd678b156b09))
|
|
35
|
+
* removed Ol component ([569f2e3](https://github.com/themesberg/flowbite-svelte/commit/569f2e3a51a59abba641c669949b4b5372c56a01))
|
|
36
|
+
* rename List to Listgroup and ListItem to ListgroupItem ([1b70110](https://github.com/themesberg/flowbite-svelte/commit/1b7011062a729452604b3a0dd1ed54f28ab49132))
|
|
37
|
+
|
|
38
|
+
### [0.26.4](https://github.com/themesberg/flowbite-svelte/compare/v0.26.3...v0.26.4) (2022-09-02)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* programatic popper open merged ([86f9874](https://github.com/themesberg/flowbite-svelte/commit/86f9874e1c2390e3571b6df96acfa61af23fd865))
|
|
44
|
+
|
|
5
45
|
### [0.26.3](https://github.com/themesberg/flowbite-svelte/compare/v0.26.2...v0.26.3) (2022-09-01)
|
|
6
46
|
|
|
7
47
|
|
package/alerts/Alert.svelte
CHANGED
|
@@ -18,27 +18,27 @@ $: divClass = classNames('p-4 text-sm', accent && 'border-t-4 ', hidden && 'hidd
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<Frame {color} {rounded} {...$$restProps} class={divClass} role="alert">
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
<div class="flex items-center whitespace-pre-wrap">
|
|
22
|
+
{#if $$slots.icon}
|
|
23
|
+
<slot name="icon" />
|
|
24
|
+
{/if}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
<slot />
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
{#if dismissable}
|
|
29
|
+
<CloseButton
|
|
30
|
+
class="-mx-1.5 -my-1.5"
|
|
31
|
+
{color}
|
|
32
|
+
on:click={handleHide}
|
|
33
|
+
on:click
|
|
34
|
+
on:change
|
|
35
|
+
on:keydown
|
|
36
|
+
on:keyup
|
|
37
|
+
on:focus
|
|
38
|
+
on:blur
|
|
39
|
+
on:mouseenter
|
|
40
|
+
on:mouseleave />
|
|
41
|
+
{/if}
|
|
42
|
+
</div>
|
|
43
|
+
<slot name="extra" />
|
|
44
44
|
</Frame>
|
|
@@ -6,7 +6,6 @@ import ChevronUp from '../utils/ChevronUp.svelte';
|
|
|
6
6
|
import ChevronRight from '../utils/ChevronRight.svelte';
|
|
7
7
|
import ChevronDown from '../utils/ChevronDown.svelte';
|
|
8
8
|
import ChevronLeft from '../utils/ChevronLeft.svelte';
|
|
9
|
-
import generateId from '../utils/generateId';
|
|
10
9
|
export let label = '';
|
|
11
10
|
export let inline = false;
|
|
12
11
|
export let arrowIcon = true;
|
|
@@ -14,7 +13,6 @@ export let labelClass = 'flex items-center justify-between w-full py-2 pl-3 pr-4
|
|
|
14
13
|
export let placement = 'bottom';
|
|
15
14
|
export let open = false;
|
|
16
15
|
export let triggeredBy = undefined;
|
|
17
|
-
let id = generateId();
|
|
18
16
|
const icons = {
|
|
19
17
|
top: ChevronUp,
|
|
20
18
|
right: ChevronRight,
|
|
@@ -30,7 +28,7 @@ $: popoverClass = classNames('outline-none', $$props.class);
|
|
|
30
28
|
{#if label}
|
|
31
29
|
<slot name="trigger">
|
|
32
30
|
{#if inline}
|
|
33
|
-
<button
|
|
31
|
+
<button class={labelClass} class:flex-row-reverse={icon == ChevronLeft}>
|
|
34
32
|
<slot name="label">{label}</slot>
|
|
35
33
|
{#if arrowIcon}
|
|
36
34
|
<svelte:component
|
|
@@ -39,7 +37,7 @@ $: popoverClass = classNames('outline-none', $$props.class);
|
|
|
39
37
|
{/if}
|
|
40
38
|
</button>
|
|
41
39
|
{:else}
|
|
42
|
-
<Button {
|
|
40
|
+
<Button {...$$restProps} class={icon == ChevronLeft && 'flex-row-reverse'}>
|
|
43
41
|
<slot name="label">{label}</slot>
|
|
44
42
|
{#if arrowIcon}
|
|
45
43
|
<svelte:component
|
|
@@ -51,14 +49,7 @@ $: popoverClass = classNames('outline-none', $$props.class);
|
|
|
51
49
|
</slot>
|
|
52
50
|
{/if}
|
|
53
51
|
|
|
54
|
-
<Popper
|
|
55
|
-
activeContent={true}
|
|
56
|
-
arrow={false}
|
|
57
|
-
{placement}
|
|
58
|
-
trigger="click"
|
|
59
|
-
on:show
|
|
60
|
-
bind:open
|
|
61
|
-
triggeredBy={triggeredBy ?? '#' + id}>
|
|
52
|
+
<Popper activeContent={true} arrow={false} {placement} trigger="click" on:show bind:open {triggeredBy}>
|
|
62
53
|
<Frame class={popoverClass} rounded border shadow>
|
|
63
54
|
<slot name="content">
|
|
64
55
|
<ul class="py-1">
|
package/index.d.ts
CHANGED
|
@@ -43,8 +43,8 @@ export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
|
|
|
43
43
|
export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
|
|
44
44
|
export { default as ArrowKeyRight } from './kbd/ArrowKeyRight.svelte';
|
|
45
45
|
export { default as ArrowKeyUp } from './kbd/ArrowKeyUp.svelte';
|
|
46
|
-
export { default as
|
|
47
|
-
export { default as
|
|
46
|
+
export { default as Listgroup } from './list-group/Listgroup.svelte';
|
|
47
|
+
export { default as ListgroupItem } from './list-group/ListgroupItem.svelte';
|
|
48
48
|
export { default as Modal } from './modals/Modal.svelte';
|
|
49
49
|
export { default as MegaMenu } from './megamenu/MegaMenu.svelte';
|
|
50
50
|
export { default as Navbar } from './navbar/Navbar.svelte';
|
|
@@ -108,15 +108,16 @@ export { default as ToolbarGroup } from './toolbar/ToolbarGroup.svelte';
|
|
|
108
108
|
export { default as Tooltip } from './tooltips/Tooltip.svelte';
|
|
109
109
|
export { default as A } from './typography/A.svelte';
|
|
110
110
|
export { default as Blockquote } from './typography/Blockquote.svelte';
|
|
111
|
+
export { default as DescriptionList } from './typography/DescriptionList.svelte';
|
|
111
112
|
export { default as Heading } from './typography/Heading.svelte';
|
|
112
|
-
export { default as Highlight } from './typography/Highlight.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 Li } from './typography/Li.svelte';
|
|
115
116
|
export { default as Mark } from './typography/Mark.svelte';
|
|
117
|
+
export { default as List } from './typography/List.svelte';
|
|
116
118
|
export { default as P } from './typography/P.svelte';
|
|
117
119
|
export { default as Secondary } from './typography/Secondary.svelte';
|
|
118
|
-
export { default as
|
|
119
|
-
export { default as Underline } from './typography/Underline.svelte';
|
|
120
|
+
export { default as Span } from './typography/Span.svelte';
|
|
120
121
|
export { default as CloseButton } from './utils/CloseButton.svelte';
|
|
121
122
|
export { default as ChevronDown } from './utils/ChevronDown.svelte';
|
|
122
123
|
export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
|
package/index.js
CHANGED
|
@@ -59,8 +59,8 @@ export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
|
|
|
59
59
|
export { default as ArrowKeyRight } from './kbd/ArrowKeyRight.svelte';
|
|
60
60
|
export { default as ArrowKeyUp } from './kbd/ArrowKeyUp.svelte';
|
|
61
61
|
// List
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
62
|
+
export { default as Listgroup } from './list-group/Listgroup.svelte';
|
|
63
|
+
export { default as ListgroupItem } from './list-group/ListgroupItem.svelte';
|
|
64
64
|
// Modals
|
|
65
65
|
export { default as Modal } from './modals/Modal.svelte';
|
|
66
66
|
// MegaMenu
|
|
@@ -141,15 +141,16 @@ export { default as Tooltip } from './tooltips/Tooltip.svelte';
|
|
|
141
141
|
// Typography
|
|
142
142
|
export { default as A } from './typography/A.svelte';
|
|
143
143
|
export { default as Blockquote } from './typography/Blockquote.svelte';
|
|
144
|
+
export { default as DescriptionList } from './typography/DescriptionList.svelte';
|
|
144
145
|
export { default as Heading } from './typography/Heading.svelte';
|
|
145
|
-
export { default as Highlight } from './typography/Highlight.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 Li } from './typography/Li.svelte';
|
|
148
149
|
export { default as Mark } from './typography/Mark.svelte';
|
|
150
|
+
export { default as List } from './typography/List.svelte';
|
|
149
151
|
export { default as P } from './typography/P.svelte';
|
|
150
152
|
export { default as Secondary } from './typography/Secondary.svelte';
|
|
151
|
-
export { default as
|
|
152
|
-
export { default as Underline } from './typography/Underline.svelte';
|
|
153
|
+
export { default as Span } from './typography/Span.svelte';
|
|
153
154
|
// utils
|
|
154
155
|
export { default as CloseButton } from './utils/CloseButton.svelte';
|
|
155
156
|
export { default as ChevronDown } from './utils/ChevronDown.svelte';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { setContext } from 'svelte';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import
|
|
3
|
+
import ListgroupItem from './ListgroupItem.svelte';
|
|
4
4
|
import Frame from '../utils/Frame.svelte';
|
|
5
5
|
export let items = [];
|
|
6
6
|
export let active = false;
|
|
@@ -10,9 +10,9 @@ $: groupClass = classNames('divide-y divide-gray-200 dark:divide-gray-600', $$pr
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<Frame tag={active ? 'div' : 'ul'} rounded border class={groupClass}>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
{#each items as item, index}
|
|
14
|
+
<ListgroupItem {active} {...item} {index} on:click><slot {item} {index} /></ListgroupItem>
|
|
15
|
+
{:else}
|
|
16
|
+
<slot />
|
|
17
|
+
{/each}
|
|
18
18
|
</Frame>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { ListGroupItemType } from '../types';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
items?: ListGroupItemType[];
|
|
7
|
+
active?: boolean;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
click: CustomEvent<any>;
|
|
11
|
+
} & {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare type ListgroupProps = typeof __propDef.props;
|
|
19
|
+
export declare type ListgroupEvents = typeof __propDef.events;
|
|
20
|
+
export declare type ListgroupSlots = typeof __propDef.slots;
|
|
21
|
+
export default class Listgroup extends SvelteComponentTyped<ListgroupProps, ListgroupEvents, ListgroupSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
File without changes
|
|
@@ -27,9 +27,9 @@ declare const __propDef: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export declare type
|
|
31
|
-
export declare type
|
|
32
|
-
export declare type
|
|
33
|
-
export default class
|
|
30
|
+
export declare type ListgroupItemProps = typeof __propDef.props;
|
|
31
|
+
export declare type ListgroupItemEvents = typeof __propDef.events;
|
|
32
|
+
export declare type ListgroupItemSlots = typeof __propDef.slots;
|
|
33
|
+
export default class ListgroupItem extends SvelteComponentTyped<ListgroupItemProps, ListgroupItemEvents, ListgroupItemSlots> {
|
|
34
34
|
}
|
|
35
35
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"./kbd/ArrowKeyRight.svelte": "./kbd/ArrowKeyRight.svelte",
|
|
152
152
|
"./kbd/ArrowKeyUp.svelte": "./kbd/ArrowKeyUp.svelte",
|
|
153
153
|
"./kbd/Kbd.svelte": "./kbd/Kbd.svelte",
|
|
154
|
-
"./list-group/
|
|
155
|
-
"./list-group/
|
|
154
|
+
"./list-group/Listgroup.svelte": "./list-group/Listgroup.svelte",
|
|
155
|
+
"./list-group/ListgroupItem.svelte": "./list-group/ListgroupItem.svelte",
|
|
156
156
|
"./megamenu/MegaMenu.svelte": "./megamenu/MegaMenu.svelte",
|
|
157
157
|
"./modals/Modal.svelte": "./modals/Modal.svelte",
|
|
158
158
|
"./navbar/Menu.svelte": "./navbar/Menu.svelte",
|
|
@@ -220,14 +220,17 @@
|
|
|
220
220
|
"./types": "./types.js",
|
|
221
221
|
"./typography/A.svelte": "./typography/A.svelte",
|
|
222
222
|
"./typography/Blockquote.svelte": "./typography/Blockquote.svelte",
|
|
223
|
+
"./typography/DescriptionList.svelte": "./typography/DescriptionList.svelte",
|
|
223
224
|
"./typography/Heading.svelte": "./typography/Heading.svelte",
|
|
224
|
-
"./typography/Highlight.svelte": "./typography/Highlight.svelte",
|
|
225
225
|
"./typography/Hr.svelte": "./typography/Hr.svelte",
|
|
226
226
|
"./typography/Img.svelte": "./typography/Img.svelte",
|
|
227
|
+
"./typography/Li.svelte": "./typography/Li.svelte",
|
|
228
|
+
"./typography/List.svelte": "./typography/List.svelte",
|
|
227
229
|
"./typography/Mark.svelte": "./typography/Mark.svelte",
|
|
228
230
|
"./typography/P.svelte": "./typography/P.svelte",
|
|
229
231
|
"./typography/Secondary.svelte": "./typography/Secondary.svelte",
|
|
230
|
-
"./typography/
|
|
232
|
+
"./typography/Span.svelte": "./typography/Span.svelte",
|
|
233
|
+
"./typography/Ul.svelte": "./typography/Ul.svelte",
|
|
231
234
|
"./typography/Underline.svelte": "./typography/Underline.svelte",
|
|
232
235
|
"./utils/ChevronDown.svelte": "./utils/ChevronDown.svelte",
|
|
233
236
|
"./utils/ChevronLeft.svelte": "./utils/ChevronLeft.svelte",
|
package/popover/Popover.svelte
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
<script>import Popper from '../utils/Popper.svelte';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
export let title = '';
|
|
4
|
-
export let triggeredBy;
|
|
5
4
|
let popoverClass;
|
|
6
5
|
$: popoverClass = classNames('rounded-lg shadow-sm', 'bg-white dark:bg-gray-800', 'text-gray-500 dark:text-gray-400', 'border border-gray-200 dark:border-gray-700', $$props.class);
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
|
-
<Popper activeContent={true} {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
<Popper activeContent={true} {...$$restProps} class={popoverClass} on:show>
|
|
9
|
+
{#if $$slots.title || title}
|
|
10
|
+
<div
|
|
11
|
+
class="py-2 px-3 bg-gray-100 rounded-t-lg border-b border-gray-200 dark:border-gray-600 dark:bg-gray-700">
|
|
12
|
+
<slot name="title">
|
|
13
|
+
<h3 class="font-semibold text-gray-900 dark:text-white">{title}</h3>
|
|
14
|
+
</slot>
|
|
15
|
+
</div>
|
|
16
|
+
{/if}
|
|
17
|
+
<div class="py-2 px-3">
|
|
18
|
+
<slot />
|
|
19
|
+
</div>
|
|
21
20
|
</Popper>
|
|
@@ -11,24 +11,33 @@ let alignmentClasses = {
|
|
|
11
11
|
center: 'text-center',
|
|
12
12
|
right: 'text-right'
|
|
13
13
|
};
|
|
14
|
-
export let size = '
|
|
15
|
-
|
|
14
|
+
export let size = 'lg';
|
|
15
|
+
const sizes = {
|
|
16
|
+
xs: 'text-xs',
|
|
17
|
+
sm: 'text-sm',
|
|
18
|
+
base: 'text-base',
|
|
16
19
|
lg: 'text-lg',
|
|
17
20
|
xl: 'text-xl',
|
|
18
|
-
|
|
21
|
+
'2xl': 'text-2xl',
|
|
22
|
+
'3xl': 'text-3xl',
|
|
23
|
+
'4xl': 'text-4xl',
|
|
24
|
+
'5xl': 'text-5xl',
|
|
25
|
+
'6xl': 'text-6xl',
|
|
26
|
+
'7xl': 'text-7xl',
|
|
27
|
+
'8xl': 'text-8xl',
|
|
28
|
+
'9xl': 'text-9xl'
|
|
19
29
|
};
|
|
20
30
|
</script>
|
|
21
31
|
|
|
22
32
|
<blockquote
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<slot />
|
|
33
|
+
class={classNames(
|
|
34
|
+
baseClass,
|
|
35
|
+
alignmentClasses[alignment],
|
|
36
|
+
sizes[size],
|
|
37
|
+
bg && bgClass,
|
|
38
|
+
border && borderClass,
|
|
39
|
+
italic && 'italic',
|
|
40
|
+
$$props.class
|
|
41
|
+
)}>
|
|
42
|
+
<slot />
|
|
34
43
|
</blockquote>
|
|
@@ -9,7 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
bg?: boolean;
|
|
10
10
|
baseClass?: string;
|
|
11
11
|
alignment?: 'left' | 'center' | 'right';
|
|
12
|
-
size?: 'lg' | 'xl' | '
|
|
12
|
+
size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let tag;
|
|
3
|
+
export let dtClass = 'text-gray-500 md:text-lg dark:text-gray-400';
|
|
4
|
+
export let ddClass = 'text-lg font-semibold';
|
|
5
|
+
let classDesc = classNames(tag === 'dt' ? dtClass : ddClass, $$props.class);
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<svelte:element this={tag} class={classDesc}>
|
|
9
|
+
<slot />
|
|
10
|
+
</svelte:element>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
tag: 'dt' | 'dd';
|
|
6
|
+
dtClass?: string;
|
|
7
|
+
ddClass?: string;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare type DescriptionListProps = typeof __propDef.props;
|
|
17
|
+
export declare type DescriptionListEvents = typeof __propDef.events;
|
|
18
|
+
export declare type DescriptionListSlots = typeof __propDef.slots;
|
|
19
|
+
export default class DescriptionList extends SvelteComponentTyped<DescriptionListProps, DescriptionListEvents, DescriptionListSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -13,8 +13,7 @@ const textSizes = {
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<svelte:element
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<slot />
|
|
16
|
+
this={tag}
|
|
17
|
+
class={classNames(customSize ? customSize : textSizes[tag], textColor, 'w-full', $$props.class)}>
|
|
18
|
+
<slot />
|
|
20
19
|
</svelte:element>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
liClass?: string;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare type LiProps = typeof __propDef.props;
|
|
16
|
+
export declare type LiEvents = typeof __propDef.events;
|
|
17
|
+
export declare type LiSlots = typeof __propDef.slots;
|
|
18
|
+
export default class Li extends SvelteComponentTyped<LiProps, LiEvents, LiSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let tag = 'ul';
|
|
3
|
+
export let list = 'disc';
|
|
4
|
+
export let position = 'inside';
|
|
5
|
+
export let color = 'text-gray-500 dark:text-gray-400';
|
|
6
|
+
export let olClass = 'list-decimal list-inside';
|
|
7
|
+
export let ulClass = 'max-w-md';
|
|
8
|
+
export let dlClass = 'max-w-md divide-y divide-gray-200 dark:divide-gray-700';
|
|
9
|
+
let lists = {
|
|
10
|
+
disc: 'list-disc',
|
|
11
|
+
none: 'list-none',
|
|
12
|
+
decimal: 'list-decimal'
|
|
13
|
+
};
|
|
14
|
+
let positions = {
|
|
15
|
+
inside: 'list-inside',
|
|
16
|
+
outside: 'list-outside'
|
|
17
|
+
};
|
|
18
|
+
let classList = classNames(color, tag === 'ul' ? ulClass : 'ol' ? olClass : dlClass, lists[list], positions[position], $$props.class);
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<svelte:element this={tag} class={classList}>
|
|
22
|
+
<slot />
|
|
23
|
+
</svelte:element>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { ListGroupItemType } from '../types';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tag?: 'ul' | 'ol' | 'dl';
|
|
6
|
+
list?: 'disc' | 'none' | 'decimal';
|
|
7
|
+
position?: 'inside' | 'outside';
|
|
8
|
+
color?: string;
|
|
9
|
+
olClass?: string;
|
|
10
|
+
ulClass?: string;
|
|
11
|
+
dlClass?: string;
|
|
8
12
|
};
|
|
9
13
|
events: {
|
|
10
|
-
click: CustomEvent<any>;
|
|
11
|
-
} & {
|
|
12
14
|
[evt: string]: CustomEvent<any>;
|
|
13
15
|
};
|
|
14
16
|
slots: {
|
package/typography/P.svelte
CHANGED
|
@@ -1,9 +1,75 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
-
export let
|
|
3
|
-
export let
|
|
4
|
-
export let
|
|
2
|
+
export let color = 'text-gray-900 dark:text-white';
|
|
3
|
+
export let height = 'normal';
|
|
4
|
+
export let align = 'left';
|
|
5
|
+
export let justify = false;
|
|
6
|
+
export let italic = false;
|
|
7
|
+
export let opacity = 100;
|
|
8
|
+
export let whitespace = 'normal';
|
|
9
|
+
export let size = 'lg';
|
|
10
|
+
export let space;
|
|
11
|
+
export let weight;
|
|
12
|
+
const sizes = {
|
|
13
|
+
xs: 'text-xs',
|
|
14
|
+
sm: 'text-sm',
|
|
15
|
+
base: 'text-base',
|
|
16
|
+
lg: 'text-lg',
|
|
17
|
+
xl: 'text-xl',
|
|
18
|
+
'2xl': 'text-2xl',
|
|
19
|
+
'3xl': 'text-3xl',
|
|
20
|
+
'4xl': 'text-4xl',
|
|
21
|
+
'5xl': 'text-5xl',
|
|
22
|
+
'6xl': 'text-6xl',
|
|
23
|
+
'7xl': 'text-7xl',
|
|
24
|
+
'8xl': 'text-8xl',
|
|
25
|
+
'9xl': 'text-9xl'
|
|
26
|
+
};
|
|
27
|
+
const weights = {
|
|
28
|
+
thin: 'font-thin',
|
|
29
|
+
extralight: 'font-extralight',
|
|
30
|
+
light: 'font-light',
|
|
31
|
+
normal: 'font-normal',
|
|
32
|
+
medium: 'font-medium',
|
|
33
|
+
semibold: 'font-semibold',
|
|
34
|
+
bold: 'font-bold',
|
|
35
|
+
extrabold: 'font-extrabold',
|
|
36
|
+
black: 'font-black'
|
|
37
|
+
};
|
|
38
|
+
const spaces = {
|
|
39
|
+
tighter: 'tracking-tighter',
|
|
40
|
+
tight: 'tracking-tight',
|
|
41
|
+
normal: 'tracking-normal',
|
|
42
|
+
wide: 'tracking-wide',
|
|
43
|
+
wider: 'tracking-wider',
|
|
44
|
+
widest: 'tracking-widest'
|
|
45
|
+
};
|
|
46
|
+
const heights = {
|
|
47
|
+
normal: 'leading-normal',
|
|
48
|
+
relaxed: 'leading-relaxed',
|
|
49
|
+
loose: 'leading-loose'
|
|
50
|
+
};
|
|
51
|
+
const aligns = {
|
|
52
|
+
left: 'text-left',
|
|
53
|
+
center: 'text-center',
|
|
54
|
+
right: 'text-right'
|
|
55
|
+
};
|
|
56
|
+
const whitespaces = {
|
|
57
|
+
normal: 'whitespace-normal',
|
|
58
|
+
nowrap: 'whitespace-nowrap',
|
|
59
|
+
pre: 'whitespace-pre',
|
|
60
|
+
preline: 'whitespace-pre-line',
|
|
61
|
+
prewrap: 'whitespace-pre-wrap'
|
|
62
|
+
};
|
|
63
|
+
let colorAndopacity = color
|
|
64
|
+
.split(' ')
|
|
65
|
+
.map((element) => element.trim())
|
|
66
|
+
.map((element) => element + '/' + String(opacity))
|
|
67
|
+
.join(' ');
|
|
68
|
+
// console.log('colorArr', colorAndopacity);
|
|
69
|
+
// 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);
|
|
5
71
|
</script>
|
|
6
72
|
|
|
7
|
-
<p class={
|
|
8
|
-
|
|
73
|
+
<p class={classP}>
|
|
74
|
+
<slot />
|
|
9
75
|
</p>
|
package/typography/P.svelte.d.ts
CHANGED
|
@@ -2,9 +2,16 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
color?: string;
|
|
6
|
+
height?: 'normal' | 'relaxed' | 'loose';
|
|
7
|
+
align?: 'left' | 'center' | 'right';
|
|
8
|
+
justify?: boolean;
|
|
9
|
+
italic?: boolean;
|
|
10
|
+
opacity?: number;
|
|
11
|
+
whitespace?: 'normal' | 'nowrap' | 'pre' | 'preline' | 'prewrap';
|
|
12
|
+
size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
13
|
+
space: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
|
|
14
|
+
weight: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
|
|
8
15
|
};
|
|
9
16
|
events: {
|
|
10
17
|
[evt: string]: CustomEvent<any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let italic = false;
|
|
3
|
+
export let underline = false;
|
|
4
|
+
export let linethrough = false;
|
|
5
|
+
export let uppercase = false;
|
|
6
|
+
export let gradient = false;
|
|
7
|
+
export let highlight = false;
|
|
8
|
+
export let highlightClass = 'text-blue-600 dark:text-blue-500';
|
|
9
|
+
export let decorationClass = 'decoration-2 decoration-blue-400 dark:decoration-blue-600';
|
|
10
|
+
export let gradientClass = 'text-transparent bg-clip-text bg-gradient-to-r to-emerald-600 from-sky-400';
|
|
11
|
+
let underlineClass = classNames('underline', decorationClass);
|
|
12
|
+
let classSpan = classNames(italic && 'italic', underline && underlineClass, linethrough && 'line-through', uppercase && 'uppercase', gradient ? gradientClass : 'font-semibold text-gray-900 dark:text-white', highlight && highlightClass, $$props.class);
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<span class={classSpan}>
|
|
16
|
+
<slot />
|
|
17
|
+
</span>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
italic?: boolean;
|
|
6
|
+
underline?: boolean;
|
|
7
|
+
linethrough?: boolean;
|
|
8
|
+
uppercase?: boolean;
|
|
9
|
+
gradient?: boolean;
|
|
10
|
+
highlight?: boolean;
|
|
11
|
+
highlightClass?: string;
|
|
12
|
+
decorationClass?: string;
|
|
13
|
+
gradientClass?: string;
|
|
14
|
+
};
|
|
15
|
+
events: {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
};
|
|
18
|
+
slots: {
|
|
19
|
+
default: {};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare type SpanProps = typeof __propDef.props;
|
|
23
|
+
export declare type SpanEvents = typeof __propDef.events;
|
|
24
|
+
export declare type SpanSlots = typeof __propDef.slots;
|
|
25
|
+
export default class Span extends SvelteComponentTyped<SpanProps, SpanEvents, SpanSlots> {
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let list = 'disc';
|
|
3
|
+
export let position = 'inside';
|
|
4
|
+
export let ulClass = 'max-w-md text-gray-500 dark:text-gray-400';
|
|
5
|
+
let lists = {
|
|
6
|
+
disc: 'list-disc',
|
|
7
|
+
none: 'list-none',
|
|
8
|
+
decimal: 'list-decimal'
|
|
9
|
+
};
|
|
10
|
+
let positions = {
|
|
11
|
+
inside: 'list-inside',
|
|
12
|
+
outside: 'list-outside'
|
|
13
|
+
};
|
|
14
|
+
let classUl = classNames(ulClass, lists[list], positions[position], $$props.class);
|
|
15
|
+
console.log('list', list);
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<ul class={classUl} {list}>
|
|
19
|
+
<slot />
|
|
20
|
+
</ul>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
list?: 'disc' | 'none' | 'decimal';
|
|
6
|
+
position?: 'inside' | 'outside';
|
|
7
|
+
ulClass?: string;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare type UlProps = typeof __propDef.props;
|
|
17
|
+
export declare type UlEvents = typeof __propDef.events;
|
|
18
|
+
export declare type UlSlots = typeof __propDef.slots;
|
|
19
|
+
export default class Ul extends SvelteComponentTyped<UlProps, UlEvents, UlSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
-
export let underlineClass = 'underline
|
|
2
|
+
export let underlineClass = 'underline decoration-8 decoration-blue-400 dark:decoration-blue-600';
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<span class={classNames(underlineClass, $$props.class)}>
|
|
6
|
-
|
|
6
|
+
<slot />
|
|
7
7
|
</span>
|
package/utils/Popper.svelte
CHANGED
|
@@ -9,21 +9,22 @@ export let arrow = true;
|
|
|
9
9
|
export let offset = 8;
|
|
10
10
|
export let placement = 'top';
|
|
11
11
|
export let trigger = 'hover';
|
|
12
|
-
export let triggeredBy;
|
|
12
|
+
export let triggeredBy = undefined;
|
|
13
|
+
export let open = false;
|
|
13
14
|
const dispatch = createEventDispatcher();
|
|
14
|
-
let open = false;
|
|
15
15
|
let clickable;
|
|
16
16
|
$: clickable = trigger === 'click';
|
|
17
17
|
$: dispatch('show', triggerEl, open);
|
|
18
18
|
let triggerEl;
|
|
19
|
+
let contentEl;
|
|
19
20
|
let triggerEls = [];
|
|
20
21
|
let popper;
|
|
21
22
|
let _blocked = false; // managment of the race condition between focusin and click events
|
|
22
23
|
const block = () => ((_blocked = true), setTimeout(() => (_blocked = false), 250));
|
|
23
24
|
const showHandler = (ev) => {
|
|
24
25
|
if (triggerEl === undefined)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
console.error('trigger undefined');
|
|
27
|
+
if (triggerEls.includes(ev.target) && triggerEl !== ev.target) {
|
|
27
28
|
triggerEl = ev.target;
|
|
28
29
|
block();
|
|
29
30
|
}
|
|
@@ -32,7 +33,7 @@ const showHandler = (ev) => {
|
|
|
32
33
|
open = clickable && ev.type === 'click' && !_blocked ? !open : true;
|
|
33
34
|
};
|
|
34
35
|
// reactivity
|
|
35
|
-
$: popper &&
|
|
36
|
+
$: popper && popper.setOptions({ placement });
|
|
36
37
|
// typescript typeguards - poper.state.element.reference: Element|HTMLElement|VirtualElement
|
|
37
38
|
const hasHover = (el) => el.matches && el.matches(':hover');
|
|
38
39
|
const hasFocus = (el) => el.contains && el.contains(document.activeElement);
|
|
@@ -50,8 +51,8 @@ const hideHandler = (ev) => {
|
|
|
50
51
|
else
|
|
51
52
|
open = false;
|
|
52
53
|
};
|
|
53
|
-
function init(node,
|
|
54
|
-
popper = createPopper(
|
|
54
|
+
function init(node, _triggerEl) {
|
|
55
|
+
popper = createPopper(_triggerEl, node, {
|
|
55
56
|
placement,
|
|
56
57
|
modifiers: [
|
|
57
58
|
{ name: 'offset', options: { offset: [0, offset] } },
|
|
@@ -59,6 +60,10 @@ function init(node, _open) {
|
|
|
59
60
|
]
|
|
60
61
|
});
|
|
61
62
|
return {
|
|
63
|
+
update(_triggerEl) {
|
|
64
|
+
popper.state.elements.reference = _triggerEl;
|
|
65
|
+
popper.update();
|
|
66
|
+
},
|
|
62
67
|
destroy() {
|
|
63
68
|
popper.destroy();
|
|
64
69
|
}
|
|
@@ -73,8 +78,12 @@ onMount(() => {
|
|
|
73
78
|
['mouseleave', hideHandler, !clickable]
|
|
74
79
|
];
|
|
75
80
|
triggerEls = [...document.querySelectorAll(triggeredBy)];
|
|
76
|
-
if (!triggerEls.length)
|
|
77
|
-
|
|
81
|
+
if (!triggerEls.length) {
|
|
82
|
+
if (contentEl.previousElementSibling)
|
|
83
|
+
triggerEls.push(contentEl.previousElementSibling);
|
|
84
|
+
else
|
|
85
|
+
console.error('No triggers found.');
|
|
86
|
+
}
|
|
78
87
|
triggerEls.forEach((element) => {
|
|
79
88
|
if (element.tabIndex < 0)
|
|
80
89
|
element.tabIndex = 0; // trigger must be focusable
|
|
@@ -82,8 +91,8 @@ onMount(() => {
|
|
|
82
91
|
if (cond)
|
|
83
92
|
element.addEventListener(name, handler);
|
|
84
93
|
});
|
|
94
|
+
triggerEl = triggerEls[0];
|
|
85
95
|
return () => {
|
|
86
|
-
triggerEl = undefined;
|
|
87
96
|
triggerEls.forEach((element) => {
|
|
88
97
|
if (element) {
|
|
89
98
|
for (const [name, handler] of events)
|
|
@@ -94,9 +103,13 @@ onMount(() => {
|
|
|
94
103
|
});
|
|
95
104
|
</script>
|
|
96
105
|
|
|
97
|
-
{#if
|
|
106
|
+
{#if !triggerEl}
|
|
107
|
+
<div id="empty" bind:this={contentEl} />
|
|
108
|
+
{/if}
|
|
109
|
+
|
|
110
|
+
{#if open && triggerEl}
|
|
98
111
|
<div
|
|
99
|
-
use:init={
|
|
112
|
+
use:init={triggerEl}
|
|
100
113
|
transition:fade={{ duration: animation ? animation : 0 }}
|
|
101
114
|
role="tooltip"
|
|
102
115
|
tabIndex={activeContent ? -1 : undefined}
|
package/utils/Popper.svelte.d.ts
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
textColor?: string;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {
|
|
11
|
-
default: {};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare type HighlightProps = typeof __propDef.props;
|
|
15
|
-
export declare type HighlightEvents = typeof __propDef.events;
|
|
16
|
-
export declare type HighlightSlots = typeof __propDef.slots;
|
|
17
|
-
export default class Highlight extends SvelteComponentTyped<HighlightProps, HighlightEvents, HighlightSlots> {
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
gradientClass?: string;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {
|
|
11
|
-
default: {};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare type TextGradientProps = typeof __propDef.props;
|
|
15
|
-
export declare type TextGradientEvents = typeof __propDef.events;
|
|
16
|
-
export declare type TextGradientSlots = typeof __propDef.slots;
|
|
17
|
-
export default class TextGradient extends SvelteComponentTyped<TextGradientProps, TextGradientEvents, TextGradientSlots> {
|
|
18
|
-
}
|
|
19
|
-
export {};
|