Comparing version 2.4.0 to 2.4.1
import type { DatepickerOptions } from './types'; | ||
import type { InstanceOptions } from '../../dom/types'; | ||
import { DatepickerInterface } from './interface'; | ||
import { Datepicker as FlowbiteDatepicker, DateRangePicker as FlowbiteDateRangePicker } from 'flowbite-datepicker-1.3.0'; | ||
import { Datepicker as FlowbiteDatepicker, DateRangePicker as FlowbiteDateRangePicker } from 'flowbite-datepicker'; | ||
declare class Datepicker implements DatepickerInterface { | ||
@@ -6,0 +6,0 @@ _instanceId: string; |
@@ -16,3 +16,3 @@ "use strict"; | ||
var instances_1 = require("../../dom/instances"); | ||
var flowbite_datepicker_1_3_0_1 = require("flowbite-datepicker-1.3.0"); | ||
var flowbite_datepicker_1 = require("flowbite-datepicker"); | ||
var Default = { | ||
@@ -55,6 +55,6 @@ defaultDatepickerId: null, | ||
if (this._options.rangePicker) { | ||
this._datepickerInstance = new flowbite_datepicker_1_3_0_1.DateRangePicker(this._datepickerEl, this._getDatepickerOptions(this._options)); | ||
this._datepickerInstance = new flowbite_datepicker_1.DateRangePicker(this._datepickerEl, this._getDatepickerOptions(this._options)); | ||
} | ||
else { | ||
this._datepickerInstance = new flowbite_datepicker_1_3_0_1.Datepicker(this._datepickerEl, this._getDatepickerOptions(this._options)); | ||
this._datepickerInstance = new flowbite_datepicker_1.Datepicker(this._datepickerEl, this._getDatepickerOptions(this._options)); | ||
} | ||
@@ -83,7 +83,7 @@ this._initialized = true; | ||
if (this._options.rangePicker && | ||
this._datepickerInstance instanceof flowbite_datepicker_1_3_0_1.DateRangePicker) { | ||
this._datepickerInstance instanceof flowbite_datepicker_1.DateRangePicker) { | ||
return this._datepickerInstance.getDates(); | ||
} | ||
if (!this._options.rangePicker && | ||
this._datepickerInstance instanceof flowbite_datepicker_1_3_0_1.Datepicker) { | ||
this._datepickerInstance instanceof flowbite_datepicker_1.Datepicker) { | ||
return this._datepickerInstance.getDate(); | ||
@@ -94,7 +94,7 @@ } | ||
if (this._options.rangePicker && | ||
this._datepickerInstance instanceof flowbite_datepicker_1_3_0_1.DateRangePicker) { | ||
this._datepickerInstance instanceof flowbite_datepicker_1.DateRangePicker) { | ||
return this._datepickerInstance.setDates(date); | ||
} | ||
if (!this._options.rangePicker && | ||
this._datepickerInstance instanceof flowbite_datepicker_1_3_0_1.Datepicker) { | ||
this._datepickerInstance instanceof flowbite_datepicker_1.Datepicker) { | ||
return this._datepickerInstance.setDate(date); | ||
@@ -101,0 +101,0 @@ } |
@@ -1,2 +0,2 @@ | ||
declare module 'flowbite-datepicker-1.3.0' { | ||
declare module 'flowbite-datepicker' { | ||
class Datepicker { | ||
@@ -3,0 +3,0 @@ constructor(element: HTMLElement, options: any); |
import type { DatepickerOptions } from './types'; | ||
import type { InstanceOptions } from '../../dom/types'; | ||
import { DatepickerInterface } from './interface'; | ||
import { Datepicker as FlowbiteDatepicker, DateRangePicker as FlowbiteDateRangePicker } from 'flowbite-datepicker-1.3.0'; | ||
import { Datepicker as FlowbiteDatepicker, DateRangePicker as FlowbiteDateRangePicker } from 'flowbite-datepicker'; | ||
declare class Datepicker implements DatepickerInterface { | ||
@@ -6,0 +6,0 @@ _instanceId: string; |
@@ -13,3 +13,3 @@ var __assign = (this && this.__assign) || function () { | ||
import instances from '../../dom/instances'; | ||
import { Datepicker as FlowbiteDatepicker, DateRangePicker as FlowbiteDateRangePicker, } from 'flowbite-datepicker-1.3.0'; | ||
import { Datepicker as FlowbiteDatepicker, DateRangePicker as FlowbiteDateRangePicker, } from 'flowbite-datepicker'; | ||
var Default = { | ||
@@ -16,0 +16,0 @@ defaultDatepickerId: null, |
@@ -1,2 +0,2 @@ | ||
declare module 'flowbite-datepicker-1.3.0' { | ||
declare module 'flowbite-datepicker' { | ||
class Datepicker { | ||
@@ -3,0 +3,0 @@ constructor(element: HTMLElement, options: any); |
{ | ||
"name": "flowbite", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "The most popular library of interactive components built with Tailwind CSS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -97,3 +97,3 @@ <p> | ||
```html | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.0/flowbite.min.css" rel="stylesheet" /> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.1/flowbite.min.css" rel="stylesheet" /> | ||
``` | ||
@@ -104,3 +104,3 @@ | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.0/flowbite.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.1/flowbite.min.js"></script> | ||
``` | ||
@@ -107,0 +107,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5242644