flowbite-svelte 1.0.0-next.16 → 1.0.0-next.17
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/darkmode/theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const darkmode: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5
|
|
1
|
+
export declare const darkmode: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", unknown, unknown, undefined>>;
|
package/dist/darkmode/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const darkmode = tv({
|
|
3
|
-
base: "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5
|
|
3
|
+
base: "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5"
|
|
4
4
|
});
|
|
@@ -6,28 +6,7 @@
|
|
|
6
6
|
import { datepicker } from "./theme";
|
|
7
7
|
import ToolbarButton from "../toolbar/ToolbarButton.svelte";
|
|
8
8
|
|
|
9
|
-
let {
|
|
10
|
-
value = $bindable(),
|
|
11
|
-
defaultDate = null,
|
|
12
|
-
range = false,
|
|
13
|
-
rangeFrom = $bindable(),
|
|
14
|
-
rangeTo = $bindable(),
|
|
15
|
-
locale = "default",
|
|
16
|
-
firstDayOfWeek = 0, // 0 = Monday, 6 = Sunday
|
|
17
|
-
dateFormat = { year: "numeric", month: "long", day: "numeric" },
|
|
18
|
-
placeholder = "Select date",
|
|
19
|
-
disabled = false,
|
|
20
|
-
required = false,
|
|
21
|
-
inputClass = "",
|
|
22
|
-
color = "primary",
|
|
23
|
-
inline = false,
|
|
24
|
-
autohide = true,
|
|
25
|
-
showActionButtons = false,
|
|
26
|
-
title = "",
|
|
27
|
-
onselect,
|
|
28
|
-
onclear,
|
|
29
|
-
onapply
|
|
30
|
-
}: DatepickerProps = $props();
|
|
9
|
+
let { value = $bindable(), defaultDate = null, range = false, rangeFrom = $bindable(), rangeTo = $bindable(), locale = "default", firstDayOfWeek = 0, dateFormat = { year: "numeric", month: "long", day: "numeric" }, placeholder = "Select date", disabled = false, required = false, inputClass = "", color = "primary", inline = false, autohide = true, showActionButtons = false, title = "", onselect, onclear, onapply }: DatepickerProps = $props();
|
|
31
10
|
|
|
32
11
|
// Internal state
|
|
33
12
|
let isOpen: boolean = $state(inline);
|
|
@@ -246,10 +225,3 @@
|
|
|
246
225
|
</div>
|
|
247
226
|
{/if}
|
|
248
227
|
</div>
|
|
249
|
-
|
|
250
|
-
<!--
|
|
251
|
-
@component
|
|
252
|
-
[Go to docs](https://flowbite-svelte-next.com/)
|
|
253
|
-
## Props
|
|
254
|
-
@props:
|
|
255
|
-
-->
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { DatepickerProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* [Go to docs](https://flowbite-svelte-next.com/)
|
|
4
|
-
* ## Props
|
|
5
|
-
* @props:
|
|
6
|
-
*/
|
|
7
2
|
declare const Datepicker: import("svelte").Component<DatepickerProps, {}, "value" | "rangeFrom" | "rangeTo">;
|
|
8
3
|
type Datepicker = ReturnType<typeof Datepicker>;
|
|
9
4
|
export default Datepicker;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -2231,7 +2231,7 @@ export declare const baseThemes: {
|
|
|
2231
2231
|
base: string;
|
|
2232
2232
|
image: string;
|
|
2233
2233
|
}, undefined, unknown, unknown, undefined>>;
|
|
2234
|
-
darkmode: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5
|
|
2234
|
+
darkmode: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", unknown, unknown, undefined>>;
|
|
2235
2235
|
android: import("tailwind-variants").TVReturnType<{
|
|
2236
2236
|
[key: string]: {
|
|
2237
2237
|
[key: string]: import("tailwind-variants").ClassValue | {
|
package/dist/types.d.ts
CHANGED
|
@@ -347,21 +347,21 @@ export type DateOrRange = Date | {
|
|
|
347
347
|
export interface DatepickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "onselect"> {
|
|
348
348
|
value?: Date;
|
|
349
349
|
defaultDate?: Date | null;
|
|
350
|
-
range
|
|
350
|
+
range?: boolean;
|
|
351
351
|
rangeFrom?: Date;
|
|
352
352
|
rangeTo?: Date;
|
|
353
|
-
locale
|
|
354
|
-
firstDayOfWeek
|
|
355
|
-
dateFormat
|
|
356
|
-
placeholder
|
|
357
|
-
disabled
|
|
358
|
-
required
|
|
359
|
-
inputClass
|
|
360
|
-
color
|
|
361
|
-
inline
|
|
362
|
-
autohide
|
|
363
|
-
showActionButtons
|
|
364
|
-
title
|
|
353
|
+
locale?: string;
|
|
354
|
+
firstDayOfWeek?: number;
|
|
355
|
+
dateFormat?: Intl.DateTimeFormatOptions;
|
|
356
|
+
placeholder?: string;
|
|
357
|
+
disabled?: boolean;
|
|
358
|
+
required?: boolean;
|
|
359
|
+
inputClass?: string;
|
|
360
|
+
color?: ButtonProps["color"];
|
|
361
|
+
inline?: boolean;
|
|
362
|
+
autohide?: boolean;
|
|
363
|
+
showActionButtons?: boolean;
|
|
364
|
+
title?: string;
|
|
365
365
|
onselect?: (x: DateOrRange) => void;
|
|
366
366
|
onclear?: () => void;
|
|
367
367
|
onapply?: (x: DateOrRange) => void;
|