flowbite-svelte 0.44.24 → 0.45.0
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/dist/accordion/Accordion.svelte.d.ts +3 -0
- package/dist/accordion/Accordion.svelte.d.ts.map +1 -1
- package/dist/alert/Alert.svelte.d.ts +3 -3
- package/dist/badge/Badge.svelte.d.ts +3 -3
- package/dist/cards/Card.svelte.d.ts +3 -0
- package/dist/cards/Card.svelte.d.ts.map +1 -1
- package/dist/carousel/CarouselSlide.d.ts +1 -1
- package/dist/carousel/CarouselSlide.d.ts.map +1 -1
- package/dist/datepicker/Calender.svelte.d.ts.map +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +3 -0
- package/dist/dropdown/Dropdown.svelte.d.ts.map +1 -1
- package/dist/forms/Checkbox.svelte +2 -2
- package/dist/forms/Checkbox.svelte.d.ts +1 -1
- package/dist/forms/Radio.svelte +2 -2
- package/dist/forms/Radio.svelte.d.ts +1 -1
- package/dist/forms/Textarea.svelte +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +3 -0
- package/dist/list-group/Listgroup.svelte.d.ts.map +1 -1
- package/dist/mega-menu/MegaMenu.svelte.d.ts +3 -0
- package/dist/mega-menu/MegaMenu.svelte.d.ts.map +1 -1
- package/dist/modal/Modal.svelte +37 -17
- package/dist/modal/Modal.svelte.d.ts +22 -5
- package/dist/modal/Modal.svelte.d.ts.map +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +3 -0
- package/dist/navbar/Navbar.svelte.d.ts.map +1 -1
- package/dist/popover/Popover.svelte.d.ts +3 -0
- package/dist/popover/Popover.svelte.d.ts.map +1 -1
- package/dist/rating/RatingComment.svelte.d.ts.map +1 -1
- package/dist/speed-dial/SpeedDial.svelte +21 -19
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -0
- package/dist/speed-dial/SpeedDial.svelte.d.ts.map +1 -1
- package/dist/toast/Toast.svelte +1 -1
- package/dist/toast/Toast.svelte.d.ts +3 -4
- package/dist/toast/Toast.svelte.d.ts.map +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +3 -0
- package/dist/toolbar/Toolbar.svelte.d.ts.map +1 -1
- package/dist/toolbar/ToolbarButton.svelte +2 -2
- package/dist/tooltip/Tooltip.svelte.d.ts +3 -0
- package/dist/tooltip/Tooltip.svelte.d.ts.map +1 -1
- package/dist/utils/Frame.svelte +22 -4
- package/dist/utils/Frame.svelte.d.ts +8 -0
- package/dist/utils/Frame.svelte.d.ts.map +1 -1
- package/dist/utils/Popper.svelte +2 -2
- package/dist/utils/Popper.svelte.d.ts +3 -0
- package/dist/utils/Popper.svelte.d.ts.map +1 -1
- package/dist/utils/TransitionFrame.svelte +3 -17
- package/dist/utils/TransitionFrame.svelte.d.ts +8 -5
- package/dist/utils/TransitionFrame.svelte.d.ts.map +1 -1
- package/dist/utils/focusTrap.d.ts +1 -1
- package/dist/utils/focusTrap.d.ts.map +1 -1
- package/package.json +51 -49
|
@@ -20,6 +20,9 @@ declare const __propDef: {
|
|
|
20
20
|
options?: object | undefined;
|
|
21
21
|
class?: string | undefined;
|
|
22
22
|
role?: string | undefined;
|
|
23
|
+
open?: boolean | undefined;
|
|
24
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
25
|
+
params?: any;
|
|
23
26
|
} & {
|
|
24
27
|
multiple?: boolean | undefined;
|
|
25
28
|
flush?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/accordion/Accordion.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAmDH,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Accordion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/accordion/Accordion.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAmDH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,eAAe,CAAC,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC;CACtG"}
|
|
@@ -11,10 +11,10 @@ declare const __propDef: {
|
|
|
11
11
|
options?: object | undefined;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
role?: string | undefined;
|
|
14
|
-
|
|
14
|
+
open?: boolean | undefined;
|
|
15
15
|
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
16
16
|
params?: any;
|
|
17
|
-
} & {
|
|
17
|
+
} & import("..").Dismissable & {
|
|
18
18
|
defaultClass?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
events: {
|
|
@@ -34,7 +34,7 @@ declare const __propDef: {
|
|
|
34
34
|
icon: {};
|
|
35
35
|
default: {};
|
|
36
36
|
'close-button': {
|
|
37
|
-
close:
|
|
37
|
+
close: (ev: MouseEvent | undefined) => void;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -11,10 +11,10 @@ declare const __propDef: {
|
|
|
11
11
|
options?: object | undefined;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
role?: string | undefined;
|
|
14
|
-
|
|
14
|
+
open?: boolean | undefined;
|
|
15
15
|
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
16
16
|
params?: any;
|
|
17
|
-
}, "color"> & {
|
|
17
|
+
} & import("..").Dismissable, "color"> & {
|
|
18
18
|
color?: "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "dark" | "primary" | "none" | undefined;
|
|
19
19
|
large?: boolean | undefined;
|
|
20
20
|
};
|
|
@@ -26,7 +26,7 @@ declare const __propDef: {
|
|
|
26
26
|
slots: {
|
|
27
27
|
default: {};
|
|
28
28
|
'close-button': {
|
|
29
|
-
close:
|
|
29
|
+
close: (ev: MouseEvent | undefined) => void;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -12,6 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
options?: object | undefined;
|
|
13
13
|
class?: string | undefined;
|
|
14
14
|
role?: string | undefined;
|
|
15
|
+
open?: boolean | undefined;
|
|
16
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
17
|
+
params?: any;
|
|
15
18
|
} & {
|
|
16
19
|
horizontal?: boolean | undefined;
|
|
17
20
|
reverse?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/cards/Card.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAsE3C,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Card.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/cards/Card.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAsE3C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE/C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,eAAe,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC;CAClF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const canChangeSlide: ({ lastSlideChange, slideDuration, slideDurationRatio }: {
|
|
2
2
|
lastSlideChange: Date;
|
|
3
3
|
slideDuration: number;
|
|
4
|
-
slideDurationRatio?: number
|
|
4
|
+
slideDurationRatio?: number;
|
|
5
5
|
}) => boolean;
|
|
6
6
|
//# sourceMappingURL=CarouselSlide.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselSlide.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/CarouselSlide.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"CarouselSlide.d.ts","sourceRoot":"","sources":["../../../../src/lib/carousel/CarouselSlide.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,2DAIxB;IACD,eAAe,EAAE,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,YAOA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calender.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/datepicker/Calender.svelte.js"],"names":[],"mappings":"AASA,uDAAuD;AACvD,yDAAyD;AACzD,uDAAuD;AAEvD;;;;;CACC;4BALa,OAAO,
|
|
1
|
+
{"version":3,"file":"Calender.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/datepicker/Calender.svelte.js"],"names":[],"mappings":"AASA,uDAAuD;AACvD,yDAAyD;AACzD,uDAAuD;AAEvD;;;;;CACC;4BALa,OAAO,SAAS,CAAC,KAAK;6BACtB,OAAO,SAAS,CAAC,MAAM;4BACvB,OAAO,SAAS,CAAC,KAAK;gCAXJ,QAAQ;AAQxC;;;;;;;;EAA8E"}
|
|
@@ -14,6 +14,9 @@ declare const __propDef: {
|
|
|
14
14
|
options?: object | undefined;
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
role?: string | undefined;
|
|
17
|
+
open?: boolean | undefined;
|
|
18
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
19
|
+
params?: any;
|
|
17
20
|
} & {
|
|
18
21
|
activeContent?: boolean | undefined;
|
|
19
22
|
arrow?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/dropdown/Dropdown.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAuFJ,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Dropdown.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/dropdown/Dropdown.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAuFJ,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CAClG"}
|
|
@@ -9,7 +9,7 @@ export let inline = false;
|
|
|
9
9
|
export let group = [];
|
|
10
10
|
export let value = 'on';
|
|
11
11
|
export let checked = undefined;
|
|
12
|
-
export let spacing = 'me-2';
|
|
12
|
+
export let spacing = $$slots.default ? 'me-2' : '';
|
|
13
13
|
// tinted if put in component having its own background
|
|
14
14
|
let background = getContext('background');
|
|
15
15
|
// react on external group changes
|
|
@@ -60,5 +60,5 @@ function onChange() {
|
|
|
60
60
|
@prop export let group: (string | number)[] = [];
|
|
61
61
|
@prop export let value: string | number = 'on';
|
|
62
62
|
@prop export let checked: boolean | undefined = undefined;
|
|
63
|
-
@prop export let spacing: string = 'me-2';
|
|
63
|
+
@prop export let spacing: string = $$slots.default ? 'me-2' : '';
|
|
64
64
|
-->
|
|
@@ -42,7 +42,7 @@ export type CheckboxSlots = typeof __propDef.slots;
|
|
|
42
42
|
* @prop export let group: (string | number)[] = [];
|
|
43
43
|
* @prop export let value: string | number = 'on';
|
|
44
44
|
* @prop export let checked: boolean | undefined = undefined;
|
|
45
|
-
* @prop export let spacing: string = 'me-2';
|
|
45
|
+
* @prop export let spacing: string = $$slots.default ? 'me-2' : '';
|
|
46
46
|
*/
|
|
47
47
|
export default class Checkbox extends SvelteComponent<CheckboxProps, CheckboxEvents, CheckboxSlots> {
|
|
48
48
|
}
|
package/dist/forms/Radio.svelte
CHANGED
|
@@ -22,7 +22,7 @@ export let custom = false;
|
|
|
22
22
|
export let inline = false;
|
|
23
23
|
export let group = undefined;
|
|
24
24
|
export let value = '';
|
|
25
|
-
export let spacing = '
|
|
25
|
+
export let spacing = $$slots.default ? 'me-2' : '';
|
|
26
26
|
// tinted if put in component having its own background
|
|
27
27
|
let background = getContext('background');
|
|
28
28
|
</script>
|
|
@@ -41,5 +41,5 @@ let background = getContext('background');
|
|
|
41
41
|
@prop export let inline: boolean = false;
|
|
42
42
|
@prop export let group: number | string | undefined = undefined;
|
|
43
43
|
@prop export let value: number | string = '';
|
|
44
|
-
@prop export let spacing: string = '
|
|
44
|
+
@prop export let spacing: string = $$slots.default ? 'me-2' : '';
|
|
45
45
|
-->
|
|
@@ -42,7 +42,7 @@ export type RadioSlots = typeof __propDef.slots;
|
|
|
42
42
|
* @prop export let inline: boolean = false;
|
|
43
43
|
* @prop export let group: number | string | undefined = undefined;
|
|
44
44
|
* @prop export let value: number | string = '';
|
|
45
|
-
* @prop export let spacing: string = '
|
|
45
|
+
* @prop export let spacing: string = $$slots.default ? 'me-2' : '';
|
|
46
46
|
*/
|
|
47
47
|
export default class Radio extends SvelteComponent<RadioProps, RadioEvents, RadioSlots> {
|
|
48
48
|
}
|
|
@@ -9,7 +9,7 @@ export let innerWrappedClass = 'py-2 px-4 bg-white dark:bg-gray-800';
|
|
|
9
9
|
let wrapped;
|
|
10
10
|
$: wrapped = $$slots.header || $$slots.footer;
|
|
11
11
|
let wrapperClass;
|
|
12
|
-
$: wrapperClass = twMerge('w-full rounded-lg', background ? '
|
|
12
|
+
$: wrapperClass = twMerge('w-full rounded-lg bg-gray-50', background ? 'dark:bg-gray-800' : 'dark:bg-gray-700', 'text-gray-900 dark:placeholder-gray-400 dark:text-white ', 'border border-gray-200 dark:border-gray-600', $$props.class);
|
|
13
13
|
let textareaClass;
|
|
14
14
|
$: textareaClass = wrapped ? wrappedClass : twMerge(wrapperClass, unWrappedClass);
|
|
15
15
|
const headerClass = (header) => twMerge(header ? 'border-b' : 'border-t', 'py-2 px-3 border-gray-200 dark:border-gray-600');
|
|
@@ -12,6 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
options?: object | undefined;
|
|
13
13
|
class?: string | undefined;
|
|
14
14
|
role?: string | undefined;
|
|
15
|
+
open?: boolean | undefined;
|
|
16
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
17
|
+
params?: any;
|
|
15
18
|
} & {
|
|
16
19
|
items?: string[] | ListGroupItemType[] | undefined;
|
|
17
20
|
active?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Listgroup.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/list-group/Listgroup.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAGD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA8ClD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Listgroup.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/list-group/Listgroup.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAGD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA8ClD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,eAAe,CAAC,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC;CACtG"}
|
|
@@ -12,6 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
options?: object | undefined;
|
|
13
13
|
class?: string | undefined;
|
|
14
14
|
role?: string | undefined;
|
|
15
|
+
open?: boolean | undefined;
|
|
16
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
17
|
+
params?: any;
|
|
15
18
|
} & {
|
|
16
19
|
activeContent?: boolean | undefined;
|
|
17
20
|
arrow?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MegaMenu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/mega-menu/MegaMenu.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAED,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAmDzC,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"MegaMenu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/mega-menu/MegaMenu.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAED,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAmDzC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CAClG"}
|
package/dist/modal/Modal.svelte
CHANGED
|
@@ -6,13 +6,22 @@ import focusTrap from '../utils/focusTrap';
|
|
|
6
6
|
export let open = false;
|
|
7
7
|
export let title = '';
|
|
8
8
|
export let size = 'md';
|
|
9
|
+
export let color = 'default';
|
|
9
10
|
export let placement = 'center';
|
|
10
11
|
export let autoclose = false;
|
|
12
|
+
export let outsideclose = false;
|
|
11
13
|
export let dismissable = true;
|
|
12
14
|
export let backdropClass = 'fixed inset-0 z-40 bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
13
|
-
export let
|
|
14
|
-
export let outsideclose = false;
|
|
15
|
+
export let classBackdrop = undefined;
|
|
15
16
|
export let dialogClass = 'fixed top-0 start-0 end-0 h-modal md:inset-0 md:h-full z-50 w-full p-4 flex';
|
|
17
|
+
export let classDialog = undefined;
|
|
18
|
+
export let defaultClass = 'relative flex flex-col mx-auto';
|
|
19
|
+
export let headerClass = 'flex justify-between items-center p-4 md:p-5 rounded-t-lg';
|
|
20
|
+
export let classHeader = undefined;
|
|
21
|
+
export let bodyClass = 'p-4 md:p-5 space-y-4 flex-1 overflow-y-auto overscroll-contain';
|
|
22
|
+
export let classBody = undefined;
|
|
23
|
+
export let footerClass = 'flex items-center p-4 md:p-5 space-x-3 rtl:space-x-reverse rounded-b-lg';
|
|
24
|
+
export let classFooter = undefined;
|
|
16
25
|
const dispatch = createEventDispatcher();
|
|
17
26
|
$: dispatch(open ? 'open' : 'close');
|
|
18
27
|
function prepareFocus(node) {
|
|
@@ -28,7 +37,7 @@ function prepareFocus(node) {
|
|
|
28
37
|
}
|
|
29
38
|
node.focus();
|
|
30
39
|
}
|
|
31
|
-
const getPlacementClasses = () => {
|
|
40
|
+
const getPlacementClasses = (placement) => {
|
|
32
41
|
switch (placement) {
|
|
33
42
|
// top
|
|
34
43
|
case 'top-left':
|
|
@@ -76,14 +85,17 @@ const hide = (e) => {
|
|
|
76
85
|
e.preventDefault();
|
|
77
86
|
open = false;
|
|
78
87
|
};
|
|
79
|
-
let frameClass;
|
|
80
|
-
$: frameClass = twMerge(defaultClass, 'w-full divide-y', $$props.class);
|
|
81
88
|
const isScrollable = (e) => [e.scrollWidth > e.clientWidth && ['scroll', 'auto'].indexOf(getComputedStyle(e).overflowX) >= 0, e.scrollHeight > e.clientHeight && ['scroll', 'auto'].indexOf(getComputedStyle(e).overflowY) >= 0];
|
|
82
|
-
let backdropCls = twMerge(backdropClass, $$props.classBackdrop);
|
|
83
89
|
function handleKeys(e) {
|
|
84
90
|
if (e.key === 'Escape' && dismissable)
|
|
85
91
|
return hide(e);
|
|
86
92
|
}
|
|
93
|
+
$: backdropCls = twMerge(backdropClass, classBackdrop);
|
|
94
|
+
$: dialogCls = twMerge(dialogClass, classDialog, getPlacementClasses(placement));
|
|
95
|
+
$: frameCls = twMerge(defaultClass, 'w-full divide-y', $$props.class);
|
|
96
|
+
$: headerCls = twMerge(headerClass, classHeader);
|
|
97
|
+
$: bodyCls = twMerge(bodyClass, classBody);
|
|
98
|
+
$: footerCls = twMerge(footerClass, classFooter);
|
|
87
99
|
</script>
|
|
88
100
|
|
|
89
101
|
{#if open}
|
|
@@ -91,32 +103,31 @@ function handleKeys(e) {
|
|
|
91
103
|
<div class={backdropCls} />
|
|
92
104
|
<!-- dialog -->
|
|
93
105
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
94
|
-
<div on:keydown={handleKeys} on:wheel|preventDefault|nonpassive use:prepareFocus use:focusTrap on:click={onAutoClose} on:mousedown={onOutsideClose} class={
|
|
106
|
+
<div on:keydown={handleKeys} on:wheel|preventDefault|nonpassive use:prepareFocus use:focusTrap on:click={onAutoClose} on:mousedown={onOutsideClose} class={dialogCls} tabindex="-1" aria-modal="true" role="dialog">
|
|
95
107
|
<div class="flex relative {sizes[size]} w-full max-h-full">
|
|
96
108
|
<!-- Modal content -->
|
|
97
|
-
|
|
98
|
-
<Frame rounded shadow {...$$restProps} class={frameClass}>
|
|
109
|
+
<Frame rounded shadow {...$$restProps} class={frameCls} {color}>
|
|
99
110
|
<!-- Modal header -->
|
|
100
111
|
{#if $$slots.header || title}
|
|
101
|
-
<Frame
|
|
112
|
+
<Frame class={headerCls} {color}>
|
|
102
113
|
<slot name="header">
|
|
103
|
-
<h3 class="text-xl font-semibold {
|
|
114
|
+
<h3 class="text-xl font-semibold {color === 'default' ? '' : 'text-gray-900 dark:text-white'} p-0">
|
|
104
115
|
{title}
|
|
105
116
|
</h3>
|
|
106
117
|
</slot>
|
|
107
|
-
{#if dismissable}<CloseButton name="Close modal" on:click={hide}
|
|
118
|
+
{#if dismissable}<CloseButton name="Close modal" {color} on:click={hide} />{/if}
|
|
108
119
|
</Frame>
|
|
109
120
|
{/if}
|
|
110
121
|
<!-- Modal body -->
|
|
111
|
-
<div class={
|
|
122
|
+
<div class={bodyCls} role="document" on:keydown|stopPropagation={handleKeys} on:wheel|stopPropagation|passive>
|
|
112
123
|
{#if dismissable && !$$slots.header && !title}
|
|
113
|
-
<CloseButton name="Close modal" class="absolute top-3 end-2.5" on:click={hide}
|
|
124
|
+
<CloseButton name="Close modal" class="absolute top-3 end-2.5" {color} on:click={hide} />
|
|
114
125
|
{/if}
|
|
115
126
|
<slot />
|
|
116
127
|
</div>
|
|
117
128
|
<!-- Modal footer -->
|
|
118
129
|
{#if $$slots.footer}
|
|
119
|
-
<Frame
|
|
130
|
+
<Frame class={footerCls} {color}>
|
|
120
131
|
<slot name="footer" />
|
|
121
132
|
</Frame>
|
|
122
133
|
{/if}
|
|
@@ -132,11 +143,20 @@ function handleKeys(e) {
|
|
|
132
143
|
@prop export let open: boolean = false;
|
|
133
144
|
@prop export let title: string = '';
|
|
134
145
|
@prop export let size: SizeType = 'md';
|
|
146
|
+
@prop export let color: ComponentProps<Frame>['color'] = 'default';
|
|
135
147
|
@prop export let placement: ModalPlacementType = 'center';
|
|
136
148
|
@prop export let autoclose: boolean = false;
|
|
149
|
+
@prop export let outsideclose: boolean = false;
|
|
137
150
|
@prop export let dismissable: boolean = true;
|
|
138
151
|
@prop export let backdropClass: string = 'fixed inset-0 z-40 bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
139
|
-
@prop export let
|
|
140
|
-
@prop export let outsideclose: boolean = false;
|
|
152
|
+
@prop export let classBackdrop: string | undefined = undefined;
|
|
141
153
|
@prop export let dialogClass: string = 'fixed top-0 start-0 end-0 h-modal md:inset-0 md:h-full z-50 w-full p-4 flex';
|
|
154
|
+
@prop export let classDialog: string | undefined = undefined;
|
|
155
|
+
@prop export let defaultClass: string = 'relative flex flex-col mx-auto';
|
|
156
|
+
@prop export let headerClass: string = 'flex justify-between items-center p-4 md:p-5 rounded-t-lg';
|
|
157
|
+
@prop export let classHeader: string | undefined = undefined;
|
|
158
|
+
@prop export let bodyClass: string = 'p-4 md:p-5 space-y-4 flex-1 overflow-y-auto overscroll-contain';
|
|
159
|
+
@prop export let classBody: string | undefined = undefined;
|
|
160
|
+
@prop export let footerClass: string = 'flex items-center p-4 md:p-5 space-x-3 rtl:space-x-reverse rounded-b-lg';
|
|
161
|
+
@prop export let classFooter: string | undefined = undefined;
|
|
142
162
|
-->
|
|
@@ -13,19 +13,27 @@ declare const __propDef: {
|
|
|
13
13
|
options?: object | undefined;
|
|
14
14
|
class?: string | undefined;
|
|
15
15
|
role?: string | undefined;
|
|
16
|
+
open?: boolean | undefined;
|
|
17
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
18
|
+
params?: any;
|
|
16
19
|
} & Dismissable & {
|
|
17
20
|
open?: boolean | undefined;
|
|
18
21
|
title?: string | undefined;
|
|
19
22
|
size?: SizeType | undefined;
|
|
20
23
|
placement?: ModalPlacementType | undefined;
|
|
21
24
|
autoclose?: boolean | undefined;
|
|
25
|
+
outsideclose?: boolean | undefined;
|
|
22
26
|
backdropClass?: string | undefined;
|
|
23
|
-
bodyClass?: string | undefined;
|
|
24
27
|
classBackdrop?: string | undefined;
|
|
28
|
+
dialogClass?: string | undefined;
|
|
25
29
|
classDialog?: string | undefined;
|
|
26
30
|
defaultClass?: string | undefined;
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
headerClass?: string | undefined;
|
|
32
|
+
classHeader?: string | undefined;
|
|
33
|
+
bodyClass?: string | undefined;
|
|
34
|
+
classBody?: string | undefined;
|
|
35
|
+
footerClass?: string | undefined;
|
|
36
|
+
classFooter?: string | undefined;
|
|
29
37
|
};
|
|
30
38
|
events: {
|
|
31
39
|
wheel: WheelEvent;
|
|
@@ -47,13 +55,22 @@ export type ModalSlots = typeof __propDef.slots;
|
|
|
47
55
|
* @prop export let open: boolean = false;
|
|
48
56
|
* @prop export let title: string = '';
|
|
49
57
|
* @prop export let size: SizeType = 'md';
|
|
58
|
+
* @prop export let color: ComponentProps<Frame>['color'] = 'default';
|
|
50
59
|
* @prop export let placement: ModalPlacementType = 'center';
|
|
51
60
|
* @prop export let autoclose: boolean = false;
|
|
61
|
+
* @prop export let outsideclose: boolean = false;
|
|
52
62
|
* @prop export let dismissable: boolean = true;
|
|
53
63
|
* @prop export let backdropClass: string = 'fixed inset-0 z-40 bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
54
|
-
* @prop export let
|
|
55
|
-
* @prop export let outsideclose: boolean = false;
|
|
64
|
+
* @prop export let classBackdrop: string | undefined = undefined;
|
|
56
65
|
* @prop export let dialogClass: string = 'fixed top-0 start-0 end-0 h-modal md:inset-0 md:h-full z-50 w-full p-4 flex';
|
|
66
|
+
* @prop export let classDialog: string | undefined = undefined;
|
|
67
|
+
* @prop export let defaultClass: string = 'relative flex flex-col mx-auto';
|
|
68
|
+
* @prop export let headerClass: string = 'flex justify-between items-center p-4 md:p-5 rounded-t-lg';
|
|
69
|
+
* @prop export let classHeader: string | undefined = undefined;
|
|
70
|
+
* @prop export let bodyClass: string = 'p-4 md:p-5 space-y-4 flex-1 overflow-y-auto overscroll-contain';
|
|
71
|
+
* @prop export let classBody: string | undefined = undefined;
|
|
72
|
+
* @prop export let footerClass: string = 'flex items-center p-4 md:p-5 space-x-3 rtl:space-x-reverse rounded-b-lg';
|
|
73
|
+
* @prop export let classFooter: string | undefined = undefined;
|
|
57
74
|
*/
|
|
58
75
|
export default class Modal extends SvelteComponent<ModalProps, ModalEvents, ModalSlots> {
|
|
59
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/modal/Modal.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAMD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/modal/Modal.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAMD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAkLnD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CACtF"}
|
|
@@ -12,6 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
options?: object | undefined;
|
|
13
13
|
class?: string | undefined;
|
|
14
14
|
role?: string | undefined;
|
|
15
|
+
open?: boolean | undefined;
|
|
16
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
17
|
+
params?: any;
|
|
15
18
|
} & {
|
|
16
19
|
fluid?: boolean | undefined;
|
|
17
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/Navbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAsCjD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Navbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/navbar/Navbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAsCjD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,eAAe,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC1F"}
|
|
@@ -11,6 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
options?: object | undefined;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
role?: string | undefined;
|
|
14
|
+
open?: boolean | undefined;
|
|
15
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
16
|
+
params?: any;
|
|
14
17
|
} & {
|
|
15
18
|
activeContent?: boolean | undefined;
|
|
16
19
|
arrow?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/popover/Popover.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAmCD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Popover.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/popover/Popover.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,eAAe,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;CAC9F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingComment.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/RatingComment.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAkGD,QAAA,MAAM,SAAS;;;;;iBAhB0J;YACrK,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE;gBACJ,
|
|
1
|
+
{"version":3,"file":"RatingComment.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/RatingComment.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAkGD,QAAA,MAAM,SAAS;;;;;iBAhB0J;YACrK,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM,CAAC;gBACb,GAAG,EAAE;oBACH,GAAG,EAAE,MAAM,CAAC;oBACZ,GAAG,EAAE,MAAM,CAAC;iBACb,CAAC;gBACF,MAAM,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC;YAChB,QAAQ,EAAE,MAAM,CAAC;SAClB;;;;;;;;;CACoD,CAAC;AACxD,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAExD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,eAAe,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;CACtH"}
|
|
@@ -26,25 +26,27 @@ $: poperClass = twMerge(popperDefaultClass, ['top', 'bottom'].includes(placement
|
|
|
26
26
|
</script>
|
|
27
27
|
|
|
28
28
|
<div class={divClass}>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
29
|
+
<slot name="button">
|
|
30
|
+
{#if gradient}
|
|
31
|
+
<GradientButton {pill} {name} aria-controls={id} aria-expanded={open} {...$$restProps} class="!p-3">
|
|
32
|
+
<slot name="icon">
|
|
33
|
+
<svg aria-hidden="true" class="w-8 h-8 transition-transform group-hover:rotate-45" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
34
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
|
|
35
|
+
</svg>
|
|
36
|
+
</slot>
|
|
37
|
+
<span class="sr-only">{name}</span>
|
|
38
|
+
</GradientButton>
|
|
39
|
+
{:else}
|
|
40
|
+
<Button {pill} {name} aria-controls={id} aria-expanded={open} {...$$restProps} class="!p-3">
|
|
41
|
+
<slot name="icon">
|
|
42
|
+
<svg aria-hidden="true" class="w-8 h-8 transition-transform group-hover:rotate-45" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
43
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
|
|
44
|
+
</svg>
|
|
45
|
+
</slot>
|
|
46
|
+
<span class="sr-only">{name}</span>
|
|
47
|
+
</Button>
|
|
48
|
+
{/if}
|
|
49
|
+
</slot>
|
|
48
50
|
<Popper {id} {trigger} arrow={false} color="none" activeContent {placement} class={poperClass} bind:open>
|
|
49
51
|
<slot />
|
|
50
52
|
</Popper>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpeedDial.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/speed-dial/SpeedDial.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"SpeedDial.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/speed-dial/SpeedDial.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;CACtB;AAwEH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEpD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,eAAe,CAAC,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC;CACtG"}
|
package/dist/toast/Toast.svelte
CHANGED
|
@@ -35,7 +35,7 @@ $: iconClass = twMerge('inline-flex items-center justify-center shrink-0', color
|
|
|
35
35
|
const clsBtnExtraClass = '-mx-1.5 -my-1.5 text-gray-400 hover:text-gray-900 focus:!ring-gray-300 hover:bg-gray-100 dark:text-gray-500 dark:hover:text-white dark:hover:bg-gray-700';
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
|
-
<TransitionFrame rounded
|
|
38
|
+
<TransitionFrame rounded color="none" role="alert" {...$$restProps} class={finalDivClass} let:close on:close>
|
|
39
39
|
{#if $$slots.icon}
|
|
40
40
|
<Frame rounded color="none" class={iconClass}>
|
|
41
41
|
<slot name="icon" />
|
|
@@ -11,13 +11,12 @@ declare const __propDef: {
|
|
|
11
11
|
options?: object | undefined;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
role?: string | undefined;
|
|
14
|
-
|
|
14
|
+
open?: boolean | undefined;
|
|
15
15
|
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
16
16
|
params?: any;
|
|
17
|
-
} & {
|
|
17
|
+
} & import("..").Dismissable & {
|
|
18
18
|
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "blue" | "primary" | "orange" | "none" | undefined;
|
|
19
19
|
position?: "none" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
20
|
-
open?: boolean | undefined;
|
|
21
20
|
divClass?: string | undefined;
|
|
22
21
|
defaultIconClass?: string | undefined;
|
|
23
22
|
extraIconClass?: string | undefined;
|
|
@@ -32,7 +31,7 @@ declare const __propDef: {
|
|
|
32
31
|
icon: {};
|
|
33
32
|
default: {};
|
|
34
33
|
'close-button': {
|
|
35
|
-
close:
|
|
34
|
+
close: (ev: MouseEvent | undefined) => void;
|
|
36
35
|
};
|
|
37
36
|
};
|
|
38
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/toast/Toast.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;
|
|
1
|
+
{"version":3,"file":"Toast.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/toast/Toast.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAoFD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CACtF"}
|
|
@@ -11,6 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
options?: object | undefined;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
role?: string | undefined;
|
|
14
|
+
open?: boolean | undefined;
|
|
15
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
16
|
+
params?: any;
|
|
14
17
|
} & {
|
|
15
18
|
embedded?: boolean | undefined;
|
|
16
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/toolbar/Toolbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA0CD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Toolbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/toolbar/Toolbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA0CD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAElD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,eAAe,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;CAC9F"}
|
|
@@ -17,7 +17,7 @@ const colors = {
|
|
|
17
17
|
pink: 'text-pink-500 focus:ring-pink-400 hover:bg-pink-200 dark:hover:bg-pink-800 dark:hover:text-pink-300',
|
|
18
18
|
blue: 'text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800 dark:hover:text-blue-300',
|
|
19
19
|
primary: 'text-primary-500 focus:ring-primary-400 hover:bg-primary-200 dark:hover:bg-primary-800 dark:hover:text-primary-300',
|
|
20
|
-
default: 'focus:ring-gray-400'
|
|
20
|
+
default: 'focus:ring-gray-400 hover:bg-gray-100'
|
|
21
21
|
};
|
|
22
22
|
const sizing = {
|
|
23
23
|
xs: 'm-0.5 rounded-sm focus:ring-1 p-0.5',
|
|
@@ -26,7 +26,7 @@ const sizing = {
|
|
|
26
26
|
lg: 'm-0.5 rounded-lg focus:ring-2 p-2.5'
|
|
27
27
|
};
|
|
28
28
|
let buttonClass;
|
|
29
|
-
$: buttonClass = twMerge('focus:outline-none whitespace-normal', sizing[size], colors[color], color === 'default' && (background ? '
|
|
29
|
+
$: buttonClass = twMerge('focus:outline-none whitespace-normal', sizing[size], colors[color], color === 'default' && (background ? 'dark:hover:bg-gray-600' : 'dark:hover:bg-gray-700'), $$props.class);
|
|
30
30
|
const svgSizes = {
|
|
31
31
|
xs: 'w-3 h-3',
|
|
32
32
|
sm: 'w-3.5 h-3.5',
|
|
@@ -11,6 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
options?: object | undefined;
|
|
12
12
|
class?: string | undefined;
|
|
13
13
|
role?: string | undefined;
|
|
14
|
+
open?: boolean | undefined;
|
|
15
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
16
|
+
params?: any;
|
|
14
17
|
} & {
|
|
15
18
|
activeContent?: boolean | undefined;
|
|
16
19
|
arrow?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/tooltip/Tooltip.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA4CD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Tooltip.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/tooltip/Tooltip.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AA4CD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,eAAe,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;CAC9F"}
|
package/dist/utils/Frame.svelte
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
<script>import { setContext } from 'svelte';
|
|
1
|
+
<script>import { createEventDispatcher, setContext } from 'svelte';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
import {} from 'svelte/transition';
|
|
3
4
|
const noop = () => { };
|
|
4
5
|
setContext('background', true);
|
|
5
6
|
export let tag = $$restProps.href ? 'a' : 'div';
|
|
@@ -13,6 +14,14 @@ export let node = undefined;
|
|
|
13
14
|
export let use = noop;
|
|
14
15
|
export let options = {};
|
|
15
16
|
export let role = undefined;
|
|
17
|
+
// Export a prop through which you can set a desired svelte transition
|
|
18
|
+
export let transition = undefined;
|
|
19
|
+
// Pass in extra transition params
|
|
20
|
+
export let params = {};
|
|
21
|
+
export let open = true;
|
|
22
|
+
const dispatch = createEventDispatcher();
|
|
23
|
+
$: dispatch(open ? 'open' : 'close');
|
|
24
|
+
$: dispatch('show', open);
|
|
16
25
|
$: color = color ?? 'default'; // for cases when undefined
|
|
17
26
|
$: setContext('color', color);
|
|
18
27
|
// your script goes here
|
|
@@ -80,9 +89,15 @@ let divClass;
|
|
|
80
89
|
$: divClass = twMerge(bgColors[color], textColors[color], rounded && 'rounded-lg', border && 'border', borderColors[color], shadow && 'shadow-md', $$props.class);
|
|
81
90
|
</script>
|
|
82
91
|
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
|
|
92
|
+
{#if transition && open}
|
|
93
|
+
<svelte:element this={tag} transition:transition={params} use:use={options} bind:this={node} {role} {...$$restProps} class={divClass} on:click on:mouseenter on:mouseleave on:focusin on:focusout>
|
|
94
|
+
<slot />
|
|
95
|
+
</svelte:element>
|
|
96
|
+
{:else if open}
|
|
97
|
+
<svelte:element this={tag} use:use={options} bind:this={node} {role} {...$$restProps} class={divClass} on:click on:mouseenter on:mouseleave on:focusin on:focusout>
|
|
98
|
+
<slot />
|
|
99
|
+
</svelte:element>
|
|
100
|
+
{/if}
|
|
86
101
|
|
|
87
102
|
<!--
|
|
88
103
|
@component
|
|
@@ -97,4 +112,7 @@ $: divClass = twMerge(bgColors[color], textColors[color], rounded && 'rounded-lg
|
|
|
97
112
|
@prop export let use: Action<HTMLElement, any> = noop;
|
|
98
113
|
@prop export let options = {};
|
|
99
114
|
@prop export let role: string | undefined = undefined;
|
|
115
|
+
@prop export let transition: TransitionFunc | undefined = undefined;
|
|
116
|
+
@prop export let params: object = {};
|
|
117
|
+
@prop export let open: boolean = true;
|
|
100
118
|
-->
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { Action } from 'svelte/action';
|
|
3
3
|
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
|
4
|
+
import { type TransitionConfig } from 'svelte/transition';
|
|
4
5
|
declare const __propDef: {
|
|
5
6
|
props: HTMLAnchorAttributes & {
|
|
6
7
|
tag?: string | undefined;
|
|
@@ -13,6 +14,9 @@ declare const __propDef: {
|
|
|
13
14
|
options?: object | undefined;
|
|
14
15
|
class?: string | undefined;
|
|
15
16
|
role?: string | undefined;
|
|
17
|
+
open?: boolean | undefined;
|
|
18
|
+
transition?: ((node: HTMLElement, params: any) => TransitionConfig) | undefined;
|
|
19
|
+
params?: any;
|
|
16
20
|
};
|
|
17
21
|
events: {
|
|
18
22
|
click: MouseEvent;
|
|
@@ -20,6 +24,7 @@ declare const __propDef: {
|
|
|
20
24
|
mouseleave: MouseEvent;
|
|
21
25
|
focusin: FocusEvent;
|
|
22
26
|
focusout: FocusEvent;
|
|
27
|
+
show: CustomEvent<any>;
|
|
23
28
|
} & {
|
|
24
29
|
[evt: string]: CustomEvent<any>;
|
|
25
30
|
};
|
|
@@ -42,6 +47,9 @@ export type FrameSlots = typeof __propDef.slots;
|
|
|
42
47
|
* @prop export let use: Action<HTMLElement, any> = noop;
|
|
43
48
|
* @prop export let options = {};
|
|
44
49
|
* @prop export let role: string | undefined = undefined;
|
|
50
|
+
* @prop export let transition: TransitionFunc | undefined = undefined;
|
|
51
|
+
* @prop export let params: object = {};
|
|
52
|
+
* @prop export let open: boolean = true;
|
|
45
53
|
*/
|
|
46
54
|
export default class Frame extends SvelteComponent<FrameProps, FrameEvents, FrameSlots> {
|
|
47
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/Frame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Frame.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/Frame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AAID,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AA+I1D,QAAA,MAAM,SAAS;;;;;;;eA1HJ,WAAW,GAAG,SAAS;;;;;;6BARH,WAAW,UAAU,GAAG,KAAK,gBAAgB;iBAe/D,GAAG;;;;;;;;;;;;;;;CAmHuC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CACtF"}
|
package/dist/utils/Popper.svelte
CHANGED
|
@@ -159,8 +159,8 @@ function initArrow(node) {
|
|
|
159
159
|
<div bind:this={contentEl} />
|
|
160
160
|
{/if}
|
|
161
161
|
|
|
162
|
-
{#if
|
|
163
|
-
<Frame use={init} options={referenceEl} role="tooltip" tabindex={activeContent ? -1 : undefined} on:focusin={optional(activeContent, showHandler)} on:focusout={optional(activeContent, hideHandler)} on:mouseenter={optional(activeContent && !clickable, showHandler)} on:mouseleave={optional(activeContent && !clickable, hideHandler)} {...$$restProps}>
|
|
162
|
+
{#if referenceEl}
|
|
163
|
+
<Frame use={init} options={referenceEl} bind:open role="tooltip" tabindex={activeContent ? -1 : undefined} on:focusin={optional(activeContent, showHandler)} on:focusout={optional(activeContent, hideHandler)} on:mouseenter={optional(activeContent && !clickable, showHandler)} on:mouseleave={optional(activeContent && !clickable, hideHandler)} {...$$restProps}>
|
|
164
164
|
<slot />
|
|
165
165
|
{#if arrow}<div use:initArrow class={arrowClass} />{/if}
|
|
166
166
|
</Frame>
|
|
@@ -12,6 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
options?: object | undefined;
|
|
13
13
|
class?: string | undefined;
|
|
14
14
|
role?: string | undefined;
|
|
15
|
+
open?: boolean | undefined;
|
|
16
|
+
transition?: ((node: HTMLElement, params: any) => import("svelte/transition").TransitionConfig) | undefined;
|
|
17
|
+
params?: any;
|
|
15
18
|
} & {
|
|
16
19
|
activeContent?: boolean | undefined;
|
|
17
20
|
arrow?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/Popper.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAqC,SAAS,EAAQ,MAAM,kBAAkB,CAAC;AA6M3F,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Popper.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/Popper.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAqC,SAAS,EAAQ,MAAM,kBAAkB,CAAC;AA6M3F,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,eAAe,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC1F"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import {} from 'svelte';
|
|
2
|
+
import { fade } from 'svelte/transition';
|
|
2
3
|
import Frame from './Frame.svelte';
|
|
3
|
-
import { createEventDispatcher } from 'svelte';
|
|
4
4
|
// Export a prop through which you can set a desired svelte transition
|
|
5
5
|
export let transition = fade;
|
|
6
6
|
// Pass in extra transition params
|
|
7
7
|
export let params = {};
|
|
8
8
|
export let open = true;
|
|
9
|
-
export let dismissable = false;
|
|
10
|
-
const dispatch = createEventDispatcher();
|
|
11
|
-
$: dispatch(open ? 'open' : 'close');
|
|
12
9
|
function close(ev) {
|
|
13
10
|
if (ev?.stopPropagation)
|
|
14
11
|
ev.stopPropagation();
|
|
@@ -16,17 +13,7 @@ function close(ev) {
|
|
|
16
13
|
}
|
|
17
14
|
</script>
|
|
18
15
|
|
|
19
|
-
{
|
|
20
|
-
{#if open}
|
|
21
|
-
<div transition:transition={params}>
|
|
22
|
-
<Frame {...$$restProps}><slot {close} /></Frame>
|
|
23
|
-
</div>
|
|
24
|
-
{/if}
|
|
25
|
-
{:else}
|
|
26
|
-
{#if open}
|
|
27
|
-
<Frame {...$$restProps}><slot /></Frame>
|
|
28
|
-
{/if}
|
|
29
|
-
{/if}
|
|
16
|
+
<Frame bind:open {transition} {params} {...$$restProps} on:show><slot {close} /></Frame>
|
|
30
17
|
|
|
31
18
|
<!--
|
|
32
19
|
@component
|
|
@@ -35,5 +22,4 @@ function close(ev) {
|
|
|
35
22
|
@prop export let transition: TransitionFunc = fade;
|
|
36
23
|
@prop export let params: object = {};
|
|
37
24
|
@prop export let open: boolean = true;
|
|
38
|
-
@prop export let dismissable: boolean = false;
|
|
39
25
|
-->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type TransitionConfig } from 'svelte/transition';
|
|
3
2
|
import type { Dismissable } from '../types';
|
|
3
|
+
import { type TransitionConfig } from 'svelte/transition';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: import("svelte/elements").HTMLAnchorAttributes & {
|
|
6
6
|
tag?: string | undefined;
|
|
@@ -13,15 +13,19 @@ declare const __propDef: {
|
|
|
13
13
|
options?: object | undefined;
|
|
14
14
|
class?: string | undefined;
|
|
15
15
|
role?: string | undefined;
|
|
16
|
-
|
|
16
|
+
open?: boolean | undefined;
|
|
17
17
|
transition?: ((node: HTMLElement, params: any) => TransitionConfig) | undefined;
|
|
18
18
|
params?: any;
|
|
19
|
-
};
|
|
19
|
+
} & Dismissable;
|
|
20
20
|
events: {
|
|
21
|
+
show: CustomEvent<any>;
|
|
22
|
+
} & {
|
|
21
23
|
[evt: string]: CustomEvent<any>;
|
|
22
24
|
};
|
|
23
25
|
slots: {
|
|
24
|
-
default: {
|
|
26
|
+
default: {
|
|
27
|
+
close: (ev: MouseEvent | undefined) => void;
|
|
28
|
+
};
|
|
25
29
|
};
|
|
26
30
|
};
|
|
27
31
|
export type TransitionFrameProps = typeof __propDef.props;
|
|
@@ -33,7 +37,6 @@ export type TransitionFrameSlots = typeof __propDef.slots;
|
|
|
33
37
|
* @prop export let transition: TransitionFunc = fade;
|
|
34
38
|
* @prop export let params: object = {};
|
|
35
39
|
* @prop export let open: boolean = true;
|
|
36
|
-
* @prop export let dismissable: boolean = false;
|
|
37
40
|
*/
|
|
38
41
|
export default class TransitionFrame extends SvelteComponent<TransitionFrameProps, TransitionFrameEvents, TransitionFrameSlots> {
|
|
39
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransitionFrame.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/TransitionFrame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,
|
|
1
|
+
{"version":3,"file":"TransitionFrame.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/TransitionFrame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAEvC;AACD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAiChE,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;wBAZM,UAAU,GAAG,SAAS;;;CAYY,CAAC;AACxD,MAAM,MAAM,oBAAoB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC1D,MAAM,MAAM,qBAAqB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,eAAe,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,CAAC;CAC9H"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="svelte" />
|
|
2
|
-
export default function focusTrap<
|
|
2
|
+
export default function focusTrap<Node extends HTMLElement>(node: Node, parameter?: any): void | import("svelte/action").ActionReturn<any, any>;
|
|
3
3
|
//# sourceMappingURL=focusTrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/focusTrap.js"],"names":[],"mappings":";AA0Ci8rC,
|
|
1
|
+
{"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/focusTrap.js"],"names":[],"mappings":";AA0Ci8rC,gJAAsM"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"packageManager": "pnpm@8.15.4",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "Shinichi Okada",
|
|
8
9
|
"email": "connect@codewithshin.com",
|
|
@@ -11,61 +12,43 @@
|
|
|
11
12
|
"bugs": "https://github.com/themesberg/flowbite-svelte/issues",
|
|
12
13
|
"homepage": "https://flowbite-svelte.com/",
|
|
13
14
|
"license": "MIT",
|
|
14
|
-
"scripts": {
|
|
15
|
-
"dev": "vite dev",
|
|
16
|
-
"build": "vite build && npm run package",
|
|
17
|
-
"preview": "vite preview",
|
|
18
|
-
"package": "svelte-kit sync && svelte-package && publint",
|
|
19
|
-
"prepublishOnly": "npm run package",
|
|
20
|
-
"test": "npm run test:integration && npm run test:unit",
|
|
21
|
-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
22
|
-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
23
|
-
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
24
|
-
"format": "prettier --plugin-search-dir . --write .",
|
|
25
|
-
"test:integration": "playwright test",
|
|
26
|
-
"test:unit": "vitest",
|
|
27
|
-
"gen:exports": "svelte-lib-helpers exports",
|
|
28
|
-
"gen:docs": "svelte-lib-helpers docs",
|
|
29
|
-
"gen:compo-data": "svelte-lib-helpers compo-data",
|
|
30
|
-
"copy:package": "svelte-lib-helpers package",
|
|
31
|
-
"lib-helpers": "npm run gen:docs && npm run gen:compo-data && npm run package && npm run gen:exports && npm run copy:package",
|
|
32
|
-
"package:publish": "npm run format && standard-version && git push --follow-tags origin main && npm publish"
|
|
33
|
-
},
|
|
34
15
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@sveltejs/
|
|
39
|
-
"@sveltejs/
|
|
40
|
-
"@sveltejs/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
16
|
+
"@changesets/cli": "^2.27.1",
|
|
17
|
+
"@docsearch/js": "^3.6.0",
|
|
18
|
+
"@playwright/test": "^1.43.1",
|
|
19
|
+
"@sveltejs/adapter-vercel": "^5.3.0",
|
|
20
|
+
"@sveltejs/kit": "^2.5.6",
|
|
21
|
+
"@sveltejs/package": "2.3.1",
|
|
22
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
23
|
+
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
25
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
26
|
+
"autoprefixer": "^10.4.19",
|
|
27
|
+
"esbuild": "0.20.2",
|
|
28
|
+
"eslint": "^8.57.0",
|
|
46
29
|
"eslint-config-prettier": "^9.1.0",
|
|
47
|
-
"eslint-plugin-svelte": "^2.
|
|
48
|
-
"flowbite-svelte-icons": "^
|
|
30
|
+
"eslint-plugin-svelte": "^2.37.0",
|
|
31
|
+
"flowbite-svelte-icons": "^1.5.0",
|
|
49
32
|
"mdsvex": "^0.11.0",
|
|
50
33
|
"mdsvexamples": "^0.4.1",
|
|
51
|
-
"postcss": "^8.4.
|
|
34
|
+
"postcss": "^8.4.38",
|
|
52
35
|
"postcss-load-config": "^5.0.3",
|
|
53
36
|
"prettier": "^3.2.5",
|
|
54
|
-
"prettier-plugin-svelte": "^3.2.
|
|
37
|
+
"prettier-plugin-svelte": "^3.2.3",
|
|
55
38
|
"prism-themes": "^1.9.0",
|
|
56
39
|
"publint": "^0.2.7",
|
|
57
|
-
"svelte": "^4.2.
|
|
58
|
-
"svelte-check": "^3.6.
|
|
59
|
-
"svelte-lib-helpers": "^0.4.
|
|
60
|
-
"svelte-meta-tags": "^3.1.
|
|
40
|
+
"svelte": "^4.2.14",
|
|
41
|
+
"svelte-check": "^3.6.9",
|
|
42
|
+
"svelte-lib-helpers": "^0.4.5",
|
|
43
|
+
"svelte-meta-tags": "^3.1.2",
|
|
61
44
|
"svelte-preprocess": "^5.1.3",
|
|
62
|
-
"svelte2tsx": "^0.7.
|
|
45
|
+
"svelte2tsx": "^0.7.6",
|
|
63
46
|
"tailwind-merge": "^1.13.1",
|
|
64
|
-
"tailwindcss": "^3.4.
|
|
47
|
+
"tailwindcss": "^3.4.3",
|
|
65
48
|
"tslib": "^2.6.2",
|
|
66
|
-
"typescript": "^5.
|
|
67
|
-
"vite": "^5.
|
|
68
|
-
"vitest": "^1.
|
|
49
|
+
"typescript": "^5.4.5",
|
|
50
|
+
"vite": "^5.2.8",
|
|
51
|
+
"vitest": "^1.5.0"
|
|
69
52
|
},
|
|
70
53
|
"peerDependencies": {
|
|
71
54
|
"svelte": "^4.0.0"
|
|
@@ -115,13 +98,13 @@
|
|
|
115
98
|
},
|
|
116
99
|
"dependencies": {
|
|
117
100
|
"@floating-ui/dom": "^1.6.3",
|
|
118
|
-
"apexcharts": "^3.
|
|
101
|
+
"apexcharts": "^3.48.0",
|
|
119
102
|
"flowbite": "^2.3.0",
|
|
120
|
-
"tailwind-merge": "^2.2.
|
|
103
|
+
"tailwind-merge": "^2.2.2"
|
|
121
104
|
},
|
|
122
105
|
"engines": {
|
|
123
106
|
"pnpm": ">=8.0.0",
|
|
124
|
-
"node": ">=
|
|
107
|
+
"node": ">=20.0.0"
|
|
125
108
|
},
|
|
126
109
|
"files": [
|
|
127
110
|
"dist",
|
|
@@ -752,5 +735,24 @@
|
|
|
752
735
|
"svelte": "./dist/video/Video.svelte"
|
|
753
736
|
},
|
|
754
737
|
"./package.json": "./package.json"
|
|
738
|
+
},
|
|
739
|
+
"scripts": {
|
|
740
|
+
"dev": "vite dev",
|
|
741
|
+
"build": "vite build && npm run package",
|
|
742
|
+
"preview": "vite preview",
|
|
743
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
|
744
|
+
"test": "npm run test:integration && npm run test:unit",
|
|
745
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
746
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
747
|
+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
748
|
+
"format": "prettier --plugin-search-dir . --write .",
|
|
749
|
+
"test:integration": "playwright test",
|
|
750
|
+
"test:unit": "vitest",
|
|
751
|
+
"gen:exports": "svelte-lib-helpers exports",
|
|
752
|
+
"gen:docs": "svelte-lib-helpers docs",
|
|
753
|
+
"gen:compo-data": "svelte-lib-helpers compo-data",
|
|
754
|
+
"copy:package": "svelte-lib-helpers package",
|
|
755
|
+
"lib-helpers": "npm run gen:docs && npm run gen:compo-data && npm run package && npm run gen:exports && npm run copy:package",
|
|
756
|
+
"package:publish": "standard-version && git push --follow-tags origin main && npm publish"
|
|
755
757
|
}
|
|
756
|
-
}
|
|
758
|
+
}
|