flowbite-svelte 0.47.4 → 0.48.1
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 +2 -2
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +1 -1
- package/dist/avatar/Avatar.svelte +4 -4
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/badge/Badge.svelte +2 -2
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/banner/Banner.svelte +3 -3
- package/dist/button-group/ButtonGroup.svelte +2 -2
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +5 -5
- package/dist/buttons/Button.svelte.d.ts +3 -1
- package/dist/buttons/GradientButton.svelte +21 -21
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/cards/Card.svelte +1 -1
- package/dist/carousel/ControlButton.svelte +2 -2
- package/dist/carousel/Slide.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte +2 -2
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/datepicker/Datepicker.svelte +2 -2
- package/dist/drawer/Drawer.svelte +3 -3
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/dropdown/Dropdown.svelte +2 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +2 -2
- package/dist/footer/Footer.svelte +1 -1
- package/dist/forms/CheckboxButton.svelte +1 -1
- package/dist/forms/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/Fileupload.svelte +3 -3
- package/dist/forms/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/FloatingLabelInput.svelte +4 -4
- package/dist/forms/Input.svelte +3 -3
- package/dist/forms/InputAddon.svelte +1 -1
- package/dist/forms/MultiSelect.svelte +1 -1
- package/dist/forms/Radio.svelte +1 -1
- package/dist/forms/RadioButton.svelte +1 -1
- package/dist/forms/RadioButton.svelte.d.ts +1 -1
- package/dist/forms/Select.svelte +3 -3
- package/dist/forms/Select.svelte.d.ts +1 -1
- package/dist/forms/Textarea.svelte +2 -2
- package/dist/forms/Textarea.svelte.d.ts +1 -1
- package/dist/forms/Toggle.svelte +1 -1
- package/dist/indicators/Indicator.svelte +2 -2
- package/dist/indicators/Indicator.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +2 -2
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte +3 -3
- package/dist/modal/Modal.svelte +2 -2
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +18 -2
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -0
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/popover/Popover.svelte +1 -1
- package/dist/rating/AdvancedRating.svelte +4 -4
- package/dist/rating/AdvancedRating.svelte.d.ts +2 -2
- package/dist/rating/Review.svelte +1 -1
- package/dist/rating/ScoreRating.svelte +6 -6
- package/dist/rating/ScoreRating.svelte.d.ts +2 -2
- package/dist/sidebar/SidebarCta.svelte +2 -2
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
- package/dist/sidebar/SidebarWrapper.svelte +2 -2
- package/dist/sidebar/SidebarWrapper.svelte.d.ts +1 -1
- package/dist/skeleton/CardPlaceholder.svelte +3 -3
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +2 -2
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +2 -2
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +2 -2
- package/dist/speed-dial/SpeedDialButton.svelte +2 -2
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/steps/StepIndicator.svelte +4 -4
- package/dist/table/Table.svelte +1 -1
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +6 -6
- package/dist/tabs/Tabs.svelte +2 -2
- package/dist/timeline/ActivityItem.svelte +2 -2
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/toast/Toast.svelte +2 -2
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +3 -3
- package/dist/toolbar/ToolbarGroup.svelte +2 -2
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/typography/Mark.svelte +2 -2
- package/dist/typography/Mark.svelte.d.ts +1 -1
- package/dist/typography/Span.svelte +2 -2
- package/dist/typography/Span.svelte.d.ts +1 -1
- package/dist/utils/backdrop.js +1 -1
- package/package.json +24 -23
package/dist/table/Table.svelte
CHANGED
|
@@ -80,7 +80,7 @@ setContext("sorter", writable(null));
|
|
|
80
80
|
@prop export let striped: $$Props['striped'] = false;
|
|
81
81
|
@prop export let hoverable: $$Props['hoverable'] = false;
|
|
82
82
|
@prop export let noborder: $$Props['noborder'] = false;
|
|
83
|
-
@prop export let shadow: $$Props['shadow'] = false;
|
|
83
|
+
@prop export let shadow: $$Props['shadow-sm'] = false;
|
|
84
84
|
@prop export let color: NonNullable<$$Props['color']> = 'default';
|
|
85
85
|
@prop export let customeColor: $$Props['customeColor'] = '';
|
|
86
86
|
@prop export let items: $$Props['items'] = [];
|
|
@@ -41,7 +41,7 @@ export type TableSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
|
|
|
41
41
|
* @prop export let striped: $$Props['striped'] = false;
|
|
42
42
|
* @prop export let hoverable: $$Props['hoverable'] = false;
|
|
43
43
|
* @prop export let noborder: $$Props['noborder'] = false;
|
|
44
|
-
* @prop export let shadow: $$Props['shadow'] = false;
|
|
44
|
+
* @prop export let shadow: $$Props['shadow-sm'] = false;
|
|
45
45
|
* @prop export let color: NonNullable<$$Props['color']> = 'default';
|
|
46
46
|
* @prop export let customeColor: $$Props['customeColor'] = '';
|
|
47
47
|
* @prop export let items: $$Props['items'] = [];
|
|
@@ -20,12 +20,12 @@ const hoverColors = {
|
|
|
20
20
|
custom: ""
|
|
21
21
|
};
|
|
22
22
|
const stripColors = {
|
|
23
|
-
default: "odd:bg-white even:bg-gray-50 odd:
|
|
24
|
-
blue: "odd:bg-blue-800 even:bg-blue-700 odd:
|
|
25
|
-
green: "odd:bg-green-800 even:bg-green-700 odd:
|
|
26
|
-
red: "odd:bg-red-800 even:bg-red-700 odd:
|
|
27
|
-
yellow: "odd:bg-yellow-800 even:bg-yellow-700 odd:
|
|
28
|
-
purple: "odd:bg-purple-800 even:bg-purple-700 odd:
|
|
23
|
+
default: "odd:bg-white even:bg-gray-50 dark:odd:bg-gray-800 dark:even:bg-gray-700",
|
|
24
|
+
blue: "odd:bg-blue-800 even:bg-blue-700 dark:odd:bg-blue-800 dark:even:bg-blue-700",
|
|
25
|
+
green: "odd:bg-green-800 even:bg-green-700 dark:odd:bg-green-800 dark:even:bg-green-700",
|
|
26
|
+
red: "odd:bg-red-800 even:bg-red-700 dark:odd:bg-red-800 dark:even:bg-red-700",
|
|
27
|
+
yellow: "odd:bg-yellow-800 even:bg-yellow-700 dark:odd:bg-yellow-800 dark:even:bg-yellow-700",
|
|
28
|
+
purple: "odd:bg-purple-800 even:bg-purple-700 dark:odd:bg-purple-800 dark:even:bg-purple-700",
|
|
29
29
|
custom: ""
|
|
30
30
|
};
|
|
31
31
|
let trClass;
|
package/dist/tabs/Tabs.svelte
CHANGED
|
@@ -10,13 +10,13 @@ export let divider = true;
|
|
|
10
10
|
export let activeClasses = "p-4 text-primary-600 bg-gray-100 rounded-t-lg dark:bg-gray-800 dark:text-primary-500";
|
|
11
11
|
export let inactiveClasses = "p-4 text-gray-500 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300";
|
|
12
12
|
const styledActiveClasses = {
|
|
13
|
-
full: "p-4 w-full group-first:rounded-s-lg group-last:rounded-e-lg text-gray-900 bg-gray-100 focus:ring-4 focus:ring-primary-300 focus:outline-
|
|
13
|
+
full: "p-4 w-full group-first:rounded-s-lg group-last:rounded-e-lg text-gray-900 bg-gray-100 focus:ring-4 focus:ring-primary-300 focus:outline-hidden dark:bg-gray-700 dark:text-white",
|
|
14
14
|
pill: "py-3 px-4 text-white bg-primary-600 rounded-lg",
|
|
15
15
|
underline: "p-4 text-primary-600 border-b-2 border-primary-600 dark:text-primary-500 dark:border-primary-500",
|
|
16
16
|
none: ""
|
|
17
17
|
};
|
|
18
18
|
const styledInactiveClasses = {
|
|
19
|
-
full: "p-4 w-full group-first:rounded-s-lg group-last:rounded-e-lg text-gray-500 dark:text-gray-400 bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-primary-300 focus:outline-
|
|
19
|
+
full: "p-4 w-full group-first:rounded-s-lg group-last:rounded-e-lg text-gray-500 dark:text-gray-400 bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-primary-300 focus:outline-hidden dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700",
|
|
20
20
|
pill: "py-3 px-4 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",
|
|
21
21
|
underline: "p-4 border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 text-gray-500 dark:text-gray-400",
|
|
22
22
|
none: ""
|
|
@@ -3,7 +3,7 @@ export let activities = [];
|
|
|
3
3
|
export let liClass = "mb-10 ms-6";
|
|
4
4
|
export let spanClass = "flex absolute -start-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900";
|
|
5
5
|
export let imgClass = "rounded-full shadow-lg";
|
|
6
|
-
export let outerDivClass = "p-4 bg-white rounded-lg border border-gray-200 shadow-
|
|
6
|
+
export let outerDivClass = "p-4 bg-white rounded-lg border border-gray-200 shadow-xs dark:bg-gray-700 dark:border-gray-600";
|
|
7
7
|
export let innerDivClass = "justify-between items-center mb-3 sm:flex";
|
|
8
8
|
export let timeClass = "mb-1 text-xs font-normal text-gray-400 sm:order-last sm:mb-0";
|
|
9
9
|
export let titleClass = "text-sm font-normal text-gray-500 lex dark:text-gray-300";
|
|
@@ -55,7 +55,7 @@ let textCls = twMerge(textClass, classText);
|
|
|
55
55
|
@prop export let liClass: $$Props['liClass'] = 'mb-10 ms-6';
|
|
56
56
|
@prop export let spanClass: $$Props['spanClass'] = 'flex absolute -start-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900';
|
|
57
57
|
@prop export let imgClass: $$Props['imgClass'] = 'rounded-full shadow-lg';
|
|
58
|
-
@prop export let outerDivClass: $$Props['outerDivClass'] = 'p-4 bg-white rounded-lg border border-gray-200 shadow-
|
|
58
|
+
@prop export let outerDivClass: $$Props['outerDivClass'] = 'p-4 bg-white rounded-lg border border-gray-200 shadow-xs dark:bg-gray-700 dark:border-gray-600';
|
|
59
59
|
@prop export let innerDivClass: $$Props['innerDivClass'] = 'justify-between items-center mb-3 sm:flex';
|
|
60
60
|
@prop export let timeClass: $$Props['timeClass'] = 'mb-1 text-xs font-normal text-gray-400 sm:order-last sm:mb-0';
|
|
61
61
|
@prop export let titleClass: $$Props['titleClass'] = 'text-sm font-normal text-gray-500 lex dark:text-gray-300';
|
|
@@ -35,7 +35,7 @@ export type ActivityItemSlots = typeof __propDef.slots;
|
|
|
35
35
|
* @prop export let liClass: $$Props['liClass'] = 'mb-10 ms-6';
|
|
36
36
|
* @prop export let spanClass: $$Props['spanClass'] = 'flex absolute -start-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900';
|
|
37
37
|
* @prop export let imgClass: $$Props['imgClass'] = 'rounded-full shadow-lg';
|
|
38
|
-
* @prop export let outerDivClass: $$Props['outerDivClass'] = 'p-4 bg-white rounded-lg border border-gray-200 shadow-
|
|
38
|
+
* @prop export let outerDivClass: $$Props['outerDivClass'] = 'p-4 bg-white rounded-lg border border-gray-200 shadow-xs dark:bg-gray-700 dark:border-gray-600';
|
|
39
39
|
* @prop export let innerDivClass: $$Props['innerDivClass'] = 'justify-between items-center mb-3 sm:flex';
|
|
40
40
|
* @prop export let timeClass: $$Props['timeClass'] = 'mb-1 text-xs font-normal text-gray-400 sm:order-last sm:mb-0';
|
|
41
41
|
* @prop export let titleClass: $$Props['titleClass'] = 'text-sm font-normal text-gray-500 lex dark:text-gray-300';
|
package/dist/toast/Toast.svelte
CHANGED
|
@@ -5,7 +5,7 @@ import { CloseButton } from "..";
|
|
|
5
5
|
export let dismissable = true;
|
|
6
6
|
export let color = "primary";
|
|
7
7
|
export let position = "none";
|
|
8
|
-
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";
|
|
8
|
+
export let divClass = "w-full max-w-xs p-4 text-gray-500 bg-white shadow-sm dark:text-gray-400 dark:bg-gray-800 gap-3";
|
|
9
9
|
export let defaultIconClass = "w-8 h-8";
|
|
10
10
|
export let contentClass = "w-full text-sm font-normal";
|
|
11
11
|
export let align = true;
|
|
@@ -86,7 +86,7 @@ const clsBtnExtraClass = "ms-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:t
|
|
|
86
86
|
@prop export let dismissable: $$Props['dismissable'] = true;
|
|
87
87
|
@prop export let color: NonNullable<$$Props['color']> = 'primary';
|
|
88
88
|
@prop export let position: NonNullable<$$Props['position']> = 'none';
|
|
89
|
-
@prop export let divClass: $$Props['divClass'] = 'w-full max-w-xs p-4 text-gray-500 bg-white shadow dark:text-gray-400 dark:bg-gray-800 gap-3';
|
|
89
|
+
@prop export let divClass: $$Props['divClass'] = 'w-full max-w-xs p-4 text-gray-500 bg-white shadow-sm dark:text-gray-400 dark:bg-gray-800 gap-3';
|
|
90
90
|
@prop export let defaultIconClass: $$Props['defaultIconClass'] = 'w-8 h-8';
|
|
91
91
|
@prop export let contentClass: $$Props['contentClass'] = 'w-full text-sm font-normal';
|
|
92
92
|
@prop export let align: $$Props['align'] = true;
|
|
@@ -34,7 +34,7 @@ export type ToastSlots = typeof __propDef.slots;
|
|
|
34
34
|
* @prop export let dismissable: $$Props['dismissable'] = true;
|
|
35
35
|
* @prop export let color: NonNullable<$$Props['color']> = 'primary';
|
|
36
36
|
* @prop export let position: NonNullable<$$Props['position']> = 'none';
|
|
37
|
-
* @prop export let divClass: $$Props['divClass'] = 'w-full max-w-xs p-4 text-gray-500 bg-white shadow dark:text-gray-400 dark:bg-gray-800 gap-3';
|
|
37
|
+
* @prop export let divClass: $$Props['divClass'] = 'w-full max-w-xs p-4 text-gray-500 bg-white shadow-sm dark:text-gray-400 dark:bg-gray-800 gap-3';
|
|
38
38
|
* @prop export let defaultIconClass: $$Props['defaultIconClass'] = 'w-8 h-8';
|
|
39
39
|
* @prop export let contentClass: $$Props['contentClass'] = 'w-full text-sm font-normal';
|
|
40
40
|
* @prop export let align: $$Props['align'] = true;
|
|
@@ -20,13 +20,13 @@ const colors = {
|
|
|
20
20
|
default: "focus:ring-gray-400 hover:bg-gray-100"
|
|
21
21
|
};
|
|
22
22
|
const sizing = {
|
|
23
|
-
xs: "m-0.5 rounded-
|
|
24
|
-
sm: "m-0.5 rounded focus:ring-1 p-0.5",
|
|
23
|
+
xs: "m-0.5 rounded-xs focus:ring-1 p-0.5",
|
|
24
|
+
sm: "m-0.5 rounded-sm focus:ring-1 p-0.5",
|
|
25
25
|
md: "m-0.5 rounded-lg focus:ring-2 p-1.5",
|
|
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-
|
|
29
|
+
$: buttonClass = twMerge("focus:outline-hidden 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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { twMerge } from "tailwind-merge";
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
export let divClass = "flex items-center space-x-1 rtl:space-x-reverse sm:pe-4 sm:ps-4 first:
|
|
3
|
+
export let divClass = "flex items-center space-x-1 rtl:space-x-reverse sm:pe-4 sm:ps-4 sm:first:ps-0 sm:last:pe-0";
|
|
4
4
|
const options = getContext("toolbar");
|
|
5
5
|
if (options) $options = true;
|
|
6
6
|
</script>
|
|
@@ -13,5 +13,5 @@ if (options) $options = true;
|
|
|
13
13
|
@component
|
|
14
14
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
15
|
## Props
|
|
16
|
-
@prop export let divClass: string = 'flex items-center space-x-1 rtl:space-x-reverse sm:pe-4 sm:ps-4 first:
|
|
16
|
+
@prop export let divClass: string = 'flex items-center space-x-1 rtl:space-x-reverse sm:pe-4 sm:ps-4 sm:first:ps-0 sm:last:pe-0';
|
|
17
17
|
-->
|
|
@@ -17,7 +17,7 @@ export type ToolbarGroupSlots = typeof __propDef.slots;
|
|
|
17
17
|
/**
|
|
18
18
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
* ## Props
|
|
20
|
-
* @prop export let divClass: string = 'flex items-center space-x-1 rtl:space-x-reverse sm:pe-4 sm:ps-4 first:
|
|
20
|
+
* @prop export let divClass: string = 'flex items-center space-x-1 rtl:space-x-reverse sm:pe-4 sm:ps-4 sm:first:ps-0 sm:last:pe-0';
|
|
21
21
|
*/
|
|
22
22
|
export default class ToolbarGroup extends SvelteComponentTyped<ToolbarGroupProps, ToolbarGroupEvents, ToolbarGroupSlots> {
|
|
23
23
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export type SelectOptionType<T> = {
|
|
|
45
45
|
value: T;
|
|
46
46
|
disabled?: boolean;
|
|
47
47
|
};
|
|
48
|
-
export type TransitionTypes = 'fade' | 'fly' | 'slide' | 'blur' | 'in:fly' | 'out:fly' | 'in:slide' | 'out:slide' | 'in:fade' | 'out:fade' | 'in:blur' | 'out:blur';
|
|
48
|
+
export type TransitionTypes = 'fade' | 'fly' | 'slide' | 'blur-sm' | 'in:fly' | 'out:fly' | 'in:slide' | 'out:slide' | 'in:fade' | 'out:fade' | 'in:blur' | 'out:blur';
|
|
49
49
|
export interface ActivityType {
|
|
50
50
|
title: HTMLElement | string;
|
|
51
51
|
date: Date | string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { twMerge } from "tailwind-merge";
|
|
2
2
|
export let color = "text-white dark:bg-blue-500";
|
|
3
3
|
export let bgColor = "bg-blue-600";
|
|
4
|
-
export let markClass = "px-2 rounded";
|
|
4
|
+
export let markClass = "px-2 rounded-sm";
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<mark {...$$restProps} class={twMerge(markClass, bgColor, color, $$props.class)}>
|
|
@@ -14,5 +14,5 @@ export let markClass = "px-2 rounded";
|
|
|
14
14
|
## Props
|
|
15
15
|
@prop export let color: $$Props['color'] = 'text-white dark:bg-blue-500';
|
|
16
16
|
@prop export let bgColor: $$Props['bgColor'] = 'bg-blue-600';
|
|
17
|
-
@prop export let markClass: $$Props['markClass'] = 'px-2 rounded';
|
|
17
|
+
@prop export let markClass: $$Props['markClass'] = 'px-2 rounded-sm';
|
|
18
18
|
-->
|
|
@@ -21,7 +21,7 @@ export type MarkSlots = typeof __propDef.slots;
|
|
|
21
21
|
* ## Props
|
|
22
22
|
* @prop export let color: $$Props['color'] = 'text-white dark:bg-blue-500';
|
|
23
23
|
* @prop export let bgColor: $$Props['bgColor'] = 'bg-blue-600';
|
|
24
|
-
* @prop export let markClass: $$Props['markClass'] = 'px-2 rounded';
|
|
24
|
+
* @prop export let markClass: $$Props['markClass'] = 'px-2 rounded-sm';
|
|
25
25
|
*/
|
|
26
26
|
export default class Mark extends SvelteComponentTyped<MarkProps, MarkEvents, MarkSlots> {
|
|
27
27
|
}
|
|
@@ -7,7 +7,7 @@ export let gradient = false;
|
|
|
7
7
|
export let highlight = false;
|
|
8
8
|
export let highlightClass = "text-blue-600 dark:text-blue-500";
|
|
9
9
|
export let decorationClass = "decoration-2 decoration-blue-400 dark:decoration-blue-600";
|
|
10
|
-
export let gradientClass = "text-transparent bg-clip-text bg-
|
|
10
|
+
export let gradientClass = "text-transparent bg-clip-text bg-linear-to-r to-emerald-600 from-sky-400";
|
|
11
11
|
let underlineClass = twMerge("underline", decorationClass);
|
|
12
12
|
let classSpan = twMerge(italic && "italic", underline && underlineClass, linethrough && "line-through", uppercase && "uppercase", gradient ? gradientClass : "font-semibold text-gray-900 dark:text-white", highlight && highlightClass, $$props.class);
|
|
13
13
|
</script>
|
|
@@ -28,5 +28,5 @@ let classSpan = twMerge(italic && "italic", underline && underlineClass, linethr
|
|
|
28
28
|
@prop export let highlight: $$Props['highlight'] = false;
|
|
29
29
|
@prop export let highlightClass: $$Props['highlightClass'] = 'text-blue-600 dark:text-blue-500';
|
|
30
30
|
@prop export let decorationClass: $$Props['decorationClass'] = 'decoration-2 decoration-blue-400 dark:decoration-blue-600';
|
|
31
|
-
@prop export let gradientClass: $$Props['gradientClass'] = 'text-transparent bg-clip-text bg-
|
|
31
|
+
@prop export let gradientClass: $$Props['gradientClass'] = 'text-transparent bg-clip-text bg-linear-to-r to-emerald-600 from-sky-400';
|
|
32
32
|
-->
|
|
@@ -33,7 +33,7 @@ export type SpanSlots = typeof __propDef.slots;
|
|
|
33
33
|
* @prop export let highlight: $$Props['highlight'] = false;
|
|
34
34
|
* @prop export let highlightClass: $$Props['highlightClass'] = 'text-blue-600 dark:text-blue-500';
|
|
35
35
|
* @prop export let decorationClass: $$Props['decorationClass'] = 'decoration-2 decoration-blue-400 dark:decoration-blue-600';
|
|
36
|
-
* @prop export let gradientClass: $$Props['gradientClass'] = 'text-transparent bg-clip-text bg-
|
|
36
|
+
* @prop export let gradientClass: $$Props['gradientClass'] = 'text-transparent bg-clip-text bg-linear-to-r to-emerald-600 from-sky-400';
|
|
37
37
|
*/
|
|
38
38
|
export default class Span extends SvelteComponentTyped<SpanProps, SpanEvents, SpanSlots> {
|
|
39
39
|
}
|
package/dist/utils/backdrop.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEventDispatcher } from 'svelte';
|
|
2
2
|
export let open = false;
|
|
3
|
-
const backdropClasses = 'bg-gray-900 bg-
|
|
3
|
+
const backdropClasses = 'bg-gray-900 bg-black/50 dark:bg-black/80 fixed inset-0 z-40';
|
|
4
4
|
export let placement;
|
|
5
5
|
export const init = (node, _open) => {
|
|
6
6
|
getPlacementClasses().map((c) => node.classList.add(c));
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.1",
|
|
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",
|
|
@@ -13,43 +14,43 @@
|
|
|
13
14
|
"license": "MIT",
|
|
14
15
|
"devDependencies": {
|
|
15
16
|
"@changesets/cli": "2.27.10",
|
|
16
|
-
"@docsearch/css": "^3.
|
|
17
|
-
"@docsearch/js": "^3.
|
|
18
|
-
"@playwright/test": "
|
|
19
|
-
"@sveltejs/adapter-vercel": "^5.
|
|
20
|
-
"@sveltejs/kit": "^2.
|
|
17
|
+
"@docsearch/css": "^3.9.0",
|
|
18
|
+
"@docsearch/js": "^3.9.0",
|
|
19
|
+
"@playwright/test": "1.50.1",
|
|
20
|
+
"@sveltejs/adapter-vercel": "^5.6.2",
|
|
21
|
+
"@sveltejs/kit": "^2.17.2",
|
|
21
22
|
"@sveltejs/package": "2.3.7",
|
|
22
23
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
23
24
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
25
|
+
"@tailwindcss/postcss": "^4.0.7",
|
|
24
26
|
"@types/eslint": "^9.6.1",
|
|
25
|
-
"autoprefixer": "^10.4.20",
|
|
26
27
|
"dayjs": "^1.11.13",
|
|
27
28
|
"esbuild": "0.24.0",
|
|
28
|
-
"eslint": "^9.
|
|
29
|
+
"eslint": "^9.20.1",
|
|
29
30
|
"eslint-config-prettier": "^9.1.0",
|
|
30
|
-
"eslint-plugin-svelte": "^2.46.
|
|
31
|
+
"eslint-plugin-svelte": "^2.46.1",
|
|
31
32
|
"flowbite-svelte-icons": "^1.6.2",
|
|
32
|
-
"globals": "^15.
|
|
33
|
+
"globals": "^15.15.0",
|
|
33
34
|
"mdsvex": "^0.12.3",
|
|
34
35
|
"mdsvexamples": "^0.4.1",
|
|
35
|
-
"postcss": "^8.
|
|
36
|
-
"prettier": "^3.
|
|
37
|
-
"prettier-plugin-svelte": "^3.
|
|
36
|
+
"postcss": "^8.5.3",
|
|
37
|
+
"prettier": "^3.5.1",
|
|
38
|
+
"prettier-plugin-svelte": "^3.3.3",
|
|
38
39
|
"prism-themes": "^1.9.0",
|
|
39
40
|
"publint": "^0.2.12",
|
|
40
41
|
"svelte": "^4.2.19",
|
|
41
|
-
"svelte-check": "^4.
|
|
42
|
+
"svelte-check": "^4.1.4",
|
|
42
43
|
"svelte-lib-helpers": "^0.4.16",
|
|
43
44
|
"svelte-meta-tags": "^3.1.4",
|
|
44
45
|
"svelte-preprocess": "^6.0.3",
|
|
45
|
-
"svelte2tsx": "^0.7.
|
|
46
|
+
"svelte2tsx": "^0.7.34",
|
|
46
47
|
"tailwind-merge": "^1.13.1",
|
|
47
|
-
"tailwindcss": "^
|
|
48
|
-
"tslib": "^2.8.
|
|
49
|
-
"typescript": "^5.
|
|
48
|
+
"tailwindcss": "^4.0.7",
|
|
49
|
+
"tslib": "^2.8.1",
|
|
50
|
+
"typescript": "^5.7.3",
|
|
50
51
|
"typescript-eslint": "8.16.0",
|
|
51
|
-
"vite": "^5.4.
|
|
52
|
-
"vitest": "^2.1.
|
|
52
|
+
"vite": "^5.4.14",
|
|
53
|
+
"vitest": "^2.1.9"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
56
|
"svelte": "^3.55.1 || ^4.0.0 || ^5.0.0"
|
|
@@ -98,10 +99,10 @@
|
|
|
98
99
|
"url": "git+https://github.com/themesberg/flowbite-svelte.git"
|
|
99
100
|
},
|
|
100
101
|
"dependencies": {
|
|
101
|
-
"@floating-ui/dom": "^1.6.
|
|
102
|
+
"@floating-ui/dom": "^1.6.13",
|
|
102
103
|
"apexcharts": "^3.54.1",
|
|
103
|
-
"flowbite": "^
|
|
104
|
-
"tailwind-merge": "^
|
|
104
|
+
"flowbite": "^3.1.2",
|
|
105
|
+
"tailwind-merge": "^3.0.1"
|
|
105
106
|
},
|
|
106
107
|
"files": [
|
|
107
108
|
"dist",
|