flowbite-svelte 0.37.2 → 0.37.4
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 +1 -1
- package/dist/alerts/Alert.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +1 -0
- package/dist/buttons/Button.svelte.d.ts.map +1 -1
- package/dist/cards/Card.svelte.d.ts +1 -1
- package/dist/carousels/Carousel.svelte +0 -2
- package/dist/carousels/Carousel.svelte.d.ts.map +1 -1
- package/dist/carousels/CarouselTransition.svelte +0 -2
- package/dist/carousels/CarouselTransition.svelte.d.ts.map +1 -1
- package/dist/carousels/Thumbnail.svelte +11 -10
- package/dist/carousels/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousels/Thumbnail.svelte.d.ts.map +1 -1
- package/dist/darkmode/DarkMode.svelte +14 -18
- package/dist/darkmode/DarkMode.svelte.d.ts +0 -1
- package/dist/darkmode/DarkMode.svelte.d.ts.map +1 -1
- package/dist/dropdowns/Dropdown.svelte +1 -1
- package/dist/dropdowns/DropdownItem.svelte +2 -1
- package/dist/forms/Dropzone.svelte +14 -13
- package/dist/forms/Dropzone.svelte.d.ts.map +1 -1
- package/dist/forms/FloatingLabelInput.svelte +1 -1
- package/dist/forms/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/FloatingLabelInput.svelte.d.ts.map +1 -1
- package/dist/forms/Input.svelte +1 -1
- package/dist/forms/Search.svelte +1 -1
- package/dist/forms/Search.svelte.d.ts +1 -1
- package/dist/forms/Search.svelte.d.ts.map +1 -1
- package/dist/forms/Select.svelte +1 -1
- package/dist/forms/Select.svelte.d.ts +1 -1
- package/dist/forms/Select.svelte.d.ts.map +1 -1
- package/dist/forms/Textarea.svelte +1 -1
- package/dist/forms/Textarea.svelte.d.ts +1 -1
- package/dist/forms/Textarea.svelte.d.ts.map +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/modals/Modal.svelte +1 -0
- package/dist/modals/Modal.svelte.d.ts +1 -1
- package/dist/navbar/Menu.svelte +2 -0
- package/dist/navbar/NavLi.svelte +1 -0
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/paginations/PaginationItem.svelte +1 -0
- package/dist/paginations/PaginationItem.svelte.d.ts.map +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/ratings/Heart.svelte +2 -0
- package/dist/ratings/Heart.svelte.d.ts +1 -0
- package/dist/ratings/Heart.svelte.d.ts.map +1 -1
- package/dist/ratings/Star.svelte +2 -0
- package/dist/ratings/Star.svelte.d.ts +1 -0
- package/dist/ratings/Star.svelte.d.ts.map +1 -1
- package/dist/ratings/Thumbup.svelte +2 -0
- package/dist/ratings/Thumbup.svelte.d.ts +1 -0
- package/dist/ratings/Thumbup.svelte.d.ts.map +1 -1
- package/dist/tables/TableBodyCell.svelte +4 -9
- package/dist/tables/TableBodyCell.svelte.d.ts +0 -7
- package/dist/tables/TableBodyCell.svelte.d.ts.map +1 -1
- package/dist/toasts/Toast.svelte +34 -22
- package/dist/toasts/Toast.svelte.d.ts +5 -3
- package/dist/toasts/Toast.svelte.d.ts.map +1 -1
- package/dist/tooltips/Tooltip.svelte.d.ts +1 -1
- package/dist/utils/ChevronDown.svelte +2 -0
- package/dist/utils/ChevronDown.svelte.d.ts +1 -0
- package/dist/utils/ChevronDown.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronLeft.svelte +2 -0
- package/dist/utils/ChevronLeft.svelte.d.ts +1 -0
- package/dist/utils/ChevronLeft.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronRight.svelte +2 -0
- package/dist/utils/ChevronRight.svelte.d.ts +1 -0
- package/dist/utils/ChevronRight.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronUp.svelte +2 -0
- package/dist/utils/ChevronUp.svelte.d.ts +1 -0
- package/dist/utils/ChevronUp.svelte.d.ts.map +1 -1
- package/dist/utils/Frame.svelte +3 -0
- package/dist/utils/Frame.svelte.d.ts +1 -1
- package/dist/utils/Frame.svelte.d.ts.map +1 -1
- package/dist/utils/InformationCircle.svelte +2 -0
- package/dist/utils/InformationCircle.svelte.d.ts +1 -0
- package/dist/utils/InformationCircle.svelte.d.ts.map +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/UserCircle.svelte +2 -0
- package/dist/utils/UserCircle.svelte.d.ts +1 -0
- package/dist/utils/UserCircle.svelte.d.ts.map +1 -1
- package/dist/utils/focusTrap.d.ts.map +1 -1
- package/dist/utils/focusTrap.js +2 -2
- package/package.json +17 -20
|
@@ -6,13 +6,6 @@ declare const __propDef: {
|
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
click: MouseEvent;
|
|
9
|
-
focus: FocusEvent;
|
|
10
|
-
keydown: KeyboardEvent;
|
|
11
|
-
keypress: KeyboardEvent;
|
|
12
|
-
keyup: KeyboardEvent;
|
|
13
|
-
mouseenter: MouseEvent;
|
|
14
|
-
mouseleave: MouseEvent;
|
|
15
|
-
mouseover: MouseEvent;
|
|
16
9
|
} & {
|
|
17
10
|
[evt: string]: CustomEvent<any>;
|
|
18
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBodyCell.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/tables/TableBodyCell.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA8BD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"TableBodyCell.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/tables/TableBodyCell.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA8BD,QAAA,MAAM,SAAS;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,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;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;CAC3H"}
|
package/dist/toasts/Toast.svelte
CHANGED
|
@@ -3,14 +3,13 @@ import classNames from 'classnames';
|
|
|
3
3
|
import CloseButton from '../utils/CloseButton.svelte';
|
|
4
4
|
import { fade } from 'svelte/transition';
|
|
5
5
|
export let simple = false;
|
|
6
|
+
export let color = 'primary';
|
|
6
7
|
export let position = 'none';
|
|
7
8
|
export let open = true;
|
|
8
|
-
export let divClass = 'w-full max-w-xs p-4';
|
|
9
|
-
export let defaultIconClass = '
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$$restProps.color = $$restProps.color ?? 'blue';
|
|
13
|
-
}
|
|
9
|
+
export let divClass = 'w-full max-w-xs p-4 text-gray-500 bg-white shadow dark:text-gray-400 dark:bg-gray-800 gap-3';
|
|
10
|
+
export let defaultIconClass = 'w-8 h-8';
|
|
11
|
+
export let contentClass = 'w-full text-sm font-normal';
|
|
12
|
+
export let align = true;
|
|
14
13
|
const positions = {
|
|
15
14
|
'top-left': 'absolute top-5 left-5',
|
|
16
15
|
'top-right': 'absolute top-5 right-5',
|
|
@@ -18,27 +17,40 @@ const positions = {
|
|
|
18
17
|
'bottom-right': 'absolute bottom-5 right-5',
|
|
19
18
|
none: ''
|
|
20
19
|
};
|
|
21
|
-
let
|
|
22
|
-
$:
|
|
20
|
+
let finalDivClass;
|
|
21
|
+
$: finalDivClass = classNames('flex', align ? 'items-center' : 'items-start', divClass, positions[position], $$props.class);
|
|
22
|
+
const colors = {
|
|
23
|
+
primary: 'text-primary-500 bg-primary-100 dark:bg-primary-800 dark:text-primary-200',
|
|
24
|
+
gray: 'text-gray-500 bg-gray-100 dark:bg-gray-700 dark:text-gray-200',
|
|
25
|
+
red: 'text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200',
|
|
26
|
+
yellow: 'text-yellow-500 bg-yellow-100 dark:bg-yellow-800 dark:text-yellow-200',
|
|
27
|
+
green: 'text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200',
|
|
28
|
+
blue: 'text-blue-500 bg-blue-100 dark:bg-blue-800 dark:text-blue-200',
|
|
29
|
+
indigo: 'text-indigo-500 bg-indigo-100 dark:bg-indigo-800 dark:text-indigo-200',
|
|
30
|
+
purple: 'text-purple-500 bg-purple-100 dark:bg-purple-800 dark:text-purple-200',
|
|
31
|
+
orange: 'text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200',
|
|
32
|
+
none: ''
|
|
33
|
+
};
|
|
23
34
|
let iconClass;
|
|
24
|
-
$: iconClass = classNames(defaultIconClass);
|
|
35
|
+
$: iconClass = classNames('inline-flex items-center justify-center shrink-0', colors[color], defaultIconClass);
|
|
36
|
+
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';
|
|
25
37
|
</script>
|
|
26
38
|
|
|
27
39
|
{#if open}
|
|
28
|
-
<Frame rounded
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
<
|
|
32
|
-
|
|
40
|
+
<Frame rounded transition={fade} color="none" {...$$restProps} class={finalDivClass} role="alert">
|
|
41
|
+
{#if $$slots.icon}
|
|
42
|
+
<Frame rounded color="none" class={iconClass}>
|
|
43
|
+
<slot name="icon" />
|
|
44
|
+
</Frame>
|
|
45
|
+
{/if}
|
|
33
46
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<slot name="extra" />
|
|
37
|
-
</div>
|
|
38
|
-
{#if !simple}
|
|
39
|
-
<CloseButton on:click={() => (open = false)} />
|
|
40
|
-
{/if}
|
|
47
|
+
<div class={contentClass}>
|
|
48
|
+
<slot />
|
|
41
49
|
</div>
|
|
50
|
+
|
|
51
|
+
{#if !simple}
|
|
52
|
+
<CloseButton class={clsBtnExtraClass} on:click={() => (open = false)} />
|
|
53
|
+
{/if}
|
|
42
54
|
</Frame>
|
|
43
55
|
{/if}
|
|
44
56
|
|
|
@@ -56,7 +68,7 @@ $: iconClass = classNames(defaultIconClass);
|
|
|
56
68
|
- Blur examples
|
|
57
69
|
- Fly examples
|
|
58
70
|
- Undo button
|
|
59
|
-
-
|
|
71
|
+
- Advanced examples
|
|
60
72
|
- Toast message
|
|
61
73
|
- Push notification
|
|
62
74
|
- Interactive toast
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "blue" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -246,6 +246,9 @@ declare const __propDef: {
|
|
|
246
246
|
position?: "none" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
247
247
|
open?: boolean | undefined;
|
|
248
248
|
divClass?: string | undefined;
|
|
249
|
+
defaultIconClass?: string | undefined;
|
|
250
|
+
extraIconClass?: string | undefined;
|
|
251
|
+
contentClass?: string | undefined;
|
|
249
252
|
};
|
|
250
253
|
events: {
|
|
251
254
|
[evt: string]: CustomEvent<any>;
|
|
@@ -253,7 +256,6 @@ declare const __propDef: {
|
|
|
253
256
|
slots: {
|
|
254
257
|
icon: {};
|
|
255
258
|
default: {};
|
|
256
|
-
extra: {};
|
|
257
259
|
};
|
|
258
260
|
};
|
|
259
261
|
export type ToastProps = typeof __propDef.props;
|
|
@@ -272,7 +274,7 @@ export type ToastSlots = typeof __propDef.slots;
|
|
|
272
274
|
* - Blur examples
|
|
273
275
|
* - Fly examples
|
|
274
276
|
* - Undo button
|
|
275
|
-
* -
|
|
277
|
+
* - Advanced examples
|
|
276
278
|
* - Toast message
|
|
277
279
|
* - Push notification
|
|
278
280
|
* - Interactive toast
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/toasts/Toast.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Toast.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/toasts/Toast.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAsHD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron down';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7" stroke="${color}"></path>`;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronDown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronDown.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronDown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronDown.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,oBAAoB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CACnH"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron left';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" stroke="${color}"></path>`;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronLeft.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronLeft.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronLeft.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronLeft.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,oBAAoB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CACnH"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron right';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" stroke="${color}"></path> `;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronRight.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronRight.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronRight.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronRight.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,oBAAoB,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CACvH"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron up';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z" stroke="${color}"></path>`;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronUp.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronUp.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronUp.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronUp.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,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;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,oBAAoB,CAAC,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC;CAC3G"}
|
package/dist/utils/Frame.svelte
CHANGED
|
@@ -36,6 +36,7 @@ const bgColors = {
|
|
|
36
36
|
navbarUl: 'bg-gray-50 dark:bg-gray-800',
|
|
37
37
|
form: 'bg-gray-50 dark:bg-gray-700',
|
|
38
38
|
primary: 'bg-primary-50 dark:bg-gray-800 ',
|
|
39
|
+
orange: 'bg-orange-50 dark:bg-orange-800',
|
|
39
40
|
none: ''
|
|
40
41
|
};
|
|
41
42
|
const textColors = {
|
|
@@ -55,6 +56,7 @@ const textColors = {
|
|
|
55
56
|
navbarUl: 'text-gray-700 dark:text-gray-400',
|
|
56
57
|
form: 'text-gray-900 dark:text-white',
|
|
57
58
|
primary: 'text-primary-800 dark:text-primary-400',
|
|
59
|
+
orange: 'text-orange-800 dark:text-orange-400',
|
|
58
60
|
none: ''
|
|
59
61
|
};
|
|
60
62
|
const borderColors = {
|
|
@@ -74,6 +76,7 @@ const borderColors = {
|
|
|
74
76
|
navbarUl: 'border-gray-100 dark:border-gray-700',
|
|
75
77
|
form: 'border-gray-300 dark:border-gray-700',
|
|
76
78
|
primary: 'border-primary-500 dark:bg-primary-200 ',
|
|
79
|
+
orange: 'border-orange-300 dark:bg-orange-800',
|
|
77
80
|
none: ''
|
|
78
81
|
};
|
|
79
82
|
let divClass;
|
|
@@ -47,7 +47,7 @@ declare const __propDef: {
|
|
|
47
47
|
autocapitalize?: string | null | undefined;
|
|
48
48
|
autocorrect?: string | null | undefined;
|
|
49
49
|
autosave?: string | null | undefined;
|
|
50
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
50
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
51
51
|
itemprop?: string | null | undefined;
|
|
52
52
|
itemscope?: boolean | null | undefined;
|
|
53
53
|
itemtype?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Frame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAKD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Frame.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Frame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAKD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AA8I1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAlIgB,WAAW,UAAU,GAAG,KAAK,gBAAgB;;eAWjE,WAAW,GAAG,SAAS;;;;;;;;;;;;;;;;CAuHqB,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;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'information circle';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path d="M11.25 11.25L11.2915 11.2293C11.8646 10.9427 12.5099 11.4603 12.3545 12.082L11.6455 14.918C11.4901 15.5397 12.1354 16.0573 12.7085 15.7707L12.75 15.75M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 8.25H12.0075V8.2575H12V8.25Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/InformationCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"InformationCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/InformationCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC5D,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC9D,MAAM,MAAM,sBAAsB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,oBAAoB,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,sBAAsB,CAAC;CAC3I"}
|
|
@@ -46,7 +46,7 @@ declare const __propDef: {
|
|
|
46
46
|
autocapitalize?: string | null | undefined;
|
|
47
47
|
autocorrect?: string | null | undefined;
|
|
48
48
|
autosave?: string | null | undefined;
|
|
49
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
49
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
50
50
|
itemprop?: string | null | undefined;
|
|
51
51
|
itemscope?: boolean | null | undefined;
|
|
52
52
|
itemtype?: string | null | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'user circle';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path d="M17.9815 18.7248C16.6121 16.9175 14.4424 15.75 12 15.75C9.55761 15.75 7.38789 16.9175 6.01846 18.7248M17.9815 18.7248C19.8335 17.0763 21 14.6744 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 14.6744 4.1665 17.0763 6.01846 18.7248M17.9815 18.7248C16.3915 20.1401 14.2962 21 12 21C9.70383 21 7.60851 20.1401 6.01846 18.7248M15 9.75C15 11.4069 13.6569 12.75 12 12.75C10.3431 12.75 9 11.4069 9 9.75C9 8.09315 10.3431 6.75 12 6.75C13.6569 6.75 15 8.09315 15 9.75Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/UserCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"UserCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/UserCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAErD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,oBAAoB,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,CAAC;CAC/G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/focusTrap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/focusTrap.js"],"names":[],"mappings":"AA0Ci4B,oJAA2G"}
|
package/dist/utils/focusTrap.js
CHANGED
|
@@ -12,8 +12,6 @@ const selectorTabbable = `
|
|
|
12
12
|
|
|
13
13
|
/** @type {import('svelte/action').Action} */
|
|
14
14
|
export default function focusTrap(node) {
|
|
15
|
-
const tabbable = Array.from(node.querySelectorAll(selectorTabbable));
|
|
16
|
-
|
|
17
15
|
/** @type {(e:KeyboardEvent)=>void} */
|
|
18
16
|
function handleFocusTrap(e) {
|
|
19
17
|
let isTabPressed = e.key === 'Tab' || e.keyCode === 9;
|
|
@@ -22,6 +20,8 @@ export default function focusTrap(node) {
|
|
|
22
20
|
return;
|
|
23
21
|
}
|
|
24
22
|
|
|
23
|
+
const tabbable = Array.from(node.querySelectorAll(selectorTabbable));
|
|
24
|
+
|
|
25
25
|
let index = tabbable.indexOf(document.activeElement ?? node);
|
|
26
26
|
if (index === -1 && e.shiftKey) index = 0;
|
|
27
27
|
index += tabbable.length + (e.shiftKey ? -1 : 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.4",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -28,20 +28,14 @@
|
|
|
28
28
|
"package:publish": "standard-version && git push --follow-tags origin main && npm run package && npm run add-exports && npm run write-package-json && npm publish",
|
|
29
29
|
"gen:props": "createprops && npm run format"
|
|
30
30
|
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"@popperjs/core": "^2.11.6",
|
|
33
|
-
"classnames": "^2.3.2",
|
|
34
|
-
"flowbite": "^1.6.3",
|
|
35
|
-
"svelte": "^3.55.1"
|
|
36
|
-
},
|
|
37
31
|
"devDependencies": {
|
|
38
|
-
"@docsearch/js": "^3.
|
|
39
|
-
"@playwright/test": "^1.34.
|
|
32
|
+
"@docsearch/js": "^3.4.0",
|
|
33
|
+
"@playwright/test": "^1.34.3",
|
|
40
34
|
"@sveltejs/adapter-vercel": "^3.0.0",
|
|
41
|
-
"@sveltejs/kit": "^1.
|
|
35
|
+
"@sveltejs/kit": "^1.20.0",
|
|
42
36
|
"@sveltejs/package": "2.0.2",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
44
|
-
"@typescript-eslint/parser": "^5.59.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
38
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
45
39
|
"autoprefixer": "^10.4.14",
|
|
46
40
|
"createprops": "^0.5.5",
|
|
47
41
|
"esbuild": "0.17.19",
|
|
@@ -50,22 +44,25 @@
|
|
|
50
44
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
51
45
|
"mdsvex": "^0.10.6",
|
|
52
46
|
"mdsvexamples": "^0.3.3",
|
|
53
|
-
"postcss": "^8.4.
|
|
47
|
+
"postcss": "^8.4.24",
|
|
54
48
|
"postcss-load-config": "^4.0.1",
|
|
55
49
|
"prettier": "^2.8.8",
|
|
56
|
-
"prettier-plugin-svelte": "^2.10.
|
|
50
|
+
"prettier-plugin-svelte": "^2.10.1",
|
|
57
51
|
"prism-themes": "^1.9.0",
|
|
58
52
|
"publint": "^0.1.12",
|
|
59
53
|
"svelte": "^3.59.1",
|
|
60
|
-
"svelte-check": "^3.3
|
|
54
|
+
"svelte-check": "^3.4.3",
|
|
61
55
|
"svelte-meta-tags": "^2.7.2",
|
|
62
|
-
"svelte-preprocess": "^5.0.
|
|
63
|
-
"svelte2tsx": "^0.6.
|
|
56
|
+
"svelte-preprocess": "^5.0.4",
|
|
57
|
+
"svelte2tsx": "^0.6.15",
|
|
64
58
|
"tailwindcss": "^3.3.2",
|
|
65
59
|
"tslib": "^2.5.2",
|
|
66
60
|
"typescript": "^5.0.4",
|
|
67
|
-
"vite": "^4.3.
|
|
68
|
-
"vitest": "^0.31.
|
|
61
|
+
"vite": "^4.3.9",
|
|
62
|
+
"vitest": "^0.31.3"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"svelte": "^3.55.1 || ^4.0.0"
|
|
69
66
|
},
|
|
70
67
|
"type": "module",
|
|
71
68
|
"keywords": [
|
|
@@ -111,7 +108,7 @@
|
|
|
111
108
|
"url": "https://github.com/themesberg/flowbite-svelte"
|
|
112
109
|
},
|
|
113
110
|
"dependencies": {
|
|
114
|
-
"@popperjs/core": "^2.11.
|
|
111
|
+
"@popperjs/core": "^2.11.8",
|
|
115
112
|
"classnames": "^2.3.2",
|
|
116
113
|
"flowbite": "^1.6.5"
|
|
117
114
|
},
|